peachsim 0.1.2583 → 0.1.2584
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 +207 -22
- 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-KJDUWXKA.mjs → acorn-ZVZ3OCQ5.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-BCVOLC6I.mjs → chunk-3FPE4AWV.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RQINUPIV.mjs → chunk-5RPUNG6E.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-P7QX5AZ7.mjs → chunk-6HF6IVRZ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-6BX5JWHW.mjs → chunk-6LCGYQ3Z.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-JDRDX7GD.mjs → chunk-CVDY4GSP.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-QHE754TD.mjs → chunk-CXTYIQH4.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-GDJ7IR2Z.mjs → chunk-DXUEAJB5.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-WUPWE3GM.mjs → chunk-ENXDCDUJ.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-HDIGMVW3.mjs → chunk-GOQIYGJD.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-5EZQ2X47.mjs → chunk-HEG3RAXL.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-H5QCGXIM.mjs → chunk-HHYIRDUH.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CTZKF4CT.mjs → chunk-IDKMFS7W.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-E63AEEFF.mjs → chunk-JJ3AI5Y2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VUQU4RHT.mjs → chunk-KG72KS7D.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-WN7CGW3X.mjs → chunk-N6PTRYT5.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-VB7YMHIV.mjs → chunk-NMYRZ4GT.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-KHPJUBZM.mjs → chunk-PMAEKUDN.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-75MU3BRS.mjs → chunk-RJNIFR5Q.mjs} +12 -12
- package/dist-lib/esm-chunks/{chunk-OSJLWFBW.mjs → chunk-RYY3XHOE.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-KAKBXXG7.mjs → chunk-VIUKS7O4.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-XNODUYM2.mjs → chunk-W5SRJG3R.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-U3YP4LGG.mjs → chunk-WWYAWBD7.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-KVLGK3C5.mjs → metro-layout-parser-VG2C6B5W.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-ZLDAPPOL.mjs → swift-package-prebuilt-7W4NG7RW.mjs} +10 -10
- package/dist-lib/esm-chunks/{swift-sdk-app-module-5LMMG244.mjs → swift-sdk-app-module-PUXEFZD4.mjs} +14 -14
- package/dist-lib/esm-chunks/{swift-sdk-image-OFU6JW3D.mjs → swift-sdk-image-GGYEV75P.mjs} +14 -14
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-76YATE4I.mjs → swift-sdk-image-producer-EWBJ4A2A.mjs} +4 -4
- package/dist-lib/expo-swift-bundle.cjs +206 -21
- 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 +207 -22
- package/dist-lib/host/fetch-proxy-handler.cjs +26 -15
- 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 +16 -16
- 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 +81 -81
- package/dist-lib/public-origins-lib.json +79 -74
- 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 +8 -8
- package/dist-lib/skills.cjs +207 -22
- 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 +6 -6
- 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/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/src/genrule-archives.ts +1 -1
- package/src/genrule-library-builds.ts +1 -1
- package/src/swift-objc-compile.ts +2 -2
- package/src/{swift-wasm64-source-header.ts → swift-wasm64-native-source.ts} +53 -5
- package/src/swift-wasm64-wamr.ts +171 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2584 | (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;
|
|
@@ -26243,13 +26243,13 @@ var init_swift_standin_digest = __esm({
|
|
|
26243
26243
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
26244
26244
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
26245
26245
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
26246
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
26246
|
+
STANDIN_SOURCE_DIGEST = true ? "71ef9e61c61864dff0c32a00c95b9af8ae0dad6aca6b7f511d8ac998fc3304f7" : standinSourceDigest();
|
|
26247
26247
|
}
|
|
26248
26248
|
});
|
|
26249
26249
|
|
|
26250
26250
|
// src/expo-native-compiler-digest.ts
|
|
26251
26251
|
function expoNativeCompilerDigestValue() {
|
|
26252
|
-
return true ? "
|
|
26252
|
+
return true ? "8bd2709578fdbd4f5b99d8584f8a0a813cdcb6e42b3100bb518ec29b99081407" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
26253
26253
|
}
|
|
26254
26254
|
var import_node_crypto17;
|
|
26255
26255
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -75383,33 +75383,198 @@ var init_ffmpeg_source_build = __esm({
|
|
|
75383
75383
|
}
|
|
75384
75384
|
});
|
|
75385
75385
|
|
|
75386
|
-
// src/swift-wasm64-
|
|
75387
|
-
function
|
|
75388
|
-
const
|
|
75386
|
+
// src/swift-wasm64-wamr.ts
|
|
75387
|
+
function wasm64NativeDispatch() {
|
|
75388
|
+
const groups = /* @__PURE__ */ new Map();
|
|
75389
|
+
for (const signature2 of wasm64NativeSignatures) {
|
|
75390
|
+
const end = signature2.indexOf(")");
|
|
75391
|
+
const params = [...signature2.slice(1, end)].map((marker) => {
|
|
75392
|
+
const type = nativeArgumentTypes.get(marker);
|
|
75393
|
+
if (!type) throw new Error(`Unknown WAMR argument marker: ${marker}`);
|
|
75394
|
+
return type;
|
|
75395
|
+
});
|
|
75396
|
+
const result = signature2.endsWith("i") ? "uint32" : "void";
|
|
75397
|
+
const key2 = [result, ...params].join(" ");
|
|
75398
|
+
const group = groups.get(key2) ?? { signatures: [], params, result };
|
|
75399
|
+
group.signatures.push(signature2);
|
|
75400
|
+
groups.set(key2, group);
|
|
75401
|
+
}
|
|
75402
|
+
const cases = [...groups.values()].map(({ signatures, params, result }) => {
|
|
75403
|
+
const condition = signatures.map((signature2) => `strcmp(signature, "${signature2}") == 0`).join(" ||\n ");
|
|
75404
|
+
const types2 = ["WASMExecEnv *", ...params].join(", ");
|
|
75405
|
+
const inputs2 = [
|
|
75406
|
+
"exec_env",
|
|
75407
|
+
...params.map((type, index) => `(${type})args[${index}]`)
|
|
75408
|
+
].join(", ");
|
|
75409
|
+
const assign = result === "void" ? "" : "args[0] = ";
|
|
75410
|
+
return ` if (${condition}) {
|
|
75411
|
+
typedef ${result} (*TypedFunction)(${types2});
|
|
75412
|
+
${assign}((TypedFunction)func_ptr)(${inputs2});
|
|
75413
|
+
return true;
|
|
75414
|
+
}`;
|
|
75415
|
+
}).join("\n");
|
|
75416
|
+
return `#if ${wasm64Interpreter}
|
|
75417
|
+
static bool
|
|
75418
|
+
invoke_wasm64_native(WASMExecEnv *exec_env, void *func_ptr,
|
|
75419
|
+
const char *signature, uint64 *args)
|
|
75420
|
+
{
|
|
75421
|
+
if (!signature)
|
|
75422
|
+
return false;
|
|
75423
|
+
${cases}
|
|
75424
|
+
return false;
|
|
75425
|
+
}
|
|
75426
|
+
#endif
|
|
75427
|
+
|
|
75428
|
+
`;
|
|
75429
|
+
}
|
|
75430
|
+
function deriveWamrWasm64Runtime(source) {
|
|
75431
|
+
const dispatchStart = "/**\n * Implementation of wasm_runtime_invoke_native()";
|
|
75432
|
+
const dispatchEnd = "|| defined(BUILD_TARGET_RISCV64_LP64) */\n\nbool\nwasm_runtime_call_indirect(";
|
|
75433
|
+
const entryPoint = (name3, raw2) => `bool
|
|
75434
|
+
${name3}(WASMExecEnv *exec_env, void *func_ptr,
|
|
75435
|
+
const WASMFuncType *func_type, const char *signature,
|
|
75436
|
+
void *attachment, uint32 *argv, uint32 argc, uint32 *argv_ret)
|
|
75437
|
+
{
|
|
75438
|
+
return invoke_checked_native(exec_env, func_ptr, func_type, signature,
|
|
75439
|
+
attachment, argv, argc, argv_ret, ${raw2});
|
|
75440
|
+
}
|
|
75441
|
+
`;
|
|
75442
|
+
return source.replace(
|
|
75443
|
+
`bool
|
|
75444
|
+
wasm_runtime_invoke_native_raw(WASMExecEnv *exec_env, void *func_ptr,
|
|
75445
|
+
const WASMFuncType *func_type,
|
|
75446
|
+
const char *signature, void *attachment,
|
|
75447
|
+
uint32 *argv, uint32 argc, uint32 *argv_ret)
|
|
75448
|
+
`,
|
|
75449
|
+
() => `${wasm64NativeDispatch()}static bool
|
|
75450
|
+
invoke_checked_native(WASMExecEnv *exec_env, void *func_ptr,
|
|
75451
|
+
const WASMFuncType *func_type, const char *signature,
|
|
75452
|
+
void *attachment, uint32 *argv, uint32 argc,
|
|
75453
|
+
uint32 *argv_ret, bool raw)
|
|
75454
|
+
`
|
|
75455
|
+
).replace(
|
|
75456
|
+
" exec_env->attachment = attachment;\n invoke_native_raw(exec_env, argv1);\n exec_env->attachment = NULL;\n",
|
|
75457
|
+
` exec_env->attachment = attachment;
|
|
75458
|
+
#if ${wasm64Interpreter}
|
|
75459
|
+
if (!raw) {
|
|
75460
|
+
if (!invoke_wasm64_native(exec_env, func_ptr, signature, argv1)) {
|
|
75461
|
+
exec_env->attachment = NULL;
|
|
75462
|
+
wasm_runtime_set_exception(module, "unsupported Wasm64 native signature");
|
|
75463
|
+
goto fail;
|
|
75464
|
+
}
|
|
75465
|
+
}
|
|
75466
|
+
else
|
|
75467
|
+
#endif
|
|
75468
|
+
invoke_native_raw(exec_env, argv1);
|
|
75469
|
+
exec_env->attachment = NULL;
|
|
75470
|
+
`
|
|
75471
|
+
).replace(
|
|
75472
|
+
dispatchStart,
|
|
75473
|
+
() => entryPoint("wasm_runtime_invoke_native_raw", true) + `
|
|
75474
|
+
#if ${wasm64Interpreter}
|
|
75475
|
+
` + entryPoint("wasm_runtime_invoke_native", false) + "#else\n" + dispatchStart
|
|
75476
|
+
).replace(
|
|
75477
|
+
dispatchEnd,
|
|
75478
|
+
"|| defined(BUILD_TARGET_RISCV64_LP64) */\n#endif\n\nbool\nwasm_runtime_call_indirect("
|
|
75479
|
+
);
|
|
75480
|
+
}
|
|
75481
|
+
function deriveWamrWasm64Wasi(source) {
|
|
75482
|
+
return source.replace(
|
|
75483
|
+
/^(wasi_sock_set_(?:recv|send)_buf_size\(wasm_exec_env_t exec_env, wasi_fd_t fd, )size_t size\)$/gm,
|
|
75484
|
+
"$1uint32 size)"
|
|
75485
|
+
);
|
|
75486
|
+
}
|
|
75487
|
+
var wasm64NativeSignatures, nativeArgumentTypes, wasm64Interpreter;
|
|
75488
|
+
var init_swift_wasm64_wamr = __esm({
|
|
75489
|
+
"src/swift-wasm64-wamr.ts"() {
|
|
75490
|
+
"use strict";
|
|
75491
|
+
wasm64NativeSignatures = [
|
|
75492
|
+
"(**)i",
|
|
75493
|
+
"(i*)i",
|
|
75494
|
+
"(iI*)i",
|
|
75495
|
+
"(i*~)i",
|
|
75496
|
+
"(i*i)i",
|
|
75497
|
+
"(i)i",
|
|
75498
|
+
"(i*iI*)i",
|
|
75499
|
+
"(i*~I*)i",
|
|
75500
|
+
"(i*i*)i",
|
|
75501
|
+
"(ii)i",
|
|
75502
|
+
"(iIi*)i",
|
|
75503
|
+
"(iII)i",
|
|
75504
|
+
"(iIIi)i",
|
|
75505
|
+
"(ii*~i*~)i",
|
|
75506
|
+
"(ii*~iIIi*)i",
|
|
75507
|
+
"(i*~*~*)i",
|
|
75508
|
+
"(i*~i*~)i",
|
|
75509
|
+
"(iI)i",
|
|
75510
|
+
"(ii*~*)i",
|
|
75511
|
+
"(ii*~IIi)i",
|
|
75512
|
+
"(*~i*~)i",
|
|
75513
|
+
"(**i*)i",
|
|
75514
|
+
"(i)",
|
|
75515
|
+
"(*~)i",
|
|
75516
|
+
"(ii*)i",
|
|
75517
|
+
"($$**i*)i",
|
|
75518
|
+
"(i**)i",
|
|
75519
|
+
"(iii*)i",
|
|
75520
|
+
"(i*ii**)i",
|
|
75521
|
+
"(i*ii*)i",
|
|
75522
|
+
"(iii)i",
|
|
75523
|
+
"()i",
|
|
75524
|
+
"(*~)",
|
|
75525
|
+
"(*~*~)i"
|
|
75526
|
+
];
|
|
75527
|
+
nativeArgumentTypes = /* @__PURE__ */ new Map([
|
|
75528
|
+
["i", "uint32"],
|
|
75529
|
+
["~", "uint32"],
|
|
75530
|
+
["I", "uint64"],
|
|
75531
|
+
["*", "uintptr_t"],
|
|
75532
|
+
["$", "uintptr_t"]
|
|
75533
|
+
]);
|
|
75534
|
+
wasm64Interpreter = "defined(__wasm64__) && defined(BUILD_TARGET_AARCH64) && WASM_ENABLE_INTERP != 0 && WASM_ENABLE_AOT == 0 && WASM_ENABLE_JIT == 0 && WASM_ENABLE_FAST_JIT == 0";
|
|
75535
|
+
}
|
|
75536
|
+
});
|
|
75537
|
+
|
|
75538
|
+
// src/swift-wasm64-native-source.ts
|
|
75539
|
+
function deriveSource(file, bytes, backport) {
|
|
75389
75540
|
if (!backport || (0, import_node_crypto63.createHash)("sha256").update(bytes).digest("hex") !== backport.originalSha256)
|
|
75390
75541
|
return null;
|
|
75542
|
+
const source = bytes.toString("utf8");
|
|
75391
75543
|
const derived = Buffer.from(
|
|
75392
|
-
|
|
75544
|
+
"rewrite" in backport ? backport.rewrite(source) : source.replace(backport.before, backport.after)
|
|
75393
75545
|
);
|
|
75394
75546
|
if ((0, import_node_crypto63.createHash)("sha256").update(derived).digest("hex") !== backport.derivedSha256)
|
|
75395
|
-
throw new Error(`Native
|
|
75547
|
+
throw new Error(`Native source derivation differs: ${file}`);
|
|
75396
75548
|
return {
|
|
75397
75549
|
bytes: derived,
|
|
75398
75550
|
upstreamCommit: backport.upstreamCommit,
|
|
75399
75551
|
originalSha256: backport.originalSha256
|
|
75400
75552
|
};
|
|
75401
75553
|
}
|
|
75402
|
-
|
|
75403
|
-
|
|
75404
|
-
|
|
75554
|
+
function deriveWasm64Header(file, bytes) {
|
|
75555
|
+
return deriveSource(file, bytes, headerDerivations.get(import_node_path102.default.basename(file)));
|
|
75556
|
+
}
|
|
75557
|
+
function deriveWasm64NativeSource(file, bytes) {
|
|
75558
|
+
const name3 = import_node_path102.default.basename(file);
|
|
75559
|
+
return deriveSource(
|
|
75560
|
+
file,
|
|
75561
|
+
bytes,
|
|
75562
|
+
sourceDerivations.get(name3) ?? headerDerivations.get(name3)
|
|
75563
|
+
);
|
|
75564
|
+
}
|
|
75565
|
+
var import_node_crypto63, import_node_path102, webrtcUnknownArchitecture, boringsslWordSize2, wamrCommit, headerDerivations, sourceDerivations;
|
|
75566
|
+
var init_swift_wasm64_native_source = __esm({
|
|
75567
|
+
"src/swift-wasm64-native-source.ts"() {
|
|
75405
75568
|
"use strict";
|
|
75406
75569
|
import_node_crypto63 = require("node:crypto");
|
|
75407
75570
|
import_node_path102 = __toESM(require("node:path"), 1);
|
|
75408
75571
|
init_nitro_dependencies();
|
|
75572
|
+
init_swift_wasm64_wamr();
|
|
75409
75573
|
init_swiftWasm64ConfigContract();
|
|
75410
75574
|
webrtcUnknownArchitecture = "#else\n#error Please add support for your architecture in rtc_base/system/arch.h";
|
|
75411
75575
|
boringsslWordSize2 = swiftWasm64PlatformGates["swift-nio-ssl/wasm64-word-size"];
|
|
75412
|
-
|
|
75576
|
+
wamrCommit = "25bd7eb63e828e4bd242cc9b38d260b4b31c6605";
|
|
75577
|
+
headerDerivations = /* @__PURE__ */ new Map([
|
|
75413
75578
|
["utils.h", DOUBLE_CONVERSION_WASM64_BACKPORT],
|
|
75414
75579
|
[
|
|
75415
75580
|
"target.h",
|
|
@@ -75438,6 +75603,26 @@ var init_swift_wasm64_source_header = __esm({
|
|
|
75438
75603
|
}
|
|
75439
75604
|
]
|
|
75440
75605
|
]);
|
|
75606
|
+
sourceDerivations = /* @__PURE__ */ new Map([
|
|
75607
|
+
[
|
|
75608
|
+
"wasm_runtime_common.c",
|
|
75609
|
+
{
|
|
75610
|
+
upstreamCommit: wamrCommit,
|
|
75611
|
+
originalSha256: "d2f8ce6f2a826e0bf8c733309e61f62597b446d33f66d8eab04d67625719e4e7",
|
|
75612
|
+
derivedSha256: "a4ac5cecff71f1fc3db347189a9afea2bab22b0240262969d40f4fe7cdd14309",
|
|
75613
|
+
rewrite: deriveWamrWasm64Runtime
|
|
75614
|
+
}
|
|
75615
|
+
],
|
|
75616
|
+
[
|
|
75617
|
+
"libc_wasi_wrapper.c",
|
|
75618
|
+
{
|
|
75619
|
+
upstreamCommit: wamrCommit,
|
|
75620
|
+
originalSha256: "bbfb6df14a2928d9b023701002473ecbf8437d42cd68a725faa736ddf88067ac",
|
|
75621
|
+
derivedSha256: "3df712348b50a065f465304dc7027ffbdfe8e633ba9ed535803592c3ace7f5f5",
|
|
75622
|
+
rewrite: deriveWamrWasm64Wasi
|
|
75623
|
+
}
|
|
75624
|
+
]
|
|
75625
|
+
]);
|
|
75441
75626
|
}
|
|
75442
75627
|
});
|
|
75443
75628
|
|
|
@@ -75588,7 +75773,7 @@ var init_genrule_library_builds = __esm({
|
|
|
75588
75773
|
import_node_child_process50 = require("node:child_process");
|
|
75589
75774
|
import_node_fs101 = __toESM(require("node:fs"), 1);
|
|
75590
75775
|
import_node_path103 = __toESM(require("node:path"), 1);
|
|
75591
|
-
|
|
75776
|
+
init_swift_wasm64_native_source();
|
|
75592
75777
|
init_swiftTargetContract();
|
|
75593
75778
|
opusBuilder = {
|
|
75594
75779
|
name: "opus",
|
|
@@ -76324,7 +76509,7 @@ var init_genrule_archives = __esm({
|
|
|
76324
76509
|
init_swift_compile();
|
|
76325
76510
|
init_swift_distribution();
|
|
76326
76511
|
init_swift_toolchain();
|
|
76327
|
-
|
|
76512
|
+
init_swift_wasm64_native_source();
|
|
76328
76513
|
init_swiftRuntimeProductContract();
|
|
76329
76514
|
init_swiftTargetContract();
|
|
76330
76515
|
BUILDERS = [ffmpegBuilder, ...GENRULE_LIBRARY_BUILDERS];
|
|
@@ -80095,7 +80280,7 @@ function* xcodeObjCInputSteps(app, binaries, moduleRoot, products, sourceRoot =
|
|
|
80095
80280
|
const regularFiles = /* @__PURE__ */ new Map();
|
|
80096
80281
|
const parents = /* @__PURE__ */ new Map();
|
|
80097
80282
|
const links = {};
|
|
80098
|
-
const
|
|
80283
|
+
const derivations = {};
|
|
80099
80284
|
const checkouts = remoteSwiftCheckouts(app.rootDir);
|
|
80100
80285
|
const externalFrameworkDirs = [
|
|
80101
80286
|
...new Set(
|
|
@@ -80134,10 +80319,10 @@ function* xcodeObjCInputSteps(app, binaries, moduleRoot, products, sourceRoot =
|
|
|
80134
80319
|
resolved,
|
|
80135
80320
|
Infinity
|
|
80136
80321
|
);
|
|
80137
|
-
const derived =
|
|
80322
|
+
const derived = deriveWasm64NativeSource(file, bytes);
|
|
80138
80323
|
sources.set(file, derived?.bytes ?? bytes);
|
|
80139
80324
|
if (derived) {
|
|
80140
|
-
|
|
80325
|
+
derivations[file] = {
|
|
80141
80326
|
upstreamCommit: derived.upstreamCommit,
|
|
80142
80327
|
originalSha256: derived.originalSha256
|
|
80143
80328
|
};
|
|
@@ -80515,7 +80700,7 @@ function* xcodeObjCInputSteps(app, binaries, moduleRoot, products, sourceRoot =
|
|
|
80515
80700
|
});
|
|
80516
80701
|
}
|
|
80517
80702
|
for (const file of generated.keys()) add(file);
|
|
80518
|
-
return { sources, links, derivations
|
|
80703
|
+
return { sources, links, derivations, targets, externalFrameworkDirs };
|
|
80519
80704
|
}
|
|
80520
80705
|
function prepareXcodeSwiftProducts(app, binaries, moduleRoot) {
|
|
80521
80706
|
const targets = app.frameworks.filter(
|
|
@@ -80888,7 +81073,7 @@ async function prepareXcodeNativeInputs(app, binaries, moduleRoot, purpose) {
|
|
|
80888
81073
|
const toolchain = swiftModuleToolchain(moduleRoot);
|
|
80889
81074
|
const sdk2 = swiftSdkPaths(moduleRoot, toolchain.toolchainBin);
|
|
80890
81075
|
const products = prepareXcodeSwiftProducts(app, binaries, moduleRoot);
|
|
80891
|
-
const { sources, links, derivations
|
|
81076
|
+
const { sources, links, derivations, targets, externalFrameworkDirs } = xcodeObjCInputs(
|
|
80892
81077
|
app,
|
|
80893
81078
|
binaries,
|
|
80894
81079
|
moduleRoot,
|
|
@@ -80918,7 +81103,7 @@ async function prepareXcodeNativeInputs(app, binaries, moduleRoot, purpose) {
|
|
|
80918
81103
|
externalFrameworkDirs,
|
|
80919
81104
|
inputs: inputs2,
|
|
80920
81105
|
links,
|
|
80921
|
-
derivations
|
|
81106
|
+
derivations,
|
|
80922
81107
|
swiftProducts: products?.receipt
|
|
80923
81108
|
};
|
|
80924
81109
|
const parent = import_node_path110.default.join(cacheDir(), "swift-objc-implementations");
|
|
@@ -81282,7 +81467,7 @@ var init_swift_objc_compile = __esm({
|
|
|
81282
81467
|
init_swift_standin_digest();
|
|
81283
81468
|
init_swift_standins();
|
|
81284
81469
|
init_swift_toolchain();
|
|
81285
|
-
|
|
81470
|
+
init_swift_wasm64_native_source();
|
|
81286
81471
|
init_swiftTargetContract();
|
|
81287
81472
|
init_xcode_header_search();
|
|
81288
81473
|
SwiftObjCCompilationError = class extends Error {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2584 | (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,19 +1,19 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2584 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
isSwiftResourcePath
|
|
4
|
-
} from "./esm-chunks/chunk-
|
|
4
|
+
} from "./esm-chunks/chunk-JJ3AI5Y2.mjs";
|
|
5
5
|
import {
|
|
6
6
|
isNativeAppIdentity
|
|
7
|
-
} from "./esm-chunks/chunk-
|
|
8
|
-
import "./esm-chunks/chunk-
|
|
7
|
+
} from "./esm-chunks/chunk-N6PTRYT5.mjs";
|
|
8
|
+
import "./esm-chunks/chunk-NMYRZ4GT.mjs";
|
|
9
9
|
import {
|
|
10
10
|
insertBundleGlobalFooter,
|
|
11
11
|
readBundleGlobalFooter
|
|
12
|
-
} from "./esm-chunks/chunk-
|
|
12
|
+
} from "./esm-chunks/chunk-PMAEKUDN.mjs";
|
|
13
13
|
import {
|
|
14
14
|
isRecord
|
|
15
|
-
} from "./esm-chunks/chunk-
|
|
16
|
-
import "./esm-chunks/chunk-
|
|
15
|
+
} from "./esm-chunks/chunk-VIUKS7O4.mjs";
|
|
16
|
+
import "./esm-chunks/chunk-6HF6IVRZ.mjs";
|
|
17
17
|
|
|
18
18
|
// src/expoSwiftContract.ts
|
|
19
19
|
function strings(value) {
|
package/dist-lib/home-paths.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2584 | (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;
|