@nativescript/template-blank-ng 8.8.1 → 8.8.3

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.
Files changed (35) hide show
  1. package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json +114 -6
  2. package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png +0 -0
  3. package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png +0 -0
  4. package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png +0 -0
  5. package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png +0 -0
  6. package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png +0 -0
  7. package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png +0 -0
  8. package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png +0 -0
  9. package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png +0 -0
  10. package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png +0 -0
  11. package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png +0 -0
  12. package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png +0 -0
  13. package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png +0 -0
  14. package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png +0 -0
  15. package/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png +0 -0
  16. package/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json +23 -0
  17. package/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png +0 -0
  18. package/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png +0 -0
  19. package/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@3x.png +0 -0
  20. package/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json +23 -0
  21. package/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png +0 -0
  22. package/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png +0 -0
  23. package/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@3x.png +0 -0
  24. package/App_Resources/iOS/LaunchScreen.storyboard +28 -5
  25. package/package.json +15 -15
  26. package/src/app/app.component.ts +5 -2
  27. package/src/app/app.routes.ts +6 -0
  28. package/src/app/home/home.component.html +1 -0
  29. package/src/app/home/home.component.ts +8 -8
  30. package/src/main.ts +27 -4
  31. package/src/polyfills.ts +5 -0
  32. package/src/app/app-routing.module.ts +0 -17
  33. package/src/app/app.module.ts +0 -13
  34. package/src/app/home/home-routing.module.ts +0 -13
  35. package/src/app/home/home.module.ts +0 -12
@@ -1,14 +1,122 @@
1
1
  {
2
2
  "images" : [
3
3
  {
4
+ "size" : "20x20",
5
+ "idiom" : "iphone",
6
+ "filename" : "icon-20@2x.png",
7
+ "scale" : "2x"
8
+ },
9
+ {
10
+ "size" : "20x20",
11
+ "idiom" : "iphone",
12
+ "filename" : "icon-20@3x.png",
13
+ "scale" : "3x"
14
+ },
15
+ {
16
+ "size" : "29x29",
17
+ "idiom" : "iphone",
18
+ "filename" : "icon-29.png",
19
+ "scale" : "1x"
20
+ },
21
+ {
22
+ "size" : "29x29",
23
+ "idiom" : "iphone",
24
+ "filename" : "icon-29@2x.png",
25
+ "scale" : "2x"
26
+ },
27
+ {
28
+ "size" : "29x29",
29
+ "idiom" : "iphone",
30
+ "filename" : "icon-29@3x.png",
31
+ "scale" : "3x"
32
+ },
33
+ {
34
+ "size" : "40x40",
35
+ "idiom" : "iphone",
36
+ "filename" : "icon-40@2x.png",
37
+ "scale" : "2x"
38
+ },
39
+ {
40
+ "size" : "40x40",
41
+ "idiom" : "iphone",
42
+ "filename" : "icon-40@3x.png",
43
+ "scale" : "3x"
44
+ },
45
+ {
46
+ "size" : "60x60",
47
+ "idiom" : "iphone",
48
+ "filename" : "icon-60@2x.png",
49
+ "scale" : "2x"
50
+ },
51
+ {
52
+ "size" : "60x60",
53
+ "idiom" : "iphone",
54
+ "filename" : "icon-60@3x.png",
55
+ "scale" : "3x"
56
+ },
57
+ {
58
+ "size" : "20x20",
59
+ "idiom" : "ipad",
60
+ "filename" : "icon-20.png",
61
+ "scale" : "1x"
62
+ },
63
+ {
64
+ "size" : "20x20",
65
+ "idiom" : "ipad",
66
+ "filename" : "icon-20@2x.png",
67
+ "scale" : "2x"
68
+ },
69
+ {
70
+ "size" : "29x29",
71
+ "idiom" : "ipad",
72
+ "filename" : "icon-29.png",
73
+ "scale" : "1x"
74
+ },
75
+ {
76
+ "size" : "29x29",
77
+ "idiom" : "ipad",
78
+ "filename" : "icon-29@2x.png",
79
+ "scale" : "2x"
80
+ },
81
+ {
82
+ "size" : "40x40",
83
+ "idiom" : "ipad",
84
+ "filename" : "icon-40.png",
85
+ "scale" : "1x"
86
+ },
87
+ {
88
+ "size" : "40x40",
89
+ "idiom" : "ipad",
90
+ "filename" : "icon-40@2x.png",
91
+ "scale" : "2x"
92
+ },
93
+ {
94
+ "size" : "76x76",
95
+ "idiom" : "ipad",
96
+ "filename" : "icon-76.png",
97
+ "scale" : "1x"
98
+ },
99
+ {
100
+ "size" : "76x76",
101
+ "idiom" : "ipad",
102
+ "filename" : "icon-76@2x.png",
103
+ "scale" : "2x"
104
+ },
105
+ {
106
+ "size" : "83.5x83.5",
107
+ "idiom" : "ipad",
108
+ "filename" : "icon-83.5@2x.png",
109
+ "scale" : "2x"
110
+ },
111
+ {
112
+ "size" : "1024x1024",
113
+ "idiom" : "ios-marketing",
4
114
  "filename" : "icon-1024.png",
5
- "idiom" : "universal",
6
- "platform" : "ios",
7
- "size" : "1024x1024"
115
+ "scale" : "1x"
8
116
  }
9
117
  ],
10
118
  "info" : {
11
- "author" : "xcode",
12
- "version" : 1
119
+ "version" : 1,
120
+ "author" : "xcode"
13
121
  }
14
- }
122
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "images" : [
3
+ {
4
+ "idiom" : "universal",
5
+ "filename" : "LaunchScreen-AspectFill.png",
6
+ "scale" : "1x"
7
+ },
8
+ {
9
+ "idiom" : "universal",
10
+ "filename" : "LaunchScreen-AspectFill@2x.png",
11
+ "scale" : "2x"
12
+ },
13
+ {
14
+ "idiom" : "universal",
15
+ "filename" : "LaunchScreen-AspectFill@3x.png",
16
+ "scale" : "3x"
17
+ }
18
+ ],
19
+ "info" : {
20
+ "version" : 1,
21
+ "author" : "xcode"
22
+ }
23
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "images" : [
3
+ {
4
+ "idiom" : "universal",
5
+ "filename" : "LaunchScreen-Center.png",
6
+ "scale" : "1x"
7
+ },
8
+ {
9
+ "idiom" : "universal",
10
+ "filename" : "LaunchScreen-Center@2x.png",
11
+ "scale" : "2x"
12
+ },
13
+ {
14
+ "idiom" : "universal",
15
+ "filename" : "LaunchScreen-Center@3x.png",
16
+ "scale" : "3x"
17
+ }
18
+ ],
19
+ "info" : {
20
+ "version" : 1,
21
+ "author" : "xcode"
22
+ }
23
+ }
@@ -1,9 +1,11 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="20037" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3
- <device id="retina5_9" orientation="portrait" appearance="light"/>
2
+ <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3
+ <device id="retina5_9" orientation="portrait">
4
+ <adaptation id="fullscreen"/>
5
+ </device>
4
6
  <dependencies>
