peachsim 0.1.2441 → 0.1.2457
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/README.md +4 -49
- package/cli/app-catalog.ts +8 -7
- package/cli/app-stubs.ts +98 -70
- package/cli/cloud-box-artifact.ts +2 -5
- package/cli/cloud-client.ts +12 -1
- package/cli/commands/box.ts +41 -2
- package/cli/commands/compat.ts +5 -3
- package/cli/commands/cpu-profile.ts +11 -14
- package/cli/commands/diagnose.ts +5 -18
- package/cli/commands/inspect/describe.ts +4 -8
- package/cli/commands/maestro-generate.ts +4 -8
- package/cli/commands/mode.ts +3 -19
- package/cli/commands/perf.ts +3 -19
- package/cli/commands/permissions.ts +2 -6
- package/cli/commands/platform.ts +22 -14
- package/cli/commands/react.ts +7 -21
- package/cli/commands/record-three.ts +6 -10
- package/cli/commands/record.ts +38 -62
- package/cli/commands/screenshot-command.ts +8 -25
- package/cli/commands/storage.ts +4 -16
- package/cli/commands/three-mode.ts +6 -10
- package/cli/outbound-endpoints.ts +4 -5
- package/cli/parse-args.ts +45 -0
- package/cli/remote-metro.ts +1 -1
- package/cli/remote-simulators.ts +5 -1
- package/cli/send-to-box.ts +3 -1
- package/detox/index.ts +20 -1
- package/dist-lib/agent-daemon-client.cjs +2 -2
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +2 -2
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +5 -5
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +3 -3
- package/dist-lib/bundle-channel.cjs +240 -316
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +14 -1
- package/dist-lib/cloud-contract.mjs +5 -3
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -2
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +7 -7
- package/dist-lib/config.cjs +1 -6
- package/dist-lib/config.mjs +5 -9
- package/dist-lib/detox/index.cjs +17 -5
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-FRQNHKFC.mjs → acorn-73XUBXBT.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-IRMC5BCX.mjs → chunk-7V2QJGVI.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-PMGJ7FLI.mjs → chunk-BHQEYJAF.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BAYRN7ZL.mjs → chunk-DSPFMVBM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-4HEUXQGM.mjs → chunk-GA73RJSG.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-ABMB3G7I.mjs → chunk-IGBAFWZ3.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-ZCMAKWHN.mjs → chunk-IKZDUGT6.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VAQJQDWI.mjs → chunk-IP5ZV36U.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-O4EOBXAP.mjs → chunk-KGHQ4GK2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-4BZ3Z3IQ.mjs → chunk-KY63O76W.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-QYYJESMK.mjs → chunk-LJ74MO6Y.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-DJMWTW2B.mjs → chunk-LJX42YVT.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-XO5GX4PI.mjs → chunk-O4KAW2JJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-6A6JEVIF.mjs → chunk-OIFM356B.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-NPLEBOWJ.mjs → chunk-P63DPATT.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VCAJFWZD.mjs → chunk-SCCOZKCP.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QUBR7LHU.mjs → chunk-TAZL253K.mjs} +41 -15
- package/dist-lib/esm-chunks/{chunk-ORYS5CC4.mjs → chunk-UBXCWZL3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-4ZRMJ5YO.mjs → chunk-ZQWWO33G.mjs} +14 -2
- package/dist-lib/esm-chunks/{metro-layout-parser-AUAVE5VL.mjs → metro-layout-parser-HNQRTPVE.mjs} +3 -3
- package/dist-lib/expo-swift-bundle.cjs +197 -336
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +7 -7
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +276 -381
- package/dist-lib/host/fetch-proxy-handler.cjs +35 -43
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +4 -2
- package/dist-lib/index.cjs +2 -105
- package/dist-lib/kotlin-host.cjs +6 -4
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +4 -4
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +12 -12
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +64 -64
- package/dist-lib/public-origins-lib-static.json +1 -1
- package/dist-lib/public-origins-lib.json +107 -85
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +7 -7
- package/dist-lib/skills.cjs +310 -310
- package/dist-lib/swift-compile.cjs +37 -11
- package/dist-lib/swift-compile.mjs +8 -8
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +5 -5
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +14770 -0
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +2790 -0
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/bplist-parser.cjs +1 -1
- package/dist-lib/vendor/ignore.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/plist.cjs +1 -1
- package/dist-lib/vendor/prism.wasm +0 -0
- package/dist-lib/vendor/smol-toml.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +3710 -0
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-gesture-handler.d.ts +0 -3
- package/dist-types/packages/peach-engine/src/config.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/text-line-break.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/engine/text-paint.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/text-runs.d.ts +6 -1
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +22 -14
- package/skills/peach-setup/references/native-config.md +3 -3
- package/src/app-config.ts +7 -15
- package/src/cloud-contract.ts +35 -0
- package/src/config.ts +2 -6
- package/src/estree-walk.ts +13 -0
- package/src/host/network-policy.ts +4 -1
- package/src/index.ts +0 -1
- package/src/one-native-app-config.ts +14 -15
- package/src/podspec-prism.ts +7 -1
- package/src/process-group.ts +4 -1
- package/src/process-table.ts +6 -1
- package/src/swift-compile.ts +38 -8
- package/src/swift-host.ts +10 -4
- package/cli/commands/box/bundle-plane.ts +0 -154
- package/dist-lib/jump-to-source-babel.cjs +0 -131
- package/dist-lib/jump-to-source-native.cjs +0 -235
- package/src/java-static-imports.ts +0 -68
- package/src/jump-to-source-babel.ts +0 -143
- package/src/jump-to-source-native.ts +0 -200
- package/src/kotlin-jvm-sources.ts +0 -35
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2457 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -319,7 +319,8 @@ function readProcessTable(timeoutMs = 1e4, pid) {
|
|
|
319
319
|
try {
|
|
320
320
|
stat2 = (0, import_node_fs3.readFileSync)(`/proc/${name3}/stat`, "utf8");
|
|
321
321
|
} catch (error) {
|
|
322
|
-
if (error instanceof Error && "code" in error && error.code === "ENOENT")
|
|
322
|
+
if (error instanceof Error && "code" in error && (error.code === "ENOENT" || error.code === "ESRCH"))
|
|
323
|
+
continue;
|
|
323
324
|
throw error;
|
|
324
325
|
}
|
|
325
326
|
const fields = stat2.slice(stat2.lastIndexOf(")") + 2).trim().split(/\s+/);
|
|
@@ -555,7 +556,7 @@ function processesHaveExited(pids, pgid) {
|
|
|
555
556
|
if (!mayExist) return true;
|
|
556
557
|
const knownPids = new Set(pids);
|
|
557
558
|
try {
|
|
558
|
-
return !readProcessTable(
|
|
559
|
+
return !readProcessTable(EXIT_SCAN_TIMEOUT_MS).some(
|
|
559
560
|
(row) => (row.pgid === pgid || knownPids.has(row.pid)) && !row.zombie
|
|
560
561
|
);
|
|
561
562
|
} catch {
|
|
@@ -699,7 +700,7 @@ async function terminateProcessGroup(child, signal = "SIGTERM", gracefulTimeoutM
|
|
|
699
700
|
}
|
|
700
701
|
if (inspectionError) throw inspectionError;
|
|
701
702
|
}
|
|
702
|
-
var import_node_child_process3, import_node_fs4, import_node_os2, import_node_path, import_node_stream, import_promises, GRACEFUL_TIMEOUT_MS, FORCED_EXIT_TIMEOUT_MS, INSPECTION_TIMEOUT_MS, FREEZE_GUARD_NAME;
|
|
703
|
+
var import_node_child_process3, import_node_fs4, import_node_os2, import_node_path, import_node_stream, import_promises, GRACEFUL_TIMEOUT_MS, FORCED_EXIT_TIMEOUT_MS, EXIT_SCAN_TIMEOUT_MS, INSPECTION_TIMEOUT_MS, FREEZE_GUARD_NAME;
|
|
703
704
|
var init_process_group = __esm({
|
|
704
705
|
"src/process-group.ts"() {
|
|
705
706
|
"use strict";
|
|
@@ -712,6 +713,7 @@ var init_process_group = __esm({
|
|
|
712
713
|
init_process_table();
|
|
713
714
|
GRACEFUL_TIMEOUT_MS = 3e3;
|
|
714
715
|
FORCED_EXIT_TIMEOUT_MS = 1e3;
|
|
716
|
+
EXIT_SCAN_TIMEOUT_MS = 1e4;
|
|
715
717
|
INSPECTION_TIMEOUT_MS = 1e4;
|
|
716
718
|
FREEZE_GUARD_NAME = "process-freeze-guard";
|
|
717
719
|
}
|
|
@@ -6351,7 +6353,7 @@ var init_supported_native_packages = __esm({
|
|
|
6351
6353
|
"react-native-lan-port-scanner",
|
|
6352
6354
|
// seam+coverage
|
|
6353
6355
|
"react-native-launch-arguments",
|
|
6354
|
-
// coverage
|
|
6356
|
+
// seam+coverage
|
|
6355
6357
|
"react-native-legal",
|
|
6356
6358
|
// semantic-proof+seam
|
|
6357
6359
|
"react-native-libsodium",
|
|
@@ -8001,7 +8003,7 @@ var init_registry = __esm({
|
|
|
8001
8003
|
{
|
|
8002
8004
|
range: ">=4.0.0",
|
|
8003
8005
|
coverage: 1,
|
|
8004
|
-
note: "
|
|
8006
|
+
note: "published JavaScript parses and caches the launch argument dictionary provided by the preview host",
|
|
8005
8007
|
working: "LaunchArguments.value<T>()"
|
|
8006
8008
|
}
|
|
8007
8009
|
]
|
|
@@ -12080,9 +12082,9 @@ var init_registry = __esm({
|
|
|
12080
12082
|
{
|
|
12081
12083
|
range: ">=3.0.0",
|
|
12082
12084
|
coverage: 0.75,
|
|
12083
|
-
note: "
|
|
12084
|
-
working: "
|
|
12085
|
-
missing: "
|
|
12085
|
+
note: "published Passkey JavaScript determines support from the device OS version. The native bridge delegates credential requests to the browser WebAuthn owner.",
|
|
12086
|
+
working: "credential creation and assertion, platform and cross-platform selection for creation, extension payloads, credential signals, and explicit rejection when WebAuthn is unavailable",
|
|
12087
|
+
missing: "iOS-specific immediate credential selection, forced assertion authenticator selection, and hardware behavior that the browser does not expose"
|
|
12086
12088
|
}
|
|
12087
12089
|
]
|
|
12088
12090
|
},
|
|
@@ -29350,7 +29352,7 @@ function runtimeTarballCacheName(product, version2) {
|
|
|
29350
29352
|
return import_node_path4.default.posix.basename(product.tarballPath(version2));
|
|
29351
29353
|
}
|
|
29352
29354
|
function compareSemver(a, b) {
|
|
29353
|
-
const
|
|
29355
|
+
const parse17 = (v7) => {
|
|
29354
29356
|
const hyphen = v7.indexOf("-");
|
|
29355
29357
|
const core = hyphen >= 0 ? v7.slice(0, hyphen) : v7;
|
|
29356
29358
|
const pre = hyphen >= 0 ? v7.slice(hyphen + 1) : "";
|
|
@@ -29358,8 +29360,8 @@ function compareSemver(a, b) {
|
|
|
29358
29360
|
if (parts.some((n) => !Number.isFinite(n))) return [[Number.POSITIVE_INFINITY], v7];
|
|
29359
29361
|
return [parts, pre];
|
|
29360
29362
|
};
|
|
29361
|
-
const [an, ap] =
|
|
29362
|
-
const [bn, bp] =
|
|
29363
|
+
const [an, ap] = parse17(a);
|
|
29364
|
+
const [bn, bp] = parse17(b);
|
|
29363
29365
|
for (let i = 0; i < Math.max(an.length, bn.length); i++) {
|
|
29364
29366
|
const av = an[i] ?? 0;
|
|
29365
29367
|
const bv = bn[i] ?? 0;
|
|
@@ -30617,40 +30619,11 @@ var init_nativeViewSourceContract = __esm({
|
|
|
30617
30619
|
});
|
|
30618
30620
|
|
|
30619
30621
|
// src/config.ts
|
|
30620
|
-
var config_exports = {};
|
|
30621
|
-
__export(config_exports, {
|
|
30622
|
-
PEACH_CONFIGURED_FILES_HOOK: () => PEACH_CONFIGURED_FILES_HOOK,
|
|
30623
|
-
PEACH_CONFIG_QUERY_PARAM: () => PEACH_CONFIG_QUERY_PARAM,
|
|
30624
|
-
applyPeachConfigToUrl: () => applyPeachConfigToUrl,
|
|
30625
|
-
collectConfiguredFileModules: () => collectConfiguredFileModules,
|
|
30626
|
-
createPeachBundleConfigFooter: () => createPeachBundleConfigFooter,
|
|
30627
|
-
defineConfig: () => defineConfig,
|
|
30628
|
-
detachPeachBundleConfigFooter: () => detachPeachBundleConfigFooter,
|
|
30629
|
-
hasPeachConfig: () => hasPeachConfig,
|
|
30630
|
-
isPackageStubs: () => isPackageStubs,
|
|
30631
|
-
isPeachConfig: () => isPeachConfig,
|
|
30632
|
-
matchConfigModule: () => matchConfigModule,
|
|
30633
|
-
mergePeachConfig: () => mergePeachConfig,
|
|
30634
|
-
readNativeRenderer: () => readNativeRenderer,
|
|
30635
|
-
readPeachBundleConfig: () => readPeachBundleConfig,
|
|
30636
|
-
readPeachBundleConfigFooter: () => readPeachBundleConfigFooter,
|
|
30637
|
-
readPeachConfigFromSearchParams: () => readPeachConfigFromSearchParams
|
|
30638
|
-
});
|
|
30639
30622
|
function readNativeRenderer(value) {
|
|
30640
30623
|
if (value === void 0) return void 0;
|
|
30641
30624
|
if (value === "paper" || value === "fabric") return value;
|
|
30642
30625
|
throw new Error("nativeRenderer must be paper or fabric");
|
|
30643
30626
|
}
|
|
30644
|
-
function matchConfigModule(name3, modules) {
|
|
30645
|
-
const entries = Object.entries(modules).sort((a, b) => b[0].length - a[0].length);
|
|
30646
|
-
const modulePath = name3.startsWith("/") ? name3 : `/${name3}`;
|
|
30647
|
-
for (const [pattern, resolution] of entries) {
|
|
30648
|
-
if (modulePath.includes(`/${pattern}/`) || modulePath.endsWith(`/${pattern}`) || modulePath.endsWith(`/${pattern}.js`) || modulePath.endsWith(`/${pattern}.ts`) || modulePath.endsWith(`/${pattern}.tsx`)) {
|
|
30649
|
-
return { pattern, resolution };
|
|
30650
|
-
}
|
|
30651
|
-
}
|
|
30652
|
-
return void 0;
|
|
30653
|
-
}
|
|
30654
30627
|
function isHybridObjectAnswer(answer2) {
|
|
30655
30628
|
return answer2 === "unsupported" || isRecord(answer2) && typeof answer2.file === "string" && answer2.file.length > 0;
|
|
30656
30629
|
}
|
|
@@ -30743,9 +30716,6 @@ function detachPeachBundleConfigFooter(source) {
|
|
|
30743
30716
|
configuredBundle
|
|
30744
30717
|
};
|
|
30745
30718
|
}
|
|
30746
|
-
function defineConfig(config) {
|
|
30747
|
-
return config;
|
|
30748
|
-
}
|
|
30749
30719
|
function hasOwnKeys(value) {
|
|
30750
30720
|
return !!value && Object.keys(value).length > 0;
|
|
30751
30721
|
}
|
|
@@ -30817,6 +30787,23 @@ var init_config = __esm({
|
|
|
30817
30787
|
}
|
|
30818
30788
|
});
|
|
30819
30789
|
|
|
30790
|
+
// src/estree-walk.ts
|
|
30791
|
+
function isNode2(value) {
|
|
30792
|
+
return isRecord(value) && typeof value.type === "string";
|
|
30793
|
+
}
|
|
30794
|
+
function visitNodes(node, enter) {
|
|
30795
|
+
enter(node);
|
|
30796
|
+
for (const value of Object.values(node))
|
|
30797
|
+
for (const child of Array.isArray(value) ? value : [value])
|
|
30798
|
+
if (isNode2(child)) visitNodes(child, enter);
|
|
30799
|
+
}
|
|
30800
|
+
var init_estree_walk = __esm({
|
|
30801
|
+
"src/estree-walk.ts"() {
|
|
30802
|
+
"use strict";
|
|
30803
|
+
init_is_record();
|
|
30804
|
+
}
|
|
30805
|
+
});
|
|
30806
|
+
|
|
30820
30807
|
// src/kotlin-toolchain.ts
|
|
30821
30808
|
async function runKotlinTool(toolchain, sdkRoot, tool, args, maxBuffer = 16 * 1024 * 1024) {
|
|
30822
30809
|
const lib = import_node_path9.default.resolve(import_node_path9.default.dirname(toolchain.kotlinc), "../lib");
|
|
@@ -31886,7 +31873,9 @@ var init_pod_graph_specifications = __esm({
|
|
|
31886
31873
|
function prism() {
|
|
31887
31874
|
if (exports2) return exports2;
|
|
31888
31875
|
const bytes = typeof __PEACH_PRISM_WASM__ === "string" ? Buffer.from(__PEACH_PRISM_WASM__, "base64") : import_node_fs17.default.readFileSync(
|
|
31889
|
-
(0, import_node_module.createRequire)(__sootsim_import_meta_url).resolve(
|
|
31876
|
+
(0, import_node_module.createRequire)(__sootsim_import_meta_url).resolve(
|
|
31877
|
+
true ? "peachsim/vendor/prism.wasm" : "@ruby/prism/src/prism.wasm"
|
|
31878
|
+
)
|
|
31890
31879
|
);
|
|
31891
31880
|
let memory = null;
|
|
31892
31881
|
const EBADF = 8;
|
|
@@ -31933,7 +31922,7 @@ var init_podspec_prism = __esm({
|
|
|
31933
31922
|
import_node_crypto7 = require("node:crypto");
|
|
31934
31923
|
import_node_fs17 = __toESM(require("node:fs"), 1);
|
|
31935
31924
|
import_node_module = require("node:module");
|
|
31936
|
-
import_parsePrism = require("
|
|
31925
|
+
import_parsePrism = require("peachsim/vendor/@ruby/prism/src/parsePrism.js");
|
|
31937
31926
|
RubySyntaxError = class extends Error {
|
|
31938
31927
|
};
|
|
31939
31928
|
exports2 = null;
|
|
@@ -34623,7 +34612,7 @@ var init_podspec_ruby = __esm({
|
|
|
34623
34612
|
import_node_crypto8 = require("node:crypto");
|
|
34624
34613
|
import_node_fs18 = __toESM(require("node:fs"), 1);
|
|
34625
34614
|
import_node_path12 = __toESM(require("node:path"), 1);
|
|
34626
|
-
N = __toESM(require("
|
|
34615
|
+
N = __toESM(require("peachsim/vendor/@ruby/prism/src/nodes.js"), 1);
|
|
34627
34616
|
init_podspec_prism();
|
|
34628
34617
|
UnsupportedRuby = class extends Error {
|
|
34629
34618
|
};
|
|
@@ -45417,48 +45406,6 @@ var init_nitro_source = __esm({
|
|
|
45417
45406
|
}
|
|
45418
45407
|
});
|
|
45419
45408
|
|
|
45420
|
-
// src/visit-parsed-program.ts
|
|
45421
|
-
function visitParsedProgram(program, visitor) {
|
|
45422
|
-
const enterByType = /* @__PURE__ */ new Map();
|
|
45423
|
-
const exitByType = /* @__PURE__ */ new Map();
|
|
45424
|
-
for (const key2 of Object.keys(visitor)) {
|
|
45425
|
-
const handler = Reflect.get(visitor, key2);
|
|
45426
|
-
if (typeof handler !== "function") continue;
|
|
45427
|
-
const invoke = (node) => {
|
|
45428
|
-
handler(node);
|
|
45429
|
-
};
|
|
45430
|
-
if (key2.endsWith(":exit")) exitByType.set(key2.slice(0, -5), invoke);
|
|
45431
|
-
else enterByType.set(key2, invoke);
|
|
45432
|
-
}
|
|
45433
|
-
if (enterByType.size === 0 && exitByType.size === 0) return;
|
|
45434
|
-
const hasExit = exitByType.size > 0;
|
|
45435
|
-
function visit3(value) {
|
|
45436
|
-
if (Array.isArray(value)) {
|
|
45437
|
-
for (let i = 0; i < value.length; i++) visit3(value[i]);
|
|
45438
|
-
return;
|
|
45439
|
-
}
|
|
45440
|
-
if (!isRecord(value) || typeof value.type !== "string") return;
|
|
45441
|
-
const keys = import_oxc_parser.visitorKeys[value.type];
|
|
45442
|
-
if (!keys) return;
|
|
45443
|
-
const enter = enterByType.get(value.type);
|
|
45444
|
-
if (enter) enter(value);
|
|
45445
|
-
for (let i = 0; i < keys.length; i++) visit3(value[keys[i]]);
|
|
45446
|
-
if (hasExit) {
|
|
45447
|
-
const exit = exitByType.get(value.type);
|
|
45448
|
-
if (exit) exit(value);
|
|
45449
|
-
}
|
|
45450
|
-
}
|
|
45451
|
-
visit3(program);
|
|
45452
|
-
}
|
|
45453
|
-
var import_oxc_parser;
|
|
45454
|
-
var init_visit_parsed_program = __esm({
|
|
45455
|
-
"src/visit-parsed-program.ts"() {
|
|
45456
|
-
"use strict";
|
|
45457
|
-
import_oxc_parser = require("oxc-parser");
|
|
45458
|
-
init_is_record();
|
|
45459
|
-
}
|
|
45460
|
-
});
|
|
45461
|
-
|
|
45462
45409
|
// ../../node_modules/json5/lib/unicode.js
|
|
45463
45410
|
var require_unicode = __commonJS({
|
|
45464
45411
|
"../../node_modules/json5/lib/unicode.js"(exports3, module2) {
|
|
@@ -45505,7 +45452,7 @@ var require_parse = __commonJS({
|
|
|
45505
45452
|
var token;
|
|
45506
45453
|
var key2;
|
|
45507
45454
|
var root;
|
|
45508
|
-
module2.exports = function
|
|
45455
|
+
module2.exports = function parse17(text7, reviver) {
|
|
45509
45456
|
source = String(text7);
|
|
45510
45457
|
parseState = "start";
|
|
45511
45458
|
stack = [];
|
|
@@ -46561,10 +46508,10 @@ var require_stringify = __commonJS({
|
|
|
46561
46508
|
// ../../node_modules/json5/lib/index.js
|
|
46562
46509
|
var require_lib = __commonJS({
|
|
46563
46510
|
"../../node_modules/json5/lib/index.js"(exports3, module2) {
|
|
46564
|
-
var
|
|
46511
|
+
var parse17 = require_parse();
|
|
46565
46512
|
var stringify4 = require_stringify();
|
|
46566
46513
|
var JSON53 = {
|
|
46567
|
-
parse:
|
|
46514
|
+
parse: parse17,
|
|
46568
46515
|
stringify: stringify4
|
|
46569
46516
|
};
|
|
46570
46517
|
module2.exports = JSON53;
|
|
@@ -47109,8 +47056,17 @@ function sourceNativeRequests(file, text7, includeLegacy = false) {
|
|
|
47109
47056
|
} catch {
|
|
47110
47057
|
return [];
|
|
47111
47058
|
}
|
|
47112
|
-
|
|
47113
|
-
|
|
47059
|
+
let program;
|
|
47060
|
+
try {
|
|
47061
|
+
program = (0, import_acorn.parse)(code, {
|
|
47062
|
+
ecmaVersion: "latest",
|
|
47063
|
+
sourceType: "module",
|
|
47064
|
+
allowHashBang: true,
|
|
47065
|
+
allowReturnOutsideFunction: true
|
|
47066
|
+
});
|
|
47067
|
+
} catch {
|
|
47068
|
+
return [];
|
|
47069
|
+
}
|
|
47114
47070
|
const found2 = [];
|
|
47115
47071
|
const androidRanges = [];
|
|
47116
47072
|
const guard = (test, branch) => {
|
|
@@ -47125,50 +47081,63 @@ function sourceNativeRequests(file, text7, includeLegacy = false) {
|
|
|
47125
47081
|
line: code.slice(0, at).split("\n").length
|
|
47126
47082
|
});
|
|
47127
47083
|
};
|
|
47128
|
-
|
|
47129
|
-
|
|
47130
|
-
|
|
47131
|
-
|
|
47132
|
-
|
|
47133
|
-
guard(node.test, node.consequent);
|
|
47134
|
-
},
|
|
47135
|
-
LogicalExpression(node) {
|
|
47136
|
-
if (node.operator === "&&") guard(node.left, node.right);
|
|
47137
|
-
},
|
|
47138
|
-
VariableDeclarator(node) {
|
|
47139
|
-
if (!includeLegacy || !node.init || nativeLookupName(node.init) !== "NativeModules" || node.id.type !== "ObjectPattern")
|
|
47140
|
-
return;
|
|
47141
|
-
for (const property2 of node.id.properties) {
|
|
47142
|
-
if (property2.type !== "Property") continue;
|
|
47143
|
-
const key2 = property2.key;
|
|
47144
|
-
if (!property2.computed && key2.type === "Identifier")
|
|
47145
|
-
add2("module", key2.name, property2.start, false);
|
|
47146
|
-
else if (key2.type === "Literal" && typeof key2.value === "string")
|
|
47147
|
-
add2("module", key2.value, property2.start, false);
|
|
47084
|
+
visitNodes(program, (node) => {
|
|
47085
|
+
switch (node.type) {
|
|
47086
|
+
case "IfStatement": {
|
|
47087
|
+
guard(node.test, node.consequent);
|
|
47088
|
+
break;
|
|
47148
47089
|
}
|
|
47149
|
-
|
|
47150
|
-
|
|
47151
|
-
|
|
47152
|
-
|
|
47153
|
-
|
|
47154
|
-
|
|
47155
|
-
|
|
47156
|
-
|
|
47157
|
-
|
|
47158
|
-
if (
|
|
47159
|
-
|
|
47160
|
-
|
|
47161
|
-
|
|
47162
|
-
|
|
47163
|
-
|
|
47164
|
-
|
|
47165
|
-
|
|
47090
|
+
case "ConditionalExpression": {
|
|
47091
|
+
guard(node.test, node.consequent);
|
|
47092
|
+
break;
|
|
47093
|
+
}
|
|
47094
|
+
case "LogicalExpression": {
|
|
47095
|
+
if (node.operator === "&&") guard(node.left, node.right);
|
|
47096
|
+
break;
|
|
47097
|
+
}
|
|
47098
|
+
case "VariableDeclarator": {
|
|
47099
|
+
if (!includeLegacy || !node.init || nativeLookupName(node.init) !== "NativeModules" || node.id.type !== "ObjectPattern")
|
|
47100
|
+
return;
|
|
47101
|
+
for (const property2 of node.id.properties) {
|
|
47102
|
+
if (property2.type !== "Property") continue;
|
|
47103
|
+
const key2 = property2.key;
|
|
47104
|
+
if (!property2.computed && key2.type === "Identifier")
|
|
47105
|
+
add2("module", key2.name, property2.start, false);
|
|
47106
|
+
else if (key2.type === "Literal" && typeof key2.value === "string")
|
|
47107
|
+
add2("module", key2.value, property2.start, false);
|
|
47166
47108
|
}
|
|
47109
|
+
break;
|
|
47110
|
+
}
|
|
47111
|
+
case "CallExpression": {
|
|
47112
|
+
const first = node.arguments[0];
|
|
47113
|
+
if (first?.type !== "Literal" || typeof first.value !== "string") return;
|
|
47114
|
+
const callee = node.callee;
|
|
47115
|
+
const lookup4 = nativeLookupName(callee);
|
|
47116
|
+
if (callee.type === "MemberExpression" && !callee.computed && nativeLookupName(callee.object) === "TurboModuleRegistry" && (lookup4 === "get" || lookup4 === "getEnforcing")) {
|
|
47117
|
+
add2("module", first.value, node.start, false);
|
|
47118
|
+
} else if (lookup4) {
|
|
47119
|
+
if (["requireNativeModule", "requireOptionalNativeModule"].includes(lookup4))
|
|
47120
|
+
add2(
|
|
47121
|
+
"module",
|
|
47122
|
+
first.value,
|
|
47123
|
+
node.start,
|
|
47124
|
+
lookup4 === "requireOptionalNativeModule"
|
|
47125
|
+
);
|
|
47126
|
+
else if (["requireNativeComponent", "codegenNativeComponent"].includes(lookup4))
|
|
47127
|
+
add2("view", first.value, node.start, false);
|
|
47128
|
+
else if (["requireNativeView", "requireNativeViewManager"].includes(lookup4)) {
|
|
47129
|
+
const second = node.arguments[1];
|
|
47130
|
+
const name3 = second?.type === "Literal" && typeof second.value === "string" ? `${first.value}_${second.value}` : first.value;
|
|
47131
|
+
add2("view", name3, node.start, false);
|
|
47132
|
+
}
|
|
47133
|
+
}
|
|
47134
|
+
break;
|
|
47135
|
+
}
|
|
47136
|
+
case "MemberExpression": {
|
|
47137
|
+
if (includeLegacy && !node.computed && nativeLookupName(node.object) === "NativeModules" && node.property.type === "Identifier")
|
|
47138
|
+
add2("module", node.property.name, node.start, false);
|
|
47139
|
+
break;
|
|
47167
47140
|
}
|
|
47168
|
-
},
|
|
47169
|
-
MemberExpression(node) {
|
|
47170
|
-
if (includeLegacy && !node.computed && nativeLookupName(node.object) === "NativeModules" && node.property.type === "Identifier")
|
|
47171
|
-
add2("module", node.property.name, node.start, false);
|
|
47172
47141
|
}
|
|
47173
47142
|
});
|
|
47174
47143
|
return found2;
|
|
@@ -47237,11 +47206,11 @@ function configModule(configPath, packages) {
|
|
|
47237
47206
|
if (configPath && (configPath.endsWith(".cjs") || configPath.endsWith(".js") && /\bmodule\.exports\b/.test(readSmallFile(configPath) ?? "")))
|
|
47238
47207
|
return ["module.exports = {", ...body, "}"].join("\n");
|
|
47239
47208
|
return [
|
|
47240
|
-
`import {
|
|
47209
|
+
`import type { PeachConfig } from '${rnxPublicBrand.packageName}/config'`,
|
|
47241
47210
|
"",
|
|
47242
|
-
"export default
|
|
47211
|
+
"export default {",
|
|
47243
47212
|
...body,
|
|
47244
|
-
"}
|
|
47213
|
+
"} satisfies PeachConfig"
|
|
47245
47214
|
].join("\n");
|
|
47246
47215
|
}
|
|
47247
47216
|
function wireSlotMigration(appDir, configPath, wire, kept = []) {
|
|
@@ -47468,20 +47437,20 @@ function workspacePackageDirs(appDir, pkg) {
|
|
|
47468
47437
|
}
|
|
47469
47438
|
return [...dirs];
|
|
47470
47439
|
}
|
|
47471
|
-
var import_node_fs32, import_node_path27,
|
|
47440
|
+
var import_node_fs32, import_node_path27, import_acorn, import_sucrase, SOURCE_FILE, NATIVE_LOOKUP, NATIVE_SOURCE_DIRS, PACKAGE_SKIP_DIRS, NATIVE_SOURCE_FILE;
|
|
47472
47441
|
var init_app_stubs = __esm({
|
|
47473
47442
|
"cli/app-stubs.ts"() {
|
|
47474
47443
|
"use strict";
|
|
47475
47444
|
import_node_fs32 = require("node:fs");
|
|
47476
47445
|
import_node_path27 = require("node:path");
|
|
47477
47446
|
init_version_range();
|
|
47478
|
-
|
|
47447
|
+
import_acorn = require("peachsim/vendor/acorn");
|
|
47479
47448
|
import_sucrase = require("peachsim/vendor/sucrase");
|
|
47480
47449
|
init_config();
|
|
47450
|
+
init_estree_walk();
|
|
47481
47451
|
init_is_record();
|
|
47482
47452
|
init_nitro_source();
|
|
47483
47453
|
init_public_brand();
|
|
47484
|
-
init_visit_parsed_program();
|
|
47485
47454
|
init_detect();
|
|
47486
47455
|
SOURCE_FILE = /\.[cm]?[jt]sx?$/;
|
|
47487
47456
|
NATIVE_LOOKUP = /requireNative|requireOptionalNative|TurboModuleRegistry|codegenNativeComponent|NativeModules/;
|
|
@@ -49181,16 +49150,9 @@ async function loadRNXAppStubs(project2) {
|
|
|
49181
49150
|
async function loadConfigFile(project2) {
|
|
49182
49151
|
if (!project2.configPath) return void 0;
|
|
49183
49152
|
try {
|
|
49184
|
-
const
|
|
49185
|
-
|
|
49186
|
-
|
|
49187
|
-
moduleCache: false,
|
|
49188
|
-
tryNative: false,
|
|
49189
|
-
virtualModules: {
|
|
49190
|
-
[`${rnxPublicBrand.packageName}/config`]: config_exports
|
|
49191
|
-
}
|
|
49192
|
-
});
|
|
49193
|
-
const loaded4 = project2.configPath.endsWith(".json") ? JSON.parse((0, import_node_fs33.readFileSync)(project2.configPath, "utf8")) : await jiti.import(project2.configPath, { default: true });
|
|
49153
|
+
const configPath = import_node_path29.default.resolve(project2.configPath);
|
|
49154
|
+
delete (0, import_node_module5.createRequire)(__sootsim_import_meta_url).cache[configPath];
|
|
49155
|
+
const loaded4 = configPath.endsWith(".json") ? JSON.parse((0, import_node_fs33.readFileSync)(configPath, "utf8")) : Reflect.get(await import(configPath), "default");
|
|
49194
49156
|
if (!isPeachConfig(loaded4)) {
|
|
49195
49157
|
throw new Error("the default export must be a peach config object");
|
|
49196
49158
|
}
|
|
@@ -49242,18 +49204,16 @@ async function resolveRNXAppConfig(startDir = process.cwd()) {
|
|
|
49242
49204
|
const project2 = resolveAppProject(startDir);
|
|
49243
49205
|
return { project: project2, ...await loadRNXAppStubs(project2) };
|
|
49244
49206
|
}
|
|
49245
|
-
var import_node_fs33,
|
|
49207
|
+
var import_node_fs33, import_node_module5, import_node_path29, WIRE_SLOTS;
|
|
49246
49208
|
var init_app_config = __esm({
|
|
49247
49209
|
"src/app-config.ts"() {
|
|
49248
49210
|
"use strict";
|
|
49249
49211
|
import_node_fs33 = require("node:fs");
|
|
49212
|
+
import_node_module5 = require("node:module");
|
|
49250
49213
|
import_node_path29 = __toESM(require("node:path"), 1);
|
|
49251
|
-
import_jiti = require("jiti");
|
|
49252
49214
|
init_app_project();
|
|
49253
49215
|
init_app_stubs();
|
|
49254
49216
|
init_config();
|
|
49255
|
-
init_config();
|
|
49256
|
-
init_public_brand();
|
|
49257
49217
|
init_settingsContract();
|
|
49258
49218
|
init_storekit_test_store();
|
|
49259
49219
|
WIRE_SLOTS = ["nativeModules", "turboModules", "nativeViews"];
|
|
@@ -49338,7 +49298,7 @@ function autolinkerAppleFlags(autolinkerManifest, appRoot) {
|
|
|
49338
49298
|
return ["--platform", "ios"];
|
|
49339
49299
|
}
|
|
49340
49300
|
async function autolinkerResults(appRoot) {
|
|
49341
|
-
const appRequire = (0,
|
|
49301
|
+
const appRequire = (0, import_node_module6.createRequire)(import_node_path30.default.join(appRoot, "package.json"));
|
|
49342
49302
|
let expoRoot;
|
|
49343
49303
|
try {
|
|
49344
49304
|
expoRoot = import_node_path30.default.dirname(appRequire.resolve("expo/package.json"));
|
|
@@ -49403,12 +49363,12 @@ async function expoAutolinkedPods(appRoot) {
|
|
|
49403
49363
|
}))
|
|
49404
49364
|
);
|
|
49405
49365
|
}
|
|
49406
|
-
var import_node_fs34,
|
|
49366
|
+
var import_node_fs34, import_node_module6, import_node_path30;
|
|
49407
49367
|
var init_expo_autolinking = __esm({
|
|
49408
49368
|
"src/expo-autolinking.ts"() {
|
|
49409
49369
|
"use strict";
|
|
49410
49370
|
import_node_fs34 = __toESM(require("node:fs"), 1);
|
|
49411
|
-
|
|
49371
|
+
import_node_module6 = require("node:module");
|
|
49412
49372
|
import_node_path30 = __toESM(require("node:path"), 1);
|
|
49413
49373
|
init_autolinker_process();
|
|
49414
49374
|
init_is_record();
|
|
@@ -49492,13 +49452,13 @@ var init_swift_standin_digest = __esm({
|
|
|
49492
49452
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
49493
49453
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
49494
49454
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
49495
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
49455
|
+
STANDIN_SOURCE_DIGEST = true ? "63118ef9a51a40246d1d92d46ba9262a11addaf6d84914f7e1b78d6ff3b9bf19" : standinSourceDigest();
|
|
49496
49456
|
}
|
|
49497
49457
|
});
|
|
49498
49458
|
|
|
49499
49459
|
// src/expo-native-compiler-digest.ts
|
|
49500
49460
|
function expoNativeCompilerDigestValue() {
|
|
49501
|
-
return true ? "
|
|
49461
|
+
return true ? "d2721a5a426ac104272e382f27c37ac5deab8be0ed9aff4e274daba20781f6df" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
49502
49462
|
}
|
|
49503
49463
|
var import_node_crypto19;
|
|
49504
49464
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -49941,7 +49901,7 @@ async function generateAppSdkInChild(generatorFile, frameworks, options) {
|
|
|
49941
49901
|
}
|
|
49942
49902
|
}
|
|
49943
49903
|
async function selectOneSDK(appRoot) {
|
|
49944
|
-
const require4 = (0,
|
|
49904
|
+
const require4 = (0, import_node_module7.createRequire)(import_node_path37.default.join(appRoot, "package.json"));
|
|
49945
49905
|
let onePackage;
|
|
49946
49906
|
try {
|
|
49947
49907
|
onePackage = require4.resolve("one/package.json");
|
|
@@ -50056,14 +50016,14 @@ async function prepareOneSDKSources(appRoot, output) {
|
|
|
50056
50016
|
};
|
|
50057
50017
|
import_node_fs41.default.writeFileSync(import_node_path37.default.join(directory2, "manifest.json"), JSON.stringify(manifest));
|
|
50058
50018
|
}
|
|
50059
|
-
var import_node_child_process21, import_node_crypto21, import_node_fs41,
|
|
50019
|
+
var import_node_child_process21, import_node_crypto21, import_node_fs41, import_node_module7, import_node_os8, import_node_path37, import_node_url3, import_sucrase2, GENERATE_SCRIPT;
|
|
50060
50020
|
var init_one_sdk_preparation = __esm({
|
|
50061
50021
|
"src/one-sdk-preparation.ts"() {
|
|
50062
50022
|
"use strict";
|
|
50063
50023
|
import_node_child_process21 = require("node:child_process");
|
|
50064
50024
|
import_node_crypto21 = require("node:crypto");
|
|
50065
50025
|
import_node_fs41 = __toESM(require("node:fs"), 1);
|
|
50066
|
-
|
|
50026
|
+
import_node_module7 = require("node:module");
|
|
50067
50027
|
import_node_os8 = __toESM(require("node:os"), 1);
|
|
50068
50028
|
import_node_path37 = __toESM(require("node:path"), 1);
|
|
50069
50029
|
import_node_url3 = require("node:url");
|
|
@@ -64588,6 +64548,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
64588
64548
|
}
|
|
64589
64549
|
continue;
|
|
64590
64550
|
}
|
|
64551
|
+
const textualIncludes = entries.map(([file]) => file).filter((file) => /\.(?:inc|inl|ipp|def)$/.test(file));
|
|
64591
64552
|
native.set(target.name, {
|
|
64592
64553
|
path: target.path,
|
|
64593
64554
|
includeDirectory: import_node_path57.default.join(layout2.root, includes),
|
|
@@ -64595,7 +64556,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
64595
64556
|
lateSources: late.map(([file]) => file.slice(prefix.length)),
|
|
64596
64557
|
exclude: [
|
|
64597
64558
|
...late.map(([file]) => file.slice(prefix.length)),
|
|
64598
|
-
...
|
|
64559
|
+
...textualIncludes.map((file) => file.slice(prefix.length))
|
|
64599
64560
|
],
|
|
64600
64561
|
...late.length > 0 ? {
|
|
64601
64562
|
late: {
|
|
@@ -64606,13 +64567,36 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
64606
64567
|
}
|
|
64607
64568
|
} : {}
|
|
64608
64569
|
});
|
|
64609
|
-
if (late.length
|
|
64610
|
-
|
|
64611
|
-
|
|
64612
|
-
|
|
64570
|
+
if (late.length === 0) {
|
|
64571
|
+
const headers = import_node_path57.default.posix.join(target.path, target.publicHeadersPath ?? "include");
|
|
64572
|
+
const fragments = textualIncludes.filter(
|
|
64573
|
+
(file) => headers === "." || file.startsWith(`${headers}/`)
|
|
64574
|
+
);
|
|
64575
|
+
const name3 = swiftTargetModuleName(target.name);
|
|
64576
|
+
const map2 = import_node_path57.default.posix.join(headers, "module.modulemap");
|
|
64577
|
+
if (fragments.length > 0 && !Object.hasOwn(input.files, map2) && !files2.has(import_node_path57.default.join(layout2.root, map2)) && !Object.hasOwn(input.files, import_node_path57.default.posix.join(headers, `${name3}.h`)) && !Object.hasOwn(input.files, import_node_path57.default.posix.join(headers, name3, `${name3}.h`)))
|
|
64578
|
+
stageTargetFile(
|
|
64579
|
+
target.name,
|
|
64580
|
+
import_node_path57.default.join(layout2.root, map2),
|
|
64581
|
+
[
|
|
64582
|
+
`module ${name3} {`,
|
|
64583
|
+
' umbrella "."',
|
|
64584
|
+
...fragments.map(
|
|
64585
|
+
(file) => ` textual header ${JSON.stringify(import_node_path57.default.posix.relative(headers, file))}`
|
|
64586
|
+
),
|
|
64587
|
+
" export *",
|
|
64588
|
+
"}",
|
|
64589
|
+
""
|
|
64590
|
+
].join("\n")
|
|
64591
|
+
);
|
|
64592
|
+
continue;
|
|
64593
|
+
}
|
|
64594
|
+
files2.set(
|
|
64595
|
+
import_node_path57.default.join(layout2.root, target.path, "PeachSwiftImplementation/module.modulemap"),
|
|
64596
|
+
`module ${swiftTargetModuleName(`${target.name}SwiftImplementation`)} { export * }
|
|
64613
64597
|
`
|
|
64614
|
-
|
|
64615
|
-
if (
|
|
64598
|
+
);
|
|
64599
|
+
if (entries.some(
|
|
64616
64600
|
([file, contents2]) => file.endsWith("/module.modulemap") && moduleMapName(contents2) === swiftTargetModuleName(target.name)
|
|
64617
64601
|
))
|
|
64618
64602
|
continue;
|
|
@@ -67034,7 +67018,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
67034
67018
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
67035
67019
|
MULTI_MANIFEST_VERSION = 72;
|
|
67036
67020
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
67037
|
-
compilerSourceDigest = true ? "
|
|
67021
|
+
compilerSourceDigest = true ? "82277b01523ae4b1fce8888e636cd6a98f714c692be322d3916352e5629be0f5" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
67038
67022
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
67039
67023
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
67040
67024
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -87131,7 +87115,7 @@ function declaresNativeDependency(manifest, name3) {
|
|
|
87131
87115
|
return Object.hasOwn(manifest.dependencies ?? {}, name3) || Object.hasOwn(manifest.devDependencies ?? {}, name3);
|
|
87132
87116
|
}
|
|
87133
87117
|
async function prepareNativeProject(app, workspace, manifest, stage, execute, report, oneSdkPrepared) {
|
|
87134
|
-
const appRequire = (0,
|
|
87118
|
+
const appRequire = (0, import_node_module8.createRequire)(import_node_path81.default.join(app, "package.json"));
|
|
87135
87119
|
const sourcePodEnv = {
|
|
87136
87120
|
EXPO_USE_PRECOMPILED_MODULES: "0",
|
|
87137
87121
|
ONE_PREBUILT_IOS: "0",
|
|
@@ -87234,14 +87218,14 @@ ${failedOutputLine(command, cwd, bytes)}`
|
|
|
87234
87218
|
});
|
|
87235
87219
|
});
|
|
87236
87220
|
}
|
|
87237
|
-
var import_node_child_process41, import_node_crypto46, import_node_fs83,
|
|
87221
|
+
var import_node_child_process41, import_node_crypto46, import_node_fs83, import_node_module8, import_node_os19, import_node_path81, import_node_util8, isolatedGitEnv, NATIVE_CONFIG_FILE, NATIVE_SOURCE_FILE2, fileDigests, NATIVE_PACKAGE_ENTRY, hashing, KEPT_WORKSPACES, WORKSPACE_GRACE_MS, ABANDONED_WORKSPACE_MS, RETIRED_PREFIX2, preparing, watches, current, CLONE_SWIFT;
|
|
87238
87222
|
var init_expo_native_workspace = __esm({
|
|
87239
87223
|
"src/expo-native-workspace.ts"() {
|
|
87240
87224
|
"use strict";
|
|
87241
87225
|
import_node_child_process41 = require("node:child_process");
|
|
87242
87226
|
import_node_crypto46 = require("node:crypto");
|
|
87243
87227
|
import_node_fs83 = __toESM(require("node:fs"), 1);
|
|
87244
|
-
|
|
87228
|
+
import_node_module8 = require("node:module");
|
|
87245
87229
|
import_node_os19 = __toESM(require("node:os"), 1);
|
|
87246
87230
|
import_node_path81 = __toESM(require("node:path"), 1);
|
|
87247
87231
|
import_node_util8 = require("node:util");
|
|
@@ -87996,7 +87980,7 @@ function readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget, enviro
|
|
|
87996
87980
|
buildSdkVersion
|
|
87997
87981
|
);
|
|
87998
87982
|
const projectManifestPath = import_node_path83.default.join(projectRoot, "package.json");
|
|
87999
|
-
const projectRequire = (0,
|
|
87983
|
+
const projectRequire = (0, import_node_module9.createRequire)(projectManifestPath);
|
|
88000
87984
|
let reanimatedManifestPath;
|
|
88001
87985
|
try {
|
|
88002
87986
|
reanimatedManifestPath = projectRequire.resolve(
|
|
@@ -88055,12 +88039,12 @@ function readIosAppTarget(projectRoot, iosTarget, environment) {
|
|
|
88055
88039
|
environment
|
|
88056
88040
|
});
|
|
88057
88041
|
}
|
|
88058
|
-
var import_node_fs85,
|
|
88042
|
+
var import_node_fs85, import_node_module9, import_node_path83, SDK_BEFORE_SCENE_REQUIREMENT;
|
|
88059
88043
|
var init_native_app_identity_project = __esm({
|
|
88060
88044
|
"src/native-app-identity-project.ts"() {
|
|
88061
88045
|
"use strict";
|
|
88062
88046
|
import_node_fs85 = __toESM(require("node:fs"), 1);
|
|
88063
|
-
|
|
88047
|
+
import_node_module9 = require("node:module");
|
|
88064
88048
|
import_node_path83 = __toESM(require("node:path"), 1);
|
|
88065
88049
|
init_android_app_identity();
|
|
88066
88050
|
init_is_record();
|
|
@@ -88076,10 +88060,10 @@ var init_native_app_identity_project = __esm({
|
|
|
88076
88060
|
|
|
88077
88061
|
// src/native-firebase-config.ts
|
|
88078
88062
|
function resolveExpoConfigModule(appDir) {
|
|
88079
|
-
const expo = (0,
|
|
88063
|
+
const expo = (0, import_node_module10.createRequire)(import_node_path84.default.join(appDir, "package.json")).resolve(
|
|
88080
88064
|
"expo/package.json"
|
|
88081
88065
|
);
|
|
88082
|
-
return (0,
|
|
88066
|
+
return (0, import_node_module10.createRequire)(expo).resolve("@expo/config");
|
|
88083
88067
|
}
|
|
88084
88068
|
function hasExpoConfig(projectRoot) {
|
|
88085
88069
|
const packagePath = import_node_path84.default.join(projectRoot, "package.json");
|
|
@@ -88643,13 +88627,13 @@ function readNativeFirebaseConfig(projectRoot, platforms2 = ["ios", "android"],
|
|
|
88643
88627
|
}
|
|
88644
88628
|
return result;
|
|
88645
88629
|
}
|
|
88646
|
-
var import_node_child_process42, import_node_fs86,
|
|
88630
|
+
var import_node_child_process42, import_node_fs86, import_node_module10, import_node_os20, import_node_path84, EXPO_CONFIG_SCRIPT, EXPO_CONFIG_TIMEOUT_MS, resultDirectory, HELPER_DEPTH, stripComments;
|
|
88647
88631
|
var init_native_firebase_config = __esm({
|
|
88648
88632
|
"src/native-firebase-config.ts"() {
|
|
88649
88633
|
"use strict";
|
|
88650
88634
|
import_node_child_process42 = require("node:child_process");
|
|
88651
88635
|
import_node_fs86 = __toESM(require("node:fs"), 1);
|
|
88652
|
-
|
|
88636
|
+
import_node_module10 = require("node:module");
|
|
88653
88637
|
import_node_os20 = __toESM(require("node:os"), 1);
|
|
88654
88638
|
import_node_path84 = __toESM(require("node:path"), 1);
|
|
88655
88639
|
init_is_record();
|
|
@@ -88853,7 +88837,7 @@ function packageRootOf(appRoot, file) {
|
|
|
88853
88837
|
async function expoNativeInputs(appRoot) {
|
|
88854
88838
|
appRoot = import_node_fs88.default.realpathSync(appRoot);
|
|
88855
88839
|
if (findXcodeProject(import_node_path86.default.join(appRoot, "ios"))) return null;
|
|
88856
|
-
const appRequire = (0,
|
|
88840
|
+
const appRequire = (0, import_node_module11.createRequire)(import_node_path86.default.join(appRoot, "package.json"));
|
|
88857
88841
|
let fingerprintEntry;
|
|
88858
88842
|
try {
|
|
88859
88843
|
fingerprintEntry = appRequire.resolve("@expo/fingerprint", {
|
|
@@ -89035,13 +89019,13 @@ async function prebuiltExpoSwiftResult(appRoot, entry, signal) {
|
|
|
89035
89019
|
if (entry.expoSwift.modules.length === 0 && !entry.identity) return entry.expoSwift;
|
|
89036
89020
|
return servedExpoSwift(appRoot, entry, await prebuiltAppTarget(appRoot, signal));
|
|
89037
89021
|
}
|
|
89038
|
-
var import_node_crypto49, import_node_fs88,
|
|
89022
|
+
var import_node_crypto49, import_node_fs88, import_node_module11, import_node_path86, import_node_util9, import_plist7, EXPO_NATIVE_ENTRY_NAME, IDENTITY_SOURCE_SKIPS, expoNativeEntryUrl, isStringRecord, isPlistArray, published, lookups, answers;
|
|
89039
89023
|
var init_expo_native_prebuilt = __esm({
|
|
89040
89024
|
"src/expo-native-prebuilt.ts"() {
|
|
89041
89025
|
"use strict";
|
|
89042
89026
|
import_node_crypto49 = require("node:crypto");
|
|
89043
89027
|
import_node_fs88 = __toESM(require("node:fs"), 1);
|
|
89044
|
-
|
|
89028
|
+
import_node_module11 = require("node:module");
|
|
89045
89029
|
import_node_path86 = __toESM(require("node:path"), 1);
|
|
89046
89030
|
import_node_util9 = require("node:util");
|
|
89047
89031
|
import_plist7 = __toESM(require("peachsim/vendor/plist"), 1);
|
|
@@ -95802,7 +95786,7 @@ function collectInstalledSwiftBridgeUnits(appRoot, units, installedNamespaces, s
|
|
|
95802
95786
|
const dependencies = manifest && typeof manifest === "object" ? Reflect.get(manifest, "dependencies") : null;
|
|
95803
95787
|
if (!dependencies || typeof dependencies !== "object" || Array.isArray(dependencies))
|
|
95804
95788
|
return;
|
|
95805
|
-
const appRequire = (0,
|
|
95789
|
+
const appRequire = (0, import_node_module12.createRequire)(manifestPath);
|
|
95806
95790
|
const namespacesSeen = new Set(units.map((unit2) => unit2.namespace));
|
|
95807
95791
|
for (const packageName of Object.keys(dependencies).sort()) {
|
|
95808
95792
|
signal?.throwIfAborted();
|
|
@@ -95896,12 +95880,12 @@ public func ${register}() -> RCTModuleHost.Registration {
|
|
|
95896
95880
|
}
|
|
95897
95881
|
}
|
|
95898
95882
|
}
|
|
95899
|
-
var import_node_fs99,
|
|
95883
|
+
var import_node_fs99, import_node_module12, import_node_path96, DIRECTIVE2, swiftString, BRIDGE_MODULE_FILE_PREFIX;
|
|
95900
95884
|
var init_react_native_bridge_modules = __esm({
|
|
95901
95885
|
"src/react-native-bridge-modules.ts"() {
|
|
95902
95886
|
"use strict";
|
|
95903
95887
|
import_node_fs99 = __toESM(require("node:fs"), 1);
|
|
95904
|
-
|
|
95888
|
+
import_node_module12 = require("node:module");
|
|
95905
95889
|
import_node_path96 = __toESM(require("node:path"), 1);
|
|
95906
95890
|
init_answeredNativePackages();
|
|
95907
95891
|
init_swift_compile();
|
|
@@ -97163,11 +97147,14 @@ function enumerateBundleImages(paths, readText2, bundleForFile = () => ".") {
|
|
|
97163
97147
|
}
|
|
97164
97148
|
for (const path171 of paths) {
|
|
97165
97149
|
if (!isFlatResourceImage(path171)) continue;
|
|
97166
|
-
const
|
|
97150
|
+
const filename = baseOf(path171);
|
|
97151
|
+
const name3 = filename.slice(0, -extOf(filename).length);
|
|
97167
97152
|
const { bundlePath, names } = namesFor(path171);
|
|
97168
97153
|
if (name3 === "" || names.has(name3)) continue;
|
|
97169
97154
|
names.add(name3);
|
|
97170
|
-
|
|
97155
|
+
const scaledFilename = filename.replace(/@[23]x(?=\.[^./]+$)/, "");
|
|
97156
|
+
const fileNames = (scaledFilename === filename ? [filename] : [filename, scaledFilename]).filter((lookup4) => !names.has(lookup4));
|
|
97157
|
+
table.push({ name: name3, file: path171, scale: flatScale(path171), bundlePath, fileNames });
|
|
97171
97158
|
}
|
|
97172
97159
|
return table;
|
|
97173
97160
|
}
|
|
@@ -97297,13 +97284,13 @@ function templateElements(svg) {
|
|
|
97297
97284
|
continue;
|
|
97298
97285
|
}
|
|
97299
97286
|
let [x, y] = offsets.at(-1) ?? [0, 0];
|
|
97300
|
-
const
|
|
97301
|
-
if (kind === "g" &&
|
|
97287
|
+
const transform7 = /transform="([^"]*)"/.exec(attributes)?.[1];
|
|
97288
|
+
if (kind === "g" && transform7 !== void 0) {
|
|
97302
97289
|
const translate = /^\s*translate\(\s*([-0-9.]+)[\s,]*([-0-9.]*)\s*\)\s*$/.exec(
|
|
97303
|
-
|
|
97290
|
+
transform7
|
|
97304
97291
|
);
|
|
97305
97292
|
const matrix = /^\s*matrix\(\s*1[\s,]+0[\s,]+0[\s,]+1[\s,]+([-0-9.]+)[\s,]+([-0-9.]+)\s*\)\s*$/.exec(
|
|
97306
|
-
|
|
97293
|
+
transform7
|
|
97307
97294
|
);
|
|
97308
97295
|
const move = translate ?? matrix;
|
|
97309
97296
|
if (!move) return null;
|
|
@@ -101476,10 +101463,10 @@ var require_packer_sync = __commonJS({
|
|
|
101476
101463
|
var require_png_sync = __commonJS({
|
|
101477
101464
|
"../../node_modules/pngjs/lib/png-sync.js"(exports3) {
|
|
101478
101465
|
"use strict";
|
|
101479
|
-
var
|
|
101466
|
+
var parse17 = require_parser_sync();
|
|
101480
101467
|
var pack = require_packer_sync();
|
|
101481
101468
|
exports3.read = function(buffer, options) {
|
|
101482
|
-
return
|
|
101469
|
+
return parse17(buffer, options || {});
|
|
101483
101470
|
};
|
|
101484
101471
|
exports3.write = function(png, options) {
|
|
101485
101472
|
return pack(png, options);
|
|
@@ -102175,7 +102162,7 @@ function isSwiftStandinBehavior(value) {
|
|
|
102175
102162
|
);
|
|
102176
102163
|
}
|
|
102177
102164
|
function readSwiftStandinBehavior(source) {
|
|
102178
|
-
const ast = (0,
|
|
102165
|
+
const ast = (0, import_acorn2.parse)(
|
|
102179
102166
|
(0, import_sucrase3.transform)(source, { transforms: ["typescript", "jsx"] }).code,
|
|
102180
102167
|
{
|
|
102181
102168
|
ecmaVersion: "latest",
|
|
@@ -102202,11 +102189,11 @@ function readSwiftStandinBehavior(source) {
|
|
|
102202
102189
|
}
|
|
102203
102190
|
return result;
|
|
102204
102191
|
}
|
|
102205
|
-
var
|
|
102192
|
+
var import_acorn2, import_sucrase3;
|
|
102206
102193
|
var init_swift_standin_config = __esm({
|
|
102207
102194
|
"src/swift-standin-config.ts"() {
|
|
102208
102195
|
"use strict";
|
|
102209
|
-
|
|
102196
|
+
import_acorn2 = require("peachsim/vendor/acorn");
|
|
102210
102197
|
import_sucrase3 = require("peachsim/vendor/sucrase");
|
|
102211
102198
|
init_is_record();
|
|
102212
102199
|
}
|
|
@@ -103580,7 +103567,7 @@ function buildSwiftResourceTable(project2, baseUrl, inputs) {
|
|
|
103580
103567
|
registered.set(`${sha2565}.metal`, { bytes, contentType: "text/plain; charset=utf-8" });
|
|
103581
103568
|
}
|
|
103582
103569
|
let imageBytes = 0;
|
|
103583
|
-
for (const { name: name3, file, scale, bundlePath, renderingMode } of found2) {
|
|
103570
|
+
for (const { name: name3, file, scale, bundlePath, renderingMode, fileNames } of found2) {
|
|
103584
103571
|
const disk = byRelative.get(file);
|
|
103585
103572
|
if (!disk) continue;
|
|
103586
103573
|
if (Object.keys(images).length >= limits.images) {
|
|
@@ -103619,12 +103606,15 @@ function buildSwiftResourceTable(project2, baseUrl, inputs) {
|
|
|
103619
103606
|
imageBytes += bytes.length;
|
|
103620
103607
|
const hash = (0, import_node_crypto59.createHash)("sha256").update(bytes).digest("hex").slice(0, 16);
|
|
103621
103608
|
const bundle = table[bundlePath] ?? /* @__PURE__ */ Object.create(null);
|
|
103622
|
-
const
|
|
103623
|
-
variants.push({
|
|
103609
|
+
const variant2 = {
|
|
103624
103610
|
uri: `${baseUrl}${RESOURCE_PATH}${hash}${ext}`,
|
|
103625
103611
|
scale: variantScale,
|
|
103626
103612
|
...renderingMode ? { renderingMode } : {}
|
|
103627
|
-
}
|
|
103613
|
+
};
|
|
103614
|
+
for (const lookup4 of [name3, ...fileNames ?? []]) {
|
|
103615
|
+
const variants = bundle[lookup4] ??= [];
|
|
103616
|
+
variants.push(variant2);
|
|
103617
|
+
}
|
|
103628
103618
|
table[bundlePath] = bundle;
|
|
103629
103619
|
const key2 = layout2 ? xcodeInputKey(layout2, disk, file) : file;
|
|
103630
103620
|
images[key2] = {
|
|
@@ -103639,6 +103629,9 @@ function buildSwiftResourceTable(project2, baseUrl, inputs) {
|
|
|
103639
103629
|
contentType: RESOURCE_CONTENT_TYPES[ext] ?? "application/octet-stream"
|
|
103640
103630
|
});
|
|
103641
103631
|
}
|
|
103632
|
+
for (const bundle of Object.values(table))
|
|
103633
|
+
for (const variants of Object.values(bundle))
|
|
103634
|
+
variants.sort((a, b) => a.scale - b.scale);
|
|
103642
103635
|
for (const file of relative6) {
|
|
103643
103636
|
if (file.endsWith(".colorset/Contents.json") || file.includes(".symbolset/"))
|
|
103644
103637
|
watched.push(file);
|
|
@@ -105218,7 +105211,7 @@ function installedNativeLibraries(providers, projectRoot, moduleRoot, iosTarget,
|
|
|
105218
105211
|
const podsRoot = import_node_path105.default.dirname(app.cocoapods.manifestLock);
|
|
105219
105212
|
const localPods = app.cocoapods.localPodspecs;
|
|
105220
105213
|
const reactNativeRoot = import_node_path105.default.dirname(
|
|
105221
|
-
(0,
|
|
105214
|
+
(0, import_node_module13.createRequire)(import_node_path105.default.join(projectRoot, "package.json")).resolve(
|
|
105222
105215
|
"react-native/package.json"
|
|
105223
105216
|
)
|
|
105224
105217
|
);
|
|
@@ -105407,12 +105400,12 @@ function installedPodBinaries(directory2) {
|
|
|
105407
105400
|
}
|
|
105408
105401
|
return binaries.sort();
|
|
105409
105402
|
}
|
|
105410
|
-
var import_node_fs108,
|
|
105403
|
+
var import_node_fs108, import_node_module13, import_node_path105, BINARY_BUNDLE, SOURCE;
|
|
105411
105404
|
var init_installed_native_libraries = __esm({
|
|
105412
105405
|
"src/installed-native-libraries.ts"() {
|
|
105413
105406
|
"use strict";
|
|
105414
105407
|
import_node_fs108 = __toESM(require("node:fs"), 1);
|
|
105415
|
-
|
|
105408
|
+
import_node_module13 = require("node:module");
|
|
105416
105409
|
import_node_path105 = __toESM(require("node:path"), 1);
|
|
105417
105410
|
init_is_record();
|
|
105418
105411
|
init_native_static_libraries();
|
|
@@ -105505,7 +105498,7 @@ function realTarget(target) {
|
|
|
105505
105498
|
return import_node_path106.default.join(realTarget(import_node_path106.default.dirname(resolved)), import_node_path106.default.basename(resolved));
|
|
105506
105499
|
}
|
|
105507
105500
|
async function runInstalledTurboCodegen(appRoot, outDir, signal) {
|
|
105508
|
-
const manifestPath = (0,
|
|
105501
|
+
const manifestPath = (0, import_node_module14.createRequire)(import_node_path106.default.join(appRoot, "package.json")).resolve(
|
|
105509
105502
|
"react-native/package.json"
|
|
105510
105503
|
);
|
|
105511
105504
|
const manifest = JSON.parse(import_node_fs109.default.readFileSync(manifestPath, "utf8"));
|
|
@@ -105545,14 +105538,14 @@ async function runInstalledTurboCodegen(appRoot, outDir, signal) {
|
|
|
105545
105538
|
files: hashTree(generatedRoot)
|
|
105546
105539
|
};
|
|
105547
105540
|
}
|
|
105548
|
-
var import_node_child_process53, import_node_crypto60, import_node_fs109,
|
|
105541
|
+
var import_node_child_process53, import_node_crypto60, import_node_fs109, import_node_module14, import_node_path106, import_node_util11, run6, RENDERER_PODS, RENDERER_PODS_VERSIONED, COMPILED_SOURCE, LEGACY_BRIDGE_DEV_SUPPORT, LEGACY_BRIDGE_PODS, LEGACY_BRIDGE_PODS_VERSIONED;
|
|
105549
105542
|
var init_turbo_codegen_intake = __esm({
|
|
105550
105543
|
"src/turbo-codegen-intake.ts"() {
|
|
105551
105544
|
"use strict";
|
|
105552
105545
|
import_node_child_process53 = require("node:child_process");
|
|
105553
105546
|
import_node_crypto60 = require("node:crypto");
|
|
105554
105547
|
import_node_fs109 = __toESM(require("node:fs"), 1);
|
|
105555
|
-
|
|
105548
|
+
import_node_module14 = require("node:module");
|
|
105556
105549
|
import_node_path106 = __toESM(require("node:path"), 1);
|
|
105557
105550
|
import_node_util11 = require("node:util");
|
|
105558
105551
|
init_forked_script_contract();
|
|
@@ -110329,7 +110322,7 @@ async function prepareTurboCompileInput(options) {
|
|
|
110329
110322
|
const reactNative = [options.appRoot, options.projectRoot].map(
|
|
110330
110323
|
(root2) => import_node_path108.default.dirname(
|
|
110331
110324
|
import_node_fs111.default.realpathSync(
|
|
110332
|
-
(0,
|
|
110325
|
+
(0, import_node_module15.createRequire)(import_node_path108.default.join(root2, "package.json")).resolve(
|
|
110333
110326
|
"react-native/package.json"
|
|
110334
110327
|
)
|
|
110335
110328
|
)
|
|
@@ -110484,13 +110477,13 @@ async function compileTurboModule(options) {
|
|
|
110484
110477
|
collection
|
|
110485
110478
|
};
|
|
110486
110479
|
}
|
|
110487
|
-
var import_node_crypto62, import_node_fs111,
|
|
110480
|
+
var import_node_crypto62, import_node_fs111, import_node_module15, import_node_os24, import_node_path108;
|
|
110488
110481
|
var init_turbo_compile = __esm({
|
|
110489
110482
|
"src/turbo-compile.ts"() {
|
|
110490
110483
|
"use strict";
|
|
110491
110484
|
import_node_crypto62 = require("node:crypto");
|
|
110492
110485
|
import_node_fs111 = __toESM(require("node:fs"), 1);
|
|
110493
|
-
|
|
110486
|
+
import_node_module15 = require("node:module");
|
|
110494
110487
|
import_node_os24 = __toESM(require("node:os"), 1);
|
|
110495
110488
|
import_node_path108 = __toESM(require("node:path"), 1);
|
|
110496
110489
|
init_native_app_identity_project();
|
|
@@ -110717,7 +110710,7 @@ function reactNativeCoreEntry(reactNativeRoot, moduleRoot, mode) {
|
|
|
110717
110710
|
};
|
|
110718
110711
|
walk3("");
|
|
110719
110712
|
const codegenRoot = import_node_path110.default.dirname(
|
|
110720
|
-
(0,
|
|
110713
|
+
(0, import_node_module16.createRequire)(import_node_path110.default.join(reactNativeRoot, "package.json")).resolve(
|
|
110721
110714
|
"@react-native/codegen/package.json"
|
|
110722
110715
|
)
|
|
110723
110716
|
);
|
|
@@ -110818,13 +110811,13 @@ function linkReactNativeCore(collection, core, moduleRoot) {
|
|
|
110818
110811
|
}
|
|
110819
110812
|
}
|
|
110820
110813
|
}
|
|
110821
|
-
var import_node_crypto63, import_node_fs113,
|
|
110814
|
+
var import_node_crypto63, import_node_fs113, import_node_module16, import_node_path110, import_node_util12, recipe, strings4, building;
|
|
110822
110815
|
var init_react_native_core = __esm({
|
|
110823
110816
|
"src/react-native-core.ts"() {
|
|
110824
110817
|
"use strict";
|
|
110825
110818
|
import_node_crypto63 = require("node:crypto");
|
|
110826
110819
|
import_node_fs113 = __toESM(require("node:fs"), 1);
|
|
110827
|
-
|
|
110820
|
+
import_node_module16 = require("node:module");
|
|
110828
110821
|
import_node_path110 = __toESM(require("node:path"), 1);
|
|
110829
110822
|
import_node_util12 = require("node:util");
|
|
110830
110823
|
init_home_paths();
|
|
@@ -111396,7 +111389,7 @@ function enrichInstalledUnits(units, installed2, namespaceGroups, provided, modu
|
|
|
111396
111389
|
const byPath = [...installedTargets].sort((a, b) => b.path.length - a.path.length);
|
|
111397
111390
|
const reactNativeRoot = import_node_fs115.default.realpathSync(
|
|
111398
111391
|
import_node_path112.default.dirname(
|
|
111399
|
-
(0,
|
|
111392
|
+
(0, import_node_module17.createRequire)(import_node_path112.default.join(appRoot, "package.json")).resolve(
|
|
111400
111393
|
"react-native/package.json"
|
|
111401
111394
|
)
|
|
111402
111395
|
)
|
|
@@ -111834,7 +111827,7 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
|
|
|
111834
111827
|
signal?.throwIfAborted();
|
|
111835
111828
|
appRoot = import_node_fs115.default.realpathSync(appRoot);
|
|
111836
111829
|
const appConfig = await loadRNXAppConfig(resolveAppProject(appRoot));
|
|
111837
|
-
const appRequire = (0,
|
|
111830
|
+
const appRequire = (0, import_node_module17.createRequire)(import_node_path112.default.join(appRoot, "package.json"));
|
|
111838
111831
|
let expoRoot;
|
|
111839
111832
|
try {
|
|
111840
111833
|
expoRoot = import_node_path112.default.dirname(appRequire.resolve("expo/package.json"));
|
|
@@ -112962,7 +112955,7 @@ async function compileExpoSwiftModulesTraced(root, base2, publishArtifact, optio
|
|
|
112962
112955
|
const reactProvider = units.some((unit2) => unit2.reactNativeProvider) ? await (async () => {
|
|
112963
112956
|
const projectRoot = options.installedWorkspace ? import_node_path112.default.dirname(import_node_path112.default.dirname(options.installedWorkspace)) : (await prepareExpoNativeWorkspace(root, signal, options.iosTarget)).app;
|
|
112964
112957
|
const reactNativeRoot = import_node_path112.default.dirname(
|
|
112965
|
-
(0,
|
|
112958
|
+
(0, import_node_module17.createRequire)(import_node_path112.default.join(projectRoot, "package.json")).resolve(
|
|
112966
112959
|
"react-native/package.json"
|
|
112967
112960
|
)
|
|
112968
112961
|
);
|
|
@@ -113441,7 +113434,7 @@ async function handleExpoSwiftRequest(req, res) {
|
|
|
113441
113434
|
}
|
|
113442
113435
|
return true;
|
|
113443
113436
|
}
|
|
113444
|
-
var import_node_async_hooks3, import_node_child_process56, import_node_crypto65, import_node_fs115,
|
|
113437
|
+
var import_node_async_hooks3, import_node_child_process56, import_node_crypto65, import_node_fs115, import_node_module17, import_node_os25, import_node_path112, import_node_url5, import_node_util13, run7, scriptEnv, EXPO_SWIFT_ROUTE, EXPO_SWIFT_ENTRY, WITNESS_BATCH, traceStore, discoveryCache, preparedCache, savedFs, ignoredRoots, ownTemporaryRoots, EXPO_MODULE_SCAN_TIMEOUT_MS, compiling, preparedExpoSwift, openPreparations, ExpoSwiftLinkRefusal;
|
|
113445
113438
|
var init_expo_swift_host = __esm({
|
|
113446
113439
|
"src/expo-swift-host.ts"() {
|
|
113447
113440
|
"use strict";
|
|
@@ -113449,7 +113442,7 @@ var init_expo_swift_host = __esm({
|
|
|
113449
113442
|
import_node_child_process56 = require("node:child_process");
|
|
113450
113443
|
import_node_crypto65 = require("node:crypto");
|
|
113451
113444
|
import_node_fs115 = __toESM(require("node:fs"), 1);
|
|
113452
|
-
|
|
113445
|
+
import_node_module17 = require("node:module");
|
|
113453
113446
|
import_node_os25 = __toESM(require("node:os"), 1);
|
|
113454
113447
|
import_node_path112 = __toESM(require("node:path"), 1);
|
|
113455
113448
|
import_node_url5 = require("node:url");
|
|
@@ -113802,10 +113795,6 @@ function staticValue(node) {
|
|
|
113802
113795
|
return typeof value === "number" ? -value : NOT_STATIC;
|
|
113803
113796
|
}
|
|
113804
113797
|
return NOT_STATIC;
|
|
113805
|
-
case "TSAsExpression":
|
|
113806
|
-
case "TSSatisfiesExpression":
|
|
113807
|
-
case "ParenthesizedExpression":
|
|
113808
|
-
return staticValue(node.expression);
|
|
113809
113798
|
case "ArrayExpression": {
|
|
113810
113799
|
const items2 = [];
|
|
113811
113800
|
for (const element of node.elements) {
|
|
@@ -113837,28 +113826,31 @@ function staticObject(node) {
|
|
|
113837
113826
|
function readOneNativeApp(root) {
|
|
113838
113827
|
const file = oneConfigPath(root);
|
|
113839
113828
|
if (!file) return null;
|
|
113840
|
-
const {
|
|
113829
|
+
const { code } = (0, import_sucrase4.transform)(import_node_fs117.default.readFileSync(file, "utf8"), {
|
|
113830
|
+
transforms: /\.[cm]?ts$/.test(file) ? ["typescript"] : [],
|
|
113831
|
+
disableESTransforms: true
|
|
113832
|
+
});
|
|
113841
113833
|
let app = null;
|
|
113842
|
-
|
|
113843
|
-
|
|
113844
|
-
|
|
113845
|
-
|
|
113846
|
-
|
|
113847
|
-
|
|
113848
|
-
|
|
113849
|
-
}
|
|
113834
|
+
visitNodes((0, import_acorn3.parse)(code, { ecmaVersion: "latest", sourceType: "module" }), (call) => {
|
|
113835
|
+
if (app || call.type !== "CallExpression") return;
|
|
113836
|
+
if (call.callee.type !== "Identifier" || call.callee.name !== "one") return;
|
|
113837
|
+
const [options] = call.arguments;
|
|
113838
|
+
if (options?.type !== "ObjectExpression") return;
|
|
113839
|
+
const { native } = staticObject(options);
|
|
113840
|
+
if (isRecord(native) && isRecord(native.app)) app = native.app;
|
|
113850
113841
|
});
|
|
113851
113842
|
return app;
|
|
113852
113843
|
}
|
|
113853
|
-
var import_node_fs117, import_node_path114,
|
|
113844
|
+
var import_node_fs117, import_node_path114, import_acorn3, import_sucrase4, CONFIG_FILES, NOT_STATIC;
|
|
113854
113845
|
var init_one_native_app_config = __esm({
|
|
113855
113846
|
"src/one-native-app-config.ts"() {
|
|
113856
113847
|
"use strict";
|
|
113857
113848
|
import_node_fs117 = __toESM(require("node:fs"), 1);
|
|
113858
113849
|
import_node_path114 = __toESM(require("node:path"), 1);
|
|
113859
|
-
|
|
113850
|
+
import_acorn3 = require("peachsim/vendor/acorn");
|
|
113851
|
+
import_sucrase4 = require("peachsim/vendor/sucrase");
|
|
113852
|
+
init_estree_walk();
|
|
113860
113853
|
init_is_record();
|
|
113861
|
-
init_visit_parsed_program();
|
|
113862
113854
|
CONFIG_FILES = [
|
|
113863
113855
|
"vite.config.ts",
|
|
113864
113856
|
"vite.config.mts",
|
|
@@ -113920,18 +113912,19 @@ function readAssetCatalog(files2, readContents2, imageUri, accentName) {
|
|
|
113920
113912
|
const colors = enumerateBundleColors(files2, readContents2);
|
|
113921
113913
|
const symbols = enumerateBundleSymbols(files2, readContents2, () => ".");
|
|
113922
113914
|
const images = {};
|
|
113923
|
-
for (const { name: name3, file, scale, renderingMode } of enumerateBundleImages(
|
|
113915
|
+
for (const { name: name3, file, scale, renderingMode, fileNames } of enumerateBundleImages(
|
|
113924
113916
|
files2,
|
|
113925
113917
|
readContents2
|
|
113926
113918
|
)) {
|
|
113927
113919
|
const uri = imageUri(file);
|
|
113928
|
-
if (uri
|
|
113929
|
-
|
|
113930
|
-
|
|
113931
|
-
|
|
113932
|
-
|
|
113933
|
-
|
|
113920
|
+
if (uri === null) continue;
|
|
113921
|
+
const variant2 = { uri, scale, ...renderingMode ? { renderingMode } : {} };
|
|
113922
|
+
for (const lookup4 of [name3, ...fileNames ?? []]) {
|
|
113923
|
+
const variants = images[lookup4] ??= [];
|
|
113924
|
+
variants.push(variant2);
|
|
113925
|
+
}
|
|
113934
113926
|
}
|
|
113927
|
+
for (const variants of Object.values(images)) variants.sort((a, b) => a.scale - b.scale);
|
|
113935
113928
|
if (accentName === null && Object.keys(colors).length === 0 && Object.keys(images).length === 0 && Object.keys(symbols).length === 0)
|
|
113936
113929
|
return null;
|
|
113937
113930
|
return { colors, images, symbols, accentName };
|
|
@@ -115173,7 +115166,7 @@ var init_nitro_compiler_digest = __esm({
|
|
|
115173
115166
|
|
|
115174
115167
|
// src/nitro-superset-inputs.ts
|
|
115175
115168
|
async function nitroSupersetInputs(options) {
|
|
115176
|
-
const resolve15 = (0,
|
|
115169
|
+
const resolve15 = (0, import_node_module18.createRequire)((0, import_node_path121.join)(options.appRoot, "package.json")).resolve;
|
|
115177
115170
|
const pin2 = swiftNativePin();
|
|
115178
115171
|
const inputs = {
|
|
115179
115172
|
configuration: options.configuration,
|
|
@@ -115190,12 +115183,12 @@ async function nitroSupersetInputs(options) {
|
|
|
115190
115183
|
inputs[`provider:${name3}`] = `${packageVersion(root)}\0${await packageTreeDigest(root)}`;
|
|
115191
115184
|
return inputs;
|
|
115192
115185
|
}
|
|
115193
|
-
var import_node_fs123,
|
|
115186
|
+
var import_node_fs123, import_node_module18, import_node_path121, packageVersion;
|
|
115194
115187
|
var init_nitro_superset_inputs = __esm({
|
|
115195
115188
|
"src/nitro-superset-inputs.ts"() {
|
|
115196
115189
|
"use strict";
|
|
115197
115190
|
import_node_fs123 = require("node:fs");
|
|
115198
|
-
|
|
115191
|
+
import_node_module18 = require("node:module");
|
|
115199
115192
|
import_node_path121 = require("node:path");
|
|
115200
115193
|
init_package_tree_digest();
|
|
115201
115194
|
init_swift_native_pin();
|
|
@@ -115302,7 +115295,7 @@ var init_nitro_superset = __esm({
|
|
|
115302
115295
|
init_nitroContract();
|
|
115303
115296
|
init_swift_standin_digest();
|
|
115304
115297
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
115305
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
115298
|
+
NITRO_COMPILER_DIGEST = true ? "40b5a3e48324aaea7cd2483960647c93319a36d65bd8e3de3289996016f66be0" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
115306
115299
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
115307
115300
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
115308
115301
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -115466,7 +115459,7 @@ var init_nitro_bundle = __esm({
|
|
|
115466
115459
|
|
|
115467
115460
|
// src/expo-widgets-bundle.ts
|
|
115468
115461
|
async function buildExpoWidgetsBundle(appRoot, origin = "") {
|
|
115469
|
-
const require4 = (0,
|
|
115462
|
+
const require4 = (0, import_node_module19.createRequire)(import_node_path123.default.join(appRoot, "package.json"));
|
|
115470
115463
|
let manifest;
|
|
115471
115464
|
try {
|
|
115472
115465
|
manifest = require4.resolve("expo-widgets/package.json");
|
|
@@ -115495,13 +115488,13 @@ async function buildExpoWidgetsBundle(appRoot, origin = "") {
|
|
|
115495
115488
|
}
|
|
115496
115489
|
};
|
|
115497
115490
|
}
|
|
115498
|
-
var import_node_child_process57, import_promises10,
|
|
115491
|
+
var import_node_child_process57, import_promises10, import_node_module19, import_node_path123, import_node_util14, EXPO_WIDGETS_ROUTE, handleExpoWidgetsRequest;
|
|
115499
115492
|
var init_expo_widgets_bundle = __esm({
|
|
115500
115493
|
"src/expo-widgets-bundle.ts"() {
|
|
115501
115494
|
"use strict";
|
|
115502
115495
|
import_node_child_process57 = require("node:child_process");
|
|
115503
115496
|
import_promises10 = __toESM(require("node:fs/promises"), 1);
|
|
115504
|
-
|
|
115497
|
+
import_node_module19 = require("node:module");
|
|
115505
115498
|
import_node_path123 = __toESM(require("node:path"), 1);
|
|
115506
115499
|
import_node_util14 = require("node:util");
|
|
115507
115500
|
init_expo_widget_assets();
|
|
@@ -116049,7 +116042,7 @@ function bindingNames(pattern) {
|
|
|
116049
116042
|
throw new Error(`unsupported Kotlin export binding ${pattern.type}`);
|
|
116050
116043
|
}
|
|
116051
116044
|
function kotlinInstanceSource(source, factory, instanceImports = /* @__PURE__ */ new Map()) {
|
|
116052
|
-
const program = (0,
|
|
116045
|
+
const program = (0, import_acorn4.parse)(source, { ecmaVersion: "latest", sourceType: "module" });
|
|
116053
116046
|
const imports2 = [];
|
|
116054
116047
|
const body = [];
|
|
116055
116048
|
let dependencies = 0;
|
|
@@ -116139,11 +116132,11 @@ return { peachDisposeInstance, ${exports3.map((item) => `${JSON.stringify(item.e
|
|
|
116139
116132
|
exports: exports3
|
|
116140
116133
|
};
|
|
116141
116134
|
}
|
|
116142
|
-
var
|
|
116135
|
+
var import_acorn4;
|
|
116143
116136
|
var init_kotlin_instance_source = __esm({
|
|
116144
116137
|
"src/kotlin-instance-source.ts"() {
|
|
116145
116138
|
"use strict";
|
|
116146
|
-
|
|
116139
|
+
import_acorn4 = require("peachsim/vendor/acorn");
|
|
116147
116140
|
}
|
|
116148
116141
|
});
|
|
116149
116142
|
|
|
@@ -116643,7 +116636,7 @@ function loadKotlinSdk(moduleRoot, toolchain) {
|
|
|
116643
116636
|
}
|
|
116644
116637
|
function appKotlinLanguage(root) {
|
|
116645
116638
|
const reactNative = import_node_path131.default.dirname(
|
|
116646
|
-
(0,
|
|
116639
|
+
(0, import_node_module20.createRequire)(import_node_path131.default.join(root, "package.json")).resolve("react-native/package.json")
|
|
116647
116640
|
);
|
|
116648
116641
|
const versions = import_node_fs132.default.readFileSync(
|
|
116649
116642
|
import_node_path131.default.join(reactNative, "gradle", "libs.versions.toml"),
|
|
@@ -116817,7 +116810,7 @@ function readExpoTypes(output) {
|
|
|
116817
116810
|
};
|
|
116818
116811
|
});
|
|
116819
116812
|
}
|
|
116820
|
-
async function scanSources(tool,
|
|
116813
|
+
async function scanSources(tool, parse17, toolchain, moduleRoot, files2) {
|
|
116821
116814
|
const digest2 = (0, import_node_crypto77.createHash)("sha256").update(JSON.stringify(toolchain.compiler));
|
|
116822
116815
|
const sdk2 = await loadKotlinSdk(moduleRoot, toolchain);
|
|
116823
116816
|
digest2.update(import_node_fs132.default.readFileSync(import_node_path131.default.join(moduleRoot, "sdk.tar.gz")));
|
|
@@ -116832,7 +116825,7 @@ async function scanSources(tool, parse15, toolchain, moduleRoot, files2) {
|
|
|
116832
116825
|
});
|
|
116833
116826
|
toolScans.set(key2, scan3);
|
|
116834
116827
|
}
|
|
116835
|
-
return
|
|
116828
|
+
return parse17(await scan3);
|
|
116836
116829
|
}
|
|
116837
116830
|
async function scanExpoTypes(toolchain, moduleRoot, sources) {
|
|
116838
116831
|
const candidates = sources.filter(
|
|
@@ -117622,7 +117615,7 @@ async function compileKotlin(input, origin) {
|
|
|
117622
117615
|
import_node_path131.default.join(work, "js")
|
|
117623
117616
|
]);
|
|
117624
117617
|
const skikoPath = import_node_path131.default.join(work, "js", "skiko.mjs");
|
|
117625
|
-
const upstream = (0,
|
|
117618
|
+
const upstream = (0, import_acorn5.parse)(import_node_fs132.default.readFileSync(skikoPath, "utf8"), {
|
|
117626
117619
|
ecmaVersion: "latest",
|
|
117627
117620
|
sourceType: "module"
|
|
117628
117621
|
});
|
|
@@ -117818,17 +117811,17 @@ async function serveKotlinRequest(pathname, res, app) {
|
|
|
117818
117811
|
}
|
|
117819
117812
|
return true;
|
|
117820
117813
|
}
|
|
117821
|
-
var import_node_child_process61, import_node_crypto77, import_node_fs132,
|
|
117814
|
+
var import_node_child_process61, import_node_crypto77, import_node_fs132, import_node_module20, import_node_path131, import_node_util18, import_acorn5, run11, KOTLIN_ARTIFACT_PREFIX, SKIP_DIRS, configureDeviceSource, BUILD_FORMAT, builds, toolScans, BRIDGE_PARAMETERS, BRIDGE_CASTS, BRIDGE_RETURNS, bridgeType, JAVA_CLASSES, argb, escapes2, literal3, CONTENT_TYPES;
|
|
117822
117815
|
var init_kotlin_host = __esm({
|
|
117823
117816
|
"src/kotlin-host.ts"() {
|
|
117824
117817
|
"use strict";
|
|
117825
117818
|
import_node_child_process61 = require("node:child_process");
|
|
117826
117819
|
import_node_crypto77 = require("node:crypto");
|
|
117827
117820
|
import_node_fs132 = __toESM(require("node:fs"), 1);
|
|
117828
|
-
|
|
117821
|
+
import_node_module20 = require("node:module");
|
|
117829
117822
|
import_node_path131 = __toESM(require("node:path"), 1);
|
|
117830
117823
|
import_node_util18 = require("node:util");
|
|
117831
|
-
|
|
117824
|
+
import_acorn5 = require("peachsim/vendor/acorn");
|
|
117832
117825
|
init_android_bridge_packages();
|
|
117833
117826
|
init_android_view_classes();
|
|
117834
117827
|
init_is_record();
|
|
@@ -117963,7 +117956,7 @@ function send2(app, change) {
|
|
|
117963
117956
|
if (client2.readyState === import_ws.WebSocket.OPEN) client2.send(message);
|
|
117964
117957
|
}
|
|
117965
117958
|
async function swiftPackages2(root) {
|
|
117966
|
-
const resolved = (0,
|
|
117959
|
+
const resolved = (0, import_node_module21.createRequire)(import_node_path132.default.join(root, "package.json")).resolve(
|
|
117967
117960
|
"vxrn/swift-package-id"
|
|
117968
117961
|
);
|
|
117969
117962
|
const loaded4 = await import((0, import_node_url7.pathToFileURL)(resolved).href);
|
|
@@ -118111,15 +118104,15 @@ function handleOneNativeSourceUpgrade(req, socket, head) {
|
|
|
118111
118104
|
});
|
|
118112
118105
|
return true;
|
|
118113
118106
|
}
|
|
118114
|
-
var import_node_fs133,
|
|
118107
|
+
var import_node_fs133, import_node_module21, import_node_path132, import_node_url7, import_ws, apps;
|
|
118115
118108
|
var init_one_native_source = __esm({
|
|
118116
118109
|
"src/one-native-source.ts"() {
|
|
118117
118110
|
"use strict";
|
|
118118
118111
|
import_node_fs133 = __toESM(require("node:fs"), 1);
|
|
118119
|
-
|
|
118112
|
+
import_node_module21 = require("node:module");
|
|
118120
118113
|
import_node_path132 = __toESM(require("node:path"), 1);
|
|
118121
118114
|
import_node_url7 = require("node:url");
|
|
118122
|
-
import_ws = require("ws");
|
|
118115
|
+
import_ws = require("peachsim/vendor/ws");
|
|
118123
118116
|
init_backend_origin();
|
|
118124
118117
|
init_kotlinDiscoveryContract();
|
|
118125
118118
|
init_one_widget_metadata();
|
|
@@ -118678,7 +118671,7 @@ function getCliRuntime() {
|
|
|
118678
118671
|
if (loaded3) return loaded3.runtime;
|
|
118679
118672
|
const root = peachRuntimeRoot();
|
|
118680
118673
|
verifyCliCompanion(root);
|
|
118681
|
-
const require4 = (0,
|
|
118674
|
+
const require4 = (0, import_node_module22.createRequire)(__sootsim_import_meta_url);
|
|
118682
118675
|
const runtime = require4((0, import_node_path134.join)(root, cliCompanionPath()));
|
|
118683
118676
|
if (runtime.cliCompanionAbi !== CLI_COMPANION_ABI) {
|
|
118684
118677
|
throw new Error(
|
|
@@ -118689,13 +118682,13 @@ function getCliRuntime() {
|
|
|
118689
118682
|
loaded3 = { root, runtime };
|
|
118690
118683
|
return runtime;
|
|
118691
118684
|
}
|
|
118692
|
-
var import_node_crypto79, import_node_fs135,
|
|
118685
|
+
var import_node_crypto79, import_node_fs135, import_node_module22, import_node_path134, CLI_COMPANION_ABI, loaded3;
|
|
118693
118686
|
var init_cli_runtime = __esm({
|
|
118694
118687
|
"src/cli-runtime.ts"() {
|
|
118695
118688
|
"use strict";
|
|
118696
118689
|
import_node_crypto79 = require("node:crypto");
|
|
118697
118690
|
import_node_fs135 = require("node:fs");
|
|
118698
|
-
|
|
118691
|
+
import_node_module22 = require("node:module");
|
|
118699
118692
|
import_node_path134 = require("node:path");
|
|
118700
118693
|
init_src();
|
|
118701
118694
|
init_runtime_companion();
|
|
@@ -118975,7 +118968,7 @@ async function compileTurboApp(appRoot, origin, moduleRoot, iosTarget, prepareRe
|
|
|
118975
118968
|
const { artifact, collection } = await compileTurboModule({
|
|
118976
118969
|
appRoot,
|
|
118977
118970
|
reactNativeRoot: import_node_path136.default.dirname(
|
|
118978
|
-
(0,
|
|
118971
|
+
(0, import_node_module23.createRequire)(import_node_path136.default.join(projectRoot, "package.json")).resolve(
|
|
118979
118972
|
"react-native/package.json"
|
|
118980
118973
|
)
|
|
118981
118974
|
),
|
|
@@ -118999,11 +118992,11 @@ async function compileTurboApp(appRoot, origin, moduleRoot, iosTarget, prepareRe
|
|
|
118999
118992
|
}
|
|
119000
118993
|
};
|
|
119001
118994
|
}
|
|
119002
|
-
var
|
|
118995
|
+
var import_node_module23, import_node_path136, TURBO_ROUTE, handleTurboRequest;
|
|
119003
118996
|
var init_turbo_bundle = __esm({
|
|
119004
118997
|
"src/turbo-bundle.ts"() {
|
|
119005
118998
|
"use strict";
|
|
119006
|
-
|
|
118999
|
+
import_node_module23 = require("node:module");
|
|
119007
119000
|
import_node_path136 = __toESM(require("node:path"), 1);
|
|
119008
119001
|
init_app_project();
|
|
119009
119002
|
init_app_config();
|
|
@@ -124176,12 +124169,6 @@ var init_stub_manifest = __esm({
|
|
|
124176
124169
|
runtimeTier: "none",
|
|
124177
124170
|
buildResolvers: ["vite", "dep-prebundle"]
|
|
124178
124171
|
},
|
|
124179
|
-
reactNativeLaunchArguments: {
|
|
124180
|
-
specifier: "react-native-launch-arguments",
|
|
124181
|
-
stubFile: "react-native-launch-arguments.ts",
|
|
124182
|
-
runtimeTier: "core",
|
|
124183
|
-
buildResolvers: ["vite"]
|
|
124184
|
-
},
|
|
124185
124172
|
expoWinterFetch: {
|
|
124186
124173
|
specifier: "expo/build/winter/fetch/index",
|
|
124187
124174
|
stubFile: "expo-winter-fetch.ts",
|
|
@@ -125161,6 +125148,8 @@ function describeEvent(event) {
|
|
|
125161
125148
|
return `websocket frame opcode ${event.opcode} (${event.data.byteLength} bytes) to ${new URL(event.url).origin}`;
|
|
125162
125149
|
case "tcp":
|
|
125163
125150
|
return `tcp ${event.host}:${event.port}`;
|
|
125151
|
+
case "udp":
|
|
125152
|
+
return `udp ${event.host}:${event.port}`;
|
|
125164
125153
|
case "tunnel":
|
|
125165
125154
|
return `tunnel ${event.host}:${event.port}`;
|
|
125166
125155
|
case "dns":
|
|
@@ -127739,7 +127728,7 @@ var init_websocket_proxy = __esm({
|
|
|
127739
127728
|
import_https2 = require("https");
|
|
127740
127729
|
import_net2 = require("net");
|
|
127741
127730
|
import_tls = require("tls");
|
|
127742
|
-
import_ws2 = require("ws");
|
|
127731
|
+
import_ws2 = require("peachsim/vendor/ws");
|
|
127743
127732
|
init_backend_origin();
|
|
127744
127733
|
init_bridge_constants();
|
|
127745
127734
|
init_is_record();
|
|
@@ -127798,7 +127787,7 @@ async function resolveExpoAndroidAutolinking(appRoot) {
|
|
|
127798
127787
|
async function resolveAndroidModules(appRoot) {
|
|
127799
127788
|
let autolinker;
|
|
127800
127789
|
try {
|
|
127801
|
-
autolinker = (0,
|
|
127790
|
+
autolinker = (0, import_node_module24.createRequire)(import_node_path153.default.join(appRoot, "package.json")).resolve(
|
|
127802
127791
|
"expo-modules-autolinking/package.json"
|
|
127803
127792
|
);
|
|
127804
127793
|
} catch (error) {
|
|
@@ -127862,12 +127851,12 @@ async function resolveReactNativeAndroidAutolinking(appRoot) {
|
|
|
127862
127851
|
}
|
|
127863
127852
|
return linked;
|
|
127864
127853
|
}
|
|
127865
|
-
var import_node_fs150,
|
|
127854
|
+
var import_node_fs150, import_node_module24, import_node_path153, resolving;
|
|
127866
127855
|
var init_android_autolinking = __esm({
|
|
127867
127856
|
"src/android-autolinking.ts"() {
|
|
127868
127857
|
"use strict";
|
|
127869
127858
|
import_node_fs150 = __toESM(require("node:fs"), 1);
|
|
127870
|
-
|
|
127859
|
+
import_node_module24 = require("node:module");
|
|
127871
127860
|
import_node_path153 = __toESM(require("node:path"), 1);
|
|
127872
127861
|
init_androidAutolinkingContract();
|
|
127873
127862
|
init_autolinker_process();
|
|
@@ -130194,7 +130183,7 @@ function memoizedBinarySearch(haystack, needle, state, key2) {
|
|
|
130194
130183
|
state.lastNeedle = needle;
|
|
130195
130184
|
return state.lastIndex = binarySearch(haystack, needle, low, high);
|
|
130196
130185
|
}
|
|
130197
|
-
function
|
|
130186
|
+
function parse13(map2) {
|
|
130198
130187
|
return typeof map2 === "string" ? JSON.parse(map2) : map2;
|
|
130199
130188
|
}
|
|
130200
130189
|
function cast(map2) {
|
|
@@ -130272,7 +130261,7 @@ var init_trace_mapping = __esm({
|
|
|
130272
130261
|
constructor(map2, mapUrl) {
|
|
130273
130262
|
const isString = typeof map2 === "string";
|
|
130274
130263
|
if (!isString && map2._decodedMemo) return map2;
|
|
130275
|
-
const parsed2 =
|
|
130264
|
+
const parsed2 = parse13(map2);
|
|
130276
130265
|
const { version: version2, file, names, sourceRoot, sources, sourcesContent } = parsed2;
|
|
130277
130266
|
this.version = version2;
|
|
130278
130267
|
this.file = file;
|
|
@@ -131660,6 +131649,7 @@ __export(cloud_client_exports, {
|
|
|
131660
131649
|
CloudBoxBridge: () => CloudBoxBridge,
|
|
131661
131650
|
DEFAULT_RNX_CLOUD_ORIGIN: () => DEFAULT_RNX_CLOUD_ORIGIN,
|
|
131662
131651
|
MAX_RNX_CLOUD_BUNDLE_BYTES: () => MAX_RNX_CLOUD_BUNDLE_BYTES,
|
|
131652
|
+
NanoDevelopmentOnlyError: () => NanoDevelopmentOnlyError,
|
|
131663
131653
|
UnsupportedRemoteHostError: () => UnsupportedRemoteHostError,
|
|
131664
131654
|
assertBundleBuiltFor: () => assertBundleBuiltFor,
|
|
131665
131655
|
awaitBoxBoot: () => awaitBoxBoot,
|
|
@@ -132403,6 +132393,7 @@ async function createRemoteSim(options) {
|
|
|
132403
132393
|
const headers = {
|
|
132404
132394
|
authorization: options.authorization,
|
|
132405
132395
|
"content-type": "application/javascript",
|
|
132396
|
+
"x-rnx-box-size": "nano",
|
|
132406
132397
|
"x-rnx-artifact-sha256": artifact.sha256,
|
|
132407
132398
|
"x-rnx-platform": options.platform,
|
|
132408
132399
|
"x-rnx-device": options.device,
|
|
@@ -132517,7 +132508,7 @@ async function listRemoteSims(options) {
|
|
|
132517
132508
|
if (!isRecord(parsed2) || !Array.isArray(parsed2.sims)) {
|
|
132518
132509
|
throw new Error("remote simulator list returned invalid JSON");
|
|
132519
132510
|
}
|
|
132520
|
-
return parsed2.sims.map(readSimView);
|
|
132511
|
+
return parsed2.sims.filter((sim) => !isRecord(sim) || sim.size !== "micro").map(readSimView);
|
|
132521
132512
|
}
|
|
132522
132513
|
async function getRemoteSim(options) {
|
|
132523
132514
|
const apiOrigin = resolveCloudOrigin(options.apiOrigin);
|
|
@@ -132769,7 +132760,7 @@ async function closeCloudSession(session) {
|
|
|
132769
132760
|
throw responseError(response.status, text7);
|
|
132770
132761
|
}
|
|
132771
132762
|
}
|
|
132772
|
-
var import_node_crypto87, import_node_fs157, import_node_path160, import_node_vm, DEFAULT_RNX_CLOUD_ORIGIN, MAX_RNX_CLOUD_BUNDLE_BYTES, REMOTE_COMMAND, PREVIEW_COMMAND, UnsupportedRemoteHostError, MAX_ASSET_DEST_FILES, ACCOUNT_CHOICE_REFUSALS, PROJECT_ONLY_DIRECTORIES, MAX_PLACEMENT_COMBINATIONS, REMOTE_HAS_NO_LOCAL_SIMS, CloudBridge, CloudBoxBridge, BoxBootFailedError, BOX_BOOT_WAIT_MS, BOX_BOOT_READ_INTERVAL_MS;
|
|
132763
|
+
var import_node_crypto87, import_node_fs157, import_node_path160, import_node_vm, DEFAULT_RNX_CLOUD_ORIGIN, MAX_RNX_CLOUD_BUNDLE_BYTES, REMOTE_COMMAND, PREVIEW_COMMAND, NanoDevelopmentOnlyError, UnsupportedRemoteHostError, MAX_ASSET_DEST_FILES, ACCOUNT_CHOICE_REFUSALS, PROJECT_ONLY_DIRECTORIES, MAX_PLACEMENT_COMBINATIONS, REMOTE_HAS_NO_LOCAL_SIMS, CloudBridge, CloudBoxBridge, BoxBootFailedError, BOX_BOOT_WAIT_MS, BOX_BOOT_READ_INTERVAL_MS;
|
|
132773
132764
|
var init_cloud_client = __esm({
|
|
132774
132765
|
"cli/cloud-client.ts"() {
|
|
132775
132766
|
"use strict";
|
|
@@ -132797,6 +132788,12 @@ var init_cloud_client = __esm({
|
|
|
132797
132788
|
MAX_RNX_CLOUD_BUNDLE_BYTES = RNX_CLOUD_MAX_ARTIFACT_BYTES;
|
|
132798
132789
|
REMOTE_COMMAND = "peach remote";
|
|
132799
132790
|
PREVIEW_COMMAND = "peach preview";
|
|
132791
|
+
NanoDevelopmentOnlyError = class extends Error {
|
|
132792
|
+
code = "nano_development_only";
|
|
132793
|
+
constructor() {
|
|
132794
|
+
super("Nano requires a development build. [nano_development_only]");
|
|
132795
|
+
}
|
|
132796
|
+
};
|
|
132800
132797
|
UnsupportedRemoteHostError = class extends Error {
|
|
132801
132798
|
code = "unsupported_host";
|
|
132802
132799
|
platform;
|
|
@@ -132991,6 +132988,7 @@ function cloudDevice(capturedModel) {
|
|
|
132991
132988
|
return captured && getCliRuntime().settings_devices.getRuntimePlatform(captured) === "ios" ? captured : DEFAULT_DEVICE_BY_PLATFORM.ios;
|
|
132992
132989
|
}
|
|
132993
132990
|
async function sendToBox(options) {
|
|
132991
|
+
if (!isSootsimDevCheckout()) throw new NanoDevelopmentOnlyError();
|
|
132994
132992
|
const captured = await options.send({
|
|
132995
132993
|
type: "evaluate",
|
|
132996
132994
|
simId: options.simId,
|
|
@@ -133038,6 +133036,7 @@ var init_send_to_box = __esm({
|
|
|
133038
133036
|
"use strict";
|
|
133039
133037
|
init_cli_runtime();
|
|
133040
133038
|
init_device_catalog();
|
|
133039
|
+
init_home_paths();
|
|
133041
133040
|
init_is_record();
|
|
133042
133041
|
init_metro_production_bundle();
|
|
133043
133042
|
init_simulator_route();
|
|
@@ -133096,7 +133095,7 @@ var init_bridge_host = __esm({
|
|
|
133096
133095
|
import_http4 = require("http");
|
|
133097
133096
|
import_os3 = __toESM(require("os"), 1);
|
|
133098
133097
|
import_path5 = __toESM(require("path"), 1);
|
|
133099
|
-
import_ws3 = require("ws");
|
|
133098
|
+
import_ws3 = require("peachsim/vendor/ws");
|
|
133100
133099
|
init_automatic_update_policy();
|
|
133101
133100
|
init_bridge_constants();
|
|
133102
133101
|
init_bridge_contract();
|
|
@@ -136116,7 +136115,7 @@ var init_ws_bridge = __esm({
|
|
|
136116
136115
|
"use strict";
|
|
136117
136116
|
import_node_fs159 = __toESM(require("node:fs"), 1);
|
|
136118
136117
|
import_node_path162 = __toESM(require("node:path"), 1);
|
|
136119
|
-
import_ws4 = require("ws");
|
|
136118
|
+
import_ws4 = require("peachsim/vendor/ws");
|
|
136120
136119
|
init_bridge_constants();
|
|
136121
136120
|
init_bridge_contract();
|
|
136122
136121
|
init_cli_constants();
|
|
@@ -136854,17 +136853,17 @@ function splashImageUrls(spec) {
|
|
|
136854
136853
|
if (spec.dark?.backgroundImageUrl) urls.add(spec.dark.backgroundImageUrl);
|
|
136855
136854
|
return [...urls];
|
|
136856
136855
|
}
|
|
136857
|
-
var import_node_crypto88,
|
|
136856
|
+
var import_node_crypto88, import_node_module25, require2;
|
|
136858
136857
|
var init_app_splash = __esm({
|
|
136859
136858
|
"cli/app-splash.ts"() {
|
|
136860
136859
|
"use strict";
|
|
136861
136860
|
import_node_crypto88 = require("node:crypto");
|
|
136862
|
-
|
|
136861
|
+
import_node_module25 = require("node:module");
|
|
136863
136862
|
init_backend_origin();
|
|
136864
136863
|
init_cli_runtime();
|
|
136865
136864
|
init_native_firebase_config();
|
|
136866
136865
|
init_app_project();
|
|
136867
|
-
require2 = (0,
|
|
136866
|
+
require2 = (0, import_node_module25.createRequire)(__sootsim_import_meta_url);
|
|
136868
136867
|
}
|
|
136869
136868
|
});
|
|
136870
136869
|
|
|
@@ -138666,14 +138665,14 @@ function resolvePlaywright() {
|
|
|
138666
138665
|
roots.push(`${playwrightCoreDir(PINNED_PLAYWRIGHT_CORE.version)}/`);
|
|
138667
138666
|
for (const root of roots) {
|
|
138668
138667
|
try {
|
|
138669
|
-
const requireFromRoot = (0,
|
|
138668
|
+
const requireFromRoot = (0, import_node_module26.createRequire)(root);
|
|
138670
138669
|
for (const spec of ["playwright", "playwright-chromium", "playwright-core"]) {
|
|
138671
138670
|
try {
|
|
138672
138671
|
const modulePath = requireFromRoot.resolve(spec);
|
|
138673
138672
|
const packageJsonPath = requireFromRoot.resolve(`${spec}/package.json`);
|
|
138674
138673
|
const parsed2 = JSON.parse((0, import_node_fs163.readFileSync)(packageJsonPath, "utf8"));
|
|
138675
138674
|
if (!isRecord(parsed2) || typeof parsed2.version !== "string") continue;
|
|
138676
|
-
const corePackagePath = (0,
|
|
138675
|
+
const corePackagePath = (0, import_node_module26.createRequire)(modulePath).resolve(
|
|
138677
138676
|
"playwright-core/package.json"
|
|
138678
138677
|
);
|
|
138679
138678
|
const cliPath = (0, import_node_path166.join)((0, import_node_path166.dirname)(corePackagePath), "cli.js");
|
|
@@ -138901,7 +138900,7 @@ async function launchProvisionedPlaywright() {
|
|
|
138901
138900
|
const env = { ...process.env };
|
|
138902
138901
|
const browser = await ensurePlaywrightBrowser(resolved, softwareChromeAllowed(), env);
|
|
138903
138902
|
if (!browser.ok) throw new Error(browser.message);
|
|
138904
|
-
const playwright = (0,
|
|
138903
|
+
const playwright = (0, import_node_module26.createRequire)(resolved.modulePath)(
|
|
138905
138904
|
resolved.modulePath
|
|
138906
138905
|
);
|
|
138907
138906
|
const browserEnv = browser.libraryPath ? {
|
|
@@ -138913,13 +138912,13 @@ async function launchProvisionedPlaywright() {
|
|
|
138913
138912
|
{ headless: true }
|
|
138914
138913
|
);
|
|
138915
138914
|
}
|
|
138916
|
-
var import_node_child_process67, import_node_fs163,
|
|
138915
|
+
var import_node_child_process67, import_node_fs163, import_node_module26, import_node_path166, CHROMIUM_PATHS_KEPT;
|
|
138917
138916
|
var init_playwright_provisioning = __esm({
|
|
138918
138917
|
"cli/drivers/playwright-provisioning.ts"() {
|
|
138919
138918
|
"use strict";
|
|
138920
138919
|
import_node_child_process67 = require("node:child_process");
|
|
138921
138920
|
import_node_fs163 = require("node:fs");
|
|
138922
|
-
|
|
138921
|
+
import_node_module26 = require("node:module");
|
|
138923
138922
|
import_node_path166 = require("node:path");
|
|
138924
138923
|
init_src();
|
|
138925
138924
|
init_home_paths();
|
|
@@ -144920,7 +144919,7 @@ var init_material_symbol_fonts = __esm({
|
|
|
144920
144919
|
|
|
144921
144920
|
// cli/material-symbol-fonts.ts
|
|
144922
144921
|
function materialSymbolFontPaths(appDir) {
|
|
144923
|
-
const appRequire = (0,
|
|
144922
|
+
const appRequire = (0, import_node_module27.createRequire)(import_node_path169.default.join(appDir, "package.json"));
|
|
144924
144923
|
let nativeManifest;
|
|
144925
144924
|
try {
|
|
144926
144925
|
nativeManifest = appRequire.resolve("@react-navigation/native/package.json");
|
|
@@ -144931,7 +144930,7 @@ function materialSymbolFontPaths(appDir) {
|
|
|
144931
144930
|
const dependencies = nativePackage && typeof nativePackage === "object" ? Reflect.get(nativePackage, "dependencies") : null;
|
|
144932
144931
|
if (!dependencies || typeof dependencies !== "object" || !Reflect.has(dependencies, "@react-navigation/material-symbols"))
|
|
144933
144932
|
return [];
|
|
144934
|
-
const nativeRequire = (0,
|
|
144933
|
+
const nativeRequire = (0, import_node_module27.createRequire)(nativeManifest);
|
|
144935
144934
|
const symbolsDir = import_node_path169.default.dirname(
|
|
144936
144935
|
nativeRequire.resolve("@react-navigation/material-symbols/package.json")
|
|
144937
144936
|
);
|
|
@@ -144966,13 +144965,13 @@ function materialSymbolFontAssets(fontPaths) {
|
|
|
144966
144965
|
mirroredPath: mirroredFile
|
|
144967
144966
|
};
|
|
144968
144967
|
}
|
|
144969
|
-
var import_node_crypto94, import_node_fs168,
|
|
144968
|
+
var import_node_crypto94, import_node_fs168, import_node_module27, import_node_path169;
|
|
144970
144969
|
var init_material_symbol_fonts2 = __esm({
|
|
144971
144970
|
"cli/material-symbol-fonts.ts"() {
|
|
144972
144971
|
"use strict";
|
|
144973
144972
|
import_node_crypto94 = require("node:crypto");
|
|
144974
144973
|
import_node_fs168 = __toESM(require("node:fs"), 1);
|
|
144975
|
-
|
|
144974
|
+
import_node_module27 = require("node:module");
|
|
144976
144975
|
import_node_path169 = __toESM(require("node:path"), 1);
|
|
144977
144976
|
init_material_symbol_fonts();
|
|
144978
144977
|
}
|
|
@@ -145021,7 +145020,7 @@ function resolveDeclaredFontPath(appDir, declared) {
|
|
|
145021
145020
|
let resolved = import_node_path170.default.resolve(appDir, declared);
|
|
145022
145021
|
if (!import_node_fs169.default.existsSync(resolved)) {
|
|
145023
145022
|
try {
|
|
145024
|
-
resolved = (0,
|
|
145023
|
+
resolved = (0, import_node_module28.createRequire)(import_node_path170.default.join(appDir, "package.json")).resolve(declared);
|
|
145025
145024
|
} catch {
|
|
145026
145025
|
return [];
|
|
145027
145026
|
}
|
|
@@ -145117,7 +145116,7 @@ function discoverNativeLinkedAppFontAssets(opts) {
|
|
|
145117
145116
|
if (!relativeRoot.startsWith("..") && !import_node_path170.default.isAbsolute(relativeRoot)) {
|
|
145118
145117
|
collectFontFiles(root);
|
|
145119
145118
|
}
|
|
145120
|
-
const vectorIconRequire = (0,
|
|
145119
|
+
const vectorIconRequire = (0, import_node_module28.createRequire)(import_node_path170.default.join(selectedAppDir, "package.json"));
|
|
145121
145120
|
for (const dependencyName of vectorIconDependencies) {
|
|
145122
145121
|
try {
|
|
145123
145122
|
const entryPath = vectorIconRequire.resolve(dependencyName);
|
|
@@ -145137,7 +145136,7 @@ function discoverNativeLinkedAppFontAssets(opts) {
|
|
|
145137
145136
|
try {
|
|
145138
145137
|
const configPath = import_node_path170.default.join(selectedAppDir, "react-native.config.js");
|
|
145139
145138
|
if (import_node_fs169.default.statSync(configPath).isFile()) {
|
|
145140
|
-
const appConfigRequire = (0,
|
|
145139
|
+
const appConfigRequire = (0, import_node_module28.createRequire)(import_node_path170.default.join(selectedAppDir, "package.json"));
|
|
145141
145140
|
const rnConfig = appConfigRequire(configPath);
|
|
145142
145141
|
const assets2 = rnConfig && typeof rnConfig === "object" ? Reflect.get(rnConfig, "assets") : null;
|
|
145143
145142
|
if (Array.isArray(assets2)) {
|
|
@@ -145209,13 +145208,13 @@ function discoverNativeLinkedAppFontAssets(opts) {
|
|
|
145209
145208
|
materialSymbols: materialSymbolFontAssets(materialFonts)
|
|
145210
145209
|
};
|
|
145211
145210
|
}
|
|
145212
|
-
var import_node_crypto95, import_node_fs169,
|
|
145211
|
+
var import_node_crypto95, import_node_fs169, import_node_module28, import_node_path170, require3;
|
|
145213
145212
|
var init_app_fonts = __esm({
|
|
145214
145213
|
"cli/app-fonts.ts"() {
|
|
145215
145214
|
"use strict";
|
|
145216
145215
|
import_node_crypto95 = require("node:crypto");
|
|
145217
145216
|
import_node_fs169 = __toESM(require("node:fs"), 1);
|
|
145218
|
-
|
|
145217
|
+
import_node_module28 = require("node:module");
|
|
145219
145218
|
import_node_path170 = __toESM(require("node:path"), 1);
|
|
145220
145219
|
init_cli_runtime();
|
|
145221
145220
|
init_staged_host_files();
|
|
@@ -145224,7 +145223,7 @@ var init_app_fonts = __esm({
|
|
|
145224
145223
|
init_xcode_project();
|
|
145225
145224
|
init_app_project();
|
|
145226
145225
|
init_material_symbol_fonts2();
|
|
145227
|
-
require3 = (0,
|
|
145226
|
+
require3 = (0, import_node_module28.createRequire)(__sootsim_import_meta_url);
|
|
145228
145227
|
}
|
|
145229
145228
|
});
|
|
145230
145229
|
|
|
@@ -146390,7 +146389,7 @@ var init_runtime = __esm({
|
|
|
146390
146389
|
"use strict";
|
|
146391
146390
|
import_fs14 = __toESM(require("fs"), 1);
|
|
146392
146391
|
init_src();
|
|
146393
|
-
import_ws5 = require("ws");
|
|
146392
|
+
import_ws5 = require("peachsim/vendor/ws");
|
|
146394
146393
|
init_app_config();
|
|
146395
146394
|
init_cli_runtime();
|
|
146396
146395
|
init_home_paths();
|
|
@@ -146673,7 +146672,7 @@ async function produceConfiguredBundle(source, config, runtimePackages) {
|
|
|
146673
146672
|
runtimePackages,
|
|
146674
146673
|
localModuleUrl: (specifier) => visit3(resolveReplacementModuleFile(real, specifier))
|
|
146675
146674
|
});
|
|
146676
|
-
const commonJs = (0,
|
|
146675
|
+
const commonJs = (0, import_sucrase5.transform)(splitExportDeclarators(compiled.code), {
|
|
146677
146676
|
transforms: ["imports"]
|
|
146678
146677
|
}).code;
|
|
146679
146678
|
for (const specifier of compiled.bareSpecifiers) neededPackages.add(specifier);
|
|
@@ -146717,14 +146716,14 @@ async function produceConfiguredBundle(source, config, runtimePackages) {
|
|
|
146717
146716
|
const identityStart = findBundleFooter(source, "globalThis.__sootsimModulePaths=");
|
|
146718
146717
|
return prefix + (identityStart < 0 ? source + footer : source.slice(0, identityStart) + footer + source.slice(identityStart));
|
|
146719
146718
|
}
|
|
146720
|
-
var import_node_fs173, import_node_path174,
|
|
146719
|
+
var import_node_fs173, import_node_path174, import_sucrase5, import_terser2, PREFIX_START, PREFIX_END;
|
|
146721
146720
|
var init_configured_bundle_producer = __esm({
|
|
146722
146721
|
"src/configured-bundle-producer.ts"() {
|
|
146723
146722
|
"use strict";
|
|
146724
146723
|
import_node_fs173 = __toESM(require("node:fs"), 1);
|
|
146725
146724
|
import_node_path174 = __toESM(require("node:path"), 1);
|
|
146726
146725
|
init_bundle_global_footer();
|
|
146727
|
-
|
|
146726
|
+
import_sucrase5 = require("peachsim/vendor/sucrase");
|
|
146728
146727
|
import_terser2 = require("peachsim/vendor/terser");
|
|
146729
146728
|
init_dependencies();
|
|
146730
146729
|
init_replacementModule();
|
|
@@ -160053,7 +160052,7 @@ var init_kotlin = __esm({
|
|
|
160053
160052
|
import_node_fs181 = __toESM(require("node:fs"), 1);
|
|
160054
160053
|
import_node_http3 = __toESM(require("node:http"), 1);
|
|
160055
160054
|
import_node_path182 = __toESM(require("node:path"), 1);
|
|
160056
|
-
import_ws6 = require("ws");
|
|
160055
|
+
import_ws6 = require("peachsim/vendor/ws");
|
|
160057
160056
|
init_device_catalog();
|
|
160058
160057
|
init_guest_bundle();
|
|
160059
160058
|
init_kotlin_app();
|
|
@@ -160380,7 +160379,7 @@ var init_swift = __esm({
|
|
|
160380
160379
|
import_node_fs182 = __toESM(require("node:fs"), 1);
|
|
160381
160380
|
import_node_http4 = __toESM(require("node:http"), 1);
|
|
160382
160381
|
import_node_path183 = __toESM(require("node:path"), 1);
|
|
160383
|
-
import_ws7 = require("ws");
|
|
160382
|
+
import_ws7 = require("peachsim/vendor/ws");
|
|
160384
160383
|
init_backend_origin();
|
|
160385
160384
|
init_swift_submit();
|
|
160386
160385
|
init_swiftDiscoveryContract();
|
|
@@ -162462,7 +162461,7 @@ var init_control = __esm({
|
|
|
162462
162461
|
init_src2();
|
|
162463
162462
|
init_androidAutolinkingContract();
|
|
162464
162463
|
init_androidRootModuleContract();
|
|
162465
|
-
import_ws8 = require("ws");
|
|
162464
|
+
import_ws8 = require("peachsim/vendor/ws");
|
|
162466
162465
|
init_agent_identity();
|
|
162467
162466
|
init_launch_permissions();
|
|
162468
162467
|
init_app_config();
|
|
@@ -163614,6 +163613,7 @@ var PERMISSION_KINDS;
|
|
|
163614
163613
|
var init_permissions = __esm({
|
|
163615
163614
|
"cli/commands/permissions.ts"() {
|
|
163616
163615
|
"use strict";
|
|
163616
|
+
init_parse_args();
|
|
163617
163617
|
init_ws_bridge();
|
|
163618
163618
|
PERMISSION_KINDS = [
|
|
163619
163619
|
"app-tracking-transparency",
|