nativescript 8.7.0 → 8.8.0-alpha.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 (324) 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 +0 -1
  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 +76 -4
  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 +4 -14
  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 +0 -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 +0 -1
  183. package/lib/data/run-data.js +0 -1
  184. package/lib/detached-processes/cleanup-js-subprocess.js +2 -8
  185. package/lib/detached-processes/cleanup-process.js +14 -18
  186. package/lib/detached-processes/file-log-service.js +1 -2
  187. package/lib/device-path-provider.js +0 -1
  188. package/lib/device-sockets/ios/app-debug-socket-proxy-factory.js +0 -7
  189. package/lib/device-sockets/ios/notification.js +0 -3
  190. package/lib/device-sockets/ios/socket-request-executor.js +0 -3
  191. package/lib/helpers/android-bundle-validator-helper.js +1 -2
  192. package/lib/helpers/deploy-command-helper.js +0 -1
  193. package/lib/helpers/key-command-helper.js +2 -4
  194. package/lib/helpers/livesync-command-helper.js +1 -4
  195. package/lib/helpers/network-connectivity-validator.js +0 -1
  196. package/lib/helpers/options-track-helper.js +2 -3
  197. package/lib/helpers/package-path-helper.js +0 -1
  198. package/lib/helpers/platform-command-helper.js +2 -7
  199. package/lib/helpers/version-validator-helper.js +0 -1
  200. package/lib/key-commands/bootstrap.js +2 -3
  201. package/lib/key-commands/index.js +4 -5
  202. package/lib/nativescript-cli-lib-bootstrap.js +0 -4
  203. package/lib/nativescript-cli-lib.js +0 -1
  204. package/lib/nativescript-cli.js +1 -10
  205. package/lib/node/pbxproj-dom-xcode.js +0 -1
  206. package/lib/node/xcode.js +0 -1
  207. package/lib/node-package-manager.js +1 -11
  208. package/lib/options.js +116 -141
  209. package/lib/package-installation-manager.js +1 -8
  210. package/lib/package-manager.js +0 -2
  211. package/lib/platform-command-param.js +0 -1
  212. package/lib/pnpm-package-manager.js +1 -4
  213. package/lib/project-data.js +0 -12
  214. package/lib/providers/project-files-provider.js +0 -1
  215. package/lib/resolvers/livesync-service-resolver.js +0 -1
  216. package/lib/services/analytics/analytics-broker-process.js +6 -10
  217. package/lib/services/analytics/analytics-broker.js +1 -2
  218. package/lib/services/analytics/analytics-service.js +25 -29
  219. package/lib/services/analytics/google-analytics-provider.js +12 -13
  220. package/lib/services/analytics-settings-service.js +0 -5
  221. package/lib/services/android/android-bundle-tool-service.js +0 -1
  222. package/lib/services/android/gradle-build-args-service.js +2 -9
  223. package/lib/services/android/gradle-build-service.js +0 -1
  224. package/lib/services/android/gradle-command-service.js +0 -1
  225. package/lib/services/android-device-debug-service.js +0 -6
  226. package/lib/services/android-plugin-build-service.js +12 -43
  227. package/lib/services/android-project-service.js +4 -71
  228. package/lib/services/android-resources-migration-service.js +0 -7
  229. package/lib/services/apple-portal/apple-portal-application-service.js +0 -1
  230. package/lib/services/apple-portal/apple-portal-cookie-service.js +0 -1
  231. package/lib/services/apple-portal/apple-portal-session-service.js +4 -6
  232. package/lib/services/assets-generation/assets-generation-service.js +5 -16
  233. package/lib/services/build-artifacts-service.js +1 -2
  234. package/lib/services/build-data-service.js +0 -1
  235. package/lib/services/build-info-file-service.js +0 -1
  236. package/lib/services/cleanup-service.js +9 -13
  237. package/lib/services/cocoapods-platform-manager.js +0 -9
  238. package/lib/services/cocoapods-service.js +1 -21
  239. package/lib/services/debug-data-service.js +0 -1
  240. package/lib/services/debug-service-base.js +0 -7
  241. package/lib/services/device/device-install-app-service.js +1 -2
  242. package/lib/services/doctor-service.js +6 -21
  243. package/lib/services/extensibility-service.js +0 -8
  244. package/lib/services/files-hash-service.js +0 -1
  245. package/lib/services/hmr-status-service.js +0 -2
  246. package/lib/services/info-service.js +0 -1
  247. package/lib/services/initialize-service.js +1 -5
  248. package/lib/services/ios/export-options-plist-service.js +0 -4
  249. package/lib/services/ios/ios-signing-service.js +0 -4
  250. package/lib/services/ios/spm-service.js +0 -9
  251. package/lib/services/ios/xcodebuild-args-service.js +0 -9
  252. package/lib/services/ios/xcodebuild-command-service.js +0 -1
  253. package/lib/services/ios/xcodebuild-service.js +0 -1
  254. package/lib/services/ios-debugger-port-service.js +0 -1
  255. package/lib/services/ios-device-debug-service.js +0 -1
  256. package/lib/services/ios-entitlements-service.js +0 -1
  257. package/lib/services/ios-extensions-service.js +0 -1
  258. package/lib/services/ios-log-filter.js +0 -20
  259. package/lib/services/ios-native-target-service.js +4 -6
  260. package/lib/services/ios-project-service.js +1 -23
  261. package/lib/services/ios-provision-service.js +0 -3
  262. package/lib/services/ios-watch-app-service.js +0 -1
  263. package/lib/services/ip-service.js +0 -2
  264. package/lib/services/itmstransporter-service.js +0 -1
  265. package/lib/services/karma-execution.js +0 -2
  266. package/lib/services/livesync/android-device-livesync-service-base.js +0 -1
  267. package/lib/services/livesync/android-device-livesync-service.js +0 -2
  268. package/lib/services/livesync/android-device-livesync-sockets-service.js +0 -3
  269. package/lib/services/livesync/android-livesync-service.js +0 -1
  270. package/lib/services/livesync/android-livesync-tool.js +0 -4
  271. package/lib/services/livesync/device-livesync-service-base.js +0 -2
  272. package/lib/services/livesync/ios-device-livesync-service.js +0 -7
  273. package/lib/services/livesync/ios-livesync-service.js +0 -2
  274. package/lib/services/livesync/livesync-socket.js +0 -1
  275. package/lib/services/livesync/platform-livesync-service-base.js +0 -5
  276. package/lib/services/livesync-process-data-service.js +0 -1
  277. package/lib/services/log-parser-service.js +0 -1
  278. package/lib/services/log-source-map-service.js +0 -15
  279. package/lib/services/marking-mode-service.js +5 -8
  280. package/lib/services/metadata-filtering-service.js +0 -1
  281. package/lib/services/npm-config-service.js +0 -4
  282. package/lib/services/pacote-service.js +0 -7
  283. package/lib/services/performance-service.js +1 -3
  284. package/lib/services/platform/add-platform-service.js +2 -47
  285. package/lib/services/platform/platform-validation-service.js +0 -1
  286. package/lib/services/platform/prepare-native-platform-service.js +2 -5
  287. package/lib/services/platform-environment-requirements.js +3 -8
  288. package/lib/services/platform-project-service-base.js +0 -1
  289. package/lib/services/platforms-data-service.js +0 -1
  290. package/lib/services/plugins-service.js +2 -18
  291. package/lib/services/prepare-data-service.js +0 -1
  292. package/lib/services/project-backup-service.js +0 -4
  293. package/lib/services/project-changes-service.js +3 -12
  294. package/lib/services/project-cleanup-service.js +0 -2
  295. package/lib/services/project-config-service.js +1 -18
  296. package/lib/services/project-data-service.js +7 -36
  297. package/lib/services/project-name-service.js +0 -1
  298. package/lib/services/project-service.js +0 -10
  299. package/lib/services/project-templates-service.js +2 -3
  300. package/lib/services/qr-code-terminal-service.js +0 -1
  301. package/lib/services/require-service.js +0 -1
  302. package/lib/services/start-service.js +0 -1
  303. package/lib/services/temp-service.js +0 -1
  304. package/lib/services/terminal-spinner-service.js +0 -2
  305. package/lib/services/test-execution-service.js +2 -9
  306. package/lib/services/test-initialization-service.js +0 -4
  307. package/lib/services/timeline-profiler-service.js +0 -1
  308. package/lib/services/user-settings-service.js +0 -1
  309. package/lib/services/versions-service.js +4 -6
  310. package/lib/services/watch-ignore-list-service.js +0 -1
  311. package/lib/services/webpack/webpack-compiler-service.js +1 -42
  312. package/lib/services/xcconfig-service.js +0 -2
  313. package/lib/services/xcproj-service.js +0 -1
  314. package/lib/shared-event-bus.js +0 -6
  315. package/lib/sys-info.js +1 -2
  316. package/lib/tools/config-manipulation/config-transformer.js +0 -12
  317. package/lib/tools/node-modules/node-modules-builder.js +0 -1
  318. package/lib/tools/node-modules/node-modules-dependencies-builder.js +0 -6
  319. package/lib/yarn-package-manager.js +0 -1
  320. package/lib/yarn2-package-manager.js +0 -3
  321. package/package.json +1 -1
  322. package/vendor/aab-tool/README.txt +1 -1
  323. package/vendor/aab-tool/bundletool.jar +0 -0
  324. package/vendor/gradle-plugin/build.gradle +21 -15