5
7
  <deployment identifier="iOS"/>
6
- <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="20020"/>
8
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
7
9
  <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
8
10
  </dependencies>
9
11
  <scenes>
@@ -18,8 +20,25 @@
18
20
  <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
19
21
  <rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
20
22
  <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
21
-
22
- <color key="backgroundColor" red="1.0" green="1.0" blue="1.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
23
+ <subviews>
24
+ <imageView userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="LaunchScreen.AspectFill" translatesAutoresizingMaskIntoConstraints="NO" id="wtH-rr-YfP">
25
+ <rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
26
+ </imageView>
27
+ <imageView userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="LaunchScreen.Center" translatesAutoresizingMaskIntoConstraints="NO" id="s1z-aa-wYv">
28
+ <rect key="frame" x="0.0" y="150" width="375" height="512"/>
29
+ </imageView>
30
+ </subviews>
31
+ <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
32
+ <constraints>
33
+ <constraint firstAttribute="trailing" secondItem="s1z-aa-wYv" secondAttribute="trailing" id="4Rf-kf-vql"/>
34
+ <constraint firstAttribute="bottom" secondItem="wtH-rr-YfP" secondAttribute="bottom" id="5CS-At-4ka"/>
35
+ <constraint firstItem="wtH-rr-YfP" firstAttribute="top" secondItem="Ze5-6b-2t3" secondAttribute="top" id="Awn-b8-xf1"/>
36
+ <constraint firstItem="s1z-aa-wYv" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leading" id="BpJ-vb-eKA"/>
37
+ <constraint firstItem="s1z-aa-wYv" firstAttribute="trailing" secondItem="wtH-rr-YfP" secondAttribute="trailing" id="QIM-7J-OZz"/>
38
+ <constraint firstAttribute="trailing" secondItem="wtH-rr-YfP" secondAttribute="trailing" id="RXg-rW-UK8"/>
39
+ <constraint firstItem="s1z-aa-wYv" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="Rcp-LG-48z"/>
40
+ <constraint firstItem="wtH-rr-YfP" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leading" id="cch-8E-tYu"/>
41
+ </constraints>
23
42
  </view>
