nativescript 9.0.0-alpha.7 → 9.0.0-alpha.9

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 (326) 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 -23
  12. package/lib/commands/command-base.js +0 -1
  13. package/lib/commands/config.js +0 -4
  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/info.js +0 -1
  26. package/lib/commands/install.js +0 -1
  27. package/lib/commands/list-platforms.js +0 -1
  28. package/lib/commands/migrate.js +0 -1
  29. package/lib/commands/native-add.js +0 -5
  30. package/lib/commands/platform-clean.js +0 -1
  31. package/lib/commands/plugin/add-plugin.js +0 -1
  32. package/lib/commands/plugin/build-plugin.js +0 -1
  33. package/lib/commands/plugin/create-plugin.js +0 -5
  34. package/lib/commands/plugin/list-plugins.js +0 -1
  35. package/lib/commands/plugin/remove-plugin.js +0 -2
  36. package/lib/commands/plugin/update-plugin.js +0 -1
  37. package/lib/commands/post-install.js +0 -6
  38. package/lib/commands/prepare.js +3 -4
  39. package/lib/commands/preview.js +0 -2
  40. package/lib/commands/remove-platform.js +0 -1
  41. package/lib/commands/resources/resources-update.js +0 -2
  42. package/lib/commands/run.js +0 -1
  43. package/lib/commands/setup.js +0 -1
  44. package/lib/commands/start.js +0 -1
  45. package/lib/commands/test-init.js +0 -4
  46. package/lib/commands/test.js +2 -9
  47. package/lib/commands/typings.js +1 -2
  48. package/lib/commands/update-platform.js +0 -5
  49. package/lib/commands/update.js +0 -2
  50. package/lib/commands/widget.js +1 -20
  51. package/lib/common/bootstrap.js +0 -1
  52. package/lib/common/child-process.js +0 -3
  53. package/lib/common/codeGeneration/code-entity.js +0 -1
  54. package/lib/common/codeGeneration/code-printer.js +0 -1
  55. package/lib/common/command-params.js +0 -1
  56. package/lib/common/commands/analytics.js +0 -3
  57. package/lib/common/commands/autocompletion.js +0 -3
  58. package/lib/common/commands/device/device-log-stream.js +0 -1
  59. package/lib/common/commands/device/get-file.js +0 -2
  60. package/lib/common/commands/device/list-applications.js +0 -1
  61. package/lib/common/commands/device/list-devices.js +0 -3
  62. package/lib/common/commands/device/list-files.js +0 -2
  63. package/lib/common/commands/device/put-file.js +0 -2
  64. package/lib/common/commands/device/run-application.js +0 -1
  65. package/lib/common/commands/device/stop-application.js +0 -1
  66. package/lib/common/commands/device/uninstall-application.js +0 -1
  67. package/lib/common/commands/doctor.js +2 -3
  68. package/lib/common/commands/generate-messages.js +0 -1
  69. package/lib/common/commands/help.js +0 -1
  70. package/lib/common/commands/package-manager-get.js +0 -1
  71. package/lib/common/commands/package-manager-set.js +0 -1
  72. package/lib/common/commands/post-install.js +0 -1
  73. package/lib/common/commands/preuninstall.js +2 -11
  74. package/lib/common/commands/proxy/proxy-base.js +0 -4
  75. package/lib/common/commands/proxy/proxy-clear.js +0 -1
  76. package/lib/common/commands/proxy/proxy-get.js +0 -1
  77. package/lib/common/commands/proxy/proxy-set.js +0 -1
  78. package/lib/common/common-lib.js +0 -1
  79. package/lib/common/constants.js +0 -11
  80. package/lib/common/decorators.js +0 -48
  81. package/lib/common/dispatchers.js +1 -10
  82. package/lib/common/errors.js +3 -13
  83. package/lib/common/file-system.js +2 -13
  84. package/lib/common/header.js +0 -3
  85. package/lib/common/helpers.js +3 -89
  86. package/lib/common/host-info.js +0 -4
  87. package/lib/common/http-client.js +0 -20
  88. package/lib/common/logger/appenders/cli-appender.js +0 -4
  89. package/lib/common/logger/appenders/emit-appender.js +0 -4
  90. package/lib/common/logger/layouts/cli-layout.js +0 -1
  91. package/lib/common/logger/logger.js +0 -5
  92. package/lib/common/messages/messages.js +0 -6
  93. package/lib/common/mobile/android/android-application-manager.js +1 -20
  94. package/lib/common/mobile/android/android-debug-bridge-result-handler.js +0 -1
  95. package/lib/common/mobile/android/android-debug-bridge.js +0 -6
  96. package/lib/common/mobile/android/android-device-file-system.js +0 -4
  97. package/lib/common/mobile/android/android-device-hash-service.js +0 -3
  98. package/lib/common/mobile/android/android-device.js +0 -8
  99. package/lib/common/mobile/android/android-emulator-services.js +1 -2
  100. package/lib/common/mobile/android/android-ini-file-parser.js +0 -9
  101. package/lib/common/mobile/android/android-log-filter.js +0 -4
  102. package/lib/common/mobile/android/android-virtual-device-service.js +0 -26
  103. package/lib/common/mobile/android/device-android-debug-bridge.js +0 -1
  104. package/lib/common/mobile/android/genymotion/genymotion-service.js +1 -6
  105. package/lib/common/mobile/android/genymotion/virtualbox-service.js +0 -11
  106. package/lib/common/mobile/android/logcat-helper.js +0 -13
  107. package/lib/common/mobile/application-manager-base.js +0 -6
  108. package/lib/common/mobile/device-emitter.js +0 -4
  109. package/lib/common/mobile/device-log-emitter.js +0 -1
  110. package/lib/common/mobile/device-log-provider-base.js +0 -1
  111. package/lib/common/mobile/device-log-provider.js +0 -23
  112. package/lib/common/mobile/device-platforms-constants.js +0 -1
  113. package/lib/common/mobile/emulator-helper.js +0 -3
  114. package/lib/common/mobile/ios/device/ios-application-manager.js +0 -3
  115. package/lib/common/mobile/ios/device/ios-device-file-system.js +0 -1
  116. package/lib/common/mobile/ios/device/ios-device-operations.js +0 -4
  117. package/lib/common/mobile/ios/device/ios-device.js +0 -4
  118. package/lib/common/mobile/ios/ios-device-base.js +0 -1
  119. package/lib/common/mobile/ios/ios-device-product-name-mapper.js +0 -2
  120. package/lib/common/mobile/ios/ios-log-filter.js +0 -1
  121. package/lib/common/mobile/ios/simulator/ios-emulator-services.js +0 -4
  122. package/lib/common/mobile/ios/simulator/ios-sim-resolver.js +0 -1
  123. package/lib/common/mobile/ios/simulator/ios-simulator-application-manager.js +0 -6
  124. package/lib/common/mobile/ios/simulator/ios-simulator-device.js +0 -5
  125. package/lib/common/mobile/ios/simulator/ios-simulator-file-system.js +0 -1
  126. package/lib/common/mobile/ios/simulator/ios-simulator-log-provider.js +0 -1
  127. package/lib/common/mobile/local-to-device-path-data-factory.js +0 -1
  128. package/lib/common/mobile/log-filter.js +0 -2
  129. package/lib/common/mobile/logging-levels.js +0 -1
  130. package/lib/common/mobile/mobile-core/android-device-discovery.js +0 -2
  131. package/lib/common/mobile/mobile-core/android-emulator-discovery.js +0 -3
  132. package/lib/common/mobile/mobile-core/android-process-service.js +0 -32
  133. package/lib/common/mobile/mobile-core/device-discovery.js +0 -1
  134. package/lib/common/mobile/mobile-core/devices-service.js +0 -69
  135. package/lib/common/mobile/mobile-core/ios-device-discovery.js +0 -2
  136. package/lib/common/mobile/mobile-core/ios-simulator-discovery.js +0 -3
  137. package/lib/common/mobile/mobile-helper.js +0 -1
  138. package/lib/common/mobile/wp8/wp8-emulator-services.js +0 -1
  139. package/lib/common/opener.js +0 -1
  140. package/lib/common/os-info.js +0 -1
  141. package/lib/common/plist-parser.js +0 -1
  142. package/lib/common/project-helper.js +0 -1
  143. package/lib/common/prompter.js +1 -9
  144. package/lib/common/queue.js +0 -1
  145. package/lib/common/resource-loader.js +0 -1
  146. package/lib/common/services/auto-completion-service.js +1 -13
  147. package/lib/common/services/cancellation.js +1 -2
  148. package/lib/common/services/commands-service.js +6 -17
  149. package/lib/common/services/help-service.js +3 -11
  150. package/lib/common/services/hooks-service.js +0 -13
  151. package/lib/common/services/ios-notification-service.js +0 -1
  152. package/lib/common/services/json-file-settings-service.js +0 -6
  153. package/lib/common/services/lock-service.js +0 -6
  154. package/lib/common/services/message-contract-generator.js +0 -1
  155. package/lib/common/services/messages-service.js +0 -1
  156. package/lib/common/services/micro-templating-service.js +0 -6
  157. package/lib/common/services/net-service.js +0 -3
  158. package/lib/common/services/project-files-manager.js +0 -5
  159. package/lib/common/services/project-files-provider-base.js +0 -1
  160. package/lib/common/services/proxy-service.js +0 -1
  161. package/lib/common/services/qr.js +0 -1
  162. package/lib/common/services/settings-service.js +0 -1
  163. package/lib/common/services/xcode-select-service.js +0 -1
  164. package/lib/common/utils.js +0 -1
  165. package/lib/common/validators/project-name-validator.js +0 -1
  166. package/lib/common/validators/validation-result.js +0 -1
  167. package/lib/common/verify-node-version.js +1 -8
  168. package/lib/common/yok.js +11 -32
  169. package/lib/config.js +1 -22
  170. package/lib/constants-provider.js +0 -1
  171. package/lib/constants.js +0 -53
  172. package/lib/controllers/build-controller.js +3 -4
  173. package/lib/controllers/debug-controller.js +3 -8
  174. package/lib/controllers/deploy-controller.js +0 -1
  175. package/lib/controllers/migrate-controller.js +4 -90
  176. package/lib/controllers/platform-controller.js +1 -9
  177. package/lib/controllers/prepare-controller.js +4 -17
  178. package/lib/controllers/run-controller.js +1 -17
  179. package/lib/controllers/update-controller-base.js +0 -1
  180. package/lib/controllers/update-controller.js +0 -11
  181. package/lib/data/build-data.js +0 -1
  182. package/lib/data/controller-data-base.js +0 -1
  183. package/lib/data/debug-data.js +0 -1
  184. package/lib/data/platform-data.js +0 -1
  185. package/lib/data/prepare-data.js +0 -1
  186. package/lib/data/run-data.js +0 -1
  187. package/lib/detached-processes/cleanup-js-subprocess.js +2 -8
  188. package/lib/detached-processes/cleanup-process.js +14 -18
  189. package/lib/detached-processes/file-log-service.js +1 -2
  190. package/lib/device-path-provider.js +0 -1
  191. package/lib/device-sockets/ios/app-debug-socket-proxy-factory.js +0 -7
  192. package/lib/device-sockets/ios/notification.js +0 -3
  193. package/lib/device-sockets/ios/socket-request-executor.js +0 -3
  194. package/lib/helpers/android-bundle-validator-helper.js +1 -2
  195. package/lib/helpers/deploy-command-helper.js +0 -1
  196. package/lib/helpers/key-command-helper.js +2 -4
  197. package/lib/helpers/livesync-command-helper.js +1 -4
  198. package/lib/helpers/network-connectivity-validator.js +0 -1
  199. package/lib/helpers/options-track-helper.js +2 -3
  200. package/lib/helpers/package-path-helper.js +0 -1
  201. package/lib/helpers/platform-command-helper.js +2 -7
  202. package/lib/helpers/version-validator-helper.js +0 -1
  203. package/lib/key-commands/bootstrap.js +2 -3
  204. package/lib/key-commands/index.js +4 -5
  205. package/lib/nativescript-cli-lib-bootstrap.js +0 -4
  206. package/lib/nativescript-cli-lib.js +0 -1
  207. package/lib/nativescript-cli.js +1 -10
  208. package/lib/node/pbxproj-dom-xcode.js +0 -1
  209. package/lib/node/xcode.js +0 -1
  210. package/lib/node-package-manager.js +1 -11
  211. package/lib/options.js +119 -144
  212. package/lib/package-installation-manager.js +1 -8
  213. package/lib/package-manager.js +0 -2
  214. package/lib/platform-command-param.js +0 -1
  215. package/lib/pnpm-package-manager.js +1 -4
  216. package/lib/project-data.js +0 -12
  217. package/lib/providers/project-files-provider.js +0 -1
  218. package/lib/resolvers/livesync-service-resolver.js +0 -1
  219. package/lib/services/analytics/analytics-broker-process.js +6 -10
  220. package/lib/services/analytics/analytics-broker.js +1 -2
  221. package/lib/services/analytics/analytics-service.js +25 -29
  222. package/lib/services/analytics/google-analytics-provider.js +12 -13
  223. package/lib/services/analytics-settings-service.js +0 -5
  224. package/lib/services/android/android-bundle-tool-service.js +0 -1
  225. package/lib/services/android/gradle-build-args-service.js +0 -3
  226. package/lib/services/android/gradle-build-service.js +0 -1
  227. package/lib/services/android/gradle-command-service.js +0 -1
  228. package/lib/services/android-device-debug-service.js +0 -6
  229. package/lib/services/android-plugin-build-service.js +2 -31
  230. package/lib/services/android-project-service.js +4 -71
  231. package/lib/services/android-resources-migration-service.js +0 -7
  232. package/lib/services/apple-portal/apple-portal-application-service.js +0 -1
  233. package/lib/services/apple-portal/apple-portal-cookie-service.js +0 -1
  234. package/lib/services/apple-portal/apple-portal-session-service.js +4 -6
  235. package/lib/services/apple-portal/srp/srp-wrapper.js +1 -4
  236. package/lib/services/assets-generation/assets-generation-service.js +5 -10
  237. package/lib/services/build-artifacts-service.js +1 -2
  238. package/lib/services/build-data-service.js +0 -1
  239. package/lib/services/build-info-file-service.js +0 -1
  240. package/lib/services/bundler/bundler-compiler-service.js +35 -75
  241. package/lib/services/bundler/bundler.js +0 -1
  242. package/lib/services/cleanup-service.js +9 -13
  243. package/lib/services/cocoapods-platform-manager.js +0 -9
  244. package/lib/services/cocoapods-service.js +1 -21
  245. package/lib/services/debug-data-service.js +0 -1
  246. package/lib/services/debug-service-base.js +0 -7
  247. package/lib/services/device/device-install-app-service.js +1 -2
  248. package/lib/services/doctor-service.js +6 -21
  249. package/lib/services/extensibility-service.js +0 -8
  250. package/lib/services/files-hash-service.js +0 -1
  251. package/lib/services/hmr-status-service.js +0 -2
  252. package/lib/services/info-service.js +0 -1
  253. package/lib/services/initialize-service.js +1 -5
  254. package/lib/services/ios/export-options-plist-service.js +0 -4
  255. package/lib/services/ios/ios-signing-service.js +0 -4
  256. package/lib/services/ios/spm-service.js +0 -11
  257. package/lib/services/ios/xcodebuild-args-service.js +0 -9
  258. package/lib/services/ios/xcodebuild-command-service.js +0 -1
  259. package/lib/services/ios/xcodebuild-service.js +1 -2
  260. package/lib/services/ios-debugger-port-service.js +0 -1
  261. package/lib/services/ios-device-debug-service.js +0 -1
  262. package/lib/services/ios-entitlements-service.js +0 -1
  263. package/lib/services/ios-extensions-service.js +0 -1
  264. package/lib/services/ios-log-filter.js +0 -20
  265. package/lib/services/ios-native-target-service.js +4 -6
  266. package/lib/services/ios-project-service.js +1 -91
  267. package/lib/services/ios-provision-service.js +0 -3
  268. package/lib/services/ios-watch-app-service.js +0 -1
  269. package/lib/services/ip-service.js +0 -2
  270. package/lib/services/itmstransporter-service.js +0 -1
  271. package/lib/services/karma-execution.js +0 -2
  272. package/lib/services/livesync/android-device-livesync-service-base.js +0 -1
  273. package/lib/services/livesync/android-device-livesync-service.js +0 -2
  274. package/lib/services/livesync/android-device-livesync-sockets-service.js +0 -3
  275. package/lib/services/livesync/android-livesync-service.js +0 -1
  276. package/lib/services/livesync/android-livesync-tool.js +3 -5
  277. package/lib/services/livesync/device-livesync-service-base.js +0 -2
  278. package/lib/services/livesync/ios-device-livesync-service.js +0 -7
  279. package/lib/services/livesync/ios-livesync-service.js +0 -2
  280. package/lib/services/livesync/livesync-socket.js +0 -1
  281. package/lib/services/livesync/platform-livesync-service-base.js +0 -5
  282. package/lib/services/livesync-process-data-service.js +0 -1
  283. package/lib/services/log-parser-service.js +0 -1
  284. package/lib/services/log-source-map-service.js +0 -15
  285. package/lib/services/marking-mode-service.js +5 -8
  286. package/lib/services/metadata-filtering-service.js +0 -1
  287. package/lib/services/npm-config-service.js +0 -4
  288. package/lib/services/pacote-service.js +0 -7
  289. package/lib/services/performance-service.js +1 -3
  290. package/lib/services/platform/add-platform-service.js +2 -49
  291. package/lib/services/platform/platform-validation-service.js +0 -1
  292. package/lib/services/platform/prepare-native-platform-service.js +2 -5
  293. package/lib/services/platform-environment-requirements.js +3 -8
  294. package/lib/services/platform-project-service-base.js +0 -1
  295. package/lib/services/platforms-data-service.js +0 -1
  296. package/lib/services/plugins-service.js +2 -20
  297. package/lib/services/prepare-data-service.js +0 -1
  298. package/lib/services/project-backup-service.js +0 -4
  299. package/lib/services/project-changes-service.js +3 -14
  300. package/lib/services/project-cleanup-service.js +0 -2
  301. package/lib/services/project-config-service.js +2 -21
  302. package/lib/services/project-data-service.js +7 -36
  303. package/lib/services/project-name-service.js +0 -1
  304. package/lib/services/project-service.js +0 -10
  305. package/lib/services/project-templates-service.js +2 -3
  306. package/lib/services/qr-code-terminal-service.js +0 -1
  307. package/lib/services/require-service.js +0 -1
  308. package/lib/services/start-service.js +0 -1
  309. package/lib/services/temp-service.js +0 -3
  310. package/lib/services/terminal-spinner-service.js +0 -2
  311. package/lib/services/test-execution-service.js +2 -9
  312. package/lib/services/test-initialization-service.js +0 -4
  313. package/lib/services/timeline-profiler-service.js +0 -1
  314. package/lib/services/user-settings-service.js +0 -1
  315. package/lib/services/versions-service.js +4 -6
  316. package/lib/services/watch-ignore-list-service.js +0 -1
  317. package/lib/services/xcconfig-service.js +0 -2
  318. package/lib/services/xcproj-service.js +0 -1
  319. package/lib/shared-event-bus.js +0 -6
  320. package/lib/sys-info.js +1 -2
  321. package/lib/tools/config-manipulation/config-transformer.js +0 -12
  322. package/lib/tools/node-modules/node-modules-builder.js +0 -1
  323. package/lib/tools/node-modules/node-modules-dependencies-builder.js +0 -6
  324. package/lib/yarn-package-manager.js +0 -1
  325. package/lib/yarn2-package-manager.js +0 -3
  326. package/package.json +18 -18