@@ -119,7 +119,6 @@ class AndroidDeviceLiveSyncService extends android_device_livesync_service_base_
119
119
  ]);
120
120
  const regex = new RegExp(`^-.*${deviceRootBasename}$`, "m");
121
121
  const matchingFile = (listResult || "").match(regex);
122
- // Check if there is already a file with deviceRootBasename. If so, delete it as it breaks LiveSyncing.
123
122
  if (matchingFile && matchingFile[0] && _.startsWith(matchingFile[0], "-")) {
124
123
  yield this.device.adb.executeShellCommand(["rm", "-f", deviceRootPath]);
125
124
  }
@@ -202,4 +201,3 @@ __decorate([
202
201
  (0, decorators_1.performanceLog)()
203
202
  ], AndroidDeviceLiveSyncService.prototype, "removeFiles", null);
204
203
  exports.AndroidDeviceLiveSyncService = AndroidDeviceLiveSyncService;
205
- //# sourceMappingURL=android-device-livesync-service.js.map
@@ -112,8 +112,6 @@ class AndroidDeviceSocketsLiveSyncService extends android_device_livesync_servic
112
112
  yield this.$cleanupService.removeCleanupCommand(cleanupCommand);
113
113
  });
114
114
  yield this.$cleanupService.addCleanupCommand(cleanupCommand);
115
- // We need to clear resources when the action fails
116
- // But we also need the real result of the action.
117
115
  yield doSyncPromise.then(actionOnEnd.bind(this), actionOnEnd.bind(this));
118
116
  result = yield doSyncPromise;
