nativescript 8.7.2 → 8.8.0-alpha.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 (327) hide show
  1. package/lib/android-tools-info.js +0 -12
  2. package/lib/base-package-manager.js +0 -7
  3. package/lib/bootstrap.js +1 -5
  4. package/lib/bun-package-manager.js +1 -17
  5. package/lib/color.js +0 -3
  6. package/lib/commands/add-platform.js +0 -1
  7. package/lib/commands/apple-login.js +0 -1
  8. package/lib/commands/appstore-list.js +0 -1
  9. package/lib/commands/appstore-upload.js +0 -4
  10. package/lib/commands/build.js +2 -3
  11. package/lib/commands/clean.js +1 -22
  12. package/lib/commands/command-base.js +0 -1
  13. package/lib/commands/config.js +0 -3
  14. package/lib/commands/create-project.js +0 -6
  15. package/lib/commands/debug.js +1 -6
  16. package/lib/commands/deploy.js +2 -3
  17. package/lib/commands/extensibility/install-extension.js +0 -1
  18. package/lib/commands/extensibility/list-extensions.js +0 -1
  19. package/lib/commands/extensibility/uninstall-extension.js +0 -1
  20. package/lib/commands/fonts.js +0 -1
  21. package/lib/commands/generate-assets.js +0 -1
  22. package/lib/commands/generate-help.js +0 -1
  23. package/lib/commands/generate.js +2 -12
  24. package/lib/commands/info.js +0 -1
  25. package/lib/commands/install.js +0 -1
  26. package/lib/commands/list-platforms.js +0 -1
  27. package/lib/commands/migrate.js +0 -1
  28. package/lib/commands/platform-clean.js +0 -1
  29. package/lib/commands/plugin/add-plugin.js +0 -1
  30. package/lib/commands/plugin/build-plugin.js +0 -1
  31. package/lib/commands/plugin/create-plugin.js +0 -5
  32. package/lib/commands/plugin/list-plugins.js +0 -1
  33. package/lib/commands/plugin/remove-plugin.js +0 -2
  34. package/lib/commands/plugin/update-plugin.js +0 -1
  35. package/lib/commands/post-install.js +0 -6
  36. package/lib/commands/prepare.js +2 -3
  37. package/lib/commands/preview.js +0 -2
  38. package/lib/commands/remove-platform.js +0 -1
  39. package/lib/commands/resources/resources-update.js +0 -2
  40. package/lib/commands/run.js +0 -1
  41. package/lib/commands/setup.js +0 -1
  42. package/lib/commands/start.js +0 -1
  43. package/lib/commands/test-init.js +0 -4
  44. package/lib/commands/test.js +2 -9
  45. package/lib/commands/typings.js +1 -2
  46. package/lib/commands/update-platform.js +0 -5
  47. package/lib/commands/update.js +0 -2
  48. package/lib/common/bootstrap.js +0 -1
  49. package/lib/common/child-process.js +0 -3
  50. package/lib/common/codeGeneration/code-entity.js +0 -1
  51. package/lib/common/codeGeneration/code-printer.js +0 -1
  52. package/lib/common/command-params.js +0 -1
  53. package/lib/common/commands/analytics.js +0 -3
  54. package/lib/common/commands/autocompletion.js +0 -3
  55. package/lib/common/commands/device/device-log-stream.js +0 -1
  56. package/lib/common/commands/device/get-file.js +0 -2
  57. package/lib/common/commands/device/list-applications.js +0 -1
  58. package/lib/common/commands/device/list-devices.js +0 -3
  59. package/lib/common/commands/device/list-files.js +0 -2
  60. package/lib/common/commands/device/put-file.js +0 -2
  61. package/lib/common/commands/device/run-application.js +0 -1
  62. package/lib/common/commands/device/stop-application.js +0 -1
  63. package/lib/common/commands/device/uninstall-application.js +0 -1
  64. package/lib/common/commands/doctor.js +2 -3
  65. package/lib/common/commands/generate-messages.js +0 -1
  66. package/lib/common/commands/help.js +0 -1
  67. package/lib/common/commands/package-manager-get.js +0 -1
  68. package/lib/common/commands/package-manager-set.js +0 -1
  69. package/lib/common/commands/post-install.js +0 -1
  70. package/lib/common/commands/preuninstall.js +2 -11
  71. package/lib/common/commands/proxy/proxy-base.js +0 -4
  72. package/lib/common/commands/proxy/proxy-clear.js +0 -1
  73. package/lib/common/commands/proxy/proxy-get.js +0 -1
  74. package/lib/common/commands/proxy/proxy-set.js +0 -1
  75. package/lib/common/common-lib.js +0 -1
  76. package/lib/common/constants.js +0 -11
  77. package/lib/common/decorators.js +0 -48
  78. package/lib/common/dispatchers.js +1 -10
  79. package/lib/common/errors.js +3 -13
  80. package/lib/common/file-system.js +2 -13
  81. package/lib/common/header.js +0 -3
  82. package/lib/common/helpers.js +3 -89
  83. package/lib/common/host-info.js +0 -4
  84. package/lib/common/http-client.js +0 -20
  85. package/lib/common/logger/appenders/cli-appender.js +0 -4
  86. package/lib/common/logger/appenders/emit-appender.js +0 -4
  87. package/lib/common/logger/layouts/cli-layout.js +0 -1
  88. package/lib/common/logger/logger.js +0 -5
  89. package/lib/common/messages/messages.js +0 -6
  90. package/lib/common/mobile/android/android-application-manager.js +1 -20
  91. package/lib/common/mobile/android/android-debug-bridge-result-handler.js +0 -1
  92. package/lib/common/mobile/android/android-debug-bridge.js +0 -6
  93. package/lib/common/mobile/android/android-device-file-system.js +0 -4
  94. package/lib/common/mobile/android/android-device-hash-service.js +0 -3
  95. package/lib/common/mobile/android/android-device.js +0 -8
  96. package/lib/common/mobile/android/android-emulator-services.js +1 -2
  97. package/lib/common/mobile/android/android-ini-file-parser.js +0 -9
  98. package/lib/common/mobile/android/android-log-filter.js +0 -4
  99. package/lib/common/mobile/android/android-virtual-device-service.js +0 -26
  100. package/lib/common/mobile/android/device-android-debug-bridge.js +0 -1
  101. package/lib/common/mobile/android/genymotion/genymotion-service.js +0 -5
  102. package/lib/common/mobile/android/genymotion/virtualbox-service.js +0 -11
  103. package/lib/common/mobile/android/logcat-helper.js +1 -20
  104. package/lib/common/mobile/application-manager-base.js +0 -6
  105. package/lib/common/mobile/device-emitter.js +0 -4
  106. package/lib/common/mobile/device-log-emitter.js +0 -1
  107. package/lib/common/mobile/device-log-provider-base.js +0 -1
  108. package/lib/common/mobile/device-log-provider.js +0 -23
  109. package/lib/common/mobile/device-platforms-constants.js +0 -1
  110. package/lib/common/mobile/emulator-helper.js +0 -3
  111. package/lib/common/mobile/ios/device/ios-application-manager.js +0 -3
  112. package/lib/common/mobile/ios/device/ios-device-file-system.js +0 -1
  113. package/lib/common/mobile/ios/device/ios-device-operations.js +0 -4
  114. package/lib/common/mobile/ios/device/ios-device.js +0 -4
  115. package/lib/common/mobile/ios/ios-device-base.js +0 -1
  116. package/lib/common/mobile/ios/ios-device-product-name-mapper.js +0 -2
  117. package/lib/common/mobile/ios/ios-log-filter.js +0 -1
  118. package/lib/common/mobile/ios/simulator/ios-emulator-services.js +0 -4
  119. package/lib/common/mobile/ios/simulator/ios-sim-resolver.js +0 -1
  120. package/lib/common/mobile/ios/simulator/ios-simulator-application-manager.js +0 -6
  121. package/lib/common/mobile/ios/simulator/ios-simulator-device.js +0 -5
  122. package/lib/common/mobile/ios/simulator/ios-simulator-file-system.js +0 -1
  123. package/lib/common/mobile/ios/simulator/ios-simulator-log-provider.js +0 -1
  124. package/lib/common/mobile/local-to-device-path-data-factory.js +0 -1
  125. package/lib/common/mobile/log-filter.js +0 -2
  126. package/lib/common/mobile/logging-levels.js +0 -1
  127. package/lib/common/mobile/mobile-core/android-device-discovery.js +0 -2
  128. package/lib/common/mobile/mobile-core/android-emulator-discovery.js +0 -3
  129. package/lib/common/mobile/mobile-core/android-process-service.js +0 -32
  130. package/lib/common/mobile/mobile-core/device-discovery.js +0 -1
  131. package/lib/common/mobile/mobile-core/devices-service.js +0 -69
  132. package/lib/common/mobile/mobile-core/ios-device-discovery.js +0 -2
  133. package/lib/common/mobile/mobile-core/ios-simulator-discovery.js +0 -3
  134. package/lib/common/mobile/mobile-helper.js +0 -1
  135. package/lib/common/mobile/wp8/wp8-emulator-services.js +0 -1
  136. package/lib/common/opener.js +0 -1
  137. package/lib/common/os-info.js +0 -1
  138. package/lib/common/plist-parser.js +0 -1
  139. package/lib/common/project-helper.js +0 -1
  140. package/lib/common/prompter.js +1 -9
  141. package/lib/common/queue.js +0 -1
  142. package/lib/common/resource-loader.js +0 -1
  143. package/lib/common/services/auto-completion-service.js +1 -13
  144. package/lib/common/services/cancellation.js +1 -2
  145. package/lib/common/services/commands-service.js +6 -17
  146. package/lib/common/services/help-service.js +3 -11
  147. package/lib/common/services/hooks-service.js +0 -13
  148. package/lib/common/services/ios-notification-service.js +0 -1
  149. package/lib/common/services/json-file-settings-service.js +0 -6
  150. package/lib/common/services/lock-service.js +0 -6
  151. package/lib/common/services/message-contract-generator.js +0 -1
  152. package/lib/common/services/messages-service.js +0 -1
  153. package/lib/common/services/micro-templating-service.js +0 -6
  154. package/lib/common/services/net-service.js +0 -3
  155. package/lib/common/services/project-files-manager.js +0 -5
  156. package/lib/common/services/project-files-provider-base.js +0 -1
  157. package/lib/common/services/proxy-service.js +0 -1
  158. package/lib/common/services/qr.js +0 -1
  159. package/lib/common/services/settings-service.js +0 -1
  160. package/lib/common/services/xcode-select-service.js +0 -1
  161. package/lib/common/utils.js +0 -1
  162. package/lib/common/validators/project-name-validator.js +0 -1
  163. package/lib/common/validators/validation-result.js +0 -1
  164. package/lib/common/verify-node-version.js +1 -8
  165. package/lib/common/yok.js +11 -32
  166. package/lib/config.js +1 -22
  167. package/lib/constants-provider.js +0 -1
  168. package/lib/constants.js +0 -53
  169. package/lib/controllers/build-controller.js +3 -4
  170. package/lib/controllers/debug-controller.js +3 -8
  171. package/lib/controllers/deploy-controller.js +0 -1
  172. package/lib/controllers/migrate-controller.js +3 -91
  173. package/lib/controllers/platform-controller.js +1 -9
  174. package/lib/controllers/prepare-controller.js +4 -14
  175. package/lib/controllers/run-controller.js +1 -17
  176. package/lib/controllers/update-controller-base.js +0 -1
  177. package/lib/controllers/update-controller.js +0 -11
  178. package/lib/data/build-data.js +0 -1
  179. package/lib/data/controller-data-base.js +0 -1
  180. package/lib/data/debug-data.js +0 -1
  181. package/lib/data/platform-data.js +0 -1
  182. package/lib/data/prepare-data.js +0 -1
  183. package/lib/data/run-data.js +0 -1
  184. package/lib/detached-processes/cleanup-js-subprocess.js +2 -8
  185. package/lib/detached-processes/cleanup-process.js +14 -18
  186. package/lib/detached-processes/file-log-service.js +1 -2
  187. package/lib/device-path-provider.js +0 -1
  188. package/lib/device-sockets/ios/app-debug-socket-proxy-factory.js +0 -7
  189. package/lib/device-sockets/ios/notification.js +0 -3
  190. package/lib/device-sockets/ios/socket-request-executor.js +0 -3
  191. package/lib/helpers/android-bundle-validator-helper.js +1 -2
  192. package/lib/helpers/deploy-command-helper.js +0 -1
  193. package/lib/helpers/key-command-helper.js +2 -4
  194. package/lib/helpers/livesync-command-helper.js +1 -4
  195. package/lib/helpers/network-connectivity-validator.js +0 -1
  196. package/lib/helpers/options-track-helper.js +2 -3
  197. package/lib/helpers/package-path-helper.js +0 -1
  198. package/lib/helpers/platform-command-helper.js +2 -7
  199. package/lib/helpers/version-validator-helper.js +0 -1
  200. package/lib/key-commands/bootstrap.js +2 -3
  201. package/lib/key-commands/index.js +4 -5
  202. package/lib/nativescript-cli-lib-bootstrap.js +0 -4
  203. package/lib/nativescript-cli-lib.js +0 -1
  204. package/lib/nativescript-cli.js +1 -10
  205. package/lib/node/pbxproj-dom-xcode.js +0 -1
  206. package/lib/node/xcode.js +0 -1
  207. package/lib/node-package-manager.js +1 -11
  208. package/lib/options.js +116 -141
  209. package/lib/package-installation-manager.js +1 -8
  210. package/lib/package-manager.js +0 -2
  211. package/lib/platform-command-param.js +0 -1
  212. package/lib/pnpm-package-manager.js +1 -4
  213. package/lib/project-data.js +0 -12
  214. package/lib/providers/project-files-provider.js +0 -1
  215. package/lib/resolvers/livesync-service-resolver.js +0 -1
  216. package/lib/services/analytics/analytics-broker-process.js +6 -10
  217. package/lib/services/analytics/analytics-broker.js +1 -2
  218. package/lib/services/analytics/analytics-service.js +25 -29
  219. package/lib/services/analytics/google-analytics-provider.js +12 -13
  220. package/lib/services/analytics-settings-service.js +0 -5
  221. package/lib/services/android/android-bundle-tool-service.js +0 -1
  222. package/lib/services/android/gradle-build-args-service.js +2 -9
  223. package/lib/services/android/gradle-build-service.js +0 -1
  224. package/lib/services/android/gradle-command-service.js +0 -1
  225. package/lib/services/android-device-debug-service.js +0 -6
  226. package/lib/services/android-plugin-build-service.js +12 -43
  227. package/lib/services/android-project-service.js +4 -71
  228. package/lib/services/android-resources-migration-service.js +0 -7
  229. package/lib/services/apple-portal/apple-portal-application-service.js +0 -1
  230. package/lib/services/apple-portal/apple-portal-cookie-service.js +0 -1
  231. package/lib/services/apple-portal/apple-portal-session-service.js +4 -6
  232. package/lib/services/assets-generation/assets-generation-service.js +5 -16
  233. package/lib/services/build-artifacts-service.js +1 -2
  234. package/lib/services/build-data-service.js +0 -1
  235. package/lib/services/build-info-file-service.js +0 -1
  236. package/lib/services/cleanup-service.js +9 -13
  237. package/lib/services/cocoapods-platform-manager.js +0 -9
  238. package/lib/services/cocoapods-service.js +1 -21
  239. package/lib/services/debug-data-service.js +0 -1
  240. package/lib/services/debug-service-base.js +0 -7
  241. package/lib/services/device/device-install-app-service.js +1 -2
  242. package/lib/services/doctor-service.js +6 -21
  243. package/lib/services/extensibility-service.js +0 -8
  244. package/lib/services/files-hash-service.js +0 -1
  245. package/lib/services/hmr-status-service.js +0 -2
  246. package/lib/services/info-service.js +0 -1
  247. package/lib/services/initialize-service.js +1 -5
  248. package/lib/services/ios/export-options-plist-service.js +0 -4
  249. package/lib/services/ios/ios-signing-service.js +0 -4
  250. package/lib/services/ios/spm-service.js +0 -9
  251. package/lib/services/ios/xcodebuild-args-service.js +0 -9
  252. package/lib/services/ios/xcodebuild-command-service.js +0 -1
  253. package/lib/services/ios/xcodebuild-service.js +0 -1
  254. package/lib/services/ios-debugger-port-service.js +0 -1
  255. package/lib/services/ios-device-debug-service.js +0 -1
  256. package/lib/services/ios-entitlements-service.js +0 -1
  257. package/lib/services/ios-extensions-service.js +0 -1
  258. package/lib/services/ios-log-filter.js +0 -20
  259. package/lib/services/ios-native-target-service.js +4 -6
  260. package/lib/services/ios-project-service.js +1 -23
  261. package/lib/services/ios-provision-service.js +0 -3
  262. package/lib/services/ios-watch-app-service.js +0 -1
  263. package/lib/services/ip-service.js +0 -2
  264. package/lib/services/itmstransporter-service.js +0 -1
  265. package/lib/services/karma-execution.js +0 -2
  266. package/lib/services/livesync/android-device-livesync-service-base.js +0 -1
  267. package/lib/services/livesync/android-device-livesync-service.js +0 -2
  268. package/lib/services/livesync/android-device-livesync-sockets-service.js +0 -3
  269. package/lib/services/livesync/android-livesync-service.js +0 -1
  270. package/lib/services/livesync/android-livesync-tool.js +0 -4
  271. package/lib/services/livesync/device-livesync-service-base.js +0 -2
  272. package/lib/services/livesync/ios-device-livesync-service.js +0 -7
  273. package/lib/services/livesync/ios-livesync-service.js +0 -2
  274. package/lib/services/livesync/livesync-socket.js +0 -1
  275. package/lib/services/livesync/platform-livesync-service-base.js +0 -5
  276. package/lib/services/livesync-process-data-service.js +0 -1
  277. package/lib/services/log-parser-service.js +0 -1
  278. package/lib/services/log-source-map-service.js +0 -15
  279. package/lib/services/marking-mode-service.js +5 -8
  280. package/lib/services/metadata-filtering-service.js +0 -1
  281. package/lib/services/npm-config-service.js +0 -4
  282. package/lib/services/pacote-service.js +0 -7
  283. package/lib/services/performance-service.js +1 -3
  284. package/lib/services/platform/add-platform-service.js +2 -47
  285. package/lib/services/platform/platform-validation-service.js +0 -1
  286. package/lib/services/platform/prepare-native-platform-service.js +2 -5
  287. package/lib/services/platform-environment-requirements.js +3 -8
  288. package/lib/services/platform-project-service-base.js +0 -1
  289. package/lib/services/platforms-data-service.js +0 -1
  290. package/lib/services/plugins-service.js +2 -18
  291. package/lib/services/prepare-data-service.js +0 -1
  292. package/lib/services/project-backup-service.js +0 -4
  293. package/lib/services/project-changes-service.js +3 -12
  294. package/lib/services/project-cleanup-service.js +0 -2
  295. package/lib/services/project-config-service.js +1 -18
  296. package/lib/services/project-data-service.js +7 -36
  297. package/lib/services/project-name-service.js +0 -1
  298. package/lib/services/project-service.js +0 -10
  299. package/lib/services/project-templates-service.js +2 -3
  300. package/lib/services/qr-code-terminal-service.js +0 -1
  301. package/lib/services/require-service.js +0 -1
  302. package/lib/services/start-service.js +0 -1
  303. package/lib/services/temp-service.js +0 -1
  304. package/lib/services/terminal-spinner-service.js +0 -2
  305. package/lib/services/test-execution-service.js +2 -9
  306. package/lib/services/test-initialization-service.js +0 -4
  307. package/lib/services/timeline-profiler-service.js +0 -1
  308. package/lib/services/user-settings-service.js +0 -1
  309. package/lib/services/versions-service.js +4 -6
  310. package/lib/services/watch-ignore-list-service.js +0 -1
  311. package/lib/services/webpack/webpack-compiler-service.js +1 -42
  312. package/lib/services/xcconfig-service.js +0 -2
  313. package/lib/services/xcproj-service.js +0 -1
  314. package/lib/shared-event-bus.js +0 -6
  315. package/lib/sys-info.js +1 -2
  316. package/lib/tools/config-manipulation/config-transformer.js +0 -12
  317. package/lib/tools/node-modules/node-modules-builder.js +0 -1
  318. package/lib/tools/node-modules/node-modules-dependencies-builder.js +0 -6
  319. package/lib/yarn-package-manager.js +0 -1
  320. package/lib/yarn2-package-manager.js +0 -3
  321. package/package.json +1 -1
  322. package/vendor/aab-tool/README.txt +1 -1
  323. package/vendor/aab-tool/bundletool.jar +0 -0
  324. package/vendor/gradle-plugin/build.gradle +21 -15
  325. package/node_modules/@npmcli/move-file/node_modules/mkdirp/CHANGELOG.md +0 -15
  326. package/node_modules/rimraf/CHANGELOG.md +0 -65
  327. package/node_modules/stringify-package/CHANGELOG.md +0 -16
