nativescript 9.1.0-alpha.0 → 9.1.0-alpha.10

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 (267) hide show
  1. package/README.md +49 -0
  2. package/config/test-deps-versions-generated.json +3 -3
  3. package/lib/.d.ts +1 -0
  4. package/lib/bootstrap.js +0 -2
  5. package/lib/commands/build.js +1 -30
  6. package/lib/commands/prepare.js +5 -0
  7. package/lib/commands/run.js +1 -39
  8. package/lib/commands/widget.js +1 -2
  9. package/lib/common/definitions/mobile.d.ts +15 -13
  10. package/lib/common/file-system.js +11 -15
  11. package/lib/common/mobile/android/android-emulator-services.js +11 -3
  12. package/lib/common/mobile/device-platforms-constants.js +0 -4
  13. package/lib/common/mobile/emulator-helper.js +1 -0
  14. package/lib/common/mobile/ios/device/ios-device-file-system.js +29 -1
  15. package/lib/common/mobile/mobile-helper.js +1 -12
  16. package/lib/constants.js +7 -2
  17. package/lib/controllers/prepare-controller.js +53 -39
  18. package/lib/controllers/run-controller.js +200 -13
  19. package/lib/data/prepare-data.js +4 -0
  20. package/lib/declarations.d.ts +38 -42
  21. package/lib/definitions/nativescript-dev-xcode.d.ts +25 -1
  22. package/lib/definitions/project.d.ts +51 -6
  23. package/lib/key-commands/bootstrap.js +0 -1
  24. package/lib/key-commands/index.js +1 -53
  25. package/lib/options.js +1 -0
  26. package/lib/project-data.js +0 -6
  27. package/lib/services/android-plugin-build-service.js +20 -12
  28. package/lib/services/bundler/bundler-compiler-service.js +182 -13
  29. package/lib/services/debug-service-base.js +1 -1
  30. package/lib/services/ios/ios-signing-service.js +10 -3
  31. package/lib/services/ios/spm-service.js +1 -8
  32. package/lib/services/ios/xcodebuild-args-service.js +36 -29
  33. package/lib/services/ios-entitlements-service.js +3 -1
  34. package/lib/services/ios-project-service.js +55 -78
  35. package/lib/services/ios-watch-app-service.js +663 -16
  36. package/lib/services/livesync/ios-livesync-service.js +113 -2
  37. package/lib/services/platforms-data-service.js +0 -1
  38. package/lib/services/plugins-service.js +16 -28
  39. package/lib/services/project-changes-service.js +4 -15
  40. package/lib/services/project-data-service.js +16 -31
  41. package/lib/services/versions-service.js +0 -4
  42. package/lib/tools/config-manipulation/config-transformer.js +55 -3
  43. package/node_modules/debug/LICENSE +20 -0
  44. package/node_modules/debug/README.md +481 -0
  45. package/node_modules/debug/package.json +64 -0
  46. package/node_modules/debug/src/browser.js +272 -0
  47. package/node_modules/debug/src/common.js +292 -0
  48. package/node_modules/debug/src/index.js +10 -0
  49. package/node_modules/debug/src/node.js +263 -0
  50. package/node_modules/ms/index.js +162 -0
  51. package/node_modules/ms/license.md +21 -0
  52. package/node_modules/ms/package.json +38 -0
  53. package/node_modules/ms/readme.md +59 -0
  54. package/node_modules/universal-analytics/.travis.yml +11 -0
  55. package/node_modules/universal-analytics/AcceptableParams.md +757 -0
  56. package/node_modules/universal-analytics/HISTORY.md +170 -0
  57. package/node_modules/universal-analytics/Makefile +5 -0
  58. package/node_modules/universal-analytics/README.md +651 -0
  59. package/node_modules/universal-analytics/index.js +2 -0
  60. package/node_modules/universal-analytics/lib/config.js +171 -0
  61. package/node_modules/universal-analytics/lib/index.js +563 -0
  62. package/node_modules/universal-analytics/lib/request.js +73 -0
  63. package/node_modules/universal-analytics/lib/utils.js +29 -0
  64. package/node_modules/universal-analytics/package.json +33 -0
  65. package/node_modules/universal-analytics/test/_enqueue.js +144 -0
  66. package/node_modules/universal-analytics/test/event.js +346 -0
  67. package/node_modules/universal-analytics/test/exception.js +233 -0
  68. package/node_modules/universal-analytics/test/index.js +141 -0
  69. package/node_modules/universal-analytics/test/item.js +550 -0
  70. package/node_modules/universal-analytics/test/middleware.js +119 -0
  71. package/node_modules/universal-analytics/test/mocha.opts +3 -0
  72. package/node_modules/universal-analytics/test/pageview.js +286 -0
  73. package/node_modules/universal-analytics/test/send.js +232 -0
  74. package/node_modules/universal-analytics/test/set.js +68 -0
  75. package/node_modules/universal-analytics/test/timing.js +363 -0
  76. package/node_modules/universal-analytics/test/transaction.js +371 -0
  77. package/node_modules/uuid/LICENSE.md +9 -0
  78. package/node_modules/uuid/README.md +510 -0
  79. package/node_modules/uuid/dist/cjs/index.d.ts +15 -0
  80. package/node_modules/uuid/dist/cjs/index.js +31 -0
  81. package/node_modules/uuid/dist/cjs/max.d.ts +2 -0
  82. package/node_modules/uuid/dist/cjs/max.js +3 -0
  83. package/node_modules/uuid/dist/cjs/md5.d.ts +4 -0
  84. package/node_modules/uuid/dist/cjs/md5.js +13 -0
  85. package/node_modules/uuid/dist/cjs/native.d.ts +6 -0
  86. package/node_modules/uuid/dist/cjs/native.js +4 -0
  87. package/node_modules/uuid/dist/cjs/nil.d.ts +2 -0
  88. package/node_modules/uuid/dist/cjs/nil.js +3 -0
  89. package/node_modules/uuid/dist/cjs/package.json +1 -0
  90. package/node_modules/uuid/dist/cjs/parse.d.ts +2 -0
  91. package/node_modules/uuid/dist/cjs/parse.js +11 -0
  92. package/node_modules/uuid/dist/cjs/regex.d.ts +2 -0
  93. package/node_modules/uuid/dist/cjs/regex.js +3 -0
  94. package/node_modules/uuid/dist/cjs/rng.d.ts +1 -0
  95. package/node_modules/uuid/dist/cjs/rng.js +13 -0
  96. package/node_modules/uuid/dist/cjs/sha1.d.ts +4 -0
  97. package/node_modules/uuid/dist/cjs/sha1.js +13 -0
  98. package/node_modules/uuid/dist/cjs/stringify.d.ts +3 -0
  99. package/node_modules/uuid/dist/cjs/stringify.js +39 -0
  100. package/node_modules/uuid/dist/cjs/types.d.ts +21 -0
  101. package/node_modules/uuid/dist/cjs/types.js +2 -0
  102. package/node_modules/uuid/dist/cjs/uuid-bin.d.ts +1 -0
  103. package/node_modules/uuid/dist/cjs/uuid-bin.js +72 -0
  104. package/node_modules/uuid/dist/cjs/v1.d.ts +11 -0
  105. package/node_modules/uuid/dist/cjs/v1.js +87 -0
  106. package/node_modules/uuid/dist/cjs/v1ToV6.d.ts +2 -0
  107. package/node_modules/uuid/dist/cjs/v1ToV6.js +13 -0
  108. package/node_modules/uuid/dist/cjs/v3.d.ts +9 -0
  109. package/node_modules/uuid/dist/cjs/v3.js +14 -0
  110. package/node_modules/uuid/dist/cjs/v35.d.ts +7 -0
  111. package/node_modules/uuid/dist/cjs/v35.js +41 -0
  112. package/node_modules/uuid/dist/cjs/v4.d.ts +4 -0
  113. package/node_modules/uuid/dist/cjs/v4.js +29 -0
  114. package/node_modules/uuid/dist/cjs/v5.d.ts +9 -0
  115. package/node_modules/uuid/dist/cjs/v5.js +14 -0
  116. package/node_modules/uuid/dist/cjs/v6.d.ts +4 -0
  117. package/node_modules/uuid/dist/cjs/v6.js +19 -0
  118. package/node_modules/uuid/dist/cjs/v6ToV1.d.ts +2 -0
  119. package/node_modules/uuid/dist/cjs/v6ToV1.js +13 -0
  120. package/node_modules/uuid/dist/cjs/v7.d.ts +9 -0
  121. package/node_modules/uuid/dist/cjs/v7.js +69 -0
  122. package/node_modules/uuid/dist/cjs/validate.d.ts +2 -0
  123. package/node_modules/uuid/dist/cjs/validate.js +7 -0
  124. package/node_modules/uuid/dist/cjs/version.d.ts +2 -0
  125. package/node_modules/uuid/dist/cjs/version.js +10 -0
  126. package/node_modules/uuid/dist/cjs-browser/index.d.ts +15 -0
  127. package/node_modules/uuid/dist/cjs-browser/index.js +31 -0
  128. package/node_modules/uuid/dist/cjs-browser/max.d.ts +2 -0
  129. package/node_modules/uuid/dist/cjs-browser/max.js +3 -0
  130. package/node_modules/uuid/dist/cjs-browser/md5.d.ts +2 -0
  131. package/node_modules/uuid/dist/cjs-browser/md5.js +137 -0
  132. package/node_modules/uuid/dist/cjs-browser/native.d.ts +4 -0
  133. package/node_modules/uuid/dist/cjs-browser/native.js +4 -0
  134. package/node_modules/uuid/dist/cjs-browser/nil.d.ts +2 -0
  135. package/node_modules/uuid/dist/cjs-browser/nil.js +3 -0
  136. package/node_modules/uuid/dist/cjs-browser/package.json +1 -0
  137. package/node_modules/uuid/dist/cjs-browser/parse.d.ts +2 -0
  138. package/node_modules/uuid/dist/cjs-browser/parse.js +11 -0
  139. package/node_modules/uuid/dist/cjs-browser/regex.d.ts +2 -0
  140. package/node_modules/uuid/dist/cjs-browser/regex.js +3 -0
  141. package/node_modules/uuid/dist/cjs-browser/rng.d.ts +1 -0
  142. package/node_modules/uuid/dist/cjs-browser/rng.js +14 -0
  143. package/node_modules/uuid/dist/cjs-browser/sha1.d.ts +2 -0
  144. package/node_modules/uuid/dist/cjs-browser/sha1.js +72 -0
  145. package/node_modules/uuid/dist/cjs-browser/stringify.d.ts +3 -0
  146. package/node_modules/uuid/dist/cjs-browser/stringify.js +39 -0
  147. package/node_modules/uuid/dist/cjs-browser/types.d.ts +21 -0
  148. package/node_modules/uuid/dist/cjs-browser/types.js +2 -0
  149. package/node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts +1 -0
  150. package/node_modules/uuid/dist/cjs-browser/uuid-bin.js +72 -0
  151. package/node_modules/uuid/dist/cjs-browser/v1.d.ts +11 -0
  152. package/node_modules/uuid/dist/cjs-browser/v1.js +87 -0
  153. package/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts +2 -0
  154. package/node_modules/uuid/dist/cjs-browser/v1ToV6.js +13 -0
  155. package/node_modules/uuid/dist/cjs-browser/v3.d.ts +9 -0
  156. package/node_modules/uuid/dist/cjs-browser/v3.js +14 -0
  157. package/node_modules/uuid/dist/cjs-browser/v35.d.ts +7 -0
  158. package/node_modules/uuid/dist/cjs-browser/v35.js +41 -0
  159. package/node_modules/uuid/dist/cjs-browser/v4.d.ts +4 -0
  160. package/node_modules/uuid/dist/cjs-browser/v4.js +29 -0
  161. package/node_modules/uuid/dist/cjs-browser/v5.d.ts +9 -0
  162. package/node_modules/uuid/dist/cjs-browser/v5.js +14 -0
  163. package/node_modules/uuid/dist/cjs-browser/v6.d.ts +4 -0
  164. package/node_modules/uuid/dist/cjs-browser/v6.js +19 -0
  165. package/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts +2 -0
  166. package/node_modules/uuid/dist/cjs-browser/v6ToV1.js +13 -0
  167. package/node_modules/uuid/dist/cjs-browser/v7.d.ts +9 -0
  168. package/node_modules/uuid/dist/cjs-browser/v7.js +69 -0
  169. package/node_modules/uuid/dist/cjs-browser/validate.d.ts +2 -0
  170. package/node_modules/uuid/dist/cjs-browser/validate.js +7 -0
  171. package/node_modules/uuid/dist/cjs-browser/version.d.ts +2 -0
  172. package/node_modules/uuid/dist/cjs-browser/version.js +10 -0
  173. package/node_modules/uuid/dist/esm/bin/uuid +2 -0
  174. package/node_modules/uuid/dist/esm/index.d.ts +15 -0
  175. package/node_modules/uuid/dist/esm/index.js +14 -0
  176. package/node_modules/uuid/dist/esm/max.d.ts +2 -0
  177. package/node_modules/uuid/dist/esm/max.js +1 -0
  178. package/node_modules/uuid/dist/esm/md5.d.ts +4 -0
  179. package/node_modules/uuid/dist/esm/md5.js +11 -0
  180. package/node_modules/uuid/dist/esm/native.d.ts +6 -0
  181. package/node_modules/uuid/dist/esm/native.js +2 -0
  182. package/node_modules/uuid/dist/esm/nil.d.ts +2 -0
  183. package/node_modules/uuid/dist/esm/nil.js +1 -0
  184. package/node_modules/uuid/dist/esm/parse.d.ts +2 -0
  185. package/node_modules/uuid/dist/esm/parse.js +9 -0
  186. package/node_modules/uuid/dist/esm/regex.d.ts +2 -0
  187. package/node_modules/uuid/dist/esm/regex.js +1 -0
  188. package/node_modules/uuid/dist/esm/rng.d.ts +1 -0
  189. package/node_modules/uuid/dist/esm/rng.js +10 -0
  190. package/node_modules/uuid/dist/esm/sha1.d.ts +4 -0
  191. package/node_modules/uuid/dist/esm/sha1.js +11 -0
  192. package/node_modules/uuid/dist/esm/stringify.d.ts +3 -0
  193. package/node_modules/uuid/dist/esm/stringify.js +35 -0
  194. package/node_modules/uuid/dist/esm/types.d.ts +21 -0
  195. package/node_modules/uuid/dist/esm/types.js +1 -0
  196. package/node_modules/uuid/dist/esm/uuid-bin.d.ts +1 -0
  197. package/node_modules/uuid/dist/esm/uuid-bin.js +70 -0
  198. package/node_modules/uuid/dist/esm/v1.d.ts +11 -0
  199. package/node_modules/uuid/dist/esm/v1.js +83 -0
  200. package/node_modules/uuid/dist/esm/v1ToV6.d.ts +2 -0
  201. package/node_modules/uuid/dist/esm/v1ToV6.js +10 -0
  202. package/node_modules/uuid/dist/esm/v3.d.ts +9 -0
  203. package/node_modules/uuid/dist/esm/v3.js +9 -0
  204. package/node_modules/uuid/dist/esm/v35.d.ts +7 -0
  205. package/node_modules/uuid/dist/esm/v35.js +36 -0
  206. package/node_modules/uuid/dist/esm/v4.d.ts +4 -0
  207. package/node_modules/uuid/dist/esm/v4.js +27 -0
  208. package/node_modules/uuid/dist/esm/v5.d.ts +9 -0
  209. package/node_modules/uuid/dist/esm/v5.js +9 -0
  210. package/node_modules/uuid/dist/esm/v6.d.ts +4 -0
  211. package/node_modules/uuid/dist/esm/v6.js +17 -0
  212. package/node_modules/uuid/dist/esm/v6ToV1.d.ts +2 -0
  213. package/node_modules/uuid/dist/esm/v6ToV1.js +10 -0
  214. package/node_modules/uuid/dist/esm/v7.d.ts +9 -0
  215. package/node_modules/uuid/dist/esm/v7.js +65 -0
  216. package/node_modules/uuid/dist/esm/validate.d.ts +2 -0
  217. package/node_modules/uuid/dist/esm/validate.js +5 -0
  218. package/node_modules/uuid/dist/esm/version.d.ts +2 -0
  219. package/node_modules/uuid/dist/esm/version.js +8 -0
  220. package/node_modules/uuid/dist/esm-browser/index.d.ts +15 -0
  221. package/node_modules/uuid/dist/esm-browser/index.js +14 -0
  222. package/node_modules/uuid/dist/esm-browser/max.d.ts +2 -0
  223. package/node_modules/uuid/dist/esm-browser/max.js +1 -0
  224. package/node_modules/uuid/dist/esm-browser/md5.d.ts +2 -0
  225. package/node_modules/uuid/dist/esm-browser/md5.js +135 -0
  226. package/node_modules/uuid/dist/esm-browser/native.d.ts +4 -0
  227. package/node_modules/uuid/dist/esm-browser/native.js +2 -0
  228. package/node_modules/uuid/dist/esm-browser/nil.d.ts +2 -0
  229. package/node_modules/uuid/dist/esm-browser/nil.js +1 -0
  230. package/node_modules/uuid/dist/esm-browser/parse.d.ts +2 -0
  231. package/node_modules/uuid/dist/esm-browser/parse.js +9 -0
  232. package/node_modules/uuid/dist/esm-browser/regex.d.ts +2 -0
  233. package/node_modules/uuid/dist/esm-browser/regex.js +1 -0
  234. package/node_modules/uuid/dist/esm-browser/rng.d.ts +1 -0
  235. package/node_modules/uuid/dist/esm-browser/rng.js +11 -0
  236. package/node_modules/uuid/dist/esm-browser/sha1.d.ts +2 -0
  237. package/node_modules/uuid/dist/esm-browser/sha1.js +70 -0
  238. package/node_modules/uuid/dist/esm-browser/stringify.d.ts +3 -0
  239. package/node_modules/uuid/dist/esm-browser/stringify.js +35 -0
  240. package/node_modules/uuid/dist/esm-browser/types.d.ts +21 -0
  241. package/node_modules/uuid/dist/esm-browser/types.js +1 -0
  242. package/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +1 -0
  243. package/node_modules/uuid/dist/esm-browser/uuid-bin.js +70 -0
  244. package/node_modules/uuid/dist/esm-browser/v1.d.ts +11 -0
  245. package/node_modules/uuid/dist/esm-browser/v1.js +83 -0
  246. package/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +2 -0
  247. package/node_modules/uuid/dist/esm-browser/v1ToV6.js +10 -0
  248. package/node_modules/uuid/dist/esm-browser/v3.d.ts +9 -0
  249. package/node_modules/uuid/dist/esm-browser/v3.js +9 -0
  250. package/node_modules/uuid/dist/esm-browser/v35.d.ts +7 -0
  251. package/node_modules/uuid/dist/esm-browser/v35.js +36 -0
  252. package/node_modules/uuid/dist/esm-browser/v4.d.ts +4 -0
  253. package/node_modules/uuid/dist/esm-browser/v4.js +27 -0
  254. package/node_modules/uuid/dist/esm-browser/v5.d.ts +9 -0
  255. package/node_modules/uuid/dist/esm-browser/v5.js +9 -0
  256. package/node_modules/uuid/dist/esm-browser/v6.d.ts +4 -0
  257. package/node_modules/uuid/dist/esm-browser/v6.js +17 -0
  258. package/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +2 -0
  259. package/node_modules/uuid/dist/esm-browser/v6ToV1.js +10 -0
  260. package/node_modules/uuid/dist/esm-browser/v7.d.ts +9 -0
  261. package/node_modules/uuid/dist/esm-browser/v7.js +65 -0
  262. package/node_modules/uuid/dist/esm-browser/validate.d.ts +2 -0
  263. package/node_modules/uuid/dist/esm-browser/validate.js +5 -0
  264. package/node_modules/uuid/dist/esm-browser/version.d.ts +2 -0
  265. package/node_modules/uuid/dist/esm-browser/version.js +8 -0
  266. package/node_modules/uuid/package.json +132 -0
  267. package/package.json +29 -14