119
117
  }
@@ -198,4 +196,3 @@ class AndroidDeviceSocketsLiveSyncService extends android_device_livesync_servic
198
196
  AndroidDeviceSocketsLiveSyncService.STATUS_UPDATE_INTERVAL = 10000;
199
197
  AndroidDeviceSocketsLiveSyncService.MINIMAL_VERSION_LONG_LIVING_CONNECTION = "0.2.0";
200
198
  exports.AndroidDeviceSocketsLiveSyncService = AndroidDeviceSocketsLiveSyncService;
201
- //# sourceMappingURL=android-device-livesync-sockets-service.js.map
@@ -74,4 +74,3 @@ __decorate([
74
74
  ], AndroidLiveSyncService.prototype, "fullSync", null);
75
75
  exports.AndroidLiveSyncService = AndroidLiveSyncService;
76
76
  yok_1.injector.register("androidLiveSyncService", AndroidLiveSyncService);
77
- //# sourceMappingURL=android-livesync-service.js.map
@@ -159,12 +159,9 @@ class AndroidLivesyncTool {
159
159
  error =
160
160
  error ||
161
161
  this.getErrorWithMessage("Socket connection ended before sync operation is complete.");
162
- //remove listeners and delete this.socketConnection
163
162
  this.cleanState(socketUid);
164
- //call end of the connection (close and error callbacks won't be called - listeners removed)
165
163
  socket.end();
166
164
  socket.destroy();
167
- //reject all pending sync requests and clear timeouts
168
165
  this.rejectPendingSyncOperations(socketUid, error);
169
166
  }
170
167
  }
@@ -428,4 +425,3 @@ AndroidLivesyncTool.SOCKET_CONNECTION_TIMED_OUT_ERROR = "Socket connection timed
428
425
  AndroidLivesyncTool.NO_SOCKET_CONNECTION_AVAILABLE_ERROR = "No socket connection available.";
429
426
  exports.AndroidLivesyncTool = AndroidLivesyncTool;
430
427
  yok_1.injector.register("androidLivesyncTool", AndroidLivesyncTool);
431
- //# sourceMappingURL=android-livesync-tool.js.map
@@ -52,7 +52,6 @@ class DeviceLiveSyncServiceBase {
52
52
  }