@@ -52,13 +52,9 @@ class DoctorService {
52
52
  this.printPackageManagerTip();
53
53
  }
54
54
  if (!configOptions || configOptions.trackResult) {
55
- // TODO(Analytics): Consider sending this information to Google Analytics
56
- // await this.$analyticsService.track("DoctorEnvironmentSetup", hasWarnings ? "incorrect" : "correct");
57
55
  }
58
56
  if (hasWarnings) {
59
57
  this.$logger.info("There seem to be issues with your configuration.");
60
- // cleanup the cache file as there seems to be issues with the current config
61
- // all projects need to be rechecked
62
58
  this.$fs.deleteFile(this.jsonFileSettingsPath);
63
59
  }
64
60
  else {
@@ -72,7 +68,6 @@ class DoctorService {
72
68
  catch (err) {
73
69
  this.$logger.error("Cannot get the latest versions information from npm. Please try again later.");
74
70
  }
75
- // todo: check for deprecated imports from `tns-core-modules`
76
71
  this.checkForDeprecatedShortImportsInAppDir(configOptions.projectDir);
77
72
  await this.$injector
78
73
  .resolve("platformEnvironmentRequirements")
@@ -85,12 +80,12 @@ class DoctorService {
85
80
  }
86
81
  async runSetupScript() {
87
82
  await this.$analyticsService.trackEventActionInGoogleAnalytics({
88
- action: "Run Setup Script" /* TrackActionNames.RunSetupScript */,
83
+ action: "Run Setup Script",
89
84
  additionalData: "Starting",
90
85
  });
91
86
  if (this.$hostInfo.isLinux) {
92
87
  await this.$analyticsService.trackEventActionInGoogleAnalytics({
93
- action: "Run Setup Script" /* TrackActionNames.RunSetupScript */,
88
+ action: "Run Setup Script",
94
89
  additionalData: "Skipped as OS is Linux",
95
90
  });
96
91
  return;
@@ -103,13 +98,13 @@ class DoctorService {
103
98
  await this.runSetupScriptCore(DoctorService.WindowsSetupScriptExecutable, DoctorService.WindowsSetupScriptArguments);
104
99
  }
105
100
  await this.$analyticsService.trackEventActionInGoogleAnalytics({
106
- action: "Run Setup Script" /* TrackActionNames.RunSetupScript */,
101
+ action: "Run Setup Script",
107
102
  additionalData: "Finished",
108
103
  });
109
104
  }
110
105
  async canExecuteLocalBuild(configuration) {
111
106
  await this.$analyticsService.trackEventActionInGoogleAnalytics({
112
- action: "Check Local Build Setup" /* TrackActionNames.CheckLocalBuildSetup */,
107
+ action: "Check Local Build Setup",
113
108
  additionalData: "Starting",
114
109
  });
115
110
  const sysInfoConfig = {
@@ -121,11 +116,9 @@ class DoctorService {
121
116
  const warnings = this.filterInfosByType(infos, doctor_1.constants.WARNING_TYPE_NAME);
122
117
  const hasWarnings = warnings.length > 0;
123
118
  if (hasWarnings) {
124
- // cleanup the cache file as there seems to be issues with the current config
125
- // all projects need to be rechecked
126
119
  this.$fs.deleteFile(this.jsonFileSettingsPath);
127
120
  await this.$analyticsService.trackEventActionInGoogleAnalytics({
128
- action: "Check Local Build Setup" /* TrackActionNames.CheckLocalBuildSetup */,
121
+ action: "Check Local Build Setup",
129
122
  additionalData: `Warnings:${warnings.map((w) => w.message).join("__")}`,
130
123
  });
131
124
  this.printInfosCore(infos);
@@ -135,7 +128,7 @@ class DoctorService {
135
128
  await this.$jsonFileSettingsService.saveSetting(this.getKeyForConfiguration(sysInfoConfig), infos);
136
129
  }
137
130
  await this.$analyticsService.trackEventActionInGoogleAnalytics({
138
- action: "Check Local Build Setup" /* TrackActionNames.CheckLocalBuildSetup */,
131
+ action: "Check Local Build Setup",
139
132
  additionalData: `Finished: Is setup correct: ${!hasWarnings}`,
140
133
  });
141
134
  return !hasWarnings;
@@ -183,13 +176,6 @@ class DoctorService {
183
176
  .getFsStats(path.join(pathToTnsCoreModules, entry))
184
177
  .isDirectory());
185
178
  const stringRegularExpressionsPerDir = coreModulesSubDirs.map((c) => {
186
- // require("text");
187
- // require("text/smth");
188
- // require( "text/smth");
189
- // require( "text/smth" );
190
- // import * as text from "text";
191
- // import { a } from "text";
192
- // import {a } from "text/abc"
193
179
  const subDirPart = `[\"\']${c}[\"\'/]`;
194
180
  return `(\\brequire\\s*?\\(\\s*?${subDirPart})|(\\bimport\\b.*?from\\s*?${subDirPart})`;
195
181
  });
@@ -287,4 +273,3 @@ __decorate([
287
273
  (0, decorators_1.cache)()
288
274
  ], DoctorService.prototype, "$jsonFileSettingsService", null);
289
275
  yok_1.injector.register("doctorService", DoctorService);
290
- //# sourceMappingURL=doctor-service.js.map
@@ -119,17 +119,12 @@ class ExtensibilityService {
119
119
  for (const extensionData of allExtensions) {
120
120
  const extensionName = extensionData.package.name;
121
121
  try {
122
- // now get full package.json for the latest version of the package
123
122
  const registryData = await this.$packageManager.getRegistryPackageData(extensionName);
124
123
  const latestPackageData = registryData.versions[registryData["dist-tags"].latest];
125
124
  const commands = latestPackageData &&
126
125
  latestPackageData.nativescript &&
127
126
  latestPackageData.nativescript.commands;
128
127
  if (commands && commands.length) {
129
- // For each default command we need to add its short syntax in the array of commands.
130
- // For example in case there's a default command called devices list, the commands array will contain devices|*list.
131
- // However, in case the user executes just tns devices, CLI will still execute the tns devices list command.
132
- // So we need to add the devices command as well.
133
128
  _.filter(commands, (command) => command.indexOf(inputOpts.defaultCommandDelimiter) !== -1).forEach((defaultCommand) => {
134
129
  commands.push(defaultCommand.replace(defaultCommandRegExp, ""));
135
130
  });
@@ -151,7 +146,6 @@ class ExtensibilityService {
151
146
  }
152
147
  }
153
148
  catch (err) {
154
- // We do not want to stop the whole process in case we are unable to find data for one of the extensions.
155
149
  this.$logger.trace(`Unable to get data for ${extensionName}. Error is: ${err}`);
156
150
  }
157
151
  }
@@ -184,7 +178,6 @@ class ExtensibilityService {
184
178
  this.assertExtensionsDirExists();
185
179
  if (!this.$fs.exists(this.pathToPackageJson)) {
186
180
  this.$logger.trace(`Creating ${this.pathToPackageJson}.`);
187
- // create default package.json
188
181
  this.$fs.writeJson(this.pathToPackageJson, {
189
182
  name: "nativescript-extensibility",
190
183
  version: "1.0.0",
@@ -206,4 +199,3 @@ __decorate([
206
199
  (0, decorators_1.cache)()
207
200
  ], ExtensibilityService.prototype, "assertPackageJsonExists", null);
208
201
  yok_1.injector.register("extensibilityService", ExtensibilityService);
209
- //# sourceMappingURL=extensibility-service.js.map
@@ -61,4 +61,3 @@ class FilesHashService {
61
61
  }
62
62
  exports.FilesHashService = FilesHashService;
63
63
  yok_1.injector.register("filesHashService", FilesHashService);
64
- //# sourceMappingURL=files-hash-service.js.map
@@ -56,7 +56,6 @@ class HmrStatusService {
56
56
  name: "failedLiveSync",
57
57
  platform: this.$devicePlatformsConstants.iOS.toLowerCase(),
58
58
  });
59
- // webpack5
60
59
  const statusStringMap = {
61
60
  success: constants_1.HmrConstants.HMR_SUCCESS_STATUS,
62
61
  failure: constants_1.HmrConstants.HMR_ERROR_STATUS,
@@ -127,4 +126,3 @@ __decorate([
127
126
  (0, decorators_1.cache)()
128
127
  ], HmrStatusService.prototype, "attachToHmrStatusEvent", null);
129
128
  yok_1.injector.register("hmrStatusService", HmrStatusService);
130
- //# sourceMappingURL=hmr-status-service.js.map
@@ -12,4 +12,3 @@ class InfoService {
12
12
  }
13
13
  exports.InfoService = InfoService;
14
14
  yok_1.injector.register("infoService", InfoService);
15
- //# sourceMappingURL=info-service.js.map
@@ -6,8 +6,6 @@ const _ = require("lodash");
6
6
  const constants_1 = require("../constants");
7
7
  const yok_1 = require("../common/yok");
8
8
  class InitializeService {
9
- // NOTE: Do not inject anything here, use $injector.resolve in the code
10
- // Injecting something may lead to logger initialization, but we want to initialize it from here.
11
9
  constructor($injector) {
12
10
  this.$injector = $injector;
13
11
  }
@@ -35,7 +33,6 @@ class InitializeService {
35
33
  }
36
34
  }
37
35
  if ($options.json) {
38
- // speed up --json commands by not gathering system warnings...
39
36
  $logger.trace("Skipping system warnings for --json commands");
40
37
  }
41
38
  else {
@@ -47,7 +44,7 @@ class InitializeService {
47
44
  const systemWarnings = await $sysInfo.getSystemWarnings();
48
45
  _.each(systemWarnings, (systemWarning) => {
49
46
  const message = `${os_1.EOL}${systemWarning.message}${os_1.EOL}`;
50
- if (systemWarning.severity === "high" /* SystemWarningsSeverity.high */) {
47
+ if (systemWarning.severity === "high") {
51
48
  $logger.error(message);
52
49
  }
53
50
  else {
@@ -58,4 +55,3 @@ class InitializeService {
58
55
  }
59
56
  exports.InitializeService = InitializeService;
60
57
  yok_1.injector.register("initializeService", InitializeService);
61
- //# sourceMappingURL=initialize-service.js.map
@@ -54,13 +54,11 @@ class ExportOptionsPlistService {
54
54
  plistTemplate += `
55
55
  </dict>
56
56
  </plist>`;
57
- // Save the options...
58
57
  const exportOptionsPlistFilePath = await this.$tempService.path({
59
58
  prefix: "export-",
60
59
  suffix: ".plist",
61
60
  });
62
61
  this.$fs.writeFile(exportOptionsPlistFilePath, plistTemplate);
63
- // The xcodebuild exportPath expects directory and writes the <project-name>.ipa at that directory.
64
62
  const exportFileDir = path.resolve(path.dirname(archivePath));
65
63
  const exportFilePath = path.join(exportFileDir, projectData.projectName + ".ipa");
66
64
  return { exportFileDir, exportFilePath, exportOptionsPlistFilePath };
@@ -98,7 +96,6 @@ class ExportOptionsPlistService {
98
96
  <false/>
99
97
  </dict>
100
98
  </plist>`;
101
- // Save the options...
102
99
  const exportOptionsPlistFilePath = await this.$tempService.path({
103
100
  prefix: "export-",
104
101
  suffix: ".plist",
@@ -121,4 +118,3 @@ class ExportOptionsPlistService {
121
118
  }
122
119
  exports.ExportOptionsPlistService = ExportOptionsPlistService;
123
120
  yok_1.injector.register("exportOptionsPlistService", ExportOptionsPlistService);
124
- //# sourceMappingURL=export-options-plist-service.js.map
@@ -45,7 +45,6 @@ class IOSSigningService {
45
45
  let shouldUpdateXcode = false;
46
46
  if (signing && signing.style === "Automatic") {
47
47
  if (signing.team !== teamId) {
48
- // Maybe the provided team is name such as "Telerik AD" and we need to convert it to CH******37
49
48
  const teamIdsForName = await this.$iOSProvisionService.getTeamIdsWithName(teamId);
50
49
  if (!teamIdsForName.some((id) => id === signing.team)) {
51
50
  shouldUpdateXcode = true;
@@ -79,7 +78,6 @@ class IOSSigningService {
79
78
  }
80
79
  async setupSigningFromProvision(projectRoot, projectData, provision, mobileProvisionData) {
81
80
  if (!provision) {
82
- // read uuid from Xcode an cache...
83
81
  return;
84
82
  }
85
83
  const xcode = this.$pbxprojDomXcode.Xcode.open(this.getPbxProjPath(projectData, projectRoot));
@@ -112,7 +110,6 @@ class IOSSigningService {
112
110
  this.$logger.trace(`Set Manual signing style and provisioning profile: ${configuration.name} (${configuration.uuid})`);
113
111
  });
114
112
  xcode.save();
115
- // this.cache(uuid);
116
113
  }
117
114
  else {
118
115
  this.$logger.trace(`The specified provisioning profile is already set in the Xcode: ${provision}`);
@@ -269,4 +266,3 @@ class IOSSigningService {
269
266
  }
270
267
  exports.IOSSigningService = IOSSigningService;
271
268
  yok_1.injector.register("iOSSigningService", IOSSigningService);
272
- //# sourceMappingURL=ios-signing-service.js.map
@@ -15,16 +15,11 @@ class SPMService {
15
15
  const spmPackages = this.$projectConfigService.getValue(`${platform}.SPMPackages`, []);
16
16
  return spmPackages;
17
17
  }
18
- // note: this is not used anywhere at the moment.
19
- // public hasSPMPackages(projectData: IProjectData): boolean {
20
- // return this.getSPMPackages(projectData).length > 0;
21
- // }
22
18
  async applySPMPackages(platformData, projectData, pluginSpmPackages) {
23
19
  var _a;
24
20
  try {
25
21
  const spmPackages = this.getSPMPackages(projectData, platformData.platformNameLowerCase);
26
22
  if (pluginSpmPackages === null || pluginSpmPackages === void 0 ? void 0 : pluginSpmPackages.length) {
27
- // include swift packages from plugin configs
28
23
  spmPackages.push(...pluginSpmPackages);
29
24
  }
30
25
  if (!spmPackages.length) {
@@ -38,21 +33,17 @@ class SPMService {
38
33
  enableAndroid: false,
39
34
  });
40
35
  await project.load();
41
- // note: in trapeze both visionOS and iOS are handled by the ios project.
42
36
  if (!project.ios) {
43
37
  this.$logger.trace("SPM: no iOS project found via trapeze.");
44
38
  return;
45
39
  }
46
- // todo: handle removing packages? Or just warn and require a clean?
47
40
  for (const pkg of spmPackages) {
48
41
  if ("path" in pkg) {
49
- // resolve the path relative to the project root
50
42
  this.$logger.trace("SPM: resolving path for package: ", pkg.path);
51
43
  pkg.path = path.resolve(projectData.projectDir, pkg.path);
52
44
  }
53
45
  this.$logger.trace(`SPM: adding package ${pkg.name} to project.`, pkg);
54
46
  await project.ios.addSPMPackage(projectData.projectName, pkg);
55
- // Add to other Targets if specified (like widgets, etc.)
56
47
  if ((_a = pkg.targets) === null || _a === void 0 ? void 0 : _a.length) {
57
48
  for (const target of pkg.targets) {
58
49
  await project.ios.addSPMPackage(target, pkg);
@@ -60,7 +51,6 @@ class SPMService {
60
51
  }
61
52
  }
62
53
  await project.commit();
63
- // finally resolve the dependencies
64
54
  await this.resolveSPMDependencies(platformData, projectData);
65
55
  }
66
56
  catch (err) {
@@ -82,4 +72,3 @@ class SPMService {
82
72
  }
83
73
  exports.SPMService = SPMService;
84
74
  yok_1.injector.register("spmService", SPMService);
85
- //# sourceMappingURL=spm-service.js.map
@@ -88,8 +88,6 @@ class XcodebuildArgsService {
88
88
  }
89
89
  getXcodeProjectArgs(platformData, projectData) {
90
90
  const xcworkspacePath = path.join(platformData.projectRoot, `${projectData.projectName}.xcworkspace`);
91
- // Introduced in Xcode 14+
92
- // ref: https://forums.swift.org/t/telling-xcode-14-beta-4-to-trust-build-tool-plugins-programatically/59305/5
93
91
  const skipPackageValidation = "-skipPackagePluginValidation";
94
92
  const extraArgs = [
95
93
  "-scheme",
@@ -97,12 +95,6 @@ class XcodebuildArgsService {
97
95
  skipPackageValidation,
98
96
  ];
99
97
  const BUILD_SETTINGS_FILE_PATH = path.join(projectData.appResourcesDirectoryPath, platformData.normalizedPlatformName, constants.BUILD_XCCONFIG_FILE_NAME);
100
- // Only include explicit properties from build.xcconfig
101
- // Note: we could include entire file via -xcconfig flag
102
- // however doing so introduces unwanted side effects
103
- // like cocoapods issues related to ASSETCATALOG_COMPILER_APPICON_NAME
104
- // references: https://medium.com/@iostechset/why-cocoapods-eats-app-icons-79fe729808d4
105
- // https://github.com/CocoaPods/CocoaPods/issues/7003
106
98
  const deployTargetProperty = "IPHONEOS_DEPLOYMENT_TARGET";
107
99
  const deployTargetVersion = this.$xcconfigService.readPropertyValue(BUILD_SETTINGS_FILE_PATH, deployTargetProperty);
108
100
  if (deployTargetVersion) {
@@ -152,4 +144,3 @@ class XcodebuildArgsService {
152
144
  }
153
145
  exports.XcodebuildArgsService = XcodebuildArgsService;
154
146
  yok_1.injector.register("xcodebuildArgsService", XcodebuildArgsService);
155
- //# sourceMappingURL=xcodebuild-args-service.js.map
@@ -27,4 +27,3 @@ class XcodebuildCommandService {
27
27
  }
28
28
  exports.XcodebuildCommandService = XcodebuildCommandService;
29
29
  yok_1.injector.register("xcodebuildCommandService", XcodebuildCommandService);
30
- //# sourceMappingURL=xcodebuild-command-service.js.map
@@ -64,7 +64,7 @@ class XcodebuildService {
64
64
  output.exportFileDir,
65
65
  "-exportOptionsPlist",
66
66
  output.exportOptionsPlistFilePath,
67
- provision ? "" : "-allowProvisioningUpdates", // no profiles specificed so let xcode decide.
67
+ provision ? "" : "-allowProvisioningUpdates",
68
68
  ];
69
69
  await this.$xcodebuildCommandService.executeCommand(args, {
70
70
  cwd: platformData.projectRoot,
@@ -74,4 +74,3 @@ class XcodebuildService {
74
74
  }
75
75
  exports.XcodebuildService = XcodebuildService;
76
76
  yok_1.injector.register("xcodebuildService", XcodebuildService);
77
- //# sourceMappingURL=xcodebuild-service.js.map
@@ -125,4 +125,3 @@ __decorate([
125
125
  (0, decorators_1.cache)()
126
126
  ], IOSDebuggerPortService.prototype, "attachToAttachRequestEvent", null);
127
127
  yok_1.injector.register("iOSDebuggerPortService", IOSDebuggerPortService);
128
- //# sourceMappingURL=ios-debugger-port-service.js.map
@@ -138,4 +138,3 @@ __decorate([
138
138
  (0, decorators_1.performanceLog)()
139
139
  ], IOSDeviceDebugService.prototype, "openAppInspector", null);
140
140
  yok_1.injector.register("iOSDeviceDebugService", IOSDeviceDebugService, false);
141
- //# sourceMappingURL=ios-device-debug-service.js.map
@@ -65,4 +65,3 @@ class IOSEntitlementsService {
65
65
  exports.IOSEntitlementsService = IOSEntitlementsService;
66
66
  IOSEntitlementsService.DefaultEntitlementsName = "app.entitlements";
67
67
  yok_1.injector.register("iOSEntitlementsService", IOSEntitlementsService);
68
- //# sourceMappingURL=ios-entitlements-service.js.map
@@ -50,4 +50,3 @@ class IOSExtensionsService {
50
50
  }
51
51
  exports.IOSExtensionsService = IOSExtensionsService;
52
52
  yok_1.injector.register("iOSExtensionsService", IOSExtensionsService);
53
- //# sourceMappingURL=ios-extensions-service.js.map
@@ -5,20 +5,8 @@ const yok_1 = require("../common/yok");
5
5
  class IOSLogFilter {
6
6
  constructor($loggingLevels) {
7
7
  this.$loggingLevels = $loggingLevels;
8
- // Used to recognize output related to the current project
9
- // This looks for artifacts like: AppName[22432] or AppName(SomeTextHere)[23123]
10
8
  this.appOutputRegex = /([^\s\(\)]+)(?:\(([^\s]+)\))?\[[0-9]+\]/;
11
- // Used to trim the passed messages to a simpler output
12
- // Example:
13
- // This: "May 24 15:54:52 Dragons-iPhone NativeScript250(NativeScript)[356] <Notice>: CONSOLE ERROR file:///app/tns_modules/@angular/core/bundles/core.umd.js:3477:36: ORIGINAL STACKTRACE:"
14
- // Becomes: CONSOLE ERROR file:///app/tns_modules/@angular/core/bundles/core.umd.js:3477:36: ORIGINAL STACKTRACE:
15
9
  this.infoFilterRegex = new RegExp(`^.*(?:<Notice>:[ \t]?|<Error>:[ \t]?|<Warning>:[ \t]?|\\(NativeScript\\)[ \t]?|${this.appOutputRegex.source}:[ \t]?){1}`);
16
- // Used to post filter messages that slip through but are not coming from NativeScript itself.
17
- // Looks for text in parenthesis at the beginning
18
- // Example:
19
- // (RunningBoardServices) [com.apple.runningboard:connection] Identity resolved as application<...>
20
- // ^(~~capture group~~~)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21
- // we then use this to filter out non-NativeScript lines
22
10
  this.postFilterRegex = /^\((.+)\) \[com\.apple.+\]/;
23
11
  this.filterActive = true;
24
12
  this.partialLine = null;
@@ -41,15 +29,11 @@ class IOSLogFilter {
41
29
  this.partialLine = currentLine;
42
30
  break;
43
31
  }
44
- // Legacy filter moved to preFilter
45
32
  if (this.preFilter(data, currentLine)) {
46
33
  continue;
47
34
  }
48
35
  const matchResult = this.appOutputRegex.exec(currentLine);
49
36
  if (matchResult && matchResult.length > 1) {
50
- // Check if the name of the app equals the name of the CLI project and turn on the filter if not.
51
- // We call initializeProjectData in order to obtain the current project name as the instance
52
- // of this filter may be used accross multiple projects.
53
37
  const projectName = loggingOptions && loggingOptions.projectName;
54
38
  this.filterActive = matchResult[1] !== projectName;
55
39
  if (matchResult === null || matchResult === void 0 ? void 0 : matchResult[2]) {
@@ -64,11 +48,8 @@ class IOSLogFilter {
64
48
  currentLine = currentLine.replace(filteredLineInfo[0], "");
65
49
  }
66
50
  currentLine = currentLine
67
- // remove lading space before CONSOLE
68
51
  .replace(/^\s*CONSOLE/, "CONSOLE")
69
- // trim trailing spaces only to preserve indentation
70
52
  .trimEnd();
71
- // post filtering: (<anything>) check if <anything> is not "NativeScript"
72
53
  const postFilterMatch = this.postFilterRegex.exec(currentLine);
73
54
  if (postFilterMatch && (postFilterMatch === null || postFilterMatch === void 0 ? void 0 : postFilterMatch[1]) !== "NativeScript") {
74
55
  continue;
@@ -87,4 +68,3 @@ class IOSLogFilter {
87
68
  }
88
69
  exports.IOSLogFilter = IOSLogFilter;
89
70
  yok_1.injector.register("iOSLogFilter", IOSLogFilter);
90
- //# sourceMappingURL=ios-log-filter.js.map
@@ -58,8 +58,8 @@ class IOSNativeTargetService {
58
58
  setXcodeTargetBuildConfigurationProperties(properties, targetName, project) {
59
59
  properties.forEach((property) => {
60
60
  const buildNames = property.buildNames || [
61
- "Debug" /* BuildNames.debug */,
62
- "Release" /* BuildNames.release */,
61
+ "Debug",
62
+ "Release",
63
63
  ];
64
64
  buildNames.forEach((buildName) => {
65
65
  project.addBuildProperty(property.name, property.value, buildName, targetName);
@@ -76,7 +76,6 @@ class IOSNativeTargetService {
76
76
  project.addToBuildSettings("ASSETCATALOG_COMPILER_APPICON_NAME", configurationJson.assetcatalogCompilerAppiconName, targetUuid);
77
77
  }
78
78
  const properties = [];
79
- // Set for both release and debug
80
79
  if (configurationJson.targetBuildConfigurationProperties) {
81
80
  _.forEach(configurationJson.targetBuildConfigurationProperties, (value, name) => properties.push({ value, name }));
82
81
  }
@@ -85,11 +84,11 @@ class IOSNativeTargetService {
85
84
  var buildName = null;
86
85
  switch (name) {
87
86
  case "debug": {
88
- buildName = "Debug" /* BuildNames.debug */;
87
+ buildName = "Debug";
89
88
  break;
90
89
  }
91
90
  case "release": {
92
- buildName = "Release" /* BuildNames.release */;
91
+ buildName = "Release";
93
92
  break;
94
93
  }
95
94
  default: {
@@ -107,4 +106,3 @@ class IOSNativeTargetService {
107
106
  }
108
107
  exports.IOSNativeTargetService = IOSNativeTargetService;
109
108
  yok_1.injector.register("iOSNativeTargetService", IOSNativeTargetService);
110
- //# sourceMappingURL=ios-native-target-service.js.map