nativescript 9.1.0-alpha.15 → 9.1.0-alpha.16

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 (344) hide show
  1. package/docs/build-jekyll-md.sh +1 -1
  2. package/docs/man_pages/config/config-set.md +2 -0
  3. package/lib/android-tools-info.js +0 -12
  4. package/lib/base-package-manager.js +0 -7
  5. package/lib/bootstrap.js +1 -5
  6. package/lib/bun-package-manager.js +1 -14
  7. package/lib/color.js +0 -4
  8. package/lib/commands/add-platform.js +0 -1
  9. package/lib/commands/apple-login.js +0 -1
  10. package/lib/commands/appstore-list.js +0 -1
  11. package/lib/commands/appstore-upload.js +0 -3
  12. package/lib/commands/build.js +3 -3
  13. package/lib/commands/clean.js +1 -22
  14. package/lib/commands/command-base.js +0 -1
  15. package/lib/commands/config.js +0 -5
  16. package/lib/commands/create-project.js +0 -6
  17. package/lib/commands/debug.js +2 -6
  18. package/lib/commands/deploy.js +3 -3
  19. package/lib/commands/embedding/embed.js +0 -7
  20. package/lib/commands/extensibility/install-extension.js +0 -1
  21. package/lib/commands/extensibility/list-extensions.js +0 -1
  22. package/lib/commands/extensibility/uninstall-extension.js +0 -1
  23. package/lib/commands/fonts.js +0 -1
  24. package/lib/commands/generate-assets.js +0 -1
  25. package/lib/commands/generate-help.js +0 -1
  26. package/lib/commands/generate.js +1 -48
  27. package/lib/commands/hooks/common.js +1 -2
  28. package/lib/commands/hooks/hooks-lock.js +0 -1
  29. package/lib/commands/hooks/hooks.js +0 -1
  30. package/lib/commands/info.js +0 -1
  31. package/lib/commands/install.js +0 -1
  32. package/lib/commands/list-platforms.js +0 -1
  33. package/lib/commands/migrate.js +0 -1
  34. package/lib/commands/native-add.js +0 -5
  35. package/lib/commands/platform-clean.js +0 -1
  36. package/lib/commands/plugin/add-plugin.js +0 -1
  37. package/lib/commands/plugin/build-plugin.js +0 -1
  38. package/lib/commands/plugin/create-plugin.js +0 -5
  39. package/lib/commands/plugin/list-plugins.js +0 -1
  40. package/lib/commands/plugin/remove-plugin.js +0 -2
  41. package/lib/commands/plugin/update-plugin.js +0 -1
  42. package/lib/commands/post-install.js +0 -6
  43. package/lib/commands/prepare.js +5 -5
  44. package/lib/commands/preview.js +0 -2
  45. package/lib/commands/remove-platform.js +0 -1
  46. package/lib/commands/resources/resources-update.js +0 -2
  47. package/lib/commands/run.js +0 -1
  48. package/lib/commands/setup.js +0 -1
  49. package/lib/commands/start.js +0 -1
  50. package/lib/commands/test-init.js +0 -4
  51. package/lib/commands/test.js +3 -9
  52. package/lib/commands/typings.js +1 -2
  53. package/lib/commands/update-platform.js +0 -5
  54. package/lib/commands/update.js +0 -2
  55. package/lib/commands/widget.js +0 -18
  56. package/lib/common/bootstrap.js +0 -1
  57. package/lib/common/child-process.js +0 -3
  58. package/lib/common/codeGeneration/code-entity.js +0 -1
  59. package/lib/common/codeGeneration/code-printer.js +0 -1
  60. package/lib/common/command-params.js +0 -1
  61. package/lib/common/commands/analytics.js +0 -3
  62. package/lib/common/commands/autocompletion.js +0 -3
  63. package/lib/common/commands/device/device-log-stream.js +0 -1
  64. package/lib/common/commands/device/get-file.js +0 -2
  65. package/lib/common/commands/device/list-applications.js +0 -1
  66. package/lib/common/commands/device/list-devices.js +0 -3
  67. package/lib/common/commands/device/list-files.js +0 -2
  68. package/lib/common/commands/device/put-file.js +0 -2
  69. package/lib/common/commands/device/run-application.js +0 -1
  70. package/lib/common/commands/device/stop-application.js +0 -1
  71. package/lib/common/commands/device/uninstall-application.js +0 -1
  72. package/lib/common/commands/doctor.js +3 -3
  73. package/lib/common/commands/generate-messages.js +0 -1
  74. package/lib/common/commands/help.js +0 -1
  75. package/lib/common/commands/package-manager-get.js +0 -1
  76. package/lib/common/commands/package-manager-set.js +0 -1
  77. package/lib/common/commands/post-install.js +0 -1
  78. package/lib/common/commands/preuninstall.js +2 -11
  79. package/lib/common/commands/proxy/proxy-base.js +0 -4
  80. package/lib/common/commands/proxy/proxy-clear.js +0 -1
  81. package/lib/common/commands/proxy/proxy-get.js +0 -1
  82. package/lib/common/commands/proxy/proxy-set.js +0 -1
  83. package/lib/common/common-lib.js +0 -1
  84. package/lib/common/constants.js +14 -12
  85. package/lib/common/declarations.d.ts +37 -117
  86. package/lib/common/decorators.js +0 -48
  87. package/lib/common/definitions/key-commands.js +8 -0
  88. package/lib/common/dispatchers.js +1 -10
  89. package/lib/common/enums.js +42 -0
  90. package/lib/common/errors.js +4 -13
  91. package/lib/common/file-system.js +2 -13
  92. package/lib/common/header.js +0 -3
  93. package/lib/common/helpers.js +3 -89
  94. package/lib/common/host-info.js +0 -4
  95. package/lib/common/http-client.js +0 -20
  96. package/lib/common/logger/appenders/cli-appender.js +0 -4
  97. package/lib/common/logger/appenders/emit-appender.js +0 -4
  98. package/lib/common/logger/layouts/cli-layout.js +0 -1
  99. package/lib/common/logger/logger.js +0 -5
  100. package/lib/common/messages/messages.js +0 -6
  101. package/lib/common/mobile/android/android-application-manager.js +1 -20
  102. package/lib/common/mobile/android/android-debug-bridge-result-handler.js +0 -1
  103. package/lib/common/mobile/android/android-debug-bridge.js +0 -6
  104. package/lib/common/mobile/android/android-device-file-system.js +0 -4
  105. package/lib/common/mobile/android/android-device-hash-service.js +0 -3
  106. package/lib/common/mobile/android/android-device.js +0 -8
  107. package/lib/common/mobile/android/android-emulator-services.js +1 -2
  108. package/lib/common/mobile/android/android-ini-file-parser.js +0 -9
  109. package/lib/common/mobile/android/android-log-filter.js +0 -4
  110. package/lib/common/mobile/android/android-virtual-device-service.js +0 -26
  111. package/lib/common/mobile/android/device-android-debug-bridge.js +0 -1
  112. package/lib/common/mobile/android/genymotion/genymotion-service.js +1 -6
  113. package/lib/common/mobile/android/genymotion/virtualbox-service.js +0 -11
  114. package/lib/common/mobile/android/logcat-helper.js +0 -13
  115. package/lib/common/mobile/application-manager-base.js +0 -6
  116. package/lib/common/mobile/device-emitter.js +0 -4
  117. package/lib/common/mobile/device-log-emitter.js +0 -1
  118. package/lib/common/mobile/device-log-provider-base.js +0 -1
  119. package/lib/common/mobile/device-log-provider.js +0 -23
  120. package/lib/common/mobile/device-platforms-constants.js +0 -1
  121. package/lib/common/mobile/emulator-helper.js +0 -3
  122. package/lib/common/mobile/ios/device/ios-application-manager.js +0 -3
  123. package/lib/common/mobile/ios/device/ios-device-file-system.js +0 -9
  124. package/lib/common/mobile/ios/device/ios-device-operations.js +0 -4
  125. package/lib/common/mobile/ios/device/ios-device.js +0 -4
  126. package/lib/common/mobile/ios/ios-device-base.js +0 -1
  127. package/lib/common/mobile/ios/ios-device-product-name-mapper.js +0 -2
  128. package/lib/common/mobile/ios/ios-log-filter.js +0 -1
  129. package/lib/common/mobile/ios/simulator/ios-emulator-services.js +0 -4
  130. package/lib/common/mobile/ios/simulator/ios-sim-resolver.js +0 -1
  131. package/lib/common/mobile/ios/simulator/ios-simulator-application-manager.js +0 -6
  132. package/lib/common/mobile/ios/simulator/ios-simulator-device.js +0 -5
  133. package/lib/common/mobile/ios/simulator/ios-simulator-file-system.js +0 -1
  134. package/lib/common/mobile/ios/simulator/ios-simulator-log-provider.js +0 -1
  135. package/lib/common/mobile/local-to-device-path-data-factory.js +0 -1
  136. package/lib/common/mobile/log-filter.js +0 -2
  137. package/lib/common/mobile/logging-levels.js +0 -1
  138. package/lib/common/mobile/mobile-core/android-device-discovery.js +0 -2
  139. package/lib/common/mobile/mobile-core/android-emulator-discovery.js +0 -3
  140. package/lib/common/mobile/mobile-core/android-process-service.js +0 -32
  141. package/lib/common/mobile/mobile-core/device-discovery.js +0 -1
  142. package/lib/common/mobile/mobile-core/devices-service.js +0 -69
  143. package/lib/common/mobile/mobile-core/ios-device-discovery.js +0 -2
  144. package/lib/common/mobile/mobile-core/ios-simulator-discovery.js +0 -3
  145. package/lib/common/mobile/mobile-helper.js +0 -1
  146. package/lib/common/mobile/wp8/wp8-emulator-services.js +0 -1
  147. package/lib/common/opener.js +0 -1
  148. package/lib/common/os-info.js +0 -1
  149. package/lib/common/plist-parser.js +0 -1
  150. package/lib/common/project-helper.js +0 -1
  151. package/lib/common/prompter.js +1 -9
  152. package/lib/common/queue.js +0 -1
  153. package/lib/common/resource-loader.js +0 -1
  154. package/lib/common/services/analytics/google-analytics-custom-dimensions.js +13 -0
  155. package/lib/common/services/auto-completion-service.js +1 -13
  156. package/lib/common/services/cancellation.js +2 -2
  157. package/lib/common/services/commands-service.js +8 -17
  158. package/lib/common/services/help-service.js +4 -11
  159. package/lib/common/services/hooks-service.js +0 -13
  160. package/lib/common/services/ios-notification-service.js +0 -1
  161. package/lib/common/services/json-file-settings-service.js +0 -6
  162. package/lib/common/services/lock-service.js +0 -6
  163. package/lib/common/services/message-contract-generator.js +0 -1
  164. package/lib/common/services/messages-service.js +0 -1
  165. package/lib/common/services/micro-templating-service.js +0 -6
  166. package/lib/common/services/net-service.js +0 -3
  167. package/lib/common/services/project-files-manager.js +0 -5
  168. package/lib/common/services/project-files-provider-base.js +0 -1
  169. package/lib/common/services/proxy-service.js +0 -1
  170. package/lib/common/services/qr.js +0 -1
  171. package/lib/common/services/settings-service.js +0 -1
  172. package/lib/common/services/xcode-select-service.js +0 -1
  173. package/lib/common/utils.js +0 -1
  174. package/lib/common/validators/project-name-validator.js +0 -1
  175. package/lib/common/validators/validation-result.js +0 -1
  176. package/lib/common/verify-node-version.js +2 -8
  177. package/lib/common/yok.js +12 -32
  178. package/lib/config.js +1 -22
  179. package/lib/constants-provider.js +0 -1
  180. package/lib/constants.js +54 -58
  181. package/lib/controllers/build-controller.js +3 -4
  182. package/lib/controllers/debug-controller.js +3 -8
  183. package/lib/controllers/deploy-controller.js +0 -1
  184. package/lib/controllers/migrate-controller.js +4 -90
  185. package/lib/controllers/platform-controller.js +2 -9
  186. package/lib/controllers/prepare-controller.js +8 -24
  187. package/lib/controllers/run-controller.js +1 -81
  188. package/lib/controllers/update-controller-base.js +0 -1
  189. package/lib/controllers/update-controller.js +0 -11
  190. package/lib/data/build-data.js +0 -1
  191. package/lib/data/controller-data-base.js +0 -1
  192. package/lib/data/debug-data.js +0 -1
  193. package/lib/data/platform-data.js +0 -1
  194. package/lib/data/prepare-data.js +0 -1
  195. package/lib/data/run-data.js +0 -1
  196. package/lib/definitions/project.d.ts +1 -6
  197. package/lib/definitions/system-warnings.js +8 -0
  198. package/lib/detached-processes/cleanup-js-subprocess.js +3 -8
  199. package/lib/detached-processes/cleanup-process.js +15 -18
  200. package/lib/detached-processes/detached-process-enums.js +24 -0
  201. package/lib/detached-processes/file-log-service.js +2 -2
  202. package/lib/device-path-provider.js +0 -1
  203. package/lib/device-sockets/ios/app-debug-socket-proxy-factory.js +0 -7
  204. package/lib/device-sockets/ios/notification.js +0 -3
  205. package/lib/device-sockets/ios/socket-request-executor.js +0 -3
  206. package/lib/helpers/android-bundle-validator-helper.js +1 -2
  207. package/lib/helpers/deploy-command-helper.js +0 -1
  208. package/lib/helpers/key-command-helper.js +3 -4
  209. package/lib/helpers/livesync-command-helper.js +2 -4
  210. package/lib/helpers/network-connectivity-validator.js +0 -1
  211. package/lib/helpers/options-track-helper.js +4 -3
  212. package/lib/helpers/package-path-helper.js +0 -1
  213. package/lib/helpers/platform-command-helper.js +2 -7
  214. package/lib/helpers/version-validator-helper.js +0 -1
  215. package/lib/key-commands/bootstrap.js +3 -3
  216. package/lib/key-commands/index.js +5 -5
  217. package/lib/nativescript-cli-lib-bootstrap.js +0 -4
  218. package/lib/nativescript-cli-lib.js +0 -1
  219. package/lib/nativescript-cli.js +2 -11
  220. package/lib/node/pbxproj-dom-xcode.js +0 -1
  221. package/lib/node/xcode.js +0 -1
  222. package/lib/node-package-manager.js +1 -11
  223. package/lib/options.js +121 -145
  224. package/lib/package-installation-manager.js +1 -8
  225. package/lib/package-manager.js +0 -2
  226. package/lib/platform-command-param.js +0 -1
  227. package/lib/pnpm-package-manager.js +1 -4
  228. package/lib/project-data.js +0 -12
  229. package/lib/providers/project-files-provider.js +0 -1
  230. package/lib/resolvers/livesync-service-resolver.js +0 -1
  231. package/lib/services/analytics/analytics-broker-process.js +8 -10
  232. package/lib/services/analytics/analytics-broker.js +2 -2
  233. package/lib/services/analytics/analytics-service.js +29 -29
  234. package/lib/services/analytics/google-analytics-provider.js +16 -13
  235. package/lib/services/analytics-settings-service.js +0 -5
  236. package/lib/services/android/android-bundle-tool-service.js +0 -1
  237. package/lib/services/android/gradle-build-args-service.js +0 -3
  238. package/lib/services/android/gradle-build-service.js +0 -1
  239. package/lib/services/android/gradle-command-service.js +0 -1
  240. package/lib/services/android-device-debug-service.js +0 -6
  241. package/lib/services/android-plugin-build-service.js +2 -31
  242. package/lib/services/android-project-service.js +4 -71
  243. package/lib/services/android-resources-migration-service.js +0 -7
  244. package/lib/services/apple-portal/apple-portal-application-service.js +0 -1
  245. package/lib/services/apple-portal/apple-portal-cookie-service.js +0 -1
  246. package/lib/services/apple-portal/apple-portal-session-service.js +4 -6
  247. package/lib/services/apple-portal/srp/srp-wrapper.js +1 -4
  248. package/lib/services/assets-generation/assets-generation-service.js +13 -11
  249. package/lib/services/build-artifacts-service.js +1 -2
  250. package/lib/services/build-data-service.js +0 -1
  251. package/lib/services/build-info-file-service.js +0 -1
  252. package/lib/services/bundler/bundler-compiler-service.js +1 -144
  253. package/lib/services/bundler/bundler.js +0 -1
  254. package/lib/services/cleanup-service.js +10 -13
  255. package/lib/services/cocoapods-platform-manager.js +0 -9
  256. package/lib/services/cocoapods-service.js +1 -21
  257. package/lib/services/debug-data-service.js +0 -1
  258. package/lib/services/debug-service-base.js +0 -7
  259. package/lib/services/device/device-install-app-service.js +1 -2
  260. package/lib/services/doctor-service.js +6 -21
  261. package/lib/services/extensibility-service.js +0 -8
  262. package/lib/services/files-hash-service.js +0 -1
  263. package/lib/services/hmr-status-service.js +0 -2
  264. package/lib/services/info-service.js +0 -1
  265. package/lib/services/initialize-service.js +2 -5
  266. package/lib/services/ios/export-options-plist-service.js +0 -4
  267. package/lib/services/ios/ios-signing-service.js +0 -4
  268. package/lib/services/ios/spm-service.js +0 -119
  269. package/lib/services/ios/xcodebuild-args-service.js +0 -29
  270. package/lib/services/ios/xcodebuild-command-service.js +0 -3
  271. package/lib/services/ios/xcodebuild-service.js +1 -2
  272. package/lib/services/ios-debugger-port-service.js +0 -1
  273. package/lib/services/ios-device-debug-service.js +0 -1
  274. package/lib/services/ios-entitlements-service.js +0 -1
  275. package/lib/services/ios-extensions-service.js +0 -1
  276. package/lib/services/ios-log-filter.js +0 -20
  277. package/lib/services/ios-native-target-service.js +5 -6
  278. package/lib/services/ios-project-service.js +7 -133
  279. package/lib/services/ios-provision-service.js +0 -3
  280. package/lib/services/ios-watch-app-service.js +10 -60
  281. package/lib/services/ip-service.js +0 -2
  282. package/lib/services/itmstransporter-service.js +0 -1
  283. package/lib/services/karma-execution.js +0 -2
  284. package/lib/services/livesync/android-device-livesync-service-base.js +0 -1
  285. package/lib/services/livesync/android-device-livesync-service.js +0 -2
  286. package/lib/services/livesync/android-device-livesync-sockets-service.js +0 -3
  287. package/lib/services/livesync/android-livesync-service.js +0 -1
  288. package/lib/services/livesync/android-livesync-tool.js +0 -4
  289. package/lib/services/livesync/device-livesync-service-base.js +0 -2
  290. package/lib/services/livesync/ios-device-livesync-service.js +0 -7
  291. package/lib/services/livesync/ios-livesync-service.js +0 -55
  292. package/lib/services/livesync/livesync-socket.js +0 -1
  293. package/lib/services/livesync/platform-livesync-service-base.js +0 -5
  294. package/lib/services/livesync-process-data-service.js +0 -1
  295. package/lib/services/log-parser-service.js +0 -1
  296. package/lib/services/log-source-map-service.js +0 -15
  297. package/lib/services/marking-mode-service.js +10 -8
  298. package/lib/services/metadata-filtering-service.js +0 -1
  299. package/lib/services/npm-config-service.js +0 -4
  300. package/lib/services/pacote-service.js +0 -7
  301. package/lib/services/performance-service.js +2 -3
  302. package/lib/services/platform/add-platform-service.js +2 -49
  303. package/lib/services/platform/platform-validation-service.js +0 -1
  304. package/lib/services/platform/prepare-native-platform-service.js +3 -5
  305. package/lib/services/platform-environment-requirements.js +4 -8
  306. package/lib/services/platform-project-service-base.js +0 -1
  307. package/lib/services/platforms-data-service.js +0 -1
  308. package/lib/services/plugins-service.js +2 -20
  309. package/lib/services/prepare-data-service.js +0 -1
  310. package/lib/services/project-backup-service.js +0 -4
  311. package/lib/services/project-changes-service.js +3 -14
  312. package/lib/services/project-cleanup-service.js +0 -2
  313. package/lib/services/project-config-service.js +2 -21
  314. package/lib/services/project-data-service.js +7 -36
  315. package/lib/services/project-name-service.js +0 -1
  316. package/lib/services/project-service.js +0 -10
  317. package/lib/services/project-templates-service.js +2 -3
  318. package/lib/services/qr-code-terminal-service.js +0 -1
  319. package/lib/services/require-service.js +0 -1
  320. package/lib/services/start-service.js +0 -1
  321. package/lib/services/temp-service.js +0 -3
  322. package/lib/services/terminal-spinner-service.js +0 -2
  323. package/lib/services/test-execution-service.js +3 -9
  324. package/lib/services/test-initialization-service.js +0 -4
  325. package/lib/services/timeline-profiler-service.js +0 -1
  326. package/lib/services/user-settings-service.js +0 -1
  327. package/lib/services/versions-service.js +5 -6
  328. package/lib/services/watch-ignore-list-service.js +0 -1
  329. package/lib/services/xcconfig-service.js +45 -12
  330. package/lib/services/xcproj-service.js +0 -1
  331. package/lib/shared-event-bus.js +0 -6
  332. package/lib/sys-info.js +2 -2
  333. package/lib/tools/config-manipulation/config-transformer.js +0 -12
  334. package/lib/tools/node-modules/node-modules-builder.js +0 -1
  335. package/lib/tools/node-modules/node-modules-dependencies-builder.js +0 -6
  336. package/lib/yarn-package-manager.js +0 -1
  337. package/lib/yarn2-package-manager.js +0 -3
  338. package/package.json +7 -18
  339. package/lib/.d.ts +0 -504
  340. package/lib/common/definitions/key-commands.d.ts +0 -62
  341. package/lib/common/services/analytics/google-analytics-custom-dimensions.d.ts +0 -16
  342. package/lib/definitions/system-warnings.d.ts +0 -4
  343. package/lib/detached-processes/detached-process-enums.d.ts +0 -70
  344. package/lib/services/analytics/google-analytics-cross-client-custom-dimensions.d.ts +0 -6
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PlatformController = void 0;
4
+ const constants_1 = require("../constants");
4
5
  const path = require("path");