53
53
  finalizeSync(liveSyncInfo, projectData) {
54
54
  return __awaiter(this, void 0, void 0, function* () {
55
- //implement in case a sync point for all remove/create operation is needed
56
55
  return {
57
56
  didRefresh: true,
58
57
  operationId: "",
@@ -68,4 +67,3 @@ __decorate([
68
67
  (0, decorators_2.performanceLog)()
69
68
  ], DeviceLiveSyncServiceBase.prototype, "transferFiles", null);
70
69
  exports.DeviceLiveSyncServiceBase = DeviceLiveSyncServiceBase;
71
- //# sourceMappingURL=device-livesync-service-base.js.map
@@ -47,13 +47,11 @@ class IOSDeviceLiveSyncService extends device_livesync_service_base_1.DeviceLive
47
47
  }
48
48
  setupSocketIfNeeded(projectData) {
49
49
  return __awaiter(this, void 0, void 0, function* () {
50
- // TODO: persist the sockets per app in order to support LiveSync on multiple apps on the same device
51
50
  if (this.socket) {
52
51
  return true;
53
52
  }
54
53
  const appId = projectData.projectIdentifiers.ios;
55
54
  try {
56
- // TODO: temp workaround till we setup the sockets along with the app start
57
55
  const ensureAppStarted = true;
58
56
  this.socket = yield this.device.getDebugSocket(appId, projectData.projectName, projectData.projectDir, ensureAppStarted);
59
57
  }
@@ -145,7 +143,6 @@ class IOSDeviceLiveSyncService extends device_livesync_service_base_1.DeviceLive
145
143
  projectDir: projectData.projectDir,
146
144
  });
147
145
  if (liveSyncInfo.useHotModuleReload) {
148
- // enable HOT updates
149
146
  yield this.setupSocketIfNeeded(projectData);
150
147
  }
151
148
  });
@@ -208,9 +205,6 @@ class IOSDeviceLiveSyncService extends device_livesync_service_base_1.DeviceLive
208
205
  destroySocket() {
209
206
  return __awaiter(this, void 0, void 0, function* () {
210
207
  if (this.socket) {
211
- // we do not support LiveSync on multiple apps on the same device
212
- // in order to do that, we should cache the socket per app
213
- // and destroy just the current app socket when possible
214
208
  yield this.device.destroyAllSockets();
215
209
  this.socket = null;
216
210
  }
@@ -222,4 +216,3 @@ __decorate([
222
216
  (0, decorators_1.performanceLog)()
223
217
  ], IOSDeviceLiveSyncService.prototype, "removeFiles", null);
224
218
  exports.IOSDeviceLiveSyncService = IOSDeviceLiveSyncService;
225
- //# sourceMappingURL=ios-device-livesync-service.js.map
@@ -73,7 +73,6 @@ class IOSLiveSyncService extends platform_livesync_service_base_1.PlatformLiveSy
73
73
  syncAfterInstall(device, liveSyncInfo) {
74
74
  return __awaiter(this, void 0, void 0, function* () {
75
75
  if (!device.isEmulator) {
76
- // In this case we should execute fullsync because iOS Runtime requires the full content of app dir to be extracted in the root of sync dir.
77
76
  yield this.fullSync({
78
77
  projectData: liveSyncInfo.projectData,
79
78
  device,
@@ -94,4 +93,3 @@ __decorate([
94
93
  ], IOSLiveSyncService.prototype, "fullSync", null);
95
94
  exports.IOSLiveSyncService = IOSLiveSyncService;
96
95
  yok_1.injector.register("iOSLiveSyncService", IOSLiveSyncService);
97
- //# sourceMappingURL=ios-livesync-service.js.map
@@ -12,4 +12,3 @@ class LiveSyncSocket extends net.Socket {
12
12
  }
13
13
  exports.LiveSyncSocket = LiveSyncSocket;
14
14
  yok_1.injector.register("LiveSyncSocket", LiveSyncSocket, false);
15
- //# sourceMappingURL=livesync-socket.js.map
@@ -51,7 +51,6 @@ class PlatformLiveSyncServiceBase {
51
51
  }
52
52
  syncAfterInstall(device, liveSyncInfo) {
53
53
  return __awaiter(this, void 0, void 0, function* () {
54
- /* intentionally left blank */
55
54
  });
56
55
  }
57
56
  restartApplication(projectData, liveSyncInfo) {
@@ -105,8 +104,6 @@ class PlatformLiveSyncServiceBase {
105
104
  let modifiedLocalToDevicePaths = [];
106
105
  if (liveSyncInfo.filesToSync.length) {
107
106
  const filesToSync = liveSyncInfo.filesToSync;
108
- // const mappedFiles = _.map(filesToSync, filePath => this.$projectFilesProvider.mapFilePath(filePath, device.deviceInfo.platform, projectData));
109
- // Some plugins modify platforms dir on afterPrepare (check nativescript-dev-sass) - we want to sync only existing file.
110
107
  const existingFiles = filesToSync.filter((m) => m && this.$fs.exists(m));
111
108
  this.$logger.trace("Will execute livesync for files: ", existingFiles);
112
109
  const skippedFiles = _.difference(filesToSync, existingFiles);
@@ -125,7 +122,6 @@ class PlatformLiveSyncServiceBase {
125
122
  const filePaths = liveSyncInfo.filesToRemove;
126
123
  const platformData = this.$platformsDataService.getPlatformData(device.deviceInfo.platform, projectData);
127
124
  const mappedFiles = _(filePaths)
128
- // .map(filePath => this.$projectFilesProvider.mapFilePath(filePath, device.deviceInfo.platform, projectData))
129
125
  .filter((filePath) => !!filePath)
130
126
  .value();
131
127
  const projectFilesPath = path.join(platformData.appDestinationDirectoryPath, constants_1.APP_FOLDER_NAME);
@@ -182,4 +178,3 @@ __decorate([
182
178
  (0, decorators_1.performanceLog)()
183
179
  ], PlatformLiveSyncServiceBase.prototype, "liveSyncWatchAction", null);
184
180
  exports.PlatformLiveSyncServiceBase = PlatformLiveSyncServiceBase;
185
- //# sourceMappingURL=platform-livesync-service-base.js.map
@@ -41,4 +41,3 @@ class LiveSyncProcessDataService {
41
41
  }
42
42
  exports.LiveSyncProcessDataService = LiveSyncProcessDataService;
43
43
  yok_1.injector.register("liveSyncProcessDataService", LiveSyncProcessDataService);
44
- //# sourceMappingURL=livesync-process-data-service.js.map
@@ -50,4 +50,3 @@ __decorate([
50
50
  ], LogParserService.prototype, "startParsingLogCore", null);
51
51
  exports.LogParserService = LogParserService;
52
52
  yok_1.injector.register("logParserService", LogParserService);
53
- //# sourceMappingURL=log-parser-service.js.map
@@ -40,7 +40,6 @@ class LogSourceMapService {
40
40
  if (!this.$fs.getFsStats(filePath).isDirectory()) {
41
41
  const mapFile = filePath + ".map";
42
42
  let sourceMapRaw;
43
- // Skip files bigger than 50MB
44
43
  if (this.$fs.getFileSize(filePath) > 50 * 1000 * 1000) {
45
44
  this.$logger.trace(`Skipping source map for file ${filePath} because it is too big (> 50MB).`);
46
45
  return;
@@ -166,8 +165,6 @@ class LogSourceMapService {
166
165
  }
167
166
  }
168
167
  parseAndroidLog(projectData, rawMessage) {
169
- // "JS: at module.exports.push../main-view-model.ts.HelloWorldModel.onTap (file:///data/data/org.nativescript.sourceMap/files/app/bundle.js:303:17)"
170
- // "System.err: File: "file:///data/data/org.nativescript.sourceMap/files/app/bundle.js, line: 304, column: 8"
171
168
  const fileIndex = rawMessage.lastIndexOf(LogSourceMapService.FILE_PREFIX);
172
169
  const deviceProjectPath = util.format(constants_1.ANDROID_DEVICE_APP_ROOT_TEMPLATE, projectData.projectIdentifiers.android);
173
170
  let separator = ",";
@@ -175,25 +172,18 @@ class LogSourceMapService {
175
172
  let parts, filePath, line, column, messagePrefix;
176
173
  if (fileIndex >= 0) {
177
174
  const fileSubstring = rawMessage.substring(fileIndex + LogSourceMapService.FILE_PREFIX.length);
178
- //"data/data/org.nativescript.sourceMap/files/app/bundle.js, line: 304, column: 8"
179
175
  parts = fileSubstring.split(separator);
180
176
  if (parts.length >= 3) {
181
- // "data/data/org.nativescript.sourceMap/files/app/bundle.js"
182
177
  parts[0] = parts[0].replace("'", "");
183
- // " line: 304"
184
178
  parts[1] = parts[1].replace(" line: ", "");
185
- // " column: 8"
186
179
  parts[2] = parts[2].replace(" column: ", "");
187
180
  }
188
181
  else {
189
- // "data/data/org.nativescript.sourceMap/files/app/bundle.js:303:17)"
190
182
  separator = ":";
191
183
  parts = fileSubstring.split(separator);
192
184
  }
193
185
  if (parts.length >= 3) {
194
- // "/data/data/org.nativescript.sourceMap/files/app/"
195
186
  const devicePath = `${deviceProjectPath}/${constants_1.APP_FOLDER_NAME}/`;
196
- // "bundle.js"
197
187
  filePath = path.relative(devicePath, `${"/"}${parts[0]}`);
198
188
  line = parseInt(parts[1]);
199
189
  column = parseInt(parts[2]);
@@ -201,24 +191,20 @@ class LogSourceMapService {
201
191
  for (let i = 3; i < parts.length; i++) {
202
192
  messageSuffix += `${parts[i]}${i === parts.length - 1 ? "" : separator}`;
203
193
  }
204
- // "JS: at module.exports.push../main-view-model.ts.HelloWorldModel.onTap ("
205
194
  messagePrefix = _.trimEnd(messagePrefix, "(");
206
195
  }
207
196
  }
208
197
  return { filePath, line, column, messagePrefix, messageSuffix };
209
198
  }
210
199
  parseIosLog(rawMessage) {
211
- // "CONSOLE INFO file:///app/vendor.js:131:36: HMR: Hot Module Replacement Enabled. Waiting for signal."
212
200
  const fileIndex = rawMessage.lastIndexOf(LogSourceMapService.FILE_PREFIX);
213
201
  let messageSuffix = "";
214
202
  let parts, filePath, line, column, messagePrefix;
215
203
  if (fileIndex >= 0) {
216
- // "app/vendor.js:131:36: HMR: Hot Module Replacement Enabled. Waiting for signal."
217
204
  const fileSubstring = rawMessage.substring(fileIndex + LogSourceMapService.FILE_PREFIX.length);
218
205
  parts = fileSubstring.split(":");
219
206
  if (parts && parts.length >= 3) {
220
207
  filePath = parts[0];
221
- // "app/vendor.js"
222
208
  if (_.startsWith(filePath, constants_1.APP_FOLDER_NAME)) {
223
209
  filePath = path.relative(constants_1.APP_FOLDER_NAME, parts[0]);
224
210
  }
@@ -247,4 +233,3 @@ LogSourceMapService.FILE_PREFIX_REPLACEMENT = "file: ";
247
233
  LogSourceMapService.MEMOIZE_FUNCTION_RANDOM_KEY_FOR_JOIN = "__some_random_value__";
248
234
  exports.LogSourceMapService = LogSourceMapService;
249
235
  yok_1.injector.register("logSourceMapService", LogSourceMapService);
250
- //# sourceMappingURL=log-source-map-service.js.map
@@ -15,7 +15,7 @@ const constants_1 = require("../constants");
15
15
  const yok_1 = require("../common/yok");
16
16
  const semver = require("semver/preload");
17
17
  const MARKING_MODE_PROP = "markingMode";
18
- const MARKING_MODE_FULL_DEPRECATION_MSG = `In the current version of NativeScript "${MARKING_MODE_PROP}:${"full" /* MarkingMode.Full */}" is no longer supported.`;
18
+ const MARKING_MODE_FULL_DEPRECATION_MSG = `In the current version of NativeScript "${MARKING_MODE_PROP}:${"full"}" is no longer supported.`;
19
19
  class MarkingModeService {
20
20
  constructor($logger, $projectConfigService, $projectHelper, $projectDataService) {
21
21
  this.$logger = $logger;
@@ -28,13 +28,11 @@ class MarkingModeService {
28
28
  const markingModeValue = this.$projectConfigService.getValue("android.markingMode");
29
29
  const { skipWarnings, forceSwitch } = options;
30
30
  if (forceSwitch) {
31
- yield this.setMarkingMode("none" /* MarkingMode.None */);
31
+ yield this.setMarkingMode("none");
32
32
  return;
33
33
  }
34
- if (!skipWarnings && (markingModeValue === null || markingModeValue === void 0 ? void 0 : markingModeValue.toLowerCase()) !== "none" /* MarkingMode.None */) {
35
- // only warn if runtime is less than 7.0.0-rc.5 - where the default has been changed to None
36
- // if version is null - we are about to add the latest runtime, so no need to warn
37
- const { version } = this.$projectDataService.getRuntimePackage(this.$projectHelper.projectDir, "android" /* PlatformTypes.android */);
34
+ if (!skipWarnings && (markingModeValue === null || markingModeValue === void 0 ? void 0 : markingModeValue.toLowerCase()) !== "none") {
35
+ const { version } = this.$projectDataService.getRuntimePackage(this.$projectHelper.projectDir, "android");
38
36
  const isMarkingModeFullDefault = version && semver.lt(semver.coerce(version), "7.0.0-rc.5");
39
37
  if (isMarkingModeFullDefault) {
40
38
  this.showMarkingModeFullWarning();
@@ -48,7 +46,7 @@ class MarkingModeService {
48
46
  });
49
47
  }
50
48
  showMarkingModeFullWarning() {
51
- const markingModeFullWarning = `You are using the deprecated "${MARKING_MODE_PROP}:${"full" /* MarkingMode.Full */}".${os_1.EOL}${os_1.EOL}${MARKING_MODE_FULL_DEPRECATION_MSG}${os_1.EOL}${os_1.EOL}You should update your marking mode by executing 'ns update --markingMode'.`;
49
+ const markingModeFullWarning = `You are using the deprecated "${MARKING_MODE_PROP}:${"full"}".${os_1.EOL}${os_1.EOL}${MARKING_MODE_FULL_DEPRECATION_MSG}${os_1.EOL}${os_1.EOL}You should update your marking mode by executing 'ns update --markingMode'.`;
52
50
  this.$logger.warn(markingModeFullWarning, {
53
51
  [constants_1.LoggerConfigData.wrapMessageWithBorders]: true,
54
52
  });
@@ -56,4 +54,3 @@ class MarkingModeService {
56
54
  }
57
55
  exports.MarkingModeService = MarkingModeService;
58
56
  yok_1.injector.register("markingModeService", MarkingModeService);
59
- //# sourceMappingURL=marking-mode-service.js.map
@@ -103,4 +103,3 @@ class MetadataFilteringService {
103
103
  }
104
104
  exports.MetadataFilteringService = MetadataFilteringService;
105
105
  yok_1.injector.register("metadataFilteringService", MetadataFilteringService);
106
- //# sourceMappingURL=metadata-filtering-service.js.map
@@ -21,11 +21,8 @@ class NpmConfigService {
21
21
  readConfig() {
22
22
  try {
23
23
  const res = (0, child_process_1.execSync)("npm config list --json --global");
24
- // const data: any = npmconfig.read();
25
24
  const data = JSON.parse(res.toString());
26
- // todo: remove if not needed with npm config list --json?
27
25
  Object.entries(data).forEach(([key, value]) => {
28
- // replace env ${VARS} in strings with the process.env value
29
26
  this.config[key] =
30
27
  typeof value !== "string"
31
28
  ? value
@@ -40,4 +37,3 @@ __decorate([
40
37
  ], NpmConfigService.prototype, "readConfig", null);
41
38
  exports.NpmConfigService = NpmConfigService;
42
39
  yok_1.injector.register("npmConfigService", NpmConfigService);
43
- //# sourceMappingURL=npm-config-service.js.map
@@ -33,7 +33,6 @@ class PacoteService {
33
33
  this.$proxyService = $proxyService;
34
34
  }
35
35
  get $packageManager() {
36
- // need to be resolved here due to cyclic dependency
37
36
  return this.$injector.resolve("packageManager");
38
37
  }
39
38
  manifest(packageName, options) {
@@ -52,8 +51,6 @@ class PacoteService {
52
51
  }
53
52
  extractPackage(packageName, destinationDirectory, options) {
54
53
  return __awaiter(this, void 0, void 0, function* () {
55
- // strip: Remove the specified number of leading path elements. Pathnames with fewer elements will be silently skipped. More info: https://github.com/npm/node-tar/blob/e89c4d37519b1c20133a9f49d5f6b85fa34c203b/README.md
56
- // C: Create an archive
57
54
  this.$logger.trace(`Calling pacoteService.extractPackage for packageName: '${packageName}', destinationDir: '${destinationDirectory}' and options: ${options}`);
58
55
  const extractOptions = { strip: 1, C: destinationDirectory };
59
56
  if (options) {
@@ -71,7 +68,6 @@ class PacoteService {
71
68
  });
72
69
  this.$logger.trace(`Creating extract tar stream with options: ${JSON.stringify(extractOptions, null, 2)}`);
73
70
  const destination = tar.x(extractOptions);
74
- // Initiate the source
75
71
  const sourceStream = new stream_1.PassThrough();
76
72
  sourceStream.end(source);
77
73
  sourceStream.pipe(destination);
@@ -88,9 +84,7 @@ class PacoteService {
88
84
  }
89
85
  getPacoteBaseOptions() {
90
86
  return __awaiter(this, void 0, void 0, function* () {
91
- // In case `tns create myapp --template https://github.com/NativeScript/template-hello-world.git` command is executed, pacote module throws an error if cache option is not provided.
92
87
  const cachePath = yield this.$packageManager.getCachePath();
93
- // Add NPM Configuration to our Manifest options
94
88
  const npmConfig = this.$npmConfigService.getConfig();
95
89
  const pacoteOptions = _.extend(npmConfig, { cache: cachePath, Arborist: arborist_1.Arborist });
96
90
  const proxySettings = yield this.$proxyService.getCache();
@@ -113,4 +107,3 @@ __decorate([
113
107
  ], PacoteService.prototype, "$packageManager", null);
114
108
  exports.PacoteService = PacoteService;
115
109
  yok_1.injector.register("pacoteService", PacoteService);
116
- //# sourceMappingURL=pacote-service.js.map
@@ -41,7 +41,7 @@ class PerformanceService {
41
41
  trackAnalyticsData(methodInfo, executionTime) {
42
42
  this.$analyticsService
43
43
  .trackEventActionInGoogleAnalytics({
44
- action: "Performance" /* TrackActionNames.Performance */,
44
+ action: "Performance",
45
45
  additionalData: methodInfo,
46
46
  value: executionTime,
47
47
  })
@@ -71,7 +71,6 @@ class PerformanceService {
71
71
  this.$logger.info(PerformanceService.LOG_MESSAGE_TEMPLATE, methodInfo, executionTime);
72
72
  }
73
73
  }
74
- //removes any injected members of the arguments and excludes the options object even if it was renamed
75
74
  getJsonSanitizer() {
76
75
  const seen = new WeakSet();
77
76
  seen.add(this.$options);
@@ -91,4 +90,3 @@ PerformanceService.FAIL_LOG_MESSAGE_TEMPLATE = `Failed to log pefromance data in
91
90
  PerformanceService.MIN_NODE_PERFORMANCE_MODULE_VERSION = "8.5.0";
92
91
  exports.PerformanceService = PerformanceService;
93
92
  yok_1.injector.register("performanceService", PerformanceService);
94
- //# sourceMappingURL=performance-service.js.map
@@ -21,11 +21,7 @@ const constants_1 = require("../../constants");
21
21
  const decorators_1 = require("../../common/decorators");
22
22
  const yok_1 = require("../../common/yok");
23
23
  class AddPlatformService {
24
- constructor($fs, $logger,
25
- // private $pacoteService: IPacoteService,
26
- // private $projectDataService: IProjectDataService,
27
- $packageManager, $terminalSpinnerService, $analyticsService // private $tempService: ITempService
28
- ) {
24
+ constructor($fs, $logger, $packageManager, $terminalSpinnerService, $analyticsService) {
29
25
  this.$fs = $fs;
30
26
  this.$logger = $logger;
31
27
  this.$packageManager = $packageManager;
@@ -37,13 +33,9 @@ class AddPlatformService {
37
33
  const spinner = this.$terminalSpinnerService.createSpinner();
38
34
  try {
39
35
  spinner.start();
40
- // const frameworkDirPath = addPlatformData.frameworkPath ?
41
- // await this.extractPackage(packageToInstall)
42
- // : await this.installPackage(projectData.projectDir, packageToInstall);
43
36
  const frameworkDirPath = yield this.installPackage(projectData.projectDir, packageToInstall);
44
37
  const frameworkPackageJsonContent = this.$fs.readJson(path.join(frameworkDirPath, "..", "package.json"));
45
38
  const frameworkVersion = frameworkPackageJsonContent.version;
46
- // await this.setPlatformVersion(platformData, projectData, frameworkVersion);
47
39
  yield this.trackPlatformVersion(frameworkVersion, platformData);
48
40
  if (!addPlatformData.nativePrepare ||
49
41
  !addPlatformData.nativePrepare.skipNativePrepare) {
@@ -66,22 +58,10 @@ class AddPlatformService {
66
58
  yield this.installPackage(projectData.projectDir, `${platformData.frameworkPackageName}@${frameworkVersion}`);
67
59
  });
68
60
  }
69
- // private async extractPackage(pkg: string): Promise<string> {
70
- // const downloadedPackagePath = await this.$tempService.mkdirSync(
71
- // "runtimeDir"
72
- // );
73
- // await this.$pacoteService.extractPackage(pkg, downloadedPackagePath);
74
- // const frameworkDir = path.join(
75
- // downloadedPackagePath,
76
- // PROJECT_FRAMEWORK_FOLDER_NAME
77
- // );
78
- // return path.resolve(frameworkDir);
79
- // }
80
61
  installPackage(projectDir, packageName) {
81
62
  return __awaiter(this, void 0, void 0, function* () {
82
63
  const frameworkDir = this.resolveFrameworkDir(projectDir, packageName);
83
64
  if (frameworkDir && this.$fs.exists(frameworkDir)) {
84
- // don't install if it's already installed
85
65
  return frameworkDir;
86
66
  }
87
67
  const installedPackage = yield this.$packageManager.install(packageName, projectDir, {
@@ -98,30 +78,6 @@ class AddPlatformService {
98
78
  }
99
79
  resolveFrameworkDir(projectDir, packageName) {
100
80
  try {
101
- // strip version info if present <package>@1.2.3-rc.0 -> <package>
102
- // tested cases:
103
- // @nativescript/ios
104
- // @nativescript/ios@1
105
- // @nativescript/ios@1.2
106
- // @nativescript/ios@1.2.3
107
- // @nativescript/ios@1.2.3-
108
- // @nativescript/ios@1.2.3-rc
109
- // @nativescript/ios@1.2.3-rc.
110
- // @nativescript/ios@1.2.3-rc.0
111
- // @nativescript/ios@rc
112
- // @nativescript/ios@^7.0.0
113
- // @nativescript/ios@~7.0.0
114
- // tns-ios
115
- // tns-ios@1
116
- // tns-ios@1.2
117
- // tns-ios@1.2.3
118
- // tns-ios@1.2.3-
119
- // tns-ios@1.2.3-rc
120
- // tns-ios@1.2.3-rc.
121
- // tns-ios@1.2.3-rc.0
122
- // tns-ios@rc
123
- // tns-ios@^7.0.0
124
- // tns-ios@~7.0.0
125
81
  packageName = packageName.replace(/(.+)@.+$/g, "$1");
126
82
  const frameworkDir = require
127
83
  .resolve(`${packageName}/package.json`, {
@@ -150,7 +106,7 @@ class AddPlatformService {
150
106
  trackPlatformVersion(frameworkVersion, platformData) {
151
107
  return __awaiter(this, void 0, void 0, function* () {
152
108
  yield this.$analyticsService.trackEventActionInGoogleAnalytics({
153
- action: "Add Platform" /* TrackActionNames.AddPlatform */,
109
+ action: "Add Platform",
154
110
  additionalData: `${platformData.platformNameLowerCase}${constants_1.AnalyticsEventLabelDelimiter}${frameworkVersion}`,
155
111
  });
156
112
  });
@@ -161,4 +117,3 @@ __decorate([
161
117
  ], AddPlatformService.prototype, "addNativePlatform", null);
162
118
  exports.AddPlatformService = AddPlatformService;
163
119
  yok_1.injector.register("addPlatformService", AddPlatformService);
164
- //# sourceMappingURL=add-platform-service.js.map
@@ -83,4 +83,3 @@ class PlatformValidationService {
83
83
  }
84
84
  exports.PlatformValidationService = PlatformValidationService;
85
85
  yok_1.injector.register("platformValidationService", PlatformValidationService);
86
- //# sourceMappingURL=platform-validation-service.js.map
@@ -56,21 +56,19 @@ class PrepareNativePlatformService {
56
56
  this.$metadataFilteringService.generateMetadataFilters(projectData, platformData.platformNameLowerCase);
57
57
  }
58
58
  platformData.platformProjectService.interpolateConfigurationFile(projectData);
59
- yield this.$projectChangesService.setNativePlatformStatus(platformData, projectData, { nativePlatformStatus: "3" /* NativePlatformStatus.alreadyPrepared */ });
59
+ yield this.$projectChangesService.setNativePlatformStatus(platformData, projectData, { nativePlatformStatus: "3" });
60
60
  return hasChanges;
61
61
  });
62
62
  }
63
63
  cleanProject(platformData, options) {
64
64
  return __awaiter(this, void 0, void 0, function* () {
65
- // android build artifacts need to be cleaned up
66
- // when switching between debug, release and webpack builds
67
65
  if (platformData.platformNameLowerCase !== "android") {
68
66
  return;
69
67
  }
70
68
  const previousPrepareInfo = this.$projectChangesService.getPrepareInfo(platformData);
71
69
  if (!previousPrepareInfo ||
72
70
  previousPrepareInfo.nativePlatformStatus !==
73
- "3" /* NativePlatformStatus.alreadyPrepared */) {
71
+ "3") {
74
72
  return;
75
73
  }
76
74
  const { release: previousWasRelease } = previousPrepareInfo;
@@ -87,4 +85,3 @@ __decorate([
87
85
  ], PrepareNativePlatformService.prototype, "prepareNativePlatform", null);
88
86
  exports.PrepareNativePlatformService = PrepareNativePlatformService;
89
87
  yok_1.injector.register("prepareNativePlatformService", PrepareNativePlatformService);
90
- //# sourceMappingURL=prepare-native-platform-service.js.map
@@ -20,9 +20,7 @@ const helpers_1 = require("../common/helpers");
20
20
  const os_1 = require("os");
21
21
  const yok_1 = require("../common/yok");
22
22
  class PlatformEnvironmentRequirements {
23
- constructor($doctorService, $errors, $analyticsService,
24
- // @ts-ignore - required by the hook helper!
25
- $injector) {
23
+ constructor($doctorService, $errors, $analyticsService, $injector) {
26
24
  this.$doctorService = $doctorService;
27
25
  this.$errors = $errors;
28
26
  this.$analyticsService = $analyticsService;
@@ -34,7 +32,7 @@ class PlatformEnvironmentRequirements {
34
32
  const selectedOption = null;
35
33
  if (process.env.NS_SKIP_ENV_CHECK) {
36
34
  yield this.$analyticsService.trackEventActionInGoogleAnalytics({
37
- action: "Check Environment Requirements" /* TrackActionNames.CheckEnvironmentRequirements */,
35
+ action: "Check Environment Requirements",
38
36
  additionalData: "Skipped: NS_SKIP_ENV_CHECK is set",
39
37
  });
40
38
  return {
@@ -49,9 +47,8 @@ class PlatformEnvironmentRequirements {
49
47
  forceCheck: input.forceCheck,
50
48
  });
51
49
  if (!canExecute) {
52
- // if (!isInteractive()) {
53
50
  yield this.$analyticsService.trackEventActionInGoogleAnalytics({
54
- action: "Check Environment Requirements" /* TrackActionNames.CheckEnvironmentRequirements */,
51
+ action: "Check Environment Requirements",
55
52
  additionalData: "Non-interactive terminal, unable to execute local builds.",
56
53
  });
57
54
  this.fail(this.getNonInteractiveConsoleMessage(platform));
@@ -72,7 +69,6 @@ class PlatformEnvironmentRequirements {
72
69
  ].join(os_1.EOL);
73
70
  }
74
71
  getEnvVerificationMessage(platform) {
75
- // map process.platform to OS name used in docs
76
72
  const os = {
77
73
  linux: "linux",
78
74
  win32: "windows",
@@ -89,4 +85,3 @@ __decorate([
89
85
  ], PlatformEnvironmentRequirements.prototype, "checkEnvironmentRequirements", null);
90
86
  exports.PlatformEnvironmentRequirements = PlatformEnvironmentRequirements;
91
87
  yok_1.injector.register("platformEnvironmentRequirements", PlatformEnvironmentRequirements);
92
- //# sourceMappingURL=platform-environment-requirements.js.map
@@ -30,4 +30,3 @@ class PlatformProjectServiceBase extends events_1.EventEmitter {
30
30
  }
31
31
  }
32
32
  exports.PlatformProjectServiceBase = PlatformProjectServiceBase;
33
- //# sourceMappingURL=platform-project-service-base.js.map
@@ -29,4 +29,3 @@ class PlatformsDataService {
29
29
  }
30
30
  exports.PlatformsDataService = PlatformsDataService;
31
31
  yok_1.injector.register("platformsDataService", PlatformsDataService);
32
- //# sourceMappingURL=platforms-data-service.js.map