nativescript 9.1.0-alpha.15 → 9.1.0-alpha.16

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 (344) hide show
  1. package/docs/build-jekyll-md.sh +1 -1
  2. package/docs/man_pages/config/config-set.md +2 -0
  3. package/lib/android-tools-info.js +0 -12
  4. package/lib/base-package-manager.js +0 -7
  5. package/lib/bootstrap.js +1 -5
  6. package/lib/bun-package-manager.js +1 -14
  7. package/lib/color.js +0 -4
  8. package/lib/commands/add-platform.js +0 -1
  9. package/lib/commands/apple-login.js +0 -1
  10. package/lib/commands/appstore-list.js +0 -1
  11. package/lib/commands/appstore-upload.js +0 -3
  12. package/lib/commands/build.js +3 -3
  13. package/lib/commands/clean.js +1 -22
  14. package/lib/commands/command-base.js +0 -1
  15. package/lib/commands/config.js +0 -5
  16. package/lib/commands/create-project.js +0 -6
  17. package/lib/commands/debug.js +2 -6
  18. package/lib/commands/deploy.js +3 -3
  19. package/lib/commands/embedding/embed.js +0 -7
  20. package/lib/commands/extensibility/install-extension.js +0 -1
  21. package/lib/commands/extensibility/list-extensions.js +0 -1
  22. package/lib/commands/extensibility/uninstall-extension.js +0 -1
  23. package/lib/commands/fonts.js +0 -1
  24. package/lib/commands/generate-assets.js +0 -1
  25. package/lib/commands/generate-help.js +0 -1
  26. package/lib/commands/generate.js +1 -48
  27. package/lib/commands/hooks/common.js +1 -2
  28. package/lib/commands/hooks/hooks-lock.js +0 -1
  29. package/lib/commands/hooks/hooks.js +0 -1
  30. package/lib/commands/info.js +0 -1
  31. package/lib/commands/install.js +0 -1
  32. package/lib/commands/list-platforms.js +0 -1
  33. package/lib/commands/migrate.js +0 -1
  34. package/lib/commands/native-add.js +0 -5
  35. package/lib/commands/platform-clean.js +0 -1
  36. package/lib/commands/plugin/add-plugin.js +0 -1
  37. package/lib/commands/plugin/build-plugin.js +0 -1
  38. package/lib/commands/plugin/create-plugin.js +0 -5
  39. package/lib/commands/plugin/list-plugins.js +0 -1
  40. package/lib/commands/plugin/remove-plugin.js +0 -2
  41. package/lib/commands/plugin/update-plugin.js +0 -1
  42. package/lib/commands/post-install.js +0 -6
  43. package/lib/commands/prepare.js +5 -5
  44. package/lib/commands/preview.js +0 -2
  45. package/lib/commands/remove-platform.js +0 -1
  46. package/lib/commands/resources/resources-update.js +0 -2
  47. package/lib/commands/run.js +0 -1
  48. package/lib/commands/setup.js +0 -1
  49. package/lib/commands/start.js +0 -1
  50. package/lib/commands/test-init.js +0 -4
  51. package/lib/commands/test.js +3 -9
  52. package/lib/commands/typings.js +1 -2
  53. package/lib/commands/update-platform.js +0 -5
  54. package/lib/commands/update.js +0 -2
  55. package/lib/commands/widget.js +0 -18
  56. package/lib/common/bootstrap.js +0 -1
  57. package/lib/common/child-process.js +0 -3
  58. package/lib/common/codeGeneration/code-entity.js +0 -1
  59. package/lib/common/codeGeneration/code-printer.js +0 -1
  60. package/lib/common/command-params.js +0 -1
  61. package/lib/common/commands/analytics.js +0 -3
  62. package/lib/common/commands/autocompletion.js +0 -3
  63. package/lib/common/commands/device/device-log-stream.js +0 -1
  64. package/lib/common/commands/device/get-file.js +0 -2
  65. package/lib/common/commands/device/list-applications.js +0 -1
  66. package/lib/common/commands/device/list-devices.js +0 -3
  67. package/lib/common/commands/device/list-files.js +0 -2
  68. package/lib/common/commands/device/put-file.js +0 -2
  69. package/lib/common/commands/device/run-application.js +0 -1
  70. package/lib/common/commands/device/stop-application.js +0 -1
  71. package/lib/common/commands/device/uninstall-application.js +0 -1
  72. package/lib/common/commands/doctor.js +3 -3
  73. package/lib/common/commands/generate-messages.js +0 -1
  74. package/lib/common/commands/help.js +0 -1
  75. package/lib/common/commands/package-manager-get.js +0 -1
  76. package/lib/common/commands/package-manager-set.js +0 -1
  77. package/lib/common/commands/post-install.js +0 -1
  78. package/lib/common/commands/preuninstall.js +2 -11
  79. package/lib/common/commands/proxy/proxy-base.js +0 -4
  80. package/lib/common/commands/proxy/proxy-clear.js +0 -1
  81. package/lib/common/commands/proxy/proxy-get.js +0 -1
  82. package/lib/common/commands/proxy/proxy-set.js +0 -1
  83. package/lib/common/common-lib.js +0 -1
  84. package/lib/common/constants.js +14 -12
  85. package/lib/common/declarations.d.ts +37 -117
  86. package/lib/common/decorators.js +0 -48
  87. package/lib/common/definitions/key-commands.js +8 -0
  88. package/lib/common/dispatchers.js +1 -10
  89. package/lib/common/enums.js +42 -0
  90. package/lib/common/errors.js +4 -13
  91. package/lib/common/file-system.js +2 -13
  92. package/lib/common/header.js +0 -3
  93. package/lib/common/helpers.js +3 -89
  94. package/lib/common/host-info.js +0 -4
  95. package/lib/common/http-client.js +0 -20
  96. package/lib/common/logger/appenders/cli-appender.js +0 -4
  97. package/lib/common/logger/appenders/emit-appender.js +0 -4
  98. package/lib/common/logger/layouts/cli-layout.js +0 -1
  99. package/lib/common/logger/logger.js +0 -5
  100. package/lib/common/messages/messages.js +0 -6
  101. package/lib/common/mobile/android/android-application-manager.js +1 -20
  102. package/lib/common/mobile/android/android-debug-bridge-result-handler.js +0 -1
  103. package/lib/common/mobile/android/android-debug-bridge.js +0 -6
  104. package/lib/common/mobile/android/android-device-file-system.js +0 -4
  105. package/lib/common/mobile/android/android-device-hash-service.js +0 -3
  106. package/lib/common/mobile/android/android-device.js +0 -8
  107. package/lib/common/mobile/android/android-emulator-services.js +1 -2
  108. package/lib/common/mobile/android/android-ini-file-parser.js +0 -9
  109. package/lib/common/mobile/android/android-log-filter.js +0 -4
  110. package/lib/common/mobile/android/android-virtual-device-service.js +0 -26
  111. package/lib/common/mobile/android/device-android-debug-bridge.js +0 -1
  112. package/lib/common/mobile/android/genymotion/genymotion-service.js +1 -6
  113. package/lib/common/mobile/android/genymotion/virtualbox-service.js +0 -11
  114. package/lib/common/mobile/android/logcat-helper.js +0 -13
  115. package/lib/common/mobile/application-manager-base.js +0 -6
  116. package/lib/common/mobile/device-emitter.js +0 -4
  117. package/lib/common/mobile/device-log-emitter.js +0 -1
  118. package/lib/common/mobile/device-log-provider-base.js +0 -1
  119. package/lib/common/mobile/device-log-provider.js +0 -23
  120. package/lib/common/mobile/device-platforms-constants.js +0 -1
  121. package/lib/common/mobile/emulator-helper.js +0 -3
  122. package/lib/common/mobile/ios/device/ios-application-manager.js +0 -3
  123. package/lib/common/mobile/ios/device/ios-device-file-system.js +0 -9
  124. package/lib/common/mobile/ios/device/ios-device-operations.js +0 -4
  125. package/lib/common/mobile/ios/device/ios-device.js +0 -4
  126. package/lib/common/mobile/ios/ios-device-base.js +0 -1
  127. package/lib/common/mobile/ios/ios-device-product-name-mapper.js +0 -2
  128. package/lib/common/mobile/ios/ios-log-filter.js +0 -1
  129. package/lib/common/mobile/ios/simulator/ios-emulator-services.js +0 -4
  130. package/lib/common/mobile/ios/simulator/ios-sim-resolver.js +0 -1
  131. package/lib/common/mobile/ios/simulator/ios-simulator-application-manager.js +0 -6
  132. package/lib/common/mobile/ios/simulator/ios-simulator-device.js +0 -5
  133. package/lib/common/mobile/ios/simulator/ios-simulator-file-system.js +0 -1
  134. package/lib/common/mobile/ios/simulator/ios-simulator-log-provider.js +0 -1
  135. package/lib/common/mobile/local-to-device-path-data-factory.js +0 -1
  136. package/lib/common/mobile/log-filter.js +0 -2
  137. package/lib/common/mobile/logging-levels.js +0 -1
  138. package/lib/common/mobile/mobile-core/android-device-discovery.js +0 -2
  139. package/lib/common/mobile/mobile-core/android-emulator-discovery.js +0 -3
  140. package/lib/common/mobile/mobile-core/android-process-service.js +0 -32
  141. package/lib/common/mobile/mobile-core/device-discovery.js +0 -1
  142. package/lib/common/mobile/mobile-core/devices-service.js +0 -69
  143. package/lib/common/mobile/mobile-core/ios-device-discovery.js +0 -2
  144. package/lib/common/mobile/mobile-core/ios-simulator-discovery.js +0 -3
  145. package/lib/common/mobile/mobile-helper.js +0 -1
  146. package/lib/common/mobile/wp8/wp8-emulator-services.js +0 -1
  147. package/lib/common/opener.js +0 -1
  148. package/lib/common/os-info.js +0 -1
  149. package/lib/common/plist-parser.js +0 -1
  150. package/lib/common/project-helper.js +0 -1
  151. package/lib/common/prompter.js +1 -9
  152. package/lib/common/queue.js +0 -1
  153. package/lib/common/resource-loader.js +0 -1
  154. package/lib/common/services/analytics/google-analytics-custom-dimensions.js +13 -0
  155. package/lib/common/services/auto-completion-service.js +1 -13
  156. package/lib/common/services/cancellation.js +2 -2
  157. package/lib/common/services/commands-service.js +8 -17
  158. package/lib/common/services/help-service.js +4 -11
  159. package/lib/common/services/hooks-service.js +0 -13
  160. package/lib/common/services/ios-notification-service.js +0 -1
  161. package/lib/common/services/json-file-settings-service.js +0 -6
  162. package/lib/common/services/lock-service.js +0 -6
  163. package/lib/common/services/message-contract-generator.js +0 -1
  164. package/lib/common/services/messages-service.js +0 -1
  165. package/lib/common/services/micro-templating-service.js +0 -6
  166. package/lib/common/services/net-service.js +0 -3
  167. package/lib/common/services/project-files-manager.js +0 -5
  168. package/lib/common/services/project-files-provider-base.js +0 -1
  169. package/lib/common/services/proxy-service.js +0 -1
  170. package/lib/common/services/qr.js +0 -1
  171. package/lib/common/services/settings-service.js +0 -1
  172. package/lib/common/services/xcode-select-service.js +0 -1
  173. package/lib/common/utils.js +0 -1
  174. package/lib/common/validators/project-name-validator.js +0 -1
  175. package/lib/common/validators/validation-result.js +0 -1
  176. package/lib/common/verify-node-version.js +2 -8
  177. package/lib/common/yok.js +12 -32
  178. package/lib/config.js +1 -22
  179. package/lib/constants-provider.js +0 -1
  180. package/lib/constants.js +54 -58
  181. package/lib/controllers/build-controller.js +3 -4
  182. package/lib/controllers/debug-controller.js +3 -8
  183. package/lib/controllers/deploy-controller.js +0 -1
  184. package/lib/controllers/migrate-controller.js +4 -90
  185. package/lib/controllers/platform-controller.js +2 -9
  186. package/lib/controllers/prepare-controller.js +8 -24
  187. package/lib/controllers/run-controller.js +1 -81
  188. package/lib/controllers/update-controller-base.js +0 -1
  189. package/lib/controllers/update-controller.js +0 -11
  190. package/lib/data/build-data.js +0 -1
  191. package/lib/data/controller-data-base.js +0 -1
  192. package/lib/data/debug-data.js +0 -1
  193. package/lib/data/platform-data.js +0 -1
  194. package/lib/data/prepare-data.js +0 -1
  195. package/lib/data/run-data.js +0 -1
  196. package/lib/definitions/project.d.ts +1 -6
  197. package/lib/definitions/system-warnings.js +8 -0
  198. package/lib/detached-processes/cleanup-js-subprocess.js +3 -8
  199. package/lib/detached-processes/cleanup-process.js +15 -18
  200. package/lib/detached-processes/detached-process-enums.js +24 -0
  201. package/lib/detached-processes/file-log-service.js +2 -2
  202. package/lib/device-path-provider.js +0 -1
  203. package/lib/device-sockets/ios/app-debug-socket-proxy-factory.js +0 -7
  204. package/lib/device-sockets/ios/notification.js +0 -3
  205. package/lib/device-sockets/ios/socket-request-executor.js +0 -3
  206. package/lib/helpers/android-bundle-validator-helper.js +1 -2
  207. package/lib/helpers/deploy-command-helper.js +0 -1
  208. package/lib/helpers/key-command-helper.js +3 -4
  209. package/lib/helpers/livesync-command-helper.js +2 -4
  210. package/lib/helpers/network-connectivity-validator.js +0 -1
  211. package/lib/helpers/options-track-helper.js +4 -3
  212. package/lib/helpers/package-path-helper.js +0 -1
  213. package/lib/helpers/platform-command-helper.js +2 -7
  214. package/lib/helpers/version-validator-helper.js +0 -1
  215. package/lib/key-commands/bootstrap.js +3 -3
  216. package/lib/key-commands/index.js +5 -5
  217. package/lib/nativescript-cli-lib-bootstrap.js +0 -4
  218. package/lib/nativescript-cli-lib.js +0 -1
  219. package/lib/nativescript-cli.js +2 -11
  220. package/lib/node/pbxproj-dom-xcode.js +0 -1
  221. package/lib/node/xcode.js +0 -1
  222. package/lib/node-package-manager.js +1 -11
  223. package/lib/options.js +121 -145
  224. package/lib/package-installation-manager.js +1 -8
  225. package/lib/package-manager.js +0 -2
  226. package/lib/platform-command-param.js +0 -1
  227. package/lib/pnpm-package-manager.js +1 -4
  228. package/lib/project-data.js +0 -12
  229. package/lib/providers/project-files-provider.js +0 -1
  230. package/lib/resolvers/livesync-service-resolver.js +0 -1
  231. package/lib/services/analytics/analytics-broker-process.js +8 -10
  232. package/lib/services/analytics/analytics-broker.js +2 -2
  233. package/lib/services/analytics/analytics-service.js +29 -29
  234. package/lib/services/analytics/google-analytics-provider.js +16 -13
  235. package/lib/services/analytics-settings-service.js +0 -5
  236. package/lib/services/android/android-bundle-tool-service.js +0 -1
  237. package/lib/services/android/gradle-build-args-service.js +0 -3
  238. package/lib/services/android/gradle-build-service.js +0 -1
  239. package/lib/services/android/gradle-command-service.js +0 -1
  240. package/lib/services/android-device-debug-service.js +0 -6
  241. package/lib/services/android-plugin-build-service.js +2 -31
  242. package/lib/services/android-project-service.js +4 -71
  243. package/lib/services/android-resources-migration-service.js +0 -7
  244. package/lib/services/apple-portal/apple-portal-application-service.js +0 -1
  245. package/lib/services/apple-portal/apple-portal-cookie-service.js +0 -1
  246. package/lib/services/apple-portal/apple-portal-session-service.js +4 -6
  247. package/lib/services/apple-portal/srp/srp-wrapper.js +1 -4
  248. package/lib/services/assets-generation/assets-generation-service.js +13 -11
  249. package/lib/services/build-artifacts-service.js +1 -2
  250. package/lib/services/build-data-service.js +0 -1
  251. package/lib/services/build-info-file-service.js +0 -1
  252. package/lib/services/bundler/bundler-compiler-service.js +1 -144
  253. package/lib/services/bundler/bundler.js +0 -1
  254. package/lib/services/cleanup-service.js +10 -13
  255. package/lib/services/cocoapods-platform-manager.js +0 -9
  256. package/lib/services/cocoapods-service.js +1 -21
  257. package/lib/services/debug-data-service.js +0 -1
  258. package/lib/services/debug-service-base.js +0 -7
  259. package/lib/services/device/device-install-app-service.js +1 -2
  260. package/lib/services/doctor-service.js +6 -21
  261. package/lib/services/extensibility-service.js +0 -8
  262. package/lib/services/files-hash-service.js +0 -1
  263. package/lib/services/hmr-status-service.js +0 -2
  264. package/lib/services/info-service.js +0 -1
  265. package/lib/services/initialize-service.js +2 -5
  266. package/lib/services/ios/export-options-plist-service.js +0 -4
  267. package/lib/services/ios/ios-signing-service.js +0 -4
  268. package/lib/services/ios/spm-service.js +0 -119
  269. package/lib/services/ios/xcodebuild-args-service.js +0 -29
  270. package/lib/services/ios/xcodebuild-command-service.js +0 -3
  271. package/lib/services/ios/xcodebuild-service.js +1 -2
  272. package/lib/services/ios-debugger-port-service.js +0 -1
  273. package/lib/services/ios-device-debug-service.js +0 -1
  274. package/lib/services/ios-entitlements-service.js +0 -1
  275. package/lib/services/ios-extensions-service.js +0 -1
  276. package/lib/services/ios-log-filter.js +0 -20
  277. package/lib/services/ios-native-target-service.js +5 -6
  278. package/lib/services/ios-project-service.js +7 -133
  279. package/lib/services/ios-provision-service.js +0 -3
  280. package/lib/services/ios-watch-app-service.js +10 -60
  281. package/lib/services/ip-service.js +0 -2
  282. package/lib/services/itmstransporter-service.js +0 -1
  283. package/lib/services/karma-execution.js +0 -2
  284. package/lib/services/livesync/android-device-livesync-service-base.js +0 -1
  285. package/lib/services/livesync/android-device-livesync-service.js +0 -2
  286. package/lib/services/livesync/android-device-livesync-sockets-service.js +0 -3
  287. package/lib/services/livesync/android-livesync-service.js +0 -1
  288. package/lib/services/livesync/android-livesync-tool.js +0 -4
  289. package/lib/services/livesync/device-livesync-service-base.js +0 -2
  290. package/lib/services/livesync/ios-device-livesync-service.js +0 -7
  291. package/lib/services/livesync/ios-livesync-service.js +0 -55
  292. package/lib/services/livesync/livesync-socket.js +0 -1
  293. package/lib/services/livesync/platform-livesync-service-base.js +0 -5
  294. package/lib/services/livesync-process-data-service.js +0 -1
  295. package/lib/services/log-parser-service.js +0 -1
  296. package/lib/services/log-source-map-service.js +0 -15
  297. package/lib/services/marking-mode-service.js +10 -8
  298. package/lib/services/metadata-filtering-service.js +0 -1
  299. package/lib/services/npm-config-service.js +0 -4
  300. package/lib/services/pacote-service.js +0 -7
  301. package/lib/services/performance-service.js +2 -3
  302. package/lib/services/platform/add-platform-service.js +2 -49
  303. package/lib/services/platform/platform-validation-service.js +0 -1
  304. package/lib/services/platform/prepare-native-platform-service.js +3 -5
  305. package/lib/services/platform-environment-requirements.js +4 -8
  306. package/lib/services/platform-project-service-base.js +0 -1
  307. package/lib/services/platforms-data-service.js +0 -1
  308. package/lib/services/plugins-service.js +2 -20
  309. package/lib/services/prepare-data-service.js +0 -1
  310. package/lib/services/project-backup-service.js +0 -4
  311. package/lib/services/project-changes-service.js +3 -14
  312. package/lib/services/project-cleanup-service.js +0 -2
  313. package/lib/services/project-config-service.js +2 -21
  314. package/lib/services/project-data-service.js +7 -36
  315. package/lib/services/project-name-service.js +0 -1
  316. package/lib/services/project-service.js +0 -10
  317. package/lib/services/project-templates-service.js +2 -3
  318. package/lib/services/qr-code-terminal-service.js +0 -1
  319. package/lib/services/require-service.js +0 -1
  320. package/lib/services/start-service.js +0 -1
  321. package/lib/services/temp-service.js +0 -3
  322. package/lib/services/terminal-spinner-service.js +0 -2
  323. package/lib/services/test-execution-service.js +3 -9
  324. package/lib/services/test-initialization-service.js +0 -4
  325. package/lib/services/timeline-profiler-service.js +0 -1
  326. package/lib/services/user-settings-service.js +0 -1
  327. package/lib/services/versions-service.js +5 -6
  328. package/lib/services/watch-ignore-list-service.js +0 -1
  329. package/lib/services/xcconfig-service.js +45 -12
  330. package/lib/services/xcproj-service.js +0 -1
  331. package/lib/shared-event-bus.js +0 -6
  332. package/lib/sys-info.js +2 -2
  333. package/lib/tools/config-manipulation/config-transformer.js +0 -12
  334. package/lib/tools/node-modules/node-modules-builder.js +0 -1
  335. package/lib/tools/node-modules/node-modules-dependencies-builder.js +0 -6
  336. package/lib/yarn-package-manager.js +0 -1
  337. package/lib/yarn2-package-manager.js +0 -3
  338. package/package.json +7 -18
  339. package/lib/.d.ts +0 -504
  340. package/lib/common/definitions/key-commands.d.ts +0 -62
  341. package/lib/common/services/analytics/google-analytics-custom-dimensions.d.ts +0 -16
  342. package/lib/definitions/system-warnings.d.ts +0 -4
  343. package/lib/detached-processes/detached-process-enums.d.ts +0 -70
  344. package/lib/services/analytics/google-analytics-cross-client-custom-dimensions.d.ts +0 -6
