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
@@ -31,7 +31,7 @@ interface INodePackageManager {
31
31
  install(
32
32
  packageName: string,
33
33
  pathToSave: string,
34
- config: INodePackageManagerInstallOptions
34
+ config: INodePackageManagerInstallOptions,
35
35
  ): Promise<INpmInstallResultInfo>;
36
36
 
37
37
  /**
@@ -44,7 +44,7 @@ interface INodePackageManager {
44
44
  uninstall(
45
45
  packageName: string,
46
46
  config?: IDictionary<string | boolean>,
47
- path?: string
47
+ path?: string,
48
48
  ): Promise<string>;
49
49
 
50
50
  /**
@@ -84,7 +84,7 @@ interface INodePackageManager {
84
84
  */
85
85
  search(
86
86
  filter: string[],
87
- config: IDictionary<string | boolean>
87
+ config: IDictionary<string | boolean>,
88
88
  ): Promise<string>;
89
89
 
90
90
  /**
@@ -130,7 +130,7 @@ interface IPerformanceService {
130
130
  methodInfo: string,
131
131
  startTime: number,
132
132
  endTime: number,
133
- args: any[]
133
+ args: any[],
134
134
  ): void;
135
135
 
136
136
  // Will return a reference time in milliseconds
@@ -141,39 +141,39 @@ interface IPackageInstallationManager {
141
141
  install(
142
142
  packageName: string,
143
143
  packageDir: string,
144
- options?: INpmInstallOptions
144
+ options?: INpmInstallOptions,
145
145
  ): Promise<any>;
146
146
  uninstall(
147
147
  packageName: string,
148
148
  packageDir: string,
149
- options?: IDictionary<string | boolean>
149
+ options?: IDictionary<string | boolean>,
150
150
  ): Promise<any>;
151
151
  getLatestVersion(packageName: string): Promise<string>;
152
152
  getNextVersion(packageName: string): Promise<string>;
153
153
  getLatestCompatibleVersion(
154
154
  packageName: string,
155
- referenceVersion?: string
155
+ referenceVersion?: string,
156
156
  ): Promise<string>;
157
157
  getMaxSatisfyingVersion(
158
158
  packageName: string,
159
- versionRange: string
159
+ versionRange: string,
160
160
  ): Promise<string>;
161
161
  getLatestCompatibleVersionSafe(
162
162
  packageName: string,
163
- referenceVersion?: string
163
+ referenceVersion?: string,
164
164
  ): Promise<string>;
165
165
  getInspectorFromCache(
166
166
  inspectorNpmPackageName: string,
167
- projectDir: string
167
+ projectDir: string,
168
168
  ): Promise<string>;
169
169
  clearInspectorCache(): void;
170
170
  getInstalledDependencyVersion(
171
171
  packageName: string,
172
- projectDir?: string
172
+ projectDir?: string,
173
173
  ): Promise<string>;
174
174
  getMaxSatisfyingVersionSafe(
175
175
  packageName: string,
176
- versionIdentifier: string
176
+ versionIdentifier: string,
177
177
  ): Promise<string>;
178
178
  }
179
179
 
@@ -181,8 +181,7 @@ interface IPackageInstallationManager {
181
181
  * Describes options that can be passed to manipulate package installation.
182
182
  */
183
183
  interface INodePackageManagerInstallOptions
184
- extends INpmInstallConfigurationOptions,
185
- IDictionary<string | boolean> {
184
+ extends INpmInstallConfigurationOptions, IDictionary<string | boolean> {
186
185
  /**
187
186
  * Destination of the installation.
188
187
  * @type {string}
@@ -266,7 +265,7 @@ interface INpmPeerDependencyInfo {
266
265
  * @type {string}
267
266
  */
268
267
  requires: string;
269
- }
268
+ },
270
269
  ];
