This repository was archived by the owner on Aug 7, 2021. It is now read-only.
File tree 3 files changed +18
-1
lines changed
3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 19
19
<uses-permission android : name =" android.permission.INTERNET" />
20
20
21
21
<application
22
- android:name=" com.tns.NativeScriptApplication "
22
+ android:name=" org.myApp.Application "
23
23
android:allowBackup=" true"
24
24
android:icon=" @drawable/icon"
25
25
android:label=" @string/app_name"
Original file line number Diff line number Diff line change
1
+ var superProto = android . app . Application . prototype ;
2
+ // the first parameter of the `extend` call defines the package and the name for the native *.JAVA file generated.
3
+ var Application = android . app . Application . extend ( "org.myApp.Application" , {
4
+ onCreate : function ( ) {
5
+ superProto . onCreate . call ( this ) ;
6
+
7
+ // At this point modules have already been initialized
8
+
9
+ // Enter custom initialization code here
10
+ } ,
11
+ attachBaseContext : function ( base ) {
12
+ superProto . attachBaseContext . call ( this , base ) ;
13
+ // This code enables MultiDex support for the application (if needed)
14
+ // android.support.multidex.MultiDex.install(this);
15
+ }
16
+ } ) ;
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ module.exports = env => {
60
60
target : nativescriptTarget ,
61
61
entry : {
62
62
bundle : entryPath ,
63
+ application : "./application.android" ,
63
64
} ,
64
65
output : {
65
66
pathinfo : false ,
You can’t perform that action at this time.
0 commit comments