nativescript 8.7.2 → 8.8.0-embed.0

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 (328) hide show
  1. package/lib/android-tools-info.js +0 -12
  2. package/lib/base-package-manager.js +0 -7
  3. package/lib/bootstrap.js +1 -5
  4. package/lib/bun-package-manager.js +1 -17
  5. package/lib/color.js +0 -3
  6. package/lib/commands/add-platform.js +1 -2
  7. package/lib/commands/apple-login.js +0 -1
  8. package/lib/commands/appstore-list.js +0 -1
  9. package/lib/commands/appstore-upload.js +0 -4
  10. package/lib/commands/build.js +2 -3
  11. package/lib/commands/clean.js +1 -22
  12. package/lib/commands/command-base.js +0 -1
  13. package/lib/commands/config.js +0 -3
  14. package/lib/commands/create-project.js +0 -6
  15. package/lib/commands/debug.js +1 -6
  16. package/lib/commands/deploy.js +2 -3
  17. package/lib/commands/extensibility/install-extension.js +0 -1
  18. package/lib/commands/extensibility/list-extensions.js +0 -1
  19. package/lib/commands/extensibility/uninstall-extension.js +0 -1
  20. package/lib/commands/fonts.js +0 -1
  21. package/lib/commands/generate-assets.js +0 -1
  22. package/lib/commands/generate-help.js +0 -1
  23. package/lib/commands/generate.js +2 -12
  24. package/lib/commands/info.js +0 -1
  25. package/lib/commands/install.js +0 -1
  26. package/lib/commands/list-platforms.js +0 -1
  27. package/lib/commands/migrate.js +0 -1
  28. package/lib/commands/platform-clean.js +0 -1
  29. package/lib/commands/plugin/add-plugin.js +0 -1
  30. package/lib/commands/plugin/build-plugin.js +0 -1
  31. package/lib/commands/plugin/create-plugin.js +0 -5
  32. package/lib/commands/plugin/list-plugins.js +0 -1
  33. package/lib/commands/plugin/remove-plugin.js +0 -2
  34. package/lib/commands/plugin/update-plugin.js +0 -1
  35. package/lib/commands/post-install.js +0 -6
  36. package/lib/commands/prepare.js +2 -3
  37. package/lib/commands/preview.js +0 -2
  38. package/lib/commands/remove-platform.js +0 -1
  39. package/lib/commands/resources/resources-update.js +0 -2
  40. package/lib/commands/run.js +0 -1
  41. package/lib/commands/setup.js +0 -1
  42. package/lib/commands/start.js +0 -1
  43. package/lib/commands/test-init.js +0 -4
  44. package/lib/commands/test.js +2 -9
  45. package/lib/commands/typings.js +1 -2
  46. package/lib/commands/update-platform.js +0 -5
  47. package/lib/commands/update.js +0 -2
  48. package/lib/common/bootstrap.js +0 -1
  49. package/lib/common/child-process.js +0 -3
  50. package/lib/common/codeGeneration/code-entity.js +0 -1
  51. package/lib/common/codeGeneration/code-printer.js +0 -1
  52. package/lib/common/command-params.js +0 -1
  53. package/lib/common/commands/analytics.js +0 -3
  54. package/lib/common/commands/autocompletion.js +0 -3
  55. package/lib/common/commands/device/device-log-stream.js +0 -1
  56. package/lib/common/commands/device/get-file.js +0 -2
  57. package/lib/common/commands/device/list-applications.js +0 -1
  58. package/lib/common/commands/device/list-devices.js +0 -3
  59. package/lib/common/commands/device/list-files.js +0 -2
  60. package/lib/common/commands/device/put-file.js +0 -2
  61. package/lib/common/commands/device/run-application.js +0 -1
  62. package/lib/common/commands/device/stop-application.js +0 -1
  63. package/lib/common/commands/device/uninstall-application.js +0 -1
  64. package/lib/common/commands/doctor.js +2 -3
  65. package/lib/common/commands/generate-messages.js +0 -1
  66. package/lib/common/commands/help.js +0 -1
  67. package/lib/common/commands/package-manager-get.js +0 -1
  68. package/lib/common/commands/package-manager-set.js +0 -1
  69. package/lib/common/commands/post-install.js +0 -1
  70. package/lib/common/commands/preuninstall.js +2 -11
  71. package/lib/common/commands/proxy/proxy-base.js +0 -4
  72. package/lib/common/commands/proxy/proxy-clear.js +0 -1
  73. package/lib/common/commands/proxy/proxy-get.js +0 -1
  74. package/lib/common/commands/proxy/proxy-set.js +0 -1
  75. package/lib/common/common-lib.js +0 -1
  76. package/lib/common/constants.js +0 -11
  77. package/lib/common/decorators.js +0 -48
  78. package/lib/common/dispatchers.js +1 -10
  79. package/lib/common/errors.js +3 -13
  80. package/lib/common/file-system.js +2 -13
  81. package/lib/common/header.js +0 -3
  82. package/lib/common/helpers.js +3 -89
  83. package/lib/common/host-info.js +0 -4
  84. package/lib/common/http-client.js +0 -20
  85. package/lib/common/logger/appenders/cli-appender.js +0 -4
  86. package/lib/common/logger/appenders/emit-appender.js +0 -4
  87. package/lib/common/logger/layouts/cli-layout.js +0 -1
  88. package/lib/common/logger/logger.js +0 -5
  89. package/lib/common/messages/messages.js +0 -6
  90. package/lib/common/mobile/android/android-application-manager.js +1 -20
  91. package/lib/common/mobile/android/android-debug-bridge-result-handler.js +0 -1
  92. package/lib/common/mobile/android/android-debug-bridge.js +0 -6
  93. package/lib/common/mobile/android/android-device-file-system.js +0 -4
  94. package/lib/common/mobile/android/android-device-hash-service.js +0 -3
  95. package/lib/common/mobile/android/android-device.js +0 -8
  96. package/lib/common/mobile/android/android-emulator-services.js +1 -2
  97. package/lib/common/mobile/android/android-ini-file-parser.js +0 -9
  98. package/lib/common/mobile/android/android-log-filter.js +0 -4
  99. package/lib/common/mobile/android/android-virtual-device-service.js +0 -26
  100. package/lib/common/mobile/android/device-android-debug-bridge.js +0 -1
  101. package/lib/common/mobile/android/genymotion/genymotion-service.js +0 -5
  102. package/lib/common/mobile/android/genymotion/virtualbox-service.js +0 -11
  103. package/lib/common/mobile/android/logcat-helper.js +1 -20
  104. package/lib/common/mobile/application-manager-base.js +0 -6
  105. package/lib/common/mobile/device-emitter.js +0 -4
  106. package/lib/common/mobile/device-log-emitter.js +0 -1
  107. package/lib/common/mobile/device-log-provider-base.js +0 -1
  108. package/lib/common/mobile/device-log-provider.js +0 -23
  109. package/lib/common/mobile/device-platforms-constants.js +0 -1
  110. package/lib/common/mobile/emulator-helper.js +0 -3
  111. package/lib/common/mobile/ios/device/ios-application-manager.js +0 -3
  112. package/lib/common/mobile/ios/device/ios-device-file-system.js +0 -1
  113. package/lib/common/mobile/ios/device/ios-device-operations.js +0 -4
  114. package/lib/common/mobile/ios/device/ios-device.js +0 -4
  115. package/lib/common/mobile/ios/ios-device-base.js +0 -1
  116. package/lib/common/mobile/ios/ios-device-product-name-mapper.js +0 -2
  117. package/lib/common/mobile/ios/ios-log-filter.js +0 -1
  118. package/lib/common/mobile/ios/simulator/ios-emulator-services.js +0 -4
  119. package/lib/common/mobile/ios/simulator/ios-sim-resolver.js +0 -1
  120. package/lib/common/mobile/ios/simulator/ios-simulator-application-manager.js +0 -6
  121. package/lib/common/mobile/ios/simulator/ios-simulator-device.js +0 -5
  122. package/lib/common/mobile/ios/simulator/ios-simulator-file-system.js +0 -1
  123. package/lib/common/mobile/ios/simulator/ios-simulator-log-provider.js +0 -1
  124. package/lib/common/mobile/local-to-device-path-data-factory.js +0 -1
  125. package/lib/common/mobile/log-filter.js +0 -2
  126. package/lib/common/mobile/logging-levels.js +0 -1
  127. package/lib/common/mobile/mobile-core/android-device-discovery.js +0 -2
  128. package/lib/common/mobile/mobile-core/android-emulator-discovery.js +0 -3
  129. package/lib/common/mobile/mobile-core/android-process-service.js +0 -32
  130. package/lib/common/mobile/mobile-core/device-discovery.js +0 -1
  131. package/lib/common/mobile/mobile-core/devices-service.js +0 -69
  132. package/lib/common/mobile/mobile-core/ios-device-discovery.js +0 -2
  133. package/lib/common/mobile/mobile-core/ios-simulator-discovery.js +0 -3
  134. package/lib/common/mobile/mobile-helper.js +0 -1
  135. package/lib/common/mobile/wp8/wp8-emulator-services.js +0 -1
  136. package/lib/common/opener.js +0 -1
  137. package/lib/common/os-info.js +0 -1
  138. package/lib/common/plist-parser.js +0 -1
  139. package/lib/common/project-helper.js +0 -1
  140. package/lib/common/prompter.js +1 -9
  141. package/lib/common/queue.js +0 -1
  142. package/lib/common/resource-loader.js +0 -1
  143. package/lib/common/services/auto-completion-service.js +1 -13
  144. package/lib/common/services/cancellation.js +1 -2
  145. package/lib/common/services/commands-service.js +6 -17
  146. package/lib/common/services/help-service.js +3 -11
  147. package/lib/common/services/hooks-service.js +0 -13
  148. package/lib/common/services/ios-notification-service.js +0 -1
  149. package/lib/common/services/json-file-settings-service.js +0 -6
  150. package/lib/common/services/lock-service.js +0 -6
  151. package/lib/common/services/message-contract-generator.js +0 -1
  152. package/lib/common/services/messages-service.js +0 -1
  153. package/lib/common/services/micro-templating-service.js +0 -6
  154. package/lib/common/services/net-service.js +0 -3
  155. package/lib/common/services/project-files-manager.js +0 -5
  156. package/lib/common/services/project-files-provider-base.js +0 -1
  157. package/lib/common/services/proxy-service.js +0 -1
  158. package/lib/common/services/qr.js +0 -1
  159. package/lib/common/services/settings-service.js +0 -1
  160. package/lib/common/services/xcode-select-service.js +0 -1
  161. package/lib/common/utils.js +0 -1
  162. package/lib/common/validators/project-name-validator.js +0 -1
  163. package/lib/common/validators/validation-result.js +0 -1
  164. package/lib/common/verify-node-version.js +1 -8
  165. package/lib/common/yok.js +11 -32
  166. package/lib/config.js +1 -22
  167. package/lib/constants-provider.js +0 -1
  168. package/lib/constants.js +0 -53
  169. package/lib/controllers/build-controller.js +3 -4
  170. package/lib/controllers/debug-controller.js +3 -8
  171. package/lib/controllers/deploy-controller.js +0 -1
  172. package/lib/controllers/migrate-controller.js +3 -91
  173. package/lib/controllers/platform-controller.js +1 -9
  174. package/lib/controllers/prepare-controller.js +10 -17
  175. package/lib/controllers/run-controller.js +1 -17
  176. package/lib/controllers/update-controller-base.js +0 -1
  177. package/lib/controllers/update-controller.js +0 -11
  178. package/lib/data/build-data.js +2 -1
  179. package/lib/data/controller-data-base.js +0 -1
  180. package/lib/data/debug-data.js +0 -1
  181. package/lib/data/platform-data.js +0 -1
  182. package/lib/data/prepare-data.js +1 -1
  183. package/lib/data/run-data.js +0 -1
  184. package/lib/declarations.d.ts +12 -2
  185. package/lib/definitions/platform.d.ts +1 -0
  186. package/lib/detached-processes/cleanup-js-subprocess.js +2 -8
  187. package/lib/detached-processes/cleanup-process.js +14 -18
  188. package/lib/detached-processes/file-log-service.js +1 -2
  189. package/lib/device-path-provider.js +0 -1
  190. package/lib/device-sockets/ios/app-debug-socket-proxy-factory.js +0 -7
  191. package/lib/device-sockets/ios/notification.js +0 -3
  192. package/lib/device-sockets/ios/socket-request-executor.js +0 -3
  193. package/lib/helpers/android-bundle-validator-helper.js +1 -2
  194. package/lib/helpers/deploy-command-helper.js +0 -1
  195. package/lib/helpers/key-command-helper.js +2 -4
  196. package/lib/helpers/livesync-command-helper.js +1 -4
  197. package/lib/helpers/network-connectivity-validator.js +0 -1
  198. package/lib/helpers/options-track-helper.js +2 -3
  199. package/lib/helpers/package-path-helper.js +0 -1
  200. package/lib/helpers/platform-command-helper.js +17 -10
  201. package/lib/helpers/version-validator-helper.js +0 -1
  202. package/lib/key-commands/bootstrap.js +2 -3
  203. package/lib/key-commands/index.js +4 -5
  204. package/lib/nativescript-cli-lib-bootstrap.js +0 -4
  205. package/lib/nativescript-cli-lib.js +0 -1
  206. package/lib/nativescript-cli.js +1 -10
  207. package/lib/node/pbxproj-dom-xcode.js +0 -1
  208. package/lib/node/xcode.js +0 -1
  209. package/lib/node-package-manager.js +1 -11
  210. package/lib/options.js +123 -141
  211. package/lib/package-installation-manager.js +1 -8
  212. package/lib/package-manager.js +0 -2
  213. package/lib/platform-command-param.js +0 -1
  214. package/lib/pnpm-package-manager.js +1 -4
  215. package/lib/project-data.js +0 -12
  216. package/lib/providers/project-files-provider.js +1 -2
  217. package/lib/resolvers/livesync-service-resolver.js +0 -1
  218. package/lib/services/analytics/analytics-broker-process.js +6 -10
  219. package/lib/services/analytics/analytics-broker.js +1 -2
  220. package/lib/services/analytics/analytics-service.js +25 -29
  221. package/lib/services/analytics/google-analytics-provider.js +12 -13
  222. package/lib/services/analytics-settings-service.js +0 -5
  223. package/lib/services/android/android-bundle-tool-service.js +0 -1
  224. package/lib/services/android/gradle-build-args-service.js +0 -3
  225. package/lib/services/android/gradle-build-service.js +0 -1
  226. package/lib/services/android/gradle-command-service.js +0 -1
  227. package/lib/services/android-device-debug-service.js +0 -6
  228. package/lib/services/android-plugin-build-service.js +12 -34
  229. package/lib/services/android-project-service.js +22 -86
  230. package/lib/services/android-resources-migration-service.js +0 -7
  231. package/lib/services/apple-portal/apple-portal-application-service.js +0 -1
  232. package/lib/services/apple-portal/apple-portal-cookie-service.js +0 -1
  233. package/lib/services/apple-portal/apple-portal-session-service.js +4 -6
  234. package/lib/services/assets-generation/assets-generation-service.js +13 -17
  235. package/lib/services/build-artifacts-service.js +1 -2
  236. package/lib/services/build-data-service.js +0 -1
  237. package/lib/services/build-info-file-service.js +0 -1
  238. package/lib/services/cleanup-service.js +9 -13
  239. package/lib/services/cocoapods-platform-manager.js +0 -9
  240. package/lib/services/cocoapods-service.js +1 -21
  241. package/lib/services/debug-data-service.js +0 -1
  242. package/lib/services/debug-service-base.js +0 -7
  243. package/lib/services/device/device-install-app-service.js +1 -2
  244. package/lib/services/doctor-service.js +6 -21
  245. package/lib/services/extensibility-service.js +0 -8
  246. package/lib/services/files-hash-service.js +3 -3
  247. package/lib/services/hmr-status-service.js +0 -2
  248. package/lib/services/info-service.js +0 -1
  249. package/lib/services/initialize-service.js +1 -5
  250. package/lib/services/ios/export-options-plist-service.js +0 -4
  251. package/lib/services/ios/ios-signing-service.js +0 -4
  252. package/lib/services/ios/spm-service.js +0 -9
  253. package/lib/services/ios/xcodebuild-args-service.js +0 -9
  254. package/lib/services/ios/xcodebuild-command-service.js +0 -1
  255. package/lib/services/ios/xcodebuild-service.js +0 -1
  256. package/lib/services/ios-debugger-port-service.js +0 -1
  257. package/lib/services/ios-device-debug-service.js +0 -1
  258. package/lib/services/ios-entitlements-service.js +0 -1
  259. package/lib/services/ios-extensions-service.js +0 -1
  260. package/lib/services/ios-log-filter.js +0 -20
  261. package/lib/services/ios-native-target-service.js +4 -6
  262. package/lib/services/ios-project-service.js +24 -26
  263. package/lib/services/ios-provision-service.js +0 -3
  264. package/lib/services/ios-watch-app-service.js +0 -1
  265. package/lib/services/ip-service.js +0 -2
  266. package/lib/services/itmstransporter-service.js +0 -1
  267. package/lib/services/karma-execution.js +0 -2
  268. package/lib/services/livesync/android-device-livesync-service-base.js +0 -1
  269. package/lib/services/livesync/android-device-livesync-service.js +0 -2
  270. package/lib/services/livesync/android-device-livesync-sockets-service.js +3 -7
  271. package/lib/services/livesync/android-livesync-service.js +2 -3
  272. package/lib/services/livesync/android-livesync-tool.js +0 -4
  273. package/lib/services/livesync/device-livesync-service-base.js +0 -2
  274. package/lib/services/livesync/ios-device-livesync-service.js +0 -7
  275. package/lib/services/livesync/ios-livesync-service.js +2 -4
  276. package/lib/services/livesync/livesync-socket.js +0 -1
  277. package/lib/services/livesync/platform-livesync-service-base.js +4 -8
  278. package/lib/services/livesync-process-data-service.js +0 -1
  279. package/lib/services/log-parser-service.js +0 -1
  280. package/lib/services/log-source-map-service.js +3 -17
  281. package/lib/services/marking-mode-service.js +5 -8
  282. package/lib/services/metadata-filtering-service.js +0 -1
  283. package/lib/services/npm-config-service.js +0 -4
  284. package/lib/services/pacote-service.js +0 -7
  285. package/lib/services/performance-service.js +1 -3
  286. package/lib/services/platform/add-platform-service.js +9 -48
  287. package/lib/services/platform/platform-validation-service.js +0 -1
  288. package/lib/services/platform/prepare-native-platform-service.js +8 -8
  289. package/lib/services/platform-environment-requirements.js +6 -9
  290. package/lib/services/platform-project-service-base.js +0 -1
  291. package/lib/services/platforms-data-service.js +0 -1
  292. package/lib/services/plugins-service.js +9 -19
  293. package/lib/services/prepare-data-service.js +0 -1
  294. package/lib/services/project-backup-service.js +0 -4
  295. package/lib/services/project-changes-service.js +11 -13
  296. package/lib/services/project-cleanup-service.js +0 -2
  297. package/lib/services/project-config-service.js +1 -18
  298. package/lib/services/project-data-service.js +7 -36
  299. package/lib/services/project-name-service.js +0 -1
  300. package/lib/services/project-service.js +0 -10
  301. package/lib/services/project-templates-service.js +2 -3
  302. package/lib/services/qr-code-terminal-service.js +0 -1
  303. package/lib/services/require-service.js +0 -1
  304. package/lib/services/start-service.js +0 -1
  305. package/lib/services/temp-service.js +0 -1
  306. package/lib/services/terminal-spinner-service.js +0 -2
  307. package/lib/services/test-execution-service.js +2 -9
  308. package/lib/services/test-initialization-service.js +0 -4
  309. package/lib/services/timeline-profiler-service.js +0 -1
  310. package/lib/services/user-settings-service.js +0 -1
  311. package/lib/services/versions-service.js +4 -6
  312. package/lib/services/watch-ignore-list-service.js +0 -1
  313. package/lib/services/webpack/webpack-compiler-service.js +15 -48
  314. package/lib/services/xcconfig-service.js +0 -2
  315. package/lib/services/xcproj-service.js +12 -1
  316. package/lib/shared-event-bus.js +0 -6
  317. package/lib/sys-info.js +1 -2
  318. package/lib/tools/config-manipulation/config-transformer.js +0 -12
  319. package/lib/tools/node-modules/node-modules-builder.js +0 -1
  320. package/lib/tools/node-modules/node-modules-dependencies-builder.js +0 -6
  321. package/lib/yarn-package-manager.js +0 -1
  322. package/lib/yarn2-package-manager.js +0 -3
  323. package/package.json +2 -2
  324. package/vendor/gradle-plugin/build.gradle +21 -6
  325. package/vendor/gradle-plugin/settings.gradle +13 -3
  326. package/node_modules/@npmcli/move-file/node_modules/mkdirp/CHANGELOG.md +0 -15
  327. package/node_modules/rimraf/CHANGELOG.md +0 -65
  328. package/node_modules/stringify-package/CHANGELOG.md +0 -16
