nativescript 8.8.3 → 8.9.0-alpha.1

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 (327) hide show
  1. package/lib/.d.ts +1 -0
  2. package/lib/android-tools-info.js +0 -12
  3. package/lib/base-package-manager.js +0 -7
  4. package/lib/bootstrap.js +1 -5
  5. package/lib/bun-package-manager.js +1 -17
  6. package/lib/color.js +0 -3
  7. package/lib/commands/add-platform.js +0 -1
  8. package/lib/commands/apple-login.js +0 -1
  9. package/lib/commands/appstore-list.js +0 -1
  10. package/lib/commands/appstore-upload.js +3 -10
  11. package/lib/commands/build.js +2 -3
  12. package/lib/commands/clean.js +1 -22
  13. package/lib/commands/command-base.js +0 -1
  14. package/lib/commands/config.js +0 -3
  15. package/lib/commands/create-project.js +0 -6
  16. package/lib/commands/debug.js +1 -6
  17. package/lib/commands/deploy.js +2 -3
  18. package/lib/commands/embedding/embed.js +0 -7
  19. package/lib/commands/extensibility/install-extension.js +0 -1
  20. package/lib/commands/extensibility/list-extensions.js +0 -1
  21. package/lib/commands/extensibility/uninstall-extension.js +0 -1
  22. package/lib/commands/fonts.js +0 -1
  23. package/lib/commands/generate-assets.js +0 -1
  24. package/lib/commands/generate-help.js +0 -1
  25. package/lib/commands/generate.js +2 -12
  26. package/lib/commands/info.js +0 -1
  27. package/lib/commands/install.js +0 -1
  28. package/lib/commands/list-platforms.js +0 -1
  29. package/lib/commands/migrate.js +0 -1
  30. package/lib/commands/native-add.js +0 -5
  31. package/lib/commands/platform-clean.js +0 -1
  32. package/lib/commands/plugin/add-plugin.js +0 -1
  33. package/lib/commands/plugin/build-plugin.js +0 -1
  34. package/lib/commands/plugin/create-plugin.js +0 -5
  35. package/lib/commands/plugin/list-plugins.js +0 -1
  36. package/lib/commands/plugin/remove-plugin.js +0 -2
  37. package/lib/commands/plugin/update-plugin.js +0 -1
  38. package/lib/commands/post-install.js +0 -6
  39. package/lib/commands/prepare.js +3 -4
  40. package/lib/commands/preview.js +0 -2
  41. package/lib/commands/remove-platform.js +0 -1
  42. package/lib/commands/resources/resources-update.js +0 -2
  43. package/lib/commands/run.js +0 -1
  44. package/lib/commands/setup.js +0 -1
  45. package/lib/commands/start.js +0 -1
  46. package/lib/commands/test-init.js +0 -4
  47. package/lib/commands/test.js +2 -9
  48. package/lib/commands/typings.js +1 -2
  49. package/lib/commands/update-platform.js +0 -5
  50. package/lib/commands/update.js +0 -2
  51. package/lib/common/bootstrap.js +0 -1
  52. package/lib/common/child-process.js +0 -3
  53. package/lib/common/codeGeneration/code-entity.js +0 -1
  54. package/lib/common/codeGeneration/code-printer.js +0 -1
  55. package/lib/common/command-params.js +0 -1
  56. package/lib/common/commands/analytics.js +0 -3
  57. package/lib/common/commands/autocompletion.js +0 -3
  58. package/lib/common/commands/device/device-log-stream.js +0 -1
  59. package/lib/common/commands/device/get-file.js +0 -2
  60. package/lib/common/commands/device/list-applications.js +0 -1
  61. package/lib/common/commands/device/list-devices.js +0 -3
  62. package/lib/common/commands/device/list-files.js +0 -2
  63. package/lib/common/commands/device/put-file.js +0 -2
  64. package/lib/common/commands/device/run-application.js +0 -1
  65. package/lib/common/commands/device/stop-application.js +0 -1
  66. package/lib/common/commands/device/uninstall-application.js +0 -1
  67. package/lib/common/commands/doctor.js +2 -3
  68. package/lib/common/commands/generate-messages.js +0 -1
  69. package/lib/common/commands/help.js +0 -1
  70. package/lib/common/commands/package-manager-get.js +0 -1
  71. package/lib/common/commands/package-manager-set.js +0 -1
  72. package/lib/common/commands/post-install.js +0 -1
  73. package/lib/common/commands/preuninstall.js +2 -11
  74. package/lib/common/commands/proxy/proxy-base.js +0 -4
  75. package/lib/common/commands/proxy/proxy-clear.js +0 -1
  76. package/lib/common/commands/proxy/proxy-get.js +0 -1
  77. package/lib/common/commands/proxy/proxy-set.js +0 -1
  78. package/lib/common/common-lib.js +0 -1
  79. package/lib/common/constants.js +0 -11
  80. package/lib/common/decorators.js +0 -48
  81. package/lib/common/dispatchers.js +1 -10
  82. package/lib/common/errors.js +3 -13
  83. package/lib/common/file-system.js +2 -13
  84. package/lib/common/header.js +0 -3
  85. package/lib/common/helpers.js +3 -89
  86. package/lib/common/host-info.js +0 -4
  87. package/lib/common/http-client.js +0 -20
  88. package/lib/common/logger/appenders/cli-appender.js +0 -4
  89. package/lib/common/logger/appenders/emit-appender.js +0 -4
  90. package/lib/common/logger/layouts/cli-layout.js +0 -1
  91. package/lib/common/logger/logger.js +0 -5
  92. package/lib/common/messages/messages.js +0 -6
  93. package/lib/common/mobile/android/android-application-manager.js +1 -20
  94. package/lib/common/mobile/android/android-debug-bridge-result-handler.js +0 -1
  95. package/lib/common/mobile/android/android-debug-bridge.js +0 -6
  96. package/lib/common/mobile/android/android-device-file-system.js +0 -4
  97. package/lib/common/mobile/android/android-device-hash-service.js +0 -3
  98. package/lib/common/mobile/android/android-device.js +0 -8
  99. package/lib/common/mobile/android/android-emulator-services.js +1 -2
  100. package/lib/common/mobile/android/android-ini-file-parser.js +0 -9
  101. package/lib/common/mobile/android/android-log-filter.js +0 -4
  102. package/lib/common/mobile/android/android-virtual-device-service.js +0 -26
  103. package/lib/common/mobile/android/device-android-debug-bridge.js +0 -1
  104. package/lib/common/mobile/android/genymotion/genymotion-service.js +0 -5
  105. package/lib/common/mobile/android/genymotion/virtualbox-service.js +0 -11
  106. package/lib/common/mobile/android/logcat-helper.js +1 -14
  107. package/lib/common/mobile/application-manager-base.js +0 -6
  108. package/lib/common/mobile/device-emitter.js +0 -4
  109. package/lib/common/mobile/device-log-emitter.js +0 -1
  110. package/lib/common/mobile/device-log-provider-base.js +0 -1
  111. package/lib/common/mobile/device-log-provider.js +0 -23
  112. package/lib/common/mobile/device-platforms-constants.js +0 -1
  113. package/lib/common/mobile/emulator-helper.js +0 -3
  114. package/lib/common/mobile/ios/device/ios-application-manager.js +0 -3
  115. package/lib/common/mobile/ios/device/ios-device-file-system.js +0 -1
  116. package/lib/common/mobile/ios/device/ios-device-operations.js +0 -4
  117. package/lib/common/mobile/ios/device/ios-device.js +0 -4
  118. package/lib/common/mobile/ios/ios-device-base.js +0 -1
  119. package/lib/common/mobile/ios/ios-device-product-name-mapper.js +0 -2
  120. package/lib/common/mobile/ios/ios-log-filter.js +0 -1
  121. package/lib/common/mobile/ios/simulator/ios-emulator-services.js +0 -4
  122. package/lib/common/mobile/ios/simulator/ios-sim-resolver.js +0 -1
  123. package/lib/common/mobile/ios/simulator/ios-simulator-application-manager.js +0 -6
  124. package/lib/common/mobile/ios/simulator/ios-simulator-device.js +0 -5
  125. package/lib/common/mobile/ios/simulator/ios-simulator-file-system.js +0 -1
  126. package/lib/common/mobile/ios/simulator/ios-simulator-log-provider.js +0 -1
  127. package/lib/common/mobile/local-to-device-path-data-factory.js +0 -1
  128. package/lib/common/mobile/log-filter.js +0 -2
  129. package/lib/common/mobile/logging-levels.js +0 -1
  130. package/lib/common/mobile/mobile-core/android-device-discovery.js +0 -2
  131. package/lib/common/mobile/mobile-core/android-emulator-discovery.js +0 -3
  132. package/lib/common/mobile/mobile-core/android-process-service.js +0 -32
  133. package/lib/common/mobile/mobile-core/device-discovery.js +0 -1
  134. package/lib/common/mobile/mobile-core/devices-service.js +0 -69
  135. package/lib/common/mobile/mobile-core/ios-device-discovery.js +0 -2
  136. package/lib/common/mobile/mobile-core/ios-simulator-discovery.js +0 -3
  137. package/lib/common/mobile/mobile-helper.js +0 -1
  138. package/lib/common/mobile/wp8/wp8-emulator-services.js +0 -1
  139. package/lib/common/opener.js +0 -1
  140. package/lib/common/os-info.js +0 -1
  141. package/lib/common/plist-parser.js +0 -1
  142. package/lib/common/project-helper.js +0 -1
  143. package/lib/common/prompter.js +1 -9
  144. package/lib/common/queue.js +0 -1
  145. package/lib/common/resource-loader.js +0 -1
  146. package/lib/common/services/auto-completion-service.js +1 -13
  147. package/lib/common/services/cancellation.js +1 -2
  148. package/lib/common/services/commands-service.js +6 -17
  149. package/lib/common/services/help-service.js +3 -11
  150. package/lib/common/services/hooks-service.js +0 -13
  151. package/lib/common/services/ios-notification-service.js +0 -1
  152. package/lib/common/services/json-file-settings-service.js +0 -6
  153. package/lib/common/services/lock-service.js +0 -6
  154. package/lib/common/services/message-contract-generator.js +0 -1
  155. package/lib/common/services/messages-service.js +0 -1
  156. package/lib/common/services/micro-templating-service.js +0 -6
  157. package/lib/common/services/net-service.js +0 -3
  158. package/lib/common/services/project-files-manager.js +0 -5
  159. package/lib/common/services/project-files-provider-base.js +0 -1
  160. package/lib/common/services/proxy-service.js +0 -1
  161. package/lib/common/services/qr.js +0 -1
  162. package/lib/common/services/settings-service.js +0 -1
  163. package/lib/common/services/xcode-select-service.js +0 -1
  164. package/lib/common/utils.js +0 -1
  165. package/lib/common/validators/project-name-validator.js +0 -1
  166. package/lib/common/validators/validation-result.js +0 -1
  167. package/lib/common/verify-node-version.js +1 -8
  168. package/lib/common/yok.js +11 -32
  169. package/lib/config.js +1 -22
  170. package/lib/constants-provider.js +0 -1
  171. package/lib/constants.js +0 -53
  172. package/lib/controllers/build-controller.js +3 -4
  173. package/lib/controllers/debug-controller.js +3 -8
  174. package/lib/controllers/deploy-controller.js +0 -1
  175. package/lib/controllers/migrate-controller.js +3 -91
  176. package/lib/controllers/platform-controller.js +1 -9
  177. package/lib/controllers/prepare-controller.js +9 -19
  178. package/lib/controllers/run-controller.js +1 -17
  179. package/lib/controllers/update-controller-base.js +0 -1
  180. package/lib/controllers/update-controller.js +0 -11
  181. package/lib/data/build-data.js +0 -1
  182. package/lib/data/controller-data-base.js +0 -1
  183. package/lib/data/debug-data.js +0 -1
  184. package/lib/data/platform-data.js +0 -1
  185. package/lib/data/prepare-data.js +1 -1
  186. package/lib/data/run-data.js +0 -1
  187. package/lib/declarations.d.ts +1 -1
  188. package/lib/definitions/prepare.d.ts +2 -0
  189. package/lib/detached-processes/cleanup-js-subprocess.js +2 -8
  190. package/lib/detached-processes/cleanup-process.js +14 -18
  191. package/lib/detached-processes/file-log-service.js +1 -2
  192. package/lib/device-path-provider.js +0 -1
  193. package/lib/device-sockets/ios/app-debug-socket-proxy-factory.js +0 -7
  194. package/lib/device-sockets/ios/notification.js +0 -3
  195. package/lib/device-sockets/ios/socket-request-executor.js +0 -3
  196. package/lib/helpers/android-bundle-validator-helper.js +1 -2
  197. package/lib/helpers/deploy-command-helper.js +0 -1
  198. package/lib/helpers/key-command-helper.js +2 -4
  199. package/lib/helpers/livesync-command-helper.js +1 -4
  200. package/lib/helpers/network-connectivity-validator.js +0 -1
  201. package/lib/helpers/options-track-helper.js +2 -3
  202. package/lib/helpers/package-path-helper.js +0 -1
  203. package/lib/helpers/platform-command-helper.js +2 -7
  204. package/lib/helpers/version-validator-helper.js +0 -1
  205. package/lib/key-commands/bootstrap.js +2 -3
  206. package/lib/key-commands/index.js +32 -26
  207. package/lib/nativescript-cli-lib-bootstrap.js +0 -4
  208. package/lib/nativescript-cli-lib.js +0 -1
  209. package/lib/nativescript-cli.js +1 -10
  210. package/lib/node/pbxproj-dom-xcode.js +0 -1
  211. package/lib/node/xcode.js +0 -1
  212. package/lib/node-package-manager.js +1 -11
  213. package/lib/options.js +119 -143
  214. package/lib/package-installation-manager.js +1 -8
  215. package/lib/package-manager.js +0 -2
  216. package/lib/platform-command-param.js +0 -1
  217. package/lib/pnpm-package-manager.js +1 -4
  218. package/lib/project-data.js +0 -12
  219. package/lib/providers/project-files-provider.js +0 -1
  220. package/lib/resolvers/livesync-service-resolver.js +0 -1
  221. package/lib/services/analytics/analytics-broker-process.js +6 -10
  222. package/lib/services/analytics/analytics-broker.js +1 -2
  223. package/lib/services/analytics/analytics-service.js +25 -29
  224. package/lib/services/analytics/google-analytics-provider.js +12 -13
  225. package/lib/services/analytics-settings-service.js +0 -5
  226. package/lib/services/android/android-bundle-tool-service.js +0 -1
  227. package/lib/services/android/gradle-build-args-service.js +0 -3
  228. package/lib/services/android/gradle-build-service.js +0 -1
  229. package/lib/services/android/gradle-command-service.js +0 -1
  230. package/lib/services/android-device-debug-service.js +0 -6
  231. package/lib/services/android-plugin-build-service.js +0 -29
  232. package/lib/services/android-project-service.js +4 -71
  233. package/lib/services/android-resources-migration-service.js +0 -7
  234. package/lib/services/apple-portal/apple-portal-application-service.js +1 -2
  235. package/lib/services/apple-portal/apple-portal-cookie-service.js +0 -1
  236. package/lib/services/apple-portal/apple-portal-session-service.js +42 -15
  237. package/lib/services/apple-portal/srp/srp-wrapper.js +76 -0
  238. package/lib/services/assets-generation/assets-generation-service.js +5 -16
  239. package/lib/services/build-artifacts-service.js +1 -2
  240. package/lib/services/build-data-service.js +0 -1
  241. package/lib/services/build-info-file-service.js +0 -1
  242. package/lib/services/cleanup-service.js +9 -13
  243. package/lib/services/cocoapods-platform-manager.js +0 -9
  244. package/lib/services/cocoapods-service.js +1 -21
  245. package/lib/services/debug-data-service.js +0 -1
  246. package/lib/services/debug-service-base.js +0 -7
  247. package/lib/services/device/device-install-app-service.js +1 -2
  248. package/lib/services/doctor-service.js +6 -21
  249. package/lib/services/extensibility-service.js +0 -8
  250. package/lib/services/files-hash-service.js +0 -1
  251. package/lib/services/hmr-status-service.js +0 -2
  252. package/lib/services/info-service.js +0 -1
  253. package/lib/services/initialize-service.js +1 -5
  254. package/lib/services/ios/export-options-plist-service.js +4 -6
  255. package/lib/services/ios/ios-signing-service.js +45 -27
  256. package/lib/services/ios/spm-service.js +0 -9
  257. package/lib/services/ios/xcodebuild-args-service.js +0 -9
  258. package/lib/services/ios/xcodebuild-command-service.js +0 -1
  259. package/lib/services/ios/xcodebuild-service.js +2 -1
  260. package/lib/services/ios-debugger-port-service.js +0 -1
  261. package/lib/services/ios-device-debug-service.js +0 -1
  262. package/lib/services/ios-entitlements-service.js +0 -1
  263. package/lib/services/ios-extensions-service.js +0 -1
  264. package/lib/services/ios-log-filter.js +0 -20
  265. package/lib/services/ios-native-target-service.js +4 -6
  266. package/lib/services/ios-project-service.js +2 -94
  267. package/lib/services/ios-provision-service.js +0 -3
  268. package/lib/services/ios-watch-app-service.js +0 -1
  269. package/lib/services/ip-service.js +0 -2
  270. package/lib/services/itmstransporter-service.js +0 -1
  271. package/lib/services/karma-execution.js +0 -2
  272. package/lib/services/livesync/android-device-livesync-service-base.js +0 -1
  273. package/lib/services/livesync/android-device-livesync-service.js +0 -2
  274. package/lib/services/livesync/android-device-livesync-sockets-service.js +0 -3
  275. package/lib/services/livesync/android-livesync-service.js +0 -1
  276. package/lib/services/livesync/android-livesync-tool.js +0 -4
  277. package/lib/services/livesync/device-livesync-service-base.js +0 -2
  278. package/lib/services/livesync/ios-device-livesync-service.js +0 -7
  279. package/lib/services/livesync/ios-livesync-service.js +0 -2
  280. package/lib/services/livesync/livesync-socket.js +0 -1
  281. package/lib/services/livesync/platform-livesync-service-base.js +0 -5
  282. package/lib/services/livesync-process-data-service.js +0 -1
  283. package/lib/services/log-parser-service.js +0 -1
  284. package/lib/services/log-source-map-service.js +0 -15
  285. package/lib/services/marking-mode-service.js +5 -8
  286. package/lib/services/metadata-filtering-service.js +0 -1
  287. package/lib/services/npm-config-service.js +0 -4
  288. package/lib/services/pacote-service.js +0 -7
  289. package/lib/services/performance-service.js +1 -3
  290. package/lib/services/platform/add-platform-service.js +2 -49
  291. package/lib/services/platform/platform-validation-service.js +0 -1
  292. package/lib/services/platform/prepare-native-platform-service.js +2 -5
  293. package/lib/services/platform-environment-requirements.js +3 -8
  294. package/lib/services/platform-project-service-base.js +0 -1
  295. package/lib/services/platforms-data-service.js +0 -1
  296. package/lib/services/plugins-service.js +2 -20
  297. package/lib/services/prepare-data-service.js +0 -1
  298. package/lib/services/project-backup-service.js +0 -4
  299. package/lib/services/project-changes-service.js +3 -14
  300. package/lib/services/project-cleanup-service.js +0 -2
  301. package/lib/services/project-config-service.js +2 -22
  302. package/lib/services/project-data-service.js +7 -36
  303. package/lib/services/project-name-service.js +0 -1
  304. package/lib/services/project-service.js +0 -10
  305. package/lib/services/project-templates-service.js +2 -3
  306. package/lib/services/qr-code-terminal-service.js +0 -1
  307. package/lib/services/require-service.js +0 -1
  308. package/lib/services/start-service.js +0 -1
  309. package/lib/services/temp-service.js +0 -1
  310. package/lib/services/terminal-spinner-service.js +0 -2
  311. package/lib/services/test-execution-service.js +2 -9
  312. package/lib/services/test-initialization-service.js +0 -4
  313. package/lib/services/timeline-profiler-service.js +0 -1
  314. package/lib/services/user-settings-service.js +0 -1
  315. package/lib/services/versions-service.js +4 -6
  316. package/lib/services/watch-ignore-list-service.js +0 -1
  317. package/lib/services/webpack/webpack-compiler-service.js +9 -44
  318. package/lib/services/xcconfig-service.js +0 -2
  319. package/lib/services/xcproj-service.js +0 -1
  320. package/lib/shared-event-bus.js +0 -6
  321. package/lib/sys-info.js +1 -2
  322. package/lib/tools/config-manipulation/config-transformer.js +0 -12
  323. package/lib/tools/node-modules/node-modules-builder.js +0 -1
  324. package/lib/tools/node-modules/node-modules-dependencies-builder.js +0 -6
  325. package/lib/yarn-package-manager.js +0 -1
  326. package/lib/yarn2-package-manager.js +0 -3
  327. package/package.json +4 -3