@@ -34,12 +34,6 @@ class CocoaPodsService {
34
34
  let podTool = this.$config.USE_POD_SANDBOX ? "sandbox-pod" : "pod";
35
35
  const args = ["install"];
36
36
  if (process.platform === "darwin" && process.arch === "arm64") {
37
- // check if pod is installed as an x86_64 binary or a native arm64 one
38
- // we run the following:
39
- // arch -x86_64 pod --version
40
- // if it's an arm64 binary, we'll get something like this as a result:
41
- // arch: posix_spawnp: pod: Bad CPU type in executable
42
- // in which case, we should run it natively.
43
37
  const res = await this.$childProcess
44
38
  .exec("arch -x86_64 pod --version", null, {
45
39
  showStderr: true,
@@ -53,11 +47,8 @@ class CocoaPodsService {
53
47
  podTool = "arch";
54
48
  }
55
49
  }
56
- // cocoapods print a lot of non-error information on stderr. Pipe the `stderr` to `stdout`, so we won't polute CLI's stderr output.
57
50
  const podInstallResult = await this.$childProcess.spawnFromEvent(podTool, args, "close", { cwd: projectRoot, stdio: ["pipe", process.stdout, process.stdout] }, { throwError: false });
58
51
  if (podInstallResult.exitCode !== 0) {
59
- // https://github.com/CocoaPods/CocoaPods/blob/92aaf0f1120d32f3487960b485fb69fcaf61486c/lib/cocoapods/resolver.rb#L498
60
- // TODO add article
61
52
  const versionResolutionHint = podInstallResult.exitCode === 31
62
53
  ? `For more information on resolving CocoaPod issues in NativeScript read.`
63
54
  : "";
@@ -89,7 +80,6 @@ ${versionResolutionHint}`);
89
80
  }
90
81
  async applyPodfileArchExclusions(projectData, platformData) {
91
82
  const xcodeVersionData = await this.$xcodeSelectService.getXcodeVersion();
92
- // only apply EXCLUDED_ARCHS workaround on XCode 12
93
83
  if (+xcodeVersionData.major !== 12) {
94
84
  return;
95
85
  }
@@ -108,7 +98,6 @@ end`.trim();
108
98
  this.$fs.writeFile(exclusionsPodfile, exclusions);
109
99
  }
110
100
  await this.applyPodfileToProject("NativeScript-CLI-Architecture-Exclusions", exclusionsPodfile, projectData, platformData);
111
- // clean up
112
101
  this.$fs.deleteFile(exclusionsPodfile);
113
102
  }
114
103
  async applyPodfileFromExtensions(projectData, platformData) {
@@ -131,7 +120,6 @@ end`.trim();
131
120
  podfilePath: path.join(extensionFolderPath, name, constants.PODFILE_NAME),
132
121
  }));
133
122
  extensionsPodfile.forEach(({ targetName, podfilePath }) => {
134
- // Remove the data between #Begin Podfile and #EndPodfile
135
123
  const regExpToRemove = new RegExp(`${this.getExtensionPodfileHeader(podfilePath, targetName)}[\\s\\S]*?${this.getExtensionPodfileEnd()}`, "mg");
136
124
  projectPodFileContent = projectPodFileContent.replace(regExpToRemove, "");
137
125
  if (this.$fs.exists(podfilePath)) {
@@ -158,7 +146,6 @@ end`.trim();
158
146
  ? this.$fs.readText(pathToProjectPodfile).trim()
159
147
  : "";
160
148
  if (projectPodfileContent.indexOf(podfileContent) === -1) {
161
- // Remove old occurences of the plugin from the project's Podfile.
162
149
  this.removePodfileFromProject(moduleName, podfilePath, projectData, nativeProjectPath);
163
150
  let finalPodfileContent = this.$fs.exists(pathToProjectPodfile)
164
151
  ? this.getPodfileContentWithoutTarget(projectData, this.$fs.readText(pathToProjectPodfile))
@@ -176,7 +163,6 @@ end`.trim();
176
163
  removePodfileFromProject(moduleName, podfilePath, projectData, projectRoot) {
177
164
  if (this.$fs.exists(this.getProjectPodfilePath(projectRoot))) {
178
165
  let projectPodFileContent = this.$fs.readText(this.getProjectPodfilePath(projectRoot));
179
- // Remove the data between #Begin Podfile and #EndPodfile
180
166
  const regExpToRemove = new RegExp(`${this.getPluginPodfileHeader(podfilePath)}[\\s\\S]*?${this.getPluginPodfileEnd()}`, "mg");
181
167
  projectPodFileContent = projectPodFileContent.replace(regExpToRemove, "");
182
168
  projectPodFileContent = this.removePostInstallHook(moduleName, projectPodFileContent);
@@ -197,7 +183,7 @@ end`.trim();
197
183
  }
198
184
  }
199
185
  getPluginPodfilePath(pluginData) {
200
- const pluginPlatformsFolderPath = pluginData.pluginPlatformsFolderPath("ios" /* PlatformTypes.ios */);
186
+ const pluginPlatformsFolderPath = pluginData.pluginPlatformsFolderPath(constants_1.PlatformTypes.ios);
201
187
  const pluginPodFilePath = path.join(pluginPlatformsFolderPath, constants_1.PODFILE_NAME);
202
188
  return pluginPodFilePath;
203
189
  }
@@ -233,7 +219,6 @@ end`.trim();
233
219
  if (_.startsWith(projectPodfileContent, podFileHeader)) {
234
220
  projectPodfileContent = projectPodfileContent.substr(podFileHeader.length);
235
221
  const podFileFooter = this.getPodfileFooter();
236
- // Only remove the final end in case the file starts with the podFileHeader
237
222
  if (_.endsWith(projectPodfileContent, podFileFooter)) {
238
223
  projectPodfileContent = projectPodfileContent.substr(0, projectPodfileContent.length - podFileFooter.length);
239
224
  }
@@ -254,8 +239,6 @@ end`.trim();
254
239
  return projectPodFileContent;
255
240
  }
256
241
  getHookBasicFuncNameForPlugin(hookName, pluginName) {
257
- // nativescript-hook and nativescript_hook should have different names, so replace all _ with ___ first and then replace all special symbols with _
258
- // This will lead to a clash in case plugins are called nativescript-hook and nativescript___hook
259
242
  const replacedPluginName = pluginName
260
243
  .replace(/_/g, "___")
261
244
  .replace(/[^A-Za-z0-9_]/g, "_");
@@ -269,7 +252,6 @@ end`.trim();
269
252
  const newFunctionName = `${this.getHookBasicFuncNameForPlugin(hookName, pluginName)}_${newFunctions.length}`;
270
253
  let newDefinition = `def ${newFunctionName}`;
271
254
  const rubyFunction = { functionName: newFunctionName };
272
- // firstGroup is the block parameter, secondGroup is the block parameter name.
273
255
  if (firstGroup && secondGroup) {
274
256
  newDefinition = `${newDefinition} (${secondGroup})`;
275
257
  rubyFunction.functionParameters = secondGroup;
@@ -280,7 +262,6 @@ end`.trim();
280
262
  return { replacedContent, newFunctions };
281
263
  }
282
264
  getPluginPodfileHeader(pluginPodFilePath) {
283
- // escape special + from the podfile path (pnpm)
284
265
  pluginPodFilePath = pluginPodFilePath.replace(/\+/g, "\\+");
285
266
  return `# Begin Podfile - ${pluginPodFilePath}`;
286
267
  }
@@ -350,4 +331,3 @@ exports.CocoaPodsService = CocoaPodsService;
350
331
  CocoaPodsService.PODFILE_POST_INSTALL_SECTION_NAME = "post_install";
351
332
  CocoaPodsService.INSTALLER_BLOCK_PARAMETER_NAME = "installer";
352
333
  yok_1.injector.register("cocoapodsService", CocoaPodsService);
353
- //# sourceMappingURL=cocoapods-service.js.map
@@ -19,4 +19,3 @@ class DebugDataService {
19
19
  }
20
20
  exports.DebugDataService = DebugDataService;
21
21
  yok_1.injector.register("debugDataService", DebugDataService);
22
- //# sourceMappingURL=debug-data-service.js.map
@@ -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
@@ -21,7 +21,7 @@ class DeviceInstallAppService {
21
21
  const projectData = this.$projectDataService.getProjectData(buildData.projectDir);
22
22
  const platformData = this.$platformsDataService.getPlatformData(platform, projectData);
23
23
  await this.$analyticsService.trackEventActionInGoogleAnalytics({
24
- action: "Deploy" /* TrackActionNames.Deploy */,
24
+ action: constants_1.TrackActionNames.Deploy,
25
25
  device,
26
26
  projectDir: projectData.projectDir,
27
27
  });
@@ -77,4 +77,3 @@ class DeviceInstallAppService {
77
77
  }
78
78
  exports.DeviceInstallAppService = DeviceInstallAppService;
79
79
  yok_1.injector.register("deviceInstallAppService", DeviceInstallAppService);
80
- //# sourceMappingURL=device-install-app-service.js.map
@@ -52,13 +52,9 @@ class DoctorService {
52
52
  this.printPackageManagerTip();
53
53
  }
54
54
  if (!configOptions || configOptions.trackResult) {
55
- // TODO(Analytics): Consider sending this information to Google Analytics
56
- // await this.$analyticsService.track("DoctorEnvironmentSetup", hasWarnings ? "incorrect" : "correct");
57
55
  }
58
56
  if (hasWarnings) {
59
57
  this.$logger.info("There seem to be issues with your configuration.");
60
- // cleanup the cache file as there seems to be issues with the current config
61
- // all projects need to be rechecked
62
58
  this.$fs.deleteFile(this.jsonFileSettingsPath);
63
59
  }
64
60
  else {
@@ -72,7 +68,6 @@ class DoctorService {
72
68
  catch (err) {
73
69
  this.$logger.error("Cannot get the latest versions information from npm. Please try again later.");
74
70
  }
75
- // todo: check for deprecated imports from `tns-core-modules`
76
71
  this.checkForDeprecatedShortImportsInAppDir(configOptions.projectDir);
77
72
  await this.$injector
78
73
  .resolve("platformEnvironmentRequirements")
@@ -85,12 +80,12 @@ class DoctorService {
85
80
  }
86
81
  async runSetupScript() {
87
82
  await this.$analyticsService.trackEventActionInGoogleAnalytics({
88
- action: "Run Setup Script" /* TrackActionNames.RunSetupScript */,
83
+ action: constants_1.TrackActionNames.RunSetupScript,
89
84
  additionalData: "Starting",
90
85
  });
91
86
  if (this.$hostInfo.isLinux) {
92
87
  await this.$analyticsService.trackEventActionInGoogleAnalytics({
93
- action: "Run Setup Script" /* TrackActionNames.RunSetupScript */,
88
+ action: constants_1.TrackActionNames.RunSetupScript,
94
89
  additionalData: "Skipped as OS is Linux",
95
90
  });
96
91
  return;
@@ -103,13 +98,13 @@ class DoctorService {
103
98
  await this.runSetupScriptCore(DoctorService.WindowsSetupScriptExecutable, DoctorService.WindowsSetupScriptArguments);
104
99
  }
105
100
  await this.$analyticsService.trackEventActionInGoogleAnalytics({
106
- action: "Run Setup Script" /* TrackActionNames.RunSetupScript */,
101
+ action: constants_1.TrackActionNames.RunSetupScript,
107
102
  additionalData: "Finished",
108
103
  });
109
104
  }
110
105
  async canExecuteLocalBuild(configuration) {
111
106
  await this.$analyticsService.trackEventActionInGoogleAnalytics({
112
- action: "Check Local Build Setup" /* TrackActionNames.CheckLocalBuildSetup */,
107
+ action: constants_1.TrackActionNames.CheckLocalBuildSetup,
113
108
  additionalData: "Starting",
114
109
  });
115
110
  const sysInfoConfig = {
@@ -121,11 +116,9 @@ class DoctorService {
121
116
  const warnings = this.filterInfosByType(infos, doctor_1.constants.WARNING_TYPE_NAME);
122
117
  const hasWarnings = warnings.length > 0;
123
118
  if (hasWarnings) {
124
- // cleanup the cache file as there seems to be issues with the current config
125
- // all projects need to be rechecked
126
119
  this.$fs.deleteFile(this.jsonFileSettingsPath);
127
120
  await this.$analyticsService.trackEventActionInGoogleAnalytics({
128
- action: "Check Local Build Setup" /* TrackActionNames.CheckLocalBuildSetup */,
121
+ action: constants_1.TrackActionNames.CheckLocalBuildSetup,
129
122
  additionalData: `Warnings:${warnings.map((w) => w.message).join("__")}`,
130
123
  });
131
124
  this.printInfosCore(infos);
@@ -135,7 +128,7 @@ class DoctorService {
135
128
  await this.$jsonFileSettingsService.saveSetting(this.getKeyForConfiguration(sysInfoConfig), infos);
136
129
  }
137
130
  await this.$analyticsService.trackEventActionInGoogleAnalytics({
138
- action: "Check Local Build Setup" /* TrackActionNames.CheckLocalBuildSetup */,
131
+ action: constants_1.TrackActionNames.CheckLocalBuildSetup,
139
132
  additionalData: `Finished: Is setup correct: ${!hasWarnings}`,
140
133
  });
141
134
  return !hasWarnings;
@@ -183,13 +176,6 @@ class DoctorService {
183
176
  .getFsStats(path.join(pathToTnsCoreModules, entry))
184
177
  .isDirectory());
185
178
  const stringRegularExpressionsPerDir = coreModulesSubDirs.map((c) => {
186
- // require("text");
187
- // require("text/smth");
188
- // require( "text/smth");
189
- // require( "text/smth" );
190
- // import * as text from "text";
191
- // import { a } from "text";
192
- // import {a } from "text/abc"
193
179
  const subDirPart = `[\"\']${c}[\"\'/]`;
194
180
  return `(\\brequire\\s*?\\(\\s*?${subDirPart})|(\\bimport\\b.*?from\\s*?${subDirPart})`;
195
181
  });
@@ -287,4 +273,3 @@ __decorate([
287
273
  (0, decorators_1.cache)()
288
274
  ], DoctorService.prototype, "$jsonFileSettingsService", null);
289
275
  yok_1.injector.register("doctorService", DoctorService);
290
- //# sourceMappingURL=doctor-service.js.map
@@ -119,17 +119,12 @@ class ExtensibilityService {
119
119
  for (const extensionData of allExtensions) {
120
120
  const extensionName = extensionData.package.name;
121
121
  try {
122
- // now get full package.json for the latest version of the package
123
122
  const registryData = await this.$packageManager.getRegistryPackageData(extensionName);
124
123
  const latestPackageData = registryData.versions[registryData["dist-tags"].latest];
125
124
  const commands = latestPackageData &&
126
125
  latestPackageData.nativescript &&
127
126
  latestPackageData.nativescript.commands;
128
127
  if (commands && commands.length) {
129
- // For each default command we need to add its short syntax in the array of commands.
130
- // For example in case there's a default command called devices list, the commands array will contain devices|*list.
131
- // However, in case the user executes just 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
@@ -5,9 +5,8 @@ const os_1 = require("os");
5
5
  const _ = require("lodash");
6
6
  const constants_1 = require("../constants");
7
7
  const yok_1 = require("../common/yok");
8
+ const system_warnings_1 = require("../definitions/system-warnings");
8
9
  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
10
  constructor($injector) {
12
11
  this.$injector = $injector;
13
12
  }
@@ -35,7 +34,6 @@ class InitializeService {
35
34
  }
36
35
  }
37
36
  if ($options.json) {
38
- // speed up --json commands by not gathering system warnings...
39
37
  $logger.trace("Skipping system warnings for --json commands");
40
38
  }
41
39
  else {
@@ -47,7 +45,7 @@ class InitializeService {
47
45
  const systemWarnings = await $sysInfo.getSystemWarnings();
48
46
  _.each(systemWarnings, (systemWarning) => {
49
47
  const message = `${os_1.EOL}${systemWarning.message}${os_1.EOL}`;
50
- if (systemWarning.severity === "high" /* SystemWarningsSeverity.high */) {
48
+ if (systemWarning.severity === system_warnings_1.SystemWarningsSeverity.high) {
51
49
  $logger.error(message);
52
50
  }
53
51
  else {
@@ -58,4 +56,3 @@ class InitializeService {
58
56
  }
59
57
  exports.InitializeService = InitializeService;
60
58
  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
@@ -46,7 +46,6 @@ class IOSSigningService {
46
46
  let shouldUpdateXcode = false;
47
47
  if (signing && signing.style === "Automatic") {
48
48
  if (signing.team !== teamId) {
49
- // Maybe the provided team is name such as "Telerik AD" and we need to convert it to CH******37
50
49
  const teamIdsForName = await this.$iOSProvisionService.getTeamIdsWithName(teamId);
51
50
  if (!teamIdsForName.some((id) => id === signing.team)) {
52
51
  shouldUpdateXcode = true;
@@ -80,7 +79,6 @@ class IOSSigningService {
80
79
  }
81
80
  async setupSigningFromProvision(projectRoot, projectData, provision, mobileProvisionData) {
82
81
  if (!provision) {
83
- // read uuid from Xcode an cache...
84
82
  return;
85
83
  }
86
84
  const xcode = this.$pbxprojDomXcode.Xcode.open(this.getPbxProjPath(projectData, projectRoot));
@@ -113,7 +111,6 @@ class IOSSigningService {
113
111
  this.$logger.trace(`Set Manual signing style and provisioning profile: ${configuration.name} (${configuration.uuid})`);
114
112
  });
115
113
  xcode.save();
116
- // this.cache(uuid);
117
114
  }
118
115
  else {
119
116
  this.$logger.trace(`The specified provisioning profile is already set in the Xcode: ${provision}`);
@@ -276,4 +273,3 @@ class IOSSigningService {
276
273
  }
277
274
  exports.IOSSigningService = IOSSigningService;
278
275
  yok_1.injector.register("iOSSigningService", IOSSigningService);
279
- //# sourceMappingURL=ios-signing-service.js.map