@ankhorage/expo-runtime 7.3.0 → 7.4.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.
- package/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/dist/generatedAppScaffold.d.ts +12 -0
- package/dist/generatedAppScaffold.d.ts.map +1 -0
- package/dist/generatedAppScaffold.js +68 -0
- package/dist/generatedAppScaffold.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/platform.js +11 -11
- package/dist/platform.js.map +1 -1
- package/package.json +8 -8
- package/src/generatedAppScaffold.test.ts +56 -0
- package/src/generatedAppScaffold.ts +97 -0
- package/src/index.ts +5 -0
- package/src/platform.ts +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @ankhorage/expo-runtime
|
|
2
2
|
|
|
3
|
+
## 7.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f4f0936: Make generated Expo app scaffolds independently installable and derive their application identity from the manifest.
|
|
8
|
+
|
|
9
|
+
## 7.4.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 9293c42: Expose a deterministic, filesystem-independent generated Expo app scaffold plan.
|
|
14
|
+
|
|
3
15
|
## 7.3.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
# EXPO-RUNTIME
|
|
5
5
|
|
|
6
|
-
         
|
|
7
7
|
|
|
8
8
|
Declarative runtime integration for Expo apps: maps app capabilities to permissions, packages, config plugins, providers, and adapters
|
|
9
9
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { AppManifest } from '@ankhorage/contracts';
|
|
2
|
+
import type { ExpoRuntimePlan } from './resolveExpoRuntimePlan';
|
|
3
|
+
export interface ExpoRuntimeGeneratedAppScaffoldFile {
|
|
4
|
+
readonly relativePath: 'package.json' | 'app.config.ts' | 'src/generated/runtimeShell.tsx';
|
|
5
|
+
readonly source: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ExpoRuntimeGeneratedAppScaffold {
|
|
8
|
+
readonly files: readonly ExpoRuntimeGeneratedAppScaffoldFile[];
|
|
9
|
+
}
|
|
10
|
+
/*** Emit the Runtime-owned files needed to finish a generated Expo application without writing to disk. */
|
|
11
|
+
export declare function resolveExpoRuntimeGeneratedAppScaffold(manifest: Pick<AppManifest, 'metadata'>, runtimePlan: ExpoRuntimePlan | undefined): ExpoRuntimeGeneratedAppScaffold;
|
|
12
|
+
//# sourceMappingURL=generatedAppScaffold.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generatedAppScaffold.d.ts","sourceRoot":"","sources":["../src/generatedAppScaffold.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAIxD,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,QAAQ,EAAE,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,EACvC,WAAW,EAAE,eAAe,GAAG,SAAS,GACvC,+BAA+B,CAmBjC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { resolveExpoRuntimeGeneratedAppOutput } from './generatedAppOutput';
|
|
2
|
+
import { EXPO_PLATFORM } from './platform';
|
|
3
|
+
/*** Emit the Runtime-owned files needed to finish a generated Expo application without writing to disk. */
|
|
4
|
+
export function resolveExpoRuntimeGeneratedAppScaffold(manifest, runtimePlan) {
|
|
5
|
+
const output = resolveExpoRuntimeGeneratedAppOutput(runtimePlan);
|
|
6
|
+
return {
|
|
7
|
+
files: [
|
|
8
|
+
{
|
|
9
|
+
relativePath: 'package.json',
|
|
10
|
+
source: createPackageSource(manifest, output.dependencies),
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
relativePath: 'app.config.ts',
|
|
14
|
+
source: createExpoConfigSource(manifest, output.native),
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
relativePath: 'src/generated/runtimeShell.tsx',
|
|
18
|
+
source: createRuntimeShellSource(runtimePlan?.providers ?? []),
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/*** Render the independently installable Expo Router package boundary for one generated application. */
|
|
24
|
+
function createPackageSource(manifest, dependencies) {
|
|
25
|
+
return `${JSON.stringify({
|
|
26
|
+
name: manifest.metadata.slug,
|
|
27
|
+
version: manifest.metadata.version,
|
|
28
|
+
private: true,
|
|
29
|
+
type: 'module',
|
|
30
|
+
main: 'expo-router/entry',
|
|
31
|
+
dependencies: {
|
|
32
|
+
...dependencies,
|
|
33
|
+
'@ankhorage/expo-runtime': '^7.3.0',
|
|
34
|
+
'@expo/metro-runtime': EXPO_PLATFORM.packages.metroRuntime.version,
|
|
35
|
+
expo: EXPO_PLATFORM.runtime.expo.version,
|
|
36
|
+
'expo-router': EXPO_PLATFORM.navigation.expoRouter.version,
|
|
37
|
+
react: EXPO_PLATFORM.runtime.react.version,
|
|
38
|
+
'react-dom': EXPO_PLATFORM.runtime.reactDom.version,
|
|
39
|
+
'react-native': EXPO_PLATFORM.runtime.reactNative.version,
|
|
40
|
+
'react-native-safe-area-context': EXPO_PLATFORM.navigation.safeArea.version,
|
|
41
|
+
'react-native-screens': EXPO_PLATFORM.navigation.screens.version,
|
|
42
|
+
'react-native-web': EXPO_PLATFORM.runtime.reactNativeWeb.version,
|
|
43
|
+
},
|
|
44
|
+
}, null, 2)}\n`;
|
|
45
|
+
}
|
|
46
|
+
/*** Render the native Expo configuration fragment from Runtime's resolved plugin and permission plan. */
|
|
47
|
+
function createExpoConfigSource(manifest, native) {
|
|
48
|
+
return `export default {
|
|
49
|
+
expo: {
|
|
50
|
+
name: ${JSON.stringify(manifest.metadata.name)},
|
|
51
|
+
slug: ${JSON.stringify(manifest.metadata.slug)},
|
|
52
|
+
scheme: ${JSON.stringify(manifest.metadata.slug)},
|
|
53
|
+
android: ${JSON.stringify({ permissions: native.androidPermissions }, null, 4)},
|
|
54
|
+
plugins: ${JSON.stringify(native.configPlugins, null, 4)},
|
|
55
|
+
},
|
|
56
|
+
} as const;\n`;
|
|
57
|
+
}
|
|
58
|
+
/*** Render the canonical Runtime provider shell while leaving application composition to the caller. */
|
|
59
|
+
function createRuntimeShellSource(providers) {
|
|
60
|
+
return `import type { ReactNode } from 'react';
|
|
61
|
+
import { ExpoRuntimeProviders } from '@ankhorage/expo-runtime/providers';
|
|
62
|
+
|
|
63
|
+
export function GeneratedRuntimeShell({ children }: { readonly children: ReactNode }) {
|
|
64
|
+
return <ExpoRuntimeProviders providers={${JSON.stringify(providers)}}>{children}</ExpoRuntimeProviders>;
|
|
65
|
+
}
|
|
66
|
+
`;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=generatedAppScaffold.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generatedAppScaffold.js","sourceRoot":"","sources":["../src/generatedAppScaffold.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oCAAoC,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAY3C,2GAA2G;AAC3G,MAAM,UAAU,sCAAsC,CACpD,QAAuC,EACvC,WAAwC;IAExC,MAAM,MAAM,GAAG,oCA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AAO,CAAC,OAAO;YAChE,kBAAkB,EAAE,aAAa,CAAC,OAAO,CAAC,cAAc,CAAC,OAAO;SACjE;KACF,EACD,IAAI,EACJ,CAAC,CACF,IAAI,CAAC;AACR,CAAC;AAED,yGAAyG;AACzG,SAAS,sBAAsB,CAC7B,QAAuC,EACvC,MAAyE;IAEzE,OAAO;;YAEG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC;YACtC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC;cACpC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC;eACrC,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 type { AppManifest } from '@ankhorage/contracts';\n\nimport { resolveExpoRuntimeGeneratedAppOutput } from './generatedAppOutput';\nimport { EXPO_PLATFORM } from './platform';\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 manifest: Pick<AppManifest, 'metadata'>,\n runtimePlan: ExpoRuntimePlan | undefined,\n): ExpoRuntimeGeneratedAppScaffold {\n const output = resolveExpoRuntimeGeneratedAppOutput(runtimePlan);\n\n return {\n files: [\n {\n relativePath: 'package.json',\n source: createPackageSource(manifest, output.dependencies),\n },\n {\n relativePath: 'app.config.ts',\n source: createExpoConfigSource(manifest, output.native),\n },\n {\n relativePath: 'src/generated/runtimeShell.tsx',\n source: createRuntimeShellSource(runtimePlan?.providers ?? []),\n },\n ],\n };\n}\n\n/*** Render the independently installable Expo Router package boundary for one generated application. */\nfunction createPackageSource(\n manifest: Pick<AppManifest, 'metadata'>,\n dependencies: Readonly<Record<string, string>>,\n): string {\n return `${JSON.stringify(\n {\n name: manifest.metadata.slug,\n version: manifest.metadata.version,\n private: true,\n type: 'module',\n main: 'expo-router/entry',\n dependencies: {\n ...dependencies,\n '@ankhorage/expo-runtime': '^7.3.0',\n '@expo/metro-runtime': EXPO_PLATFORM.packages.metroRuntime.version,\n expo: EXPO_PLATFORM.runtime.expo.version,\n 'expo-router': EXPO_PLATFORM.navigation.expoRouter.version,\n react: EXPO_PLATFORM.runtime.react.version,\n 'react-dom': EXPO_PLATFORM.runtime.reactDom.version,\n 'react-native': EXPO_PLATFORM.runtime.reactNative.version,\n 'react-native-safe-area-context': EXPO_PLATFORM.navigation.safeArea.version,\n 'react-native-screens': EXPO_PLATFORM.navigation.screens.version,\n 'react-native-web': EXPO_PLATFORM.runtime.reactNativeWeb.version,\n },\n },\n null,\n 2,\n )}\\n`;\n}\n\n/*** Render the native Expo configuration fragment from Runtime's resolved plugin and permission plan. */\nfunction createExpoConfigSource(\n manifest: Pick<AppManifest, 'metadata'>,\n native: ReturnType<typeof resolveExpoRuntimeGeneratedAppOutput>['native'],\n): string {\n return `export default {\n expo: {\n name: ${JSON.stringify(manifest.metadata.name)},\n slug: ${JSON.stringify(manifest.metadata.slug)},\n scheme: ${JSON.stringify(manifest.metadata.slug)},\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';
|
package/dist/index.d.ts.map
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AyB,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,wBAAwB,EACxB,KAAK,6BAA6B,GACnC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,KAAK,0BAA0B,EAC/B,6BAA6B,GAC9B,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,KAAK,iCAAiC,EACtC,KAAK,2BAA2B,EAChC,oCAAoC,EACpC,+BAA+B,EAC/B,oCAAoC,EACpC,8BAA8B,GAC/B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,+BAA+B,EACpC,KAAK,mCAAmC,EACxC,sCAAsC,GACvC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,KAAK,uCAAuC,EAC5C,KAAK,iCAAiC,EACtC,KAAK,8BAA8B,EACnC,qCAAqC,EACrC,KAAK,4CAA4C,GAClD,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EACL,KAAK,gCAAgC,EACrC,mCAAmC,GACpC,MAAM,6BAA6B,CAAC;AACrC,YAAY,EACV,oBAAoB,EACpB,eAAe,EACf,qBAAqB,GACtB,MAAM,0BAA0B,CAAC;AAClC,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.
|
|
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.
|
|
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.
|
|
53
|
-
asset: definePackage('expo-asset', '~57.0.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
73
|
+
updates: definePackage('expo-updates', '~57.0.29'),
|
|
74
74
|
webBrowser: definePackage('expo-web-browser', '~57.0.3'),
|
|
75
75
|
},
|
|
76
76
|
platforms: {
|
package/dist/platform.js.map
CHANGED
|
@@ -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,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AW,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.
|
|
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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B,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.
|
|
4
|
+
"version": "7.4.1",
|
|
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.
|
|
209
|
+
"expo": "57.0.34",
|
|
210
210
|
"expo-camera": "~57.0.6",
|
|
211
|
-
"expo-constants": "~57.0.
|
|
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.
|
|
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.
|
|
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.
|
|
284
|
+
"expo": "57.0.34",
|
|
285
285
|
"expo-camera": "~57.0.6",
|
|
286
|
-
"expo-constants": "~57.0.
|
|
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.
|
|
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,56 @@
|
|
|
1
|
+
import { expect, test } from 'bun:test';
|
|
2
|
+
|
|
3
|
+
import { resolveExpoRuntimeGeneratedAppScaffold } from './generatedAppScaffold';
|
|
4
|
+
import { EXPO_PLATFORM } from './platform';
|
|
5
|
+
import type { ExpoRuntimePlan } from './resolveExpoRuntimePlan';
|
|
6
|
+
|
|
7
|
+
const MANIFEST = {
|
|
8
|
+
metadata: {
|
|
9
|
+
category: 'utilities_tools',
|
|
10
|
+
name: 'Generated App',
|
|
11
|
+
slug: 'generated-app',
|
|
12
|
+
themeId: 'default',
|
|
13
|
+
version: '1.2.3',
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const PLAN: ExpoRuntimePlan = {
|
|
18
|
+
capabilities: [],
|
|
19
|
+
dependencies: [{ name: 'expo-camera', version: '~57.0.6', reasons: [] }],
|
|
20
|
+
diagnostics: [],
|
|
21
|
+
impliedPermissions: [],
|
|
22
|
+
nativeConfig: {
|
|
23
|
+
androidPermissions: ['android.permission.CAMERA'],
|
|
24
|
+
configHints: [],
|
|
25
|
+
plugins: [{ name: 'expo-camera' }],
|
|
26
|
+
},
|
|
27
|
+
needsPermissionsProvider: true,
|
|
28
|
+
permissions: [],
|
|
29
|
+
providers: ['permissions'],
|
|
30
|
+
runtimeAdapters: [],
|
|
31
|
+
usesExpoRuntimeRegistry: false,
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
test('emits deterministic portable package, Expo config, and Runtime shell sources', () => {
|
|
35
|
+
const result = resolveExpoRuntimeGeneratedAppScaffold(MANIFEST, PLAN);
|
|
36
|
+
|
|
37
|
+
expect(result).toEqual(resolveExpoRuntimeGeneratedAppScaffold(MANIFEST, PLAN));
|
|
38
|
+
expect(result.files).toEqual([
|
|
39
|
+
expect.objectContaining({ relativePath: 'package.json' }),
|
|
40
|
+
expect.objectContaining({ relativePath: 'app.config.ts' }),
|
|
41
|
+
expect.objectContaining({ relativePath: 'src/generated/runtimeShell.tsx' }),
|
|
42
|
+
]);
|
|
43
|
+
expect(result.files[0]?.source).toContain('"main": "expo-router/entry"');
|
|
44
|
+
expect(result.files[0]?.source).toContain(`"expo": "${EXPO_PLATFORM.runtime.expo.version}"`);
|
|
45
|
+
expect(result.files[0]?.source).toContain(
|
|
46
|
+
`"expo-router": "${EXPO_PLATFORM.navigation.expoRouter.version}"`,
|
|
47
|
+
);
|
|
48
|
+
expect(result.files[0]?.source).toContain(
|
|
49
|
+
`"react-native": "${EXPO_PLATFORM.runtime.reactNative.version}"`,
|
|
50
|
+
);
|
|
51
|
+
expect(result.files[0]?.source).toContain('"@ankhorage/expo-runtime": "^7.3.0"');
|
|
52
|
+
expect(result.files[1]?.source).toContain('"expo-camera"');
|
|
53
|
+
expect(result.files[1]?.source).toContain('name: "Generated App"');
|
|
54
|
+
expect(result.files[1]?.source).toContain('slug: "generated-app"');
|
|
55
|
+
expect(result.files[2]?.source).toContain('providers={["permissions"]}');
|
|
56
|
+
});
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import type { AppManifest } from '@ankhorage/contracts';
|
|
2
|
+
|
|
3
|
+
import { resolveExpoRuntimeGeneratedAppOutput } from './generatedAppOutput';
|
|
4
|
+
import { EXPO_PLATFORM } from './platform';
|
|
5
|
+
import type { ExpoRuntimePlan } from './resolveExpoRuntimePlan';
|
|
6
|
+
|
|
7
|
+
export interface ExpoRuntimeGeneratedAppScaffoldFile {
|
|
8
|
+
readonly relativePath: 'package.json' | 'app.config.ts' | 'src/generated/runtimeShell.tsx';
|
|
9
|
+
readonly source: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface ExpoRuntimeGeneratedAppScaffold {
|
|
13
|
+
readonly files: readonly ExpoRuntimeGeneratedAppScaffoldFile[];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/*** Emit the Runtime-owned files needed to finish a generated Expo application without writing to disk. */
|
|
17
|
+
export function resolveExpoRuntimeGeneratedAppScaffold(
|
|
18
|
+
manifest: Pick<AppManifest, 'metadata'>,
|
|
19
|
+
runtimePlan: ExpoRuntimePlan | undefined,
|
|
20
|
+
): ExpoRuntimeGeneratedAppScaffold {
|
|
21
|
+
const output = resolveExpoRuntimeGeneratedAppOutput(runtimePlan);
|
|
22
|
+
|
|
23
|
+
return {
|
|
24
|
+
files: [
|
|
25
|
+
{
|
|
26
|
+
relativePath: 'package.json',
|
|
27
|
+
source: createPackageSource(manifest, output.dependencies),
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
relativePath: 'app.config.ts',
|
|
31
|
+
source: createExpoConfigSource(manifest, output.native),
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
relativePath: 'src/generated/runtimeShell.tsx',
|
|
35
|
+
source: createRuntimeShellSource(runtimePlan?.providers ?? []),
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/*** Render the independently installable Expo Router package boundary for one generated application. */
|
|
42
|
+
function createPackageSource(
|
|
43
|
+
manifest: Pick<AppManifest, 'metadata'>,
|
|
44
|
+
dependencies: Readonly<Record<string, string>>,
|
|
45
|
+
): string {
|
|
46
|
+
return `${JSON.stringify(
|
|
47
|
+
{
|
|
48
|
+
name: manifest.metadata.slug,
|
|
49
|
+
version: manifest.metadata.version,
|
|
50
|
+
private: true,
|
|
51
|
+
type: 'module',
|
|
52
|
+
main: 'expo-router/entry',
|
|
53
|
+
dependencies: {
|
|
54
|
+
...dependencies,
|
|
55
|
+
'@ankhorage/expo-runtime': '^7.3.0',
|
|
56
|
+
'@expo/metro-runtime': EXPO_PLATFORM.packages.metroRuntime.version,
|
|
57
|
+
expo: EXPO_PLATFORM.runtime.expo.version,
|
|
58
|
+
'expo-router': EXPO_PLATFORM.navigation.expoRouter.version,
|
|
59
|
+
react: EXPO_PLATFORM.runtime.react.version,
|
|
60
|
+
'react-dom': EXPO_PLATFORM.runtime.reactDom.version,
|
|
61
|
+
'react-native': EXPO_PLATFORM.runtime.reactNative.version,
|
|
62
|
+
'react-native-safe-area-context': EXPO_PLATFORM.navigation.safeArea.version,
|
|
63
|
+
'react-native-screens': EXPO_PLATFORM.navigation.screens.version,
|
|
64
|
+
'react-native-web': EXPO_PLATFORM.runtime.reactNativeWeb.version,
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
null,
|
|
68
|
+
2,
|
|
69
|
+
)}\n`;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/*** Render the native Expo configuration fragment from Runtime's resolved plugin and permission plan. */
|
|
73
|
+
function createExpoConfigSource(
|
|
74
|
+
manifest: Pick<AppManifest, 'metadata'>,
|
|
75
|
+
native: ReturnType<typeof resolveExpoRuntimeGeneratedAppOutput>['native'],
|
|
76
|
+
): string {
|
|
77
|
+
return `export default {
|
|
78
|
+
expo: {
|
|
79
|
+
name: ${JSON.stringify(manifest.metadata.name)},
|
|
80
|
+
slug: ${JSON.stringify(manifest.metadata.slug)},
|
|
81
|
+
scheme: ${JSON.stringify(manifest.metadata.slug)},
|
|
82
|
+
android: ${JSON.stringify({ permissions: native.androidPermissions }, null, 4)},
|
|
83
|
+
plugins: ${JSON.stringify(native.configPlugins, null, 4)},
|
|
84
|
+
},
|
|
85
|
+
} as const;\n`;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/*** Render the canonical Runtime provider shell while leaving application composition to the caller. */
|
|
89
|
+
function createRuntimeShellSource(providers: readonly string[]): string {
|
|
90
|
+
return `import type { ReactNode } from 'react';
|
|
91
|
+
import { ExpoRuntimeProviders } from '@ankhorage/expo-runtime/providers';
|
|
92
|
+
|
|
93
|
+
export function GeneratedRuntimeShell({ children }: { readonly children: ReactNode }) {
|
|
94
|
+
return <ExpoRuntimeProviders providers={${JSON.stringify(providers)}}>{children}</ExpoRuntimeProviders>;
|
|
95
|
+
}
|
|
96
|
+
`;
|
|
97
|
+
}
|
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.
|
|
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.
|
|
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.
|
|
62
|
-
asset: definePackage('expo-asset', '~57.0.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
82
|
+
updates: definePackage('expo-updates', '~57.0.29'),
|
|
83
83
|
webBrowser: definePackage('expo-web-browser', '~57.0.3'),
|
|
84
84
|
},
|
|
85
85
|
platforms: {
|