package/README.md CHANGED
@@ -44,6 +44,12 @@ Get it using: `npm install -g nativescript`
44
44
  - [Extending the CLI](#extending-the-cli)
45
45
  - [Troubleshooting](#troubleshooting)
46
46
  - [How to Contribute](#how-to-contribute)
47
+ - [Scorecard Maintenance](#scorecard-maintenance)
48
+ - [1) Branch-Protection check (`?`) in Scorecard workflow](#1-branch-protection-check--in-scorecard-workflow)
49
+ - [2) Required branch/ruleset settings for higher Branch-Protection and Code-Review](#2-required-branchruleset-settings-for-higher-branch-protection-and-code-review)
50
+ - [3) Keep Token-Permissions high](#3-keep-token-permissions-high)
51
+ - [4) Signed-Releases check](#4-signed-releases-check)
52
+ - [5) Vulnerabilities check](#5-vulnerabilities-check)
47
53
  - [How to Build](#how-to-build)
48
54
  - [Get Help](#get-help)
49
55
  - [License](#license)
@@ -344,6 +350,49 @@ To learn how to contribute to the code base, click [here](https://github.com/Nat
344
350
 
345
351
  [Back to Top][1]
346
352
 
353
+ Scorecard Maintenance
354
+ ===
355
+
356
+ This repository tracks OpenSSF Scorecard. Use this checklist when score drops or checks become inconclusive.
357
+
358
+ ### 1) Branch-Protection check (`?`) in Scorecard workflow
359
+
360
+ - Ensure `.github/workflows/scorecard.yml` uses `repo_token: ${{ secrets.SCORECARD_TOKEN }}`.
361
+ - Set `SCORECARD_TOKEN` as a repository Actions secret.
362
+ - If using a fine-grained PAT, set expiration to **366 days or less** (NativeScript org policy).
363
+ - If Branch-Protection still reports token incompatibility, use a PAT type compatible with Scorecard's Branch-Protection query path.
364
+
365
+ ### 2) Required branch/ruleset settings for higher Branch-Protection and Code-Review
366
+
367
+ Apply to `main` and release branches:
368
+
369
+ - Prevent force push and prevent branch deletion.
370
+ - Require pull request before merge.
371
+ - Require status checks to pass before merge.
372
+ - Require at least 2 approvals.
373
+ - Require code owner review.
374
+ - Dismiss stale approvals when new commits are pushed.
375
+ - Include administrators.
376
+
377
+ ### 3) Keep Token-Permissions high
378
+
379
+ - Set top-level workflow permissions to read-only (for example `permissions: read-all`).
380
+ - Grant write permissions only at job level and only when needed (for example publish/release jobs).
381
+ - Keep GitHub Actions pinned to full commit SHAs.
382
+
383
+ ### 4) Signed-Releases check
384
+
385
+ - Publish release assets with provenance/signature files.
386
+ - Keep release workflow attaching `*.intoto.jsonl` artifacts alongside release bundles.
387
+
388
+ ### 5) Vulnerabilities check
389
+
390
+ - Keep runtime dependency vulnerabilities near zero.
391
+ - Run `npm audit --omit=dev` before release PRs.
392
+ - Update vulnerable dependencies quickly; for non-applicable findings, document and track mitigation clearly.
393
+
394
+ [Back to Top][1]
395
+
347
396
  How to Build
348
397
  ===
349
398
  ```
@@ -3,7 +3,7 @@
3
3
  "karma": "6.4.4",
4
4
  "karma-coverage": "2.2.1",
5
5
  "karma-nativescript-launcher": "1.0.0",
6
- "mocha": "11.7.5",
6
+ "mocha": "11.7.6",
7
7
  "karma-mocha": "2.0.1",
8
8
  "karma-chai": "0.1.0",
9
9
  "karma-jasmine": "4.0.2",
@@ -11,6 +11,6 @@
11
11
  "@types/karma-chai": "0.1.8",
12
12
  "@types/mocha": "10.0.10",
13
13
  "@types/jasmine": "6.0.0",
14
- "@types/qunit": "2.19.13",
15
- "nyc": "17.1.0"
14
+ "@types/qunit": "2.19.14",
15
+ "nyc": "18.0.0"
16
16
  }
package/lib/.d.ts CHANGED
@@ -497,6 +497,7 @@
497
497
  /// <reference path="../test/sys-info.ts" />
498
498
  /// <reference path="../test/test-bootstrap.ts" />
499
499
  /// <reference path="../test/tns-appstore-upload.ts" />
500
+ /// <reference path="../test/tools/config-manipulation/config-transformer.ts" />
500
501
  /// <reference path="../test/tools/node-modules/node-modules-dependencies-builder.ts" />
501
502
  /// <reference path="../test/update.ts" />
502
503
  /// <reference path="../test/xcconfig-service.ts" />
package/lib/bootstrap.js CHANGED
@@ -81,7 +81,6 @@ yok_1.injector.requireCommand("run|ios", "./commands/run");
81
81
  yok_1.injector.requireCommand("run|android", "./commands/run");
82
82
  yok_1.injector.requireCommand("run|vision", "./commands/run");
83
83
  yok_1.injector.requireCommand("run|visionos", "./commands/run");
84
- yok_1.injector.requireCommand("run|macos", "./commands/run");
85
84
  yok_1.injector.requireCommand("typings", "./commands/typings");
86
85
  yok_1.injector.requireCommand("preview", "./commands/preview");
87
86
  yok_1.injector.requireCommand("debug|ios", "./commands/debug");
@@ -94,7 +93,6 @@ yok_1.injector.requireCommand("build|ios", "./commands/build");
94
93
  yok_1.injector.requireCommand("build|android", "./commands/build");
95
94
  yok_1.injector.requireCommand("build|vision", "./commands/build");
96
95
  yok_1.injector.requireCommand("build|visionos", "./commands/build");
97
- yok_1.injector.requireCommand("build|macos", "./commands/build");
98
96
  yok_1.injector.requireCommand("deploy", "./commands/deploy");
99
97
  yok_1.injector.requireCommand("embed", "./commands/embedding/embed");
100
98
  yok_1.injector.require("testExecutionService", "./services/test-execution-service");
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BuildMacOSCommand = exports.BuildVisionOsCommand = exports.BuildAndroidCommand = exports.BuildIosCommand = exports.BuildCommandBase = void 0;
3
+ exports.BuildVisionOsCommand = exports.BuildAndroidCommand = exports.BuildIosCommand = exports.BuildCommandBase = void 0;
4
4
  const constants_1 = require("../constants");
5
5
  const command_base_1 = require("./command-base");
6
6
  const helpers_1 = require("../common/helpers");
@@ -143,33 +143,4 @@ class BuildVisionOsCommand extends BuildIosCommand {
143
143
  exports.BuildVisionOsCommand = BuildVisionOsCommand;
144
144
  yok_1.injector.registerCommand("build|vision", BuildVisionOsCommand);
145
145
  yok_1.injector.registerCommand("build|visionos", BuildVisionOsCommand);
146
- class BuildMacOSCommand extends BuildIosCommand {
147
- constructor($options, $errors, $projectData, $platformsDataService, $devicePlatformsConstants, $buildController, $platformValidationService, $logger, $buildDataService, $migrateController) {
148
- super($options, $errors, $projectData, $platformsDataService, $devicePlatformsConstants, $buildController, $platformValidationService, $logger, $buildDataService, $migrateController);
149
- this.$options = $options;
150
- this.$migrateController = $migrateController;
151
- }
152
- async execute(args) {
153
- await this.executeCore([
154
- this.$devicePlatformsConstants.macOS.toLowerCase(),
155
- ]);
156
- }
157
- async canExecute(args) {
158
- const platform = this.$devicePlatformsConstants.macOS;
159
- if (!this.$options.force) {
160
- await this.$migrateController.validate({
161
- projectDir: this.$projectData.projectDir,
162
- platforms: [platform],
163
- });
164
- }
165
- super.validatePlatform(platform);
166
- let canExecute = await super.canExecuteCommandBase(platform);
167
- if (canExecute) {
168
- canExecute = await super.validateArgs(args, platform);
169
- }
170
- return canExecute;
171
- }
172
- }
173
- exports.BuildMacOSCommand = BuildMacOSCommand;
174
- yok_1.injector.registerCommand("build|macos", BuildMacOSCommand);
175
146
  //# sourceMappingURL=build.js.map
@@ -22,6 +22,11 @@ class PrepareCommand extends command_base_1.ValidatePlatformCommandBase {
22
22
  hasSensitiveValue: false,
23
23
  },
24
24
  hmr: { type: "boolean" /* OptionType.Boolean */, default: false, hasSensitiveValue: false },
25
+ skipNative: {
26
+ type: "boolean" /* OptionType.Boolean */,
27
+ default: false,
28
+ hasSensitiveValue: false,
29
+ },
25
30
  whatever: {
26
31
  type: "boolean" /* OptionType.Boolean */,
27
32
  default: false,
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.RunMacOSCommand = exports.RunVisionOSCommand = exports.RunAndroidCommand = exports.RunIosCommand = exports.RunCommandBase = void 0;
9
+ exports.RunVisionOSCommand = exports.RunAndroidCommand = exports.RunIosCommand = exports.RunCommandBase = void 0;
10
10
  const constants_1 = require("../common/constants");
11
11
  const decorators_1 = require("../common/decorators");
12
12
  const helpers_1 = require("../common/helpers");
@@ -154,42 +154,4 @@ class RunVisionOSCommand extends RunIosCommand {
154
154
  exports.RunVisionOSCommand = RunVisionOSCommand;
155
155
  yok_1.injector.registerCommand("run|vision", RunVisionOSCommand);
156
156
  yok_1.injector.registerCommand("run|visionos", RunVisionOSCommand);
157
- class RunMacOSCommand {
158
- get platform() {
159
- return this.$devicePlatformsConstants.macOS || "macOS";
160
- }
161
- constructor($buildController, $buildDataService, $devicePlatformsConstants, $errors, $migrateController, $opener, $options, $platformValidationService, $projectDataService) {
162
- this.$buildController = $buildController;
163
- this.$buildDataService = $buildDataService;
164
- this.$devicePlatformsConstants = $devicePlatformsConstants;
165
- this.$errors = $errors;
166
- this.$migrateController = $migrateController;
167
- this.$opener = $opener;
168
- this.$options = $options;
169
- this.$platformValidationService = $platformValidationService;
170
- this.$projectDataService = $projectDataService;
171
- this.allowedParameters = [];
172
- }
173
- async execute(args) {
174
- const projectData = this.$projectDataService.getProjectData();
175
- const buildData = this.$buildDataService.getBuildData(projectData.projectDir, this.platform.toLowerCase(), this.$options);
176
- const outputPath = await this.$buildController.prepareAndBuild(buildData);
177
- await this.$opener.open(outputPath, projectData.projectName);
178
- }
179
- async canExecute(args) {
180
- const projectData = this.$projectDataService.getProjectData();
181
- if (!this.$platformValidationService.isPlatformSupportedForOS(this.platform, projectData)) {
182
- this.$errors.fail(`Applications for platform ${this.platform} can not be built on this OS`);
183
- }
184
- if (!this.$options.force) {
185
- await this.$migrateController.validate({
186
- projectDir: projectData.projectDir,
187
- platforms: [this.platform],
188
- });
189
- }
190
- return this.$platformValidationService.validateOptions(this.$options.provision, this.$options.teamId, projectData, this.platform.toLowerCase());
191
- }
192
- }
193
- exports.RunMacOSCommand = RunMacOSCommand;
194
- yok_1.injector.registerCommand("run|macos", RunMacOSCommand);
195
157
  //# sourceMappingURL=run.js.map
@@ -172,8 +172,7 @@ public struct ${(0, utils_1.capitalizeFirstLetter)(name)}Model: ActivityAttribut
172
172
  }
173
173
  }
174
174
  configData.ios.SPMPackages = spmPackages;
175
- await this.$projectConfigService.setValue("", // root
176
- configData);
175
+ await this.$projectConfigService.setValue("ios.SPMPackages", spmPackages);
177
176
  if (fs.existsSync(gitIgnorePath)) {
178
177
  const gitIgnore = fs.readFileSync(gitIgnorePath, {
179
178
  encoding: "utf-8",
@@ -258,8 +258,7 @@ declare global {
258
258
  * Describes different options for filtering device logs.
259
259
  */
260
260
  interface IDeviceLogOptions
261
- extends IDictionary<string | boolean>,
262
- Partial<IProjectDir> {
261
+ extends IDictionary<string | boolean>, Partial<IProjectDir> {
263
262
  /**
264
263
  * Process id of the application on the device.
265
264
  */
@@ -284,8 +283,7 @@ declare global {
284
283
  * Describes required methods for getting iOS Simulator's logs.
285
284
  */
286
285
  interface IiOSSimulatorLogProvider
287
- extends NodeJS.EventEmitter,
288
- IShouldDispose {
286
+ extends NodeJS.EventEmitter, IShouldDispose {
289
287
  /**
290
288
  * Starts the process for getting simulator logs and emits and DEVICE_LOG_EVENT_NAME event.
291
289
  * @param {string} deviceId The unique identifier of the device.
@@ -429,6 +427,16 @@ declare global {
429
427
 
430
428
  interface IDeviceFileSystem {
431
429
  listFiles(devicePath: string, appIdentifier?: string): Promise<any>;
430
+ /**
431
+ * Returns the entries of a directory inside the application's
432
+ * sandbox, or null when the directory cannot be read. Currently
433
+ * implemented only for physical iOS devices (AFC), where it backs
434
+ * the post-transfer livesync verification.
435
+ */
436
+ getDirectoryEntries?(
437
+ devicePath: string,
438
+ appIdentifier: string,
439
+ ): Promise<string[] | null>;
432
440
  getFile(
433
441
  deviceFilePath: string,
434
442
  appIdentifier: string,
@@ -533,8 +541,7 @@ declare global {
533
541
  /**
534
542
  * Describes options that can be passed to devices service's initialization method.
535
543
  */
536
- interface IDevicesServicesInitializationOptions
537
- extends Partial<IDeviceLookingOptions> {
544
+ interface IDevicesServicesInitializationOptions extends Partial<IDeviceLookingOptions> {
538
545
  /**
539
546
  * If passed will start an emulator if necesasry.
540
547
  */
@@ -1197,7 +1204,6 @@ declare global {
1197
1204
  isAndroidPlatform(platform: string): boolean;
1198
1205
  isiOSPlatform(platform: string): boolean;
1199
1206
  isvisionOSPlatform(platform: string): boolean;
1200
- ismacOSPlatform?(platform: string): boolean;
1201
1207
  isApplePlatform(platform: string): boolean;
1202
1208
  normalizePlatformName(platform: string): string;
1203
1209
  validatePlatformName(platform: string): string;
@@ -1242,12 +1248,10 @@ declare global {
1242
1248
  iOS: string;
1243
1249
  Android: string;
1244
1250
  visionOS: string;
1245
- macOS?: string;
1246
1251
 
1247
1252
  isiOS(value: string): boolean;
1248
1253
  isAndroid(value: string): boolean;
1249
1254
  isvisionOS(value: string): boolean;
1250
- ismacOS?(value: string): boolean;
1251
1255
  }
1252
1256
 
1253
1257
  interface IDeviceApplication {
@@ -1264,8 +1268,7 @@ declare global {
1264
1268
  }
1265
1269
 
1266
1270
  interface IDeviceLookingOptions
1267
- extends IHasEmulatorOption,
1268
- IHasDetectionInterval {
1271
+ extends IHasEmulatorOption, IHasDetectionInterval {
1269
1272
  shouldReturnImmediateResult: boolean;
1270
1273
  platform: string;
1271
1274
  fullDiscovery?: boolean;
@@ -1391,8 +1394,7 @@ declare global {
1391
1394
  /**
1392
1395
  * Describes information about application on device.
1393
1396
  */
1394
- interface IDeviceApplicationInformation
1395
- extends IDeviceApplicationInformationBase {
1397
+ interface IDeviceApplicationInformation extends IDeviceApplicationInformationBase {
1396
1398
  /**
1397
1399
  * The framework of the project (Cordova or NativeScript).
1398
1400
  */
@@ -19,7 +19,7 @@ const helpers_1 = require("./helpers");
19
19
  const constants_1 = require("../constants");
20
20
  const os_1 = require("os");
21
21
  const detectNewline = require("detect-newline");
22
- const archiver_1 = require("archiver");
22
+ const yazl = require("yazl");
23
23
  // TODO: Add .d.ts for mkdirp module (or use it from @types repo).
24
24
  const mkdirp = require("mkdirp");
25
25
  let FileSystem = FileSystem_1 = class FileSystem {
@@ -29,26 +29,22 @@ let FileSystem = FileSystem_1 = class FileSystem {
29
29
  async zipFiles(zipFile, files, zipPathCallback) {
30
30
  //we are resolving it here instead of in the constructor, because config has dependency on file system and config shouldn't require logger
31
31
  const $logger = this.$injector.resolve("logger");
32
- const zip = (0, archiver_1.create)("zip", {
33
- zlib: {
34
- level: 9,
35
- },
36
- });
32
+ const zip = new yazl.ZipFile();
37
33
  const outFile = fs.createWriteStream(zipFile);
38
- zip.pipe(outFile);
34
+ for (const file of files) {
35
+ let relativePath = zipPathCallback(file);
36
+ relativePath = relativePath.replace(/\\/g, "/");
37
+ $logger.trace("zipping as '%s' file '%s'", relativePath, file);
38
+ zip.addFile(file, relativePath, { compress: true });
39
+ }
40
+ zip.end();
39
41
  return new Promise((resolve, reject) => {
40
42
  outFile.on("error", (err) => reject(err));
43
+ zip.outputStream.on("error", (err) => reject(err));
44
+ zip.outputStream.pipe(outFile);
41
45
  outFile.on("close", () => {
42
- $logger.trace("zip: %d bytes written", zip.pointer());
43
46
  resolve();
44
47
  });
45
- for (const file of files) {
46
- let relativePath = zipPathCallback(file);
47
- relativePath = relativePath.replace(/\\/g, "/");
48
- $logger.trace("zipping as '%s' file '%s'", relativePath, file);
49
- zip.append(fs.createReadStream(file), { name: relativePath });
50
- }
51
- zip.finalize();
52
48
  });
53
49
  }
54
50
  utimes(path, atime, mtime) {
@@ -9,7 +9,7 @@ const constants_2 = require("../../../constants");
9
9
  const yok_1 = require("../../yok");
10
10
  const semver = require("semver");
11
11
  class AndroidEmulatorServices {
12
- constructor($androidGenymotionService, $androidVirtualDeviceService, $adb, $childProcess, $emulatorHelper, $logger, $utils) {
12
+ constructor($androidGenymotionService, $androidVirtualDeviceService, $adb, $childProcess, $emulatorHelper, $logger, $utils, $userSettingsService) {
13
13
  this.$androidGenymotionService = $androidGenymotionService;
14
14
  this.$androidVirtualDeviceService = $androidVirtualDeviceService;
15
15
  this.$adb = $adb;
@@ -17,6 +17,7 @@ class AndroidEmulatorServices {
17
17
  this.$emulatorHelper = $emulatorHelper;
18
18
  this.$logger = $logger;
19
19
  this.$utils = $utils;
20
+ this.$userSettingsService = $userSettingsService;
20
21
  }
21
22
  async getEmulatorImages() {
22
23
  const adbDevicesOutput = await this.$adb.getDevicesSafe();
@@ -90,7 +91,7 @@ class AndroidEmulatorServices {
90
91
  endTimeEpoch,
91
92
  };
92
93
  }
93
- this.spawnEmulator(emulator);
94
+ await this.spawnEmulator(emulator);
94
95
  const isInfiniteWait = this.$utils.getMilliSecondsTimeout(timeout) === 0;
95
96
  let hasTimeLeft = (0, helpers_1.getCurrentEpochTime)() < endTimeEpoch;
96
97
  while (hasTimeLeft || isInfiniteWait) {
@@ -114,13 +115,20 @@ class AndroidEmulatorServices {
114
115
  };
115
116
  }
116
117
  }
117
- spawnEmulator(emulator) {
118
+ async spawnEmulator(emulator) {
118
119
  let pathToEmulatorExecutable = null;
119
120
  let startEmulatorArgs = null;
120
121
  if (emulator.vendor === constants_1.AndroidVirtualDevice.AVD_VENDOR_NAME) {
121
122
  pathToEmulatorExecutable =
122
123
  this.$androidVirtualDeviceService.pathToEmulatorExecutable;
123
124
  startEmulatorArgs = this.$androidVirtualDeviceService.startEmulatorArgs(emulator.imageIdentifier);
125
+ try {
126
+ const additionalArgs = await this.$userSettingsService.getSettingValue("androidEmulatorStartArgs");
127
+ if (additionalArgs === null || additionalArgs === void 0 ? void 0 : additionalArgs.length) {
128
+ startEmulatorArgs.push(...additionalArgs);
129
+ }
130
+ }
131
+ catch (error) { }
124
132
  }
125
133
  else if (emulator.vendor === constants_1.AndroidVirtualDevice.GENYMOTION_VENDOR_NAME) {
126
134
  pathToEmulatorExecutable =
@@ -7,7 +7,6 @@ class DevicePlatformsConstants {
7
7
  this.iOS = "iOS";
8
8
  this.Android = "Android";
9
9
  this.visionOS = "visionOS";
10
- this.macOS = "macOS";
11
10
  }
12
11
  isiOS(value) {
13
12
  return value.toLowerCase() === this.iOS.toLowerCase();
@@ -18,9 +17,6 @@ class DevicePlatformsConstants {
18
17
  isvisionOS(value) {
19
18
  return value.toLowerCase() === this.visionOS.toLowerCase();
20
19
  }
21
- ismacOS(value) {
22
- return value.toLowerCase() === this.macOS.toLowerCase();
23
- }
24
20
  }
25
21
  exports.DevicePlatformsConstants = DevicePlatformsConstants;
26
22
  yok_1.injector.register("devicePlatformsConstants", DevicePlatformsConstants);
@@ -9,6 +9,7 @@ class EmulatorHelper {
9
9
  // https://developer.android.com/guide/topics/manifest/uses-sdk-element
10
10
  this.mapAndroidApiLevelToVersion = {
11
11
  "android-36": "16.0.0",
12
+ "android-36.1": "16.0.0",
12
13
  "android-35": "15.0.0",
13
14
  "android-34": "14.0.0",
14
15
  "android-33": "13.0.0",
@@ -23,6 +23,24 @@ class IOSDeviceFileSystem {
23
23
  children = result[deviceIdentifier][0].response;
24
24
  this.$logger.info(children.join(os_1.EOL));
25
25
  }
26
+ async getDirectoryEntries(devicePath, appIdentifier) {
27
+ var _a, _b;
28
+ try {
29
+ const result = await this.$iosDeviceOperations.listDirectory([
30
+ {
31
+ deviceId: this.device.deviceInfo.identifier,
32
+ path: devicePath,
33
+ appId: appIdentifier,
34
+ },
35
+ ]);
36
+ const entries = (_b = (_a = result === null || result === void 0 ? void 0 : result[this.device.deviceInfo.identifier]) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.response;
37
+ return Array.isArray(entries) ? entries : null;
38
+ }
39
+ catch (err) {
40
+ this.$logger.trace(`Unable to list directory '${devicePath}' for application ${appIdentifier}: ${err.message}`);
41
+ return null;
42
+ }
43
+ }
26
44
  async getFile(deviceFilePath, appIdentifier, outputFilePath) {
27
45
  if (outputFilePath) {
28
46
  await this.$iosDeviceOperations.downloadFiles([
@@ -96,9 +114,19 @@ class IOSDeviceFileSystem {
96
114
  }
97
115
  async uploadFilesCore(filesToUpload) {
98
116
  await this.$iosDeviceOperations.uploadFiles(filesToUpload, (err) => {
99
- if (err.deviceId === this.device.deviceInfo.identifier) {
117
+ // Previously an error whose deviceId did not exactly match was
118
+ // dropped on the floor — including errors with NO deviceId at
119
+ // all (some ios-device-lib error paths don't attribute one).
120
+ // That left "Successfully synced" printed over a failed
121
+ // transfer and the app silently running stale JavaScript.
122
+ // Rethrow unless the error is positively attributed to a
123
+ // DIFFERENT device; surface even those at warn level so a
124
+ // failed upload is never invisible.
125
+ if (!err.deviceId ||
126
+ err.deviceId === this.device.deviceInfo.identifier) {
100
127
  throw err;
101
128
  }
129
+ this.$logger.warn(`File upload error reported for another device (${err.deviceId}): ${err.message}`);
102
130
  });
103
131
  }
104
132
  }
@@ -17,7 +17,6 @@ class MobileHelper {
17
17
  this.$devicePlatformsConstants.iOS,
18
18
  this.$devicePlatformsConstants.Android,
19
19
  this.$devicePlatformsConstants.visionOS,
20
- this.$devicePlatformsConstants.macOS || "macOS",
21
20
  ];
22
21
  }
23
22
  isAndroidPlatform(platform) {
@@ -35,15 +34,8 @@ class MobileHelper {
35
34
  this.$devicePlatformsConstants.visionOS.toLowerCase() ===
36
35
  platform.toLowerCase());
37
36
  }
38
- ismacOSPlatform(platform) {
39
- const macOSPlatformName = this.$devicePlatformsConstants.macOS || "macOS";
40
- return !!(platform &&
41
- macOSPlatformName.toLowerCase() === platform.toLowerCase());
42
- }
43
37
  isApplePlatform(platform) {
44
- return (this.isiOSPlatform(platform) ||
45
- this.isvisionOSPlatform(platform) ||
46
- this.ismacOSPlatform(platform));
38
+ return this.isiOSPlatform(platform) || this.isvisionOSPlatform(platform);
47
39
  }
48
40
  normalizePlatformName(platform) {
49
41
  if (this.isAndroidPlatform(platform)) {
@@ -55,9 +47,6 @@ class MobileHelper {
55
47
  else if (this.isvisionOSPlatform(platform)) {
56
48
  return "visionOS";
57
49
  }
58
- else if (this.ismacOSPlatform(platform)) {
59
- return "macOS";
60
- }
61
50
  return undefined;
62
51
  }
63
52
  validatePlatformName(platform) {
package/lib/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.INCLUDE_GRADLE_NAME = exports.INFO_PLIST_FILE_NAME = exports.APP_GRADLE_FILE_NAME = exports.MANIFEST_FILE_NAME = exports.ANDROID_ANALYTICS_DATA_FILE = exports.ANDROID_ANALYTICS_DATA_DIR = exports.FONTS_DIR = exports.ASSETS_DIR = exports.MAIN_DIR = exports.SRC_DIR = exports.AWAIT_NOTIFICATION_TIMEOUT_SECONDS = exports.CODE_SIGN_ENTITLEMENTS = exports.LIB_DIR_NAME = exports.KARMA_CONFIG_NAME = exports.TSCCONFIG_TNS_JSON_NAME = exports.RSPACK_CONFIG_NAME = exports.WEBPACK_CONFIG_NAME = exports.HOOKS_DIR_NAME = exports.PLATFORMS_DIR_NAME = exports.XML_FILE_EXTENSION = exports.LIVESYNC_EXCLUDED_FILE_PATTERNS = exports.TEST_RUNNER_NAME = exports.TESTING_FRAMEWORKS = exports.LIVESYNC_EXCLUDED_DIRECTORIES = exports.DEFAULT_APP_IDENTIFIER_PREFIX = exports.NODE_MODULE_CACHE_PATH_KEY_NAME = exports.ANDROID_DEVICE_APP_ROOT_TEMPLATE = exports.PACKAGE_LOCK_JSON_FILE_NAME = exports.PACKAGE_JSON_FILE_NAME = exports.SCOPED_MACOS_RUNTIME_NAME = exports.SCOPED_VISIONOS_RUNTIME_NAME = exports.SCOPED_IOS_RUNTIME_NAME = exports.SCOPED_ANDROID_RUNTIME_NAME = exports.TNS_IOS_RUNTIME_NAME = exports.TNS_ANDROID_RUNTIME_NAME = exports.UI_MOBILE_BASE_NAME = exports.TNS_CORE_MODULES_WIDGETS_NAME = exports.RSPACK_PLUGIN_NAME = exports.WEBPACK_PLUGIN_NAME = exports.SCOPED_TNS_CORE_THEME_NAME = exports.TNS_CORE_THEME_NAME = exports.SCOPED_TNS_CORE_MODULES = exports.TNS_CORE_MODULES_NAME = exports.TNS_MODULES_FOLDER_NAME = exports.NODE_MODULES_FOLDER_NAME = exports.NATIVESCRIPT_KEY_NAME = exports.NS_BASE_PODFILE = exports.PROJECT_FRAMEWORK_FOLDER_NAME = exports.APP_RESOURCES_FOLDER_NAME = exports.APP_FOLDER_NAME = void 0;
3
+ exports.INCLUDE_GRADLE_NAME = exports.INFO_PLIST_FILE_NAME = exports.APP_GRADLE_FILE_NAME = exports.MANIFEST_FILE_NAME = exports.ANDROID_ANALYTICS_DATA_FILE = exports.ANDROID_ANALYTICS_DATA_DIR = exports.FONTS_DIR = exports.ASSETS_DIR = exports.MAIN_DIR = exports.SRC_DIR = exports.AWAIT_NOTIFICATION_TIMEOUT_SECONDS = exports.CODE_SIGN_ENTITLEMENTS = exports.LIB_DIR_NAME = exports.KARMA_CONFIG_NAME = exports.TSCCONFIG_TNS_JSON_NAME = exports.RSPACK_CONFIG_NAME = exports.WEBPACK_CONFIG_NAME = exports.HOOKS_DIR_NAME = exports.PLATFORMS_DIR_NAME = exports.XML_FILE_EXTENSION = exports.LIVESYNC_EXCLUDED_FILE_PATTERNS = exports.TEST_RUNNER_NAME = exports.TESTING_FRAMEWORKS = exports.LIVESYNC_EXCLUDED_DIRECTORIES = exports.DEFAULT_APP_IDENTIFIER_PREFIX = exports.NODE_MODULE_CACHE_PATH_KEY_NAME = exports.ANDROID_DEVICE_APP_ROOT_TEMPLATE = exports.PACKAGE_LOCK_JSON_FILE_NAME = exports.PACKAGE_JSON_FILE_NAME = exports.SCOPED_VISIONOS_RUNTIME_NAME = exports.SCOPED_IOS_RUNTIME_NAME = exports.SCOPED_ANDROID_RUNTIME_NAME = exports.TNS_IOS_RUNTIME_NAME = exports.TNS_ANDROID_RUNTIME_NAME = exports.UI_MOBILE_BASE_NAME = exports.TNS_CORE_MODULES_WIDGETS_NAME = exports.VITE_DIST_FOLDER_NAME = exports.RSPACK_PLUGIN_NAME = exports.WEBPACK_PLUGIN_NAME = exports.SCOPED_TNS_CORE_THEME_NAME = exports.TNS_CORE_THEME_NAME = exports.SCOPED_TNS_CORE_MODULES = exports.TNS_CORE_MODULES_NAME = exports.TNS_MODULES_FOLDER_NAME = exports.NODE_MODULES_FOLDER_NAME = exports.NATIVESCRIPT_KEY_NAME = exports.NS_BASE_PODFILE = exports.PROJECT_FRAMEWORK_FOLDER_NAME = exports.APP_RESOURCES_FOLDER_NAME = exports.APP_FOLDER_NAME = void 0;
4
4
  exports.JsFlavorName = exports.TsFlavorName = exports.SvelteFlavorName = exports.SolidFlavorName = exports.ReactFlavorName = exports.VueFlavorName = exports.NgFlavorName = exports.SVELTE_NAME = exports.SOLID_NAME = exports.REACT_NAME = exports.TYPESCRIPT_NAME = exports.JAVASCRIPT_NAME = exports.ANGULAR_NAME = exports.VUE_NAME = exports.ItunesConnectApplicationTypes = exports.androidAppResourcesFolderName = exports.iOSAppResourcesFolderName = exports.ITMSConstants = exports.ANALYTICS_LOCAL_TEMPLATE_PREFIX = exports.RESERVED_TEMPLATE_NAMES = exports.ReleaseType = exports.SaveOptions = exports.TemplatesV2PackageJsonKeysToRemove = exports.PackageJsonKeysToKeep = exports.LiveSyncTrackActionNames = exports.PackageVersion = exports.MetadataFilteringConstants = exports.IOS_WATCHAPP_EXTENSION_FOLDER = exports.IOS_WATCHAPP_FOLDER = exports.NATIVE_EXTENSION_FOLDER = exports.APPLICATION_RESPONSE_TIMEOUT_SECONDS = exports.NATIVE_SOURCE_FOLDER = exports.TNS_NATIVE_SOURCE_GROUP_NAME = exports.HASHES_FILE_NAME = exports.APKS_EXTENSION_NAME = exports.AAB_EXTENSION_NAME = exports.APK_EXTENSION_NAME = exports.DEPENDENCIES_JSON_NAME = exports.CONFIG_FILE_NAME_TS = exports.CONFIG_FILE_NAME_JS = exports.CONFIG_FILE_NAME_DISPLAY = exports.CONFIG_NS_APP_ENTRY = exports.CONFIG_NS_APP_RESOURCES_ENTRY = exports.CONFIG_NS_FILE_NAME = exports.RESOURCES_DIR = exports.BUNDLE_DIR = exports.APK_DIR = exports.OUTPUTS_DIR = exports.BUILD_DIR = exports.BUILD_XCCONFIG_FILE_NAME = void 0;
5
5
  exports.PackageManagers = exports.EMIT_APPENDER_EVENT_NAME = exports.LoggerConfigData = exports.LoggerLevel = exports.DeviceConnectionType = exports.LoggerAppenders = exports.IOSNativeTargetTypes = exports.IOSNativeTargetProductTypes = exports.IOSDeviceTargets = exports.RunOnDeviceEvents = exports.AndroidAppBundleMessages = exports.AndroidBundleValidatorMessages = exports.BundleValidatorMessages = exports.IosProjectConstants = exports.EXTENSION_PROVISIONING_FILENAME = exports.PODFILE_NAME = exports.PLUGINS_BUILD_DATA_FILENAME = exports.PLUGIN_BUILD_DATA_FILENAME = exports.AddPlaformErrors = exports.PACKAGE_PLACEHOLDER_NAME = exports.AndroidBuildDefaults = exports.Hooks = exports.XcodeDeprecationStringFormat = exports.MacOSDeprecationStringFormat = exports.MacOSVersions = exports.AssetConstants = exports.CLI_RESOURCES_DIR_NAME = exports.NATIVESCRIPT_PROPS_INTERNAL_DELIMITER = exports.AnalyticsEventLabelDelimiter = exports.DebugCommandErrors = exports.BUNDLER_COMPILATION_COMPLETE = exports.PREPARE_READY_EVENT_NAME = exports.INITIAL_SYNC_EVENT_NAME = exports.FILES_CHANGE_EVENT_NAME = exports.CACACHE_DIRECTORY_NAME = exports.ANDROID_APP_BUNDLE_SIGNING_ERROR_MESSAGE = exports.ANDROID_RELEASE_BUILD_ERROR_MESSAGE = exports.POST_INSTALL_COMMAND_NAME = exports.INSPECTOR_CACHE_DIRNAME = exports.VERSION_STRING = exports.DEBUGGER_DETACHED_EVENT_NAME = exports.DEBUGGER_ATTACHED_EVENT_NAME = exports.USER_INTERACTION_NEEDED_EVENT_NAME = exports.CONNECTION_ERROR_EVENT_NAME = exports.BUILD_OUTPUT_EVENT_NAME = exports.ProjectTypes = void 0;
6
6
  const path_1 = require("path");
@@ -17,6 +17,11 @@ exports.TNS_CORE_THEME_NAME = "nativescript-theme-core";
17
17
  exports.SCOPED_TNS_CORE_THEME_NAME = "@nativescript/theme";
18
18
  exports.WEBPACK_PLUGIN_NAME = "@nativescript/webpack";
19
19
  exports.RSPACK_PLUGIN_NAME = "@nativescript/rspack";
20
+ // Project-relative directory the Vite bundler writes its build output to
21
+ // before the CLI copies it into the platforms app folder. Mirrors the
22
+ // default value computed in `@nativescript/vite`'s base configuration
23
+ // (`process.env.NS_VITE_DIST_DIR || '.ns-vite-build'`).
24
+ exports.VITE_DIST_FOLDER_NAME = ".ns-vite-build";
20
25
  exports.TNS_CORE_MODULES_WIDGETS_NAME = "tns-core-modules-widgets";
21
26
  exports.UI_MOBILE_BASE_NAME = "@nativescript/ui-mobile-base";
22
27
  exports.TNS_ANDROID_RUNTIME_NAME = "tns-android";
@@ -24,7 +29,6 @@ exports.TNS_IOS_RUNTIME_NAME = "tns-ios";
24
29
  exports.SCOPED_ANDROID_RUNTIME_NAME = "@nativescript/android";
25
30
  exports.SCOPED_IOS_RUNTIME_NAME = "@nativescript/ios";
26
31
  exports.SCOPED_VISIONOS_RUNTIME_NAME = "@nativescript/visionos";
27
- exports.SCOPED_MACOS_RUNTIME_NAME = "@nativescript/macos";
28
32
  exports.PACKAGE_JSON_FILE_NAME = "package.json";
29
33
  exports.PACKAGE_LOCK_JSON_FILE_NAME = "package-lock.json";
30
34
  exports.ANDROID_DEVICE_APP_ROOT_TEMPLATE = `/data/data/%s/files`;
@@ -325,6 +329,7 @@ var IOSNativeTargetTypes;
325
329
  IOSNativeTargetTypes["watchApp"] = "watch_app";
326
330
  IOSNativeTargetTypes["watchExtension"] = "watch_extension";
327
331
  IOSNativeTargetTypes["appExtension"] = "app_extension";
332
+ IOSNativeTargetTypes["application"] = "application";
328
333
  })(IOSNativeTargetTypes || (exports.IOSNativeTargetTypes = IOSNativeTargetTypes = {}));
329
334
  const pathToLoggerAppendersDir = (0, path_1.join)(__dirname, "common", "logger", "appenders");
330
335
  exports.LoggerAppenders = {