peachsim 0.1.2528 → 0.1.2529
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/dist-lib/agent-daemon-client.cjs +1 -1
- 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 +12 -9
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +3 -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 -1
- package/dist-lib/config.mjs +5 -5
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-XCLML2QI.mjs → acorn-DP76I5LX.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-WM5Y3PCV.mjs → chunk-4ESBMS7N.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-KWEGJS22.mjs → chunk-6RFG5TBM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-SFON4YYW.mjs → chunk-6Z7IRZOI.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-2RYVAXP7.mjs → chunk-7JPE27MR.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QLN4PL2B.mjs → chunk-B2AUMFHR.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-ZTLF52SH.mjs → chunk-COT5BNBM.mjs} +12 -12
- package/dist-lib/esm-chunks/{chunk-PQHFJQ36.mjs → chunk-DQKUZ34S.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-UI27RY3A.mjs → chunk-FJQ7PIGT.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-JC4USRP6.mjs → chunk-G7LSGLNN.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-3Z2XYMKR.mjs → chunk-GHQDA4Q6.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QWWCXLPI.mjs → chunk-KVE5PEF7.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-W6YW6CIA.mjs → chunk-LIHP4WC5.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HBJSPSXY.mjs → chunk-N5IOZ4Y2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-IW655T4F.mjs → chunk-N6JP6ZEK.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YXALRIKU.mjs → chunk-NCT2R5UW.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-W42SUW36.mjs → chunk-RXUKY2DH.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-7EUYLPZR.mjs → chunk-TTSPRDG5.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-6HN3M5HU.mjs → chunk-UY744LUK.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-V6ZGGSRX.mjs → chunk-XB5NMNMP.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-PTEP7NR5.mjs → chunk-YMJXYR5V.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YAUEK3DM.mjs → chunk-ZH3DACJC.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-JCGEX4NM.mjs → metro-layout-parser-YENXVDM2.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-SHFZEOJF.mjs → swift-package-prebuilt-VJCKF5Z5.mjs} +10 -10
- package/dist-lib/esm-chunks/{swift-sdk-app-module-5HDWRT2F.mjs → swift-sdk-app-module-ISPCBQYV.mjs} +13 -13
- package/dist-lib/esm-chunks/{swift-sdk-image-N5ELFWMH.mjs → swift-sdk-image-4BCVFTGO.mjs} +13 -13
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-25DMYDZW.mjs → swift-sdk-image-producer-JWFPWPYM.mjs} +4 -4
- package/dist-lib/expo-swift-bundle.cjs +11 -8
- 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 +140 -106
- package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
- 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 +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- 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 +1 -1
- package/dist-lib/native-app-identity-project.mjs +15 -15
- 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 +79 -79
- package/dist-lib/public-origins-lib.json +69 -69
- 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 +160 -126
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +10 -10
- 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-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- 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 +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/@xmldom/xmldom.cjs +1 -1
- 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/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 +1 -1
- 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-engine/src/engine/nativeScrollContract.d.ts +1 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/src/swift-distribution.lock.json +5 -0
- package/src/swift-startup-split.ts +66 -61
- package/src/turbo-source.ts +7 -4
- package/src/wasm-lazy-split.ts +46 -24
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2529 | (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;
|
|
@@ -5704,13 +5704,13 @@ var init_swift_standin_digest = __esm({
|
|
|
5704
5704
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
5705
5705
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
5706
5706
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
5707
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
5707
|
+
STANDIN_SOURCE_DIGEST = true ? "3883edfb29d2c6c02053cf80f32a9f325a44c203f3c988419ca5920a3dcbca8e" : standinSourceDigest();
|
|
5708
5708
|
}
|
|
5709
5709
|
});
|
|
5710
5710
|
|
|
5711
5711
|
// src/expo-native-compiler-digest.ts
|
|
5712
5712
|
function expoNativeCompilerDigestValue() {
|
|
5713
|
-
return true ? "
|
|
5713
|
+
return true ? "b22fea800cc7cd0234dc86833d4d3fb630afaf2ed9d8b426cb7b1f33097a1a92" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
5714
5714
|
}
|
|
5715
5715
|
var import_node_crypto11;
|
|
5716
5716
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -96562,19 +96562,23 @@ async function splitNativeWasm(input, directory2, profile, binaryen, shared, kee
|
|
|
96562
96562
|
(0, import_node_fs130.writeFileSync)(slotFile, slots.join("\n") + "\n");
|
|
96563
96563
|
const tableTool = (0, import_node_path130.join)((0, import_node_path130.dirname)(binaryen), "wasm-table-guard");
|
|
96564
96564
|
let primaryTable;
|
|
96565
|
-
const guard = async (file, lazy) => {
|
|
96565
|
+
const guard = async (file, lazy, env2) => {
|
|
96566
96566
|
const guarded = file.replace(/\.wasm$/, ".guarded.wasm");
|
|
96567
96567
|
let tableMinimum = 0;
|
|
96568
96568
|
if (primaryTable && !hasFunctionTable((0, import_node_fs130.readFileSync)(file))) (0, import_node_fs130.copyFileSync)(file, guarded);
|
|
96569
96569
|
else {
|
|
96570
|
-
const { stdout } = await run10(
|
|
96571
|
-
|
|
96572
|
-
|
|
96573
|
-
|
|
96574
|
-
|
|
96575
|
-
|
|
96576
|
-
|
|
96577
|
-
|
|
96570
|
+
const { stdout } = await run10(
|
|
96571
|
+
tableTool,
|
|
96572
|
+
[
|
|
96573
|
+
file,
|
|
96574
|
+
guarded,
|
|
96575
|
+
named ? "1" : "0",
|
|
96576
|
+
shared ? "1" : "0",
|
|
96577
|
+
slotFile,
|
|
96578
|
+
...adapted ? ["adapted"] : []
|
|
96579
|
+
],
|
|
96580
|
+
{ env: env2 }
|
|
96581
|
+
);
|
|
96578
96582
|
const layout2 = JSON.parse(stdout);
|
|
96579
96583
|
if (typeof layout2 !== "object" || layout2 === null || !("tableMinimum" in layout2) || typeof layout2.tableMinimum !== "number" || !Number.isInteger(layout2.tableMinimum) || layout2.tableMinimum < 0)
|
|
96580
96584
|
throw new Error("native table tool emitted an invalid split table minimum");
|
|
@@ -96609,22 +96613,33 @@ async function splitNativeWasm(input, directory2, profile, binaryen, shared, kee
|
|
|
96609
96613
|
if (!primaryLazy.has(lazy)) members2.push(lazy);
|
|
96610
96614
|
lazyByGroup.set(group2, members2);
|
|
96611
96615
|
}
|
|
96612
|
-
const
|
|
96613
|
-
const dyldGroups = [];
|
|
96614
|
-
for (const [id, slots2] of slotsByPart.entries()) {
|
|
96616
|
+
const parts = slotsByPart.flatMap((slots2, id) => {
|
|
96615
96617
|
const lazy = lazyByGroup.get(id);
|
|
96616
|
-
|
|
96617
|
-
|
|
96618
|
-
|
|
96619
|
-
|
|
96620
|
-
|
|
96621
|
-
|
|
96622
|
-
|
|
96623
|
-
|
|
96624
|
-
|
|
96625
|
-
|
|
96626
|
-
|
|
96627
|
-
|
|
96618
|
+
return slots2.length || lazy ? [{ id, slots: slots2, lazy }] : [];
|
|
96619
|
+
});
|
|
96620
|
+
if (!parts.length) return { primary: describePart(input), sides: [] };
|
|
96621
|
+
const admitted = windowAdmission()?.cores ?? Number(process.env.TM_EXEC_CPU_CORES);
|
|
96622
|
+
const requested = Number(process.env.BINARYEN_CORES);
|
|
96623
|
+
const jobs = Math.min(
|
|
96624
|
+
8,
|
|
96625
|
+
(0, import_node_os26.availableParallelism)(),
|
|
96626
|
+
Number.isInteger(admitted) && admitted > 0 ? admitted : 8,
|
|
96627
|
+
Number.isInteger(requested) && requested > 0 ? requested : 8
|
|
96628
|
+
);
|
|
96629
|
+
const env = jobs > 1 ? { ...process.env, BINARYEN_CORES: "1" } : void 0;
|
|
96630
|
+
const sides = await mapLimit(
|
|
96631
|
+
parts,
|
|
96632
|
+
jobs,
|
|
96633
|
+
async ({ id, slots: slots2, lazy }) => {
|
|
96634
|
+
const part = await guard((0, import_node_path130.join)(directory2, `side-${id}.wasm`), lazy, env);
|
|
96635
|
+
const bytes2 = (0, import_node_fs130.readFileSync)(part.file);
|
|
96636
|
+
assertWasmCodeOnly(bytes2);
|
|
96637
|
+
return { ...part, slots: slots2, sha256: (0, import_node_crypto77.createHash)("sha256").update(bytes2).digest("hex") };
|
|
96638
|
+
}
|
|
96639
|
+
);
|
|
96640
|
+
const dyldGroups = parts.flatMap(
|
|
96641
|
+
({ lazy }, part) => lazy ? [{ first: lazy[0], part }] : []
|
|
96642
|
+
);
|
|
96628
96643
|
return {
|
|
96629
96644
|
primary,
|
|
96630
96645
|
sides,
|
|
@@ -96687,17 +96702,20 @@ function describePart(file) {
|
|
|
96687
96702
|
);
|
|
96688
96703
|
return { file, functions, byteLength: bytes.byteLength };
|
|
96689
96704
|
}
|
|
96690
|
-
var import_node_child_process64, import_node_crypto77, import_node_fs130, import_node_path130, import_node_util14, run10, MAX_MODULE_FUNCTIONS, MAX_START_FUNCTIONS, SIDE_FUNCTIONS, SIDE_CODE_BYTES, FEATURES2, featuresOf;
|
|
96705
|
+
var import_node_child_process64, import_node_crypto77, import_node_fs130, import_node_os26, import_node_path130, import_node_util14, run10, MAX_MODULE_FUNCTIONS, MAX_START_FUNCTIONS, SIDE_FUNCTIONS, SIDE_CODE_BYTES, FEATURES2, featuresOf;
|
|
96691
96706
|
var init_wasm_lazy_split = __esm({
|
|
96692
96707
|
"src/wasm-lazy-split.ts"() {
|
|
96693
96708
|
"use strict";
|
|
96694
96709
|
import_node_child_process64 = require("node:child_process");
|
|
96695
96710
|
import_node_crypto77 = require("node:crypto");
|
|
96696
96711
|
import_node_fs130 = require("node:fs");
|
|
96712
|
+
import_node_os26 = require("node:os");
|
|
96697
96713
|
import_node_path130 = require("node:path");
|
|
96698
96714
|
import_node_util14 = require("node:util");
|
|
96715
|
+
init_mapLimit();
|
|
96699
96716
|
init_nativeDyldTableContract();
|
|
96700
96717
|
init_nativeWasmContract();
|
|
96718
|
+
init_admitted_mac_build();
|
|
96701
96719
|
init_swift_guest_dyld_functions();
|
|
96702
96720
|
init_swift_sdk_image_wasm();
|
|
96703
96721
|
init_wasm_features();
|
|
@@ -96791,7 +96809,7 @@ async function splitSwiftApp(bytes, launch) {
|
|
|
96791
96809
|
const environment = launch.environment.length ? `-${digest2(Buffer.from(JSON.stringify(launch.environment)))}` : "";
|
|
96792
96810
|
const guest = launch.guest ? `-${digest2(Buffer.from(launch.guest.source))}` : "";
|
|
96793
96811
|
const args = launch.arguments?.length ? `-argv-${digest2(Buffer.from(JSON.stringify(launch.arguments)))}` : "";
|
|
96794
|
-
const cache = (0, import_node_path131.join)(parent, `startup-
|
|
96812
|
+
const cache = (0, import_node_path131.join)(parent, `startup-v8-${platform}${environment}${guest}${args}`);
|
|
96795
96813
|
return readSwiftStartupImage(cache) ?? await withStartupWork(bytes, async (work) => {
|
|
96796
96814
|
const profile = (0, import_node_path131.join)(work.directory, "startup.profile");
|
|
96797
96815
|
await profileStartup(work, launch, "url", profile);
|
|
@@ -96799,7 +96817,7 @@ async function splitSwiftApp(bytes, launch) {
|
|
|
96799
96817
|
});
|
|
96800
96818
|
}
|
|
96801
96819
|
async function splitSwiftSdkImage(bytes, directory2, launch, app) {
|
|
96802
|
-
const profiles2 = (0, import_node_path131.join)(directory2, `profiles-
|
|
96820
|
+
const profiles2 = (0, import_node_path131.join)(directory2, `profiles-v3-${platform}`);
|
|
96803
96821
|
const prefix = `${app}-`;
|
|
96804
96822
|
const own2 = (0, import_node_path131.join)(profiles2, `${prefix}${launch.artifactHash}.profile`);
|
|
96805
96823
|
const names = () => (0, import_node_fs131.readdirSync)(profiles2).filter((name3) => !name3.startsWith(".") && name3.endsWith(".profile")).sort();
|
|
@@ -96809,7 +96827,7 @@ async function splitSwiftSdkImage(bytes, directory2, launch, app) {
|
|
|
96809
96827
|
for (const file of files2) hash.update(file);
|
|
96810
96828
|
const cache = (0, import_node_path131.join)(
|
|
96811
96829
|
directory2,
|
|
96812
|
-
`startup-
|
|
96830
|
+
`startup-v10-${platform}-${hash.digest("hex").slice(0, 16)}`
|
|
96813
96831
|
);
|
|
96814
96832
|
return { files: files2, cache };
|
|
96815
96833
|
};
|
|
@@ -96852,7 +96870,7 @@ async function splitSwiftSdkImage(bytes, directory2, launch, app) {
|
|
|
96852
96870
|
}
|
|
96853
96871
|
async function withStartupWork(bytes, run17) {
|
|
96854
96872
|
const binaryen = await installWasmOpt();
|
|
96855
|
-
const directory2 = (0, import_node_fs131.mkdtempSync)((0, import_node_path131.join)((0,
|
|
96873
|
+
const directory2 = (0, import_node_fs131.mkdtempSync)((0, import_node_path131.join)((0, import_node_os27.tmpdir)(), "peach-swift-startup-"));
|
|
96856
96874
|
try {
|
|
96857
96875
|
const original = (0, import_node_path131.join)(directory2, "full.wasm");
|
|
96858
96876
|
(0, import_node_fs131.writeFileSync)(original, makeWasmFunctionNamesSingleLine(bytes));
|
|
@@ -96863,22 +96881,15 @@ async function withStartupWork(bytes, run17) {
|
|
|
96863
96881
|
}
|
|
96864
96882
|
async function profileStartup(work, launch, role, output) {
|
|
96865
96883
|
const instrumented = (0, import_node_path131.join)(work.directory, "instrumented.wasm");
|
|
96866
|
-
const firstPaint = (0, import_node_path131.join)(work.directory, "first-paint.profile");
|
|
96867
|
-
const afterPaint = (0, import_node_path131.join)(work.directory, "after-paint.profile");
|
|
96868
96884
|
const functionCount = await instrumentNativeWasm(
|
|
96869
96885
|
work.original,
|
|
96870
96886
|
instrumented,
|
|
96871
96887
|
work.binaryen
|
|
96872
96888
|
);
|
|
96873
96889
|
(0, import_node_fs131.writeFileSync)(
|
|
96874
|
-
|
|
96875
|
-
await
|
|
96876
|
-
);
|
|
96877
|
-
(0, import_node_fs131.writeFileSync)(
|
|
96878
|
-
afterPaint,
|
|
96879
|
-
await recordStartup(launch, instrumented, functionCount, postPaintProfileMs, role)
|
|
96890
|
+
output,
|
|
96891
|
+
await bootSwiftPreview(launch, { instrumented, functionCount, role })
|
|
96880
96892
|
);
|
|
96881
|
-
await mergeNativeWasmProfiles(work.binaryen, [firstPaint, afterPaint], output);
|
|
96882
96893
|
}
|
|
96883
96894
|
async function storeStartupSplit(work, profile, parent, cache, partCodeBytes) {
|
|
96884
96895
|
const split = await splitNativeWasm(
|
|
@@ -96932,9 +96943,6 @@ async function storeStartupSplit(work, profile, parent, cache, partCodeBytes) {
|
|
|
96932
96943
|
}
|
|
96933
96944
|
return result;
|
|
96934
96945
|
}
|
|
96935
|
-
function recordStartup(launch, instrumented, functionCount, afterPaintMs, role) {
|
|
96936
|
-
return bootSwiftPreview(launch, { instrumented, functionCount, afterPaintMs, role });
|
|
96937
|
-
}
|
|
96938
96946
|
async function bootSwiftPreview(launch, profile) {
|
|
96939
96947
|
const browser = await launchProvisionedPlaywright({
|
|
96940
96948
|
chromiumSandbox: true,
|
|
@@ -96945,11 +96953,17 @@ async function bootSwiftPreview(launch, profile) {
|
|
|
96945
96953
|
}
|
|
96946
96954
|
});
|
|
96947
96955
|
const profileLength = profile ? 8 + 4 * profile.functionCount : 0;
|
|
96948
|
-
let
|
|
96949
|
-
|
|
96956
|
+
let capture = Promise.withResolvers();
|
|
96957
|
+
let receive = (_bytes) => {
|
|
96958
|
+
};
|
|
96959
|
+
const requestCapture = () => {
|
|
96960
|
+
const { promise, resolve: resolve10 } = Promise.withResolvers();
|
|
96950
96961
|
receive = resolve10;
|
|
96951
|
-
|
|
96952
|
-
|
|
96962
|
+
const asked = capture;
|
|
96963
|
+
capture = Promise.withResolvers();
|
|
96964
|
+
asked.resolve(true);
|
|
96965
|
+
return promise;
|
|
96966
|
+
};
|
|
96953
96967
|
const guest = launch.guest ?? { packageName, source: swiftGuestBundle(packageName) };
|
|
96954
96968
|
const metadataPath = SWIFT_PACKAGE_PATH + encodeURIComponent(guest.packageName);
|
|
96955
96969
|
const server = (0, import_node_http3.createServer)(async (request, response) => {
|
|
@@ -96959,8 +96973,8 @@ async function bootSwiftPreview(launch, profile) {
|
|
|
96959
96973
|
const { pathname } = url;
|
|
96960
96974
|
setRuntimeIsolationHeaders(response);
|
|
96961
96975
|
if (profile && pathname === NATIVE_PROFILE_ENDPOINT && request.method === "GET") {
|
|
96962
|
-
await
|
|
96963
|
-
response.writeHead(204, { "cache-control": "no-store" }).end();
|
|
96976
|
+
const again = await capture.promise;
|
|
96977
|
+
response.writeHead(again ? 204 : 410, { "cache-control": "no-store" }).end();
|
|
96964
96978
|
return;
|
|
96965
96979
|
}
|
|
96966
96980
|
if (profile && pathname === NATIVE_PROFILE_ENDPOINT && request.method === "POST") {
|
|
@@ -97050,41 +97064,58 @@ async function bootSwiftPreview(launch, profile) {
|
|
|
97050
97064
|
return false;
|
|
97051
97065
|
}
|
|
97052
97066
|
);
|
|
97053
|
-
if (!
|
|
97054
|
-
|
|
97055
|
-
|
|
97056
|
-
[
|
|
97057
|
-
|
|
97058
|
-
|
|
97059
|
-
|
|
97060
|
-
|
|
97061
|
-
|
|
97062
|
-
|
|
97063
|
-
|
|
97064
|
-
|
|
97065
|
-
|
|
97066
|
-
|
|
97067
|
-
|
|
97068
|
-
|
|
97069
|
-
|
|
97070
|
-
|
|
97071
|
-
|
|
97072
|
-
|
|
97073
|
-
|
|
97074
|
-
|
|
97075
|
-
)
|
|
97076
|
-
|
|
97077
|
-
|
|
97078
|
-
|
|
97079
|
-
|
|
97080
|
-
}
|
|
97067
|
+
if (!painted)
|
|
97068
|
+
throw new Error(
|
|
97069
|
+
[
|
|
97070
|
+
launchErrors.find((error) => error.startsWith("SwiftCrash:"))?.split("\n")[0] ?? "app did not paint",
|
|
97071
|
+
...launchErrors
|
|
97072
|
+
].join("\n")
|
|
97073
|
+
);
|
|
97074
|
+
if (!profile) return;
|
|
97075
|
+
const collect = async () => {
|
|
97076
|
+
let deadline;
|
|
97077
|
+
try {
|
|
97078
|
+
return await Promise.race([
|
|
97079
|
+
requestCapture(),
|
|
97080
|
+
new Promise((_, reject) => {
|
|
97081
|
+
deadline = setTimeout(
|
|
97082
|
+
() => reject(
|
|
97083
|
+
new Error(
|
|
97084
|
+
["app reached no startup profile", ...launchErrors].join("\n")
|
|
97085
|
+
)
|
|
97086
|
+
),
|
|
97087
|
+
5e3
|
|
97088
|
+
);
|
|
97089
|
+
})
|
|
97090
|
+
]);
|
|
97091
|
+
} finally {
|
|
97092
|
+
clearTimeout(deadline);
|
|
97093
|
+
}
|
|
97094
|
+
};
|
|
97095
|
+
const ran = (bytes) => {
|
|
97096
|
+
let count = 0;
|
|
97097
|
+
for (let offset = 8; offset < bytes.length; offset += 4)
|
|
97098
|
+
if (bytes.readUInt32LE(offset)) count++;
|
|
97099
|
+
return count;
|
|
97100
|
+
};
|
|
97101
|
+
const window = Date.now() + profileWindowMs;
|
|
97102
|
+
let captured = await collect();
|
|
97103
|
+
for (let count = ran(captured); Date.now() < window; ) {
|
|
97104
|
+
await page.waitForTimeout(profileQuietMs);
|
|
97105
|
+
const next = await collect();
|
|
97106
|
+
const nextCount = ran(next);
|
|
97107
|
+
captured = next;
|
|
97108
|
+
if (nextCount === count) break;
|
|
97109
|
+
count = nextCount;
|
|
97110
|
+
}
|
|
97111
|
+
return captured;
|
|
97081
97112
|
} finally {
|
|
97082
|
-
|
|
97113
|
+
capture.resolve(false);
|
|
97083
97114
|
await browser.close();
|
|
97084
97115
|
server.close();
|
|
97085
97116
|
}
|
|
97086
97117
|
}
|
|
97087
|
-
var import_node_crypto78, import_node_fs131, import_node_http3, import_node_https2,
|
|
97118
|
+
var import_node_crypto78, import_node_fs131, import_node_http3, import_node_https2, import_node_os27, import_node_path131, packageName, guestPath, appPath, profileWindowMs, profileQuietMs, digest2, partDigest, platform;
|
|
97088
97119
|
var init_swift_startup_split = __esm({
|
|
97089
97120
|
"src/swift-startup-split.ts"() {
|
|
97090
97121
|
"use strict";
|
|
@@ -97092,7 +97123,7 @@ var init_swift_startup_split = __esm({
|
|
|
97092
97123
|
import_node_fs131 = require("node:fs");
|
|
97093
97124
|
import_node_http3 = require("node:http");
|
|
97094
97125
|
import_node_https2 = require("node:https");
|
|
97095
|
-
|
|
97126
|
+
import_node_os27 = require("node:os");
|
|
97096
97127
|
import_node_path131 = require("node:path");
|
|
97097
97128
|
init_simulator_route2();
|
|
97098
97129
|
init_nativeWasmContract();
|
|
@@ -97112,7 +97143,7 @@ var init_swift_startup_split = __esm({
|
|
|
97112
97143
|
guestPath = "/__peach/swift-guest.js";
|
|
97113
97144
|
appPath = "/__peach/swift/startup.wasm";
|
|
97114
97145
|
profileWindowMs = 3e4;
|
|
97115
|
-
|
|
97146
|
+
profileQuietMs = 2e3;
|
|
97116
97147
|
digest2 = (bytes) => (0, import_node_crypto78.createHash)("sha256").update(bytes).digest("hex");
|
|
97117
97148
|
partDigest = /^[a-f0-9]{64}$/;
|
|
97118
97149
|
platform = `${process.platform}-${process.arch}`;
|
|
@@ -98743,7 +98774,7 @@ function buildSwiftBundleFiles(packagePath, hosted, inputs2, resourceBundles) {
|
|
|
98743
98774
|
}
|
|
98744
98775
|
}
|
|
98745
98776
|
if (xcode?.app.postBundleScripts.length) {
|
|
98746
|
-
const dir = import_node_fs132.default.mkdtempSync(import_node_path132.default.join(
|
|
98777
|
+
const dir = import_node_fs132.default.mkdtempSync(import_node_path132.default.join(import_node_os28.default.tmpdir(), "peach-xcode-bundle-"));
|
|
98747
98778
|
const wrapper = import_node_path132.default.basename(xcode.app.settings("UNLOCALIZED_RESOURCES_FOLDER_PATH")) || `${xcode.app.name}.app`;
|
|
98748
98779
|
const bundle = import_node_path132.default.join(dir, wrapper);
|
|
98749
98780
|
try {
|
|
@@ -100082,7 +100113,7 @@ async function serveSwiftPackageAsset(pathname, res) {
|
|
|
100082
100113
|
res.end("swift artifact is stale");
|
|
100083
100114
|
return true;
|
|
100084
100115
|
}
|
|
100085
|
-
var import_node_async_hooks2, import_node_child_process65, import_node_crypto79, import_node_fs132,
|
|
100116
|
+
var import_node_async_hooks2, import_node_child_process65, import_node_crypto79, import_node_fs132, import_node_os28, import_node_path132, ARTIFACT_PATH, RESOURCE_PATH, ICU_PATH, SDK_PATH, SDK_BINDING_PATH, SKIP_ROOT_DIRS, NATIVE_DESCRIPTOR, NATIVE_GLUE, SwiftMissingModulesError, startupImages, swiftArtifactDigests, sharedProjects, projectScope, projects, sharedSourceEntries, sourceEntries, sharedXcodeProjects, xcodeProjects, preparedScriptInputs, emptyWasmAssembly, XCODE_APP_DIR, XCODE_FRAMEWORKS_DIR, XCODE_PACKAGES_DIR, layoutScope, HOSTED_LIMITS, LOCAL_LIMITS, inputLimits, RESOURCE_CONTENT_TYPES, API_GAP_PATTERNS, IOS_SDK_FRAMEWORKS, sdkStartups, sdkStartupParts, sdkStartupPlans, sdkPieces2, sdkSplitBindings, sdkBindingFiles, servedSdkBinding;
|
|
100086
100117
|
var init_swift_host = __esm({
|
|
100087
100118
|
"src/swift-host.ts"() {
|
|
100088
100119
|
"use strict";
|
|
@@ -100090,7 +100121,7 @@ var init_swift_host = __esm({
|
|
|
100090
100121
|
import_node_child_process65 = require("node:child_process");
|
|
100091
100122
|
import_node_crypto79 = require("node:crypto");
|
|
100092
100123
|
import_node_fs132 = __toESM(require("node:fs"), 1);
|
|
100093
|
-
|
|
100124
|
+
import_node_os28 = __toESM(require("node:os"), 1);
|
|
100094
100125
|
import_node_path132 = __toESM(require("node:path"), 1);
|
|
100095
100126
|
init_pngHeader();
|
|
100096
100127
|
init_nativeSdkBindingContract();
|
|
@@ -103281,7 +103312,7 @@ ${moduleProviders ? `- (id<RCTModuleProvider>)getModuleProvider:(const char *)na
|
|
|
103281
103312
|
// an app's Fabric component views, which its own Fabric host defines. the
|
|
103282
103313
|
// bridge proxy and module decorator are what RCTInstance gives the renderer's
|
|
103283
103314
|
// context container, where the legacy view manager interop reads them
|
|
103284
|
-
void peachInstallFabricViews(facebook::jsi::Runtime &runtime, std::shared_ptr<facebook::react::CallInvoker> invoker, id bridgeProxy, id moduleDecorator) __attribute__((weak));
|
|
103315
|
+
void peachInstallFabricViews(facebook::jsi::Runtime &runtime, std::shared_ptr<facebook::react::CallInvoker> invoker, id bridgeProxy, id moduleDecorator, id imageLoader) __attribute__((weak));
|
|
103285
103316
|
void peachTeardownFabricViews() __attribute__((weak));
|
|
103286
103317
|
|
|
103287
103318
|
// UIKitCore: the key window and root view controller an app delegate makes at launch
|
|
@@ -103386,7 +103417,9 @@ ${bridgeProxy ? ` // as RCTInstance does: the proxy modules reach as their brid
|
|
|
103386
103417
|
}];
|
|
103387
103418
|
[decorator.moduleRegistry setTurboModuleRegistry:manager];
|
|
103388
103419
|
[manager installJSBindings:runtime];
|
|
103389
|
-
if (peachInstallFabricViews)
|
|
103420
|
+
if (peachInstallFabricViews) {
|
|
103421
|
+
peachInstallFabricViews(runtime, invoker, ${bridgeProxy ? "bridgeProxy" : "nil"}, decorator, [manager moduleForName:"RCTImageLoader"]);
|
|
103422
|
+
}
|
|
103390
103423
|
}
|
|
103391
103424
|
|
|
103392
103425
|
// the screenshot the device took, as UIKit posts it to every observer in the
|
|
@@ -104180,13 +104213,14 @@ static void peachEventDispatcherDispatchEvent(id self, SEL _cmd, id<RCTEvent> ev
|
|
|
104180
104213
|
react::convertIdToFollyDynamic(body));
|
|
104181
104214
|
}
|
|
104182
104215
|
@end
|
|
104183
|
-
` : ""}void peachInstallFabricViews(jsi::Runtime &rt, std::shared_ptr<react::CallInvoker> invoker, id bridgeProxy, id moduleDecorator) {
|
|
104216
|
+
` : ""}void peachInstallFabricViews(jsi::Runtime &rt, std::shared_ptr<react::CallInvoker> invoker, id bridgeProxy, id moduleDecorator, id imageLoader) {
|
|
104184
104217
|
fabricInvoker = std::move(invoker);
|
|
104185
104218
|
fabricComponents = [PeachFabricComponents new];
|
|
104186
104219
|
RCTComponentViewFactory *factory = [RCTComponentViewFactory currentComponentViewFactory];
|
|
104187
104220
|
factory.thirdPartyFabricComponentsProvider = fabricComponents;
|
|
104188
104221
|
fabricRegistry = [RCTComponentViewRegistry new];
|
|
104189
104222
|
fabricContext = std::make_shared<react::ContextContainer>();
|
|
104223
|
+
fabricContext->insert("RCTImageLoader", react::wrapManagedObject(imageLoader));
|
|
104190
104224
|
fabricScheduler = std::make_shared<react::RuntimeScheduler>(
|
|
104191
104225
|
[](std::function<void(jsi::Runtime &)> &&work) { fabricInvoker->invokeAsync(std::move(work)); });
|
|
104192
104226
|
fabricContext->insert(react::RuntimeSchedulerKey, std::weak_ptr<react::RuntimeScheduler>(fabricScheduler));
|
|
@@ -104976,6 +105010,7 @@ class JsCallInvoker final : public react::CallInvoker {
|
|
|
104976
105010
|
#include <react/renderer/core/StateUpdate.h>
|
|
104977
105011
|
#include <react/renderer/runtimescheduler/RuntimeScheduler.h>
|
|
104978
105012
|
#include <react/utils/ContextContainer.h>
|
|
105013
|
+
#include <react/utils/ManagedObjectWrapper.h>
|
|
104979
105014
|
#include <algorithm>
|
|
104980
105015
|
#include <array>
|
|
104981
105016
|
#include <cmath>
|
|
@@ -105010,7 +105045,6 @@ using namespace facebook;
|
|
|
105010
105045
|
#include <react/renderer/components/view/ViewEventEmitter.h>
|
|
105011
105046
|
#include <react/renderer/core/ShadowNodeFragment.h>
|
|
105012
105047
|
#include <react/utils/FollyConvert.h>
|
|
105013
|
-
#include <react/utils/ManagedObjectWrapper.h>
|
|
105014
105048
|
#include <cmath>
|
|
105015
105049
|
#include <cstdio>
|
|
105016
105050
|
#include <mutex>
|
|
@@ -105721,7 +105755,7 @@ function retainInstalledReactNativeDeclarations(snapshot, options2, skipped) {
|
|
|
105721
105755
|
async function prepareTurboCompileInput(options2) {
|
|
105722
105756
|
await prepareTurboSourceDependencies(options2.reactNativeRoot);
|
|
105723
105757
|
const key2 = (0, import_node_crypto82.createHash)("sha256").update(options2.providers.map(({ root }) => import_node_fs137.default.realpathSync(root)).join("\0")).update("\0").update(import_node_fs137.default.realpathSync(options2.moduleRoot)).digest("hex");
|
|
105724
|
-
const scratch2 = import_node_path137.default.join(
|
|
105758
|
+
const scratch2 = import_node_path137.default.join(import_node_os29.default.tmpdir(), "peach-turbo-swift", key2);
|
|
105725
105759
|
import_node_fs137.default.mkdirSync(scratch2, { recursive: true });
|
|
105726
105760
|
const codegenDir = import_node_fs137.default.mkdtempSync(import_node_path137.default.join(scratch2, "codegen-"));
|
|
105727
105761
|
const collection = await collectTurboSources({
|
|
@@ -105921,14 +105955,14 @@ async function compileTurboModule(options2) {
|
|
|
105921
105955
|
collection
|
|
105922
105956
|
};
|
|
105923
105957
|
}
|
|
105924
|
-
var import_node_crypto82, import_node_fs137, import_node_module18,
|
|
105958
|
+
var import_node_crypto82, import_node_fs137, import_node_module18, import_node_os29, import_node_path137;
|
|
105925
105959
|
var init_turbo_compile = __esm({
|
|
105926
105960
|
"src/turbo-compile.ts"() {
|
|
105927
105961
|
"use strict";
|
|
105928
105962
|
import_node_crypto82 = require("node:crypto");
|
|
105929
105963
|
import_node_fs137 = __toESM(require("node:fs"), 1);
|
|
105930
105964
|
import_node_module18 = require("node:module");
|
|
105931
|
-
|
|
105965
|
+
import_node_os29 = __toESM(require("node:os"), 1);
|
|
105932
105966
|
import_node_path137 = __toESM(require("node:path"), 1);
|
|
105933
105967
|
init_native_app_identity_project();
|
|
105934
105968
|
init_nitro_adapter();
|
|
@@ -106278,7 +106312,7 @@ var init_react_native_core = __esm({
|
|
|
106278
106312
|
init_swift_distribution();
|
|
106279
106313
|
init_swift_package();
|
|
106280
106314
|
init_swiftContract();
|
|
106281
|
-
recipe = true ? "
|
|
106315
|
+
recipe = true ? "b82a829c3491cbd76f8e400906349226a7ee455970ef249f9c41adc87541e84b" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
106282
106316
|
strings4 = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
106283
106317
|
building = /* @__PURE__ */ new Map();
|
|
106284
106318
|
}
|
|
@@ -108120,7 +108154,7 @@ function expoUnitAppPaths(unit2) {
|
|
|
108120
108154
|
});
|
|
108121
108155
|
}
|
|
108122
108156
|
function expoSwiftPackage(appKey, name3) {
|
|
108123
|
-
return import_node_path141.default.join(
|
|
108157
|
+
return import_node_path141.default.join(import_node_os30.default.tmpdir(), "peach-expo-swift", appKey, `p${process.pid}`, name3);
|
|
108124
108158
|
}
|
|
108125
108159
|
function failureRecordPath(packagePath) {
|
|
108126
108160
|
const app = import_node_path141.default.dirname(import_node_path141.default.dirname(packagePath));
|
|
@@ -108900,7 +108934,7 @@ ${diagnostics}`}`
|
|
|
108900
108934
|
}
|
|
108901
108935
|
return true;
|
|
108902
108936
|
}
|
|
108903
|
-
var import_node_async_hooks3, import_node_child_process69, import_node_crypto85, import_node_fs141, import_node_module20,
|
|
108937
|
+
var import_node_async_hooks3, import_node_child_process69, import_node_crypto85, import_node_fs141, import_node_module20, import_node_os30, import_node_path141, import_node_url7, import_node_util17, run12, scriptEnv, EXPO_SWIFT_ROUTE, EXPO_SWIFT_ENTRY, WITNESS_BATCH, traceStore, discoveryCache, preparedCache, savedFs, ignoredRoots, ownTemporaryRoots, EXPO_MODULE_SCAN_TIMEOUT_MS, preparedExpoSwift, openPreparations, ExpoSwiftLinkRefusal;
|
|
108904
108938
|
var init_expo_swift_host = __esm({
|
|
108905
108939
|
"src/expo-swift-host.ts"() {
|
|
108906
108940
|
"use strict";
|
|
@@ -108909,7 +108943,7 @@ var init_expo_swift_host = __esm({
|
|
|
108909
108943
|
import_node_crypto85 = require("node:crypto");
|
|
108910
108944
|
import_node_fs141 = __toESM(require("node:fs"), 1);
|
|
108911
108945
|
import_node_module20 = require("node:module");
|
|
108912
|
-
|
|
108946
|
+
import_node_os30 = __toESM(require("node:os"), 1);
|
|
108913
108947
|
import_node_path141 = __toESM(require("node:path"), 1);
|
|
108914
108948
|
import_node_url7 = require("node:url");
|
|
108915
108949
|
import_node_util17 = require("node:util");
|
|
@@ -108986,13 +109020,13 @@ function expoPodsBundleInputs(podKeys, oneSDK = false) {
|
|
|
108986
109020
|
)
|
|
108987
109021
|
};
|
|
108988
109022
|
}
|
|
108989
|
-
var import_node_child_process70, import_node_fs142,
|
|
109023
|
+
var import_node_child_process70, import_node_fs142, import_node_os31, import_node_path142, v9, sliceTargetSchema, resourceBundleSchema, sliceManifestSchema, expoAppBundleEntryUrl;
|
|
108990
109024
|
var init_native_package_slice = __esm({
|
|
108991
109025
|
"src/native-package-slice.ts"() {
|
|
108992
109026
|
"use strict";
|
|
108993
109027
|
import_node_child_process70 = require("node:child_process");
|
|
108994
109028
|
import_node_fs142 = __toESM(require("node:fs"), 1);
|
|
108995
|
-
|
|
109029
|
+
import_node_os31 = __toESM(require("node:os"), 1);
|
|
108996
109030
|
import_node_path142 = __toESM(require("node:path"), 1);
|
|
108997
109031
|
v9 = __toESM(require("peachsim/vendor/valibot"), 1);
|
|
108998
109032
|
init_expo_swift_host();
|
|
@@ -113209,7 +113243,7 @@ async function oneWidgetPackage(appRoot) {
|
|
|
113209
113243
|
].join("\n")
|
|
113210
113244
|
);
|
|
113211
113245
|
const packagePath = import_node_path152.default.join(
|
|
113212
|
-
|
|
113246
|
+
import_node_os32.default.tmpdir(),
|
|
113213
113247
|
"peach-one-widgets",
|
|
113214
113248
|
(0, import_node_crypto89.createHash)("sha256").update(root).digest("hex"),
|
|
113215
113249
|
ONE_WIDGET_PACKAGE
|
|
@@ -113225,13 +113259,13 @@ async function oneWidgetPackage(appRoot) {
|
|
|
113225
113259
|
widget
|
|
113226
113260
|
};
|
|
113227
113261
|
}
|
|
113228
|
-
var import_node_crypto89, import_node_fs152,
|
|
113262
|
+
var import_node_crypto89, import_node_fs152, import_node_os32, import_node_path152;
|
|
113229
113263
|
var init_one_widget_package = __esm({
|
|
113230
113264
|
"src/one-widget-package.ts"() {
|
|
113231
113265
|
"use strict";
|
|
113232
113266
|
import_node_crypto89 = require("node:crypto");
|
|
113233
113267
|
import_node_fs152 = __toESM(require("node:fs"), 1);
|
|
113234
|
-
|
|
113268
|
+
import_node_os32 = __toESM(require("node:os"), 1);
|
|
113235
113269
|
import_node_path152 = __toESM(require("node:path"), 1);
|
|
113236
113270
|
init_one_widget_metadata();
|
|
113237
113271
|
init_swift_compile();
|
|
@@ -116893,7 +116927,7 @@ async function prepareNitroCompileInput(options2) {
|
|
|
116893
116927
|
);
|
|
116894
116928
|
if (reactProviders.length > 0 || usesReactHeaders) {
|
|
116895
116929
|
const nitroReactCodegenDir = import_node_fs164.default.mkdtempSync(
|
|
116896
|
-
import_node_path165.default.join(
|
|
116930
|
+
import_node_path165.default.join(import_node_os33.default.tmpdir(), "peach-nitro-react-")
|
|
116897
116931
|
);
|
|
116898
116932
|
let support;
|
|
116899
116933
|
try {
|
|
@@ -116985,7 +117019,7 @@ async function prepareNitroCompileInput(options2) {
|
|
|
116985
117019
|
const key2 = (0, import_node_crypto98.createHash)("sha256").update(
|
|
116986
117020
|
collection.providers.map(({ root, hybridObjects }) => `${root}\0${hybridObjects.join(",")}`).join("\0")
|
|
116987
117021
|
).update("\0").update(import_node_fs164.default.realpathSync(options2.moduleRoot)).update("\0").update(options2.configuration).digest("hex");
|
|
116988
|
-
const packagePath = import_node_path165.default.join(
|
|
117022
|
+
const packagePath = import_node_path165.default.join(import_node_os33.default.tmpdir(), "peach-nitro-swift", key2, `p${process.pid}`);
|
|
116989
117023
|
const sharedLibrary = [...nativeLibraries.values()].find(
|
|
116990
117024
|
(pod) => pod.sharedLibrary
|
|
116991
117025
|
)?.sharedLibrary;
|
|
@@ -117039,13 +117073,13 @@ function nitrogenGeneratedSources(podDirectory) {
|
|
|
117039
117073
|
...sources(import_node_path165.default.join(generated, "ios"), /\.(h|hpp|c|cpp|mm|swift)$/)
|
|
117040
117074
|
];
|
|
117041
117075
|
}
|
|
117042
|
-
var import_node_crypto98, import_node_fs164,
|
|
117076
|
+
var import_node_crypto98, import_node_fs164, import_node_os33, import_node_path165, BUNDLED_CXX_NAMESPACES, REACT_INCLUDE_PATTERN, REACT_LINKING_PATTERN, REACT_VERSION_PATTERN, RN_HEADER_DIR_MAP, RN_COMMON_ROOTS;
|
|
117043
117077
|
var init_nitro_compile = __esm({
|
|
117044
117078
|
"src/nitro-compile.ts"() {
|
|
117045
117079
|
"use strict";
|
|
117046
117080
|
import_node_crypto98 = require("node:crypto");
|
|
117047
117081
|
import_node_fs164 = __toESM(require("node:fs"), 1);
|
|
117048
|
-
|
|
117082
|
+
import_node_os33 = __toESM(require("node:os"), 1);
|
|
117049
117083
|
import_node_path165 = __toESM(require("node:path"), 1);
|
|
117050
117084
|
init_answeredNativePackages();
|
|
117051
117085
|
init_installed_native_libraries();
|
|
@@ -117262,7 +117296,7 @@ var init_nitro_superset = __esm({
|
|
|
117262
117296
|
init_nitroContract();
|
|
117263
117297
|
init_swift_standin_digest();
|
|
117264
117298
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
117265
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
117299
|
+
NITRO_COMPILER_DIGEST = true ? "30bd6a257c3a19ad41e33874df22ff116d6881f600a2f9b9db7c725c66395266" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
117266
117300
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
117267
117301
|
nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
|
|
117268
117302
|
published3 = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2529 | (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;
|
|
@@ -989,13 +989,13 @@ var init_swift_standin_digest = __esm({
|
|
|
989
989
|
import_node_crypto5 = require("node:crypto");
|
|
990
990
|
import_node_fs11 = require("node:fs");
|
|
991
991
|
import_node_path12 = __toESM(require("node:path"), 1);
|
|
992
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
992
|
+
STANDIN_SOURCE_DIGEST = true ? "3883edfb29d2c6c02053cf80f32a9f325a44c203f3c988419ca5920a3dcbca8e" : standinSourceDigest();
|
|
993
993
|
}
|
|
994
994
|
});
|
|
995
995
|
|
|
996
996
|
// src/expo-native-compiler-digest.ts
|
|
997
997
|
function expoNativeCompilerDigestValue() {
|
|
998
|
-
return true ? "
|
|
998
|
+
return true ? "b22fea800cc7cd0234dc86833d4d3fb630afaf2ed9d8b426cb7b1f33097a1a92" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
999
999
|
}
|
|
1000
1000
|
var import_node_crypto6;
|
|
1001
1001
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -16237,7 +16237,7 @@ var init_react_native_core = __esm({
|
|
|
16237
16237
|
init_swift_distribution();
|
|
16238
16238
|
init_swift_package();
|
|
16239
16239
|
init_swiftContract();
|
|
16240
|
-
recipe = true ? "
|
|
16240
|
+
recipe = true ? "b82a829c3491cbd76f8e400906349226a7ee455970ef249f9c41adc87541e84b" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
16241
16241
|
}
|
|
16242
16242
|
});
|
|
16243
16243
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2529 | (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 __defProp = Object.defineProperty;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
import "../esm-chunks/chunk-
|
|
1
|
+
/*! peach v0.1.2529 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "../esm-chunks/chunk-RXUKY2DH.mjs";
|
|
3
3
|
|
|
4
4
|
// src/host/fetch-proxy-overrides.ts
|
|
5
5
|
var FETCH_PROXY_NATIVE_USER_AGENT_HEADER = "x-sootsim-native-user-agent";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2529 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2529 | (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;
|
package/dist-lib/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2529 | (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;
|
package/dist-lib/kotlin-host.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2529 | (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;
|
package/dist-lib/menu.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2529 | (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 __defProp = Object.defineProperty;
|