@vxrn/utils 2.17.2 → 2.18.0

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 (68) hide show
  1. package/dist/cjs/bunEngine.cjs +59 -0
  2. package/dist/cjs/bunEngine.native.cjs +65 -0
  3. package/dist/cjs/bunEngine.native.js +67 -0
  4. package/dist/cjs/bunEngine.native.js.map +1 -0
  5. package/dist/cjs/createMessageSocket.cjs +1 -0
  6. package/dist/cjs/createMessageSocket.native.cjs +1 -0
  7. package/dist/cjs/createMessageSocket.native.js +1 -0
  8. package/dist/cjs/desktopReactNativeResolve.cjs +1 -0
  9. package/dist/cjs/desktopReactNativeResolve.native.cjs +1 -0
  10. package/dist/cjs/desktopReactNativeResolve.native.js +1 -0
  11. package/dist/cjs/detectPackageManager.cjs +1 -0
  12. package/dist/cjs/detectPackageManager.native.cjs +1 -0
  13. package/dist/cjs/detectPackageManager.native.js +1 -0
  14. package/dist/cjs/exec.cjs +1 -0
  15. package/dist/cjs/exec.native.cjs +1 -0
  16. package/dist/cjs/exec.native.js +1 -0
  17. package/dist/cjs/index.cjs +2 -0
  18. package/dist/cjs/index.native.cjs +2 -0
  19. package/dist/cjs/index.native.js +2 -0
  20. package/dist/cjs/index.native.js.map +1 -1
  21. package/dist/cjs/mustReplace.cjs +1 -0
  22. package/dist/cjs/mustReplace.native.cjs +1 -0
  23. package/dist/cjs/mustReplace.native.js +1 -0
  24. package/dist/cjs/nativeAppManifest.cjs +30 -0
  25. package/dist/cjs/nativeAppManifest.native.cjs +114 -64
  26. package/dist/cjs/nativeAppManifest.native.js +114 -64
  27. package/dist/cjs/nativeAppManifest.native.js.map +1 -1
  28. package/dist/cjs/platformEnv.cjs +1 -0
  29. package/dist/cjs/platformEnv.native.cjs +1 -0
  30. package/dist/cjs/platformEnv.native.js +1 -0
  31. package/dist/cjs/publicEnv.cjs +1 -0
  32. package/dist/cjs/publicEnv.native.cjs +1 -0
  33. package/dist/cjs/publicEnv.native.js +1 -0
  34. package/dist/esm/bunEngine.mjs +40 -0
  35. package/dist/esm/bunEngine.mjs.map +1 -0
  36. package/dist/esm/bunEngine.native.js +44 -0
  37. package/dist/esm/bunEngine.native.js.map +1 -0
  38. package/dist/esm/createMessageSocket.mjs +1 -0
  39. package/dist/esm/createMessageSocket.native.js +1 -0
  40. package/dist/esm/desktopReactNativeResolve.mjs +1 -0
  41. package/dist/esm/desktopReactNativeResolve.native.js +1 -0
  42. package/dist/esm/detectPackageManager.mjs +1 -0
  43. package/dist/esm/detectPackageManager.native.js +1 -0
  44. package/dist/esm/exec.mjs +1 -0
  45. package/dist/esm/exec.native.js +1 -0
  46. package/dist/esm/index.js +2 -0
  47. package/dist/esm/index.mjs +2 -0
  48. package/dist/esm/index.native.js +2 -0
  49. package/dist/esm/mustReplace.mjs +1 -0
  50. package/dist/esm/mustReplace.native.js +1 -0
  51. package/dist/esm/nativeAppManifest.mjs +30 -0
  52. package/dist/esm/nativeAppManifest.mjs.map +1 -1
  53. package/dist/esm/nativeAppManifest.native.js +114 -64
  54. package/dist/esm/nativeAppManifest.native.js.map +1 -1
  55. package/dist/esm/platformEnv.mjs +1 -0
  56. package/dist/esm/platformEnv.native.js +1 -0
  57. package/dist/esm/publicEnv.mjs +1 -0
  58. package/dist/esm/publicEnv.native.js +1 -0
  59. package/package.json +5 -5
  60. package/src/bunEngine.ts +62 -0
  61. package/src/index.ts +1 -0
  62. package/src/nativeAppManifest.ts +35 -0
  63. package/types/bunEngine.d.ts +7 -0
  64. package/types/bunEngine.d.ts.map +1 -0
  65. package/types/index.d.ts +7 -6
  66. package/types/index.d.ts.map +1 -1
  67. package/types/nativeAppManifest.d.ts +3 -0
  68. package/types/nativeAppManifest.d.ts.map +1 -1
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+ // dist/cjs/nativeAppManifest.native.js
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -93,7 +94,7 @@ function fail(message) {
93
94
  }
