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
@@ -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 ns devices, CLI will still execute the ns 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
@@ -8,11 +8,12 @@ const _ = require("lodash");
8
8
  const yok_1 = require("../../common/yok");
9
9
  const constants = require("../../constants");
10
10
  class IOSSigningService {
11
- constructor($errors, $fs, $iOSProvisionService, $logger, $pbxprojDomXcode, $prompter, $xcconfigService, $xcprojService) {
11
+ constructor($errors, $fs, $iOSProvisionService, $logger, $options, $pbxprojDomXcode, $prompter, $xcconfigService, $xcprojService) {
12
12
  this.$errors = $errors;
13
13
  this.$fs = $fs;
14
14
  this.$iOSProvisionService = $iOSProvisionService;
15
15
  this.$logger = $logger;
16
+ this.$options = $options;
16
17
  this.$pbxprojDomXcode = $pbxprojDomXcode;
17
18
  this.$prompter = $prompter;
18
19
  this.$xcconfigService = $xcconfigService;
@@ -45,7 +46,6 @@ class IOSSigningService {
45
46
  let shouldUpdateXcode = false;
46
47
  if (signing && signing.style === "Automatic") {
47
48
  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
49
  const teamIdsForName = await this.$iOSProvisionService.getTeamIdsWithName(teamId);
50
50
  if (!teamIdsForName.some((id) => id === signing.team)) {
51
51
  shouldUpdateXcode = true;
@@ -79,7 +79,6 @@ class IOSSigningService {
79
79
  }
80
80
  async setupSigningFromProvision(projectRoot, projectData, provision, mobileProvisionData) {
81
81
  if (!provision) {
82
- // read uuid from Xcode an cache...
83
82
  return;
84
83
  }
85
84
  const xcode = this.$pbxprojDomXcode.Xcode.open(this.getPbxProjPath(projectData, projectRoot));
@@ -112,7 +111,6 @@ class IOSSigningService {
112
111
  this.$logger.trace(`Set Manual signing style and provisioning profile: ${configuration.name} (${configuration.uuid})`);
113
112
  });
114
113
  xcode.save();
115
- // this.cache(uuid);
116
114
  }
117
115
  else {
118
116
  this.$logger.trace(`The specified provisioning profile is already set in the Xcode: ${provision}`);
@@ -150,6 +148,7 @@ class IOSSigningService {
150
148
  return [];
151
149
  }
152
150
  async getManualSigningConfiguration(projectData, provision, mobileProvisionData) {
151
+ var _a;
153
152
  const pickStart = Date.now();
154
153
  const mobileprovision = mobileProvisionData ||
155
154
  (await this.$iOSProvisionService.pick(provision, projectData.projectIdentifiers.ios));
@@ -162,6 +161,7 @@ class IOSSigningService {
162
161
  if (!mobileprovision) {
163
162
  this.$errors.fail("Failed to find mobile provision with UUID or Name: " + provision);
164
163
  }
164
+ const isVisionOS = ((_a = this.$options.platformOverride) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === "visionos";
165
165
  const configuration = {
166
166
  team: mobileprovision.TeamIdentifier &&
167
167
  mobileprovision.TeamIdentifier.length > 0
@@ -170,8 +170,12 @@ class IOSSigningService {
170
170
  uuid: mobileprovision.UUID,
171
171
  name: mobileprovision.Name,
172
172
  identity: mobileprovision.Type === "Development"
173
- ? "iPhone Developer"
174
- : "iPhone Distribution",
173
+ ? isVisionOS
174
+ ? "Apple Development"
175
+ : "iPhone Developer"
176
+ : isVisionOS
177
+ ? "Apple Distribution"
178
+ : "iPhone Distribution",
175
179
  };
176
180
  return configuration;
177
181
  }
@@ -269,4 +273,3 @@ class IOSSigningService {
269
273
  }
270
274
  exports.IOSSigningService = IOSSigningService;
271
275
  yok_1.injector.register("iOSSigningService", IOSSigningService);
272
- //# sourceMappingURL=ios-signing-service.js.map
@@ -15,15 +15,7 @@ class SPMService {
15
15
  const spmPackages = this.$projectConfigService.getValue(`${platform}.SPMPackages`, []);
16
16
  return spmPackages;
17
17
  }
18
- /**
19
- * Merges plugin SPM packages with app SPM packages.
20
- * App packages take precedence over plugin packages with the same name.
21
- * @param appPackages - Array of app SPM packages (modified in place)
22
- * @param pluginPackages - Array of plugin SPM packages to merge
23
- */
24
18
  mergePluginSPMPackages(appPackages, pluginPackages) {
25
- // include swift packages from plugin configs
26
- // but allow app packages to override plugin packages with the same name
27
19
  const appPackageNames = new Set(appPackages.map(pkg => pkg.name));
28
20
  for (const pluginPkg of pluginPackages) {
29
21
  if (appPackageNames.has(pluginPkg.name)) {
@@ -34,10 +26,6 @@ class SPMService {
34
26
  }
35
27
  }
36
28
  }
37
- // note: this is not used anywhere at the moment.
38
- // public hasSPMPackages(projectData: IProjectData): boolean {
39
- // return this.getSPMPackages(projectData).length > 0;
40
- // }
41
29
  async applySPMPackages(platformData, projectData, pluginSpmPackages) {
42
30
  var _a;
43
31
  try {
@@ -56,21 +44,17 @@ class SPMService {
56
44
  enableAndroid: false,
57
45
  });
58
46
  await project.load();
59
- // note: in trapeze both visionOS and iOS are handled by the ios project.
60
47
  if (!project.ios) {
61
48
  this.$logger.trace("SPM: no iOS project found via trapeze.");
62
49
  return;
63
50
  }
64
- // todo: handle removing packages? Or just warn and require a clean?
65
51
  for (const pkg of spmPackages) {
66
52
  if ("path" in pkg) {
67
- // resolve the path relative to the project root
68
53
  this.$logger.trace("SPM: resolving path for package: ", pkg.path);
69
54
  pkg.path = path.resolve(projectData.projectDir, pkg.path);
70
55
  }
71
56
  this.$logger.trace(`SPM: adding package ${pkg.name} to project.`, pkg);
72
57
  await project.ios.addSPMPackage(projectData.projectName, pkg);
73
- // Add to other Targets if specified (like widgets, etc.)
74
58
  if ((_a = pkg.targets) === null || _a === void 0 ? void 0 : _a.length) {
75
59
  for (const target of pkg.targets) {
76
60
  await project.ios.addSPMPackage(target, pkg);
@@ -78,7 +62,6 @@ class SPMService {
78
62
  }
79
63
  }
80
64
  await project.commit();
81
- // finally resolve the dependencies
82
65
  await this.resolveSPMDependencies(platformData, projectData);
83
66
  }
84
67
  catch (err) {
@@ -100,4 +83,3 @@ class SPMService {
100
83
  }
101
84
  exports.SPMService = SPMService;
102
85
  yok_1.injector.register("spmService", SPMService);
103
- //# sourceMappingURL=spm-service.js.map
@@ -77,8 +77,6 @@ class XcodebuildArgsService {
77
77
  async getArchitecturesArgs(buildConfig) {
78
78
  const args = [];
79
79
  if (this.$devicePlatformsConstants.isvisionOS(buildConfig.platform)) {
80
- // visionOS builds (device/simulator) are arm64-only; rely on destination for arch
81
- // and explicitly exclude x86_64 to avoid accidental selection
82
80
  args.push("ONLY_ACTIVE_ARCH=YES", "EXCLUDED_ARCHS=x86_64");
83
81
  return args;
84
82
  }
@@ -92,8 +90,6 @@ class XcodebuildArgsService {
92
90
  }
93
91
  getXcodeProjectArgs(platformData, projectData) {
94
92
  const xcworkspacePath = path.join(platformData.projectRoot, `${projectData.projectName}.xcworkspace`);
95
- // Introduced in Xcode 14+
96
- // ref: https://forums.swift.org/t/telling-xcode-14-beta-4-to-trust-build-tool-plugins-programatically/59305/5
97
93
  const skipPackageValidation = "-skipPackagePluginValidation";
98
94
  const extraArgs = [
99
95
  "-scheme",
@@ -101,12 +97,6 @@ class XcodebuildArgsService {
101
97
  skipPackageValidation,
102
98
  ];
103
99
  const BUILD_SETTINGS_FILE_PATH = path.join(projectData.appResourcesDirectoryPath, platformData.normalizedPlatformName, constants.BUILD_XCCONFIG_FILE_NAME);
104
- // Only include explicit properties from build.xcconfig
105
- // Note: we could include entire file via -xcconfig flag
106
- // however doing so introduces unwanted side effects
107
- // like cocoapods issues related to ASSETCATALOG_COMPILER_APPICON_NAME
108
- // references: https://medium.com/@iostechset/why-cocoapods-eats-app-icons-79fe729808d4
109
- // https://github.com/CocoaPods/CocoaPods/issues/7003
110
100
  const deployTargetProperty = "IPHONEOS_DEPLOYMENT_TARGET";
111
101
  const deployTargetVersion = this.$xcconfigService.readPropertyValue(BUILD_SETTINGS_FILE_PATH, deployTargetProperty);
112
102
  if (deployTargetVersion) {
@@ -156,4 +146,3 @@ class XcodebuildArgsService {
156
146
  }
157
147
  exports.XcodebuildArgsService = XcodebuildArgsService;
158
148
  yok_1.injector.register("xcodebuildArgsService", XcodebuildArgsService);
159
- //# 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
@@ -67,4 +67,3 @@ class IOSEntitlementsService {
67
67
  exports.IOSEntitlementsService = IOSEntitlementsService;
68
68
  IOSEntitlementsService.DefaultEntitlementsName = "app.entitlements";
69
69
  yok_1.injector.register("iOSEntitlementsService", IOSEntitlementsService);
70
- //# 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