@nativescript/template-blank-ng 8.0.5 → 8.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -20,13 +20,17 @@
|
|
|
20
20
|
android:allowBackup="true"
|
|
21
21
|
android:icon="@mipmap/ic_launcher"
|
|
22
22
|
android:label="@string/app_name"
|
|
23
|
-
android:theme="@style/AppTheme"
|
|
23
|
+
android:theme="@style/AppTheme"
|
|
24
|
+
android:hardwareAccelerated="true">
|
|
24
25
|
|
|
25
26
|
<activity
|
|
26
27
|
android:name="com.tns.NativeScriptActivity"
|
|
27
28
|
android:label="@string/title_activity_kimera"
|
|
28
29
|
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout|locale|uiMode"
|
|
29
|
-
android:theme="@style/LaunchScreenTheme"
|
|
30
|
+
android:theme="@style/LaunchScreenTheme"
|
|
31
|
+
android:hardwareAccelerated="true"
|
|
32
|
+
android:launchMode="singleTask"
|
|
33
|
+
android:exported="true">
|
|
30
34
|
|
|
31
35
|
<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" />
|
|
32
36
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"main": "src/main.ts",
|
|
4
4
|
"displayName": "Blank",
|
|
5
5
|
"templateType": "App template",
|
|
6
|
-
"version": "8.
|
|
6
|
+
"version": "8.1.2",
|
|
7
7
|
"description": "Blank template for NativeScript apps using Angular",
|
|
8
8
|
"author": "NativeScript Team <oss@nativescript.org>",
|
|
9
9
|
"license": "Apache-2.0",
|
|
@@ -39,26 +39,26 @@
|
|
|
39
39
|
"url": "https://github.com/NativeScript/NativeScript/issues"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@angular/animations": "~
|
|
43
|
-
"@angular/common": "~
|
|
44
|
-
"@angular/compiler": "~
|
|
45
|
-
"@angular/core": "~
|
|
46
|
-
"@angular/forms": "~
|
|
47
|
-
"@angular/platform-browser": "~
|
|
48
|
-
"@angular/platform-browser-dynamic": "~
|
|
49
|
-
"@angular/router": "~
|
|
50
|
-
"@nativescript/angular": "
|
|
51
|
-
"@nativescript/core": "~8.
|
|
42
|
+
"@angular/animations": "~13.1.1",
|
|
43
|
+
"@angular/common": "~13.1.1",
|
|
44
|
+
"@angular/compiler": "~13.1.1",
|
|
45
|
+
"@angular/core": "~13.1.1",
|
|
46
|
+
"@angular/forms": "~13.1.1",
|
|
47
|
+
"@angular/platform-browser": "~13.1.1",
|
|
48
|
+
"@angular/platform-browser-dynamic": "~13.1.1",
|
|
49
|
+
"@angular/router": "~13.1.1",
|
|
50
|
+
"@nativescript/angular": "^13.0.0",
|
|
51
|
+
"@nativescript/core": "~8.1.1",
|
|
52
52
|
"@nativescript/theme": "~3.0.1",
|
|
53
|
-
"
|
|
54
|
-
"rxjs": "^6.6.7",
|
|
53
|
+
"rxjs": "~7.4.0",
|
|
55
54
|
"zone.js": "~0.11.4"
|
|
56
55
|
},
|
|
57
56
|
"devDependencies": {
|
|
58
|
-
"@angular/
|
|
59
|
-
"@
|
|
60
|
-
"@nativescript/
|
|
61
|
-
"@
|
|
62
|
-
"
|
|
57
|
+
"@angular-devkit/build-angular": "~13.1.1",
|
|
58
|
+
"@angular/compiler-cli": "~13.1.1",
|
|
59
|
+
"@nativescript/types": "~8.1.1",
|
|
60
|
+
"@nativescript/webpack": "~5.0.0",
|
|
61
|
+
"@ngtools/webpack": "~13.1.1",
|
|
62
|
+
"typescript": "~4.4.4"
|
|
63
63
|
}
|
|
64
64
|
}
|
package/src/main.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import { platformNativeScriptDynamic } from '@nativescript/angular'
|
|
1
|
+
import { platformNativeScript, runNativeScriptAngularApp } from '@nativescript/angular';
|
|
3
2
|
|
|
4
|
-
import { AppModule } from './app/app.module'
|
|
3
|
+
import { AppModule } from './app/app.module';
|
|
4
|
+
|
|
5
|
+
runNativeScriptAngularApp({
|
|
6
|
+
appModuleBootstrap: () => platformNativeScript().bootstrapModule(AppModule),
|
|
7
|
+
});
|
|
5
8
|
|
|
6
|
-
platformNativeScriptDynamic().bootstrapModule(AppModule)
|
package/src/polyfills.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NativeScript Polyfills
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// Install @nativescript/core polyfills (XHR, setTimeout, requestAnimationFrame)
|
|
6
|
+
import '@nativescript/core/globals';
|
|
7
|
+
// Install @nativescript/angular specific polyfills
|
|
8
|
+
import '@nativescript/angular/polyfills';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Zone.js and patches
|
|
12
|
+
*/
|
|
13
|
+
// Add pre-zone.js patches needed for the NativeScript platform
|
|
14
|
+
import '@nativescript/zone-js/dist/pre-zone-polyfills';
|
|
15
|
+
|
|
16
|
+
// Zone JS is required by default for Angular itself
|
|
17
|
+
import 'zone.js';
|
|
18
|
+
|
|
19
|
+
// Add NativeScript specific Zone JS patches
|
|
20
|
+
import '@nativescript/zone-js';
|
package/tsconfig.json
CHANGED
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"include": ["src/tests/**/*.ts", "src/**/*.ios.ts", "src/**/*.android.ts"],
|
|
19
|
-
"files": ["./src/main.ts", "./references.d.ts"],
|
|
19
|
+
"files": ["./src/main.ts", "./references.d.ts", "./src/polyfills.ts"],
|
|
20
20
|
"exclude": ["node_modules", "platforms", "e2e"]
|
|
21
21
|
}
|