@@ -4,4 +4,3 @@ exports.DebugData = void 0;
4
4
  class DebugData {
5
5
  }
6
6
  exports.DebugData = DebugData;
7
- //# sourceMappingURL=debug-data.js.map
@@ -11,4 +11,3 @@ class AddPlatformData extends controller_data_base_1.ControllerDataBase {
11
11
  }
12
12
  }
13
13
  exports.AddPlatformData = AddPlatformData;
14
- //# sourceMappingURL=platform-data.js.map
@@ -30,6 +30,7 @@ class PrepareData extends controller_data_base_1.ControllerDataBase {
30
30
  this.watchNative = data.watchNative;
31
31
  }
32
32
  this.hostProjectPath = data.hostProjectPath;
33
+ this.uniqueBundle = !this.watch && data.uniqueBundle ? Date.now() : 0;
33
34
  }
34
35
  }
35
36
  exports.PrepareData = PrepareData;
@@ -45,4 +46,3 @@ exports.IOSPrepareData = IOSPrepareData;
45
46
  class AndroidPrepareData extends PrepareData {
46
47
  }
47
48
  exports.AndroidPrepareData = AndroidPrepareData;
48
- //# sourceMappingURL=prepare-data.js.map
@@ -9,4 +9,3 @@ class RunData {
9
9
  }
