Skip to content

Commit e9a4d17

Browse files
committed
feat: NativeScript 9 prep
1 parent c289b4a commit e9a4d17

File tree

9 files changed

+3405
-3179
lines changed

9 files changed

+3405
-3179
lines changed

apps/nativescript-demo-ng/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
"@nativescript/core": "file:../../node_modules/@nativescript/core"
77
},
88
"devDependencies": {
9-
"@nativescript/android": "~8.9.0",
10-
"@nativescript/ios": "~8.9.0",
9+
"@nativescript/android": "~9.0.0",
10+
"@nativescript/ios": "~9.0.0",
1111
"@nativescript/tailwind": "^2.1.0",
12-
"@nativescript/unit-test-runner": "^3.0.1",
13-
"@nativescript/visionos": "~8.9.0"
12+
"@nativescript/unit-test-runner": "^4.0.0",
13+
"@nativescript/visionos": "~9.0.0"
1414
}
1515
}

apps/nativescript-demo-ng/project.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
"executor": "@nativescript/nx:test",
5454
"outputs": ["{workspaceRoot}/coverage/apps/nativescript-demo-ng"],
5555
"options": {
56-
"coverage": false
56+
"coverage": false,
57+
"flags": "--env.commonjs"
5758
},
5859
"configurations": {}
5960
}

apps/nativescript-demo-ng/src/main.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ import {
55
provideNativeScriptRouter,
66
runNativeScriptAngularApp,
77
} from '@nativescript/angular';
8-
import { Trace } from '@nativescript/core';
8+
import { Trace, Utils } from '@nativescript/core';
99

1010
// import { AppModule } from './app/app.module';
1111
import { withInterceptorsFromDi } from '@angular/common/http';
12-
import { setWindowBackgroundColor } from '@nativescript/core/utils/ios';
1312
import { AppComponent } from './app/app.component';
1413
import { routes } from './app/app.routes';
1514
import { provideZonelessChangeDetection } from '@angular/core';
@@ -22,7 +21,7 @@ Trace.setCategories('ns-route-reuse-strategy,ns-router');
2221
runNativeScriptAngularApp({
2322
appModuleBootstrap: () => {
2423
if (__APPLE__) {
25-
setWindowBackgroundColor('#a6120d');
24+
Utils.ios.setWindowBackgroundColor('#a6120d');
2625
}
2726
return bootstrapApplication(AppComponent, {
2827
providers: [

apps/nativescript-demo-ng/src/tests/value-accessor-tests.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ describe('two-way binding via ng-model', () => {
7979

8080
accessor.writeValue(null);
8181
expect(accessor.view.checked).withContext('setting null should reset the value').toBe(defaultValue);
82-
83-
expect(() => accessor.writeValue('blah')).toThrow();
8482
});
8583

8684
it('converts strings to dates', () => {

apps/nativescript-demo-ng/tsconfig.app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"target": "es2017",
4+
"target": "es2020",
55
"baseUrl": ".",
66
"outDir": "../../dist/out-tsc",
77
"paths": {

apps/nativescript-demo-ng/tsconfig.spec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"target": "es2017",
4+
"target": "es2020",
55
"baseUrl": ".",
66
"outDir": "../../dist/out-tsc",
77
"paths": {

0 commit comments

Comments
 (0)