nativescript 8.6.6-vision.10 → 8.6.6-vision.11

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.
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
  <br>
9
9
  </h1>
10
10
 
11
- <h4 align="center">The NativeScript CLI lets you create, build, and deploy <a href="https://docs.nativescript.org/" target="_blank">NativeScript</a>-based apps on iOS and Android devices.</h4>
11
+ <h4 align="center">The NativeScript CLI lets you create, build, and deploy <a href="https://docs.nativescript.org/" target="_blank">NativeScript</a> apps.</h4>
12
12
  </a>
13
13
  </h4>
14
14
 
@@ -18,30 +18,51 @@
18
18
 
19
19
  Get it using: `npm install -g nativescript`
20
20
 
21
- * [What is NativeScript](#what-is-nativescript "Quick overview of NativeScript, the JavaScript framework for cross-platform development of native iOS and Android apps")
22
- * [How the NativeScript CLI works](#how-the-nativescript-cli-works "How the CLI works in more detail")
23
- * [Supported Platforms](#supported-platforms "The mobile platforms you can target with NativeScript")
24
- * [System Requirements](#system-requirements "The hardware and software requirements for setting up and working with the NativeScript CLI")
25
- * [Installation](#installation "How to configure and install the NativeScript CLI")
26
- * [Install the NativeScript CLI](#install-the-nativescript-cli)
27
- * [Configure Proxy Usage](#configure-proxy-settings)
28
- * [Quick Start](#quick-start "Get started with the NativeScript CLI")
29
- * [The Commands](#the-commands)
30
- * [Create Project](#create-project)
31
- * [Develop Your Project](#develop-your-project)
32
- * [Build Your Project](#build-your-project)
33
- * [Run Your Project](#run-your-project)
34
- * [Extending the CLI](#extending-the-cli)
35
- * [Troubleshooting](#troubleshooting)
36
- * [How to Contribute](#how-to-contribute)
37
- * [How to Build](#how-to-build)
38
- * [Get Help](#get-help)
39
- * [License](#license)
21
+ - [What is NativeScript](#what-is-nativescript)
22
+ - [How the NativeScript CLI works](#how-the-nativescript-cli-works)
23
+ - [Supported Platforms](#supported-platforms)
24
+ - [System Requirements](#system-requirements)
25
+ - [Installation](#installation)
26
+ - [Install the NativeScript CLI](#install-the-nativescript-cli)
27
+ - [Configure Proxy Settings](#configure-proxy-settings)
28
+ - [Set Proxy Settings](#set-proxy-settings)
29
+ - [Attributes](#attributes)
30
+ - [Options](#options)
31
+ - [Limitations](#limitations)
32
+ - [Display Current Proxy Settings](#display-current-proxy-settings)
33
+ - [Clear Proxy Settings](#clear-proxy-settings)
34
+ - [Quick Start](#quick-start)
35
+ - [The Commands](#the-commands)
36
+ - [Create Project](#create-project)
37
+ - [Develop Your Project](#develop-your-project)
38
+ - [Development with NativeScript](#development-with-nativescript)
39
+ - [Development in `app`](#development-in-app)
40
+ - [Development in `platforms`](#development-in-platforms)
41
+ - [Modifying Configuration Files](#modifying-configuration-files)
42
+ - [Modifying Entitlements File (iOS only)](#modifying-entitlements-file-ios-only)
43
+ - [Build Your Project](#build-your-project)
44
+ - [Run Your Project](#run-your-project)
45
+ - [Extending the CLI](#extending-the-cli)
46
+ - [Troubleshooting](#troubleshooting)
47
+ - [How to Contribute](#how-to-contribute)
48
+ - [How to Build](#how-to-build)
49
+ - [Get Help](#get-help)
50
+ - [License](#license)
40
51
 
41
52
  What is NativeScript
42
53
  ===
43
54
 
44
- NativeScript is a cross-platform JavaScript framework that lets you develop native iOS and Android apps from a single code base. The framework provides JavaScript access to the native APIs, user interface, and rendering engines of iOS and Android. By using JavaScript or TypeScript, you can create one project that builds into an iOS or Android app with completely native user experience.
55
+ NativeScript provides platform APIs directly to the JavaScript runtime (_with strong types_) for a rich TypeScript development experience.
56
+
57
+ Some popular use cases:
58
+
59
+ - Building Web, iOS, Android and Vision Pro apps with a shared codebase (aka, cross platform apps)
60
+ - Building native platform apps with portable JavaScript skills
61
+ - Augmenting JavaScript projects with platform API capabilities
62
+ - AndroidTV and Watch development
63
+ - watchOS development
64
+ - Learning native platforms through JavaScript understanding
65
+ - Exploring platform API documentation by trying APIs [directly from a web browser](https://preview.nativescript.org/) without requiring a platform development machine setup.
45
66
 
46
67
  To learn more about NativeScript, you can check the following resources:
47
68
 
@@ -55,6 +55,7 @@ export interface IKeyCommand {
55
55
  key: IValidKeyName;
56
56
  platform: IKeyCommandPlatform;
57
57
  description: string;
58
+ group: string;
58
59
  willBlockKeyCommandExecution?: boolean;
59
60
  execute(platform: string): Promise<void>;
60
61
  canExecute?: (processType: SupportedProcessType) => boolean;
@@ -26,6 +26,7 @@ const ios_device_base_1 = require("../ios-device-base");
26
26
  const constants_1 = require("../../../../constants");
27
27
  class IOSSimulator extends ios_device_base_1.IOSDeviceBase {
28
28
  constructor(simulator, $devicePlatformsConstants, $deviceLogProvider, $errors, $lockService, $injector, $iOSDebuggerPortService, $iOSSimResolver, $iOSEmulatorServices, $iOSNotification, $iOSSimulatorLogProvider, $logger) {
29
+ var _a;
29
30
  super();
30
31
  this.simulator = simulator;
31
32
  this.$devicePlatformsConstants = $devicePlatformsConstants;
@@ -48,7 +49,7 @@ class IOSSimulator extends ios_device_base_1.IOSDeviceBase {
48
49
  model: _.last(this.simulator.fullId.split(".")),
49
50
  version: this.simulator.runtimeVersion,
50
51
  vendor: "Apple",
51
- platform: this.$devicePlatformsConstants.iOS,
52
+ platform: (_a = this.simulator.platform) !== null && _a !== void 0 ? _a : this.$devicePlatformsConstants.iOS,
52
53
  status: constants.CONNECTED_STATUS,
53
54
  errorHelp: null,
54
55
  isTablet: this.simulator.fullId.toLowerCase().indexOf("ipad") !== -1,
@@ -72,6 +72,7 @@ class KeyCommandHelper {
72
72
  }
73
73
  printCommands(platform) {
74
74
  const commands = yok_1.injector.getRegisteredKeyCommandsNames();
75
+ const groupings = {};
75
76
  const commandHelp = commands.reduce((arr, key) => {
76
77
  const command = yok_1.injector.resolveKeyCommand(key);
77
78
  if (!command.description ||
@@ -82,6 +83,10 @@ class KeyCommandHelper {
82
83
  return arr;
83
84
  }
84
85
  else {
86
+ if (!groupings[command.group]) {
87
+ groupings[command.group] = true;
88
+ arr.push(` \n${color_1.color.underline(color_1.color.bold(command.group))}\n`);
89
+ }
85
90
  arr.push(` ${color_1.color.bold(command.key)} — ${command.description}`);
86
91
  return arr;
87
92
  }
@@ -3,9 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const yok_1 = require("../common/yok");
4
4
  const path = "./key-commands/index";
5
5
  yok_1.injector.requireKeyCommand("a", path);
6
- yok_1.injector.requireKeyCommand("i", path);
7
6
  yok_1.injector.requireKeyCommand("A", path);
7
+ yok_1.injector.requireKeyCommand("i", path);
8
8
  yok_1.injector.requireKeyCommand("I", path);
9
+ yok_1.injector.requireKeyCommand("v", path);
9
10
  yok_1.injector.requireKeyCommand("V", path);
10
11
  yok_1.injector.requireKeyCommand("r", path);
11
12
  yok_1.injector.requireKeyCommand("R", path);
@@ -20,7 +20,8 @@ class A {
20
20
  this.$startService = $startService;
21
21
  this.key = "a";
22
22
  this.platform = "Android";
23
- this.description = "Run android app";
23
+ this.description = "Run Android app";
24
+ this.group = "Android";
24
25
  }
25
26
  execute() {
26
27
  return __awaiter(this, void 0, void 0, function* () {
@@ -40,7 +41,8 @@ class ShiftA {
40
41
  this.$projectData = $projectData;
41
42
  this.key = "A";
42
43
  this.platform = "Android";
43
- this.description = "Open android project in Android Studio";
44
+ this.description = "Open project in Android Studio";
45
+ this.group = "Android";
44
46
  this.willBlockKeyCommandExecution = true;
45
47
  this.isInteractive = true;
46
48
  }
@@ -118,6 +120,7 @@ class I {
118
120
  this.key = "i";
119
121
  this.platform = "iOS";
120
122
  this.description = "Run iOS app";
123
+ this.group = "iOS";
121
124
  }
122
125
  execute() {
123
126
  return __awaiter(this, void 0, void 0, function* () {
@@ -139,7 +142,8 @@ class ShiftI {
139
142
  this.$xcodebuildArgsService = $xcodebuildArgsService;
140
143
  this.key = "I";
141
144
  this.platform = "iOS";
142
- this.description = "Open iOS project in Xcode";
145
+ this.description = "Open project in Xcode";
146
+ this.group = "iOS";
143
147
  this.willBlockKeyCommandExecution = true;
144
148
  this.isInteractive = true;
145
149
  }
@@ -197,9 +201,10 @@ exports.OpenIOSCommand = OpenIOSCommand;
197
201
  class V {
198
202
  constructor($startService) {
199
203
  this.$startService = $startService;
200
- this.key = "V";
204
+ this.key = "v";
201
205
  this.platform = "visionOS";
202
206
  this.description = "Run visionOS app";
207
+ this.group = "visionOS";
203
208
  }
204
209
  execute() {
205
210
  return __awaiter(this, void 0, void 0, function* () {
@@ -222,7 +227,8 @@ class ShiftV {
222
227
  this.$options = $options;
223
228
  this.key = "V";
224
229
  this.platform = "visionOS";
225
- this.description = "Open visionOS project in Xcode";
230
+ this.description = "Open project in Xcode";
231
+ this.group = "visionOS";
226
232
  this.willBlockKeyCommandExecution = true;
227
233
  this.isInteractive = true;
228
234
  }
@@ -285,6 +291,7 @@ class R {
285
291
  this.key = "r";
286
292
  this.platform = "all";
287
293
  this.description = "Rebuild native app if needed and restart";
294
+ this.group = "Development Workflow";
288
295
  this.willBlockKeyCommandExecution = true;
289
296
  }
290
297
  execute(platform) {
@@ -303,6 +310,7 @@ class ShiftR {
303
310
  this.key = "R";
304
311
  this.platform = "all";
305
312
  this.description = "Force rebuild native app and restart";
313
+ this.group = "Development Workflow";
306
314
  this.willBlockKeyCommandExecution = true;
307
315
  }
308
316
  execute(platform) {
@@ -321,6 +329,7 @@ class CtrlC {
321
329
  constructor() {
322
330
  this.key = "\u0003";
323
331
  this.platform = "all";
332
+ this.group = "Development Workflow";
324
333
  this.willBlockKeyCommandExecution = false;
325
334
  }
326
335
  execute() {
@@ -336,6 +345,7 @@ class W {
336
345
  this.key = "w";
337
346
  this.platform = "all";
338
347
  this.description = "Toggle file watcher";
348
+ this.group = "Development Workflow";
339
349
  this.willBlockKeyCommandExecution = true;
340
350
  }
341
351
  execute() {
@@ -358,6 +368,7 @@ class C {
358
368
  this.key = "c";
359
369
  this.platform = "all";
360
370
  this.description = "Clean project";
371
+ this.group = "Development Workflow";
361
372
  this.willBlockKeyCommandExecution = true;
362
373
  }
363
374
  execute() {
@@ -380,6 +391,7 @@ class N {
380
391
  this.key = "n";
381
392
  this.platform = "all";
382
393
  this.description = "Install dependencies";
394
+ this.group = "Development Workflow";
383
395
  this.willBlockKeyCommandExecution = true;
384
396
  }
385
397
  execute(platform) {
@@ -397,6 +409,7 @@ class QuestionMark {
397
409
  this.key = "?";
398
410
  this.platform = "all";
399
411
  this.description = "Show this help";
412
+ this.group = "Development Workflow";
400
413
  this.willBlockKeyCommandExecution = true;
401
414
  }
402
415
  execute(platform_) {
@@ -424,9 +437,10 @@ class QuestionMark {
424
437
  }
425
438
  exports.QuestionMark = QuestionMark;
426
439
  yok_1.injector.registerKeyCommand("a", A);
427
- yok_1.injector.registerKeyCommand("i", I);
428
440
  yok_1.injector.registerKeyCommand("A", ShiftA);
441
+ yok_1.injector.registerKeyCommand("i", I);
429
442
  yok_1.injector.registerKeyCommand("I", ShiftI);
443
+ yok_1.injector.registerKeyCommand("v", V);
430
444
  yok_1.injector.registerKeyCommand("V", ShiftV);
431
445
  yok_1.injector.registerKeyCommand("r", R);
432
446
  yok_1.injector.registerKeyCommand("R", ShiftR);
@@ -14,7 +14,8 @@ const path = require("path");
14
14
  const plist_merge_patch_1 = require("plist-merge-patch");
15
15
  const yok_1 = require("../common/yok");
16
16
  class IOSEntitlementsService {
17
- constructor($fs, $logger, $devicePlatformsConstants, $mobileHelper, $pluginsService) {
17
+ constructor($options, $fs, $logger, $devicePlatformsConstants, $mobileHelper, $pluginsService) {
18
+ this.$options = $options;
18
19
  this.$fs = $fs;
19
20
  this.$logger = $logger;
20
21
  this.$devicePlatformsConstants = $devicePlatformsConstants;
@@ -22,12 +23,14 @@ class IOSEntitlementsService {
22
23
  this.$pluginsService = $pluginsService;
23
24
  }
24
25
  getDefaultAppEntitlementsPath(projectData) {
26
+ var _a;
25
27
  const entitlementsName = IOSEntitlementsService.DefaultEntitlementsName;
26
- const entitlementsPath = path.join(projectData.appResourcesDirectoryPath, this.$mobileHelper.normalizePlatformName(this.$devicePlatformsConstants.iOS), entitlementsName);
28
+ const entitlementsPath = path.join(projectData.appResourcesDirectoryPath, this.$mobileHelper.normalizePlatformName((_a = this.$options.platformOverride) !== null && _a !== void 0 ? _a : this.$devicePlatformsConstants.iOS), entitlementsName);
27
29
  return entitlementsPath;
28
30
  }
29
31
  getPlatformsEntitlementsPath(projectData) {
30
- return path.join(projectData.platformsDir, this.$devicePlatformsConstants.iOS.toLowerCase(), projectData.projectName, projectData.projectName + ".entitlements");
32
+ var _a;
33
+ return path.join(projectData.platformsDir, (_a = this.$options.platformOverride) !== null && _a !== void 0 ? _a : this.$devicePlatformsConstants.iOS.toLowerCase(), projectData.projectName, projectData.projectName + ".entitlements");
31
34
  }
32
35
  getPlatformsEntitlementsRelativePath(projectData) {
33
36
  return path.join(projectData.projectName, projectData.projectName + ".entitlements");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nativescript",
3
3
  "preferGlobal": true,
4
- "version": "8.6.6-vision.10",
4
+ "version": "8.6.6-vision.11",
5
5
  "author": "NativeScript <support@nativescript.org>",
6
6
  "description": "Command-line interface for building NativeScript projects",
7
7
  "bin": {