@ankhorage/expo-runtime 7.3.0 → 7.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ankhorage/expo-runtime
2
2
 
3
+ ## 7.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 9293c42: Expose a deterministic, filesystem-independent generated Expo app scaffold plan.
8
+
3
9
  ## 7.3.0
4
10
 
5
11
  ### Minor Changes
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  # EXPO-RUNTIME
5
5
 
6
- ![license: MIT](././paradox/badges/license.svg) ![npm: v7.3.0](././paradox/badges/npm.svg) ![runtime: bun](././paradox/badges/runtime.svg) ![typescript: strict](././paradox/badges/typescript.svg) ![eslint: checked](././paradox/badges/eslint.svg) ![prettier: checked](././paradox/badges/prettier.svg) ![build: checked](././paradox/badges/build.svg) ![tests: configured](././paradox/badges/tests.svg) ![paradox: warnings](././paradox/badges/docs.svg)
6
+ ![license: MIT](././paradox/badges/license.svg) ![npm: v7.4.0](././paradox/badges/npm.svg) ![runtime: bun](././paradox/badges/runtime.svg) ![typescript: strict](././paradox/badges/typescript.svg) ![eslint: checked](././paradox/badges/eslint.svg) ![prettier: checked](././paradox/badges/prettier.svg) ![build: checked](././paradox/badges/build.svg) ![tests: configured](././paradox/badges/tests.svg) ![paradox: warnings](././paradox/badges/docs.svg)
7
7
 
8
8
  Declarative runtime integration for Expo apps: maps app capabilities to permissions, packages, config plugins, providers, and adapters
9
9
 