271
270
  /**
272
271
  * Dependencies of the dependency.
@@ -550,8 +549,7 @@ interface INpmInstallConfigurationOptionsBase {
550
549
  ignoreScripts: boolean; //npm flag
551
550
  }
552
551
 
553
- interface INpmInstallConfigurationOptions
554
- extends INpmInstallConfigurationOptionsBase {
552
+ interface INpmInstallConfigurationOptions extends INpmInstallConfigurationOptionsBase {
555
553
  disableNpmInstall: boolean;
556
554
  }
557
555
 
@@ -597,7 +595,8 @@ interface ITypingsOptions {
597
595
  }
598
596
 
599
597
  interface IOptions
600
- extends IRelease,
598
+ extends
599
+ IRelease,
601
600
  IDeviceIdentifier,
602
601
  IJustLaunch,
603
602
  IAvd,
@@ -622,7 +621,7 @@ interface IOptions
622
621
  argv: IYargArgv;
623
622
  validateOptions(
624
623
  commandSpecificDashedOptions?: IDictionary<IDashedOption>,
625
- projectData?: IProjectData
624
+ projectData?: IProjectData,
626
625
  ): void;
627
626
  options: IDictionary<IDashedOption>;
628
627
  shorthands: string[];
@@ -709,6 +708,7 @@ interface IOptions
709
708
  dryRun: boolean;
710
709
 
711
710
  platformOverride: string;
711
+ skipNative: boolean;
712
712
  uniqueBundle: boolean;
713
713
  // allow arbitrary options
714
714
  [optionName: string]: any;
@@ -719,26 +719,22 @@ interface IEnvOptions {
719
719
  }
720
720
 
721
721
  interface IAndroidBuildOptionsSettings
722
- extends IAndroidReleaseOptions,
723
- IRelease,
724
- Partial<IHasAndroidBundle> {}
722
+ extends IAndroidReleaseOptions, IRelease, Partial<IHasAndroidBundle> {}
725
723
 
726
724
  interface IHasAndroidBundle {
727
725
  androidBundle: boolean;
728
726
  }
729
727
 
730
728
  interface IPlatformBuildData
731
- extends IRelease,
732
- IHasUseHotModuleReloadOption,
733
- IBuildConfig,
734
- IEnvOptions {}
729
+ extends IRelease, IHasUseHotModuleReloadOption, IBuildConfig, IEnvOptions {}
735
730
 
736
731
  interface IDeviceEmulator extends IHasEmulatorOption, IDeviceIdentifier {}
737
732
 
738
733
  interface IRunPlatformOptions extends IJustLaunch, IDeviceEmulator {}
739
734
 
740
735
  interface IDeployPlatformOptions
741
- extends IAndroidReleaseOptions,
736
+ extends
737
+ IAndroidReleaseOptions,
742
738
  IRelease,
743
739
  IClean,
744
740
  IDeviceEmulator,
@@ -834,7 +830,7 @@ interface IAndroidToolsInfo {
834
830
  */
835
831
  validateJavacVersion(
836
832
  installedJavaVersion: string,
837
- options?: IAndroidToolsInfoOptions
833
+ options?: IAndroidToolsInfoOptions,
838
834
  ): boolean;
839
835
 
840
836
  /**
@@ -913,14 +909,14 @@ interface IAppDebugSocketProxyFactory extends NodeJS.EventEmitter {
913
909
  device: Mobile.IiOSDevice,
914
910
  appId: string,
915
911
  projectName: string,
916
- projectDir: string
912
+ projectDir: string,
917
913
  ): Promise<any>;
918
914
 
919
915
  ensureWebSocketProxy(
920
916
  device: Mobile.IiOSDevice,
921
917
  appId: string,
922
918
  projectName: string,
923
- projectDir: string
919
+ projectDir: string,
924
920
  ): Promise<any>;
925
921
 
926
922
  removeAllProxies(): void;
@@ -939,12 +935,12 @@ interface IiOSSocketRequestExecutor {
939
935
  executeAttachRequest(
940
936
  device: Mobile.IiOSDevice,
941
937
  timeout: number,
942
- projectId: string
938
+ projectId: string,
943
939
  ): Promise<void>;
944
940
  executeRefreshRequest(
945
941
  device: Mobile.IiOSDevice,
946
942
  timeout: number,
947
- appId: string
943
+ appId: string,
948
944
  ): Promise<boolean>;
949
945
  }
950
946
 
@@ -995,7 +991,7 @@ interface IProjectNameService {
995
991
  */
996
992
  ensureValidName(
997
993
  projectName: string,
998
- validateOptions?: { force: boolean }
994
+ validateOptions?: { force: boolean },
999
995
  ): Promise<string>;
1000
996
  }
1001
997
 
@@ -1089,7 +1085,7 @@ interface IBundleValidatorHelper {
1089
1085
  */
1090
1086
  getBundlerDependencyVersion(
1091
1087
  projectData: IProjectData,
1092
- bundlerName?: string
1088
+ bundlerName?: string,
1093
1089
  ): string;
1094
1090
  }