24
43
  </viewController>
25
44
  <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
@@ -27,4 +46,8 @@
27
46
  <point key="canvasLocation" x="509.60000000000002" y="237.93103448275863"/>
28
47
  </scene>
29
48
  </scenes>
49
+ <resources>
50
+ <image name="LaunchScreen.AspectFill" width="768" height="1024"/>
51
+ <image name="LaunchScreen.Center" width="384" height="512"/>
52
+ </resources>
30
53
  </document>
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.8.1",
6
+ "version": "8.8.3",
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": "~18.0.0",
43
- "@angular/common": "~18.0.0",
44
- "@angular/compiler": "~18.0.0",
45
- "@angular/core": "~18.0.0",
46
- "@angular/forms": "~18.0.0",
47
- "@angular/platform-browser": "~18.0.0",
48
- "@angular/platform-browser-dynamic": "~18.0.0",
49
- "@angular/router": "~18.0.0",
50
- "@nativescript/angular": "^18.0.0",
42
+ "@angular/animations": "~19.0.0",
43
+ "@angular/common": "~19.0.0",
44
+ "@angular/compiler": "~19.0.0",
45
+ "@angular/core": "~19.0.0",
46
+ "@angular/forms": "~19.0.0",
47
+ "@angular/platform-browser": "~19.0.0",
48
+ "@angular/platform-browser-dynamic": "~19.0.0",
49
+ "@angular/router": "~19.0.0",
50
+ "@nativescript/angular": "^19.0.0",
51
51
  "@nativescript/core": "~8.8.0",
52
52
  "@nativescript/theme": "^3.1.0",
53
53
  "rxjs": "~7.8.0",
54
- "zone.js": "~0.14.0"
54
+ "zone.js": "~0.15.0"
55
55
  },
56
56
  "devDependencies": {
57
- "@angular-devkit/build-angular": "~18.0.0",
58
- "@angular/compiler-cli": "~18.0.0",
57
+ "@angular-devkit/build-angular": "~19.0.0",
58
+ "@angular/compiler-cli": "~19.0.0",
59
59
  "@nativescript/types": "~8.8.0",
60
60
  "@nativescript/webpack": "~5.0.0",
61
- "@ngtools/webpack": "~18.0.0",
62
- "typescript": "~5.4.0"
61
+ "@ngtools/webpack": "~19.0.0",
62
+ "typescript": "~5.6.0"
63
63
  }
64
64
  }
@@ -1,7 +1,10 @@
1
- import { Component } from '@angular/core'
1
+ import { Component, NO_ERRORS_SCHEMA } from '@angular/core';
2
+ import { PageRouterOutlet } from '@nativescript/angular';
2
3
 
3
4
  @Component({
4
5
  selector: 'ns-app',
5
- templateUrl: 'app.component.html',
6
+ templateUrl: './app.component.html',
7
+ imports: [PageRouterOutlet],
8
+ schemas: [NO_ERRORS_SCHEMA],
6
9
  })
7
10
  export class AppComponent {}
@@ -0,0 +1,6 @@
1
+ import { Routes } from '@angular/router';
2
+
3
+ export const routes: Routes = [
4
+ { path: '', redirectTo: '/home', pathMatch: 'full' },
5
+ { path: 'home', loadComponent: () => import('./home/home.component').then(m => m.HomeComponent) },
6
+ ];
@@ -4,4 +4,5 @@
4
4
 
5
5
  <GridLayout>
6
6
  <!-- Add your page content here -->
7
+ <Label text="Hello"></Label>
7
8
  </GridLayout>
@@ -1,15 +1,15 @@
1
- import { Component, OnInit } from '@angular/core'
1
+ import { Component, NO_ERRORS_SCHEMA } from '@angular/core';
2
+ import {
3
+ NativeScriptCommonModule,
4
+ NativeScriptRouterModule,
5
+ } from '@nativescript/angular';
2
6
 
3
7
  @Component({
4
8
  selector: 'Home',
5
9
  templateUrl: './home.component.html',
10
+ imports: [NativeScriptCommonModule, NativeScriptRouterModule],
11
+ schemas: [NO_ERRORS_SCHEMA],
6
12
  })