@@ -9,4 +9,3 @@ class ControllerDataBase {
9
9
  }
10
10
  }
11
11
  exports.ControllerDataBase = ControllerDataBase;
12
- //# sourceMappingURL=controller-data-base.js.map
@@ -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
@@ -29,6 +29,7 @@ class PrepareData extends controller_data_base_1.ControllerDataBase {
29
29
  if (_.isBoolean(data.watchNative)) {
30
30
  this.watchNative = data.watchNative;
31
31
  }
32
+ this.nativeHost = data.nativeHost;
32
33
  }
33
34
  }
34
35
  exports.PrepareData = PrepareData;
@@ -44,4 +45,3 @@ exports.IOSPrepareData = IOSPrepareData;
44
45
  class AndroidPrepareData extends PrepareData {
45
46
  }
46
47
  exports.AndroidPrepareData = AndroidPrepareData;
47
- //# 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
@@ -578,11 +578,18 @@ interface IAndroidBundleOptions {
578
578
  aab: boolean;
579
579
  }
580
580
 
581
- interface IAndroidOptions {
581
+ interface IEmbedOptions {
582
+ nativeHost: string;
583
+ nativeHostModule: string;
584
+ }
585
+
586
+ interface IAndroidOptions extends IEmbedOptions {
582
587
  gradlePath: string;
583
588
  gradleArgs: string;
584
589
  }
585
590
 
591
+ interface IIOSOptions extends IEmbedOptions {}
592
+
586
593
  interface ITypingsOptions {
587
594
  jar: string;
588
595
  aar: string;
@@ -603,6 +610,7 @@ interface IOptions
603
610
  IProvision,
604
611
  ITeamIdentifier,
605
612
  IAndroidOptions,
613
+ IIOSOptions,
606
614
  IAndroidReleaseOptions,
607
615
  IAndroidBundleOptions,
608
616
  INpmInstallConfigurationOptions,
@@ -1009,6 +1017,7 @@ interface IXcprojService {
1009
1017
  * @return {string} The full path to the xcodeproj
1010
1018
  */
1011
1019
  getXcodeprojPath(projectData: IProjectData, projectRoot: string): string;
1020
+ findXcodeProject(dir: string): string;
1012
1021
  }
1013
1022
 
1014
1023
  /**
@@ -1216,7 +1225,8 @@ interface IPlatformCommandHelper {
1216
1225
  addPlatforms(
1217
1226
  platforms: string[],
1218
1227
  projectData: IProjectData,
1219
- frameworkPath?: string
1228
+ frameworkPath?: string,
1229
+ nativeHost?: string
1220
1230
  ): Promise<void>;
1221
1231
  cleanPlatforms(
1222
1232
  platforms: string[],
@@ -118,6 +118,7 @@ interface ICheckEnvironmentRequirementsOutput {
118
118
 
119
119
  interface IAddPlatformData extends IControllerDataBase {
120
120
  frameworkPath?: string;
121
+ nativeHost?: string;
121
122
  }
122
123
 
123
124
  interface IPlatformController {
@@ -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
@@ -16,11 +16,12 @@ const _ = require("lodash");
16
16
  const constants = require("../constants");
17
17
  const yok_1 = require("../common/yok");
18
18
  class PlatformCommandHelper {
19
- constructor($platformController, $fs, $errors, $logger, $mobileHelper, $packageInstallationManager, $pacoteService, $platformsDataService, $platformValidationService, $projectChangesService, $projectDataService, $tempService) {
19
+ constructor($platformController, $fs, $errors, $logger, $options, $mobileHelper, $packageInstallationManager, $pacoteService, $platformsDataService, $platformValidationService, $projectChangesService, $projectDataService, $tempService) {
20
20
  this.$platformController = $platformController;
21
21
  this.$fs = $fs;
22
22
  this.$errors = $errors;
23
23
  this.$logger = $logger;
24
+ this.$options = $options;
24
25
  this.$mobileHelper = $mobileHelper;
25
26
  this.$packageInstallationManager = $packageInstallationManager;
26
27
  this.$pacoteService = $pacoteService;
@@ -30,8 +31,12 @@ class PlatformCommandHelper {
30
31
  this.$projectDataService = $projectDataService;
31
32
  this.$tempService = $tempService;
32
33
  }
33
- addPlatforms(platforms, projectData, frameworkPath) {
34
+ addPlatforms(platforms, projectData, frameworkPath, nativeHost) {
34
35
  return __awaiter(this, void 0, void 0, function* () {
36
+ if (this.$options.nativeHost) {
37
+ this.$logger.info("Ignoring platform add becuase of --native-host flag");
38
+ return;
39
+ }
35
40
  const platformsDir = projectData.platformsDir;
36
41
  this.$fs.ensureDirectoryExists(platformsDir);
37
42
  for (const platform of platforms) {
@@ -45,6 +50,7 @@ class PlatformCommandHelper {
45
50
  projectDir: projectData.projectDir,
46
51
  platform,
47
52
  frameworkPath,
53
+ nativeHost,
48
54
  });
49
55
  }
50
56
  });
@@ -61,6 +67,10 @@ class PlatformCommandHelper {
61
67
  }
62
68
  removePlatforms(platforms, projectData) {
63
69
  return __awaiter(this, void 0, void 0, function* () {
70
+ if (this.$options.nativeHost) {
71
+ this.$logger.info("Ignoring platform remove becuase of --native-host flag");
72
+ return;
73
+ }
64
74
  for (const platform of platforms) {
65
75
  this.$platformValidationService.validatePlatformInstalled(platform, projectData);
66
76
  const platformData = this.$platformsDataService.getPlatformData(platform, projectData);
@@ -72,13 +82,11 @@ class PlatformCommandHelper {
72
82
  errorMessage = err.message;
73
83
  }
74
84
  try {
75
- const platformDir = path.join(projectData.platformsDir, platform.toLowerCase());
85
+ const platformDir = this.$options.nativeHost
86
+ ? this.$options.nativeHost
87
+ : path.join(projectData.platformsDir, platform.toLowerCase());
76
88
  this.$fs.deleteDirectory(platformDir);
77
89
  yield this.$packageInstallationManager.uninstall(platformData.frameworkPackageName, projectData.projectDir);
78
- // this.$projectDataService.removeNSProperty(
79
- // projectData.projectDir,
80
- // platformData.frameworkPackageName
81
- // );
82
90
  this.$logger.info(`Platform ${platform} successfully removed.`);
83
91
  }
84
92
  catch (err) {
@@ -120,7 +128,7 @@ class PlatformCommandHelper {
120
128
  const installedPlatforms = this.getInstalledPlatforms(projectData);
121
129
  return _.filter(this.$mobileHelper.platformNames, (p) => {
122
130
  return (installedPlatforms.indexOf(p) < 0 &&
123
- this.$platformValidationService.isPlatformSupportedForOS(p, projectData)); // Only those not already installed
131
+ this.$platformValidationService.isPlatformSupportedForOS(p, projectData));
124
132
  });
125
133
  }
126
134
  getPreparedPlatforms(projectData) {
@@ -144,7 +152,7 @@ class PlatformCommandHelper {
144
152
  return true;
145
153
  }
146
154
  return (prepareInfo.nativePlatformStatus !==
147
- "1" /* constants.NativePlatformStatus.requiresPlatformAdd */);
155
+ "1");
148
156
  }