10
10
  }
11
11
  exports.RunData = RunData;
12
- //# sourceMappingURL=run-data.js.map
@@ -709,7 +709,7 @@ interface IOptions
709
709
  dryRun: boolean;
710
710
 
711
711
  platformOverride: string;
712
-
712
+ uniqueBundle: boolean;
713
713
  // allow arbitrary options
714
714
  [optionName: string]: any;
715
715
  }
@@ -14,6 +14,8 @@ declare global {
14
14
 
15
15
  // embedding
16
16
  hostProjectPath?: string;
17
+
18
+ uniqueBundle: number;
17
19
  }
18
20
 
19
21
  interface IiOSCodeSigningData {
@@ -10,8 +10,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  });
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
- // NOTE: This file is used to call JS functions when cleaning resources used by CLI, after the CLI is killed.
14
- // The instances here are not shared with the ones in main CLI process.
15
13
  const fs = require("fs");
16
14
  const uuid_1 = require("uuid");
17
15
  const file_log_service_1 = require("./file-log-service");
@@ -20,7 +18,6 @@ const pathToBootstrap = process.argv[2];
20
18
  if (!pathToBootstrap || !fs.existsSync(pathToBootstrap)) {
21
19
  throw new Error("Invalid path to bootstrap.");
22
20
  }