94
95
  function validateNativeApp(manifest, platform) {
95
96
  var _manifest_alternateIcons;
96
- var _manifest_ios, _manifest_ios1, _manifest_ios2, _manifest_splash, _manifest_splash_dark, _manifest_splash1, _manifest_splash2, _manifest_imagePicker, _manifest_imagePicker1, _manifest_photoLibrary, _manifest_photoLibrary1, _manifest_location, _manifest_location1, _manifest_ios3, _manifest_speech, _manifest_pedometer, _manifest_ios4, _manifest_ios5;
97
+ var _manifest_ios, _manifest_ios1, _manifest_ios2, _manifest_ios3, _manifest_splash, _manifest_splash_dark, _manifest_splash1, _manifest_splash2, _manifest_imagePicker, _manifest_imagePicker1, _manifest_photoLibrary, _manifest_photoLibrary1, _manifest_location, _manifest_location1, _manifest_ios4, _manifest_speech, _manifest_pedometer, _manifest_ios5, _manifest_ios6, _manifest_ios7;
97
98
  if (!manifest || typeof manifest !== "object") fail("manifest must be an object");
98
99
  if (!manifest.name || typeof manifest.name !== "string") fail("name is required");
99
100
  if (!TARGET_NAME.test(manifest.name)) {
@@ -157,13 +158,59 @@ function validateNativeApp(manifest, platform) {
157
158
  }
158
159
  }
159
160
  }
161
+ if (((_manifest_ios = manifest.ios) === null || _manifest_ios === void 0 ? void 0 : _manifest_ios.resources) !== void 0) {
162
+ var _manifest_fonts;
163
+ if (!Array.isArray(manifest.ios.resources)) fail("ios.resources must be an array");
164
+ var names1 = /* @__PURE__ */ new Set([
165
+ "info.plist",
166
+ "launchscreen.storyboard",
167
+ "one-bridging-header.h",
168
+ "appdelegate.swift",
169
+ "scenedelegate.swift",
170
+ "oneappintents.swift",
171
+ "privacyinfo.xcprivacy",
172
+ `${manifest.name.toLowerCase()}.entitlements`,
173
+ "oneappwidgets.entitlements",
174
+ ...((_manifest_fonts = manifest.fonts) !== null && _manifest_fonts !== void 0 ? _manifest_fonts : []).map(function(file2) {
175
+ return file2.split("/").pop().toLowerCase();
176
+ }),
177
+ ...manifest.ios.googleServicesFile ? ["googleservice-info.plist"] : []
178
+ ]);
179
+ var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;
180
+ try {
181
+ for (var _iterator2 = manifest.ios.resources[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
182
+ var file = _step2.value;
183
+ if (typeof file !== "string" || !file || file.startsWith("/") || file.split("/").includes("..")) {
184
+ fail("ios.resources entries must be project-relative file paths");
185
+ }
186
+ var name1 = file.split("/").pop();
187
+ if (!/^[a-z0-9][a-z0-9._-]*$/i.test(name1) || names1.has(name1.toLowerCase())) {
188
+ fail(`ios.resources has an invalid or duplicate bundle filename: ${name1}`);
189
+ }
190
+ names1.add(name1.toLowerCase());
191
+ }
192
+ } catch (err) {
193
+ _didIteratorError2 = true;
194
+ _iteratorError2 = err;
195
+ } finally {
196
+ try {
197
+ if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
198
+ _iterator2.return();
199
+ }
200
+ } finally {
201
+ if (_didIteratorError2) {
202
+ throw _iteratorError2;
203
+ }
204
+ }
205
+ }
206
+ }
160
207
  if (manifest.version !== void 0 && !VERSION.test(manifest.version)) {
161
208
  fail(`version "${manifest.version}" must start with major.minor.patch`);
162
209
  }
163
210
  if (manifest.icon !== void 0 && (!manifest.icon.source || !HEX_COLOR.test(manifest.icon.backgroundColor))) {
164
211
  fail("icon requires source and a six-digit hex backgroundColor");
165
212
  }
