nativescript 9.0.4-dev.0 → 9.0.4-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (329) 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 -14
  5. package/lib/color.js +0 -4
  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 -3
  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 -5
  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/embedding/embed.js +0 -7
  18. package/lib/commands/extensibility/install-extension.js +0 -1
  19. package/lib/commands/extensibility/list-extensions.js +0 -1
  20. package/lib/commands/extensibility/uninstall-extension.js +0 -1
  21. package/lib/commands/fonts.js +0 -1
  22. package/lib/commands/generate-assets.js +0 -1
  23. package/lib/commands/generate-help.js +0 -1
  24. package/lib/commands/generate.js +1 -48
  25. package/lib/commands/hooks/common.js +1 -2
  26. package/lib/commands/hooks/hooks-lock.js +0 -1
  27. package/lib/commands/hooks/hooks.js +0 -1
  28. package/lib/commands/info.js +0 -1
  29. package/lib/commands/install.js +0 -1
  30. package/lib/commands/list-platforms.js +0 -1
  31. package/lib/commands/migrate.js +0 -1
  32. package/lib/commands/native-add.js +0 -5
  33. package/lib/commands/platform-clean.js +0 -1
  34. package/lib/commands/plugin/add-plugin.js +0 -1
  35. package/lib/commands/plugin/build-plugin.js +0 -1
  36. package/lib/commands/plugin/create-plugin.js +0 -5
  37. package/lib/commands/plugin/list-plugins.js +0 -1
  38. package/lib/commands/plugin/remove-plugin.js +0 -2
  39. package/lib/commands/plugin/update-plugin.js +0 -1
  40. package/lib/commands/post-install.js +0 -6
  41. package/lib/commands/prepare.js +3 -4
  42. package/lib/commands/preview.js +0 -2
  43. package/lib/commands/remove-platform.js +0 -1
  44. package/lib/commands/resources/resources-update.js +0 -2
  45. package/lib/commands/run.js +0 -1
  46. package/lib/commands/setup.js +0 -1
  47. package/lib/commands/start.js +0 -1
  48. package/lib/commands/test-init.js +0 -4
  49. package/lib/commands/test.js +2 -9
  50. package/lib/commands/typings.js +1 -2
  51. package/lib/commands/update-platform.js +0 -5
  52. package/lib/commands/update.js +0 -2
  53. package/lib/commands/widget.js +1 -20
  54. package/lib/common/bootstrap.js +0 -1
  55. package/lib/common/child-process.js +0 -3
  56. package/lib/common/codeGeneration/code-entity.js +0 -1
  57. package/lib/common/codeGeneration/code-printer.js +0 -1
  58. package/lib/common/command-params.js +0 -1
  59. package/lib/common/commands/analytics.js +0 -3
  60. package/lib/common/commands/autocompletion.js +0 -3
  61. package/lib/common/commands/device/device-log-stream.js +0 -1
  62. package/lib/common/commands/device/get-file.js +0 -2
  63. package/lib/common/commands/device/list-applications.js +0 -1
  64. package/lib/common/commands/device/list-devices.js +0 -3
  65. package/lib/common/commands/device/list-files.js +0 -2
  66. package/lib/common/commands/device/put-file.js +0 -2
  67. package/lib/common/commands/device/run-application.js +0 -1
  68. package/lib/common/commands/device/stop-application.js +0 -1
  69. package/lib/common/commands/device/uninstall-application.js +0 -1
  70. package/lib/common/commands/doctor.js +2 -3
  71. package/lib/common/commands/generate-messages.js +0 -1
  72. package/lib/common/commands/help.js +0 -1
  73. package/lib/common/commands/package-manager-get.js +0 -1
  74. package/lib/common/commands/package-manager-set.js +0 -1
  75. package/lib/common/commands/post-install.js +0 -1
  76. package/lib/common/commands/preuninstall.js +2 -11
  77. package/lib/common/commands/proxy/proxy-base.js +0 -4
  78. package/lib/common/commands/proxy/proxy-clear.js +0 -1
  79. package/lib/common/commands/proxy/proxy-get.js +0 -1
  80. package/lib/common/commands/proxy/proxy-set.js +0 -1
  81. package/lib/common/common-lib.js +0 -1
  82. package/lib/common/constants.js +0 -11
  83. package/lib/common/decorators.js +0 -48
  84. package/lib/common/dispatchers.js +1 -10
  85. package/lib/common/errors.js +3 -13
  86. package/lib/common/file-system.js +2 -13
  87. package/lib/common/header.js +0 -3
  88. package/lib/common/helpers.js +3 -89
  89. package/lib/common/host-info.js +0 -4
  90. package/lib/common/http-client.js +0 -20
  91. package/lib/common/logger/appenders/cli-appender.js +0 -4
  92. package/lib/common/logger/appenders/emit-appender.js +0 -4
  93. package/lib/common/logger/layouts/cli-layout.js +0 -1
  94. package/lib/common/logger/logger.js +0 -5
  95. package/lib/common/messages/messages.js +0 -6
  96. package/lib/common/mobile/android/android-application-manager.js +1 -20
  97. package/lib/common/mobile/android/android-debug-bridge-result-handler.js +0 -1
  98. package/lib/common/mobile/android/android-debug-bridge.js +0 -6
  99. package/lib/common/mobile/android/android-device-file-system.js +0 -4
  100. package/lib/common/mobile/android/android-device-hash-service.js +0 -3
  101. package/lib/common/mobile/android/android-device.js +0 -8
  102. package/lib/common/mobile/android/android-emulator-services.js +1 -2
  103. package/lib/common/mobile/android/android-ini-file-parser.js +0 -9
  104. package/lib/common/mobile/android/android-log-filter.js +0 -4
  105. package/lib/common/mobile/android/android-virtual-device-service.js +0 -26
  106. package/lib/common/mobile/android/device-android-debug-bridge.js +0 -1
  107. package/lib/common/mobile/android/genymotion/genymotion-service.js +1 -6
  108. package/lib/common/mobile/android/genymotion/virtualbox-service.js +0 -11
  109. package/lib/common/mobile/android/logcat-helper.js +0 -13
  110. package/lib/common/mobile/application-manager-base.js +0 -6
  111. package/lib/common/mobile/device-emitter.js +0 -4
  112. package/lib/common/mobile/device-log-emitter.js +0 -1
  113. package/lib/common/mobile/device-log-provider-base.js +0 -1
  114. package/lib/common/mobile/device-log-provider.js +0 -23
  115. package/lib/common/mobile/device-platforms-constants.js +0 -1
  116. package/lib/common/mobile/emulator-helper.js +0 -3
  117. package/lib/common/mobile/ios/device/ios-application-manager.js +0 -3
  118. package/lib/common/mobile/ios/device/ios-device-file-system.js +0 -1
  119. package/lib/common/mobile/ios/device/ios-device-operations.js +0 -4
  120. package/lib/common/mobile/ios/device/ios-device.js +0 -4
  121. package/lib/common/mobile/ios/ios-device-base.js +0 -1
  122. package/lib/common/mobile/ios/ios-device-product-name-mapper.js +0 -2
  123. package/lib/common/mobile/ios/ios-log-filter.js +0 -1
  124. package/lib/common/mobile/ios/simulator/ios-emulator-services.js +0 -4
  125. package/lib/common/mobile/ios/simulator/ios-sim-resolver.js +0 -1
  126. package/lib/common/mobile/ios/simulator/ios-simulator-application-manager.js +0 -6
  127. package/lib/common/mobile/ios/simulator/ios-simulator-device.js +0 -5
  128. package/lib/common/mobile/ios/simulator/ios-simulator-file-system.js +0 -1
  129. package/lib/common/mobile/ios/simulator/ios-simulator-log-provider.js +0 -1
  130. package/lib/common/mobile/local-to-device-path-data-factory.js +0 -1
  131. package/lib/common/mobile/log-filter.js +0 -2
  132. package/lib/common/mobile/logging-levels.js +0 -1
  133. package/lib/common/mobile/mobile-core/android-device-discovery.js +0 -2
  134. package/lib/common/mobile/mobile-core/android-emulator-discovery.js +0 -3
  135. package/lib/common/mobile/mobile-core/android-process-service.js +0 -32
  136. package/lib/common/mobile/mobile-core/device-discovery.js +0 -1
  137. package/lib/common/mobile/mobile-core/devices-service.js +0 -69
  138. package/lib/common/mobile/mobile-core/ios-device-discovery.js +0 -2
  139. package/lib/common/mobile/mobile-core/ios-simulator-discovery.js +0 -3
  140. package/lib/common/mobile/mobile-helper.js +0 -1
  141. package/lib/common/mobile/wp8/wp8-emulator-services.js +0 -1
  142. package/lib/common/opener.js +0 -1
  143. package/lib/common/os-info.js +0 -1
  144. package/lib/common/plist-parser.js +0 -1
  145. package/lib/common/project-helper.js +0 -1
  146. package/lib/common/prompter.js +1 -9
  147. package/lib/common/queue.js +0 -1
  148. package/lib/common/resource-loader.js +0 -1
  149. package/lib/common/services/auto-completion-service.js +1 -13
  150. package/lib/common/services/cancellation.js +1 -2
  151. package/lib/common/services/commands-service.js +6 -17
  152. package/lib/common/services/help-service.js +3 -11
  153. package/lib/common/services/hooks-service.js +0 -13
  154. package/lib/common/services/ios-notification-service.js +0 -1
  155. package/lib/common/services/json-file-settings-service.js +0 -6
  156. package/lib/common/services/lock-service.js +0 -6
  157. package/lib/common/services/message-contract-generator.js +0 -1
  158. package/lib/common/services/messages-service.js +0 -1
  159. package/lib/common/services/micro-templating-service.js +0 -6
  160. package/lib/common/services/net-service.js +0 -3
  161. package/lib/common/services/project-files-manager.js +0 -5
  162. package/lib/common/services/project-files-provider-base.js +0 -1
  163. package/lib/common/services/proxy-service.js +0 -1
  164. package/lib/common/services/qr.js +0 -1
  165. package/lib/common/services/settings-service.js +0 -1
  166. package/lib/common/services/xcode-select-service.js +0 -1
  167. package/lib/common/utils.js +0 -1
  168. package/lib/common/validators/project-name-validator.js +0 -1
  169. package/lib/common/validators/validation-result.js +0 -1
  170. package/lib/common/verify-node-version.js +1 -8
  171. package/lib/common/yok.js +11 -32
  172. package/lib/config.js +1 -22
  173. package/lib/constants-provider.js +0 -1
  174. package/lib/constants.js +0 -53
  175. package/lib/controllers/build-controller.js +3 -4
  176. package/lib/controllers/debug-controller.js +3 -8
  177. package/lib/controllers/deploy-controller.js +0 -1
  178. package/lib/controllers/migrate-controller.js +4 -90
  179. package/lib/controllers/platform-controller.js +1 -9
  180. package/lib/controllers/prepare-controller.js +4 -17
  181. package/lib/controllers/run-controller.js +1 -17
  182. package/lib/controllers/update-controller-base.js +0 -1
  183. package/lib/controllers/update-controller.js +0 -11
  184. package/lib/data/build-data.js +0 -1
  185. package/lib/data/controller-data-base.js +0 -1
  186. package/lib/data/debug-data.js +0 -1
  187. package/lib/data/platform-data.js +0 -1
  188. package/lib/data/prepare-data.js +0 -1
  189. package/lib/data/run-data.js +0 -1
  190. package/lib/detached-processes/cleanup-js-subprocess.js +2 -8
  191. package/lib/detached-processes/cleanup-process.js +14 -18
  192. package/lib/detached-processes/file-log-service.js +1 -2
  193. package/lib/device-path-provider.js +0 -1
  194. package/lib/device-sockets/ios/app-debug-socket-proxy-factory.js +0 -7
  195. package/lib/device-sockets/ios/notification.js +0 -3
  196. package/lib/device-sockets/ios/socket-request-executor.js +0 -3
  197. package/lib/helpers/android-bundle-validator-helper.js +1 -2
  198. package/lib/helpers/deploy-command-helper.js +0 -1
  199. package/lib/helpers/key-command-helper.js +2 -4
  200. package/lib/helpers/livesync-command-helper.js +1 -4
  201. package/lib/helpers/network-connectivity-validator.js +0 -1
  202. package/lib/helpers/options-track-helper.js +2 -3
  203. package/lib/helpers/package-path-helper.js +0 -1
  204. package/lib/helpers/platform-command-helper.js +2 -7
  205. package/lib/helpers/version-validator-helper.js +0 -1
  206. package/lib/key-commands/bootstrap.js +2 -3
  207. package/lib/key-commands/index.js +4 -5
  208. package/lib/nativescript-cli-lib-bootstrap.js +0 -4
  209. package/lib/nativescript-cli-lib.js +0 -1
  210. package/lib/nativescript-cli.js +1 -11
  211. package/lib/node/pbxproj-dom-xcode.js +0 -1
  212. package/lib/node/xcode.js +0 -1
  213. package/lib/node-package-manager.js +1 -11
  214. package/lib/options.js +119 -144
  215. package/lib/package-installation-manager.js +1 -8
  216. package/lib/package-manager.js +0 -2
  217. package/lib/platform-command-param.js +0 -1
  218. package/lib/pnpm-package-manager.js +1 -4
  219. package/lib/project-data.js +0 -12
  220. package/lib/providers/project-files-provider.js +0 -1
  221. package/lib/resolvers/livesync-service-resolver.js +0 -1
  222. package/lib/services/analytics/analytics-broker-process.js +6 -10
  223. package/lib/services/analytics/analytics-broker.js +1 -2
  224. package/lib/services/analytics/analytics-service.js +25 -29
  225. package/lib/services/analytics/google-analytics-provider.js +12 -13
  226. package/lib/services/analytics-settings-service.js +0 -5
  227. package/lib/services/android/android-bundle-tool-service.js +0 -1
  228. package/lib/services/android/gradle-build-args-service.js +0 -3
  229. package/lib/services/android/gradle-build-service.js +0 -1
  230. package/lib/services/android/gradle-command-service.js +0 -1
  231. package/lib/services/android-device-debug-service.js +0 -6
  232. package/lib/services/android-plugin-build-service.js +2 -31
  233. package/lib/services/android-project-service.js +4 -71
  234. package/lib/services/android-resources-migration-service.js +0 -7
  235. package/lib/services/apple-portal/apple-portal-application-service.js +0 -1
  236. package/lib/services/apple-portal/apple-portal-cookie-service.js +0 -1
  237. package/lib/services/apple-portal/apple-portal-session-service.js +4 -6
  238. package/lib/services/apple-portal/srp/srp-wrapper.js +1 -4
  239. package/lib/services/assets-generation/assets-generation-service.js +5 -10
  240. package/lib/services/build-artifacts-service.js +1 -2
  241. package/lib/services/build-data-service.js +0 -1
  242. package/lib/services/build-info-file-service.js +0 -1
  243. package/lib/services/bundler/bundler-compiler-service.js +1 -68
  244. package/lib/services/bundler/bundler.js +0 -1
  245. package/lib/services/cleanup-service.js +9 -13
  246. package/lib/services/cocoapods-platform-manager.js +0 -9
  247. package/lib/services/cocoapods-service.js +1 -21
  248. package/lib/services/debug-data-service.js +0 -1
  249. package/lib/services/debug-service-base.js +0 -7
  250. package/lib/services/device/device-install-app-service.js +1 -2
  251. package/lib/services/doctor-service.js +6 -21
  252. package/lib/services/extensibility-service.js +0 -8
  253. package/lib/services/files-hash-service.js +0 -1
  254. package/lib/services/hmr-status-service.js +0 -2
  255. package/lib/services/info-service.js +0 -1
  256. package/lib/services/initialize-service.js +1 -5
  257. package/lib/services/ios/export-options-plist-service.js +0 -4
  258. package/lib/services/ios/ios-signing-service.js +10 -7
  259. package/lib/services/ios/spm-service.js +0 -18
  260. package/lib/services/ios/xcodebuild-args-service.js +0 -11
  261. package/lib/services/ios/xcodebuild-command-service.js +0 -1
  262. package/lib/services/ios/xcodebuild-service.js +1 -2
  263. package/lib/services/ios-debugger-port-service.js +0 -1
  264. package/lib/services/ios-device-debug-service.js +0 -1
  265. package/lib/services/ios-entitlements-service.js +0 -1
  266. package/lib/services/ios-extensions-service.js +0 -1
  267. package/lib/services/ios-log-filter.js +0 -20
  268. package/lib/services/ios-native-target-service.js +4 -6
  269. package/lib/services/ios-project-service.js +1 -100
  270. package/lib/services/ios-provision-service.js +0 -3
  271. package/lib/services/ios-watch-app-service.js +0 -1
  272. package/lib/services/ip-service.js +0 -2
  273. package/lib/services/itmstransporter-service.js +0 -1
  274. package/lib/services/karma-execution.js +0 -2
  275. package/lib/services/livesync/android-device-livesync-service-base.js +0 -1
  276. package/lib/services/livesync/android-device-livesync-service.js +0 -2
  277. package/lib/services/livesync/android-device-livesync-sockets-service.js +0 -3
  278. package/lib/services/livesync/android-livesync-service.js +0 -1
  279. package/lib/services/livesync/android-livesync-tool.js +0 -4
  280. package/lib/services/livesync/device-livesync-service-base.js +0 -2
  281. package/lib/services/livesync/ios-device-livesync-service.js +0 -7
  282. package/lib/services/livesync/ios-livesync-service.js +0 -2
  283. package/lib/services/livesync/livesync-socket.js +0 -1
  284. package/lib/services/livesync/platform-livesync-service-base.js +0 -5
  285. package/lib/services/livesync-process-data-service.js +0 -1
  286. package/lib/services/log-parser-service.js +0 -1
  287. package/lib/services/log-source-map-service.js +0 -15
  288. package/lib/services/marking-mode-service.js +5 -8
  289. package/lib/services/metadata-filtering-service.js +0 -1
  290. package/lib/services/npm-config-service.js +0 -4
  291. package/lib/services/pacote-service.js +0 -7
  292. package/lib/services/performance-service.js +1 -3
  293. package/lib/services/platform/add-platform-service.js +2 -49
  294. package/lib/services/platform/platform-validation-service.js +0 -1
  295. package/lib/services/platform/prepare-native-platform-service.js +2 -5
  296. package/lib/services/platform-environment-requirements.js +3 -8
  297. package/lib/services/platform-project-service-base.js +0 -1
  298. package/lib/services/platforms-data-service.js +0 -1
  299. package/lib/services/plugins-service.js +2 -20
  300. package/lib/services/prepare-data-service.js +0 -1
  301. package/lib/services/project-backup-service.js +0 -4
  302. package/lib/services/project-changes-service.js +3 -14
  303. package/lib/services/project-cleanup-service.js +0 -2
  304. package/lib/services/project-config-service.js +2 -21
  305. package/lib/services/project-data-service.js +7 -36
  306. package/lib/services/project-name-service.js +0 -1
  307. package/lib/services/project-service.js +0 -10
  308. package/lib/services/project-templates-service.js +2 -3
  309. package/lib/services/qr-code-terminal-service.js +0 -1
  310. package/lib/services/require-service.js +0 -1
  311. package/lib/services/start-service.js +0 -1
  312. package/lib/services/temp-service.js +0 -3
  313. package/lib/services/terminal-spinner-service.js +0 -2
  314. package/lib/services/test-execution-service.js +2 -9
  315. package/lib/services/test-initialization-service.js +0 -4
  316. package/lib/services/timeline-profiler-service.js +0 -1
  317. package/lib/services/user-settings-service.js +0 -1
  318. package/lib/services/versions-service.js +4 -6
  319. package/lib/services/watch-ignore-list-service.js +0 -1
  320. package/lib/services/xcconfig-service.js +0 -2
  321. package/lib/services/xcproj-service.js +0 -1
  322. package/lib/shared-event-bus.js +0 -6
  323. package/lib/sys-info.js +1 -2
  324. package/lib/tools/config-manipulation/config-transformer.js +0 -12
  325. package/lib/tools/node-modules/node-modules-builder.js +0 -1
  326. package/lib/tools/node-modules/node-modules-dependencies-builder.js +0 -6
  327. package/lib/yarn-package-manager.js +0 -1
  328. package/lib/yarn2-package-manager.js +0 -3
  329. package/package.json +1 -1