5
6
  const yok_1 = require("../common/yok");
6
7
  class PlatformController {
@@ -84,13 +85,9 @@ class PlatformController {
84
85
  desiredRuntimePackage.version = version;
85
86
  }
86
87
  if (!desiredRuntimePackage.version) {
87
- // if no version is explicitly added, then we use the latest
88
88
  desiredRuntimePackage.version =
89
89
  await this.$packageInstallationManager.getLatestCompatibleVersion(desiredRuntimePackage.name);
90
90
  }
91
- // const currentPlatformData = this.$projectDataService.getNSValue(projectData.projectDir, platformData.frameworkPackageName);
92
- // version = (currentPlatformData && currentPlatformData.version) ||
93
- // await this.$packageInstallationManager.getLatestCompatibleVersion(platformData.frameworkPackageName);
94
91
  result = `${desiredRuntimePackage.name}@${desiredRuntimePackage.version}`;
95
92
  }
96
93
  return result;
@@ -102,14 +99,11 @@ class PlatformController {
102
99
  const prepareInfo = this.$projectChangesService.getPrepareInfo(platformData);
103
100
  const requiresNativePlatformAdd = prepareInfo &&
104
101
  prepareInfo.nativePlatformStatus ===
105
- "1" /* NativePlatformStatus.requiresPlatformAdd */;
102
+ constants_1.NativePlatformStatus.requiresPlatformAdd;
106
103
  const shouldAddPlatform = !hasPlatformDirectory ||
107
104
  (shouldAddNativePlatform && requiresNativePlatformAdd);
108
105
  if (hasPlatformDirectory && !shouldAddPlatform) {
109
106
  const platformDirectoryItemCount = this.$fs.readDirectory(path.join(projectData.platformsDir, platformName)).length;
110
- // 2 is a magic number to approximate a valid platform folder
111
- // any valid platform should contain at least 2 files/folders
112
- // we choose 2 to avoid false-positives due to system files like .DS_Store etc.
113
107
  if (platformDirectoryItemCount <= 2) {
114
108
  this.$logger.warn(`The platforms/${platformName} folder appears to be invalid. If the build fails, run 'ns clean' and rebuild the app.`, { wrapMessageWithBorders: true });
115
109
  }
@@ -119,4 +113,3 @@ class PlatformController {
119
113
  }
120
114
  exports.PlatformController = PlatformController;
121
115
  yok_1.injector.register("platformController", PlatformController);
122
- //# sourceMappingURL=platform-controller.js.map
@@ -77,10 +77,6 @@ class PrepareController extends events_1.EventEmitter {
77
77
  await this.$platformController.addPlatformIfNeeded(prepareData, projectData);
78
78
  await this.trackRuntimeVersion(prepareData.platform, projectData);
79
79
  this.$logger.info("Preparing project...");
80
- // we need to mark the ~/package.json (used by core modules)
81
- // as external for us to be able to write the config to it
82
- // in writeRuntimePackageJson() below, because otherwise
83
- // webpack will inline it into the bundle/vendor chunks
84
80
  prepareData.env = prepareData.env || {};
85
81
  prepareData.env.externals = prepareData.env.externals || [];
86
82
  prepareData.env.externals.push("~/package.json");
@@ -121,8 +117,8 @@ class PrepareController extends events_1.EventEmitter {
121
117
  },
122
118
  };
123
119
  }
124
- await this.startJSWatcherWithPrepare(platformData, projectData, prepareData); // -> start watcher + initial compilation
125
- const hasNativeChanges = await this.startNativeWatcherWithPrepare(platformData, projectData, prepareData); // -> start watcher + initial prepare
120
+ await this.startJSWatcherWithPrepare(platformData, projectData, prepareData);
121
+ const hasNativeChanges = await this.startNativeWatcherWithPrepare(platformData, projectData, prepareData);
126
122
  const result = {
127
123
  platform: platformData.platformNameLowerCase,
128
124
  hasNativeChanges,
@@ -131,7 +127,6 @@ class PrepareController extends events_1.EventEmitter {
131
127
  if (hasPersistedDataWithNativeChanges) {
132
128
  result.hasNativeChanges = true;
133
129
  }
134
- // TODO: Do not persist this in `this` context. Also it should be per platform.
135
130
  this.isInitialPrepareReady = true;
136
131
  if (this.persistedData && this.persistedData.length) {
137
132
  this.emitPrepareEvent({
@@ -184,7 +179,7 @@ class PrepareController extends events_1.EventEmitter {
184
179
  pollInterval: 100,
185
180
  stabilityThreshold: 500,
186
181
  },
187
- ignored: ["**/.*", ".*"], // hidden files
182
+ ignored: ["**/.*", ".*"],
188
183
  };
189
184
  const watcher = (0, chokidar_1.watch)(patterns, watcherOptions).on("all", async (event, filePath) => {
190
185
  if (this.isFileWatcherPaused())
@@ -226,9 +221,6 @@ class PrepareController extends events_1.EventEmitter {
226
221
  .concat(pluginsPackageJsonFiles);
227
222
  return patterns;
228
223
  }
229
- /**
230
- * TODO: move this logic to the webpack side of things - WIP and deprecate here with a webpack version check...
231
- */
232
224
  async writeRuntimePackageJson(projectData, platformData, prepareData = null) {
233
225
  var _a, _b, _c, _d, _e;
234
226
  const configInfo = this.$projectConfigService.detectProjectConfigs(projectData.projectDir);
@@ -236,23 +228,20 @@ class PrepareController extends events_1.EventEmitter {
236
228
  return;
237
229
  }
238
230
  this.$logger.info("Updating runtime package.json with configuration values...");
239
- // Tolerate a missing/unreadable config — prior to the destructure this
240
- // was a plain object spread, where `undefined` is a legal no-op.
241
231
  const { hooks, ignoredNativeDependencies, webpackPackageName, webpackConfigPath, appResourcesPath, buildPath, appPath, ...nsConfig } = (_a = this.$projectConfigService.readConfig(projectData.projectDir)) !== null && _a !== void 0 ? _a : {};
242
232
  const platform = platformData.platformNameLowerCase;
243
233
  let installedRuntimePackageJSON;
244
234
  let runtimePackageName;
245
- if (platform === "ios" /* PlatformTypes.ios */) {
235
+ if (platform === constants_1.PlatformTypes.ios) {
246
236
  runtimePackageName =
247
237
  ((_c = (_b = projectData.nsConfig) === null || _b === void 0 ? void 0 : _b.ios) === null || _c === void 0 ? void 0 : _c.runtimePackageName) ||
248
238
  constants_1.SCOPED_IOS_RUNTIME_NAME;
249
239
  }
250
- else if (platform === "android" /* PlatformTypes.android */) {
240
+ else if (platform === constants_1.PlatformTypes.android) {
251
241
  runtimePackageName =
252
242
  ((_e = (_d = projectData.nsConfig) === null || _d === void 0 ? void 0 : _d.android) === null || _e === void 0 ? void 0 : _e.runtimePackageName) ||
253
243
  constants_1.SCOPED_ANDROID_RUNTIME_NAME;
254
244
  }
255
- // try reading from installed runtime first before reading from the npm registry...
256
245
  const installedRuntimePackageJSONPath = (0, resolve_package_path_1.resolvePackageJSONPath)(runtimePackageName, {
257
246
  paths: [projectData.projectDir],
258
247
  });
@@ -265,7 +254,7 @@ class PrepareController extends events_1.EventEmitter {
265
254
  main: "bundle",
266
255
  ...(installedRuntimePackageJSON ? {} : {}),
267
256
  };
268
- if (platform === "ios" /* PlatformTypes.ios */) {
257
+ if (platform === constants_1.PlatformTypes.ios) {
269
258
  if (installedRuntimePackageJSON) {
270
259
  packageData.ios = packageData.ios || {};
271
260
  packageData.ios.runtime = {
@@ -278,7 +267,7 @@ class PrepareController extends events_1.EventEmitter {
278
267
  }
279
268
  delete packageData.android;
280
269
  }
281
- if (platform === "android" /* PlatformTypes.android */) {
270
+ if (platform === constants_1.PlatformTypes.android) {
282
271
  if (installedRuntimePackageJSON) {
283
272
  packageData.android = packageData.android || {};
284
273
  packageData.android.runtime = {
@@ -302,11 +291,7 @@ class PrepareController extends events_1.EventEmitter {
302
291
  packagePath = path.join(platformData.projectRoot, this.$options.hostProjectModuleName, "src", this.$options.hostProjectPath ? "nativescript" : "main", "assets", "app", "package.json");
303
292
  }
304
293
  try {
305
- // this will read the package.json that is already emitted by
306
- // the GenerateNativeScriptEntryPointsPlugin webpack plugin
307
294
  const emittedPackageData = this.$fs.readJson(packagePath);
308
- // since ns7 we only care about the main key from the emitted
309
- // package.json, the rest is coming from the new config.
310
295
  if (emittedPackageData === null || emittedPackageData === void 0 ? void 0 : emittedPackageData.main) {
311
296
  packageData.main = emittedPackageData.main;
312
297
  }
@@ -334,7 +319,7 @@ class PrepareController extends events_1.EventEmitter {
334
319
  return;
335
320
  }
336
321
  await this.$analyticsService.trackEventActionInGoogleAnalytics({
337
- action: "Using Runtime Version" /* TrackActionNames.UsingRuntimeVersion */,
322
+ action: constants_1.TrackActionNames.UsingRuntimeVersion,
338
323
  additionalData: `${platform.toLowerCase()}${constants_1.AnalyticsEventLabelDelimiter}${version}`,
339
324
  });
340
325
  }
@@ -379,4 +364,3 @@ __decorate([
379
364
  (0, decorators_1.cache)()
380
365
  ], PrepareController.prototype, "trackRuntimeVersion", null);
381
366
  yok_1.injector.register("prepareController", PrepareController);
382
- //# sourceMappingURL=prepare-controller.js.map
@@ -79,14 +79,11 @@ class RunController extends events_1.EventEmitter {
79
79
  const { projectDir, deviceIdentifiers, stopOptions } = data;
80
80
  const liveSyncProcessInfo = this.$liveSyncProcessDataService.getPersistedData(projectDir);
81
81
  if (liveSyncProcessInfo && !liveSyncProcessInfo.isStopped) {
82
- // In case we are coming from error during livesync, the current action is the one that erred (but we are still executing it),
83
- // so we cannot await it as this will cause infinite loop.
84
82
  const shouldAwaitPendingOperation = !stopOptions || stopOptions.shouldAwaitAllActions;
85
83
  const deviceIdentifiersToRemove = deviceIdentifiers && deviceIdentifiers.length
86
84
  ? deviceIdentifiers
87
85
  : _.map(liveSyncProcessInfo.deviceDescriptors, (d) => d.identifier);
88
86
  const removedDeviceIdentifiers = _.remove(liveSyncProcessInfo.deviceDescriptors, (descriptor) => _.includes(deviceIdentifiersToRemove, descriptor.identifier)).map((descriptor) => descriptor.identifier);
89
- // Handle the case when no more devices left for any of the persisted platforms
90
87
  for (let i = 0; i < liveSyncProcessInfo.platforms.length; i++) {
91
88
  const platform = liveSyncProcessInfo.platforms[i];
92
89
  const devices = this.$devicesService.getDevicesForPlatform(platform);
@@ -94,7 +91,6 @@ class RunController extends events_1.EventEmitter {
94
91
  await this.$prepareController.stopWatchers(projectDir, platform);
95
92
  }
96
93
  }
97
- // In case deviceIdentifiers are not passed, we should stop the whole LiveSync.
98
94
  if (!deviceIdentifiers ||
99
95
  !deviceIdentifiers.length ||
100
96
  !liveSyncProcessInfo.deviceDescriptors ||
@@ -125,7 +121,6 @@ class RunController extends events_1.EventEmitter {
125
121
  shouldAwaitPendingOperation) {
126
122
  await liveSyncProcessInfo.currentSyncAction;
127
123
  }
128
- // Emit RunOnDevice stopped when we've really stopped.
129
124
  _.each(removedDeviceIdentifiers, (deviceIdentifier) => {
130
125
  this.emitCore(constants_2.RunOnDeviceEvents.runOnDeviceStopped, {
131
126
  projectDir,
@@ -163,8 +158,6 @@ class RunController extends events_1.EventEmitter {
163
158
  shouldSkipEmitLiveSyncNotification: true,
164
159
  shouldCheckDeveloperDiscImage: true,
165
160
  });
166
- // we do not stop the application when debugBrk is false, so we need to attach, instead of launch
167
- // if we try to send the launch request, the debugger port will not be printed and the command will timeout
168
161
  debugOptions.start = !debugOptions.debugBrk;
169
162
  debugOptions.forceDebuggerAttachedEvent = refreshInfo.didRestart;
170
163
  await this.$debugController.enableDebuggingCoreWithoutWaitingCurrentAction(projectData.projectDir, deviceDescriptor.identifier, debugOptions);
@@ -232,7 +225,6 @@ class RunController extends events_1.EventEmitter {
232
225
  getDeviceDescriptorsForInitialSync(projectDir, deviceDescriptors) {
233
226
  const currentRunData = this.$liveSyncProcessDataService.getPersistedData(projectDir);
234
227
  const isAlreadyLiveSyncing = currentRunData && !currentRunData.isStopped;
235
- // Prevent cases where liveSync is called consecutive times with the same device, for example [ A, B, C ] and then [ A, B, D ] - we want to execute initialSync only for D.
236
228
  const deviceDescriptorsForInitialSync = isAlreadyLiveSyncing
237
229
  ? _.differenceBy(deviceDescriptors, currentRunData.deviceDescriptors, "identifier")
238
230
  : deviceDescriptors;
@@ -278,13 +270,6 @@ class RunController extends events_1.EventEmitter {
278
270
  },
279
271
  watch: !liveSyncInfo.skipWatcher,
280
272
  });
281
- // For Android + Vite HMR, own the `adb reverse` ourselves —
282
- // with our SDK-resolved adb, scoped to this exact serial, and
283
- // only after the device is up — then hand the bundler the
284
- // result via env vars. This MUST run before `prepare` (which
285
- // spawns the Vite bundler that inherits `process.env`) so the
286
- // bundler trusts the tunnel instead of racing us to spawn its
287
- // own adb during config-load. See packages/vite hardening.
288
273
  await this.setupAndroidViteHmrReverse(device, projectData, liveSyncInfo, "pre-build");
289
274
  const prepareResultData = await this.$prepareController.prepare(prepareData);
290
275
  const buildData = {
@@ -294,8 +279,6 @@ class RunController extends events_1.EventEmitter {
294
279
  const platformData = this.$platformsDataService.getPlatformData(device.deviceInfo.platform, projectData);
295
280
  try {
296
281
  let packageFilePath = null;
297
- // Case where we have three devices attached, a change that requires build is found,
298
- // we'll rebuild the app only for the first device, but we should install new package on all three devices.
299
282
  if (rebuiltInformation[platformData.platformNameLowerCase] &&
300
283
  (this.$mobileHelper.isAndroidPlatform(platformData.platformNameLowerCase) ||
301
284
  rebuiltInformation[platformData.platformNameLowerCase]
@@ -319,7 +302,7 @@ class RunController extends events_1.EventEmitter {
319
302
  }
320
303
  else {
321
304
  await this.$analyticsService.trackEventActionInGoogleAnalytics({
322
- action: "LiveSync" /* TrackActionNames.LiveSync */,
305
+ action: constants_2.TrackActionNames.LiveSync,
323
306
  device,
324
307
  projectDir: projectData.projectDir,
325
308
  });
@@ -336,10 +319,6 @@ class RunController extends events_1.EventEmitter {
336
319
  watch: !skipWatcher,
337
320
  liveSyncDeviceData: deviceDescriptor,
338
321
  });
339
- // Re-establish the adb reverse on the CURRENT transport right
340
- // before launch — the transport can change during build/install
341
- // and drop the mapping set in `pre-build`, which would leave the
342
- // app unable to reach the Vite dev server at 127.0.0.1.
343
322
  await this.setupAndroidViteHmrReverse(device, projectData, liveSyncInfo, "pre-launch");
344
323
  await this.refreshApplication(projectData, liveSyncResultInfo, null, deviceDescriptor);
345
324
  this.$logger.info(`Successfully synced application ${liveSyncResultInfo.deviceAppData.appIdentifier} on device ${liveSyncResultInfo.deviceAppData.device.deviceInfo.identifier}.`);
@@ -367,26 +346,6 @@ class RunController extends events_1.EventEmitter {
367
346
  };
368
347
  await this.addActionToChain(projectData.projectDir, () => this.$devicesService.execute(deviceAction, (device) => _.some(deviceDescriptors, (deviceDescriptor) => deviceDescriptor.identifier === device.deviceInfo.identifier)));
369
348
  }
370
- /**
371
- * Set up `adb reverse tcp:<port> tcp:<port>` for an Android device
372
- * when the project bundles with Vite in HMR/watch mode, then export
373
- * the result to the bundler subprocess via environment variables.
374
- *
375
- * The Vite dev-host helper prefers an ADB tunnel (device-side
376
- * `127.0.0.1:<port>` → host) over the emulator's flaky slirp NAT
377
- * (`10.0.2.2`). Historically the bundler tried to wire that tunnel
378
- * itself at config-load time, racing this CLI's device discovery
379
- * over the single global adb daemon and intermittently freezing the
380
- * run at "Searching for devices…". The CLI is the right owner: it
381
- * knows the exact target serial and when the device is ready, and it
382
- * already drives a single, version-matched adb. We do the reverse
383
- * here and signal the bundler with `NS_ADB_REVERSE_READY=1` so it
384
- * never spawns adb on its own.
385
- *
386
- * Best-effort: any failure is logged at trace level and swallowed.
387
- * The bundler then falls back to its own (now hardened) adb path, or
388
- * ultimately to `10.0.2.2`, so a reverse hiccup never fails the run.
389
- */
390
349
  async setupAndroidViteHmrReverse(device, projectData, liveSyncInfo, phase) {
391
350
  try {
392
351
  if (!this.$mobileHelper.isAndroidPlatform(device.deviceInfo.platform)) {
@@ -395,29 +354,18 @@ class RunController extends events_1.EventEmitter {
395
354
  if (projectData.bundler !== "vite") {
396
355
  return;
397
356
  }
398
- // HMR over the tunnel only matters for a live watch session.
399
357
  if (liveSyncInfo.skipWatcher || !liveSyncInfo.useHotModuleReload) {
400
358
  return;
401
359
  }
402
- // Respect the user's explicit opt-out — they want the
403
- // `10.0.2.2` / LAN path, so don't create a tunnel or claim one
404
- // exists.
405
360
  if (this.isTruthyEnvFlag(process.env.NS_HMR_NO_ADB_REVERSE)) {
406
361
  return;
407
362
  }
408
- // `NS_HMR_PREFER_LAN_HOST` means the dev wants LAN routing
409
- // (physical device over Wi-Fi); the dev-host resolver suppresses
410
- // the adb-reverse path for it, so don't bother wiring one.
411
363
  if (this.isTruthyEnvFlag(process.env.NS_HMR_PREFER_LAN_HOST)) {
412
364
  return;
413
365
  }
414
366
  const serial = device.deviceInfo.identifier;
415
367
  const port = this.getViteHmrPort();
416
368
  if (phase === "pre-build") {
417
- // Decide the origin baked into bundle.mjs. Hand the bundler our
418
- // exact adb (so any self-managed fallback can't version-mismatch
419
- // the daemon) and, if the tunnel comes up, tell it to emit
420
- // `127.0.0.1` and skip adb entirely.
421
369
  process.env.NS_ADB_PATH = await this.$staticConfig.getAdbFilePath();
422
370
  process.env.NS_DEVICE_SERIAL = serial;
423
371
  const ok = await this.ensureAndroidReverse(device, serial, port);
@@ -430,12 +378,6 @@ class RunController extends events_1.EventEmitter {
430
378
  }
431
379
  return;
432
380
  }
433
- // phase === "pre-launch": re-establish the mapping right before the
434
- // app boots. `adb reverse` mappings are bound to the device's adb
435
- // transport, and that transport can change during the (long) build
436
- // + install (fresh emulators reconnect as they settle), silently
437
- // dropping the early mapping. We only bother when we actually told
438
- // the bundle to use `127.0.0.1` (READY set during pre-build).
439
381
  if (!this.isTruthyEnvFlag(process.env.NS_ADB_REVERSE_READY)) {
440
382
  return;
441
383
  }
@@ -448,15 +390,6 @@ class RunController extends events_1.EventEmitter {
448
390
  this.$logger.trace(`Setting up adb reverse for Vite HMR (${phase}) failed; leaving it to the bundler fallback. Error: ${err}`);
449
391
  }
450
392
  }
451
- /**
452
- * Apply `adb reverse tcp:<port> tcp:<port>` to the device and confirm
453
- * via `adb reverse --list` that it actually landed, retrying a few
454
- * times. Every device-side call is bounded with a Node `spawn` timeout
455
- * + `SIGKILL` so a wedged/slow adbd (observed blocking 90s+ on some
456
- * fresh-boot / API-36 arm64 emulators) can never hang the run — the
457
- * hung adb child is reaped, not orphaned. Returns whether the mapping
458
- * is confirmed present.
459
- */
460
393
  async ensureAndroidReverse(device, serial, port) {
461
394
  var _a, _b, _c;
462
395
  const adb = device.adb;
@@ -467,13 +400,9 @@ class RunController extends events_1.EventEmitter {
467
400
  treatErrorsAsWarnings: true,
468
401
  childProcessOptions: { timeout, killSignal: "SIGKILL" },
469
402
  });
470
- // `wait-for-device` only blocks until the transport is up; bounded so a
471
- // never-ready device can't stall us.
472
403
  await adb.executeCommand(["wait-for-device"], bounded(ADB_WAIT_MS));
473
404
  for (let attempt = 1; attempt <= 3; attempt++) {
474
405
  await adb.executeCommand(["reverse", `tcp:${port}`, `tcp:${port}`], bounded(ADB_REVERSE_MS));
475
- // Verify it landed (a SIGKILL'd-on-timeout reverse resolves rather
476
- // than throws, so success of the call isn't proof).
477
406
  const list = (_c = (_b = (_a = (await adb.executeCommand(["reverse", "--list"], bounded(ADB_WAIT_MS)))) === null || _a === void 0 ? void 0 : _a.toString) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : "";
478
407
  if (list.includes(`tcp:${port}`)) {
479
408
  return true;
@@ -482,9 +411,6 @@ class RunController extends events_1.EventEmitter {
482
411
  return false;
483
412
  }
484
413
  getViteHmrPort() {
485
- // The Vite dev server defaults to 5173; the bundler reads the same
486
- // default. If a project runs Vite on a different port, the dev sets
487
- // `NS_HMR_PORT` so the CLI reverses the matching port.
488
414
  const fromEnv = Number(process.env.NS_HMR_PORT);
489
415
  return Number.isFinite(fromEnv) && fromEnv > 0 ? fromEnv : 5173;
490
416
  }
@@ -522,9 +448,6 @@ class RunController extends events_1.EventEmitter {
522
448
  const watchInfo = {
523
449
  liveSyncDeviceData: deviceDescriptor,
524
450
  projectData,
525
- // todo: remove stale files once everything is stable
526
- // currently, watcher fires multiple times & may clean up unsynced files
527
- // filesToRemove: data.staleFiles ?? [],
528
451
  filesToRemove: [],
529
452
  filesToSync,
530
453
  hmrData: data.hmrData,
@@ -570,7 +493,6 @@ class RunController extends events_1.EventEmitter {
570
493
  const fullSyncAction = async () => {
571
494
  watchInfo.filesToSync = allAppFiles;
572
495
  const fullLiveSyncResultInfo = await platformLiveSyncService.liveSyncWatchAction(device, watchInfo);
573
- // IMPORTANT: keep the same instance as we rely on side effects
574
496
  _.assign(liveSyncResultInfo, fullLiveSyncResultInfo);
575
497
  };
576
498
  await this.$hooksService.executeBeforeHooks("watchAction", {
@@ -585,7 +507,6 @@ class RunController extends events_1.EventEmitter {
585
507
  await this.refreshApplication(projectData, liveSyncResultInfo, data, deviceDescriptor, fullSyncAction);
586
508
  if (!liveSyncResultInfo.didRecover && isInHMRMode) {
587
509
  const status = await this.$hmrStatusService.getHmrStatus(device.deviceInfo.identifier, data.hmrData.hash);
588
- // the timeout is assumed OK as the app could be blocked on a breakpoint
589
510
  if (status === constants_1.HmrConstants.HMR_ERROR_STATUS) {
590
511
  await fullSyncAction();
591
512
  liveSyncResultInfo.isFullSync = true;
@@ -712,4 +633,3 @@ __decorate([
712
633
  (0, decorators_1.cache)()
713
634
  ], RunController.prototype, "attachDeviceLostHandler", null);
714
635
  yok_1.injector.register("runController", RunController);
715
- //# sourceMappingURL=run-controller.js.map
@@ -69,4 +69,3 @@ class UpdateControllerBase {
69
69
  }
70
70
  }
71
71
  exports.UpdateControllerBase = UpdateControllerBase;
72
- //# sourceMappingURL=update-controller-base.js.map
@@ -28,15 +28,12 @@ class UpdateController extends update_controller_base_1.UpdateControllerBase {
28
28
  this.spinner = this.$terminalSpinnerService.createSpinner();
29
29
  const projectData = this.$projectDataService.getProjectData(updateOptions.projectDir);
30
30
  updateOptions.version = updateOptions.version || constants_1.PackageVersion.LATEST;
31
- // back up project files and folders
32
31
  this.spinner.info("Backing up project files before update");
33
32
  await this.backupProject();
34
33
  this.spinner.succeed("Project files have been backed up");
35
- // clean up project files
36
34
  this.spinner.info("Cleaning up project files before update");
37
35
  await this.cleanUpProject();
38
36
  this.spinner.succeed("Project files have been cleaned up");
39
- // update dependencies
40
37
  this.spinner.info("Updating project dependencies");
41
38
  await this.updateDependencies(projectData, updateOptions.version);
42
39
  this.spinner.succeed("Project dependencies have been updated");
@@ -82,10 +79,6 @@ class UpdateController extends update_controller_base_1.UpdateControllerBase {
82
79
  if (!shouldUpdate) {
83
80
  return;
84
81
  }
85
- // check if the coerced version is the same as desired and prefix it with a ~
86
- // for example:
87
- // 8.0.0 -> ~8.0.0
88
- // 8.0.8-next-XXX -> 8.0.8-next-XXX
89
82
  const updatedVersion = (() => {
90
83
  if (desiredVersion === version) {
91
84
  return desiredVersion;
@@ -138,11 +131,9 @@ class UpdateController extends update_controller_base_1.UpdateControllerBase {
138
131
  }
139
132
  exports.UpdateController = UpdateController;
140
133
  UpdateController.updatableDependencies = [
141
- // dependencies
142
134
  {
143
135
  packageName: "@nativescript/core",
144
136
  },
145
- // devDependencies
146
137
  {
147
138
  packageName: "@nativescript/webpack",
148
139
  isDev: true,
@@ -151,7 +142,6 @@ UpdateController.updatableDependencies = [
151
142
  packageName: "@nativescript/types",
152
143
  isDev: true,
153
144
  },
154
- // runtimes
155
145
  {
156
146
  packageName: "@nativescript/ios",
157
147
  isDev: true,
@@ -171,4 +161,3 @@ UpdateController.pathsToBackup = [
171
161
  constants.CONFIG_NS_FILE_NAME,
172
162
  ];
173
163
  yok_1.injector.register("updateController", UpdateController);
174
- //# sourceMappingURL=update-controller.js.map
@@ -42,4 +42,3 @@ class AndroidBuildData extends BuildData {
42
42
  }
43
43
  }
44
44
  exports.AndroidBuildData = AndroidBuildData;
45
- //# sourceMappingURL=build-data.js.map
@@ -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
@@ -53,4 +53,3 @@ exports.IOSPrepareData = IOSPrepareData;
53
53
  class AndroidPrepareData extends PrepareData {
54
54
  }
55
55
  exports.AndroidPrepareData = AndroidPrepareData;
56
- //# 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
@@ -1,4 +1,4 @@
1
- import type { SupportedPlatform } from "../constants";
1
+ import type { BuildNames, SupportedPlatform } from "../constants";
2
2
  import {
3
3
  IAndroidBuildOptionsSettings,
4
4
  IProvision,
@@ -810,11 +810,6 @@ interface ICocoaPodsPlatformManager {
810
810
  ): { replacedContent: string; podfilePlatformData: IPodfilePlatformData };
811
811
  }
812
812
 
813
- declare const enum BuildNames {
814
- debug = "Debug",
815
- release = "Release",
816
- }
817
-
818
813
  interface IXcodeTargetBuildConfigurationProperty {
819
814
  name: string;
820
815
  value: any;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SystemWarningsSeverity = void 0;
4
+ var SystemWarningsSeverity;
5
+ (function (SystemWarningsSeverity) {
6
+ SystemWarningsSeverity["medium"] = "medium";
7
+ SystemWarningsSeverity["high"] = "high";
8
+ })(SystemWarningsSeverity || (exports.SystemWarningsSeverity = SystemWarningsSeverity = {}));
@@ -1,17 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- // NOTE: This file is used to call JS functions when cleaning resources used by CLI, after the CLI is killed.
5
- // The instances here are not shared with the ones in main CLI process.
6
4
  const fs = require("fs");
7
5
  const uuid_1 = require("uuid");
8
6
  const file_log_service_1 = require("./file-log-service");
9
7
  const yok_1 = require("../common/yok");
8
+ const detached_process_enums_1 = require("./detached-process-enums");
10
9
  const pathToBootstrap = process.argv[2];
11
10
  if (!pathToBootstrap || !fs.existsSync(pathToBootstrap)) {
12
11
  throw new Error("Invalid path to bootstrap.");
13
12
  }
14
- // After requiring the bootstrap we can use $injector
15
13
  require(pathToBootstrap);
16
14
  const logFile = process.argv[3];
17
15
  const jsFilePath = process.argv[4];
@@ -35,7 +33,6 @@ catch (err) {
35
33
  const logMessage = (msg, type) => {
36
34
  fileLogService.logData({ message: `[${uniqueId}] ${msg}`, type });
37
35
  };
38
- /* tslint:disable:no-floating-promises */
39
36
  (async () => {
40
37
  try {
41
38
  logMessage(`Requiring file ${jsFilePath}`);
@@ -47,13 +44,11 @@ const logMessage = (msg, type) => {
47
44
  logMessage(`Finished execution with data: ${JSON.stringify(data)} to the default function exported by currently required file ${jsFilePath}`);
48
45
  }
49
46
  catch (err) {
50
- logMessage(`Unable to execute action of file ${jsFilePath} when passed data is ${JSON.stringify(data)}. Error is: ${err}.`, "Error" /* FileLogMessageType.Error */);
47
+ logMessage(`Unable to execute action of file ${jsFilePath} when passed data is ${JSON.stringify(data)}. Error is: ${err}.`, detached_process_enums_1.FileLogMessageType.Error);
51
48
  }
52
49
  }
53
50
  }
54
51
  catch (err) {
55
- logMessage(`Unable to require file: ${jsFilePath}. Error is: ${err}.`, "Error" /* FileLogMessageType.Error */);
52
+ logMessage(`Unable to require file: ${jsFilePath}. Error is: ${err}.`, detached_process_enums_1.FileLogMessageType.Error);
56
53
  }
57
54
  })();
58
- /* tslint:enable:no-floating-promises */
59
- //# sourceMappingURL=cleanup-js-subprocess.js.map