1095
1091
 
@@ -1171,7 +1167,7 @@ interface IAssetsGenerationService {
1171
1167
  * @returns {Promise<void>}
1172
1168
  */
1173
1169
  generateSplashScreens(
1174
- splashesGenerationData: IResourceGenerationData
1170
+ splashesGenerationData: IResourceGenerationData,
1175
1171
  ): Promise<void>;
1176
1172
  }
1177
1173
 
@@ -1207,7 +1203,7 @@ interface IPlatformValidationService {
1207
1203
  provision: true | string,
1208
1204
  teamId: true | string,
1209
1205
  projectData: IProjectData,
1210
- platform?: string
1206
+ platform?: string,
1211
1207
  ): Promise<boolean>;
1212
1208
 
1213
1209
  validatePlatformInstalled(platform: string, projectData: IProjectData): void;
@@ -1220,7 +1216,7 @@ interface IPlatformValidationService {
1220
1216
  */
1221
1217
  isPlatformSupportedForOS(
1222
1218
  platform: string,
1223
- projectData: IProjectData
1219
+ projectData: IProjectData,
1224
1220
  ): boolean;
1225
1221
  }
1226
1222
 
@@ -1228,27 +1224,27 @@ interface IPlatformCommandHelper {
1228
1224
  addPlatforms(
1229
1225
  platforms: string[],
1230
1226
  projectData: IProjectData,
1231
- frameworkPath?: string
1227
+ frameworkPath?: string,
1232
1228
  ): Promise<void>;
1233
1229
  cleanPlatforms(
1234
1230
  platforms: string[],
1235
1231
  projectData: IProjectData,
1236
- frameworkPath: string
1232
+ frameworkPath: string,
1237
1233
  ): Promise<void>;
1238
1234
  removePlatforms(
1239
1235
  platforms: string[],
1240
- projectData: IProjectData
1236
+ projectData: IProjectData,
1241
1237
  ): Promise<void>;
1242
1238
  updatePlatforms(
1243
1239
  platforms: string[],
1244
- projectData: IProjectData
1240
+ projectData: IProjectData,
1245
1241
  ): Promise<void>;
1246
1242
  getInstalledPlatforms(projectData: IProjectData): string[];
1247
1243
  getAvailablePlatforms(projectData: IProjectData): string[];
1248
1244
  getPreparedPlatforms(projectData: IProjectData): string[];
1249
1245
  getCurrentPlatformVersion(
1250
1246
  platform: string,
1251
- projectData: IProjectData
1247
+ projectData: IProjectData,
1252
1248
  ): string;
1253
1249
  }
1254
1250
 
@@ -8,16 +8,27 @@ declare module "nativescript-dev-xcode" {
8
8
  }
9
9
 