23
- // After requiring the bootstrap we can use $injector
24
21
  require(pathToBootstrap);
25
22
  const logFile = process.argv[3];
26
23
  const jsFilePath = process.argv[4];
@@ -44,7 +41,6 @@ catch (err) {
44
41
  const logMessage = (msg, type) => {
45
42
  fileLogService.logData({ message: `[${uniqueId}] ${msg}`, type });
46
43
  };
47
- /* tslint:disable:no-floating-promises */
48
44
  (() => __awaiter(void 0, void 0, void 0, function* () {
49
45
  try {
50
46
  logMessage(`Requiring file ${jsFilePath}`);
@@ -56,13 +52,11 @@ const logMessage = (msg, type) => {
56
52
  logMessage(`Finished execution with data: ${JSON.stringify(data)} to the default function exported by currently required file ${jsFilePath}`);
57
53
  }
58
54
  catch (err) {
59
- logMessage(`Unable to execute action of file ${jsFilePath} when passed data is ${JSON.stringify(data)}. Error is: ${err}.`, "Error" /* FileLogMessageType.Error */);
55
+ logMessage(`Unable to execute action of file ${jsFilePath} when passed data is ${JSON.stringify(data)}. Error is: ${err}.`, "Error");
60
56
  }
61
57
  }
62
58
  }
63
59
  catch (err) {
64
- logMessage(`Unable to require file: ${jsFilePath}. Error is: ${err}.`, "Error" /* FileLogMessageType.Error */);
60
+ logMessage(`Unable to require file: ${jsFilePath}. Error is: ${err}.`, "Error");
65
61
  }
66
62
  }))();
67
- /* tslint:enable:no-floating-promises */
68
- //# sourceMappingURL=cleanup-js-subprocess.js.map
@@ -9,8 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- // NOTE: This file is used to clean up resources used by CLI, when the CLI is killed.
13
- // The instances here are not shared with the ones in main CLI process.
14
12
  const fs = require("fs");
15
13
  const path = require("path");
16
14
  const shelljs = require("shelljs");
@@ -22,7 +20,6 @@ if (!pathToBootstrap || !fs.existsSync(pathToBootstrap)) {
22
20
  throw new Error("Invalid path to bootstrap.");
23
21
  }
24
22
  const logFile = process.argv[3];
25
- // After requiring the bootstrap we can use $injector
26
23
  require(pathToBootstrap);