166
- if (((_manifest_ios = manifest.ios) === null || _manifest_ios === void 0 ? void 0 : _manifest_ios.alternateIcons) !== void 0) {
213
+ if (((_manifest_ios1 = manifest.ios) === null || _manifest_ios1 === void 0 ? void 0 : _manifest_ios1.alternateIcons) !== void 0) {
167
214
  fail("ios.alternateIcons moved to alternateIcons, which android uses too");
168
215
  }
169
216
  var alternates = Object.entries((_manifest_alternateIcons = manifest.alternateIcons) !== null && _manifest_alternateIcons !== void 0 ? _manifest_alternateIcons : {});
@@ -171,44 +218,44 @@ function validateNativeApp(manifest, platform) {
171
218
  if (!manifest.icon) fail("alternateIcons requires a primary icon");
172
219
  if (alternates.length === 0) fail("alternateIcons requires at least one icon");
173
220
  var lowered = /* @__PURE__ */ new Set();
174
- var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;
221
+ var _iteratorNormalCompletion3 = true, _didIteratorError3 = false, _iteratorError3 = void 0;
175
222
  try {
176
- for (var _iterator2 = alternates[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
177
- var [name1, icon] = _step2.value;
178
- if (name1 === "AppIcon" || name1 === "Primary" || !TARGET_NAME.test(name1)) {
179
- fail(`alternateIcons name "${name1}" must be an identifier other than AppIcon or Primary`);
223
+ for (var _iterator3 = alternates[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
224
+ var [name2, icon] = _step3.value;
225
+ if (name2 === "AppIcon" || name2 === "Primary" || !TARGET_NAME.test(name2)) {
226
+ fail(`alternateIcons name "${name2}" must be an identifier other than AppIcon or Primary`);
180
227
  }
181
- if (lowered.has(name1.toLowerCase())) {
182
- fail(`alternateIcons name "${name1}" repeats another name apart from its case`);
228
+ if (lowered.has(name2.toLowerCase())) {
229
+ fail(`alternateIcons name "${name2}" repeats another name apart from its case`);
183
230
  }
184
- lowered.add(name1.toLowerCase());
231
+ lowered.add(name2.toLowerCase());
185
232
  if (!(icon === null || icon === void 0 ? void 0 : icon.source) || !HEX_COLOR.test(icon.backgroundColor)) {
186
- fail(`alternateIcons.${name1} requires source and a six-digit hex backgroundColor`);
233
+ fail(`alternateIcons.${name2} requires source and a six-digit hex backgroundColor`);
187
234
  }
188
235
  }
189
236
  } catch (err) {
190
- _didIteratorError2 = true;
191
- _iteratorError2 = err;
237
+ _didIteratorError3 = true;
238
+ _iteratorError3 = err;
192
239
  } finally {
193
240
  try {
194
- if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
195
- _iterator2.return();
241
+ if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
242
+ _iterator3.return();
196
243
  }
197
244
  } finally {
198
- if (_didIteratorError2) {
199
- throw _iteratorError2;
245
+ if (_didIteratorError3) {
246
+ throw _iteratorError3;
200
247
  }
201
248
  }
202
249
  }
203
250
  }
204
251
  var icons = [["icon", manifest.icon], ...alternates.map(function(param) {
205
- var [name2, alternate] = param;
206
- return [`alternateIcons.${name2}`, alternate];
252
+ var [name3, alternate] = param;
253
+ return [`alternateIcons.${name3}`, alternate];
207
254
  })];
208
- var _iteratorNormalCompletion3 = true, _didIteratorError3 = false, _iteratorError3 = void 0;
255
+ var _iteratorNormalCompletion4 = true, _didIteratorError4 = false, _iteratorError4 = void 0;
209
256
  try {
210
- for (var _iterator3 = icons[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
211
- var [label, icon1] = _step3.value;
257
+ for (var _iterator4 = icons[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
258
+ var [label, icon1] = _step4.value;
212
259
  for (var _i = 0, _iter = ["dark", "tinted"]; _i < _iter.length; _i++) {
213
260
  var appearance = _iter[_i];
214
261
  var variant = icon1 === null || icon1 === void 0 ? void 0 : icon1[appearance];
@@ -219,20 +266,20 @@ function validateNativeApp(manifest, platform) {
219
266
  }
220
267
  }
221
268
  } catch (err) {
222
- _didIteratorError3 = true;
223
- _iteratorError3 = err;
269
+ _didIteratorError4 = true;
270
+ _iteratorError4 = err;
224
271
  } finally {
225
272
  try {
226
- if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
227
- _iterator3.return();
273
+ if (!_iteratorNormalCompletion4 && _iterator4.return != null) {
274
+ _iterator4.return();
228
275
  }
229
276
  } finally {
230
- if (_didIteratorError3) {
231
- throw _iteratorError3;
277
+ if (_didIteratorError4) {
278
+ throw _iteratorError4;
232
279
  }
233
280
  }
234
281
  }
235
- if (((_manifest_ios1 = manifest.ios) === null || _manifest_ios1 === void 0 ? void 0 : _manifest_ios1.backgroundTasks) !== void 0) {
282
+ if (((_manifest_ios2 = manifest.ios) === null || _manifest_ios2 === void 0 ? void 0 : _manifest_ios2.backgroundTasks) !== void 0) {
236
283
  var _tasks_refresh, _tasks_processing;
237
284
  var tasks = manifest.ios.backgroundTasks;
238
285
  if (!tasks || tasks.refresh !== void 0 && !Array.isArray(tasks.refresh) || tasks.processing !== void 0 && !Array.isArray(tasks.processing)) {
@@ -242,30 +289,30 @@ function validateNativeApp(manifest, platform) {
242
289
  if (!identifiers.length || new Set(identifiers).size !== identifiers.length) {
243
290
  fail("ios.backgroundTasks needs distinct refresh or processing identifiers");
244
291
  }
245
- var _iteratorNormalCompletion4 = true, _didIteratorError4 = false, _iteratorError4 = void 0;
292
+ var _iteratorNormalCompletion5 = true, _didIteratorError5 = false, _iteratorError5 = void 0;
246
293
  try {
247
- for (var _iterator4 = identifiers[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
248
- var identifier = _step4.value;
294
+ for (var _iterator5 = identifiers[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) {
295
+ var identifier = _step5.value;
249
296
  if (typeof identifier !== "string" || !REVERSE_DNS.test(identifier)) {
250
297
  fail(`ios.backgroundTasks identifier "${identifier}" must use reverse DNS notation`);
251
298
  }
252
299
  }
253
300
  } catch (err) {
254
- _didIteratorError4 = true;
255
- _iteratorError4 = err;
301
+ _didIteratorError5 = true;
302
+ _iteratorError5 = err;
256
303
  } finally {
257
304
  try {
258
- if (!_iteratorNormalCompletion4 && _iterator4.return != null) {
259
- _iterator4.return();
305
+ if (!_iteratorNormalCompletion5 && _iterator5.return != null) {
306
+ _iterator5.return();
260
307
  }
261
308
  } finally {
262
- if (_didIteratorError4) {
263
- throw _iteratorError4;
309
+ if (_didIteratorError5) {
310
+ throw _iteratorError5;
264
311
  }
265
312
  }
266
313
  }
267
314
  }
268
- if (((_manifest_ios2 = manifest.ios) === null || _manifest_ios2 === void 0 ? void 0 : _manifest_ios2.appIntents) !== void 0) {
315
+ if (((_manifest_ios3 = manifest.ios) === null || _manifest_ios3 === void 0 ? void 0 : _manifest_ios3.appIntents) !== void 0) {
269
316
  var _manifest_ios_appIntents;
270
317
  var actions = (_manifest_ios_appIntents = manifest.ios.appIntents) === null || _manifest_ios_appIntents === void 0 ? void 0 : _manifest_ios_appIntents.actions;
271
318
  if (!Array.isArray(actions) || actions.length === 0) {
@@ -275,10 +322,10 @@ function validateNativeApp(manifest, platform) {
275
322
  return typeof phrase === "string" && phrase.split("{app}").length === 2 && Boolean(phrase.replace("{app}", "").trim());
276
323
  };
277
324
  var ids = /* @__PURE__ */ new Set();
278
- var _iteratorNormalCompletion5 = true, _didIteratorError5 = false, _iteratorError5 = void 0;
325
+ var _iteratorNormalCompletion6 = true, _didIteratorError6 = false, _iteratorError6 = void 0;
279
326
  try {
280
- for (var _iterator5 = actions[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) {
281
- var action = _step5.value;
327
+ for (var _iterator6 = actions[Symbol.iterator](), _step6; !(_iteratorNormalCompletion6 = (_step6 = _iterator6.next()).done); _iteratorNormalCompletion6 = true) {
328
+ var action = _step6.value;
282
329
  if (!action || typeof action !== "object" || typeof action.id !== "string" || !action.id.trim() || typeof action.title !== "string" || !action.title.trim() || action.description !== void 0 && (typeof action.description !== "string" || !action.description.trim()) || action.textParameterTitle !== void 0 && (typeof action.textParameterTitle !== "string" || !action.textParameterTitle.trim()) || action.systemImageName !== void 0 && (typeof action.systemImageName !== "string" || !action.systemImageName.trim()) || action.openAppWhenRun !== void 0 && typeof action.openAppWhenRun !== "boolean" || !isValidShortcutPhrase(action.shortcutPhrase) || action.shortcutPhrases !== void 0 && (!Array.isArray(action.shortcutPhrases) || action.shortcutPhrases.length === 0 || !action.shortcutPhrases.every(isValidShortcutPhrase))) {
283
330
  fail("ios.appIntents actions need unique non-empty id/title, optional description/textParameterTitle/systemImageName/openAppWhenRun, and shortcutPhrase(s) each with one {app}");
284
331
  }
@@ -286,16 +333,16 @@ function validateNativeApp(manifest, platform) {
286
333
  ids.add(action.id);
287
334
  }
288
335
  } catch (err) {
289
- _didIteratorError5 = true;
290
- _iteratorError5 = err;
336
+ _didIteratorError6 = true;
337
+ _iteratorError6 = err;
291
338
  } finally {
292
339
  try {
293
- if (!_iteratorNormalCompletion5 && _iterator5.return != null) {
294
- _iterator5.return();
340
+ if (!_iteratorNormalCompletion6 && _iterator6.return != null) {
341
+ _iterator6.return();
295
342
  }
296
343
  } finally {
297
- if (_didIteratorError5) {
298
- throw _iteratorError5;
344
+ if (_didIteratorError6) {
345
+ throw _iteratorError6;
299
346
  }
300
347
  }
301
348
  }
@@ -364,7 +411,7 @@ function validateNativeApp(manifest, platform) {
364
411
  fail("audio must configure microphone or background playback");
365
412
  }
366
413
  }
367
- if (((_manifest_ios3 = manifest.ios) === null || _manifest_ios3 === void 0 ? void 0 : _manifest_ios3.faceIdUsageDescription) !== void 0 && (typeof manifest.ios.faceIdUsageDescription !== "string" || manifest.ios.faceIdUsageDescription.trim() === "")) {
414
+ if (((_manifest_ios4 = manifest.ios) === null || _manifest_ios4 === void 0 ? void 0 : _manifest_ios4.faceIdUsageDescription) !== void 0 && (typeof manifest.ios.faceIdUsageDescription !== "string" || manifest.ios.faceIdUsageDescription.trim() === "")) {
368
415
  fail("ios.faceIdUsageDescription must be a non-empty string");
369
416
  }
370
417
  if (manifest.speech !== void 0 && (typeof ((_manifest_speech = manifest.speech) === null || _manifest_speech === void 0 ? void 0 : _manifest_speech.recognition) !== "string" || manifest.speech.recognition.trim() === "" || typeof manifest.speech.microphone !== "string" || manifest.speech.microphone.trim() === "")) {
@@ -388,17 +435,20 @@ function validateNativeApp(manifest, platform) {
388
435
  fail("notifications.apsEnvironment needs notifications.push");
389
436
  }
390
437
  }
391
- var accent = (_manifest_ios4 = manifest.ios) === null || _manifest_ios4 === void 0 ? void 0 : _manifest_ios4.accentColor;
438
+ var accent = (_manifest_ios5 = manifest.ios) === null || _manifest_ios5 === void 0 ? void 0 : _manifest_ios5.accentColor;
392
439
  if (accent !== void 0 && (!HEX_COLOR.test(accent.light) || accent.dark !== void 0 && !HEX_COLOR.test(accent.dark))) {
393
440
  fail("ios.accentColor light and dark must be six-digit hex colors");
394
441
  }
395
- var assetCatalog = (_manifest_ios5 = manifest.ios) === null || _manifest_ios5 === void 0 ? void 0 : _manifest_ios5.assetCatalog;
442
+ var assetCatalog = (_manifest_ios6 = manifest.ios) === null || _manifest_ios6 === void 0 ? void 0 : _manifest_ios6.assetCatalog;
396
443
  if (assetCatalog !== void 0 && (typeof assetCatalog !== "string" || !assetCatalog.endsWith(".xcassets"))) {
397
444
  fail("ios.assetCatalog must name a folder ending in .xcassets");
398
445
  }
399
446
  if (manifest.pictureInPicture !== void 0 && typeof manifest.pictureInPicture !== "boolean") {
400
447
  fail("pictureInPicture must be a boolean");
401
448
  }
449
+ if (((_manifest_ios7 = manifest.ios) === null || _manifest_ios7 === void 0 ? void 0 : _manifest_ios7.engine) !== void 0 && manifest.ios.engine !== "hermes" && manifest.ios.engine !== "bun") {
450
+ fail(`ios.engine must be 'hermes' or 'bun'`);
451
+ }
402
452
  if (manifest.updates !== void 0) {
403
453
  if (typeof manifest.updates.runtimeVersion !== "string" || manifest.updates.runtimeVersion.trim() === "") {
404
454
  fail("updates.runtimeVersion must be a non-empty string");
@@ -408,10 +458,10 @@ function validateNativeApp(manifest, platform) {
408
458
  }
409
459
  }
410
460
  if (!platform || platform === "ios") {
411
- var _manifest_ios6;
412
- if (!((_manifest_ios6 = manifest.ios) === null || _manifest_ios6 === void 0 ? void 0 : _manifest_ios6.bundleId) || !REVERSE_DNS.test(manifest.ios.bundleId)) {
413
- var _manifest_ios7;
414
- fail(`ios.bundleId "${(_manifest_ios7 = manifest.ios) === null || _manifest_ios7 === void 0 ? void 0 : _manifest_ios7.bundleId}" must be reverse-dns`);
461
+ var _manifest_ios8;
462
+ if (!((_manifest_ios8 = manifest.ios) === null || _manifest_ios8 === void 0 ? void 0 : _manifest_ios8.bundleId) || !REVERSE_DNS.test(manifest.ios.bundleId)) {
463
+ var _manifest_ios9;
464
+ fail(`ios.bundleId "${(_manifest_ios9 = manifest.ios) === null || _manifest_ios9 === void 0 ? void 0 : _manifest_ios9.bundleId}" must be reverse-dns`);
415
465
  }
416
466
  if (manifest.ios.deploymentTarget !== void 0 && !DEPLOYMENT_TARGET.test(manifest.ios.deploymentTarget)) {
417
467
  fail(`ios.deploymentTarget "${manifest.ios.deploymentTarget}" must look like "17.0"`);
@@ -469,10 +519,10 @@ function validateNativeApp(manifest, platform) {
469
519
  if (manifest.android.shrinkResources && !manifest.android.minify) {
470
520
  fail("android.shrinkResources needs android.minify");
471
521
  }
472
- var _iteratorNormalCompletion6 = true, _didIteratorError6 = false, _iteratorError6 = void 0;
522
+ var _iteratorNormalCompletion7 = true, _didIteratorError7 = false, _iteratorError7 = void 0;
473
523
  try {
474
- for (var _iterator6 = ((_manifest_android_appLinks = manifest.android.appLinks) !== null && _manifest_android_appLinks !== void 0 ? _manifest_android_appLinks : [])[Symbol.iterator](), _step6; !(_iteratorNormalCompletion6 = (_step6 = _iterator6.next()).done); _iteratorNormalCompletion6 = true) {
475
- var link = _step6.value;
524
+ for (var _iterator7 = ((_manifest_android_appLinks = manifest.android.appLinks) !== null && _manifest_android_appLinks !== void 0 ? _manifest_android_appLinks : [])[Symbol.iterator](), _step7; !(_iteratorNormalCompletion7 = (_step7 = _iterator7.next()).done); _iteratorNormalCompletion7 = true) {
525
+ var link = _step7.value;
476
526
  if (!link.host || !REVERSE_DNS.test(link.host)) {
477
527
  fail(`android.appLinks host "${link.host}" must be a domain`);
478
528
  }
@@ -481,16 +531,16 @@ function validateNativeApp(manifest, platform) {
481
531
  }
482
532
  }
483
533
  } catch (err) {
484
- _didIteratorError6 = true;
485
- _iteratorError6 = err;
534
+ _didIteratorError7 = true;
535
+ _iteratorError7 = err;
486
536
  } finally {
487
537
  try {
488
- if (!_iteratorNormalCompletion6 && _iterator6.return != null) {
489
- _iterator6.return();
538
+ if (!_iteratorNormalCompletion7 && _iterator7.return != null) {
539
+ _iterator7.return();
490
540
  }
491
541
  } finally {
492
- if (_didIteratorError6) {
493
- throw _iteratorError6;
542
+ if (_didIteratorError7) {
543
+ throw _iteratorError7;
494
544
  }
495
545
  }
496
546
  }