@vxrn/utils 2.0.0-beta.168.1 → 2.0.0-beta.362.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.
@@ -1 +1 @@
1
- {"version":3,"file":"nativeAppManifest.js","names":[],"sources":["esm/nativeAppManifest.js"],"sourcesContent":["const TARGET_NAME = /^[A-Za-z][A-Za-z0-9_]*$/;\nconst SCHEME = /^[a-z][a-z0-9+.-]*$/i;\nconst VERSION = /^\\d+\\.\\d+\\.\\d+/;\nconst BUILD_NUMBER = /^[A-Za-z0-9.]+$/;\nconst REVERSE_DNS = /^[A-Za-z][A-Za-z0-9-]*(\\.[A-Za-z][A-Za-z0-9-]*)+$/;\nconst DEPLOYMENT_TARGET = /^\\d+\\.\\d+$/;\nconst HEX_COLOR = /^#[\\da-f]{6}$/i;\nconst FONT_FILE = /\\.(ttf|otf)$/i;\nconst ORIENTATIONS = [\"portrait\", \"landscape\", \"default\"];\nconst USER_INTERFACE_STYLES = [\"light\", \"dark\", \"automatic\"];\nfunction fail(message) {\n throw new Error(`[one] invalid native.app: ${message}`);\n}\nfunction validateNativeApp(manifest, platform) {\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(\n `name \"${manifest.name}\" must start with a letter and contain only letters, digits, and underscore`\n );\n }\n const schemes = manifest.scheme === void 0 ? [] : Array.isArray(manifest.scheme) ? manifest.scheme : [manifest.scheme];\n for (const scheme of schemes) {\n if (typeof scheme !== \"string\" || !SCHEME.test(scheme)) {\n fail(`scheme \"${scheme}\" must be a valid uri scheme`);\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(\n `userInterfaceStyle \"${manifest.userInterfaceStyle}\" must be ${USER_INTERFACE_STYLES.join(\", \")}`\n );\n }\n if (manifest.fonts !== void 0) {\n const names = /* @__PURE__ */ new Set();\n for (const font of manifest.fonts) {\n if (typeof font !== \"string\" || !FONT_FILE.test(font)) {\n fail(`fonts entry \"${font}\" must be a .ttf or .otf file path`);\n }\n const name = font.split(\"/\").pop() ?? font;\n if (names.has(name)) fail(`fonts lists ${name} twice`);\n names.add(name);\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.ios?.alternateIcons !== void 0) {\n if (!manifest.icon) fail(\"ios.alternateIcons requires a primary icon\");\n const entries = Object.entries(manifest.ios.alternateIcons);\n if (entries.length === 0) fail(\"ios.alternateIcons requires at least one icon\");\n for (const [name, icon] of entries) {\n if (name === \"AppIcon\" || !TARGET_NAME.test(name)) {\n fail(`ios.alternateIcons name \"${name}\" must be an identifier other than AppIcon`);\n }\n if (!icon?.source || !HEX_COLOR.test(icon.backgroundColor)) {\n fail(`ios.alternateIcons.${name} requires source and a six-digit hex backgroundColor`);\n }\n }\n }\n if (manifest.ios?.backgroundTasks !== void 0) {\n const tasks = manifest.ios.backgroundTasks;\n if (!tasks || tasks.refresh !== void 0 && !Array.isArray(tasks.refresh) || tasks.processing !== void 0 && !Array.isArray(tasks.processing)) {\n fail(\"ios.backgroundTasks refresh and processing must be arrays of identifiers\");\n }\n const identifiers = [...tasks.refresh ?? [], ...tasks.processing ?? []];\n if (!identifiers.length || new Set(identifiers).size !== identifiers.length) {\n fail(\"ios.backgroundTasks needs distinct refresh or processing identifiers\");\n }\n for (const identifier of identifiers) {\n if (typeof identifier !== \"string\" || !REVERSE_DNS.test(identifier)) {\n fail(`ios.backgroundTasks identifier \"${identifier}\" must use reverse DNS notation`);\n }\n }\n }\n if (manifest.ios?.appIntents !== void 0) {\n const actions = manifest.ios.appIntents?.actions;\n if (!Array.isArray(actions) || actions.length === 0) {\n fail(\"ios.appIntents.actions must be a non-empty array\");\n }\n const ids = /* @__PURE__ */ new Set();\n for (const action of actions) {\n if (!action || typeof action !== \"object\" || typeof action.id !== \"string\" || !action.id.trim() || typeof action.title !== \"string\" || !action.title.trim() || action.textParameterTitle !== void 0 && (typeof action.textParameterTitle !== \"string\" || !action.textParameterTitle.trim()) || typeof action.shortcutPhrase !== \"string\" || action.shortcutPhrase.split(\"{app}\").length !== 2 || !action.shortcutPhrase.replace(\"{app}\", \"\").trim()) {\n fail(\"ios.appIntents actions need unique non-empty id/title, optional textParameterTitle, and a shortcutPhrase with one {app}\");\n }\n if (ids.has(action.id)) fail(`ios.appIntents action \"${action.id}\" is duplicated`);\n ids.add(action.id);\n }\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(\n \"splash requires source, a six-digit hex backgroundColor, and width from 1 to 288\"\n );\n }\n if (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.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.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?.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 || manifest.photoLibrary.addOnly === void 0 && manifest.photoLibrary.readWrite === void 0)) {\n fail(\"photoLibrary must configure addOnly or readWrite\");\n }\n if (manifest.photoLibrary?.addOnly !== void 0 && (typeof manifest.photoLibrary.addOnly !== \"string\" || manifest.photoLibrary.addOnly.trim() === \"\")) {\n fail(\"photoLibrary.addOnly must be a non-empty string\");\n }\n if (manifest.photoLibrary?.readWrite !== void 0 && (typeof manifest.photoLibrary.readWrite !== \"string\" || manifest.photoLibrary.readWrite.trim() === \"\")) {\n fail(\"photoLibrary.readWrite 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.location?.background !== void 0 && typeof manifest.location.background !== \"boolean\") {\n fail(\"location.background must be a boolean\");\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?.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?.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 const 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 const accent = manifest.ios?.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 if (!manifest.ios?.bundleId || !REVERSE_DNS.test(manifest.ios.bundleId)) {\n fail(`ios.bundleId \"${manifest.ios?.bundleId}\" must be reverse-dns`);\n }\n if (manifest.ios.deploymentTarget !== void 0 && !DEPLOYMENT_TARGET.test(manifest.ios.deploymentTarget)) {\n fail(\n `ios.deploymentTarget \"${manifest.ios.deploymentTarget}\" must look like \"17.0\"`\n );\n }\n if (manifest.ios.buildNumber !== void 0 && !BUILD_NUMBER.test(manifest.ios.buildNumber)) {\n fail(\n `ios.buildNumber \"${manifest.ios.buildNumber}\" must contain only letters, digits, and dots`\n );\n }\n const widgets = manifest.ios.widgets;\n if (widgets) {\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?.trim() || !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 if (!manifest.android?.applicationId || !REVERSE_DNS.test(manifest.android.applicationId)) {\n fail(\n `android.applicationId \"${manifest.android?.applicationId}\" must be reverse-dns`\n );\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(\n `android.versionCode \"${manifest.android.versionCode}\" must be a positive integer`\n );\n }\n for (const key of [\"targetSdk\", \"compileSdk\"]) {\n const 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 for (const link of manifest.android.appLinks ?? []) {\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 const adaptiveIcon = manifest.android.adaptiveIcon;\n if (adaptiveIcon !== void 0 && (!adaptiveIcon.foreground || adaptiveIcon.backgroundColor !== void 0 && !HEX_COLOR.test(adaptiveIcon.backgroundColor))) {\n fail(\n \"android.adaptiveIcon requires foreground, and backgroundColor must be six-digit hex\"\n );\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 return {\n name: app.displayName ?? app.name,\n slug: app.name,\n scheme: app.scheme,\n version: app.version,\n orientation: app.orientation,\n // an expo config without the key means light, while prebuild writes no\n // UIUserInterfaceStyle for an unset style and the app follows the system,\n // so the manifest states the style the built app has.\n userInterfaceStyle: app.userInterfaceStyle ?? \"automatic\",\n icon: app.icon?.source,\n splash: app.splash && {\n image: app.splash.source,\n backgroundImage: app.splash.backgroundImage,\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 backgroundImage: app.splash.dark.backgroundImage,\n backgroundColor: app.splash.dark.backgroundColor\n }\n },\n plugins: app.fonts?.length ? [[\"expo-font\", { fonts: app.fonts }]] : 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}\nexport {\n expoClientFromNativeApp,\n validateNativeApp\n};\n//# sourceMappingURL=nativeAppManifest.js.map\n"],"mappings":";AAAA,MAAM,cAAc;AACpB,MAAM,SAAS;AACf,MAAM,UAAU;AAChB,MAAM,eAAe;AACrB,MAAM,cAAc;AACpB,MAAM,oBAAoB;AAC1B,MAAM,YAAY;AAClB,MAAM,YAAY;AAClB,MAAM,eAAe;CAAC;CAAY;CAAa;AAAS;AACxD,MAAM,wBAAwB;CAAC;CAAS;CAAQ;AAAW;AAC3D,SAAS,KAAK,SAAS;CACrB,MAAM,IAAI,MAAM,6BAA6B,SAAS;AACxD;AACA,SAAS,kBAAkB,UAAU,UAAU;CAC7C,IAAI,CAAC,YAAY,OAAO,aAAa,UAAU,KAAK,4BAA4B;CAChF,IAAI,CAAC,SAAS,QAAQ,OAAO,SAAS,SAAS,UAAU,KAAK,kBAAkB;CAChF,IAAI,CAAC,YAAY,KAAK,SAAS,IAAI,GAAG;EACpC,KACE,SAAS,SAAS,KAAK,4EACzB;CACF;CACA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AAI,IAAI;EACxB;EACA,SAAS,IAAI,WAAW;GACtB,SAAS,IAAI,QAAQ;GACrB,aAAa,IAAI,QAAQ;GACzB,aAAa,IAAI,QAAQ;GACzB,oBAAoB,IAAI,QAAQ;GAChC,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.js","names":[],"sources":["esm/nativeAppManifest.js"],"sourcesContent":["const TARGET_NAME = /^[A-Za-z][A-Za-z0-9_]*$/;\nconst SCHEME = /^[a-z][a-z0-9+.-]*$/i;\nconst VERSION = /^\\d+\\.\\d+\\.\\d+/;\nconst BUILD_NUMBER = /^[A-Za-z0-9.]+$/;\nconst REVERSE_DNS = /^[A-Za-z][A-Za-z0-9-]*(\\.[A-Za-z][A-Za-z0-9-]*)+$/;\nconst DEPLOYMENT_TARGET = /^\\d+\\.\\d+$/;\nconst HEX_COLOR = /^#[\\da-f]{6}$/i;\nconst FONT_FILE = /\\.(ttf|otf)$/i;\nconst ORIENTATIONS = [\"portrait\", \"landscape\", \"default\"];\nconst USER_INTERFACE_STYLES = [\"light\", \"dark\", \"automatic\"];\nfunction fail(message) {\n throw new Error(`[one] invalid native.app: ${message}`);\n}\nfunction validateNativeApp(manifest, platform) {\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(\n `name \"${manifest.name}\" must start with a letter and contain only letters, digits, and underscore`\n );\n }\n const schemes = manifest.scheme === void 0 ? [] : Array.isArray(manifest.scheme) ? manifest.scheme : [manifest.scheme];\n for (const scheme of schemes) {\n if (typeof scheme !== \"string\" || !SCHEME.test(scheme)) {\n fail(`scheme \"${scheme}\" must be a valid uri scheme`);\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(\n `userInterfaceStyle \"${manifest.userInterfaceStyle}\" must be ${USER_INTERFACE_STYLES.join(\", \")}`\n );\n }\n if (manifest.fonts !== void 0) {\n const names = /* @__PURE__ */ new Set();\n for (const font of manifest.fonts) {\n if (typeof font !== \"string\" || !FONT_FILE.test(font)) {\n fail(`fonts entry \"${font}\" must be a .ttf or .otf file path`);\n }\n const name = font.split(\"/\").pop() ?? font;\n if (names.has(name)) fail(`fonts lists ${name} twice`);\n names.add(name);\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.ios?.alternateIcons !== void 0) {\n if (!manifest.icon) fail(\"ios.alternateIcons requires a primary icon\");\n const entries = Object.entries(manifest.ios.alternateIcons);\n if (entries.length === 0) fail(\"ios.alternateIcons requires at least one icon\");\n for (const [name, icon] of entries) {\n if (name === \"AppIcon\" || !TARGET_NAME.test(name)) {\n fail(`ios.alternateIcons name \"${name}\" must be an identifier other than AppIcon`);\n }\n if (!icon?.source || !HEX_COLOR.test(icon.backgroundColor)) {\n fail(\n `ios.alternateIcons.${name} requires source and a six-digit hex backgroundColor`\n );\n }\n }\n }\n if (manifest.ios?.backgroundTasks !== void 0) {\n const tasks = manifest.ios.backgroundTasks;\n if (!tasks || tasks.refresh !== void 0 && !Array.isArray(tasks.refresh) || tasks.processing !== void 0 && !Array.isArray(tasks.processing)) {\n fail(\"ios.backgroundTasks refresh and processing must be arrays of identifiers\");\n }\n const identifiers = [...tasks.refresh ?? [], ...tasks.processing ?? []];\n if (!identifiers.length || new Set(identifiers).size !== identifiers.length) {\n fail(\"ios.backgroundTasks needs distinct refresh or processing identifiers\");\n }\n for (const identifier of identifiers) {\n if (typeof identifier !== \"string\" || !REVERSE_DNS.test(identifier)) {\n fail(\n `ios.backgroundTasks identifier \"${identifier}\" must use reverse DNS notation`\n );\n }\n }\n }\n if (manifest.ios?.appIntents !== void 0) {\n const actions = manifest.ios.appIntents?.actions;\n if (!Array.isArray(actions) || actions.length === 0) {\n fail(\"ios.appIntents.actions must be a non-empty array\");\n }\n const ids = /* @__PURE__ */ new Set();\n for (const action of actions) {\n if (!action || typeof action !== \"object\" || typeof action.id !== \"string\" || !action.id.trim() || typeof action.title !== \"string\" || !action.title.trim() || action.textParameterTitle !== void 0 && (typeof action.textParameterTitle !== \"string\" || !action.textParameterTitle.trim()) || typeof action.shortcutPhrase !== \"string\" || action.shortcutPhrase.split(\"{app}\").length !== 2 || !action.shortcutPhrase.replace(\"{app}\", \"\").trim()) {\n fail(\n \"ios.appIntents actions need unique non-empty id/title, optional textParameterTitle, and a shortcutPhrase with one {app}\"\n );\n }\n if (ids.has(action.id)) fail(`ios.appIntents action \"${action.id}\" is duplicated`);\n ids.add(action.id);\n }\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(\n \"splash requires source, a six-digit hex backgroundColor, and width from 1 to 288\"\n );\n }\n if (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.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.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?.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 || manifest.photoLibrary.addOnly === void 0 && manifest.photoLibrary.readWrite === void 0)) {\n fail(\"photoLibrary must configure addOnly or readWrite\");\n }\n if (manifest.photoLibrary?.addOnly !== void 0 && (typeof manifest.photoLibrary.addOnly !== \"string\" || manifest.photoLibrary.addOnly.trim() === \"\")) {\n fail(\"photoLibrary.addOnly must be a non-empty string\");\n }\n if (manifest.photoLibrary?.readWrite !== void 0 && (typeof manifest.photoLibrary.readWrite !== \"string\" || manifest.photoLibrary.readWrite.trim() === \"\")) {\n fail(\"photoLibrary.readWrite 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.location?.background !== void 0 && typeof manifest.location.background !== \"boolean\") {\n fail(\"location.background must be a boolean\");\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?.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?.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 const 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 const accent = manifest.ios?.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 if (!manifest.ios?.bundleId || !REVERSE_DNS.test(manifest.ios.bundleId)) {\n fail(`ios.bundleId \"${manifest.ios?.bundleId}\" must be reverse-dns`);\n }\n if (manifest.ios.deploymentTarget !== void 0 && !DEPLOYMENT_TARGET.test(manifest.ios.deploymentTarget)) {\n fail(\n `ios.deploymentTarget \"${manifest.ios.deploymentTarget}\" must look like \"17.0\"`\n );\n }\n if (manifest.ios.buildNumber !== void 0 && !BUILD_NUMBER.test(manifest.ios.buildNumber)) {\n fail(\n `ios.buildNumber \"${manifest.ios.buildNumber}\" must contain only letters, digits, and dots`\n );\n }\n const widgets = manifest.ios.widgets;\n if (widgets) {\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?.trim() || !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 if (!manifest.android?.applicationId || !REVERSE_DNS.test(manifest.android.applicationId)) {\n fail(\n `android.applicationId \"${manifest.android?.applicationId}\" must be reverse-dns`\n );\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(\n `android.versionCode \"${manifest.android.versionCode}\" must be a positive integer`\n );\n }\n for (const key of [\"targetSdk\", \"compileSdk\"]) {\n const 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 for (const link of manifest.android.appLinks ?? []) {\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 const adaptiveIcon = manifest.android.adaptiveIcon;\n if (adaptiveIcon !== void 0 && (!adaptiveIcon.foreground || adaptiveIcon.backgroundColor !== void 0 && !HEX_COLOR.test(adaptiveIcon.backgroundColor))) {\n fail(\n \"android.adaptiveIcon requires foreground, and backgroundColor must be six-digit hex\"\n );\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 return {\n name: app.displayName ?? app.name,\n slug: app.name,\n scheme: app.scheme,\n version: app.version,\n orientation: app.orientation,\n // an expo config without the key means light, while prebuild writes no\n // UIUserInterfaceStyle for an unset style and the app follows the system,\n // so the manifest states the style the built app has.\n userInterfaceStyle: app.userInterfaceStyle ?? \"automatic\",\n icon: app.icon?.source,\n splash: app.splash && {\n image: app.splash.source,\n backgroundImage: app.splash.backgroundImage,\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 backgroundImage: app.splash.dark.backgroundImage,\n backgroundColor: app.splash.dark.backgroundColor\n }\n },\n plugins: app.fonts?.length ? [[\"expo-font\", { fonts: app.fonts }]] : 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}\nexport {\n expoClientFromNativeApp,\n validateNativeApp\n};\n//# sourceMappingURL=nativeAppManifest.js.map\n"],"mappings":";AAAA,MAAM,cAAc;AACpB,MAAM,SAAS;AACf,MAAM,UAAU;AAChB,MAAM,eAAe;AACrB,MAAM,cAAc;AACpB,MAAM,oBAAoB;AAC1B,MAAM,YAAY;AAClB,MAAM,YAAY;AAClB,MAAM,eAAe;CAAC;CAAY;CAAa;AAAS;AACxD,MAAM,wBAAwB;CAAC;CAAS;CAAQ;AAAW;AAC3D,SAAS,KAAK,SAAS;CACrB,MAAM,IAAI,MAAM,6BAA6B,SAAS;AACxD;AACA,SAAS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AI,KAAK;EAC1E,KAAK,IAAI,OAAO;GACd,kBAAkB,IAAI,IAAI;GAC1B,aAAa,IAAI,IAAI;GACrB,gBAAgB,IAAI,IAAI;GACxB,mBAAmB,IAAI,IAAI;GAC3B,iBAAiB,IAAI,IAAI;GACzB,oBAAoB,IAAI,IAAI;GAC5B,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,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vxrn/utils",
3
- "version": "2.0.0-beta.168.1",
3
+ "version": "2.0.0-beta.362.1",
4
4
  "sideEffects": false,
5
5
  "type": "module",
6
6
  "types": "./types/index.d.ts",
@@ -41,8 +41,8 @@
41
41
  "typecheck": "tsc --noEmit"
42
42
  },