27
24
  const fileLogService = yok_1.injector.resolve(file_log_service_1.FileLogService, {
28
25
  logFile,
@@ -75,7 +72,7 @@ const executeJSCleanup = (jsCommand) => __awaiter(void 0, void 0, void 0, functi
75
72
  catch (err) {
76
73
  fileLogService.logData({
77
74
  message: `Unable to execute action for file ${jsCommand.filePath} with data ${JSON.stringify(jsCommand.data)}. Error is: ${err}.`,
78
- type: "Error" /* FileLogMessageType.Error */,
75
+ type: "Error",
79
76
  });
80
77
  }
81
78
  });
@@ -100,7 +97,7 @@ const executeCleanup = () => __awaiter(void 0, void 0, void 0, function* () {
100
97
  catch (err) {
101
98
  fileLogService.logData({
102
99
  message: `Unable to execute command: ${JSON.stringify(commandInfo)}. Error is: ${err}.`,
103
- type: "Error" /* FileLogMessageType.Error */,
100
+ type: "Error",
104
101
  });
105
102
  }
106
103
  }
@@ -114,7 +111,7 @@ const executeCleanup = () => __awaiter(void 0, void 0, void 0, function* () {
114
111
  catch (err) {
115
112
  fileLogService.logData({
116
113
  message: `Unable to delete files: ${JSON.stringify(filesToDelete)}. Error is: ${err}.`,
117
- type: "Error" /* FileLogMessageType.Error */,
114
+ type: "Error",
118
115
  });
119
116
  }
120
117
  }
@@ -236,36 +233,36 @@ process.on("message", (cleanupProcessMessage) => __awaiter(void 0, void 0, void
236
233
  message: `cleanup-process received message of type: ${JSON.stringify(cleanupProcessMessage)}`,
237
234
  });
238
235
  switch (cleanupProcessMessage.messageType) {
239
- case "AddCleanCommand" /* CleanupProcessMessage.AddCleanCommand */:
236
+ case "AddCleanCommand":
240
237
  addCleanupAction(cleanupProcessMessage.commandInfo);
241
238
  break;
242
- case "RemoveCleanCommand" /* CleanupProcessMessage.RemoveCleanCommand */:
239
+ case "RemoveCleanCommand":
243
240
  removeCleanupAction(cleanupProcessMessage.commandInfo);
244
241
  break;
245
- case "AddRequest" /* CleanupProcessMessage.AddRequest */:
242
+ case "AddRequest":
246
243
  addRequest(cleanupProcessMessage.requestInfo);
247
244
  break;
248
- case "RemoveRequest" /* CleanupProcessMessage.RemoveRequest */:
245
+ case "RemoveRequest":
249
246
  removeRequest(cleanupProcessMessage.requestInfo);
250
247
  break;
251
- case "AddDeleteFileAction" /* CleanupProcessMessage.AddDeleteFileAction */:
248
+ case "AddDeleteFileAction":
252
249
  addDeleteAction(cleanupProcessMessage.filePath);
253
250
  break;
254
- case "RemoveDeleteFileAction" /* CleanupProcessMessage.RemoveDeleteFileAction */:
251
+ case "RemoveDeleteFileAction":
255
252
  removeDeleteAction(cleanupProcessMessage.filePath);
256
253
  break;
257
- case "AddJSFileToRequire" /* CleanupProcessMessage.AddJSFileToRequire */:
254
+ case "AddJSFileToRequire":
258
255
  const jsCleanupMessage = cleanupProcessMessage;
259
256
  addJSFile(jsCleanupMessage.jsCommand);
260
257
  break;
261
- case "RemoveJSFileToRequire" /* CleanupProcessMessage.RemoveJSFileToRequire */:
258
+ case "RemoveJSFileToRequire":
262
259
  const msgToRemove = cleanupProcessMessage;
263
260
  removeJSFile(msgToRemove.jsCommand);
264
261
  break;
265
262
  default:
266
263
  fileLogService.logData({
267
264
  message: `Unable to handle message of type ${cleanupProcessMessage.messageType}. Full message is ${JSON.stringify(cleanupProcessMessage)}`,
268
- type: "Error" /* FileLogMessageType.Error */,
265
+ type: "Error",
269
266
  });
270
267
  break;
271
268
  }
@@ -279,7 +276,6 @@ process.on("disconnect", () => __awaiter(void 0, void 0, void 0, function* () {
279
276
  process.exit();
280
277
  }));
281
278
  fileLogService.logData({
282
- message: `cleanup-process will send ${"ProcessReadyToReceive" /* DetachedProcessMessages.ProcessReadyToReceive */} message`,
279
+ message: `cleanup-process will send ${"ProcessReadyToReceive"} message`,
283
280
  });
284
- process.send("ProcessReadyToReceive" /* DetachedProcessMessages.ProcessReadyToReceive */);
285
- //# sourceMappingURL=cleanup-process.js.map
281
+ process.send("ProcessReadyToReceive");
@@ -11,11 +11,10 @@ class FileLogService {
11
11
  logData(fileLoggingMessage) {
12
12
  if (this.logFile && fileLoggingMessage && fileLoggingMessage.message) {
13
13
  fileLoggingMessage.type =
14
- fileLoggingMessage.type || "Info" /* FileLogMessageType.Info */;
14
+ fileLoggingMessage.type || "Info";
15
15
  const formattedDate = (0, helpers_1.getFixedLengthDateString)();
16
16
  this.$fs.appendFile(this.logFile, `[${formattedDate}] [${fileLoggingMessage.type}] ${fileLoggingMessage.message}${os_1.EOL}`);
17
17
  }
18
18
  }
19
19
  }
20
20
  exports.FileLogService = FileLogService;
21
- //# sourceMappingURL=file-log-service.js.map
@@ -58,4 +58,3 @@ class DevicePathProvider {
58
58
  }
59
59
  exports.DevicePathProvider = DevicePathProvider;
60
60
  yok_1.injector.register("devicePathProvider", DevicePathProvider);
61
- //# sourceMappingURL=device-path-provider.js.map
@@ -88,7 +88,6 @@ class AppDebugSocketProxyFactory extends events_1.EventEmitter {
88
88
  const existingWebProxy = this.deviceWebServers[`${device.deviceInfo.identifier}-${appId}`];
89
89
  const result = existingWebProxy ||
90
90
  (yield this.addWebSocketProxy(device, appId, projectName, projectDir));
91
- // TODO: do not remove till VSCode waits for this message in order to reattach
92
91
  this.$logger.info("Opened localhost " + result.options.port);
93
92
  return result;
94
93
  });
@@ -101,13 +100,8 @@ class AppDebugSocketProxyFactory extends events_1.EventEmitter {
101
100
  if (existingServer) {
102
101
  this.$errors.fail(`Web socket proxy is already running for device '${device.deviceInfo.identifier}' and app '${appId}'`);
103
102
  }
104
- // NOTE: We will try to provide command line options to select ports, at least on the localhost.
105
103
  const localPort = yield this.$net.getAvailablePortInRange(41000);
106
104
  this.$logger.info("\nSetting up debugger proxy...\nPress Ctrl + C to terminate, or disconnect.\n");
107
- // NB: When the inspector frontend connects we might not have connected to the inspector backend yet.
108
- // That's why we use the verifyClient callback of the websocket server to stall the upgrade request until we connect.
109
- // We store the socket that connects us to the device in the upgrade request object itself and later on retrieve it
110
- // in the connection callback.
111
105
  let currentAppSocket = null;
112
106
  let currentWebSocket = null;
113
107
  const server = new ws.Server({
@@ -221,4 +215,3 @@ class AppDebugSocketProxyFactory extends events_1.EventEmitter {
221
215
  }
222
216
  exports.AppDebugSocketProxyFactory = AppDebugSocketProxyFactory;
223
217
  yok_1.injector.register("appDebugSocketProxyFactory", AppDebugSocketProxyFactory);
224
- //# sourceMappingURL=app-debug-socket-proxy-factory.js.map
@@ -6,8 +6,6 @@ const constants_1 = require("../../common/constants");
6
6
  const yok_1 = require("../../common/yok");
7
7
  class IOSNotification extends events_1.EventEmitter {
8
8
  getAttachRequest(appId, deviceId) {
9
- // It could be too early to emit this event, but we rely that if you construct attach request,
10
- // you will execute it immediately.
11
9
  this.emit(constants_1.ATTACH_REQUEST_EVENT_NAME, { deviceId, appId });
12
10
  return this.formatNotification(IOSNotification.ATTACH_REQUEST_NOTIFICATION_NAME, appId);
13
11
  }
@@ -30,4 +28,3 @@ IOSNotification.ATTACH_REQUEST_NOTIFICATION_NAME = "AttachRequest";
30
28
  IOSNotification.READY_FOR_ATTACH_NOTIFICATION_NAME = "ReadyForAttach";
31
29
  exports.IOSNotification = IOSNotification;
32
30
  yok_1.injector.register("iOSNotification", IOSNotification);
33
- //# sourceMappingURL=notification.js.map
@@ -39,8 +39,6 @@ class IOSSocketRequestExecutor {
39
39
  return __awaiter(this, void 0, void 0, function* () {
40
40
  let isSuccessful = false;
41
41
  try {
42
- // We should create this promise here because we need to send the ObserveNotification on the device
43
- // before we send the PostNotification.
44
42
  const socket = yield this.$iOSNotificationService.postNotification(deviceId, successfulyExecutedNotificationName, constants.IOS_OBSERVE_NOTIFICATION_COMMAND_TYPE);
45
43
  const notificationPromise = this.$iOSNotificationService.awaitNotification(deviceId, +socket, timeout);
46
44
  yield this.$iOSNotificationService.postNotification(deviceId, mainRequestName);
@@ -56,4 +54,3 @@ class IOSSocketRequestExecutor {
56
54
  }
57
55
  exports.IOSSocketRequestExecutor = IOSSocketRequestExecutor;
58
56
  yok_1.injector.register("iOSSocketRequestExecutor", IOSSocketRequestExecutor);
59
- //# sourceMappingURL=socket-request-executor.js.map
@@ -22,7 +22,7 @@ class AndroidBundleValidatorHelper extends version_validator_helper_1.VersionVal
22
22
  }
23
23
  validateRuntimeVersion(projectData) {
24
24
  if (this.$options.aab) {
25
- const runtimePackage = this.$projectDataService.getRuntimePackage(projectData.projectDir, "android" /* PlatformTypes.android */);
25
+ const runtimePackage = this.$projectDataService.getRuntimePackage(projectData.projectDir, "android");
26
26
  const androidRuntimeVersion = runtimePackage
27
27
  ? runtimePackage.version
28
28
  : "";
@@ -50,4 +50,3 @@ AndroidBundleValidatorHelper.MIN_RUNTIME_VERSION = "5.0.0";
50
50
  AndroidBundleValidatorHelper.MIN_ANDROID_WITH_AAB_SUPPORT = "4.4.0";
51
51
  exports.AndroidBundleValidatorHelper = AndroidBundleValidatorHelper;
52
52
  yok_1.injector.register("androidBundleValidatorHelper", AndroidBundleValidatorHelper);
53
- //# sourceMappingURL=android-bundle-validator-helper.js.map
@@ -68,4 +68,3 @@ class DeployCommandHelper {
68
68
  }
69
69
  exports.DeployCommandHelper = DeployCommandHelper;
70
70
  yok_1.injector.register("deployCommandHelper", DeployCommandHelper);
71
- //# sourceMappingURL=deploy-command-helper.js.map
@@ -17,8 +17,7 @@ class KeyCommandHelper {
17
17
  this.overrides = {};
18
18
  this.onKeyPressed = (data) => __awaiter(this, void 0, void 0, function* () {
19
19
  const key = data.toString();
20
- // Allow Ctrl + C always.
21
- if (this.keyCommandExecutionBlocked && key !== "\u0003" /* SpecialKeys.CtrlC */)
20
+ if (this.keyCommandExecutionBlocked && key !== "\u0003")
22
21
  return;
23
22
  try {
24
23
  const exists = yok_1.injector.getRegisteredKeyCommandsNames().includes(key);
@@ -41,7 +40,7 @@ class KeyCommandHelper {
41
40
  return;
42
41
  }
43
42
  }
44
- if (keyCommand.key !== "\u0003" /* SpecialKeys.CtrlC */) {
43
+ if (keyCommand.key !== "\u0003") {
45
44
  const line = ` ${color_1.color.dim("→")} ${color_1.color.bold(keyCommand.key)} — ${keyCommand.description}`;
46
45
  const lineLength = (0, color_1.stripColors)(line).length - 1;
47
46
  console.log(color_1.color.dim(` ┌${"─".repeat(lineLength)}┐`));
@@ -123,4 +122,3 @@ class KeyCommandHelper {
123
122
  }
124
123
  exports.default = KeyCommandHelper;
125
124
  yok_1.injector.register("keyCommandHelper", KeyCommandHelper);
126
- //# sourceMappingURL=key-command-helper.js.map
@@ -34,7 +34,6 @@ class LiveSyncCommandHelper {
34
34
  get $platformsDataService() {
35
35
  return this.$injector.resolve("platformsDataService");
36
36
  }
37
- // TODO: Remove this and replace it with buildData
38
37
  getLiveSyncData(projectDir) {
39
38
  const liveSyncInfo = {
40
39
  projectDir,
@@ -67,7 +66,6 @@ class LiveSyncCommandHelper {
67
66
  }
68
67
  createDeviceDescriptors(devices, platform, additionalOptions) {
69
68
  return __awaiter(this, void 0, void 0, function* () {
70
- // Now let's take data for each device:
71
69
  const deviceDescriptors = devices.map((d) => {
72
70
  const outputPath = additionalOptions &&
73
71
  additionalOptions.getOutputDirectory &&
@@ -141,7 +139,7 @@ class LiveSyncCommandHelper {
141
139
  const remainingDevicesToSync = devices.map((d) => d.deviceInfo.identifier);
142
140
  _.remove(remainingDevicesToSync, (d) => d === data.deviceIdentifier);
143
141
  if (remainingDevicesToSync.length === 0 && !data.keepProcessAlive) {
144
- process.exit(134 /* ErrorCodes.ALL_DEVICES_DISCONNECTED */);
142
+ process.exit(134);
145
143
  }
146
144
  }));
147
145
  });
@@ -220,4 +218,3 @@ class LiveSyncCommandHelper {
220
218
  }
221
219
  exports.LiveSyncCommandHelper = LiveSyncCommandHelper;
222
220
  yok_1.injector.register("liveSyncCommandHelper", LiveSyncCommandHelper);
223
- //# sourceMappingURL=livesync-command-helper.js.map
@@ -45,4 +45,3 @@ NetworkConnectivityValidator.NO_INTERNET_ERROR_CODE = "ENOTFOUND";
45
45
  NetworkConnectivityValidator.NO_INTERNET_ERROR_MESSAGE = "No internet connection. Check your internet settings and try again.";
46
46
  exports.NetworkConnectivityValidator = NetworkConnectivityValidator;
47
47
  yok_1.injector.register("networkConnectivityValidator", NetworkConnectivityValidator);
48
- //# sourceMappingURL=network-connectivity-validator.js.map
@@ -21,7 +21,7 @@ class OptionsTracker {
21
21
  return __awaiter(this, void 0, void 0, function* () {
22
22
  const trackObject = this.getTrackObject(options);
23
23
  yield this.$analyticsService.trackEventActionInGoogleAnalytics({
24
- action: "Options" /* TrackActionNames.Options */,
24
+ action: "Options",
25
25
  additionalData: JSON.stringify(trackObject),
26
26
  });
27
27
  });
@@ -69,7 +69,7 @@ class OptionsTracker {
69
69
  return true;
70
70
  }
71
71
  const optionDef = options[key];
72
- if (optionDef && optionDef.type === "boolean" /* OptionType.Boolean */) {
72
+ if (optionDef && optionDef.type === "boolean") {
73
73
  if ((optionDef.default !== true && value === false) ||
74
74
  (optionDef.default === true && value === true)) {
75
75
  return true;
@@ -86,4 +86,3 @@ OptionsTracker.PATH_REPLACE_VALUE = "_localpath";
86
86
  OptionsTracker.SIZE_EXEEDED_REPLACE_VALUE = "sizeExceeded";
87
87
  exports.OptionsTracker = OptionsTracker;
88
88
  yok_1.injector.register("optionsTracker", OptionsTracker);
89
- //# sourceMappingURL=options-track-helper.js.map
@@ -4,4 +4,3 @@ exports.resolvePackageJSONPath = exports.resolvePackagePath = void 0;
4
4
  const resolve_package_path_1 = require("@rigor789/resolve-package-path");
5
5
  Object.defineProperty(exports, "resolvePackagePath", { enumerable: true, get: function () { return resolve_package_path_1.resolvePackagePath; } });
6
6
  Object.defineProperty(exports, "resolvePackageJSONPath", { enumerable: true, get: function () { return resolve_package_path_1.resolvePackageJSONPath; } });
7
- //# sourceMappingURL=package-path-helper.js.map
@@ -84,10 +84,6 @@ class PlatformCommandHelper {
84
84
  const platformDir = path.join(projectData.platformsDir, platform.toLowerCase());
85
85
  this.$fs.deleteDirectory(platformDir);
86
86
  yield this.$packageInstallationManager.uninstall(platformData.frameworkPackageName, projectData.projectDir);
87
- // this.$projectDataService.removeNSProperty(
88
- // projectData.projectDir,
89
- // platformData.frameworkPackageName
90
- // );
91
87
  this.$logger.info(`Platform ${platform} successfully removed.`);
92
88
  }
93
89
  catch (err) {
@@ -129,7 +125,7 @@ class PlatformCommandHelper {
129
125
  const installedPlatforms = this.getInstalledPlatforms(projectData);
130
126
  return _.filter(this.$mobileHelper.platformNames, (p) => {
131
127
  return (installedPlatforms.indexOf(p) < 0 &&
132
- this.$platformValidationService.isPlatformSupportedForOS(p, projectData)); // Only those not already installed
128
+ this.$platformValidationService.isPlatformSupportedForOS(p, projectData));
133
129
  });
134
130
  }
135
131
  getPreparedPlatforms(projectData) {
@@ -153,7 +149,7 @@ class PlatformCommandHelper {
153
149
  return true;
154
150
  }
155
151
  return (prepareInfo.nativePlatformStatus !==
156
- "1" /* constants.NativePlatformStatus.requiresPlatformAdd */);
152
+ "1");
157
153
  }
158
154
  updatePlatform(platform, version, projectData) {
159
155
  return __awaiter(this, void 0, void 0, function* () {
@@ -203,4 +199,3 @@ class PlatformCommandHelper {
203
199
  }
204
200
  exports.PlatformCommandHelper = PlatformCommandHelper;
205
201
  yok_1.injector.register("platformCommandHelper", PlatformCommandHelper);
206
- //# sourceMappingURL=platform-command-helper.js.map
@@ -23,4 +23,3 @@ class VersionValidatorHelper {
23
23
  }
24
24
  }
25
25
  exports.VersionValidatorHelper = VersionValidatorHelper;
26
- //# sourceMappingURL=version-validator-helper.js.map
@@ -13,10 +13,9 @@ yok_1.injector.requireKeyCommand("R", path);
13
13
  yok_1.injector.requireKeyCommand("w", path);
14
14
  yok_1.injector.requireKeyCommand("c", path);
15
15
  yok_1.injector.requireKeyCommand("n", path);
16
- yok_1.injector.requireKeyCommand("?" /* SpecialKeys.QuestionMark */, path);
17
- yok_1.injector.requireKeyCommand("\u0003" /* SpecialKeys.CtrlC */, path);
16
+ yok_1.injector.requireKeyCommand("?", path);
17
+ yok_1.injector.requireKeyCommand("\u0003", path);
18
18
  yok_1.injector.requireCommand("open|ios", path);
19
19
  yok_1.injector.requireCommand("open|android", path);
20
20
  yok_1.injector.requireCommand("open|visionos", path);
21
21
  yok_1.injector.requireCommand("open|vision", path);
22
- //# sourceMappingURL=bootstrap.js.map
@@ -46,6 +46,25 @@ class ShiftA {
46
46
  this.willBlockKeyCommandExecution = true;
47
47
  this.isInteractive = true;
48
48
  }
49
+ getAndroidStudioPath() {
50
+ const os = (0, os_1.platform)();
51
+ if (os === "darwin") {
52
+ const possibleStudioPaths = [
53
+ "/Applications/Android Studio.app",
54
+ `${process.env.HOME}/Applications/Android Studio.app`,
55
+ ];
56
+ return possibleStudioPaths.find((p) => fs.existsSync(p)) || null;
57
+ }
58
+ else if (os === "win32") {
59
+ const studioPath = path.join("C:", "Program Files", "Android", "Android Studio", "bin", "studio64.exe");
60
+ return fs.existsSync(studioPath) ? studioPath : null;
61
+ }
62
+ else if (os === "linux") {
63
+ const studioPath = "/usr/local/android-studio/bin/studio.sh";
64
+ return fs.existsSync(studioPath) ? studioPath : null;
65
+ }
66
+ return null;
67
+ }
49
68
  execute() {
50
69
  return __awaiter(this, void 0, void 0, function* () {
51
70
  this.$liveSyncCommandHelper.validatePlatform(this.platform);
@@ -58,28 +77,20 @@ class ShiftA {
58
77
  process.stdin.resume();
59
78
  }
60
79
  }
61
- const os = (0, os_1.platform)();
62
- if (os === "darwin") {
63
- const possibleStudioPaths = [
64
- "/Applications/Android Studio.app",
65
- `${process.env.HOME}/Applications/Android Studio.app`,
66
- ];
67
- const studioPath = possibleStudioPaths.find((p) => {
68
- this.$logger.trace(`Checking for Android Studio at ${p}`);
69
- return fs.existsSync(p);
70
- });
80
+ let studioPath = null;
81
+ studioPath = process.env.NATIVESCRIPT_ANDROID_STUDIO_PATH;
82
+ if (!studioPath) {
83
+ studioPath = this.getAndroidStudioPath();
71
84
  if (!studioPath) {
72
- this.$logger.error("Android Studio is not installed, or not in a standard location.");
85
+ this.$logger.error("Android Studio is not installed, or is not in a standard location. Use NATIVESCRIPT_ANDROID_STUDIO_PATH.");
73
86
  return;
74
87
  }
88
+ }
89
+ const os = (0, os_1.platform)();
90
+ if (os === "darwin") {
75
91
  this.$childProcess.exec(`open -a "${studioPath}" ${androidDir}`);
76
92
  }
77
93
  else if (os === "win32") {
78
- const studioPath = path.join("C:", "Program Files", "Android", "Android Studio", "bin", "studio64.exe");
79
- if (!fs.existsSync(studioPath)) {
80
- this.$logger.error("Android Studio is not installed");
81
- return;
82
- }
83
94
  const child = this.$childProcess.spawn(studioPath, [androidDir], {
84
95
  detached: true,
85
96
  stdio: "ignore",
@@ -87,11 +98,7 @@ class ShiftA {
87
98
  child.unref();
88
99
  }
89
100
  else if (os === "linux") {
90
- if (!fs.existsSync(`/usr/local/android-studio/bin/studio.sh`)) {
91
- this.$logger.error("Android Studio is not installed");
92
- return;
93
- }
94
- this.$childProcess.exec(`/usr/local/android-studio/bin/studio.sh ${androidDir}`);
101
+ this.$childProcess.exec(`${studioPath} ${androidDir}`);
95
102
  }
96
103
  });
97
104
  }
@@ -327,7 +334,7 @@ class ShiftR {
327
334
  exports.ShiftR = ShiftR;
328
335
  class CtrlC {
329
336
  constructor() {
330
- this.key = "\u0003" /* SpecialKeys.CtrlC */;
337
+ this.key = "\u0003";
331
338
  this.platform = "all";
332
339
  this.group = "Development Workflow";
333
340
  this.willBlockKeyCommandExecution = false;
@@ -406,7 +413,7 @@ exports.N = N;
406
413
  class QuestionMark {
407
414
  constructor($keyCommandHelper) {
408
415
  this.$keyCommandHelper = $keyCommandHelper;
409
- this.key = "?" /* SpecialKeys.QuestionMark */;
416
+ this.key = "?";
410
417
  this.platform = "all";
411
418
  this.description = "Show this help";
412
419
  this.group = "Development Workflow";
@@ -448,10 +455,9 @@ yok_1.injector.registerKeyCommand("w", W);
448
455
  yok_1.injector.registerKeyCommand("c", C);
449
456
  yok_1.injector.registerKeyCommand("A", ShiftA);
450
457
  yok_1.injector.registerKeyCommand("n", N);
451
- yok_1.injector.registerKeyCommand("?" /* SpecialKeys.QuestionMark */, QuestionMark);
452
- yok_1.injector.registerKeyCommand("\u0003" /* SpecialKeys.CtrlC */, CtrlC);
458
+ yok_1.injector.registerKeyCommand("?", QuestionMark);
459
+ yok_1.injector.registerKeyCommand("\u0003", CtrlC);
453
460
  yok_1.injector.registerCommand("open|ios", OpenIOSCommand);
454
461
  yok_1.injector.registerCommand("open|visionos", OpenVisionOSCommand);
455
462
  yok_1.injector.registerCommand("open|vision", OpenVisionOSCommand);
456
463
  yok_1.injector.registerCommand("open|android", OpenAndroidCommand);
457
- //# sourceMappingURL=index.js.map
@@ -3,10 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const yok_1 = require("./common/yok");
4
4
  require("./bootstrap");
5
5
  yok_1.injector.overrideAlreadyRequiredModule = true;
6
- // Temporary!!! Should not require appbuilder's entry point of mobile-cli-lib,
7
- // but once we separate logics in mobile-cli-lib, we should be able to require only specific bootstrap.
8
- // Use this hack for now, as this will allow requiring {N} CLI as library directly and executing some device specific operations.
9
6
  yok_1.injector.requirePublicClass("deviceEmitter", "./common/mobile/device-emitter");
10
7
  yok_1.injector.requirePublicClass("deviceLogProvider", "./common/mobile/device-log-emitter");
11
8
  yok_1.injector.resolve("staticConfig").disableAnalytics = true;
12
- //# sourceMappingURL=nativescript-cli-lib-bootstrap.js.map
@@ -3,4 +3,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const yok_1 = require("./common/yok");
4
4
  require("./nativescript-cli-lib-bootstrap");
5
5
  module.exports = yok_1.injector.publicApi;
6
- //# sourceMappingURL=nativescript-cli-lib.js.map
@@ -18,7 +18,7 @@ const errors_1 = require("./common/errors");
18
18
  const helpers_1 = require("./common/helpers");
19
19
  const yok_1 = require("./common/yok");
20
20
  const color_1 = require("./color");
21
- (0, errors_1.installUncaughtExceptionListener)(process.exit.bind(process, 120 /* ErrorCodes.UNCAUGHT */));
21
+ (0, errors_1.installUncaughtExceptionListener)(process.exit.bind(process, 120));
22
22
  const logger = yok_1.injector.resolve("logger");
23
23
  exports.originalProcessOn = process.on.bind(process);
24
24
  process.on = (event, listener) => {
@@ -32,10 +32,8 @@ process.on = (event, listener) => {
32
32
  return (0, exports.originalProcessOn)(event, listener);
33
33
  }
34
34
  };
35
- /* tslint:disable:no-floating-promises */
36
35
  (() => __awaiter(void 0, void 0, void 0, function* () {
37
36
  if (process.argv.includes("--get-yargs-completions")) {
38
- // This is a special case when we want to get the yargs completions as fast as possible...
39
37
  yok_1.injector.resolve("$options");
40
38
  return;
41
39
  }
@@ -52,13 +50,6 @@ process.on = (event, listener) => {
52
50
  logger.trace("Unable to load extensions. Error is: ", err);
53
51
  }
54
52
  const commandDispatcher = yok_1.injector.resolve("commandDispatcher");
55
- // unused...
56
- // const messages: IMessagesService = injector.resolve("$messagesService");
57
- // messages.pathsToMessageJsonFiles = [
58
- // /* Place client-specific json message file paths here */
59
- // ];
60
53
  yield commandDispatcher.dispatchCommand();
61
54
  yok_1.injector.dispose();
62
55
  }))();
63
- /* tslint:enable:no-floating-promises */
64
- //# sourceMappingURL=nativescript-cli.js.map
@@ -3,4 +3,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const pbxprojDomXcodeModule = require("pbxproj-dom/xcode");
4
4
  const yok_1 = require("../common/yok");
5
5
  yok_1.injector.register("pbxprojDomXcode", pbxprojDomXcodeModule);
6
- //# sourceMappingURL=pbxproj-dom-xcode.js.map
package/lib/node/xcode.js CHANGED
@@ -5,4 +5,3 @@ const xcode = require("nativescript-dev-xcode");
5
5
  exports.xcode = xcode;
6
6
  const yok_1 = require("../common/yok");
7
7
  yok_1.injector.register("xcode", xcode);
8
- //# sourceMappingURL=xcode.js.map