10
10
  class project {
11
+ hash: any;
12
+ filepath: string;
11
13
  constructor(filename: string);
12
14
 
13
15
  parse(callback: () => void): void;
14
16
  parseSync(): void;
15
17
 
18
+ generateUuid(): string;
19
+
16
20
  writeSync(options: any): string;
17
21
 
18
22
  addFramework(filepath: string, options?: Options): void;
19
23
  removeFramework(filePath: string, options?: Options): void;
20
24
 
25
+
26
+ getProductFile(watchApptarget: target): any;
27
+ addToPbxFrameworksBuildPhase(file);
28
+ addToPbxCopyfilesBuildPhase(file, comment: string, targetid: string);
29
+ pbxFrameworksBuildPhaseObj(targetid: string): any;
30
+ pbxBuildFileSection(): {[k: string] : any};
31
+
21
32
  addPbxGroup(
22
33
  filePathsArray: any[],
23
34
  name: string,
@@ -27,17 +38,30 @@ declare module "nativescript-dev-xcode" {
27
38
 
28
39
  removePbxGroup(groupName: string, path: string): void;
29
40
 
41
+ addTargetDependency(target: string, dependencyTargets: string[]);
42
+
43
+ findTargetKey(name: string);
44
+ pbxTargetByName(name: string): target;
45
+ pbxNativeTargetSection(): {[key: string]: any};
46
+
30
47
  addToHeaderSearchPaths(options?: Options): void;
31
48
  removeFromHeaderSearchPaths(options?: Options): void;
32
49
  updateBuildProperty(key: string, value: any): void;
33
50
 
34
51
  pbxXCBuildConfigurationSection(): any;
35
52
 
53
+ buildPhaseObject(
54
+ buildPhaseType: string,
55
+ comment: string,
56
+ target: tstring
57
+ )
58
+
36
59
  addTarget(
37
60
  targetName: string,
38
61
  targetType: string,
39
62
  targetPath?: string,
40
- parentTarget?: string
63
+ parentTarget?: string,
64
+ productTargetType?: string
41
65
  ): target;
42
66
  addBuildPhase(
43
67
  filePathsArray: string[],
@@ -130,10 +130,13 @@ interface INsConfigIOS extends INsConfigPlaform {
130
130
  * List packages to be included in the iOS build.
131
131
  */
132
132
  SPMPackages?: Array<IOSSPMPackage>;
133
+ /**
134
+ * Custom runtime package name
135
+ */
136
+ runtimePackageName?: string;
133
137
  }
134
138
 
135
139
  interface INSConfigVisionOS extends INsConfigIOS {}
136
- interface INSConfigMacOS extends INsConfigIOS {}
137
140
 
138
141
  interface INsConfigAndroid extends INsConfigPlaform {
139
142
  v8Flags?: string;
@@ -169,6 +172,11 @@ interface INsConfigAndroid extends INsConfigPlaform {
169
172
  enableLineBreakpoints?: boolean;
170
173
 
171
174
  enableMultithreadedJavascript?: boolean;
175
+
176
+ /**
177
+ * Custom runtime package name
178
+ */
179
+ runtimePackageName?: string;
172
180
  }
173
181
 
174
182
  interface INsConfigHooks {
@@ -189,10 +197,16 @@ interface INsConfig {
189
197
  ios?: INsConfigIOS;
190
198
  android?: INsConfigAndroid;
191
199
  visionos?: INSConfigVisionOS;
192
- macos?: INSConfigMacOS;
193
200
  ignoredNativeDependencies?: string[];
194
201
  hooks?: INsConfigHooks[];
195
202
  projectName?: string;
203
+ /**
204
+ * Legacy keys still found in user configs. Declared so the
205
+ * runtime-package.json generation (PrepareController) can strip them
206
+ * via destructuring without losing type safety.
207
+ */
208
+ webpackPackageName?: string;
209
+ buildPath?: string;
196
210
  }
197
211
 
198
212
  interface IProjectData extends ICreateProjectData {
@@ -603,9 +617,7 @@ interface INativePrepare {
603
617
  }
604
618
 
605
619
  interface IBuildConfig
606
- extends IAndroidBuildOptionsSettings,
607
- IiOSBuildConfig,
608
- IProjectDir {
620
+ extends IAndroidBuildOptionsSettings, IiOSBuildConfig, IProjectDir {
609
621
  clean?: boolean;
610
622
  architectures?: string[];
611
623
  buildOutputStdio?: string;
@@ -617,7 +629,8 @@ interface IBuildConfig
617
629
  * Describes iOS-specific build configuration properties
618
630
  */
619
631
  interface IiOSBuildConfig
620
- extends IBuildForDevice,
632
+ extends
633
+ IBuildForDevice,
621
634
  IiCloudContainerEnvironment,
622
635
  IDeviceIdentifier,
623
636
  IProvision,
@@ -867,6 +880,7 @@ interface IAddExtensionsFromPathOptions extends IAddTargetFromPathOptions {
867
880
 
868
881
  interface IAddWatchAppFromPathOptions extends IAddTargetFromPathOptions {
869
882
  watchAppFolderPath: string;
883
+ disableStubBinary?: boolean;
870
884
  }
871
885
 
872
886
  interface IRemoveExtensionsOptions {
@@ -875,6 +889,37 @@ interface IRemoveExtensionsOptions {
875
889
 
876
890
  interface IRemoveWatchAppOptions extends IRemoveExtensionsOptions {}
877
891
 
892
+ interface IWatchAppJSONConfigModule {
893
+ name?: string;
894
+ path: string;
895
+ targetType?: string;
896
+ embed?: boolean;
897
+ frameworks?: Array<string | Record<string, string>>;
898
+ dependencies?: string[];
899
+ headerSearchPaths?: string[];
900
+ resources?: string[];
901
+ src?: string[];
902
+ linkerFlags?: string[];
903
+ buildConfigurationProperties?: Record<string, string>;
904
+ SPMPackages?: Array<IOSSPMPackage | string>;
905
+ }
906
+ interface IWatchAppJSONConfig {
907
+ targetType?: string;
908
+ forceAddEmbedWatchContent?: boolean;
909
+ sharedModulesBuildConfigurationProperties?: Record<string, string>;
910
+ basedir?: string;
911
+ infoPlistPath?: string;
912
+ xcprivacyPath?: string;
913
+ importSourcesFromMainFolder?: boolean;
914
+ importResourcesFromMainFolder?: boolean;
915
+ resources?: string[];
916
+ src?: string[];
917
+ resourcesExclude?: string[];
918
+ srcExclude?: string[];
919
+ modules: IWatchAppConfigModule[];
920
+ SPMPackages?: Array<IOSSPMPackage>;
921
+ }
922
+
878
923
  interface IRubyFunction {
879
924
  functionName: string;
880
925
  functionParameters?: string;
@@ -19,5 +19,4 @@ yok_1.injector.requireCommand("open|ios", path);
19
19
  yok_1.injector.requireCommand("open|android", path);
20
20
  yok_1.injector.requireCommand("open|visionos", path);
21
21
  yok_1.injector.requireCommand("open|vision", path);
22
- yok_1.injector.requireCommand("open|macos", path);
23
22
  //# sourceMappingURL=bootstrap.js.map
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QuestionMark = exports.N = exports.C = exports.W = exports.CtrlC = exports.ShiftR = exports.R = exports.OpenMacOSCommand = exports.OpenVisionOSCommand = exports.ShiftV = exports.V = exports.OpenIOSCommand = exports.ShiftI = exports.I = exports.OpenAndroidCommand = exports.ShiftA = exports.A = void 0;
3
+ exports.QuestionMark = exports.N = exports.C = exports.W = exports.CtrlC = exports.ShiftR = exports.R = exports.OpenVisionOSCommand = exports.ShiftV = exports.V = exports.OpenIOSCommand = exports.ShiftI = exports.I = exports.OpenAndroidCommand = exports.ShiftA = exports.A = void 0;
4
4
  const fs = require("fs");
5
5
  const os_1 = require("os");
6
6
  const path = require("path");
@@ -256,57 +256,6 @@ class OpenVisionOSCommand extends ShiftV {
256
256
  }
257
257
  }
258
258
  exports.OpenVisionOSCommand = OpenVisionOSCommand;
259
- class OpenMacOSCommand {
260
- constructor($iOSProjectService, $logger, $childProcess, $projectData, $xcodeSelectService, $xcodebuildArgsService, $options) {
261
- this.$iOSProjectService = $iOSProjectService;
262
- this.$logger = $logger;
263
- this.$childProcess = $childProcess;
264
- this.$projectData = $projectData;
265
- this.$xcodeSelectService = $xcodeSelectService;
266
- this.$xcodebuildArgsService = $xcodebuildArgsService;
267
- this.$options = $options;
268
- this.key = "M";
269
- this.platform = "all";
270
- this.description = "Open project in Xcode";
271
- this.group = "macOS";
272
- this.willBlockKeyCommandExecution = true;
273
- this.isInteractive = false;
274
- }
275
- async execute() {
276
- this.$options.watch = false;
277
- this.$options.platformOverride = "macOS";
278
- const os = (0, os_1.platform)();
279
- if (os === "darwin") {
280
- this.$projectData.initializeProjectData();
281
- const macOSDir = path.resolve(this.$projectData.platformsDir, "macos");
282
- if (!fs.existsSync(macOSDir)) {
283
- const prepareCommand = yok_1.injector.resolveCommand("prepare");
284
- await prepareCommand.execute(["macos"]);
285
- if (this.isInteractive) {
286
- process.stdin.resume();
287
- }
288
- }
289
- const platformData = this.$iOSProjectService.getPlatformData(this.$projectData);
290
- const xcprojectFile = this.$xcodebuildArgsService.getXcodeProjectArgs(platformData, this.$projectData)[1];
291
- if (fs.existsSync(xcprojectFile)) {
292
- this.$xcodeSelectService
293
- .getDeveloperDirectoryPath()
294
- .then(() => this.$childProcess.exec(`open ${xcprojectFile}`, {}))
295
- .catch((e) => {
296
- this.$logger.error(e.message);
297
- });
298
- }
299
- else {
300
- this.$logger.error(`Unable to open project file: ${xcprojectFile}`);
301
- }
302
- }
303
- else {
304
- this.$logger.error("Opening a project in XCode requires macOS.");
305
- }
306
- this.$options.platformOverride = null;
307
- }
308
- }
309
- exports.OpenMacOSCommand = OpenMacOSCommand;
310
259
  class R {
311
260
  constructor($liveSyncCommandHelper) {
312
261
  this.$liveSyncCommandHelper = $liveSyncCommandHelper;
@@ -462,5 +411,4 @@ yok_1.injector.registerCommand("open|ios", OpenIOSCommand);
462
411
  yok_1.injector.registerCommand("open|visionos", OpenVisionOSCommand);
463
412
  yok_1.injector.registerCommand("open|vision", OpenVisionOSCommand);
464
413
  yok_1.injector.registerCommand("open|android", OpenAndroidCommand);
465
- yok_1.injector.registerCommand("open|macos", OpenMacOSCommand);
466
414
  //# sourceMappingURL=index.js.map
package/lib/options.js CHANGED
@@ -225,6 +225,7 @@ class Options {
225
225
  default: true,
226
226
  },
227
227
  dryRun: { type: "boolean" /* OptionType.Boolean */, hasSensitiveValue: false },
228
+ skipNative: { type: "boolean" /* OptionType.Boolean */, hasSensitiveValue: false },
228
229
  uniqueBundle: { type: "boolean" /* OptionType.Boolean */, hasSensitiveValue: false },
229
230
  };
230
231
  }
@@ -25,7 +25,6 @@ class ProjectData {
25
25
  this.projectIdentifiers.ios = identifier;
26
26
  this.projectIdentifiers.android = identifier;
27
27
  this.projectIdentifiers.visionos = identifier;
28
- this.projectIdentifiers.macos = identifier;
29
28
  }
30
29
  constructor($fs, $errors, $projectHelper, $staticConfig, $options, $logger, $injector, $androidResourcesMigrationService, $devicePlatformsConstants) {
31
30
  this.$fs = $fs;
@@ -176,14 +175,12 @@ class ProjectData {
176
175
  ios: "",
177
176
  android: "",
178
177
  visionos: "",
179
- macos: "",
180
178
  };
181
179
  }
182
180
  const identifier = {
183
181
  ios: config.id,
184
182
  android: config.id,
185
183
  visionos: config.id,
186
- macos: config.id,
187
184
  };
188
185
  if (config.ios && config.ios.id) {
189
186
  identifier.ios = config.ios.id;
@@ -194,9 +191,6 @@ class ProjectData {
194
191
  if (config.visionos && config.visionos.id) {
195
192
  identifier.visionos = config.visionos.id;
196
193
  }
197
- if (config.macos && config.macos.id) {
198
- identifier.macos = config.macos.id;
199
- }
200
194
  return identifier;
201
195
  }
202
196
  getProjectType() {
@@ -276,31 +276,37 @@ class AndroidPluginBuildService {
276
276
  }
277
277
  if (!runtimeGradleVersions) {
278
278
  const latestRuntimeVersion = await this.getLatestRuntimeVersion();
279
- runtimeGradleVersions = await this.getGradleVersions(latestRuntimeVersion);
279
+ runtimeGradleVersions =
280
+ await this.getGradleVersions(latestRuntimeVersion);
280
281
  this.$logger.trace(`Got gradle versions ${JSON.stringify(runtimeGradleVersions)} from the latest runtime v${latestRuntimeVersion}`);
281
282
  }
282
283
  return runtimeGradleVersions || {};
283
284
  }
284
285
  async getLatestRuntimeVersion() {
285
- var _a;
286
+ var _a, _b, _c;
286
287
  let runtimeVersion = null;
288
+ const packageName = ((_b = (_a = this.$projectData.nsConfig) === null || _a === void 0 ? void 0 : _a.android) === null || _b === void 0 ? void 0 : _b.runtimePackageName) ||
289
+ constants_1.SCOPED_ANDROID_RUNTIME_NAME;
287
290
  try {
288
- let result = await this.$packageManager.view(constants_1.SCOPED_ANDROID_RUNTIME_NAME, {
291
+ let result = await this.$packageManager.view(packageName, {
289
292
  "dist-tags": true,
290
293
  });
291
- result = (_a = result === null || result === void 0 ? void 0 : result["dist-tags"]) !== null && _a !== void 0 ? _a : result;
294
+ result = (_c = result === null || result === void 0 ? void 0 : result["dist-tags"]) !== null && _c !== void 0 ? _c : result;
292
295
  runtimeVersion = result.latest;
293
296
  }
294
297
  catch (err) {
295
298
  this.$logger.trace(`Error while getting latest android runtime version from view command: ${err}`);
296
- const registryData = await this.$packageManager.getRegistryPackageData(constants_1.SCOPED_ANDROID_RUNTIME_NAME);
299
+ const registryData = await this.$packageManager.getRegistryPackageData(packageName);
297
300
  runtimeVersion = registryData["dist-tags"].latest;
298
301
  }
299
302
  return runtimeVersion;
300
303
  }
301
304
  getLocalGradleVersions() {
305
+ var _a, _b;
306
+ const packageName = ((_b = (_a = this.$projectData.nsConfig) === null || _a === void 0 ? void 0 : _a.android) === null || _b === void 0 ? void 0 : _b.runtimePackageName) ||
307
+ constants_1.SCOPED_ANDROID_RUNTIME_NAME;
302
308
  // try reading from installed runtime first before reading from the npm registry...
303
- const installedRuntimePackageJSONPath = (0, resolve_package_path_1.resolvePackageJSONPath)(constants_1.SCOPED_ANDROID_RUNTIME_NAME, {
309
+ const installedRuntimePackageJSONPath = (0, resolve_package_path_1.resolvePackageJSONPath)(packageName, {
304
310
  paths: [this.$projectData.projectDir],
305
311
  });
306
312
  if (!installedRuntimePackageJSONPath) {
@@ -327,16 +333,18 @@ class AndroidPluginBuildService {
327
333
  return null;
328
334
  }
329
335
  async getGradleVersions(runtimeVersion) {
330
- var _a, _b;
336
+ var _a, _b, _c, _d;
331
337
  let runtimeGradleVersions = null;
332
338
  const localVersionInfo = this.getLocalGradleVersions();
333
339
  if (localVersionInfo) {
334
340
  return localVersionInfo;
335
341
  }
342
+ const packageName = ((_b = (_a = this.$projectData.nsConfig) === null || _a === void 0 ? void 0 : _a.android) === null || _b === void 0 ? void 0 : _b.runtimePackageName) ||
343
+ constants_1.SCOPED_ANDROID_RUNTIME_NAME;
336
344
  // fallback to reading from npm...
337
345
  try {
338
- let output = await this.$packageManager.view(`${constants_1.SCOPED_ANDROID_RUNTIME_NAME}@${runtimeVersion}`, { version_info: true });
339
- output = (_a = output === null || output === void 0 ? void 0 : output["version_info"]) !== null && _a !== void 0 ? _a : output;
346
+ let output = await this.$packageManager.view(`${packageName}@${runtimeVersion}`, { version_info: true });
347
+ output = (_c = output === null || output === void 0 ? void 0 : output["version_info"]) !== null && _c !== void 0 ? _c : output;
340
348
  if (!output) {
341
349
  /**
342
350
  * fallback to the old 'gradle' key in package.json
@@ -346,8 +354,8 @@ class AndroidPluginBuildService {
346
354
  * gradle: { version: '6.4', android: '3.6.4' }
347
355
  *
348
356
  */
349
- output = await this.$packageManager.view(`${constants_1.SCOPED_ANDROID_RUNTIME_NAME}@${runtimeVersion}`, { gradle: true });
350
- output = (_b = output === null || output === void 0 ? void 0 : output["gradle"]) !== null && _b !== void 0 ? _b : output;
357
+ output = await this.$packageManager.view(`${packageName}@${runtimeVersion}`, { gradle: true });
358
+ output = (_d = output === null || output === void 0 ? void 0 : output["gradle"]) !== null && _d !== void 0 ? _d : output;
351
359
  const { version, android } = output;
352
360
  // covert output to the new format...
353
361
  output = {
@@ -359,7 +367,7 @@ class AndroidPluginBuildService {
359
367
  }
360
368
  catch (err) {
361
369
  this.$logger.trace(`Error while getting gradle data for android runtime from view command: ${err}`);
362
- const registryData = await this.$packageManager.getRegistryPackageData(constants_1.SCOPED_ANDROID_RUNTIME_NAME);
370
+ const registryData = await this.$packageManager.getRegistryPackageData(packageName);
363
371
  runtimeGradleVersions = registryData.versions[runtimeVersion];
364
372
  }
365
373
  const result = this.getGradleVersionsCore(runtimeGradleVersions);