43
43
  "dependencies": {
44
- "@vxrn/debug": "2.0.0-beta.168.1",
45
- "@vxrn/resolve": "2.0.0-beta.168.1",
44
+ "@vxrn/debug": "2.0.0-beta.362.1",
45
+ "@vxrn/resolve": "2.0.0-beta.362.1",
46
46
  "ws": "^8.21.0"
47
47
  },
48
48
  "devDependencies": {
@@ -53,6 +53,7 @@
53
53
  "publishConfig": {
54
54
  "access": "public"
55
55
  },
56
+ "releaseSourceCommit": "6b489d521782af129132654d2baeb318f4bc2fdc",
56
57
  "repository": {
57
58
  "type": "git",
58
59
  "url": "git+https://github.com/onejs/one.git",
@@ -55,16 +55,22 @@ export interface NativeAppManifest {
55
55
  // One.ImagePicker.launchCamera.
56
56
  camera?: string
57
57
  }
58
- // photos permissions for saving and browsing through one.ios.photolibrary.
58
+ // photos permissions for saving and browsing. ios prompts come from
59
+ // these strings; android stamps the media read permissions from
60
+ // readWrite and the add-only marker plus bounded write permission
61
+ // from addOnly.
59
62
  photoLibrary?: {
60
63
  addOnly?: string
61
64
  readWrite?: string
62
65
  }
63
- // ios Contacts permission prompt for One.iOS.Contacts.
66
+ // Contacts permission prompt for One.Contacts. android stamps the
67
+ // contacts read and write permissions from usage.
64
68
  contacts?: {
65
69
  usage: string
66
70
  }
67
- // full EventKit access for calendar events and reminders.
71
+ // full EventKit access for calendar events and reminders. android
72
+ // stamps the calendar read and write permissions from usage;
73
+ // reminders stay unavailable there.
68
74
  calendar?: {
69
75
  usage?: string
70
76
  remindersUsage?: string
@@ -74,7 +80,9 @@ export interface NativeAppManifest {
74
80
  whenInUse: string
75
81
  background?: boolean
76
82
  }
77
- // microphone prompt and background playback for One.iOS.Audio.
83
+ // microphone prompt and background playback for One.Audio. android
84
+ // stamps RECORD_AUDIO from microphone and the media-playback
85
+ // foreground service plus its marker from background.
78
86
  audio?: {
79
87
  microphone?: string
80
88
  background?: boolean
@@ -122,10 +130,10 @@ export interface NativeAppManifest {
122
130
  light: string
123
131
  dark?: string
124
132
  }
125
- // extra home screen icons selectable through One.iOS.AppIcon. keys are
133
+ // extra home screen icons selectable through One.AppIcon. keys are
126
134
  // the icon names passed to setIcon; each source is a square 1024px image.
127
135
  alternateIcons?: Record<string, { source: string; backgroundColor: string }>
128
- // system prompt text for Face ID through One.iOS.LocalAuthentication.
136
+ // system prompt text for Face ID through One.LocalAuthentication.
129
137
  faceIdUsageDescription?: string
130
138
  // exposes the app's Documents in the Files app and document pickers.
131
139
  fileSharing?: boolean
@@ -149,13 +157,13 @@ export interface NativeAppManifest {
149
157
  description: string
150
158
  pushNotifications?: boolean
151
159
  }
152
- // launch handlers for One.iOS.BackgroundTasks. define the matching JS
160
+ // launch handlers for One.BackgroundTasks. define the matching JS
153
161
  // handlers in the native setupFile so a background-only launch can run.
154
162
  backgroundTasks?: {
155
163
  refresh?: string[]
156
164
  processing?: string[]
157
165
  }
158
- // statically compiled App Intents for One.iOS.AppIntents. handlers live
166
+ // statically compiled App Intents for One.AppIntents. handlers live
159
167
  // in the native setupFile so Shortcuts can start the app in the background.
160
168
  appIntents?: {
161
169
  actions: Array<{
@@ -287,15 +295,19 @@ export function validateNativeApp(
287
295
  fail(`ios.alternateIcons name "${name}" must be an identifier other than AppIcon`)
288
296
  }
289
297
  if (!icon?.source || !HEX_COLOR.test(icon.backgroundColor)) {
290
- fail(`ios.alternateIcons.${name} requires source and a six-digit hex backgroundColor`)
298
+ fail(
299
+ `ios.alternateIcons.${name} requires source and a six-digit hex backgroundColor`
300
+ )
291
301
  }
292
302
  }
293
303
  }
294
304
  if (manifest.ios?.backgroundTasks !== undefined) {
295
305
  const tasks = manifest.ios.backgroundTasks
296
- if (!tasks ||
306
+ if (
307
+ !tasks ||
297
308
  (tasks.refresh !== undefined && !Array.isArray(tasks.refresh)) ||
298
- (tasks.processing !== undefined && !Array.isArray(tasks.processing))) {
309
+ (tasks.processing !== undefined && !Array.isArray(tasks.processing))
310
+ ) {
299
311
  fail('ios.backgroundTasks refresh and processing must be arrays of identifiers')
300
312
  }
301
313
  const identifiers = [...(tasks.refresh ?? []), ...(tasks.processing ?? [])]
@@ -304,7 +316,9 @@ export function validateNativeApp(
304
316
  }
305
317
  for (const identifier of identifiers) {
306
318
  if (typeof identifier !== 'string' || !REVERSE_DNS.test(identifier)) {
307
- fail(`ios.backgroundTasks identifier "${identifier}" must use reverse DNS notation`)
319
+ fail(
320
+ `ios.backgroundTasks identifier "${identifier}" must use reverse DNS notation`
321
+ )
308
322
  }
309
323
  }
310
324
  }
@@ -315,15 +329,23 @@ export function validateNativeApp(
315
329
  }
316
330
  const ids = new Set<string>()
317
331
  for (const action of actions) {
318
- if (!action || typeof action !== 'object' ||
319
- typeof action.id !== 'string' || !action.id.trim() ||
320
- typeof action.title !== 'string' || !action.title.trim() ||
332
+ if (
333
+ !action ||
334
+ typeof action !== 'object' ||
335
+ typeof action.id !== 'string' ||
336
+ !action.id.trim() ||
337
+ typeof action.title !== 'string' ||
338
+ !action.title.trim() ||
321
339
  (action.textParameterTitle !== undefined &&
322
- (typeof action.textParameterTitle !== 'string' || !action.textParameterTitle.trim())) ||
340
+ (typeof action.textParameterTitle !== 'string' ||
341
+ !action.textParameterTitle.trim())) ||
323
342
  typeof action.shortcutPhrase !== 'string' ||
324
343
  action.shortcutPhrase.split('{app}').length !== 2 ||
325
- !action.shortcutPhrase.replace('{app}', '').trim()) {
326
- fail('ios.appIntents actions need unique non-empty id/title, optional textParameterTitle, and a shortcutPhrase with one {app}')
344
+ !action.shortcutPhrase.replace('{app}', '').trim()
345
+ ) {
346
+ fail(
347
+ 'ios.appIntents actions need unique non-empty id/title, optional textParameterTitle, and a shortcutPhrase with one {app}'
348
+ )
327
349
  }
328
350
  if (ids.has(action.id)) fail(`ios.appIntents action "${action.id}" is duplicated`)
329
351
  ids.add(action.id)
@@ -399,17 +421,25 @@ export function validateNativeApp(
399
421
  fail('contacts.usage must be a non-empty string')
400
422
  }
401
423
  if (manifest.calendar !== undefined) {
402
- if (!manifest.calendar ||
403
- (manifest.calendar.usage === undefined && manifest.calendar.remindersUsage === undefined)) {
424
+ if (
425
+ !manifest.calendar ||
426
+ (manifest.calendar.usage === undefined &&
427
+ manifest.calendar.remindersUsage === undefined)
428
+ ) {
404
429
  fail('calendar.usage or calendar.remindersUsage must be a non-empty string')
405
430
  }
406
- if (manifest.calendar.usage !== undefined &&
407
- (typeof manifest.calendar.usage !== 'string' || manifest.calendar.usage.trim() === '')) {
431
+ if (
432
+ manifest.calendar.usage !== undefined &&
433
+ (typeof manifest.calendar.usage !== 'string' ||
434
+ manifest.calendar.usage.trim() === '')
435
+ ) {
408
436
  fail('calendar.usage must be a non-empty string')
409
437
  }
410
- if (manifest.calendar.remindersUsage !== undefined &&
438
+ if (
439
+ manifest.calendar.remindersUsage !== undefined &&
411
440
  (typeof manifest.calendar.remindersUsage !== 'string' ||
412
- manifest.calendar.remindersUsage.trim() === '')) {
441
+ manifest.calendar.remindersUsage.trim() === '')
442
+ ) {
413
443
  fail('calendar.remindersUsage must be a non-empty string')
414
444
  }
415
445
  }
@@ -421,8 +451,10 @@ export function validateNativeApp(
421
451
  ) {
422
452
  fail('location.whenInUse must be a non-empty string')
423
453
  }
424
- if (manifest.location?.background !== undefined &&
425
- typeof manifest.location.background !== 'boolean') {
454
+ if (
455
+ manifest.location?.background !== undefined &&
456
+ typeof manifest.location.background !== 'boolean'
457
+ ) {
426
458
  fail('location.background must be a boolean')
427
459
  }
428
460
  if (manifest.audio !== undefined) {
@@ -431,7 +463,8 @@ export function validateNativeApp(
431
463
  }
432
464
  if (
433
465
  manifest.audio.microphone !== undefined &&
434
- (typeof manifest.audio.microphone !== 'string' || manifest.audio.microphone.trim() === '')
466
+ (typeof manifest.audio.microphone !== 'string' ||
467
+ manifest.audio.microphone.trim() === '')
435
468
  ) {
436
469
  fail('audio.microphone must be a non-empty string')
437
470
  }
@@ -1 +1 @@
1
- {"version":3,"file":"nativeAppManifest.d.ts","sourceRoot":"","sources":["../src/nativeAppManifest.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAClB,MAAM,GACN,MAAM,GACN,OAAO,GACP,UAAU,EAAE,GACZ;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;CAAE,CAAA;AAEjC,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAA;IAIhB,WAAW,CAAC,EAAE,UAAU,GAAG,WAAW,GAAG,SAAS,CAAA;IAGlD,kBAAkB,CAAC,EAAE,OAAO,GAAG,MAAM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