@vxrn/utils 2.0.0-beta.131.1 → 2.0.0-beta.133.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,6 +31,7 @@ const BUILD_NUMBER = /^[A-Za-z0-9.]+$/;
31
31
  const REVERSE_DNS = /^[A-Za-z][A-Za-z0-9-]*(\.[A-Za-z][A-Za-z0-9-]*)+$/;
32
32
  const DEPLOYMENT_TARGET = /^\d+\.\d+$/;
33
33
  const HEX_COLOR = /^#[\da-f]{6}$/i;
34
+ const FONT_FILE = /\.(ttf|otf)$/i;
34
35
  const ORIENTATIONS = [
35
36
  "portrait",
36
37
  "landscape",
@@ -62,6 +63,17 @@ function validateNativeApp(manifest, platform) {
62
63
  if (manifest.userInterfaceStyle !== void 0 && !USER_INTERFACE_STYLES.includes(manifest.userInterfaceStyle)) {
63
64
  fail(`userInterfaceStyle "${manifest.userInterfaceStyle}" must be ${USER_INTERFACE_STYLES.join(", ")}`);
64
65
  }
66
+ if (manifest.fonts !== void 0) {
67
+ const names = /* @__PURE__ */ new Set();
68
+ for (const font of manifest.fonts) {
69
+ if (typeof font !== "string" || !FONT_FILE.test(font)) {
70
+ fail(`fonts entry "${font}" must be a .ttf or .otf file path`);
71
+ }
72
+ const name = font.split("/").pop() ?? font;
73
+ if (names.has(name)) fail(`fonts lists ${name} twice`);
74
+ names.add(name);
75
+ }
76
+ }
65
77
  if (manifest.version !== void 0 && !VERSION.test(manifest.version)) {
66
78
  fail(`version "${manifest.version}" must start with major.minor.patch`);
67
79
  }
@@ -71,6 +83,12 @@ function validateNativeApp(manifest, platform) {
71
83
  if (manifest.splash !== void 0 && (!manifest.splash.source || !HEX_COLOR.test(manifest.splash.backgroundColor) || manifest.splash.width !== void 0 && (!Number.isFinite(manifest.splash.width) || manifest.splash.width < 1 || manifest.splash.width > 288))) {
72
84
  fail("splash requires source, a six-digit hex backgroundColor, and width from 1 to 288");
73
85
  }
86
+ if (manifest.splash?.dark !== void 0 && !HEX_COLOR.test(manifest.splash.dark.backgroundColor)) {
87
+ fail("splash.dark requires a six-digit hex backgroundColor");
88
+ }
89
+ if (manifest.splash?.dark?.backgroundImage !== void 0 && manifest.splash.backgroundImage === void 0) {
90
+ fail("splash.dark.backgroundImage needs splash.backgroundImage for the light launch");
91
+ }
74
92
  if (manifest.splash?.resizeMode !== void 0 && manifest.splash.resizeMode !== "contain" && manifest.splash.resizeMode !== "cover") {
75
93
  fail(`splash.resizeMode "${manifest.splash.resizeMode}" must be contain or cover`);
76
94
  }
@@ -121,6 +139,17 @@ function validateNativeApp(manifest, platform) {
121
139
  if (typeof manifest.notifications !== "object" || manifest.notifications.push !== void 0 && typeof manifest.notifications.push !== "boolean") {
122
140
  fail("notifications.push must be a boolean");
123
141
  }
142
+ const aps = manifest.notifications.apsEnvironment;
143
+ if (aps !== void 0 && aps !== "development" && aps !== "production") {
144
+ fail(`notifications.apsEnvironment "${aps}" must be development or production`);
145
+ }
146
+ if (aps !== void 0 && !manifest.notifications.push) {
147
+ fail("notifications.apsEnvironment needs notifications.push");
148
+ }
149
+ }
150
+ const accent = manifest.ios?.accentColor;
151
+ if (accent !== void 0 && (!HEX_COLOR.test(accent.light) || accent.dark !== void 0 && !HEX_COLOR.test(accent.dark))) {
152
+ fail("ios.accentColor light and dark must be six-digit hex colors");
124
153
  }
125
154
  if (manifest.pictureInPicture !== void 0 && typeof manifest.pictureInPicture !== "boolean") {
126
155
  fail("pictureInPicture must be a boolean");
@@ -178,6 +207,9 @@ function validateNativeApp(manifest, platform) {
178
207
  fail(`android.${key} "${value}" must be an api level integer`);
179
208
  }
180
209
  }
210
+ if (manifest.android.shrinkResources && !manifest.android.minify) {
211
+ fail("android.shrinkResources needs android.minify");
212
+ }
181
213
  for (const link of manifest.android.appLinks ?? []) {
182
214
  if (!link.host || !REVERSE_DNS.test(link.host)) {
183
215
  fail(`android.appLinks host "${link.host}" must be a domain`);
@@ -209,14 +241,20 @@ function expoClientFromNativeApp(app) {
209
241
  image: app.splash.source,
210
242
  backgroundColor: app.splash.backgroundColor,
211
243
  imageWidth: app.splash.width,
212
- resizeMode: app.splash.resizeMode
244
+ resizeMode: app.splash.resizeMode,
245
+ dark: app.splash.dark && {
246
+ image: app.splash.dark.source,
247
+ backgroundColor: app.splash.dark.backgroundColor
248
+ }
213
249
  },
250
+ plugins: app.fonts?.length ? [["expo-font", { fonts: app.fonts }]] : void 0,
214
251
  ios: app.ios && {
215
252
  bundleIdentifier: app.ios.bundleId,
216
253
  buildNumber: app.ios.buildNumber,
217
254
  supportsTablet: app.ios.tablet,
218
255
  associatedDomains: app.ios.associatedDomains,
219
256
  usesAppleSignIn: app.ios.usesAppleSignIn,
257
+ googleServicesFile: app.ios.googleServicesFile,
220
258
  infoPlist: app.ios.infoPlist,
221
259
  entitlements: app.ios.entitlements
222
260
  },
@@ -225,6 +263,7 @@ function expoClientFromNativeApp(app) {
225
263
  versionCode: app.android.versionCode,
226
264
  permissions: app.android.permissions,
227
265
  blockedPermissions: app.android.blockedPermissions,
266
+ googleServicesFile: app.android.googleServicesFile,
228
267
  adaptiveIcon: app.android.adaptiveIcon && {
229
268
  foregroundImage: app.android.adaptiveIcon.foreground,
230
269
  backgroundImage: app.android.adaptiveIcon.background,
@@ -33,6 +33,7 @@ var BUILD_NUMBER = /^[A-Za-z0-9.]+$/;
33
33
  var REVERSE_DNS = /^[A-Za-z][A-Za-z0-9-]*(\.[A-Za-z][A-Za-z0-9-]*)+$/;
34
34
  var DEPLOYMENT_TARGET = /^\d+\.\d+$/;
35
35
  var HEX_COLOR = /^#[\da-f]{6}$/i;
36
+ var FONT_FILE = /\.(ttf|otf)$/i;
36
37
  var ORIENTATIONS = [
37
38
  "portrait",
38
39
  "landscape",
@@ -47,7 +48,7 @@ function fail(message) {
47
48
  throw new Error(`[one] invalid native.app: ${message}`);
48
49
  }
49
50
  function validateNativeApp(manifest, platform) {
50
- var _manifest_splash, _manifest_imagePicker, _manifest_ios, _manifest_speech;
51
+ var _manifest_splash, _manifest_splash_dark, _manifest_splash1, _manifest_splash2, _manifest_imagePicker, _manifest_ios, _manifest_speech, _manifest_ios1;
51
52
  if (!manifest || typeof manifest !== "object") fail("manifest must be an object");
52
53
  if (!manifest.name || typeof manifest.name !== "string") fail("name is required");
53
54
  if (!TARGET_NAME.test(manifest.name)) {
@@ -82,6 +83,35 @@ function validateNativeApp(manifest, platform) {
82
83
  if (manifest.userInterfaceStyle !== void 0 && !USER_INTERFACE_STYLES.includes(manifest.userInterfaceStyle)) {
83
84
  fail(`userInterfaceStyle "${manifest.userInterfaceStyle}" must be ${USER_INTERFACE_STYLES.join(", ")}`);
84
85
  }
86
+ if (manifest.fonts !== void 0) {
87
+ var names = /* @__PURE__ */ new Set();
88
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
89
+ try {
90
+ for (var _iterator1 = manifest.fonts[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
91
+ var font = _step1.value;
92
+ var _font_split_pop;
93
+ if (typeof font !== "string" || !FONT_FILE.test(font)) {
94
+ fail(`fonts entry "${font}" must be a .ttf or .otf file path`);
95
+ }
96
+ var name = (_font_split_pop = font.split("/").pop()) !== null && _font_split_pop !== void 0 ? _font_split_pop : font;
97
+ if (names.has(name)) fail(`fonts lists ${name} twice`);
98
+ names.add(name);
99
+ }
100
+ } catch (err) {
101
+ _didIteratorError1 = true;
102
+ _iteratorError1 = err;
103
+ } finally {
104
+ try {
105
+ if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
106
+ _iterator1.return();
107
+ }
108
+ } finally {
109
+ if (_didIteratorError1) {
110
+ throw _iteratorError1;
111
+ }
112
+ }
113
+ }
114
+ }
85
115
  if (manifest.version !== void 0 && !VERSION.test(manifest.version)) {
86
116
  fail(`version "${manifest.version}" must start with major.minor.patch`);
87
117
  }
@@ -91,7 +121,13 @@ function validateNativeApp(manifest, platform) {
91
121
  if (manifest.splash !== void 0 && (!manifest.splash.source || !HEX_COLOR.test(manifest.splash.backgroundColor) || manifest.splash.width !== void 0 && (!Number.isFinite(manifest.splash.width) || manifest.splash.width < 1 || manifest.splash.width > 288))) {
92
122
  fail("splash requires source, a six-digit hex backgroundColor, and width from 1 to 288");
93
123
  }
94
- if (((_manifest_splash = manifest.splash) === null || _manifest_splash === void 0 ? void 0 : _manifest_splash.resizeMode) !== void 0 && manifest.splash.resizeMode !== "contain" && manifest.splash.resizeMode !== "cover") {
124
+ if (((_manifest_splash = manifest.splash) === null || _manifest_splash === void 0 ? void 0 : _manifest_splash.dark) !== void 0 && !HEX_COLOR.test(manifest.splash.dark.backgroundColor)) {
125
+ fail("splash.dark requires a six-digit hex backgroundColor");
126
+ }
127
+ if (((_manifest_splash1 = manifest.splash) === null || _manifest_splash1 === void 0 ? void 0 : (_manifest_splash_dark = _manifest_splash1.dark) === null || _manifest_splash_dark === void 0 ? void 0 : _manifest_splash_dark.backgroundImage) !== void 0 && manifest.splash.backgroundImage === void 0) {
128
+ fail("splash.dark.backgroundImage needs splash.backgroundImage for the light launch");
129
+ }
130
+ if (((_manifest_splash2 = manifest.splash) === null || _manifest_splash2 === void 0 ? void 0 : _manifest_splash2.resizeMode) !== void 0 && manifest.splash.resizeMode !== "contain" && manifest.splash.resizeMode !== "cover") {
95
131
  fail(`splash.resizeMode "${manifest.splash.resizeMode}" must be contain or cover`);
96
132
  }
97
133
  if (((_manifest_imagePicker = manifest.imagePicker) === null || _manifest_imagePicker === void 0 ? void 0 : _manifest_imagePicker.camera) !== void 0 && (typeof manifest.imagePicker.camera !== "string" || manifest.imagePicker.camera.trim() === "")) {
@@ -141,6 +177,17 @@ function validateNativeApp(manifest, platform) {
141
177
  if (typeof manifest.notifications !== "object" || manifest.notifications.push !== void 0 && typeof manifest.notifications.push !== "boolean") {
142
178
  fail("notifications.push must be a boolean");
143
179
  }
180
+ var aps = manifest.notifications.apsEnvironment;
181
+ if (aps !== void 0 && aps !== "development" && aps !== "production") {
182
+ fail(`notifications.apsEnvironment "${aps}" must be development or production`);
183
+ }
184
+ if (aps !== void 0 && !manifest.notifications.push) {
185
+ fail("notifications.apsEnvironment needs notifications.push");
186
+ }
187
+ }
188
+ var accent = (_manifest_ios1 = manifest.ios) === null || _manifest_ios1 === void 0 ? void 0 : _manifest_ios1.accentColor;
189
+ if (accent !== void 0 && (!HEX_COLOR.test(accent.light) || accent.dark !== void 0 && !HEX_COLOR.test(accent.dark))) {
190
+ fail("ios.accentColor light and dark must be six-digit hex colors");
144
191
  }
145
192
  if (manifest.pictureInPicture !== void 0 && typeof manifest.pictureInPicture !== "boolean") {
146
193
  fail("pictureInPicture must be a boolean");
@@ -154,10 +201,10 @@ function validateNativeApp(manifest, platform) {
154
201
  }
155
202
  }
156
203
  if (!platform || platform === "ios") {
157
- var _manifest_ios1;
158
- if (!((_manifest_ios1 = manifest.ios) === null || _manifest_ios1 === void 0 ? void 0 : _manifest_ios1.bundleId) || !REVERSE_DNS.test(manifest.ios.bundleId)) {
159
- var _manifest_ios2;
160
- fail(`ios.bundleId "${(_manifest_ios2 = manifest.ios) === null || _manifest_ios2 === void 0 ? void 0 : _manifest_ios2.bundleId}" must be reverse-dns`);
204
+ var _manifest_ios2;
205
+ if (!((_manifest_ios2 = manifest.ios) === null || _manifest_ios2 === void 0 ? void 0 : _manifest_ios2.bundleId) || !REVERSE_DNS.test(manifest.ios.bundleId)) {
206
+ var _manifest_ios3;
207
+ fail(`ios.bundleId "${(_manifest_ios3 = manifest.ios) === null || _manifest_ios3 === void 0 ? void 0 : _manifest_ios3.bundleId}" must be reverse-dns`);
161
208
  }
162
209
  if (manifest.ios.deploymentTarget !== void 0 && !DEPLOYMENT_TARGET.test(manifest.ios.deploymentTarget)) {
163
210
  fail(`ios.deploymentTarget "${manifest.ios.deploymentTarget}" must look like "17.0"`);
@@ -205,10 +252,13 @@ function validateNativeApp(manifest, platform) {
205
252
  fail(`android.${key} "${value}" must be an api level integer`);
206
253
  }
207
254
  }
208
- var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
255
+ if (manifest.android.shrinkResources && !manifest.android.minify) {
256
+ fail("android.shrinkResources needs android.minify");
257
+ }
258
+ var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;
209
259
  try {
210
- for (var _iterator1 = ((_manifest_android_appLinks = manifest.android.appLinks) !== null && _manifest_android_appLinks !== void 0 ? _manifest_android_appLinks : [])[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
211
- var link = _step1.value;
260
+ for (var _iterator2 = ((_manifest_android_appLinks = manifest.android.appLinks) !== null && _manifest_android_appLinks !== void 0 ? _manifest_android_appLinks : [])[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
261
+ var link = _step2.value;
212
262
  if (!link.host || !REVERSE_DNS.test(link.host)) {
213
263
  fail(`android.appLinks host "${link.host}" must be a domain`);
214
264
  }
@@ -217,16 +267,16 @@ function validateNativeApp(manifest, platform) {
217
267
  }
218
268
  }
219
269
  } catch (err) {
220
- _didIteratorError1 = true;
221
- _iteratorError1 = err;
270
+ _didIteratorError2 = true;
271
+ _iteratorError2 = err;
222
272
  } finally {
223
273
  try {
224
- if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
225
- _iterator1.return();
274
+ if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
275
+ _iterator2.return();
226
276
  }
227
277
  } finally {
228
- if (_didIteratorError1) {
229
- throw _iteratorError1;
278
+ if (_didIteratorError2) {
279
+ throw _iteratorError2;
230
280
  }
231
281
  }
232
282
  }
@@ -242,7 +292,7 @@ function validateNativeApp(manifest, platform) {
242
292
  }
243
293
  function expoClientFromNativeApp(app) {
244
294
  var _app_displayName;
245
- var _app_icon;
295
+ var _app_icon, _app_fonts;
246
296
  return {
247
297
  name: (_app_displayName = app.displayName) !== null && _app_displayName !== void 0 ? _app_displayName : app.name,
248
298
  slug: app.name,
@@ -255,14 +305,20 @@ function expoClientFromNativeApp(app) {
255
305
  image: app.splash.source,
256
306
  backgroundColor: app.splash.backgroundColor,
257
307
  imageWidth: app.splash.width,
258
- resizeMode: app.splash.resizeMode
308
+ resizeMode: app.splash.resizeMode,
309
+ dark: app.splash.dark && {
310
+ image: app.splash.dark.source,
311
+ backgroundColor: app.splash.dark.backgroundColor
312
+ }
259
313
  },
314
+ plugins: ((_app_fonts = app.fonts) === null || _app_fonts === void 0 ? void 0 : _app_fonts.length) ? [["expo-font", { fonts: app.fonts }]] : void 0,
260
315
  ios: app.ios && {
261
316
  bundleIdentifier: app.ios.bundleId,
262
317
  buildNumber: app.ios.buildNumber,
263
318
  supportsTablet: app.ios.tablet,
264
319
  associatedDomains: app.ios.associatedDomains,
265
320
  usesAppleSignIn: app.ios.usesAppleSignIn,
321
+ googleServicesFile: app.ios.googleServicesFile,
266
322
  infoPlist: app.ios.infoPlist,
267
323
  entitlements: app.ios.entitlements
268
324
  },
@@ -271,6 +327,7 @@ function expoClientFromNativeApp(app) {
271
327
  versionCode: app.android.versionCode,
272
328
  permissions: app.android.permissions,
273
329
  blockedPermissions: app.android.blockedPermissions,
330
+ googleServicesFile: app.android.googleServicesFile,
274
331
  adaptiveIcon: app.android.adaptiveIcon && {
275
332
  foregroundImage: app.android.adaptiveIcon.foreground,
276
333
  backgroundImage: app.android.adaptiveIcon.background,
@@ -33,6 +33,7 @@ var BUILD_NUMBER = /^[A-Za-z0-9.]+$/;
33
33
  var REVERSE_DNS = /^[A-Za-z][A-Za-z0-9-]*(\.[A-Za-z][A-Za-z0-9-]*)+$/;
34
34
  var DEPLOYMENT_TARGET = /^\d+\.\d+$/;
35
35
  var HEX_COLOR = /^#[\da-f]{6}$/i;
36
+ var FONT_FILE = /\.(ttf|otf)$/i;
36
37
  var ORIENTATIONS = [
37
38
  "portrait",
38
39
  "landscape",
@@ -47,7 +48,7 @@ function fail(message) {
47
48
  throw new Error(`[one] invalid native.app: ${message}`);
48
49
  }
49
50
  function validateNativeApp(manifest, platform) {
50
- var _manifest_splash, _manifest_imagePicker, _manifest_ios, _manifest_speech;
51
+ var _manifest_splash, _manifest_splash_dark, _manifest_splash1, _manifest_splash2, _manifest_imagePicker, _manifest_ios, _manifest_speech, _manifest_ios1;
51
52
  if (!manifest || typeof manifest !== "object") fail("manifest must be an object");
52
53
  if (!manifest.name || typeof manifest.name !== "string") fail("name is required");
53
54
  if (!TARGET_NAME.test(manifest.name)) {
@@ -82,6 +83,35 @@ function validateNativeApp(manifest, platform) {
82
83
  if (manifest.userInterfaceStyle !== void 0 && !USER_INTERFACE_STYLES.includes(manifest.userInterfaceStyle)) {
83
84
  fail(`userInterfaceStyle "${manifest.userInterfaceStyle}" must be ${USER_INTERFACE_STYLES.join(", ")}`);
84
85
  }
86
+ if (manifest.fonts !== void 0) {
87
+ var names = /* @__PURE__ */ new Set();
88
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
89
+ try {
90
+ for (var _iterator1 = manifest.fonts[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
91
+ var font = _step1.value;
92
+ var _font_split_pop;
93
+ if (typeof font !== "string" || !FONT_FILE.test(font)) {
94
+ fail(`fonts entry "${font}" must be a .ttf or .otf file path`);
95
+ }
96
+ var name = (_font_split_pop = font.split("/").pop()) !== null && _font_split_pop !== void 0 ? _font_split_pop : font;
97
+ if (names.has(name)) fail(`fonts lists ${name} twice`);
98
+ names.add(name);
99
+ }
100
+ } catch (err) {
101
+ _didIteratorError1 = true;
102
+ _iteratorError1 = err;
103
+ } finally {
104
+ try {
105
+ if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
106
+ _iterator1.return();
107
+ }
108
+ } finally {
109
+ if (_didIteratorError1) {
110
+ throw _iteratorError1;
111
+ }
112
+ }
113
+ }
114
+ }
85
115
  if (manifest.version !== void 0 && !VERSION.test(manifest.version)) {
86
116
  fail(`version "${manifest.version}" must start with major.minor.patch`);
87
117
  }
@@ -91,7 +121,13 @@ function validateNativeApp(manifest, platform) {
91
121
  if (manifest.splash !== void 0 && (!manifest.splash.source || !HEX_COLOR.test(manifest.splash.backgroundColor) || manifest.splash.width !== void 0 && (!Number.isFinite(manifest.splash.width) || manifest.splash.width < 1 || manifest.splash.width > 288))) {
92
122
  fail("splash requires source, a six-digit hex backgroundColor, and width from 1 to 288");
93
123
  }
94
- if (((_manifest_splash = manifest.splash) === null || _manifest_splash === void 0 ? void 0 : _manifest_splash.resizeMode) !== void 0 && manifest.splash.resizeMode !== "contain" && manifest.splash.resizeMode !== "cover") {
124
+ if (((_manifest_splash = manifest.splash) === null || _manifest_splash === void 0 ? void 0 : _manifest_splash.dark) !== void 0 && !HEX_COLOR.test(manifest.splash.dark.backgroundColor)) {
125
+ fail("splash.dark requires a six-digit hex backgroundColor");
126
+ }
127
+ if (((_manifest_splash1 = manifest.splash) === null || _manifest_splash1 === void 0 ? void 0 : (_manifest_splash_dark = _manifest_splash1.dark) === null || _manifest_splash_dark === void 0 ? void 0 : _manifest_splash_dark.backgroundImage) !== void 0 && manifest.splash.backgroundImage === void 0) {
128
+ fail("splash.dark.backgroundImage needs splash.backgroundImage for the light launch");
129
+ }
130
+ if (((_manifest_splash2 = manifest.splash) === null || _manifest_splash2 === void 0 ? void 0 : _manifest_splash2.resizeMode) !== void 0 && manifest.splash.resizeMode !== "contain" && manifest.splash.resizeMode !== "cover") {
95
131
  fail(`splash.resizeMode "${manifest.splash.resizeMode}" must be contain or cover`);
96
132
  }
97
133
  if (((_manifest_imagePicker = manifest.imagePicker) === null || _manifest_imagePicker === void 0 ? void 0 : _manifest_imagePicker.camera) !== void 0 && (typeof manifest.imagePicker.camera !== "string" || manifest.imagePicker.camera.trim() === "")) {
@@ -141,6 +177,17 @@ function validateNativeApp(manifest, platform) {
141
177
  if (typeof manifest.notifications !== "object" || manifest.notifications.push !== void 0 && typeof manifest.notifications.push !== "boolean") {
142
178
  fail("notifications.push must be a boolean");
143
179
  }
180
+ var aps = manifest.notifications.apsEnvironment;
181
+ if (aps !== void 0 && aps !== "development" && aps !== "production") {
182
+ fail(`notifications.apsEnvironment "${aps}" must be development or production`);
183
+ }
184
+ if (aps !== void 0 && !manifest.notifications.push) {
185
+ fail("notifications.apsEnvironment needs notifications.push");
186
+ }
187
+ }
188
+ var accent = (_manifest_ios1 = manifest.ios) === null || _manifest_ios1 === void 0 ? void 0 : _manifest_ios1.accentColor;
189
+ if (accent !== void 0 && (!HEX_COLOR.test(accent.light) || accent.dark !== void 0 && !HEX_COLOR.test(accent.dark))) {
190
+ fail("ios.accentColor light and dark must be six-digit hex colors");
144
191
  }
145
192
  if (manifest.pictureInPicture !== void 0 && typeof manifest.pictureInPicture !== "boolean") {
146
193
  fail("pictureInPicture must be a boolean");
@@ -154,10 +201,10 @@ function validateNativeApp(manifest, platform) {
154
201
  }
155
202
  }
156
203
  if (!platform || platform === "ios") {
157
- var _manifest_ios1;
158
- if (!((_manifest_ios1 = manifest.ios) === null || _manifest_ios1 === void 0 ? void 0 : _manifest_ios1.bundleId) || !REVERSE_DNS.test(manifest.ios.bundleId)) {
159
- var _manifest_ios2;
160
- fail(`ios.bundleId "${(_manifest_ios2 = manifest.ios) === null || _manifest_ios2 === void 0 ? void 0 : _manifest_ios2.bundleId}" must be reverse-dns`);
204
+ var _manifest_ios2;
205
+ if (!((_manifest_ios2 = manifest.ios) === null || _manifest_ios2 === void 0 ? void 0 : _manifest_ios2.bundleId) || !REVERSE_DNS.test(manifest.ios.bundleId)) {
206
+ var _manifest_ios3;
207
+ fail(`ios.bundleId "${(_manifest_ios3 = manifest.ios) === null || _manifest_ios3 === void 0 ? void 0 : _manifest_ios3.bundleId}" must be reverse-dns`);
161
208
  }
162
209
  if (manifest.ios.deploymentTarget !== void 0 && !DEPLOYMENT_TARGET.test(manifest.ios.deploymentTarget)) {
163
210
  fail(`ios.deploymentTarget "${manifest.ios.deploymentTarget}" must look like "17.0"`);
@@ -205,10 +252,13 @@ function validateNativeApp(manifest, platform) {
205
252
  fail(`android.${key} "${value}" must be an api level integer`);
206
253
  }
207
254
  }
208
- var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
255
+ if (manifest.android.shrinkResources && !manifest.android.minify) {
256
+ fail("android.shrinkResources needs android.minify");
257
+ }
258
+ var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;
209
259
  try {
210
- for (var _iterator1 = ((_manifest_android_appLinks = manifest.android.appLinks) !== null && _manifest_android_appLinks !== void 0 ? _manifest_android_appLinks : [])[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
211
- var link = _step1.value;
260
+ for (var _iterator2 = ((_manifest_android_appLinks = manifest.android.appLinks) !== null && _manifest_android_appLinks !== void 0 ? _manifest_android_appLinks : [])[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
261
+ var link = _step2.value;
212
262
  if (!link.host || !REVERSE_DNS.test(link.host)) {
213
263
  fail(`android.appLinks host "${link.host}" must be a domain`);
214
264
  }
@@ -217,16 +267,16 @@ function validateNativeApp(manifest, platform) {
217
267
  }
218
268
  }
219
269
  } catch (err) {
220
- _didIteratorError1 = true;
221
- _iteratorError1 = err;
270
+ _didIteratorError2 = true;
271
+ _iteratorError2 = err;
222
272
  } finally {
223
273
  try {
224
- if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
225
- _iterator1.return();
274
+ if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
275
+ _iterator2.return();
226
276
  }
227
277
  } finally {
228
- if (_didIteratorError1) {
229
- throw _iteratorError1;
278
+ if (_didIteratorError2) {
279
+ throw _iteratorError2;
230
280
  }
231
281
  }
232
282
  }
@@ -242,7 +292,7 @@ function validateNativeApp(manifest, platform) {
242
292
  }
243
293
  function expoClientFromNativeApp(app) {
244
294
  var _app_displayName;
245
- var _app_icon;
295
+ var _app_icon, _app_fonts;
246
296
  return {
247
297
  name: (_app_displayName = app.displayName) !== null && _app_displayName !== void 0 ? _app_displayName : app.name,
248
298
  slug: app.name,
@@ -255,14 +305,20 @@ function expoClientFromNativeApp(app) {
255
305
  image: app.splash.source,
256
306
  backgroundColor: app.splash.backgroundColor,
257
307
  imageWidth: app.splash.width,
258
- resizeMode: app.splash.resizeMode
308
+ resizeMode: app.splash.resizeMode,
309
+ dark: app.splash.dark && {
310
+ image: app.splash.dark.source,
311
+ backgroundColor: app.splash.dark.backgroundColor
312
+ }
259
313
  },
314
+ plugins: ((_app_fonts = app.fonts) === null || _app_fonts === void 0 ? void 0 : _app_fonts.length) ? [["expo-font", { fonts: app.fonts }]] : void 0,
260
315
  ios: app.ios && {
261
316
  bundleIdentifier: app.ios.bundleId,
262
317
  buildNumber: app.ios.buildNumber,
263
318
  supportsTablet: app.ios.tablet,
264
319
  associatedDomains: app.ios.associatedDomains,
265
320
  usesAppleSignIn: app.ios.usesAppleSignIn,
321
+ googleServicesFile: app.ios.googleServicesFile,
266
322
  infoPlist: app.ios.infoPlist,
267
323
  entitlements: app.ios.entitlements
268
324
  },
@@ -271,6 +327,7 @@ function expoClientFromNativeApp(app) {
271
327
  versionCode: app.android.versionCode,
272
328
  permissions: app.android.permissions,
273
329
  blockedPermissions: app.android.blockedPermissions,
330
+ googleServicesFile: app.android.googleServicesFile,
274
331
  adaptiveIcon: app.android.adaptiveIcon && {
275
332
  foregroundImage: app.android.adaptiveIcon.foreground,
276
333
  backgroundImage: app.android.adaptiveIcon.background,
@@ -1 +1 @@
1
- {"version":3,"file":"nativeAppManifest.native.js","names":[],"sources":["cjs/nativeAppManifest.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar nativeAppManifest_exports = {};\n__export(nativeAppManifest_exports, {\n expoClientFromNativeApp: () => expoClientFromNativeApp,\n validateNativeApp: () => validateNativeApp\n});\nmodule.exports = __toCommonJS(nativeAppManifest_exports);\nvar TARGET_NAME = /^[A-Za-z][A-Za-z0-9_]*$/;\nvar SCHEME = /^[a-z][a-z0-9+.-]*$/i;\nvar VERSION = /^\\d+\\.\\d+\\.\\d+/;\nvar BUILD_NUMBER = /^[A-Za-z0-9.]+$/;\nvar REVERSE_DNS = /^[A-Za-z][A-Za-z0-9-]*(\\.[A-Za-z][A-Za-z0-9-]*)+$/;\nvar DEPLOYMENT_TARGET = /^\\d+\\.\\d+$/;\nvar HEX_COLOR = /^#[\\da-f]{6}$/i;\nvar ORIENTATIONS = [\n \"portrait\",\n \"landscape\",\n \"default\"\n];\nvar USER_INTERFACE_STYLES = [\n \"light\",\n \"dark\",\n \"automatic\"\n];\nfunction fail(message) {\n throw new Error(`[one] invalid native.app: ${message}`);\n}\nfunction validateNativeApp(manifest, platform) {\n var _manifest_splash, _manifest_imagePicker, _manifest_ios, _manifest_speech;\n if (!manifest || typeof manifest !== \"object\") fail(\"manifest must be an object\");\n if (!manifest.name || typeof manifest.name !== \"string\") fail(\"name is required\");\n if (!TARGET_NAME.test(manifest.name)) {\n fail(`name \"${manifest.name}\" must start with a letter and contain only letters, digits, and underscore`);\n }\n var schemes = manifest.scheme === void 0 ? [] : Array.isArray(manifest.scheme) ? manifest.scheme : [\n manifest.scheme\n ];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = schemes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var scheme = _step.value;\n if (typeof scheme !== \"string\" || !SCHEME.test(scheme)) {\n fail(`scheme \"${scheme}\" must be a valid uri scheme`);\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n if (manifest.orientation !== void 0 && !ORIENTATIONS.includes(manifest.orientation)) {\n fail(`orientation \"${manifest.orientation}\" must be ${ORIENTATIONS.join(\", \")}`);\n }\n if (manifest.userInterfaceStyle !== void 0 && !USER_INTERFACE_STYLES.includes(manifest.userInterfaceStyle)) {\n fail(`userInterfaceStyle \"${manifest.userInterfaceStyle}\" must be ${USER_INTERFACE_STYLES.join(\", \")}`);\n }\n if (manifest.version !== void 0 && !VERSION.test(manifest.version)) {\n fail(`version \"${manifest.version}\" must start with major.minor.patch`);\n }\n if (manifest.icon !== void 0 && (!manifest.icon.source || !HEX_COLOR.test(manifest.icon.backgroundColor))) {\n fail(\"icon requires source and a six-digit hex backgroundColor\");\n }\n if (manifest.splash !== void 0 && (!manifest.splash.source || !HEX_COLOR.test(manifest.splash.backgroundColor) || manifest.splash.width !== void 0 && (!Number.isFinite(manifest.splash.width) || manifest.splash.width < 1 || manifest.splash.width > 288))) {\n fail(\"splash requires source, a six-digit hex backgroundColor, and width from 1 to 288\");\n }\n if (((_manifest_splash = manifest.splash) === null || _manifest_splash === void 0 ? void 0 : _manifest_splash.resizeMode) !== void 0 && manifest.splash.resizeMode !== \"contain\" && manifest.splash.resizeMode !== \"cover\") {\n fail(`splash.resizeMode \"${manifest.splash.resizeMode}\" must be contain or cover`);\n }\n if (((_manifest_imagePicker = manifest.imagePicker) === null || _manifest_imagePicker === void 0 ? void 0 : _manifest_imagePicker.camera) !== void 0 && (typeof manifest.imagePicker.camera !== \"string\" || manifest.imagePicker.camera.trim() === \"\")) {\n fail(\"imagePicker.camera must be a non-empty string\");\n }\n if (manifest.photoLibrary !== void 0 && (!manifest.photoLibrary || typeof manifest.photoLibrary.addOnly !== \"string\" || manifest.photoLibrary.addOnly.trim() === \"\")) {\n fail(\"photoLibrary.addOnly must be a non-empty string\");\n }\n if (manifest.contacts !== void 0 && (!manifest.contacts || typeof manifest.contacts.usage !== \"string\" || manifest.contacts.usage.trim() === \"\")) {\n fail(\"contacts.usage must be a non-empty string\");\n }\n if (manifest.calendar !== void 0) {\n if (!manifest.calendar || manifest.calendar.usage === void 0 && manifest.calendar.remindersUsage === void 0) {\n fail(\"calendar.usage or calendar.remindersUsage must be a non-empty string\");\n }\n if (manifest.calendar.usage !== void 0 && (typeof manifest.calendar.usage !== \"string\" || manifest.calendar.usage.trim() === \"\")) {\n fail(\"calendar.usage must be a non-empty string\");\n }\n if (manifest.calendar.remindersUsage !== void 0 && (typeof manifest.calendar.remindersUsage !== \"string\" || manifest.calendar.remindersUsage.trim() === \"\")) {\n fail(\"calendar.remindersUsage must be a non-empty string\");\n }\n }\n if (manifest.location !== void 0 && (!manifest.location || typeof manifest.location.whenInUse !== \"string\" || manifest.location.whenInUse.trim() === \"\")) {\n fail(\"location.whenInUse must be a non-empty string\");\n }\n if (manifest.audio !== void 0) {\n if (!manifest.audio || typeof manifest.audio !== \"object\") {\n fail(\"audio must configure microphone or background playback\");\n }\n if (manifest.audio.microphone !== void 0 && (typeof manifest.audio.microphone !== \"string\" || manifest.audio.microphone.trim() === \"\")) {\n fail(\"audio.microphone must be a non-empty string\");\n }\n if (manifest.audio.background !== void 0 && typeof manifest.audio.background !== \"boolean\") {\n fail(\"audio.background must be a boolean\");\n }\n if (manifest.audio.microphone === void 0 && manifest.audio.background !== true) {\n fail(\"audio must configure microphone or background playback\");\n }\n }\n if (((_manifest_ios = manifest.ios) === null || _manifest_ios === void 0 ? void 0 : _manifest_ios.faceIdUsageDescription) !== void 0 && (typeof manifest.ios.faceIdUsageDescription !== \"string\" || manifest.ios.faceIdUsageDescription.trim() === \"\")) {\n fail(\"ios.faceIdUsageDescription must be a non-empty string\");\n }\n 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() === \"\")) {\n fail(\"speech.recognition and speech.microphone must be non-empty strings\");\n }\n if (manifest.notifications !== void 0) {\n if (typeof manifest.notifications !== \"object\" || manifest.notifications.push !== void 0 && typeof manifest.notifications.push !== \"boolean\") {\n fail(\"notifications.push must be a boolean\");\n }\n }\n if (manifest.pictureInPicture !== void 0 && typeof manifest.pictureInPicture !== \"boolean\") {\n fail(\"pictureInPicture must be a boolean\");\n }\n if (manifest.updates !== void 0) {\n if (typeof manifest.updates.runtimeVersion !== \"string\" || manifest.updates.runtimeVersion.trim() === \"\") {\n fail(\"updates.runtimeVersion must be a non-empty string\");\n }\n if (manifest.updates.url !== void 0 && (typeof manifest.updates.url !== \"string\" || manifest.updates.url.trim() === \"\")) {\n fail(\"updates.url must be a non-empty string\");\n }\n }\n if (!platform || platform === \"ios\") {\n var _manifest_ios1;\n if (!((_manifest_ios1 = manifest.ios) === null || _manifest_ios1 === void 0 ? void 0 : _manifest_ios1.bundleId) || !REVERSE_DNS.test(manifest.ios.bundleId)) {\n var _manifest_ios2;\n fail(`ios.bundleId \"${(_manifest_ios2 = manifest.ios) === null || _manifest_ios2 === void 0 ? void 0 : _manifest_ios2.bundleId}\" must be reverse-dns`);\n }\n if (manifest.ios.deploymentTarget !== void 0 && !DEPLOYMENT_TARGET.test(manifest.ios.deploymentTarget)) {\n fail(`ios.deploymentTarget \"${manifest.ios.deploymentTarget}\" must look like \"17.0\"`);\n }\n if (manifest.ios.buildNumber !== void 0 && !BUILD_NUMBER.test(manifest.ios.buildNumber)) {\n fail(`ios.buildNumber \"${manifest.ios.buildNumber}\" must contain only letters, digits, and dots`);\n }\n var widgets = manifest.ios.widgets;\n if (widgets) {\n var _widgets_displayName, _widgets_description;\n if (!manifest.ios.deploymentTarget || Number(manifest.ios.deploymentTarget) < 17) {\n fail(\"ios.widgets requires ios.deploymentTarget of 17.0 or newer\");\n }\n if (!/^group\\.[A-Za-z][A-Za-z0-9-]*(\\.[A-Za-z][A-Za-z0-9-]*)+$/.test(widgets.appGroup)) {\n fail(\"ios.widgets.appGroup must be a reverse-dns App Group beginning with group.\");\n }\n if (!/^[A-Za-z][A-Za-z0-9._-]*$/.test(widgets.kind)) {\n fail(\"ios.widgets.kind must be a non-empty WidgetKit kind\");\n }\n if (!((_widgets_displayName = widgets.displayName) === null || _widgets_displayName === void 0 ? void 0 : _widgets_displayName.trim()) || !((_widgets_description = widgets.description) === null || _widgets_description === void 0 ? void 0 : _widgets_description.trim())) {\n fail(\"ios.widgets.displayName and description must be non-empty strings\");\n }\n if (widgets.pushNotifications !== void 0 && typeof widgets.pushNotifications !== \"boolean\") {\n fail(\"ios.widgets.pushNotifications must be a boolean\");\n }\n }\n }\n if (!platform || platform === \"android\") {\n var _manifest_android_appLinks;\n var _manifest_android;\n if (!((_manifest_android = manifest.android) === null || _manifest_android === void 0 ? void 0 : _manifest_android.applicationId) || !REVERSE_DNS.test(manifest.android.applicationId)) {\n var _manifest_android1;\n fail(`android.applicationId \"${(_manifest_android1 = manifest.android) === null || _manifest_android1 === void 0 ? void 0 : _manifest_android1.applicationId}\" must be reverse-dns`);\n }\n if (manifest.android.minSdk !== void 0 && (!Number.isInteger(manifest.android.minSdk) || manifest.android.minSdk < 21 || manifest.android.minSdk > 36)) {\n fail(`android.minSdk \"${manifest.android.minSdk}\" must be an integer from 21 to 36`);\n }\n if (manifest.android.versionCode !== void 0 && (!Number.isInteger(manifest.android.versionCode) || manifest.android.versionCode < 1)) {\n fail(`android.versionCode \"${manifest.android.versionCode}\" must be a positive integer`);\n }\n for (var _i = 0, _iter = [\n \"targetSdk\",\n \"compileSdk\"\n ]; _i < _iter.length; _i++) {\n var key = _iter[_i];\n var value = manifest.android[key];\n if (value !== void 0 && (!Number.isInteger(value) || value < 21)) {\n fail(`android.${key} \"${value}\" must be an api level integer`);\n }\n }\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = ((_manifest_android_appLinks = manifest.android.appLinks) !== null && _manifest_android_appLinks !== void 0 ? _manifest_android_appLinks : [])[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var link = _step1.value;\n if (!link.host || !REVERSE_DNS.test(link.host)) {\n fail(`android.appLinks host \"${link.host}\" must be a domain`);\n }\n if (link.pathPrefix !== void 0 && !link.pathPrefix.startsWith(\"/\")) {\n fail(`android.appLinks pathPrefix \"${link.pathPrefix}\" must start with /`);\n }\n }\n } catch (err) {\n _didIteratorError1 = true;\n _iteratorError1 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion1 && _iterator1.return != null) {\n _iterator1.return();\n }\n } finally {\n if (_didIteratorError1) {\n throw _iteratorError1;\n }\n }\n }\n var adaptiveIcon = manifest.android.adaptiveIcon;\n if (adaptiveIcon !== void 0 && (!adaptiveIcon.foreground || adaptiveIcon.backgroundColor !== void 0 && !HEX_COLOR.test(adaptiveIcon.backgroundColor))) {\n fail(\"android.adaptiveIcon requires foreground, and backgroundColor must be six-digit hex\");\n }\n if (manifest.android.googleMapsApiKey !== void 0 && (typeof manifest.android.googleMapsApiKey !== \"string\" || manifest.android.googleMapsApiKey.trim() === \"\")) {\n fail(\"android.googleMapsApiKey must be a non-empty string\");\n }\n }\n return manifest;\n}\nfunction expoClientFromNativeApp(app) {\n var _app_displayName;\n var _app_icon;\n return {\n name: (_app_displayName = app.displayName) !== null && _app_displayName !== void 0 ? _app_displayName : app.name,\n slug: app.name,\n scheme: app.scheme,\n version: app.version,\n orientation: app.orientation,\n userInterfaceStyle: app.userInterfaceStyle,\n icon: (_app_icon = app.icon) === null || _app_icon === void 0 ? void 0 : _app_icon.source,\n splash: app.splash && {\n image: app.splash.source,\n backgroundColor: app.splash.backgroundColor,\n imageWidth: app.splash.width,\n resizeMode: app.splash.resizeMode\n },\n ios: app.ios && {\n bundleIdentifier: app.ios.bundleId,\n buildNumber: app.ios.buildNumber,\n supportsTablet: app.ios.tablet,\n associatedDomains: app.ios.associatedDomains,\n usesAppleSignIn: app.ios.usesAppleSignIn,\n infoPlist: app.ios.infoPlist,\n entitlements: app.ios.entitlements\n },\n android: app.android && {\n package: app.android.applicationId,\n versionCode: app.android.versionCode,\n permissions: app.android.permissions,\n blockedPermissions: app.android.blockedPermissions,\n adaptiveIcon: app.android.adaptiveIcon && {\n foregroundImage: app.android.adaptiveIcon.foreground,\n backgroundImage: app.android.adaptiveIcon.background,\n backgroundColor: app.android.adaptiveIcon.backgroundColor,\n monochromeImage: app.android.adaptiveIcon.monochrome\n }\n }\n };\n}\n//# sourceMappingURL=nativeAppManifest.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,W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AI,OAAO;GAClB,iBAAiB,IAAI,OAAO;GAC5B,YAAY,IAAI,OAAO;GACvB,YAAY,IAAI,OAAO;EACzB;EACA,KAAK,IAAI,OAAO;GACd,kBAAkB,IAAI,IAAI;GAC1B,aAAa,IAAI,IAAI;GACrB,gBAAgB,IAAI,IAAI;GACxB,mBAAmB,IAAI,IAAI;GAC3B,iBAAiB,IAAI,IAAI;GACzB,WAAW,IAAI,IAAI;GACnB,cAAc,IAAI,IAAI;EACxB;EACA,SAAS,IAAI,WAAW;GACtB,SAAS,IAAI,QAAQ;GACrB,aAAa,IAAI,QAAQ;GACzB,aAAa,IAAI,QAAQ;GACzB,oBAAoB,IAAI,QAAQ;GAChC,cAAc,IAAI,QAAQ,gBAAgB;IACxC,iBAAiB,IAAI,QAAQ,aAAa;IAC1C,iBAAiB,IAAI,QAAQ,aAAa;IAC1C,iBAAiB,IAAI,QAAQ,aAAa;IAC1C,iBAAiB,IAAI,QAAQ,aAAa;GAC5C;EACF;CACF;AACF"}
1
+ {"version":3,"file":"nativeAppManifest.native.js","names":[],"sources":["cjs/nativeAppManifest.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar nativeAppManifest_exports = {};\n__export(nativeAppManifest_exports, {\n expoClientFromNativeApp: () => expoClientFromNativeApp,\n validateNativeApp: () => validateNativeApp\n});\nmodule.exports = __toCommonJS(nativeAppManifest_exports);\nvar TARGET_NAME = /^[A-Za-z][A-Za-z0-9_]*$/;\nvar SCHEME = /^[a-z][a-z0-9+.-]*$/i;\nvar VERSION = /^\\d+\\.\\d+\\.\\d+/;\nvar BUILD_NUMBER = /^[A-Za-z0-9.]+$/;\nvar REVERSE_DNS = /^[A-Za-z][A-Za-z0-9-]*(\\.[A-Za-z][A-Za-z0-9-]*)+$/;\nvar DEPLOYMENT_TARGET = /^\\d+\\.\\d+$/;\nvar HEX_COLOR = /^#[\\da-f]{6}$/i;\nvar FONT_FILE = /\\.(ttf|otf)$/i;\nvar ORIENTATIONS = [\n \"portrait\",\n \"landscape\",\n \"default\"\n];\nvar USER_INTERFACE_STYLES = [\n \"light\",\n \"dark\",\n \"automatic\"\n];\nfunction fail(message) {\n throw new Error(`[one] invalid native.app: ${message}`);\n}\nfunction validateNativeApp(manifest, platform) {\n var _manifest_splash, _manifest_splash_dark, _manifest_splash1, _manifest_splash2, _manifest_imagePicker, _manifest_ios, _manifest_speech, _manifest_ios1;\n if (!manifest || typeof manifest !== \"object\") fail(\"manifest must be an object\");\n if (!manifest.name || typeof manifest.name !== \"string\") fail(\"name is required\");\n if (!TARGET_NAME.test(manifest.name)) {\n fail(`name \"${manifest.name}\" must start with a letter and contain only letters, digits, and underscore`);\n }\n var schemes = manifest.scheme === void 0 ? [] : Array.isArray(manifest.scheme) ? manifest.scheme : [\n manifest.scheme\n ];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = schemes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var scheme = _step.value;\n if (typeof scheme !== \"string\" || !SCHEME.test(scheme)) {\n fail(`scheme \"${scheme}\" must be a valid uri scheme`);\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n if (manifest.orientation !== void 0 && !ORIENTATIONS.includes(manifest.orientation)) {\n fail(`orientation \"${manifest.orientation}\" must be ${ORIENTATIONS.join(\", \")}`);\n }\n if (manifest.userInterfaceStyle !== void 0 && !USER_INTERFACE_STYLES.includes(manifest.userInterfaceStyle)) {\n fail(`userInterfaceStyle \"${manifest.userInterfaceStyle}\" must be ${USER_INTERFACE_STYLES.join(\", \")}`);\n }\n if (manifest.fonts !== void 0) {\n var names = /* @__PURE__ */ new Set();\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = manifest.fonts[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var font = _step1.value;\n var _font_split_pop;\n if (typeof font !== \"string\" || !FONT_FILE.test(font)) {\n fail(`fonts entry \"${font}\" must be a .ttf or .otf file path`);\n }\n var name = (_font_split_pop = font.split(\"/\").pop()) !== null && _font_split_pop !== void 0 ? _font_split_pop : font;\n if (names.has(name)) fail(`fonts lists ${name} twice`);\n names.add(name);\n }\n } catch (err) {\n _didIteratorError1 = true;\n _iteratorError1 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion1 && _iterator1.return != null) {\n _iterator1.return();\n }\n } finally {\n if (_didIteratorError1) {\n throw _iteratorError1;\n }\n }\n }\n }\n if (manifest.version !== void 0 && !VERSION.test(manifest.version)) {\n fail(`version \"${manifest.version}\" must start with major.minor.patch`);\n }\n if (manifest.icon !== void 0 && (!manifest.icon.source || !HEX_COLOR.test(manifest.icon.backgroundColor))) {\n fail(\"icon requires source and a six-digit hex backgroundColor\");\n }\n if (manifest.splash !== void 0 && (!manifest.splash.source || !HEX_COLOR.test(manifest.splash.backgroundColor) || manifest.splash.width !== void 0 && (!Number.isFinite(manifest.splash.width) || manifest.splash.width < 1 || manifest.splash.width > 288))) {\n fail(\"splash requires source, a six-digit hex backgroundColor, and width from 1 to 288\");\n }\n if (((_manifest_splash = manifest.splash) === null || _manifest_splash === void 0 ? void 0 : _manifest_splash.dark) !== void 0 && !HEX_COLOR.test(manifest.splash.dark.backgroundColor)) {\n fail(\"splash.dark requires a six-digit hex backgroundColor\");\n }\n if (((_manifest_splash1 = manifest.splash) === null || _manifest_splash1 === void 0 ? void 0 : (_manifest_splash_dark = _manifest_splash1.dark) === null || _manifest_splash_dark === void 0 ? void 0 : _manifest_splash_dark.backgroundImage) !== void 0 && manifest.splash.backgroundImage === void 0) {\n fail(\"splash.dark.backgroundImage needs splash.backgroundImage for the light launch\");\n }\n if (((_manifest_splash2 = manifest.splash) === null || _manifest_splash2 === void 0 ? void 0 : _manifest_splash2.resizeMode) !== void 0 && manifest.splash.resizeMode !== \"contain\" && manifest.splash.resizeMode !== \"cover\") {\n fail(`splash.resizeMode \"${manifest.splash.resizeMode}\" must be contain or cover`);\n }\n if (((_manifest_imagePicker = manifest.imagePicker) === null || _manifest_imagePicker === void 0 ? void 0 : _manifest_imagePicker.camera) !== void 0 && (typeof manifest.imagePicker.camera !== \"string\" || manifest.imagePicker.camera.trim() === \"\")) {\n fail(\"imagePicker.camera must be a non-empty string\");\n }\n if (manifest.photoLibrary !== void 0 && (!manifest.photoLibrary || typeof manifest.photoLibrary.addOnly !== \"string\" || manifest.photoLibrary.addOnly.trim() === \"\")) {\n fail(\"photoLibrary.addOnly must be a non-empty string\");\n }\n if (manifest.contacts !== void 0 && (!manifest.contacts || typeof manifest.contacts.usage !== \"string\" || manifest.contacts.usage.trim() === \"\")) {\n fail(\"contacts.usage must be a non-empty string\");\n }\n if (manifest.calendar !== void 0) {\n if (!manifest.calendar || manifest.calendar.usage === void 0 && manifest.calendar.remindersUsage === void 0) {\n fail(\"calendar.usage or calendar.remindersUsage must be a non-empty string\");\n }\n if (manifest.calendar.usage !== void 0 && (typeof manifest.calendar.usage !== \"string\" || manifest.calendar.usage.trim() === \"\")) {\n fail(\"calendar.usage must be a non-empty string\");\n }\n if (manifest.calendar.remindersUsage !== void 0 && (typeof manifest.calendar.remindersUsage !== \"string\" || manifest.calendar.remindersUsage.trim() === \"\")) {\n fail(\"calendar.remindersUsage must be a non-empty string\");\n }\n }\n if (manifest.location !== void 0 && (!manifest.location || typeof manifest.location.whenInUse !== \"string\" || manifest.location.whenInUse.trim() === \"\")) {\n fail(\"location.whenInUse must be a non-empty string\");\n }\n if (manifest.audio !== void 0) {\n if (!manifest.audio || typeof manifest.audio !== \"object\") {\n fail(\"audio must configure microphone or background playback\");\n }\n if (manifest.audio.microphone !== void 0 && (typeof manifest.audio.microphone !== \"string\" || manifest.audio.microphone.trim() === \"\")) {\n fail(\"audio.microphone must be a non-empty string\");\n }\n if (manifest.audio.background !== void 0 && typeof manifest.audio.background !== \"boolean\") {\n fail(\"audio.background must be a boolean\");\n }\n if (manifest.audio.microphone === void 0 && manifest.audio.background !== true) {\n fail(\"audio must configure microphone or background playback\");\n }\n }\n if (((_manifest_ios = manifest.ios) === null || _manifest_ios === void 0 ? void 0 : _manifest_ios.faceIdUsageDescription) !== void 0 && (typeof manifest.ios.faceIdUsageDescription !== \"string\" || manifest.ios.faceIdUsageDescription.trim() === \"\")) {\n fail(\"ios.faceIdUsageDescription must be a non-empty string\");\n }\n 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() === \"\")) {\n fail(\"speech.recognition and speech.microphone must be non-empty strings\");\n }\n if (manifest.notifications !== void 0) {\n if (typeof manifest.notifications !== \"object\" || manifest.notifications.push !== void 0 && typeof manifest.notifications.push !== \"boolean\") {\n fail(\"notifications.push must be a boolean\");\n }\n var aps = manifest.notifications.apsEnvironment;\n if (aps !== void 0 && aps !== \"development\" && aps !== \"production\") {\n fail(`notifications.apsEnvironment \"${aps}\" must be development or production`);\n }\n if (aps !== void 0 && !manifest.notifications.push) {\n fail(\"notifications.apsEnvironment needs notifications.push\");\n }\n }\n var accent = (_manifest_ios1 = manifest.ios) === null || _manifest_ios1 === void 0 ? void 0 : _manifest_ios1.accentColor;\n if (accent !== void 0 && (!HEX_COLOR.test(accent.light) || accent.dark !== void 0 && !HEX_COLOR.test(accent.dark))) {\n fail(\"ios.accentColor light and dark must be six-digit hex colors\");\n }\n if (manifest.pictureInPicture !== void 0 && typeof manifest.pictureInPicture !== \"boolean\") {\n fail(\"pictureInPicture must be a boolean\");\n }\n if (manifest.updates !== void 0) {\n if (typeof manifest.updates.runtimeVersion !== \"string\" || manifest.updates.runtimeVersion.trim() === \"\") {\n fail(\"updates.runtimeVersion must be a non-empty string\");\n }\n if (manifest.updates.url !== void 0 && (typeof manifest.updates.url !== \"string\" || manifest.updates.url.trim() === \"\")) {\n fail(\"updates.url must be a non-empty string\");\n }\n }\n if (!platform || platform === \"ios\") {\n var _manifest_ios2;\n if (!((_manifest_ios2 = manifest.ios) === null || _manifest_ios2 === void 0 ? void 0 : _manifest_ios2.bundleId) || !REVERSE_DNS.test(manifest.ios.bundleId)) {\n var _manifest_ios3;\n fail(`ios.bundleId \"${(_manifest_ios3 = manifest.ios) === null || _manifest_ios3 === void 0 ? void 0 : _manifest_ios3.bundleId}\" must be reverse-dns`);\n }\n if (manifest.ios.deploymentTarget !== void 0 && !DEPLOYMENT_TARGET.test(manifest.ios.deploymentTarget)) {\n fail(`ios.deploymentTarget \"${manifest.ios.deploymentTarget}\" must look like \"17.0\"`);\n }\n if (manifest.ios.buildNumber !== void 0 && !BUILD_NUMBER.test(manifest.ios.buildNumber)) {\n fail(`ios.buildNumber \"${manifest.ios.buildNumber}\" must contain only letters, digits, and dots`);\n }\n var widgets = manifest.ios.widgets;\n if (widgets) {\n var _widgets_displayName, _widgets_description;\n if (!manifest.ios.deploymentTarget || Number(manifest.ios.deploymentTarget) < 17) {\n fail(\"ios.widgets requires ios.deploymentTarget of 17.0 or newer\");\n }\n if (!/^group\\.[A-Za-z][A-Za-z0-9-]*(\\.[A-Za-z][A-Za-z0-9-]*)+$/.test(widgets.appGroup)) {\n fail(\"ios.widgets.appGroup must be a reverse-dns App Group beginning with group.\");\n }\n if (!/^[A-Za-z][A-Za-z0-9._-]*$/.test(widgets.kind)) {\n fail(\"ios.widgets.kind must be a non-empty WidgetKit kind\");\n }\n if (!((_widgets_displayName = widgets.displayName) === null || _widgets_displayName === void 0 ? void 0 : _widgets_displayName.trim()) || !((_widgets_description = widgets.description) === null || _widgets_description === void 0 ? void 0 : _widgets_description.trim())) {\n fail(\"ios.widgets.displayName and description must be non-empty strings\");\n }\n if (widgets.pushNotifications !== void 0 && typeof widgets.pushNotifications !== \"boolean\") {\n fail(\"ios.widgets.pushNotifications must be a boolean\");\n }\n }\n }\n if (!platform || platform === \"android\") {\n var _manifest_android_appLinks;\n var _manifest_android;\n if (!((_manifest_android = manifest.android) === null || _manifest_android === void 0 ? void 0 : _manifest_android.applicationId) || !REVERSE_DNS.test(manifest.android.applicationId)) {\n var _manifest_android1;\n fail(`android.applicationId \"${(_manifest_android1 = manifest.android) === null || _manifest_android1 === void 0 ? void 0 : _manifest_android1.applicationId}\" must be reverse-dns`);\n }\n if (manifest.android.minSdk !== void 0 && (!Number.isInteger(manifest.android.minSdk) || manifest.android.minSdk < 21 || manifest.android.minSdk > 36)) {\n fail(`android.minSdk \"${manifest.android.minSdk}\" must be an integer from 21 to 36`);\n }\n if (manifest.android.versionCode !== void 0 && (!Number.isInteger(manifest.android.versionCode) || manifest.android.versionCode < 1)) {\n fail(`android.versionCode \"${manifest.android.versionCode}\" must be a positive integer`);\n }\n for (var _i = 0, _iter = [\n \"targetSdk\",\n \"compileSdk\"\n ]; _i < _iter.length; _i++) {\n var key = _iter[_i];\n var value = manifest.android[key];\n if (value !== void 0 && (!Number.isInteger(value) || value < 21)) {\n fail(`android.${key} \"${value}\" must be an api level integer`);\n }\n }\n if (manifest.android.shrinkResources && !manifest.android.minify) {\n fail(\"android.shrinkResources needs android.minify\");\n }\n var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;\n try {\n for (var _iterator2 = ((_manifest_android_appLinks = manifest.android.appLinks) !== null && _manifest_android_appLinks !== void 0 ? _manifest_android_appLinks : [])[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n var link = _step2.value;\n if (!link.host || !REVERSE_DNS.test(link.host)) {\n fail(`android.appLinks host \"${link.host}\" must be a domain`);\n }\n if (link.pathPrefix !== void 0 && !link.pathPrefix.startsWith(\"/\")) {\n fail(`android.appLinks pathPrefix \"${link.pathPrefix}\" must start with /`);\n }\n }\n } catch (err) {\n _didIteratorError2 = true;\n _iteratorError2 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion2 && _iterator2.return != null) {\n _iterator2.return();\n }\n } finally {\n if (_didIteratorError2) {\n throw _iteratorError2;\n }\n }\n }\n var adaptiveIcon = manifest.android.adaptiveIcon;\n if (adaptiveIcon !== void 0 && (!adaptiveIcon.foreground || adaptiveIcon.backgroundColor !== void 0 && !HEX_COLOR.test(adaptiveIcon.backgroundColor))) {\n fail(\"android.adaptiveIcon requires foreground, and backgroundColor must be six-digit hex\");\n }\n if (manifest.android.googleMapsApiKey !== void 0 && (typeof manifest.android.googleMapsApiKey !== \"string\" || manifest.android.googleMapsApiKey.trim() === \"\")) {\n fail(\"android.googleMapsApiKey must be a non-empty string\");\n }\n }\n return manifest;\n}\nfunction expoClientFromNativeApp(app) {\n var _app_displayName;\n var _app_icon, _app_fonts;\n return {\n name: (_app_displayName = app.displayName) !== null && _app_displayName !== void 0 ? _app_displayName : app.name,\n slug: app.name,\n scheme: app.scheme,\n version: app.version,\n orientation: app.orientation,\n userInterfaceStyle: app.userInterfaceStyle,\n icon: (_app_icon = app.icon) === null || _app_icon === void 0 ? void 0 : _app_icon.source,\n splash: app.splash && {\n image: app.splash.source,\n backgroundColor: app.splash.backgroundColor,\n imageWidth: app.splash.width,\n resizeMode: app.splash.resizeMode,\n dark: app.splash.dark && {\n image: app.splash.dark.source,\n backgroundColor: app.splash.dark.backgroundColor\n }\n },\n plugins: ((_app_fonts = app.fonts) === null || _app_fonts === void 0 ? void 0 : _app_fonts.length) ? [\n [\n \"expo-font\",\n {\n fonts: app.fonts\n }\n ]\n ] : void 0,\n ios: app.ios && {\n bundleIdentifier: app.ios.bundleId,\n buildNumber: app.ios.buildNumber,\n supportsTablet: app.ios.tablet,\n associatedDomains: app.ios.associatedDomains,\n usesAppleSignIn: app.ios.usesAppleSignIn,\n googleServicesFile: app.ios.googleServicesFile,\n infoPlist: app.ios.infoPlist,\n entitlements: app.ios.entitlements\n },\n android: app.android && {\n package: app.android.applicationId,\n versionCode: app.android.versionCode,\n permissions: app.android.permissions,\n blockedPermissions: app.android.blockedPermissions,\n googleServicesFile: app.android.googleServicesFile,\n adaptiveIcon: app.android.adaptiveIcon && {\n foregroundImage: app.android.adaptiveIcon.foreground,\n backgroundImage: app.android.adaptiveIcon.background,\n backgroundColor: app.android.adaptiveIcon.backgroundColor,\n monochromeImage: app.android.adaptiveIcon.monochrome\n }\n }\n };\n}\n//# sourceMappingURL=nativeAppManifest.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAA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