@@ -173,7 +173,6 @@ class NativeAddObjectiveCCommand extends NativeAddSingleCommand {
173
173
  const classFilePath = path.join(iosSourceBase, `${className}.m`);
174
174
  const headerFilePath = path.join(iosSourceBase, `${className}.h`);
175
175
  if (this.generateObjectiveCFiles(className, classFilePath, headerFilePath)) {
176
- // Modify/Generate moduleMap
177
176
  this.generateOrUpdateModuleMap(`${className}.h`, path.join(iosSourceBase, "module.modulemap"));
178
177
  }
179
178
  }
@@ -186,9 +185,7 @@ class NativeAddObjectiveCCommand extends NativeAddSingleCommand {
186
185
  }
187
186
  const headerDeclaration = `header "${headerPath}"`;
188
187
  if (moduleMapContent.includes(`module ${moduleName}`)) {
189
- // Module declaration already exists in the module map
190
188
  if (moduleMapContent.includes(headerDeclaration)) {
191
- // Header is already present in the module map
192
189
  this.$logger.warn(`Header '${headerFileName}' is already added to the module map.`);
193
190
  return;
194
191
  }
@@ -196,7 +193,6 @@ class NativeAddObjectiveCCommand extends NativeAddSingleCommand {
196
193
  fs.writeFileSync(moduleMapPath, updatedModuleMapContent);
197
194
  }
198
195
  else {
199
- // Module declaration does not exist in the module map
200
196
  const moduleDeclaration = `module ${moduleName} {${os_1.EOL} ${headerDeclaration}${os_1.EOL} export *${os_1.EOL}}`;
201
197
  moduleMapContent += `${os_1.EOL}${os_1.EOL}${moduleDeclaration}`;
202
198
  fs.writeFileSync(moduleMapPath, moduleMapContent);
@@ -279,4 +275,3 @@ yok_1.injector.registerCommand(["native|add|java"], NativeAddJavaCommand);
279
275
  yok_1.injector.registerCommand(["native|add|kotlin"], NativeAddKotlinCommand);
280
276
  yok_1.injector.registerCommand(["native|add|swift"], NativeAddSwiftCommand);
281
277
  yok_1.injector.registerCommand(["native|add|objective-c"], NativeAddObjectiveCCommand);
282
- //# sourceMappingURL=native-add.js.map
@@ -39,4 +39,3 @@ class CleanCommand {
39
39
  }
40
40
  exports.CleanCommand = CleanCommand;
41
41
  yok_1.injector.registerCommand("platform|clean", CleanCommand);
42
- //# sourceMappingURL=platform-clean.js.map
@@ -28,4 +28,3 @@ class AddPluginCommand {
28
28
  }
29
29
  exports.AddPluginCommand = AddPluginCommand;
30
30
  yok_1.injector.registerCommand(["plugin|add", "plugin|install"], AddPluginCommand);
31
- //# sourceMappingURL=add-plugin.js.map
@@ -53,4 +53,3 @@ class BuildPluginCommand {
53
53
  }
54
54
  exports.BuildPluginCommand = BuildPluginCommand;
55
55
  yok_1.injector.registerCommand("plugin|build", BuildPluginCommand);
56
- //# sourceMappingURL=build-plugin.js.map
@@ -28,14 +28,12 @@ class CreatePluginCommand {
28
28
  const selectedTemplate = this.$options.template;
29
29
  const selectedPath = path.resolve(pathToProject || ".");
30
30
  const projectDir = path.join(selectedPath, pluginRepoName);
31
- // Must be out of try catch block, because will throw error if folder alredy exists and we don't want to delete it.
32
31
  this.ensurePackageDir(projectDir);
33
32
  try {
34
33
  await this.downloadPackage(selectedTemplate, projectDir);
35
34
  await this.setupSeed(projectDir, pluginRepoName);
36
35
  }
37
36
  catch (err) {
38
- // The call to this.ensurePackageDir() above will throw error if folder alredy exists, so it is safe to delete here.
39
37
  this.$fs.deleteDirectory(projectDir);
40
38
  throw err;
41
39
  }
@@ -71,7 +69,6 @@ class CreatePluginCommand {
71
69
  !config.includeTypeScriptDemo)) {
72
70
  this.$logger.printMarkdown("Using default values for plugin creation options since your shell is not interactive.");
73
71
  }
74
- // run postclone script manually and kill it if it takes more than 10 sec
75
72
  const pathToPostCloneScript = path.join("scripts", "postclone");
76
73
  const params = [
77
74
  pathToPostCloneScript,
@@ -126,7 +123,6 @@ class CreatePluginCommand {
126
123
  }
127
124
  async getPluginNameSource(pluginNameSource, pluginRepoName) {
128
125
  if (!pluginNameSource) {
129
- // remove nativescript- prefix for naming plugin files
130
126
  const prefix = "nativescript-";
131
127
  pluginNameSource = pluginRepoName.toLowerCase().startsWith(prefix)
132
128
  ? pluginRepoName.slice(prefix.length, pluginRepoName.length)
@@ -154,4 +150,3 @@ class CreatePluginCommand {
154
150
  }
155
151
  exports.CreatePluginCommand = CreatePluginCommand;
156
152
  yok_1.injector.registerCommand(["plugin|create"], CreatePluginCommand);
157
- //# sourceMappingURL=create-plugin.js.map
@@ -41,4 +41,3 @@ class ListPluginsCommand {
41
41
  }
42
42
  exports.ListPluginsCommand = ListPluginsCommand;
43
43
  yok_1.injector.registerCommand("plugin|*list", ListPluginsCommand);
44
- //# sourceMappingURL=list-plugins.js.map
@@ -21,7 +21,6 @@ class RemovePluginCommand {
21
21
  }
22
22
  let pluginNames = [];
23
23
  try {
24
- // try installing the plugins, so we can get information from node_modules about their native code, libs, etc.
25
24
  const installedPlugins = await this.$pluginsService.getAllInstalledPlugins(this.$projectData);
26
25
  pluginNames = installedPlugins.map((pl) => pl.name);
27
26
  }
@@ -38,4 +37,3 @@ class RemovePluginCommand {
38
37
  }
39
38
  exports.RemovePluginCommand = RemovePluginCommand;
40
39
  yok_1.injector.registerCommand("plugin|remove", RemovePluginCommand);
41
- //# sourceMappingURL=remove-plugin.js.map
@@ -37,4 +37,3 @@ class UpdatePluginCommand {
37
37
  }
38
38
  exports.UpdatePluginCommand = UpdatePluginCommand;
39
39
  yok_1.injector.registerCommand("plugin|update", UpdatePluginCommand);
40
- //# sourceMappingURL=update-plugin.js.map
@@ -19,18 +19,13 @@ class PostInstallCliCommand {
19
19
  async execute(args) {
20
20
  const isRunningWithSudoUser = !!process.env.SUDO_USER;
21
21
  if (!this.$hostInfo.isWindows) {
22
- // when running under 'sudo' we create a working dir with wrong owner (root) and
23
- // it is no longer accessible for the user initiating the installation
24
- // patch the owner here
25
22
  if (isRunningWithSudoUser) {
26
- // TODO: Check if this is the correct place, probably we should set this at the end of the command.
27
23
  await this.$fs.setCurrentUserAsOwner(this.$settingsService.getProfileDir(), process.env.SUDO_USER);
28
24
  }
29
25
  }
30
26
  const canExecutePostInstallTask = !isRunningWithSudoUser || (0, helpers_1.doesCurrentNpmCommandMatch)([/^--unsafe-perm$/]);
31
27
  if (canExecutePostInstallTask) {
32
28
  await this.$helpService.generateHtmlPages();
33
- // Explicitly ask for confirmation of usage-reporting:
34
29
  await this.$analyticsService.checkConsent();
35
30
  await this.$commandsService.tryExecuteCommand("autocomplete", []);
36
31
  }
@@ -47,4 +42,3 @@ class PostInstallCliCommand {
47
42
  }
48
43
  exports.PostInstallCliCommand = PostInstallCliCommand;
49
44
  yok_1.injector.registerCommand("post-install-cli", PostInstallCliCommand);
50
- //# sourceMappingURL=post-install.js.map
@@ -17,13 +17,13 @@ class PrepareCommand extends command_base_1.ValidatePlatformCommandBase {
17
17
  this.allowedParameters = [this.$platformCommandParameter];
18
18
  this.dashedOptions = {
19
19
  watch: {
20
- type: "boolean" /* OptionType.Boolean */,
20
+ type: "boolean",
21
21
  default: false,
22
22
  hasSensitiveValue: false,
23
23
  },
24
- hmr: { type: "boolean" /* OptionType.Boolean */, default: false, hasSensitiveValue: false },
24
+ hmr: { type: "boolean", default: false, hasSensitiveValue: false },
25
25
  whatever: {
26
- type: "boolean" /* OptionType.Boolean */,
26
+ type: "boolean",
27
27
  default: false,
28
28
  hasSensitiveValue: false,
29
29
  },
@@ -54,4 +54,3 @@ class PrepareCommand extends command_base_1.ValidatePlatformCommandBase {
54
54
  }
55
55
  exports.PrepareCommand = PrepareCommand;
56
56
  yok_1.injector.registerCommand("prepare", PrepareCommand);
57
- //# sourceMappingURL=prepare.js.map
@@ -24,7 +24,6 @@ class PreviewCommand {
24
24
  }
25
25
  async execute(args) {
26
26
  if (!this.$options.disableNpmInstall) {
27
- // ensure latest is installed
28
27
  await this.$packageManager.install(`${PREVIEW_CLI_PACKAGE}@latest`, this.$projectData.projectDir, {
29
28
  "save-dev": true,
30
29
  "save-exact": true,
@@ -79,4 +78,3 @@ class PreviewCommand {
79
78
  }
80
79
  exports.PreviewCommand = PreviewCommand;
81
80
  yok_1.injector.registerCommand("preview", PreviewCommand);
82
- //# sourceMappingURL=preview.js.map
@@ -27,4 +27,3 @@ class RemovePlatformCommand {
27
27
  }
28
28
  exports.RemovePlatformCommand = RemovePlatformCommand;
29
29
  yok_1.injector.registerCommand("platform|remove", RemovePlatformCommand);
30
- //# sourceMappingURL=remove-platform.js.map
@@ -15,7 +15,6 @@ class ResourcesUpdateCommand {
15
15
  }
16
16
  async canExecute(args) {
17
17
  if (!args || args.length === 0) {
18
- // Command defaults to migrating the Android App_Resources, unless explicitly specified
19
18
  args = ["android"];
20
19
  }
21
20
  for (const platform of args) {
@@ -31,4 +30,3 @@ class ResourcesUpdateCommand {
31
30
  }
32
31
  exports.ResourcesUpdateCommand = ResourcesUpdateCommand;
33
32
  yok_1.injector.registerCommand("resources|update", ResourcesUpdateCommand);
34
- //# sourceMappingURL=resources-update.js.map
@@ -154,4 +154,3 @@ class RunVisionOSCommand extends RunIosCommand {
154
154
  exports.RunVisionOSCommand = RunVisionOSCommand;
155
155
  yok_1.injector.registerCommand("run|vision", RunVisionOSCommand);
156
156
  yok_1.injector.registerCommand("run|visionos", RunVisionOSCommand);
157
- //# sourceMappingURL=run.js.map
@@ -13,4 +13,3 @@ class SetupCommand {
13
13
  }
14
14
  exports.SetupCommand = SetupCommand;
15
15
  yok_1.injector.registerCommand("setup|*", SetupCommand);
16
- //# sourceMappingURL=setup.js.map
@@ -18,4 +18,3 @@ class StartCommand {
18
18
  }
19
19
  exports.StartCommand = StartCommand;
20
20
  yok_1.injector.registerCommand("start", StartCommand);
21
- //# sourceMappingURL=start.js.map
@@ -66,8 +66,6 @@ class TestInitCommand {
66
66
  continue;
67
67
  }
68
68
  const dependencyVersion = modulePeerDependencies[peerDependency] || "*";
69
- // catch errors when a peerDependency is already installed
70
- // e.g karma is installed; karma-jasmine depends on karma and will try to install it again
71
69
  try {
72
70
  await this.$packageManager.install(`${peerDependency}@${dependencyVersion}`, projectDir, {
73
71
  "save-dev": true,
@@ -119,7 +117,6 @@ class TestInitCommand {
119
117
  const targetExampleTestRelativePath = path.relative(projectDir, targetExampleTestPath);
120
118
  bufferedLogs.push(`Added example test: ${color_1.color.yellow(targetExampleTestRelativePath)}`);
121
119
  }
122
- // test main entry
123
120
  const testMainResourcesPath = this.$resources.resolvePath(`test/test-main${projectFilesExtension}`);
124
121
  const testMainPath = path.join(this.$projectData.appDirectoryPath, `test${projectFilesExtension}`);
125
122
  if (!this.$fs.exists(testMainPath)) {
@@ -157,4 +154,3 @@ class TestInitCommand {
157
154
  }
158
155
  }
159
156
  yok_1.injector.registerCommand("test|init", TestInitCommand);
160
- //# sourceMappingURL=test-init.js.map
@@ -7,7 +7,7 @@ class TestCommandBase {
7
7
  constructor() {
8
8
  this.allowedParameters = [];
9
9
  this.dashedOptions = {
10
- hmr: { type: "boolean" /* OptionType.Boolean */, default: false, hasSensitiveValue: false },
10
+ hmr: { type: "boolean", default: false, hasSensitiveValue: false },
11
11
  };
12
12
  }
13
13
  async execute(args) {
@@ -26,8 +26,6 @@ class TestCommandBase {
26
26
  deviceId: this.$options.device,
27
27
  });
28
28
  devices = [selectedDeviceForDebug];
29
- // const debugData = this.getDebugData(platform, projectData, deployOptions, { device: selectedDeviceForDebug.deviceInfo.identifier });
30
- // await this.$debugService.debug(debugData, this.$options);
31
29
  }
32
30
  else {
33
31
  devices = await this.$liveSyncCommandHelper.getDeviceInstances(this.platform);
@@ -41,15 +39,11 @@ class TestCommandBase {
41
39
  devices.forEach((device) => (deviceDebugMap[device.deviceInfo.identifier] = this.$options.debugBrk));
42
40
  const deviceDescriptors = await this.$liveSyncCommandHelper.createDeviceDescriptors(devices, this.platform, { deviceDebugMap });
43
41
  await this.$testExecutionService.startKarmaServer(this.platform, liveSyncInfo, deviceDescriptors);
44
- // if we got here, it means karma exited with exit code 0 (success)
45
42
  process.exit(0);
46
43
  }
47
44
  async canExecute(args) {
48
45
  if (!this.$options.force) {
49
46
  if (this.$options.hmr) {
50
- // With HMR we are not restarting after LiveSync which is causing a 30 seconds app start on Android
51
- // because the Runtime does not watch for the `/data/local/tmp<appId>-livesync-in-progress` file deletion.
52
- // The App is closing itself after each test execution and the bug will be reproducible on each LiveSync.
53
47
  this.$errors.fail("The `--hmr` option is not supported for this command.");
54
48
  }
55
49
  await this.$migrateController.validate({
@@ -69,7 +63,7 @@ class TestCommandBase {
69
63
  if (!canStartKarmaServer) {
70
64
  this.$errors.fail({
71
65
  formatStr: "Error: In order to run unit tests, your project must already be configured by running $ ns test init.",
72
- errorCode: 133 /* ErrorCodes.TESTS_INIT_REQUIRED */,
66
+ errorCode: 133,
73
67
  });
74
68
  }
75
69
  return output.canExecute && canStartKarmaServer;
@@ -127,4 +121,3 @@ class TestIosCommand extends TestCommandBase {
127
121
  }
128
122
  yok_1.injector.registerCommand("test|android", TestAndroidCommand);
129
123
  yok_1.injector.registerCommand("test|ios", TestIosCommand);
130
- //# sourceMappingURL=test.js.map
@@ -88,7 +88,7 @@ class TypingsCommand {
88
88
  value: item.id,
89
89
  };
90
90
  }), true, {
91
- optionsPerPage: process.stdout.rows - 6, // 6 lines are taken up by the instructions
91
+ optionsPerPage: process.stdout.rows - 6,
92
92
  });
93
93
  this.$logger.clearScreen();
94
94
  return items
@@ -162,4 +162,3 @@ class TypingsCommand {
162
162
  }
163
163
  exports.TypingsCommand = TypingsCommand;
164
164
  yok_1.injector.registerCommand("typings", TypingsCommand);
165
- //# sourceMappingURL=typings.js.map
@@ -31,10 +31,6 @@ class UpdatePlatformCommand {
31
31
  platform,
32
32
  options: this.$options,
33
33
  };
34
- // If version is not specified, we know the command will install the latest compatible Android runtime.
35
- // The latest compatible Android runtime supports Java version, so we do not need to pass it here.
36
- // Passing projectDir to the @nativescript/doctor validation will cause it to check the runtime from the current package.json
37
- // So in this case, where we do not want to validate the runtime, just do not pass both projectDir and runtimeVersion.
38
34
  if (versionToBeInstalled) {
39
35
  checkEnvironmentRequirementsInput.projectDir = this.$projectData.projectDir;
40
36
  checkEnvironmentRequirementsInput.runtimeVersion = versionToBeInstalled;
@@ -46,4 +42,3 @@ class UpdatePlatformCommand {
46
42
  }
47
43
  exports.UpdatePlatformCommand = UpdatePlatformCommand;
48
44
  yok_1.injector.registerCommand("platform|update", UpdatePlatformCommand);
49
- //# sourceMappingURL=update-platform.js.map
@@ -17,7 +17,6 @@ class UpdateCommand {
17
17
  }
18
18
  async execute(args) {
19
19
  if (this.$options.markingMode) {
20
- // ns update --markingMode
21
20
  await this.$markingModeService.handleMarkingModeFullDeprecation({
22
21
  projectDir: this.$projectData.projectDir,
23
22
  forceSwitch: true,
@@ -56,4 +55,3 @@ exports.UpdateCommand = UpdateCommand;
56
55
  UpdateCommand.SHOULD_MIGRATE_PROJECT_MESSAGE = 'This project is not compatible with the current NativeScript version and cannot be updated. Use "ns migrate" to make your project compatible.';
57
56
  UpdateCommand.PROJECT_UP_TO_DATE_MESSAGE = "This project is up to date.";
58
57
  yok_1.injector.registerCommand("update", UpdateCommand);
59
- //# sourceMappingURL=update.js.map
@@ -76,7 +76,6 @@ class WidgetIOSCommand extends WidgetCommand {
76
76
  });
77
77
  const bundleId = this.$projectConfigService.getValue(`id`, "");
78
78
  if ([0, 1].includes(result.value)) {
79
- // shared model only needed with live activities
80
79
  await this.generateSharedWidgetPackage(this.$projectData.projectDir, name);
81
80
  }
82
81
  this.generateWidget(this.$projectData.projectDir, name, bundleId, result.value);
@@ -146,7 +145,6 @@ public struct ${(0, utils_1.capitalizeFirstLetter)(name)}Model: ActivityAttribut
146
145
  }
147
146
  }${os_1.EOL}`;
148
147
  fs.writeFileSync(sharedWidgetSourcePath, content);
149
- // update spm package
150
148
  const configData = this.$projectConfigService.readConfig(projectDir);
151
149
  if (!configData.ios) {
152
150
  configData.ios = {};
@@ -161,19 +159,16 @@ public struct ${(0, utils_1.capitalizeFirstLetter)(name)}Model: ActivityAttribut
161
159
  name: "SharedWidget",
162
160
  libs: ["SharedWidget"],
163
161
  path: "./Shared_Resources/iOS/SharedWidget",
164
- // @ts-ignore
165
162
  targets: [name],
166
163
  });
167
164
  }
168
165
  else {
169
- // add target if needed
170
166
  if (!((_a = sharedWidgetPackage.targets) === null || _a === void 0 ? void 0 : _a.includes(name))) {
171
167
  sharedWidgetPackage.targets.push(name);
172
168
  }
173
169
  }
174
170
  configData.ios.SPMPackages = spmPackages;
175
- await this.$projectConfigService.setValue("", // root
176
- configData);
171
+ await this.$projectConfigService.setValue("", configData);
177
172
  if (fs.existsSync(gitIgnorePath)) {
178
173
  const gitIgnore = fs.readFileSync(gitIgnorePath, {
179
174
  encoding: "utf-8",
@@ -203,11 +198,6 @@ public struct ${(0, utils_1.capitalizeFirstLetter)(name)}Model: ActivityAttribut
203
198
  const widgetBundlePath = path.join(widgetPath, `${capitalName}Bundle.swift`);
204
199
  const widgetHomeScreenPath = path.join(widgetPath, `${capitalName}HomeScreenWidget.swift`);
205
200
  const widgetLiveActivityPath = path.join(widgetPath, `${capitalName}LiveActivity.swift`);
206
- // const appIntentPath = path.join(widgetPath, `AppIntent.swift`);
207
- // const widgetLockScreenControlPath = path.join(
208
- // widgetPath,
209
- // `${capitalName}LockScreenControl.swift`
210
- // );
211
201
  const appEntitlementsPath = path.join(appResourcePath, "iOS", "app.entitlements");
212
202
  if (!fs.existsSync(extensionsConfigPath)) {
213
203
  fs.mkdirSync(widgetPath, { recursive: true });
@@ -249,8 +239,6 @@ public struct ${(0, utils_1.capitalizeFirstLetter)(name)}Model: ActivityAttribut
249
239
  </dict>
250
240
  </plist>${os_1.EOL}`;
251
241
  fs.writeFileSync(extensionsPrivacyPath, content);
252
- // TODO: can add control (lock screen custom control icon handler) in future
253
- // ${[1, 2].includes(type) ? capitalName + "LockScreenControl()" : ""}
254
242
  content = `import WidgetKit
255
243
  import SwiftUI
256
244
 
@@ -574,7 +562,6 @@ struct ${capitalName}HomeScreenWidget: Widget {
574
562
  encoding: "utf-8",
575
563
  }));
576
564
  if (!appInfoPlist[appSupportLiveActivity]) {
577
- // @ts-ignore
578
565
  appInfoPlist[appSupportLiveActivity] = true;
579
566
  const appPlist = plist.build(appInfoPlist);
580
567
  fs.writeFileSync(appInfoPlistPath, appPlist);
@@ -586,7 +573,6 @@ struct ${capitalName}HomeScreenWidget: Widget {
586
573
  encoding: "utf-8",
587
574
  }));
588
575
  if (!appEntitlementsPlist[appGroupKey]) {
589
- // @ts-ignore
590
576
  appEntitlementsPlist[appGroupKey] = [`group.${bundleId}`];
591
577
  const appEntitlements = plist.build(appEntitlementsPlist);
592
578
  console.log("appentitlement:", appEntitlements);
@@ -667,10 +653,6 @@ struct ${capitalName}HomeScreenWidget: Widget {
667
653
  }
668
654
  console.log(steps.join("\n"));
669
655
  }
670
- // if (fs.existsSync(filePath)) {
671
- // this.$errors.failWithHelp(`Error: File '${filePath}' already exists.`);
672
- // return;
673
- // }
674
656
  }
675
657
  generateAppleUtility(projectDir, name, bundleId, type) {
676
658
  const capitalName = (0, utils_1.capitalizeFirstLetter)(name);
@@ -815,4 +797,3 @@ declare class AppleWidgetUtils extends NSObject {
815
797
  exports.WidgetIOSCommand = WidgetIOSCommand;
816
798
  yok_1.injector.registerCommand(["widget"], WidgetCommand);
817
799
  yok_1.injector.registerCommand(["widget|ios"], WidgetIOSCommand);
818
- //# sourceMappingURL=widget.js.map
@@ -95,4 +95,3 @@ yok_1.injector.require("xcodeSelectService", "./services/xcode-select-service");
95
95
  yok_1.injector.require("net", "./services/net-service");
96
96
  yok_1.injector.require("qr", "./services/qr");
97
97
  yok_1.injector.require(["lockfile", "lockService"], "./services/lock-service");
98
- //# sourceMappingURL=bootstrap.js.map
@@ -47,7 +47,6 @@ class ChildProcess extends events_1.EventEmitter {
47
47
  spawn(command, args, options) {
48
48
  var _a;
49
49
  if (command.charAt(0) === ".") {
50
- // resolve relative paths to full paths to avoid node Spawn ENOENT errors on some setups.
51
50
  const cwd = (_a = options === null || options === void 0 ? void 0 : options.cwd) !== null && _a !== void 0 ? _a : process.cwd();
52
51
  command = (0, path_1.resolve)(cwd, command);
53
52
  }
@@ -59,7 +58,6 @@ class ChildProcess extends events_1.EventEmitter {
59
58
  return child_process.fork(modulePath, args, options);
60
59
  }
61
60
  spawnFromEvent(command, args, event, options, spawnFromEventOptions) {
62
- // event should be exit or close
63
61
  return new Promise((resolve, reject) => {
64
62
  const childProcess = this.spawn(command, args, options);
65
63
  let isResolved = false;
@@ -198,4 +196,3 @@ class ChildProcess extends events_1.EventEmitter {
198
196
  }
199
197
  exports.ChildProcess = ChildProcess;
200
198
  yok_1.injector.register("childProcess", ChildProcess);
201
- //# sourceMappingURL=child-process.js.map
@@ -45,4 +45,3 @@ class Block {
45
45
  }
46
46
  exports.Block = Block;
47
47
  yok_1.injector.register("swaggerBlock", Block);
48
- //# sourceMappingURL=code-entity.js.map
@@ -46,4 +46,3 @@ CodePrinter.NEW_LINE_CHAR = os_1.EOL;
46
46
  CodePrinter.START_BLOCK_CHAR = " {";
47
47
  CodePrinter.END_BLOCK_CHAR = "}";
48
48
  yok_1.injector.register("swaggerCodePrinter", CodePrinter);
49
- //# sourceMappingURL=code-printer.js.map
@@ -32,4 +32,3 @@ class StringParameterBuilder {
32
32
  }
33
33
  exports.StringParameterBuilder = StringParameterBuilder;
34
34
  yok_1.injector.register("stringParameterBuilder", StringParameterBuilder);
35
- //# sourceMappingURL=command-params.js.map
@@ -37,11 +37,9 @@ class AnalyticsCommand {
37
37
  switch (arg.toLowerCase()) {
38
38
  case "enable":
39
39
  await this.$analyticsService.setStatus(this.settingName, true);
40
- // TODO(Analytics): await this.$analyticsService.track(this.settingName, "enabled");
41
40
  this.$logger.info(`${this.humanReadableSettingName} is now enabled.`);
42
41
  break;
43
42
  case "disable":
44
- // TODO(Analytics): await this.$analyticsService.track(this.settingName, "disabled");
45
43
  await this.$analyticsService.setStatus(this.settingName, false);
46
44
  this.$logger.info(`${this.humanReadableSettingName} is now disabled.`);
47
45
  break;
@@ -68,4 +66,3 @@ class ErrorReportingCommand extends AnalyticsCommand {
68
66
  }
69
67
  exports.ErrorReportingCommand = ErrorReportingCommand;
70
68
  yok_1.injector.registerCommand("error-reporting", ErrorReportingCommand);
71
- //# sourceMappingURL=analytics.js.map
@@ -15,7 +15,6 @@ class AutoCompleteCommand {
15
15
  if (helpers.isInteractive()) {
16
16
  if (this.$autoCompletionService.isAutoCompletionEnabled()) {
17
17
  if (this.$autoCompletionService.isObsoleteAutoCompletionEnabled()) {
18
- // obsolete autocompletion is enabled, update it to the new one:
19
18
  await this.$autoCompletionService.enableAutoCompletion();
20
19
  }
21
20
  else {
@@ -30,7 +29,6 @@ class AutoCompleteCommand {
30
29
  await this.$autoCompletionService.enableAutoCompletion();
31
30
  }
32
31
  else {
33
- // make sure we've removed all autocompletion code from all shell profiles
34
32
  this.$autoCompletionService.disableAutoCompletion();
35
33
  }
36
34
  }
@@ -93,4 +91,3 @@ class AutoCompleteStatusCommand {
93
91
  }
94
92
  exports.AutoCompleteStatusCommand = AutoCompleteStatusCommand;
95
93
  yok_1.injector.registerCommand("autocomplete|status", AutoCompleteStatusCommand);
96
- //# sourceMappingURL=autocompletion.js.map
@@ -31,4 +31,3 @@ class OpenDeviceLogStreamCommand {
31
31
  exports.OpenDeviceLogStreamCommand = OpenDeviceLogStreamCommand;
32
32
  OpenDeviceLogStreamCommand.NOT_SPECIFIED_DEVICE_ERROR_MESSAGE = "More than one device found. Specify device explicitly.";
33
33
  yok_1.injector.registerCommand(["device|log", "devices|log"], OpenDeviceLogStreamCommand);
34
- //# sourceMappingURL=device-log-stream.js.map
@@ -25,7 +25,6 @@ class GetFileCommand {
25
25
  this.$projectData.initializeProjectData();
26
26
  }
27
27
  catch (err) {
28
- // ignore the error
29
28
  }
30
29
  if (!this.$projectData.projectIdentifiers) {
31
30
  this.$errors.fail("Please enter application identifier or execute this command in project.");
@@ -42,4 +41,3 @@ class GetFileCommand {
42
41
  }
43
42
  exports.GetFileCommand = GetFileCommand;
44
43
  yok_1.injector.registerCommand(["device|get-file", "devices|get-file"], GetFileCommand);
45
- //# sourceMappingURL=get-file.js.map
@@ -29,4 +29,3 @@ class ListApplicationsCommand {
29
29
  }
30
30
  exports.ListApplicationsCommand = ListApplicationsCommand;
31
31
  yok_1.injector.registerCommand(["device|list-applications", "devices|list-applications"], ListApplicationsCommand);
32
- //# sourceMappingURL=list-applications.js.map
@@ -92,7 +92,6 @@ class ListDevicesCommand {
92
92
  "Version",
93
93
  "Device Identifier",
94
94
  "Image Identifier",
95
- // "Error Help",
96
95
  ], []);
97
96
  for (const info of emulators) {
98
97
  table.push([
@@ -101,7 +100,6 @@ class ListDevicesCommand {
101
100
  info.version,
102
101
  info.identifier || "",
103
102
  info.imageIdentifier || "",
104
- // info.errorHelp || "",
105
103
  ]);
106
104
  }
107
105
  this.$logger.info(table.toString());
@@ -135,4 +133,3 @@ class ListiOSDevicesCommand {
135
133
  }
136
134
  }
137
135
  yok_1.injector.registerCommand(["device|ios", "devices|ios"], ListiOSDevicesCommand);
138
- //# sourceMappingURL=list-devices.js.map
@@ -26,7 +26,6 @@ class ListFilesCommand {
26
26
  this.$projectData.initializeProjectData();
27
27
  }
28
28
  catch (err) {
29
- // ignore the error
30
29
  }
31
30
  if (!this.$projectData.projectIdentifiers) {
32
31
  this.$errors.fail("Please enter application identifier or execute this command in project.");
@@ -43,4 +42,3 @@ class ListFilesCommand {
43
42
  }
44
43
  exports.ListFilesCommand = ListFilesCommand;
45
44
  yok_1.injector.registerCommand(["device|list-files", "devices|list-files"], ListFilesCommand);
46
- //# sourceMappingURL=list-files.js.map
@@ -26,7 +26,6 @@ class PutFileCommand {
26
26
  this.$projectData.initializeProjectData();
27
27
  }
28
28
  catch (err) {
29
- // ignore the error
30
29
  }
31
30
  if (!this.$projectData.projectIdentifiers) {
32
31
  this.$errors.fail("Please enter application identifier or execute this command in project.");
@@ -43,4 +42,3 @@ class PutFileCommand {
43
42
  }
44
43
  exports.PutFileCommand = PutFileCommand;
45
44
  yok_1.injector.registerCommand(["device|put-file", "devices|put-file"], PutFileCommand);
46
- //# sourceMappingURL=put-file.js.map
@@ -31,4 +31,3 @@ class RunApplicationOnDeviceCommand {
31
31
  }
32
32
  exports.RunApplicationOnDeviceCommand = RunApplicationOnDeviceCommand;
33
33
  yok_1.injector.registerCommand(["device|run", "devices|run"], RunApplicationOnDeviceCommand);
34
- //# sourceMappingURL=run-application.js.map
@@ -29,4 +29,3 @@ class StopApplicationOnDeviceCommand {
29
29
  }
30
30
  exports.StopApplicationOnDeviceCommand = StopApplicationOnDeviceCommand;
31
31
  yok_1.injector.registerCommand(["device|stop", "devices|stop"], StopApplicationOnDeviceCommand);
32
- //# sourceMappingURL=stop-application.js.map
@@ -20,4 +20,3 @@ class UninstallApplicationCommand {
20
20
  }
21
21
  exports.UninstallApplicationCommand = UninstallApplicationCommand;
22
22
  yok_1.injector.registerCommand(["device|uninstall", "devices|uninstall"], UninstallApplicationCommand);
23
- //# sourceMappingURL=uninstall-application.js.map
@@ -29,7 +29,7 @@ class DoctorIosCommand {
29
29
  trackResult: false,
30
30
  projectDir: this.$projectHelper.projectDir,
31
31
  forceCheck: true,
32
- platform: "ios" /* PlatformTypes.ios */,
32
+ platform: "ios",
33
33
  });
34
34
  }
35
35
  }
@@ -46,10 +46,9 @@ class DoctorAndroidCommand {
46
46
  trackResult: false,
47
47
  projectDir: this.$projectHelper.projectDir,
48
48
  forceCheck: true,
49
- platform: "android" /* PlatformTypes.android */,
49
+ platform: "android",
50
50
  });
51
51
  }
52
52
  }
53
53
  exports.DoctorAndroidCommand = DoctorAndroidCommand;
54
54
  yok_1.injector.registerCommand("doctor|android", DoctorAndroidCommand);
55
- //# sourceMappingURL=doctor.js.map
@@ -32,4 +32,3 @@ exports.GenerateMessages = GenerateMessages;
32
32
  GenerateMessages.MESSAGES_DEFINITIONS_FILE_NAME = "messages.interface.d.ts";
33
33
  GenerateMessages.MESSAGES_IMPLEMENTATION_FILE_NAME = "messages.ts";
34
34
  yok_1.injector.registerCommand("dev-generate-messages", GenerateMessages);
35
- //# sourceMappingURL=generate-messages.js.map
@@ -36,4 +36,3 @@ class HelpCommand {
36
36
  }
37
37
  exports.HelpCommand = HelpCommand;
38
38
  yok_1.injector.registerCommand(["help", "/?"], HelpCommand);
39
- //# sourceMappingURL=help.js.map
@@ -19,4 +19,3 @@ class PackageManagerGetCommand {
19
19
  }
20
20
  exports.PackageManagerGetCommand = PackageManagerGetCommand;
21
21
  yok_1.injector.registerCommand("package-manager|*get", PackageManagerGetCommand);
22
- //# sourceMappingURL=package-manager-get.js.map