149
157
  updatePlatform(platform, version, projectData) {
150
158
  return __awaiter(this, void 0, void 0, function* () {
@@ -194,4 +202,3 @@ class PlatformCommandHelper {
194
202
  }
195
203
  exports.PlatformCommandHelper = PlatformCommandHelper;
196
204
  yok_1.injector.register("platformCommandHelper", PlatformCommandHelper);
197
- //# 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
@@ -327,7 +327,7 @@ class ShiftR {
327
327
  exports.ShiftR = ShiftR;
328
328
  class CtrlC {
329
329
  constructor() {
330
- this.key = "\u0003" /* SpecialKeys.CtrlC */;
330
+ this.key = "\u0003";
331
331
  this.platform = "all";
332
332
  this.group = "Development Workflow";
333
333
  this.willBlockKeyCommandExecution = false;
@@ -406,7 +406,7 @@ exports.N = N;
406
406
  class QuestionMark {
407
407
  constructor($keyCommandHelper) {
408
408
  this.$keyCommandHelper = $keyCommandHelper;
409
- this.key = "?" /* SpecialKeys.QuestionMark */;
409
+ this.key = "?";
410
410
  this.platform = "all";
411
411
  this.description = "Show this help";
412
412
  this.group = "Development Workflow";
@@ -448,10 +448,9 @@ yok_1.injector.registerKeyCommand("w", W);
448
448
  yok_1.injector.registerKeyCommand("c", C);
449
449
  yok_1.injector.registerKeyCommand("A", ShiftA);
450
450
  yok_1.injector.registerKeyCommand("n", N);
451
- yok_1.injector.registerKeyCommand("?" /* SpecialKeys.QuestionMark */, QuestionMark);
452
- yok_1.injector.registerKeyCommand("\u0003" /* SpecialKeys.CtrlC */, CtrlC);
451
+ yok_1.injector.registerKeyCommand("?", QuestionMark);
452
+ yok_1.injector.registerKeyCommand("\u0003", CtrlC);
453
453
  yok_1.injector.registerCommand("open|ios", OpenIOSCommand);
454
454
  yok_1.injector.registerCommand("open|visionos", OpenVisionOSCommand);
455
455
  yok_1.injector.registerCommand("open|vision", OpenVisionOSCommand);
456
456
  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