@@ -27,12 +27,6 @@ class DebugServiceBase extends events_1.EventEmitter {
27
27
  };
28
28
  }
29
29
  getChromeDebugUrl(debugOptions, port) {
30
- // corresponds to 55.0.2883 Chrome version
31
- // SHA is taken from https://chromium.googlesource.com/chromium/src/+/55.0.2883.100
32
- // This SHA is old and does not support debugging with HMR.
33
- // In case we want to stick with concrete SHA, get it from one of the tags https://chromium.googlesource.com/chromium/src/
34
- // IMPORTANT: When you get the SHA, ensure you are using the `parent` commit, not the actual one.
35
- // Using the actual commit will result in 404 error in the remote serve.
36
30
  const commitSHA = debugOptions.devToolsCommit || "02e6bde1bbe34e43b309d4ef774b1168d25fd024";
37
31
  const devToolsProtocol = `devtools`;
38
32
  let chromeDevToolsPrefix = `${devToolsProtocol}://devtools/remote/serve_file/@${commitSHA}`;
@@ -48,4 +42,3 @@ class DebugServiceBase extends events_1.EventEmitter {
48
42
  }
49
43
  }
50
44
  exports.DebugServiceBase = DebugServiceBase;
51
- //# sourceMappingURL=debug-service-base.js.map
@@ -31,7 +31,7 @@ class DeviceInstallAppService {
31
31
  const projectData = this.$projectDataService.getProjectData(buildData.projectDir);
32
32
  const platformData = this.$platformsDataService.getPlatformData(platform, projectData);
33
33
  yield this.$analyticsService.trackEventActionInGoogleAnalytics({
34
- action: "Deploy" /* TrackActionNames.Deploy */,
34
+ action: "Deploy",
35
35
  device,
36
36
  projectDir: projectData.projectDir,
37
37
  });
@@ -94,4 +94,3 @@ class DeviceInstallAppService {
94
94
  }
95
95
  exports.DeviceInstallAppService = DeviceInstallAppService;
96
96
  yok_1.injector.register("deviceInstallAppService", DeviceInstallAppService);
97
- //# sourceMappingURL=device-install-app-service.js.map
@@ -62,13 +62,9 @@ class DoctorService {
62
62
  this.printPackageManagerTip();
63
63
  }
64
64
  if (!configOptions || configOptions.trackResult) {
65
- // TODO(Analytics): Consider sending this information to Google Analytics
66
- // await this.$analyticsService.track("DoctorEnvironmentSetup", hasWarnings ? "incorrect" : "correct");
67
65
  }
68
66
  if (hasWarnings) {
69
67
  this.$logger.info("There seem to be issues with your configuration.");
70
- // cleanup the cache file as there seems to be issues with the current config
71
- // all projects need to be rechecked
72
68
  this.$fs.deleteFile(this.jsonFileSettingsPath);
73
69
  }
74
70
  else {
@@ -82,7 +78,6 @@ class DoctorService {
82
78
  catch (err) {
83
79
  this.$logger.error("Cannot get the latest versions information from npm. Please try again later.");
84
80
  }
85
- // todo: check for deprecated imports from `tns-core-modules`
86
81
  this.checkForDeprecatedShortImportsInAppDir(configOptions.projectDir);
87
82
  yield this.$injector
88
83
  .resolve("platformEnvironmentRequirements")
@@ -97,12 +92,12 @@ class DoctorService {
97
92
  runSetupScript() {
98
93
  return __awaiter(this, void 0, void 0, function* () {
99
94
  yield this.$analyticsService.trackEventActionInGoogleAnalytics({
100
- action: "Run Setup Script" /* TrackActionNames.RunSetupScript */,
95
+ action: "Run Setup Script",
101
96
  additionalData: "Starting",
102
97
  });
103
98
  if (this.$hostInfo.isLinux) {
104
99
  yield this.$analyticsService.trackEventActionInGoogleAnalytics({
105
- action: "Run Setup Script" /* TrackActionNames.RunSetupScript */,
100
+ action: "Run Setup Script",
106
101
  additionalData: "Skipped as OS is Linux",
107
102
  });
108
103
  return;
@@ -115,7 +110,7 @@ class DoctorService {
115
110
  yield this.runSetupScriptCore(DoctorService.WindowsSetupScriptExecutable, DoctorService.WindowsSetupScriptArguments);
116
111
  }
117
112
  yield this.$analyticsService.trackEventActionInGoogleAnalytics({
118
- action: "Run Setup Script" /* TrackActionNames.RunSetupScript */,
113
+ action: "Run Setup Script",
119
114
  additionalData: "Finished",
120
115
  });
121
116
  });
@@ -123,7 +118,7 @@ class DoctorService {
123
118
  canExecuteLocalBuild(configuration) {
124
119
  return __awaiter(this, void 0, void 0, function* () {
125
120
  yield this.$analyticsService.trackEventActionInGoogleAnalytics({
126
- action: "Check Local Build Setup" /* TrackActionNames.CheckLocalBuildSetup */,
121
+ action: "Check Local Build Setup",
127
122
  additionalData: "Starting",
128
123
  });
129
124
  const sysInfoConfig = {
@@ -135,11 +130,9 @@ class DoctorService {
135
130
  const warnings = this.filterInfosByType(infos, doctor_1.constants.WARNING_TYPE_NAME);
136
131
  const hasWarnings = warnings.length > 0;
137
132
  if (hasWarnings) {
138
- // cleanup the cache file as there seems to be issues with the current config
139
- // all projects need to be rechecked
140
133
  this.$fs.deleteFile(this.jsonFileSettingsPath);
141
134
  yield this.$analyticsService.trackEventActionInGoogleAnalytics({
142
- action: "Check Local Build Setup" /* TrackActionNames.CheckLocalBuildSetup */,
135
+ action: "Check Local Build Setup",
143
136
  additionalData: `Warnings:${warnings.map((w) => w.message).join("__")}`,
144
137
  });
145
138
  this.printInfosCore(infos);
@@ -149,7 +142,7 @@ class DoctorService {
149
142
  yield this.$jsonFileSettingsService.saveSetting(this.getKeyForConfiguration(sysInfoConfig), infos);
150
143
  }
151
144
  yield this.$analyticsService.trackEventActionInGoogleAnalytics({
152
- action: "Check Local Build Setup" /* TrackActionNames.CheckLocalBuildSetup */,
145
+ action: "Check Local Build Setup",
153
146
  additionalData: `Finished: Is setup correct: ${!hasWarnings}`,
154
147
  });
155
148
  return !hasWarnings;
@@ -198,13 +191,6 @@ class DoctorService {
198
191
  .getFsStats(path.join(pathToTnsCoreModules, entry))
199
192
  .isDirectory());
200
193
  const stringRegularExpressionsPerDir = coreModulesSubDirs.map((c) => {
201
- // require("text");
202
- // require("text/smth");
203
- // require( "text/smth");
204
- // require( "text/smth" );
205
- // import * as text from "text";
206
- // import { a } from "text";
207
- // import {a } from "text/abc"
208
194
  const subDirPart = `[\"\']${c}[\"\'/]`;
209
195
  return `(\\brequire\\s*?\\(\\s*?${subDirPart})|(\\bimport\\b.*?from\\s*?${subDirPart})`;
210
196
  });
@@ -306,4 +292,3 @@ __decorate([
306
292
  ], DoctorService.prototype, "$jsonFileSettingsService", null);
307
293
  exports.DoctorService = DoctorService;
308
294
  yok_1.injector.register("doctorService", DoctorService);
309
- //# sourceMappingURL=doctor-service.js.map
@@ -135,17 +135,12 @@ class ExtensibilityService {
135
135
  for (const extensionData of allExtensions) {
136
136
  const extensionName = extensionData.package.name;
137
137
  try {
138
- // now get full package.json for the latest version of the package
139
138
  const registryData = yield this.$packageManager.getRegistryPackageData(extensionName);
140
139
  const latestPackageData = registryData.versions[registryData["dist-tags"].latest];
141
140
  const commands = latestPackageData &&
142
141
  latestPackageData.nativescript &&
143
142
  latestPackageData.nativescript.commands;
144
143
  if (commands && commands.length) {
145
- // For each default command we need to add its short syntax in the array of commands.
146
- // For example in case there's a default command called devices list, the commands array will contain devices|*list.
147
- // However, in case the user executes just tns devices, CLI will still execute the tns devices list command.
148
- // So we need to add the devices command as well.
149
144
  _.filter(commands, (command) => command.indexOf(inputOpts.defaultCommandDelimiter) !== -1).forEach((defaultCommand) => {
150
145
  commands.push(defaultCommand.replace(defaultCommandRegExp, ""));
151
146
  });
@@ -167,7 +162,6 @@ class ExtensibilityService {
167
162
  }
168
163
  }
169
164
  catch (err) {
170
- // We do not want to stop the whole process in case we are unable to find data for one of the extensions.
171
165
  this.$logger.trace(`Unable to get data for ${extensionName}. Error is: ${err}`);
172
166
  }
173
167
  }
@@ -203,7 +197,6 @@ class ExtensibilityService {
203
197
  this.assertExtensionsDirExists();
204
198
  if (!this.$fs.exists(this.pathToPackageJson)) {
205
199
  this.$logger.trace(`Creating ${this.pathToPackageJson}.`);
206
- // create default package.json
207
200
  this.$fs.writeJson(this.pathToPackageJson, {
208
201
  name: "nativescript-extensibility",
209
202
  version: "1.0.0",
@@ -225,4 +218,3 @@ __decorate([
225
218
  ], ExtensibilityService.prototype, "assertPackageJsonExists", null);
226
219
  exports.ExtensibilityService = ExtensibilityService;
227
220
  yok_1.injector.register("extensibilityService", ExtensibilityService);
228
- //# sourceMappingURL=extensibility-service.js.map
@@ -77,4 +77,3 @@ class FilesHashService {
77
77
  }
78
78
  exports.FilesHashService = FilesHashService;
79
79
  yok_1.injector.register("filesHashService", FilesHashService);
80
- //# 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
  ], HmrStatusService.prototype, "attachToHmrStatusEvent", null);
128
127
  exports.HmrStatusService = HmrStatusService;
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
@@ -15,8 +15,6 @@ const _ = require("lodash");
15
15
  const constants_1 = require("../constants");
16
16
  const yok_1 = require("../common/yok");
17
17
  class InitializeService {
18
- // NOTE: Do not inject anything here, use $injector.resolve in the code
19
- // Injecting something may lead to logger initialization, but we want to initialize it from here.
20
18
  constructor($injector) {
21
19
  this.$injector = $injector;
22
20
  }
@@ -45,7 +43,6 @@ class InitializeService {
45
43
  }
46
44
  }
47
45
  if ($options.json) {
48
- // speed up --json commands by not gathering system warnings...
49
46
  $logger.trace("Skipping system warnings for --json commands");
50
47
  }
51
48
  else {
@@ -59,7 +56,7 @@ class InitializeService {
59
56
  const systemWarnings = yield $sysInfo.getSystemWarnings();
60
57
  _.each(systemWarnings, (systemWarning) => {
61
58
  const message = `${os_1.EOL}${systemWarning.message}${os_1.EOL}`;
62
- if (systemWarning.severity === "high" /* SystemWarningsSeverity.high */) {
59
+ if (systemWarning.severity === "high") {
63
60
  $logger.error(message);
64
61
  }
65
62
  else {
@@ -71,4 +68,3 @@ class InitializeService {
71
68
  }
72
69
  exports.InitializeService = InitializeService;
73
70
  yok_1.injector.register("initializeService", InitializeService);
74
- //# sourceMappingURL=initialize-service.js.map
@@ -64,13 +64,11 @@ class ExportOptionsPlistService {
64
64
  plistTemplate += `
65
65
  </dict>
66
66
  </plist>`;
67
- // Save the options...
68
67
  const exportOptionsPlistFilePath = yield this.$tempService.path({
69
68
  prefix: "export-",
70
69
  suffix: ".plist",
71
70
  });
72
71
  this.$fs.writeFile(exportOptionsPlistFilePath, plistTemplate);
73
- // The xcodebuild exportPath expects directory and writes the <project-name>.ipa at that directory.
74
72
  const exportFileDir = path.resolve(path.dirname(archivePath));
75
73
  const exportFilePath = path.join(exportFileDir, projectData.projectName + ".ipa");
76
74
  return { exportFileDir, exportFilePath, exportOptionsPlistFilePath };
@@ -108,7 +106,6 @@ class ExportOptionsPlistService {
108
106
  <false/>
109
107
  </dict>
110
108
  </plist>`;
111
- // Save the options...
112
109
  const exportOptionsPlistFilePath = yield this.$tempService.path({
113
110
  prefix: "export-",
114
111
  suffix: ".plist",
@@ -132,4 +129,3 @@ class ExportOptionsPlistService {
132
129
  }
133
130
  exports.ExportOptionsPlistService = ExportOptionsPlistService;
134
131
  yok_1.injector.register("exportOptionsPlistService", ExportOptionsPlistService);
135
- //# sourceMappingURL=export-options-plist-service.js.map
@@ -57,7 +57,6 @@ class IOSSigningService {
57
57
  let shouldUpdateXcode = false;
58
58
  if (signing && signing.style === "Automatic") {
59
59
  if (signing.team !== teamId) {
60
- // Maybe the provided team is name such as "Telerik AD" and we need to convert it to CH******37
61
60
  const teamIdsForName = yield this.$iOSProvisionService.getTeamIdsWithName(teamId);
62
61
  if (!teamIdsForName.some((id) => id === signing.team)) {
63
62
  shouldUpdateXcode = true;
@@ -93,7 +92,6 @@ class IOSSigningService {
93
92
  setupSigningFromProvision(projectRoot, projectData, provision, mobileProvisionData) {
94
93
  return __awaiter(this, void 0, void 0, function* () {
95
94
  if (!provision) {
96
- // read uuid from Xcode an cache...
97
95
  return;
98
96
  }
99
97
  const xcode = this.$pbxprojDomXcode.Xcode.open(this.getPbxProjPath(projectData, projectRoot));
@@ -126,7 +124,6 @@ class IOSSigningService {
126
124
  this.$logger.trace(`Set Manual signing style and provisioning profile: ${configuration.name} (${configuration.uuid})`);
127
125
  });
128
126
  xcode.save();
129
- // this.cache(uuid);
130
127
  }
131
128
  else {
132
129
  this.$logger.trace(`The specified provisioning profile is already set in the Xcode: ${provision}`);
@@ -266,4 +263,3 @@ class IOSSigningService {
266
263
  }
267
264
  exports.IOSSigningService = IOSSigningService;
268
265
  yok_1.injector.register("iOSSigningService", IOSSigningService);
269
- //# sourceMappingURL=ios-signing-service.js.map
@@ -24,10 +24,6 @@ class SPMService {
24
24
  const spmPackages = this.$projectConfigService.getValue(`${platform}.SPMPackages`, []);
25
25
  return spmPackages;
26
26
  }
27
- // note: this is not used anywhere at the moment.
28
- // public hasSPMPackages(projectData: IProjectData): boolean {
29
- // return this.getSPMPackages(projectData).length > 0;
30
- // }
31
27
  applySPMPackages(platformData, projectData) {
32
28
  return __awaiter(this, void 0, void 0, function* () {
33
29
  try {
@@ -43,15 +39,12 @@ class SPMService {
43
39
  enableAndroid: false,
44
40
  });
45
41
  yield project.load();
46
- // note: in trapeze both visionOS and iOS are handled by the ios project.
47
42
  if (!project.ios) {
48
43
  this.$logger.trace("SPM: no iOS project found via trapeze.");
49
44
  return;
50
45
  }
51
- // todo: handle removing packages? Or just warn and require a clean?
52
46
  for (const pkg of spmPackages) {
53
47
  if ("path" in pkg) {
54
- // resolve the path relative to the project root
55
48
  this.$logger.trace("SPM: resolving path for package: ", pkg.path);
56
49
  pkg.path = path.resolve(projectData.projectDir, pkg.path);
57
50
  }
@@ -59,7 +52,6 @@ class SPMService {
59
52
  yield project.ios.addSPMPackage(projectData.projectName, pkg);
60
53
  }
61
54
  yield project.commit();
62
- // finally resolve the dependencies
63
55
  yield this.resolveSPMDependencies(platformData, projectData);
64
56
  }
65
57
  catch (err) {
@@ -84,4 +76,3 @@ class SPMService {
84
76
  }
85
77
  exports.SPMService = SPMService;
86
78
  yok_1.injector.register("spmService", SPMService);
87
- //# sourceMappingURL=spm-service.js.map
@@ -103,8 +103,6 @@ class XcodebuildArgsService {
103
103
  }
104
104
  getXcodeProjectArgs(platformData, projectData) {
105
105
  const xcworkspacePath = path.join(platformData.projectRoot, `${projectData.projectName}.xcworkspace`);
106
- // Introduced in Xcode 14+
107
- // ref: https://forums.swift.org/t/telling-xcode-14-beta-4-to-trust-build-tool-plugins-programatically/59305/5
108
106
  const skipPackageValidation = "-skipPackagePluginValidation";
109
107
  const extraArgs = [
110
108
  "-scheme",
@@ -112,12 +110,6 @@ class XcodebuildArgsService {
112
110
  skipPackageValidation,
113
111
  ];
114
112
  const BUILD_SETTINGS_FILE_PATH = path.join(projectData.appResourcesDirectoryPath, platformData.normalizedPlatformName, constants.BUILD_XCCONFIG_FILE_NAME);
115
- // Only include explicit properties from build.xcconfig
116
- // Note: we could include entire file via -xcconfig flag
117
- // however doing so introduces unwanted side effects
118
- // like cocoapods issues related to ASSETCATALOG_COMPILER_APPICON_NAME
119
- // references: https://medium.com/@iostechset/why-cocoapods-eats-app-icons-79fe729808d4
120
- // https://github.com/CocoaPods/CocoaPods/issues/7003
121
113
  const deployTargetProperty = "IPHONEOS_DEPLOYMENT_TARGET";
122
114
  const deployTargetVersion = this.$xcconfigService.readPropertyValue(BUILD_SETTINGS_FILE_PATH, deployTargetProperty);
123
115
  if (deployTargetVersion) {
@@ -169,4 +161,3 @@ class XcodebuildArgsService {
169
161
  }
170
162
  exports.XcodebuildArgsService = XcodebuildArgsService;
171
163
  yok_1.injector.register("xcodebuildArgsService", XcodebuildArgsService);
172
- //# sourceMappingURL=xcodebuild-args-service.js.map
@@ -38,4 +38,3 @@ class XcodebuildCommandService {
38
38
  }
39
39
  exports.XcodebuildCommandService = XcodebuildCommandService;
40
40
  yok_1.injector.register("xcodebuildCommandService", XcodebuildCommandService);
41
- //# sourceMappingURL=xcodebuild-command-service.js.map
@@ -91,4 +91,3 @@ class XcodebuildService {
91
91
  }
92
92
  exports.XcodebuildService = XcodebuildService;
93
93
  yok_1.injector.register("xcodebuildService", XcodebuildService);
94
- //# sourceMappingURL=xcodebuild-service.js.map
@@ -138,4 +138,3 @@ __decorate([
138
138
  ], IOSDebuggerPortService.prototype, "attachToAttachRequestEvent", null);
139
139
  exports.IOSDebuggerPortService = IOSDebuggerPortService;
140
140
  yok_1.injector.register("iOSDebuggerPortService", IOSDebuggerPortService);
141
- //# sourceMappingURL=ios-debugger-port-service.js.map
@@ -165,4 +165,3 @@ __decorate([
165
165
  ], IOSDeviceDebugService.prototype, "openAppInspector", null);
166
166
  exports.IOSDeviceDebugService = IOSDeviceDebugService;
167
167
  yok_1.injector.register("iOSDeviceDebugService", IOSDeviceDebugService, false);
168
- //# sourceMappingURL=ios-device-debug-service.js.map
@@ -76,4 +76,3 @@ class IOSEntitlementsService {
76
76
  IOSEntitlementsService.DefaultEntitlementsName = "app.entitlements";
77
77
  exports.IOSEntitlementsService = IOSEntitlementsService;
78
78
  yok_1.injector.register("iOSEntitlementsService", IOSEntitlementsService);
79
- //# sourceMappingURL=ios-entitlements-service.js.map
@@ -61,4 +61,3 @@ class IOSExtensionsService {
61
61
  }
62
62
  exports.IOSExtensionsService = IOSExtensionsService;
63
63
  yok_1.injector.register("iOSExtensionsService", IOSExtensionsService);
64
- //# 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
@@ -143,7 +143,7 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
143
143
  ".ico",
144
144
  ".cur",
145
145
  ".xbm",
146
- ], // https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIImage_Class/
146
+ ],
147
147
  };
148
148
  }
149
149
  return this._platformData;
@@ -196,12 +196,9 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
196
196
  shell.cp("-R", path.join(frameworkDir, "*"), this.getPlatformData(projectData).projectRoot);
197
197
  });
198
198
  }
199
- //TODO: plamen5kov: revisit this method, might have unnecessary/obsolete logic
200
199
  interpolateData(projectData) {
201
200
  return __awaiter(this, void 0, void 0, function* () {
202
201
  const projectRootFilePath = path.join(this.getPlatformData(projectData).projectRoot, IOSProjectService.IOS_PROJECT_NAME_PLACEHOLDER);
203
- // Starting with NativeScript for iOS 1.6.0, the project Info.plist file resides not in the platform project,
204
- // but in the hello-world app template as a platform specific resource.
205
202
  if (this.$fs.exists(path.join(projectRootFilePath, IOSProjectService.IOS_PROJECT_NAME_PLACEHOLDER + "-Info.plist"))) {
206
203
  this.replaceFileName("-Info.plist", projectRootFilePath, projectData);
207
204
  }
@@ -318,10 +315,8 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
318
315
  }
319
316
  addStaticLibrary(staticLibPath, projectData) {
320
317
  return __awaiter(this, void 0, void 0, function* () {
321
- // Copy files to lib folder.
322
318
  const libraryName = path.basename(staticLibPath, ".a");
323
319
  const headersSubpath = path.join(path.dirname(staticLibPath), "include", libraryName);
324
- // Add static library to project file and setup header search paths
325
320
  const project = this.createPbxProj(projectData);
326
321
  const relativeStaticLibPath = this.getLibSubpathRelativeToProjectPath(staticLibPath, projectData);
327
322
  project.addFramework(relativeStaticLibPath);
@@ -390,12 +385,10 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
390
385
  this.$fs.deleteDirectory(platformsAppResourcesPath);
391
386
  this.$fs.ensureDirectoryExists(platformsAppResourcesPath);
392
387
  const platformAppResourcesPath = path.join(projectAppResourcesPath, platformData.normalizedPlatformName);
393
- // this allows App_Resources/visionOS
394
388
  if (this.$fs.exists(platformAppResourcesPath)) {
395
389
  this.$fs.copyFile(path.join(platformAppResourcesPath, "*"), platformsAppResourcesPath);
396
390
  }
397
391
  else {
398
- // otherwise falls back to App_Resources/iOS
399
392
  this.$fs.copyFile(path.join(projectAppResourcesPath, this.$devicePlatformsConstants.iOS, "*"), platformsAppResourcesPath);
400
393
  }
401
394
  this.$fs.deleteFile(path.join(platformsAppResourcesPath, platformData.configurationFileName));
@@ -542,10 +535,6 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
542
535
  const projectPodfilePath = this.$cocoapodsService.getProjectPodfilePath(platformData.projectRoot);
543
536
  if (this.$fs.exists(projectPodfilePath)) {
544
537
  yield this.$cocoapodsService.executePodInstall(platformData.projectRoot, this.$xcprojService.getXcodeprojPath(projectData, platformData.projectRoot));
545
- // The `pod install` command adds a new target to the .pbxproject. This target adds additional build phases to Xcode project.
546
- // Some of these phases relies on env variables (like PODS_PODFILE_DIR_PATH or PODS_ROOT).
547
- // These variables are produced from merge of pod's xcconfig file and project's xcconfig file.
548
- // So the correct order is `pod install` to be executed before merging pod's xcconfig file.
549
538
  yield this.$cocoapodsService.mergePodXcconfigFile(projectData, platformData, opts);
550
539
  }
551
540
  yield this.$spmService.applySPMPackages(platformData, projectData);
@@ -560,7 +549,6 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
560
549
  const hasProvision = provision !== undefined;
561
550
  const hasTeamId = teamId !== undefined;
562
551
  if (hasProvision || hasTeamId) {
563
- // Check if the native project's signing is set to the provided provision...
564
552
  const pbxprojPath = this.getPbxProjPath(projectData);
565
553
  if (this.$fs.exists(pbxprojPath)) {
566
554
  const xcode = this.$pbxprojDomXcode.Xcode.open(pbxprojPath);
@@ -576,9 +564,6 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
576
564
  }
577
565
  }
578
566
  else {
579
- // Specifying provisioning profile requires "Manual" signing style.
580
- // If the current signing style was not "Manual" it was probably "Automatic" or,
581
- // it was not uniform for the debug and release build configurations.
582
567
  changesInfo.signingChanged = true;
583
568
  }
584
569
  }
@@ -592,8 +577,6 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
592
577
  }
593
578
  }
594
579
  else {
595
- // Specifying team id or name requires "Automatic" signing style.
596
- // If the current signing style was not "Automatic" it was probably "Manual".
597
580
  changesInfo.signingChanged = true;
598
581
  }
599
582
  }
@@ -812,14 +795,10 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
812
795
  }
813
796
  for (const pluginsXcconfigFilePath of pluginsXcconfigFilePaths) {
814
797
  if (!this.$fs.exists(pluginsXcconfigFilePath)) {
815
- // We need the pluginsXcconfig file to exist in platforms dir as it is required in the native template:
816
- // https://github.com/NativeScript/ios-runtime/blob/9c2b7b5f70b9bee8452b7a24aa6b646214c7d2be/build/project-template/__PROJECT_NAME__/build-debug.xcconfig#L3
817
- // From Xcode 10 in case the file is missing, this include fails and the build itself fails (was a warning in previous Xcode versions).
818
798
  this.$fs.writeFile(pluginsXcconfigFilePath, "");
819
799
  }
820
800
  }
821
801
  for (const pluginsXcconfigFilePath of pluginsXcconfigFilePaths) {
822
- // Set Entitlements Property to point to default file if not set explicitly by the user.
823
802
  const entitlementsPropertyValue = this.$xcconfigService.readPropertyValue(pluginsXcconfigFilePath, constants.CODE_SIGN_ENTITLEMENTS);
824
803
  if (entitlementsPropertyValue === null &&
825
804
  this.$fs.exists(this.$iOSEntitlementsService.getPlatformsEntitlementsPath(projectData))) {
@@ -867,4 +846,3 @@ __decorate([
867
846
  ], IOSProjectService.prototype, "buildProject", null);
868
847
  exports.IOSProjectService = IOSProjectService;
869
848
  yok_1.injector.register("iOSProjectService", IOSProjectService);
870
- //# sourceMappingURL=ios-project-service.js.map
@@ -145,8 +145,6 @@ class IOSProvisionService {
145
145
  getDevelopmentTeams() {
146
146
  return __awaiter(this, void 0, void 0, function* () {
147
147
  const teams = {};
148
- // NOTE: We are reading all provisioning profiles and collect team information from them.
149
- // It would be better if we can check the Apple ID registered in Xcode and read the teams associated with it.
150
148
  mobileprovision.provision.read().forEach((provision) => provision.TeamIdentifier &&
151
149
  provision.TeamIdentifier.forEach((id) => {
152
150
  if (!teams[provision.TeamName]) {
@@ -173,4 +171,3 @@ class IOSProvisionService {
173
171
  }
174
172
  exports.IOSProvisionService = IOSProvisionService;
175
173
  yok_1.injector.register("iOSProvisionService", IOSProvisionService);
176
- //# sourceMappingURL=ios-provision-service.js.map
@@ -74,4 +74,3 @@ IOSWatchAppService.WATCH_APP_IDENTIFIER = "watchkitapp";
74
74
  IOSWatchAppService.WACTCH_EXTENSION_IDENTIFIER = "watchkitextension";
75
75
  exports.IOSWatchAppService = IOSWatchAppService;
76
76
  yok_1.injector.register("iOSWatchAppService", IOSWatchAppService);
77
- //# sourceMappingURL=ios-watch-app-service.js.map
@@ -52,7 +52,6 @@ class IPService {
52
52
  }
53
53
  getIPAddressFromIpifyOrgAPI() {
54
54
  return __awaiter(this, void 0, void 0, function* () {
55
- // https://www.ipify.org/
56
55
  const ipifyOrgAPIEndpoint = "https://api.ipify.org";
57
56
  let ipAddress = null;
58
57
  try {
@@ -77,4 +76,3 @@ __decorate([
77
76
  ], IPService.prototype, "getCurrentIPv4Address", null);
78
77
  exports.IPService = IPService;
79
78
  yok_1.injector.register("ipService", IPService);
80
- //# sourceMappingURL=ip-service.js.map
@@ -214,4 +214,3 @@ __decorate([
214
214
  ], ITMSTransporterService.prototype, "getITMSTransporterPath", null);
215
215
  exports.ITMSTransporterService = ITMSTransporterService;
216
216
  yok_1.injector.register("itmsTransporterService", ITMSTransporterService);
217
- //# sourceMappingURL=itmstransporter-service.js.map
@@ -9,10 +9,8 @@ process.on("message", (data) => {
9
9
  });
10
10
  const KarmaServer = require(path.join(pathToKarma, "lib/server"));
11
11
  const karma = new KarmaServer(data.karmaConfig, (exitCode) => {
12
- // Exit with the correct exit code and signal the manager process.
13
12
  process.exit(exitCode);
14
13
  });
15
14
  karma.start();
16
15
  }
17
16
  });
18
- //# sourceMappingURL=karma-execution.js.map
@@ -66,4 +66,3 @@ class AndroidDeviceLiveSyncServiceBase extends device_livesync_service_base_1.De
66
66
  }
67
67
  }
68
68
  exports.AndroidDeviceLiveSyncServiceBase = AndroidDeviceLiveSyncServiceBase;
69
- //# sourceMappingURL=android-device-livesync-service-base.js.map