This repository was archived by the owner on Aug 7, 2021. It is now read-only.
File tree 3 files changed +20
-1
lines changed
3 files changed +20
-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
+ // the `JavaProxy` decorator specifies the package and the name for the native *.JAVA file generated.
2
+ @JavaProxy ( "org.myApp.Application" )
3
+ class Application extends android . app . Application {
4
+ onCreate ( ) : void {
5
+ super . onCreate ( ) ;
6
+
7
+ // At this point modules have already been initialized
8
+
9
+ // Enter custom initialization code here
10
+ }
11
+
12
+ protected attachBaseContext ( baseContext : android . content . Context ) {
13
+ super . attachBaseContext ( baseContext ) ;
14
+
15
+ // This code enables MultiDex support for the application (if needed)
16
+ // android.support.multidex.MultiDex.install(this);
17
+ }
18
+ }
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ module.exports = env => {
67
67
target : nativescriptTarget ,
68
68
entry : {
69
69
bundle : entryPath ,
70
+ application : "./application.android" ,
70
71
} ,
71
72
output : {
72
73
pathinfo : false ,
You can’t perform that action at this time.
0 commit comments