7
- export class HomeComponent implements OnInit {
8
- constructor() {
9
- // Use the component constructor to inject providers.
10
- }
13
+ export class HomeComponent {
11
14
 
12
- ngOnInit(): void {
13
- // Init your component properties here.
14
- }
15
15
  }
package/src/main.ts CHANGED
@@ -1,8 +1,31 @@
1
- import { platformNativeScript, runNativeScriptAngularApp } from '@nativescript/angular';
1
+ import {
2
+ bootstrapApplication,
3
+ provideNativeScriptHttpClient,
4
+ provideNativeScriptNgZone,
5
+ provideNativeScriptRouter,
6
+ runNativeScriptAngularApp,
7
+ } from '@nativescript/angular';
8
+ import { provideExperimentalZonelessChangeDetection } from '@angular/core';
9
+ import { withInterceptorsFromDi } from '@angular/common/http';
10
+ import { routes } from './app/app.routes';
11
+ import { AppComponent } from './app/app.component';
2
12
 
3
- import { AppModule } from './app/app.module';
13
+ /**
14
+ * Disable zone by setting this to true
15
+ * Then also adjust polyfills.ts (see note there)
16
+ */
17
+ const EXPERIMENTAL_ZONELESS = false;
4
18
 
5
19
  runNativeScriptAngularApp({
6
- appModuleBootstrap: () => platformNativeScript().bootstrapModule(AppModule),
20
+ appModuleBootstrap: () => {
21
+ return bootstrapApplication(AppComponent, {
22
+ providers: [
23
+ provideNativeScriptHttpClient(withInterceptorsFromDi()),
24
+ provideNativeScriptRouter(routes),
25
+ EXPERIMENTAL_ZONELESS
26
+ ? provideExperimentalZonelessChangeDetection()
27
+ : provideNativeScriptNgZone(),
28
+ ],
29
+ });
30
+ },
7
31
  });
8
-
package/src/polyfills.ts CHANGED
@@ -7,6 +7,11 @@ import '@nativescript/core/globals';
7
7
  // Install @nativescript/angular specific polyfills
8
8
  import '@nativescript/angular/polyfills';
9
9
 
10
+ /**
11
+ * Disable zone completely by removing the following 3 imports
12
+ * alongside also adjusting main.ts to boot zoneless
13
+ */
14
+
10
15
  /**
11
16
  * Zone.js and patches
12
17
  */
@@ -1,17 +0,0 @@
1
- import { NgModule } from '@angular/core'
2
- import { Routes } from '@angular/router'
3
- import { NativeScriptRouterModule } from '@nativescript/angular'
4
-
5
- const routes: Routes = [
6
- { path: '', redirectTo: '/home', pathMatch: 'full' },
7
- {
8
- path: 'home',
9
- loadChildren: () => import('~/app/home/home.module').then((m) => m.HomeModule),
10
- },
11
- ]
12
-
13
- @NgModule({
14
- imports: [NativeScriptRouterModule.forRoot(routes)],
15
- exports: [NativeScriptRouterModule],
16
- })
17
- export class AppRoutingModule {}
@@ -1,13 +0,0 @@
1
- import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core'
2
- import { NativeScriptModule } from '@nativescript/angular'
3
-
4
- import { AppRoutingModule } from './app-routing.module'
5
- import { AppComponent } from './app.component'
6
-
7
- @NgModule({
8
- bootstrap: [AppComponent],
9
- imports: [NativeScriptModule, AppRoutingModule],
10
- declarations: [AppComponent],
11
- schemas: [NO_ERRORS_SCHEMA],
12
- })
13
- export class AppModule {}
@@ -1,13 +0,0 @@
1
- import { NgModule } from '@angular/core'
2
- import { Routes } from '@angular/router'
3
- import { NativeScriptRouterModule } from '@nativescript/angular'
4
-
5
- import { HomeComponent } from './home.component'
6
-
7
- const routes: Routes = [{ path: '', component: HomeComponent }]
8
-
9
- @NgModule({
10
- imports: [NativeScriptRouterModule.forChild(routes)],
11
- exports: [NativeScriptRouterModule],
12
- })
13
- export class HomeRoutingModule {}
@@ -1,12 +0,0 @@
1
- import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core'
2
- import { NativeScriptCommonModule } from '@nativescript/angular'
3
-
4
- import { HomeRoutingModule } from './home-routing.module'
5
- import { HomeComponent } from './home.component'
6
-
7
- @NgModule({
8
- imports: [NativeScriptCommonModule, HomeRoutingModule],
9
- declarations: [HomeComponent],
10
- schemas: [NO_ERRORS_SCHEMA],
11
- })
12
- export class HomeModule {}