@@ -59,4 +59,5 @@ export function createBasicExpoRuntimePlan() {
59
59
  - [ExpoZoraIconFontProvider sequence](././paradox/diagrams/sequences/expo-zora-icon-font-provider.mmd)
60
60
  - [getExpoBundledMediaRegistrySource sequence](././paradox/diagrams/sequences/get-expo-bundled-media-registry-source.mmd)
61
61
  - [resolveExpoRuntimeGeneratedAppOutput sequence](././paradox/diagrams/sequences/resolve-expo-runtime-generated-app-output.mmd)
62
+ - [resolveExpoRuntimeGeneratedAppScaffold sequence](././paradox/diagrams/sequences/resolve-expo-runtime-generated-app-scaffold.mmd)
62
63
  - [resolveExpoRuntimeNativeOutput sequence](././paradox/diagrams/sequences/resolve-expo-runtime-native-output.mmd)
@@ -0,0 +1,11 @@
1
+ import type { ExpoRuntimePlan } from './resolveExpoRuntimePlan';
2
+ export interface ExpoRuntimeGeneratedAppScaffoldFile {
3
+ readonly relativePath: 'package.json' | 'app.config.ts' | 'src/generated/runtimeShell.tsx';
4
+ readonly source: string;
5
+ }
6
+ export interface ExpoRuntimeGeneratedAppScaffold {
7
+ readonly files: readonly ExpoRuntimeGeneratedAppScaffoldFile[];
8
+ }
9
+ /*** Emit the Runtime-owned files needed to finish a generated Expo application without writing to disk. */
10
+ export declare function resolveExpoRuntimeGeneratedAppScaffold(runtimePlan: ExpoRuntimePlan | undefined): ExpoRuntimeGeneratedAppScaffold;
11
+ //# sourceMappingURL=generatedAppScaffold.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generatedAppScaffold.d.ts","sourceRoot":"","sources":["../src/generatedAppScaffold.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEhE,MAAM,WAAW,mCAAmC;IAClD,QAAQ,CAAC,YAAY,EAAE,cAAc,GAAG,eAAe,GAAG,gCAAgC,CAAC;IAC3F,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,KAAK,EAAE,SAAS,mCAAmC,EAAE,CAAC;CAChE;AAED,2GAA2G;AAC3G,wBAAgB,sCAAsC,CACpD,WAAW,EAAE,eAAe,GAAG,SAAS,GACvC,+BAA+B,CAmBjC"}
@@ -0,0 +1,41 @@
1
+ import { resolveExpoRuntimeGeneratedAppOutput } from './generatedAppOutput';
2
+ /*** Emit the Runtime-owned files needed to finish a generated Expo application without writing to disk. */
3
+ export function resolveExpoRuntimeGeneratedAppScaffold(runtimePlan) {
4
+ const output = resolveExpoRuntimeGeneratedAppOutput(runtimePlan);
5
+ return {
6
+ files: [
7
+ {
8
+ relativePath: 'package.json',
9
+ source: `${JSON.stringify({ dependencies: output.dependencies }, null, 2)}\n`,
10
+ },
11
+ {
12
+ relativePath: 'app.config.ts',
13
+ source: createExpoConfigSource(output.native),
14
+ },
15
+ {
16
+ relativePath: 'src/generated/runtimeShell.tsx',
17
+ source: createRuntimeShellSource(runtimePlan?.providers ?? []),
18
+ },
19
+ ],
20
+ };
21
+ }
22
+ /*** Render the native Expo configuration fragment from Runtime's resolved plugin and permission plan. */
23
+ function createExpoConfigSource(native) {
24
+ return `export default {
25
+ expo: {
26
+ android: ${JSON.stringify({ permissions: native.androidPermissions }, null, 4)},
27
+ plugins: ${JSON.stringify(native.configPlugins, null, 4)},
28
+ },
29
+ } as const;\n`;
30
+ }
31
+ /*** Render the canonical Runtime provider shell while leaving application composition to the caller. */
32
+ function createRuntimeShellSource(providers) {
33
+ return `import type { ReactNode } from 'react';
34
+ import { ExpoRuntimeProviders } from '@ankhorage/expo-runtime/providers';
35
+
36
+ export function GeneratedRuntimeShell({ children }: { readonly children: ReactNode }) {
37
+ return <ExpoRuntimeProviders providers={${JSON.stringify(providers)}}>{children}</ExpoRuntimeProviders>;
38
+ }
39
+ `;
40
+ }
41
+ //# sourceMappingURL=generatedAppScaffold.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generatedAppScaffold.js","sourceRoot":"","sources":["../src/generatedAppScaffold.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,sBAAsB,CAAC;AAY5E,2GAA2G;AAC3G,MAAM,UAAU,sCAAsC,CACpD,WAAwC;IAExC,MAAM,MAAM,GAAG,oCAAoC,CAAC,WAAW,CAAC,CAAC;IAEjE,OAAO;QACL,KAAK,EAAE;YACL;gBACE,YAAY,EAAE,cAAc;gBAC5B,MAAM,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,YAAY,EAAE,MAAM,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI;aAC9E;YACD;gBACE,YAAY,EAAE,eAAe;gBAC7B,MAAM,EAAE,sBAAsB,CAAC,MAAM,CAAC,MAAM,CAAC;aAC9C;YACD;gBACE,YAAY,EAAE,gCAAgC;gBAC9C,MAAM,EAAE,wBAAwB,CAAC,WAAW,EAAE,SAAS,IAAI,EAAE,CAAC;aAC/D;SACF;KACF,CAAC;AACJ,CAAC;AAED,yGAAyG;AACzG,SAAS,sBAAsB,CAC7B,MAAyE;IAEzE,OAAO;;eAEM,IAAI,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,MAAM,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;eACnE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;;cAE9C,CAAC;AACf,CAAC;AAED,wGAAwG;AACxG,SAAS,wBAAwB,CAAC,SAA4B;IAC5D,OAAO;;;;4CAImC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC;;CAEpE,CAAC;AACF,CAAC","sourcesContent":["import { resolveExpoRuntimeGeneratedAppOutput } from './generatedAppOutput';\nimport type { ExpoRuntimePlan } from './resolveExpoRuntimePlan';\n\nexport interface ExpoRuntimeGeneratedAppScaffoldFile {\n readonly relativePath: 'package.json' | 'app.config.ts' | 'src/generated/runtimeShell.tsx';\n readonly source: string;\n}\n\nexport interface ExpoRuntimeGeneratedAppScaffold {\n readonly files: readonly ExpoRuntimeGeneratedAppScaffoldFile[];\n}\n\n/*** Emit the Runtime-owned files needed to finish a generated Expo application without writing to disk. */\nexport function resolveExpoRuntimeGeneratedAppScaffold(\n runtimePlan: ExpoRuntimePlan | undefined,\n): ExpoRuntimeGeneratedAppScaffold {\n const output = resolveExpoRuntimeGeneratedAppOutput(runtimePlan);\n\n return {\n files: [\n {\n relativePath: 'package.json',\n source: `${JSON.stringify({ dependencies: output.dependencies }, null, 2)}\\n`,\n },\n {\n relativePath: 'app.config.ts',\n source: createExpoConfigSource(output.native),\n },\n {\n relativePath: 'src/generated/runtimeShell.tsx',\n source: createRuntimeShellSource(runtimePlan?.providers ?? []),\n },\n ],\n };\n}\n\n/*** Render the native Expo configuration fragment from Runtime's resolved plugin and permission plan. */\nfunction createExpoConfigSource(\n native: ReturnType<typeof resolveExpoRuntimeGeneratedAppOutput>['native'],\n): string {\n return `export default {\n expo: {\n android: ${JSON.stringify({ permissions: native.androidPermissions }, null, 4)},\n plugins: ${JSON.stringify(native.configPlugins, null, 4)},\n },\n} as const;\\n`;\n}\n\n/*** Render the canonical Runtime provider shell while leaving application composition to the caller. */\nfunction createRuntimeShellSource(providers: readonly string[]): string {\n return `import type { ReactNode } from 'react';\nimport { ExpoRuntimeProviders } from '@ankhorage/expo-runtime/providers';\n\nexport function GeneratedRuntimeShell({ children }: { readonly children: ReactNode }) {\n return <ExpoRuntimeProviders providers={${JSON.stringify(providers)}}>{children}</ExpoRuntimeProviders>;\n}\n`;\n}\n"]}
package/dist/index.d.ts CHANGED
@@ -10,6 +10,7 @@ export { ExpoRuntimeProviders, type ExpoRuntimeProvidersProps } from './ExpoRunt
10
10
  export { ExpoZoraIconFontProvider, type ExpoZoraIconFontProviderProps, } from './ExpoZoraIconFontProvider';
11
11
  export { type ExpoAuthoringRoutePlanning, getExpoAuthoringRoutePlanning, } from './features/navigation/getExpoAuthoringRoutePlanning';
12
12
  export { type ExpoRuntimeConfigPluginOutput, type ExpoRuntimeDependencyMap, type ExpoRuntimeGeneratedAppOutputPlan, type ExpoRuntimeNativeOutputPlan, resolveExpoRuntimeConfigPluginOutput, resolveExpoRuntimeDependencyMap, resolveExpoRuntimeGeneratedAppOutput, resolveExpoRuntimeNativeOutput, } from './generatedAppOutput';
13
+ export { type ExpoRuntimeGeneratedAppScaffold, type ExpoRuntimeGeneratedAppScaffoldFile, resolveExpoRuntimeGeneratedAppScaffold, } from './generatedAppScaffold';
13
14
  export { type ExpoRuntimeGeneratedAppSourceDiagnostic, type ExpoRuntimeGeneratedAppSourceFile, type ExpoRuntimeGeneratedAppSources, resolveExpoRuntimeGeneratedAppSources, type ResolveExpoRuntimeGeneratedAppSourcesOptions, } from './generatedAppSources';
14
15
  export { getExpoBarcodeScannerViewSource } from './generatedSources';
15
16
  export { type ExpoRuntimeLayoutIntegrationPlan, resolveExpoRuntimeLayoutIntegration, } from './layoutIntegrationPlanning';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,2CAA2C,GAC5C,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,mCAAmC,EACxC,iCAAiC,GAClC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,8BAA8B,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,qBAAqB,EAC1B,4BAA4B,GAC7B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,KAAK,gCAAgC,EACrC,iCAAiC,EACjC,KAAK,+BAA+B,EACpC,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EACzC,KAAK,4BAA4B,EACjC,KAAK,gCAAgC,EACrC,KAAK,0BAA0B,EAC/B,2BAA2B,GAC5B,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EACL,yBAAyB,EACzB,KAAK,8BAA8B,GACpC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,KAAK,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAC9F,OAAO,EACL,w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AClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,0BAA0B,GAC3B,MAAM,iBAAiB,CAAC"}
package/dist/index.js CHANGED
@@ -9,6 +9,7 @@ export { ExpoRuntimeProviders } from './ExpoRuntimeProviders';
9
9
  export { ExpoZoraIconFontProvider, } from './ExpoZoraIconFontProvider';
10
10
  export { getExpoAuthoringRoutePlanning, } from './features/navigation/getExpoAuthoringRoutePlanning';
11
11
  export { resolveExpoRuntimeConfigPluginOutput, resolveExpoRuntimeDependencyMap, resolveExpoRuntimeGeneratedAppOutput, resolveExpoRuntimeNativeOutput, } from './generatedAppOutput';
12
+ export { resolveExpoRuntimeGeneratedAppScaffold, } from './generatedAppScaffold';
12
13
  export { resolveExpoRuntimeGeneratedAppSources, } from './generatedAppSources';
13
14
  export { getExpoBarcodeScannerViewSource } from './generatedSources';
14
15
  export { resolveExpoRuntimeLayoutIntegration, } from './layoutIntegrationPlanning';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,2CAA2C,GAC5C,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,iCAAiC,GAClC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,8BAA8B,EAK9B,4BAA4B,GAC7B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,iCAAiC,EAOjC,2BAA2B,GAC5B,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EACL,yBAAyB,GAE1B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAkC,MAAM,wBAAwB,CAAC;AAC9F,OAAO,EACL,wBAAwB,GAEzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEL,6BAA6B,GAC9B,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAKL,oCAAoC,EACpC,+BAA+B,EAC/B,oCAAoC,EACpC,8BAA8B,GAC/B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAIL,qCAAqC,GAEtC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAEL,mCAAmC,GACpC,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAIL,0BAA0B,GAC3B,MAAM,iBAAiB,CAAC","sourcesContent":["export {\n BARCODE_SCANNER_TYPES,\n mapPermissionStatusToCameraPermissionStatus,\n} from './barcodeScanRuntime';\nexport {\n type ExpoBundledMediaRegistrySourceEntry,\n getExpoBundledMediaRegistrySource,\n} from './bundledMediaRegistrySource';\nexport {\n createExpoBundledMediaResolver,\n type ExpoBundledMediaRegistry,\n type ExpoBundledMediaResolver,\n type ExpoBundledMediaResolverArgs,\n type ExpoBundledMediaValue,\n resolveExpoBundledMediaAsset,\n} from './bundledMediaResolver';\nexport {\n type ExecuteExpoRuntimeCapabilityArgs,\n executeExpoRuntimeCapabilityAsync,\n type ExpoRuntimeCapabilityDiagnostic,\n type ExpoRuntimeCapabilityDiagnosticCode,\n type ExpoRuntimeCapabilityExecutionResult,\n type ExpoRuntimeCapabilityHandler,\n type ExpoRuntimeCapabilityHandlerArgs,\n type ExpoRuntimeRouteResolution,\n resolveExpoRuntimeRoutePath,\n} from './capabilityBridge';\nexport type { ComponentRegistry } from './componentRegistry';\nexport { createComponentRegistry } from './componentRegistry';\nexport { createExpoRuntimeRegistry } from './createExpoRuntimeRegistry';\nexport {\n ExpoBarcodeScannerAdapter,\n type ExpoBarcodeScannerAdapterProps,\n} from './ExpoBarcodeScannerAdapter';\nexport { ExpoRuntimeProviders, type ExpoRuntimeProvidersProps } from './ExpoRuntimeProviders';\nexport {\n ExpoZoraIconFontProvider,\n type ExpoZoraIconFontProviderProps,\n} from './ExpoZoraIconFontProvider';\nexport {\n type ExpoAuthoringRoutePlanning,\n getExpoAuthoringRoutePlanning,\n} from './features/navigation/getExpoAuthoringRoutePlanning';\nexport {\n type ExpoRuntimeConfigPluginOutput,\n type ExpoRuntimeDependencyMap,\n type ExpoRuntimeGeneratedAppOutputPlan,\n type ExpoRuntimeNativeOutputPlan,\n resolveExpoRuntimeConfigPluginOutput,\n resolveExpoRuntimeDependencyMap,\n resolveExpoRuntimeGeneratedAppOutput,\n resolveExpoRuntimeNativeOutput,\n} from './generatedAppOutput';\nexport {\n type ExpoRuntimeGeneratedAppSourceDiagnostic,\n type ExpoRuntimeGeneratedAppSourceFile,\n type ExpoRuntimeGeneratedAppSources,\n resolveExpoRuntimeGeneratedAppSources,\n type ResolveExpoRuntimeGeneratedAppSourcesOptions,\n} from './generatedAppSources';\nexport { getExpoBarcodeScannerViewSource } from './generatedSources';\nexport {\n type ExpoRuntimeLayoutIntegrationPlan,\n resolveExpoRuntimeLayoutIntegration,\n} from './layoutIntegrationPlanning';\nexport type {\n ExpoRuntimeAdapterId,\n ExpoRuntimePlan,\n ExpoRuntimeProviderId,\n} from './resolveExpoRuntimePlan';\nexport { resolveExpoRuntimePlan } from './resolveExpoRuntimePlan';\nexport {\n type ExpoAuthoringRouteFile,\n type ExpoAuthoringRouteHostPort,\n type ExpoAuthoringRouteHostPorts,\n getExpoAuthoringRouteFiles,\n} from './routeDelivery';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,2CAA2C,GAC5C,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,iCAAiC,GAClC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,8BAA8B,EAK9B,4BAA4B,GAC7B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,iCAAiC,EAOjC,2BAA2B,GAC5B,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EACL,yBAAyB,GAE1B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAkC,MAAM,wBAAwB,CAAC;AAC9F,OAAO,EACL,wBAAwB,GAEzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEL,6BAA6B,GAC9B,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAKL,oCAAoC,EACpC,+BAA+B,EAC/B,oCAAoC,EACpC,8BAA8B,GAC/B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,sCAAsC,GACvC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAIL,qCAAqC,GAEtC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAEL,mCAAmC,GACpC,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAIL,0BAA0B,GAC3B,MAAM,iBAAiB,CAAC","sourcesContent":["export {\n BARCODE_SCANNER_TYPES,\n mapPermissionStatusToCameraPermissionStatus,\n} from './barcodeScanRuntime';\nexport {\n type ExpoBundledMediaRegistrySourceEntry,\n getExpoBundledMediaRegistrySource,\n} from './bundledMediaRegistrySource';\nexport {\n createExpoBundledMediaResolver,\n type ExpoBundledMediaRegistry,\n type ExpoBundledMediaResolver,\n type ExpoBundledMediaResolverArgs,\n type ExpoBundledMediaValue,\n resolveExpoBundledMediaAsset,\n} from './bundledMediaResolver';\nexport {\n type ExecuteExpoRuntimeCapabilityArgs,\n executeExpoRuntimeCapabilityAsync,\n type ExpoRuntimeCapabilityDiagnostic,\n type ExpoRuntimeCapabilityDiagnosticCode,\n type ExpoRuntimeCapabilityExecutionResult,\n type ExpoRuntimeCapabilityHandler,\n type ExpoRuntimeCapabilityHandlerArgs,\n type ExpoRuntimeRouteResolution,\n resolveExpoRuntimeRoutePath,\n} from './capabilityBridge';\nexport type { ComponentRegistry } from './componentRegistry';\nexport { createComponentRegistry } from './componentRegistry';\nexport { createExpoRuntimeRegistry } from './createExpoRuntimeRegistry';\nexport {\n ExpoBarcodeScannerAdapter,\n type ExpoBarcodeScannerAdapterProps,\n} from './ExpoBarcodeScannerAdapter';\nexport { ExpoRuntimeProviders, type ExpoRuntimeProvidersProps } from './ExpoRuntimeProviders';\nexport {\n ExpoZoraIconFontProvider,\n type ExpoZoraIconFontProviderProps,\n} from './ExpoZoraIconFontProvider';\nexport {\n type ExpoAuthoringRoutePlanning,\n getExpoAuthoringRoutePlanning,\n} from './features/navigation/getExpoAuthoringRoutePlanning';\nexport {\n type ExpoRuntimeConfigPluginOutput,\n type ExpoRuntimeDependencyMap,\n type ExpoRuntimeGeneratedAppOutputPlan,\n type ExpoRuntimeNativeOutputPlan,\n resolveExpoRuntimeConfigPluginOutput,\n resolveExpoRuntimeDependencyMap,\n resolveExpoRuntimeGeneratedAppOutput,\n resolveExpoRuntimeNativeOutput,\n} from './generatedAppOutput';\nexport {\n type ExpoRuntimeGeneratedAppScaffold,\n type ExpoRuntimeGeneratedAppScaffoldFile,\n resolveExpoRuntimeGeneratedAppScaffold,\n} from './generatedAppScaffold';\nexport {\n type ExpoRuntimeGeneratedAppSourceDiagnostic,\n type ExpoRuntimeGeneratedAppSourceFile,\n type ExpoRuntimeGeneratedAppSources,\n resolveExpoRuntimeGeneratedAppSources,\n type ResolveExpoRuntimeGeneratedAppSourcesOptions,\n} from './generatedAppSources';\nexport { getExpoBarcodeScannerViewSource } from './generatedSources';\nexport {\n type ExpoRuntimeLayoutIntegrationPlan,\n resolveExpoRuntimeLayoutIntegration,\n} from './layoutIntegrationPlanning';\nexport type {\n ExpoRuntimeAdapterId,\n ExpoRuntimePlan,\n ExpoRuntimeProviderId,\n} from './resolveExpoRuntimePlan';\nexport { resolveExpoRuntimePlan } from './resolveExpoRuntimePlan';\nexport {\n type ExpoAuthoringRouteFile,\n type ExpoAuthoringRouteHostPort,\n type ExpoAuthoringRouteHostPorts,\n getExpoAuthoringRouteFiles,\n} from './routeDelivery';\n"]}
package/dist/platform.js CHANGED
@@ -12,7 +12,7 @@ export const EXPO_PLATFORM = {
12
12
  sdk: 57,
13
13
  architecture: 'new-architecture-only',
14
14
  runtime: {
15
- expo: definePackage('expo', '57.0.33'),
15
+ expo: definePackage('expo', '57.0.34'),
16
16
  react: definePackage('react', '19.2.3'),
17
17
  reactDom: definePackage('react-dom', '19.2.3'),
18
18
  reactNative: definePackage('react-native', '0.86.3'),
@@ -29,7 +29,7 @@ export const EXPO_PLATFORM = {
29
29
  expoDoctor: definePackage('expo-doctor', '1.20.4'),
30
30
  },
31
31
  navigation: {
32
- expoRouter: definePackage('expo-router', '~57.0.31'),
32
+ expoRouter: definePackage('expo-router', '~57.0.32'),
33
33
  screens: definePackage('react-native-screens', '~4.26.0'),
34
34
  safeArea: definePackage('react-native-safe-area-context', '~5.7.0'),
35
35
  },
@@ -49,28 +49,28 @@ export const EXPO_PLATFORM = {
49
49
  },
50
50
  },
51
51
  packages: {
52
- metroRuntime: definePackage('@expo/metro-runtime', '~57.0.18'),
53
- asset: definePackage('expo-asset', '~57.0.21'),
52
+ metroRuntime: definePackage('@expo/metro-runtime', '~57.0.19'),
53
+ asset: definePackage('expo-asset', '~57.0.22'),
54
54
  audio: definePackage('expo-audio', '~57.0.5'),
55
55
  authSession: definePackage('expo-auth-session', '~57.0.17'),
56
56
  camera: definePackage('expo-camera', '~57.0.6'),
57
- constants: definePackage('expo-constants', '~57.0.24'),
57
+ constants: definePackage('expo-constants', '~57.0.25'),
58
58
  crypto: definePackage('expo-crypto', '~57.0.4'),
59
- devClient: definePackage('expo-dev-client', '~57.0.21'),
59
+ devClient: definePackage('expo-dev-client', '~57.0.22'),
60
60
  documentPicker: definePackage('expo-document-picker', '~57.0.3'),
61
61
  fileSystem: definePackage('expo-file-system', '~57.0.7'),
62
62
  font: definePackage('expo-font', '~57.0.4'),
63
- imagePicker: definePackage('expo-image-picker', '~57.0.21'),
63
+ imagePicker: definePackage('expo-image-picker', '~57.0.22'),
64
64
  linearGradient: definePackage('expo-linear-gradient', '~57.0.2'),
65
65
  linking: definePackage('expo-linking', '~57.0.14'),
66
66
  localization: definePackage('expo-localization', '~57.0.2'),
67
- location: definePackage('expo-location', '~57.0.23'),
67
+ location: definePackage('expo-location', '~57.0.24'),
68
68
  mediaLibrary: definePackage('expo-media-library', '~57.0.6'),
69
- notifications: definePackage('expo-notifications', '~57.0.25'),
69
+ notifications: definePackage('expo-notifications', '~57.0.26'),
70
70
  secureStore: definePackage('expo-secure-store', '~57.0.4'),
71
- splashScreen: definePackage('expo-splash-screen', '~57.0.11'),
71
+ splashScreen: definePackage('expo-splash-screen', '~57.0.12'),
72
72
  statusBar: definePackage('expo-status-bar', '~57.0.1'),
73
- updates: definePackage('expo-updates', '~57.0.28'),
73
+ updates: definePackage('expo-updates', '~57.0.29'),
74
74
  webBrowser: definePackage('expo-web-browser', '~57.0.3'),
75
75
  },
76
76
  platforms: {
@@ -1 +1 @@
1
- {"version":3,"file":"platform.js","sourceRoot":"","sources":["../src/platform.ts"],"names":[],"mappings":"AAKA,SAAS,aAAa,CAAC,IAAY,EAAE,OAAe;IAClD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AAC3B,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,GAAG,EAAE,EAAE;IACP,YAAY,EAAE,uBAAuB;IACrC,OAAO,EAAE;QACP,IAAI,EAAE,aAAa,CAAC,MAAM,EAAE,SAAS,CAAC;QACtC,KAAK,EAAE,aAAa,CAAC,OAAO,EAAE,QAAQ,CAAC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;QACtD,OAAO,EAAE,aAAa,CAAC,cAAc,EAAE,UAAU,CAAC;QAClD,UAAU,EAAE,aAAa,CAAC,kBAAkB,EAAE,SAAS,CAAC;KACzD;IACD,SAAS,EAAE;QACT,OAAO,EAAE;YACP,cAAc,EAAE,CAAC;YACjB,eAAe,EAAE,EAAE;YACnB,UAAU,EAAE,EAAE;YACd,SAAS,EAAE,EAAE;YACb,UAAU,EAAE,IAAI;SACjB;QACD,GAAG,EAAE;YACH,cAAc,EAAE,MAAM;YACtB,mBAAmB,EAAE,MAAM;SAC5B;KACF;CACO,CAAC","sourcesContent":["export interface ExpoPlatformPackage {\n readonly name: string;\n readonly version: string;\n}\n\nfunction definePackage(name: string, version: string): ExpoPlatformPackage {\n return { name, version };\n}\n\n/**\n * The canonical Ankhorage projection of the supported Expo platform.\n *\n * Package versions come from Expo SDK 57's bundled native module map. Keep this\n * structure as the only hand-maintained Expo compatibility authority in this\n * repository; generated manifests and runtime planning derive from it.\n */\nexport const EXPO_PLATFORM = {\n sdk: 57,\n architecture: 'new-architecture-only',\n runtime: {\n expo: definePackage('expo', '57.0.33'),\n react: definePackage('react', '19.2.3'),\n reactDom: definePackage('react-dom', '19.2.3'),\n reactNative: definePackage('react-native', '0.86.3'),\n reactNativeWeb: definePackage('react-native-web', '~0.21.3'),\n },\n tooling: {\n node: {\n lts: 24,\n version: '24.x',\n },\n nodeTypes: definePackage('@types/node', '^24.13.3'),\n reactTypes: definePackage('@types/react', '~19.2.4'),\n typescript: definePackage('typescript', '~6.0.3'),\n expoDoctor: definePackage('expo-doctor', '1.20.4'),\n },\n navigation: {\n expoRouter: definePackage('expo-router', '~57.0.31'),\n screens: definePackage('react-native-screens', '~4.26.0'),\n safeArea: definePackage('react-native-safe-area-context', '~5.7.0'),\n },\n animation: {\n reanimated: definePackage('react-native-reanimated', '4.5.1'),\n worklets: definePackage('react-native-worklets', '0.10.1'),\n gestureHandler: definePackage('react-native-gesture-handler', '~2.32.0'),\n },\n ui: {\n svg: definePackage('react-native-svg', '15.15.4'),\n iconProviders: {\n Ionicons: definePackage('@react-native-vector-icons/ionicons', '^13.1.4'),\n FontAwesome: definePackage('@react-native-vector-icons/fontawesome', '^13.1.4'),\n FontAwesome5: definePackage('@react-native-vector-icons/fontawesome5', '^13.1.4'),\n FontAwesome6: definePackage('@react-native-vector-icons/fontawesome6', '^13.1.4'),\n MaterialDesignIcons: definePackage(\n '@react-native-vector-icons/material-design-icons',\n '^13.1.4',\n ),\n },\n },\n packages: {\n metroRuntime: definePackage('@expo/metro-runtime', '~57.0.18'),\n asset: definePackage('expo-asset', '~57.0.21'),\n audio: definePackage('expo-audio', '~57.0.5'),\n authSession: definePackage('expo-auth-session', '~57.0.17'),\n camera: definePackage('expo-camera', '~57.0.6'),\n constants: definePackage('expo-constants', '~57.0.24'),\n crypto: definePackage('expo-crypto', '~57.0.4'),\n devClient: definePackage('expo-dev-client', '~57.0.21'),\n documentPicker: definePackage('expo-document-picker', '~57.0.3'),\n fileSystem: definePackage('expo-file-system', '~57.0.7'),\n font: definePackage('expo-font', '~57.0.4'),\n imagePicker: definePackage('expo-image-picker', '~57.0.21'),\n linearGradient: definePackage('expo-linear-gradient', '~57.0.2'),\n linking: definePackage('expo-linking', '~57.0.14'),\n localization: definePackage('expo-localization', '~57.0.2'),\n location: definePackage('expo-location', '~57.0.23'),\n mediaLibrary: definePackage('expo-media-library', '~57.0.6'),\n notifications: definePackage('expo-notifications', '~57.0.25'),\n secureStore: definePackage('expo-secure-store', '~57.0.4'),\n splashScreen: definePackage('expo-splash-screen', '~57.0.11'),\n statusBar: definePackage('expo-status-bar', '~57.0.1'),\n updates: definePackage('expo-updates', '~57.0.28'),\n webBrowser: definePackage('expo-web-browser', '~57.0.3'),\n },\n platforms: {\n android: {\n minimumVersion: 7,\n minimumApiLevel: 24,\n compileSdk: 36,\n targetSdk: 36,\n edgeToEdge: true,\n },\n ios: {\n minimumVersion: '16.4',\n minimumXcodeVersion: '26.4',\n },\n },\n} as const;\n\nex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Aa,CAAC,cAAc,EAAE,UAAU,CAAC;QAClD,YAAY,EAAE,aAAa,CAAC,mBAAmB,EAAE,SAAS,CAAC;QAC3D,QAAQ,EAAE,aAAa,CAAC,eAAe,EAAE,UAAU,CAAC;QACpD,YAAY,EAAE,aAAa,CAAC,oBAAoB,EAAE,SAAS,CAAC;QAC5D,aAAa,EAAE,aAAa,CAAC,oBAAoB,EAAE,UAAU,CAAC;QAC9D,WAAW,EAAE,aAAa,CAAC,mBAAmB,EAAE,SAAS,CAAC;QAC1D,YAAY,EAAE,aAAa,CAAC,oBAAoB,EAAE,UAAU,CAAC;QAC7D,SAAS,EAAE,aAAa,CAAC,iBAAiB,EAAE,SAAS,CAAC;QACtD,OAAO,EAAE,aAAa,CAAC,cAAc,EAAE,UAAU,CAAC;QAClD,UAAU,EAAE,aAAa,CAAC,kBAAkB,EAAE,SAAS,CAAC;KACzD;IACD,SAAS,EAAE;QACT,OAAO,EAAE;YACP,cAAc,EAAE,CAAC;YACjB,eAAe,EAAE,EAAE;YACnB,UAAU,EAAE,EAAE;YACd,SAAS,EAAE,EAAE;YACb,UAAU,EAAE,IAAI;SACjB;QACD,GAAG,EAAE;YACH,cAAc,EAAE,MAAM;YACtB,mBAAmB,EAAE,MAAM;SAC5B;KACF;CACO,CAAC","sourcesContent":["export interface ExpoPlatformPackage {\n readonly name: string;\n readonly version: string;\n}\n\nfunction definePackage(name: string, version: string): ExpoPlatformPackage {\n return { name, version };\n}\n\n/**\n * The canonical Ankhorage projection of the supported Expo platform.\n *\n * Package versions come from Expo SDK 57's bundled native module map. Keep this\n * structure as the only hand-maintained Expo compatibility authority in this\n * repository; generated manifests and runtime planning derive from it.\n */\nexport const EXPO_PLATFORM = {\n sdk: 57,\n architecture: 'new-architecture-only',\n runtime: {\n expo: definePackage('expo', '57.0.34'),\n react: definePackage('react', '19.2.3'),\n reactDom: definePackage('react-dom', '19.2.3'),\n reactNative: definePackage('react-native', '0.86.3'),\n reactNativeWeb: definePackage('react-native-web', '~0.21.3'),\n },\n tooling: {\n node: {\n lts: 24,\n version: '24.x',\n },\n nodeTypes: definePackage('@types/node', '^24.13.3'),\n reactTypes: definePackage('@types/react', '~19.2.4'),\n typescript: definePackage('typescript', '~6.0.3'),\n expoDoctor: definePackage('expo-doctor', '1.20.4'),\n },\n navigation: {\n expoRouter: definePackage('expo-router', '~57.0.32'),\n screens: definePackage('react-native-screens', '~4.26.0'),\n safeArea: definePackage('react-native-safe-area-context', '~5.7.0'),\n },\n animation: {\n reanimated: definePackage('react-native-reanimated', '4.5.1'),\n worklets: definePackage('react-native-worklets', '0.10.1'),\n gestureHandler: definePackage('react-native-gesture-handler', '~2.32.0'),\n },\n ui: {\n svg: definePackage('react-native-svg', '15.15.4'),\n iconProviders: {\n Ionicons: definePackage('@react-native-vector-icons/ionicons', '^13.1.4'),\n FontAwesome: definePackage('@react-native-vector-icons/fontawesome', '^13.1.4'),\n FontAwesome5: definePackage('@react-native-vector-icons/fontawesome5', '^13.1.4'),\n FontAwesome6: definePackage('@react-native-vector-icons/fontawesome6', '^13.1.4'),\n MaterialDesignIcons: definePackage(\n '@react-native-vector-icons/material-design-icons',\n '^13.1.4',\n ),\n },\n },\n packages: {\n metroRuntime: definePackage('@expo/metro-runtime', '~57.0.19'),\n asset: definePackage('expo-asset', '~57.0.22'),\n audio: definePackage('expo-audio', '~57.0.5'),\n authSession: definePackage('expo-auth-session', '~57.0.17'),\n camera: definePackage('expo-camera', '~57.0.6'),\n constants: definePackage('expo-constants', '~57.0.25'),\n crypto: definePackage('expo-crypto', '~57.0.4'),\n devClient: definePackage('expo-dev-client', '~57.0.22'),\n documentPicker: definePackage('expo-document-picker', '~57.0.3'),\n fileSystem: definePackage('expo-file-system', '~57.0.7'),\n font: definePackage('expo-font', '~57.0.4'),\n imagePicker: definePackage('expo-image-picker', '~57.0.22'),\n linearGradient: definePackage('expo-linear-gradient', '~57.0.2'),\n linking: definePackage('expo-linking', '~57.0.14'),\n localization: definePackage('expo-localization', '~57.0.2'),\n location: definePackage('expo-location', '~57.0.24'),\n mediaLibrary: definePackage('expo-media-library', '~57.0.6'),\n notifications: definePackage('expo-notifications', '~57.0.26'),\n secureStore: definePackage('expo-secure-store', '~57.0.4'),\n splashScreen: definePackage('expo-splash-screen', '~57.0.12'),\n statusBar: definePackage('expo-status-bar', '~57.0.1'),\n updates: definePackage('expo-updates', '~57.0.29'),\n webBrowser: definePackage('expo-web-browser', '~57.0.3'),\n },\n platforms: {\n android: {\n minimumVersion: 7,\n minimumApiLevel: 24,\n compileSdk: 36,\n targetSdk: 36,\n edgeToEdge: true,\n },\n ios: {\n minimumVersion: '16.4',\n minimumXcodeVersion: '26.4',\n },\n },\n} as const;\n\nexport type ExpoPlatform = typeof EXPO_PLATFORM;\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ankhorage/expo-runtime",
3
3
  "type": "module",
4
- "version": "7.3.0",
4
+ "version": "7.4.0",
5
5
  "description": "Declarative runtime integration for Expo apps: maps app capabilities to permissions, packages, config plugins, providers, and adapters",
6
6
  "homepage": "https://github.com/ankhorage/expo-runtime#readme",
7
7
  "bugs": {
@@ -206,13 +206,13 @@
206
206
  "@react-native-vector-icons/fontawesome6": "^13.1.4",
207
207
  "@react-native-vector-icons/ionicons": "^13.1.4",
208
208
  "@react-native-vector-icons/material-design-icons": "^13.1.4",
209
- "expo": "57.0.33",
209
+ "expo": "57.0.34",
210
210
  "expo-camera": "~57.0.6",
211
- "expo-constants": "~57.0.24",
211
+ "expo-constants": "~57.0.25",
212
212
  "expo-document-picker": "~57.0.3",
213
213
  "expo-file-system": "~57.0.7",
214
214
  "expo-font": "~57.0.4",
215
- "expo-image-picker": "~57.0.21",
215
+ "expo-image-picker": "~57.0.22",
216
216
  "react": "19.2.3",
217
217
  "react-native": "0.86.3"
218
218
  },
@@ -267,7 +267,7 @@
267
267
  }
268
268
  },
269
269
  "devDependencies": {
270
- "@ankhorage/devtools": "^2.11.0",
270
+ "@ankhorage/devtools": "^2.11.1",
271
271
  "@ankhorage/paradox": "^0.2.27",
272
272
  "@ankhorage/permissions": "^0.2.63",
273
273
  "@ankhorage/zora": "^25.8.3 || ^27.2.0",
@@ -281,13 +281,13 @@
281
281
  "@types/pngjs": "^6.0.5",
282
282
  "@types/react": "~19.2.18",
283
283
  "bwip-js": "^4.11.4",
284
- "expo": "57.0.33",
284
+ "expo": "57.0.34",
285
285
  "expo-camera": "~57.0.6",
286
- "expo-constants": "~57.0.24",
286
+ "expo-constants": "~57.0.25",
287
287
  "expo-document-picker": "~57.0.3",
288
288
  "expo-file-system": "~57.0.7",
289
289
  "expo-font": "~57.0.4",
290
- "expo-image-picker": "~57.0.21",
290
+ "expo-image-picker": "~57.0.22",
291
291
  "playwright-core": "^1.65.1",
292
292
  "pngjs": "^7.0.0",
293
293
  "react": "19.2.3",
@@ -0,0 +1,37 @@
1
+ import { expect, test } from 'bun:test';
2
+
3
+ import { resolveExpoRuntimeGeneratedAppScaffold } from './generatedAppScaffold';
4
+ import type { ExpoRuntimePlan } from './resolveExpoRuntimePlan';
5
+
6
+ const PLAN: ExpoRuntimePlan = {
7
+ capabilities: [],
8
+ dependencies: [{ name: 'expo-camera', version: '~57.0.6', reasons: [] }],
9
+ diagnostics: [],
10
+ impliedPermissions: [],
11
+ nativeConfig: {
12
+ androidPermissions: ['android.permission.CAMERA'],
13
+ configHints: [],
14
+ plugins: [{ name: 'expo-camera' }],
15
+ },
16
+ needsPermissionsProvider: true,
17
+ permissions: [],
18
+ providers: ['permissions'],
19
+ runtimeAdapters: [],
20
+ usesExpoRuntimeRegistry: false,
21
+ };
22
+
23
+ test('emits deterministic portable package, Expo config, and Runtime shell sources', () => {
24
+ const result = resolveExpoRuntimeGeneratedAppScaffold(PLAN);
25
+
26
+ expect(result).toEqual(resolveExpoRuntimeGeneratedAppScaffold(PLAN));
27
+ expect(result.files).toEqual([
28
+ {
29
+ relativePath: 'package.json',
30
+ source: '{\n "dependencies": {\n "expo-camera": "~57.0.6"\n }\n}\n',
31
+ },
32
+ expect.objectContaining({ relativePath: 'app.config.ts' }),
33
+ expect.objectContaining({ relativePath: 'src/generated/runtimeShell.tsx' }),
34
+ ]);
35
+ expect(result.files[1]?.source).toContain('"expo-camera"');
36
+ expect(result.files[2]?.source).toContain('providers={["permissions"]}');
37
+ });
@@ -0,0 +1,58 @@
1
+ import { resolveExpoRuntimeGeneratedAppOutput } from './generatedAppOutput';
2
+ import type { ExpoRuntimePlan } from './resolveExpoRuntimePlan';
3
+
4
+ export interface ExpoRuntimeGeneratedAppScaffoldFile {
5
+ readonly relativePath: 'package.json' | 'app.config.ts' | 'src/generated/runtimeShell.tsx';
6
+ readonly source: string;
7
+ }
8
+
9
+ export interface ExpoRuntimeGeneratedAppScaffold {
10
+ readonly files: readonly ExpoRuntimeGeneratedAppScaffoldFile[];
11
+ }
12
+
13
+ /*** Emit the Runtime-owned files needed to finish a generated Expo application without writing to disk. */
14
+ export function resolveExpoRuntimeGeneratedAppScaffold(
15
+ runtimePlan: ExpoRuntimePlan | undefined,
16
+ ): ExpoRuntimeGeneratedAppScaffold {
17
+ const output = resolveExpoRuntimeGeneratedAppOutput(runtimePlan);
18
+
19
+ return {
20
+ files: [
21
+ {
22
+ relativePath: 'package.json',
23
+ source: `${JSON.stringify({ dependencies: output.dependencies }, null, 2)}\n`,
24
+ },
25
+ {
26
+ relativePath: 'app.config.ts',
27
+ source: createExpoConfigSource(output.native),
28
+ },
29
+ {
30
+ relativePath: 'src/generated/runtimeShell.tsx',
31
+ source: createRuntimeShellSource(runtimePlan?.providers ?? []),
32
+ },
33
+ ],
34
+ };
35
+ }
36
+
37
+ /*** Render the native Expo configuration fragment from Runtime's resolved plugin and permission plan. */
38
+ function createExpoConfigSource(
39
+ native: ReturnType<typeof resolveExpoRuntimeGeneratedAppOutput>['native'],
40
+ ): string {
41
+ return `export default {
42
+ expo: {
43
+ android: ${JSON.stringify({ permissions: native.androidPermissions }, null, 4)},
44
+ plugins: ${JSON.stringify(native.configPlugins, null, 4)},
45
+ },
46
+ } as const;\n`;
47
+ }
48
+
49
+ /*** Render the canonical Runtime provider shell while leaving application composition to the caller. */
50
+ function createRuntimeShellSource(providers: readonly string[]): string {
51
+ return `import type { ReactNode } from 'react';
52
+ import { ExpoRuntimeProviders } from '@ankhorage/expo-runtime/providers';
53
+
54
+ export function GeneratedRuntimeShell({ children }: { readonly children: ReactNode }) {
55
+ return <ExpoRuntimeProviders providers={${JSON.stringify(providers)}}>{children}</ExpoRuntimeProviders>;
56
+ }
57
+ `;
58
+ }
package/src/index.ts CHANGED
@@ -51,6 +51,11 @@ export {
51
51
  resolveExpoRuntimeGeneratedAppOutput,
52
52
  resolveExpoRuntimeNativeOutput,
53
53
  } from './generatedAppOutput';
54
+ export {
55
+ type ExpoRuntimeGeneratedAppScaffold,
56
+ type ExpoRuntimeGeneratedAppScaffoldFile,
57
+ resolveExpoRuntimeGeneratedAppScaffold,
58
+ } from './generatedAppScaffold';
54
59
  export {
55
60
  type ExpoRuntimeGeneratedAppSourceDiagnostic,
56
61
  type ExpoRuntimeGeneratedAppSourceFile,
package/src/platform.ts CHANGED
@@ -18,7 +18,7 @@ export const EXPO_PLATFORM = {
18
18
  sdk: 57,
19
19
  architecture: 'new-architecture-only',
20
20
  runtime: {
21
- expo: definePackage('expo', '57.0.33'),
21
+ expo: definePackage('expo', '57.0.34'),
22
22
  react: definePackage('react', '19.2.3'),
23
23
  reactDom: definePackage('react-dom', '19.2.3'),
24
24
  reactNative: definePackage('react-native', '0.86.3'),
@@ -35,7 +35,7 @@ export const EXPO_PLATFORM = {
35
35
  expoDoctor: definePackage('expo-doctor', '1.20.4'),
36
36
  },
37
37
  navigation: {
38
- expoRouter: definePackage('expo-router', '~57.0.31'),
38
+ expoRouter: definePackage('expo-router', '~57.0.32'),
39
39
  screens: definePackage('react-native-screens', '~4.26.0'),
40
40
  safeArea: definePackage('react-native-safe-area-context', '~5.7.0'),
41
41
  },
@@ -58,28 +58,28 @@ export const EXPO_PLATFORM = {
58
58
  },
59
59
  },
60
60
  packages: {
61
- metroRuntime: definePackage('@expo/metro-runtime', '~57.0.18'),
62
- asset: definePackage('expo-asset', '~57.0.21'),
61
+ metroRuntime: definePackage('@expo/metro-runtime', '~57.0.19'),
62
+ asset: definePackage('expo-asset', '~57.0.22'),
63
63
  audio: definePackage('expo-audio', '~57.0.5'),
64
64
  authSession: definePackage('expo-auth-session', '~57.0.17'),
65
65
  camera: definePackage('expo-camera', '~57.0.6'),
66
- constants: definePackage('expo-constants', '~57.0.24'),
66
+ constants: definePackage('expo-constants', '~57.0.25'),
67
67
  crypto: definePackage('expo-crypto', '~57.0.4'),
68
- devClient: definePackage('expo-dev-client', '~57.0.21'),
68
+ devClient: definePackage('expo-dev-client', '~57.0.22'),
69
69
  documentPicker: definePackage('expo-document-picker', '~57.0.3'),
70
70
  fileSystem: definePackage('expo-file-system', '~57.0.7'),
71
71
  font: definePackage('expo-font', '~57.0.4'),
72
- imagePicker: definePackage('expo-image-picker', '~57.0.21'),
72
+ imagePicker: definePackage('expo-image-picker', '~57.0.22'),
73
73
  linearGradient: definePackage('expo-linear-gradient', '~57.0.2'),
74
74
  linking: definePackage('expo-linking', '~57.0.14'),
75
75
  localization: definePackage('expo-localization', '~57.0.2'),
76
- location: definePackage('expo-location', '~57.0.23'),
76
+ location: definePackage('expo-location', '~57.0.24'),
77
77
  mediaLibrary: definePackage('expo-media-library', '~57.0.6'),
78
- notifications: definePackage('expo-notifications', '~57.0.25'),
78
+ notifications: definePackage('expo-notifications', '~57.0.26'),
79
79
  secureStore: definePackage('expo-secure-store', '~57.0.4'),
80
- splashScreen: definePackage('expo-splash-screen', '~57.0.11'),
80
+ splashScreen: definePackage('expo-splash-screen', '~57.0.12'),
81
81
  statusBar: definePackage('expo-status-bar', '~57.0.1'),
82
- updates: definePackage('expo-updates', '~57.0.28'),
82
+ updates: definePackage('expo-updates', '~57.0.29'),
83
83
  webBrowser: definePackage('expo-web-browser', '~57.0.3'),
84
84
  },
85
85
  platforms: {