peachsim 0.1.2487 → 0.1.2489
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/cli/commands/control.ts +1 -0
- package/cli/commands/shell-url.ts +12 -6
- 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 +167 -167
- 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-MHBKEX4S.mjs → acorn-46P725QB.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-RUTCB73U.mjs → chunk-2ZAKSUG3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HE7EAGQL.mjs → chunk-5F5TV3M5.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-2ZLORBLV.mjs → chunk-75IXYYPA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RCU5GHCK.mjs → chunk-CB2MREW2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-J2F3WW7E.mjs → chunk-E7Z6E4VM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-WM3ZQJPN.mjs → chunk-FMR76G4M.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-N77R5GZV.mjs → chunk-FNFDX5OA.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-OXWMTMC4.mjs → chunk-FXOLLJ7N.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QXT6KHA4.mjs → chunk-G4KFSINI.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-X2P3BLT5.mjs → chunk-HO4COZOG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-OZIZZTJU.mjs → chunk-K3NXHJBV.mjs} +12 -12
- package/dist-lib/esm-chunks/{chunk-WBFRHLQG.mjs → chunk-KFJJOPLU.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-NM27TWXD.mjs → chunk-MOGXM5NJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-FQLC3QU7.mjs → chunk-NN6KHA6F.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VTJKZ25F.mjs → chunk-PWLDSFLP.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RCXANTR3.mjs → chunk-QR4AFBNL.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-VNI6WHVI.mjs → chunk-ST7BG6HB.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-23DLL3LB.mjs → chunk-T53UQ6V7.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-2BZEUT66.mjs → chunk-XYRP56S5.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-KF6HW3YA.mjs → chunk-YH2VVDO2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-4WGIAUCS.mjs → chunk-ZGCWGHEX.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-5W4FZUHK.mjs → metro-layout-parser-FPL6XENQ.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-KJQO5GSC.mjs → swift-package-prebuilt-FYUAWFYO.mjs} +10 -10
- package/dist-lib/esm-chunks/{swift-sdk-app-module-JM6D76SD.mjs → swift-sdk-app-module-RVHNFMEY.mjs} +13 -13
- package/dist-lib/esm-chunks/{swift-sdk-image-JUXW737Q.mjs → swift-sdk-image-JHQ6DP5G.mjs} +13 -13
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-X55F2PAV.mjs → swift-sdk-image-producer-XQ5W4ONP.mjs} +4 -4
- package/dist-lib/expo-swift-bundle.cjs +99 -99
- 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 +972 -760
- package/dist-lib/host/fetch-proxy-handler.cjs +42 -42
- 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 +74 -72
- 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 +1421 -1324
- 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/core-abi/style/style-schema.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/render-worker/canvaskit-webgpu.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/test-bridge-protocol.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/webgpu-wire-server.d.ts +2 -0
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +4 -0
- package/package.json +1 -1
- package/src/expo-native-prebuilt.ts +16 -25
- package/src/host/bridge-host.ts +8 -0
- package/src/managed-expo-identity.ts +110 -0
- package/src/native-preparation.ts +8 -2
- package/src/nativePreparationContract.ts +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2489 | (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;
|
|
@@ -77289,7 +77289,7 @@ function watchNativeInputs(root) {
|
|
|
77289
77289
|
(0, import_node_timers.clearTimeout)(expiry);
|
|
77290
77290
|
for (const watcher of watchers) watcher.close();
|
|
77291
77291
|
}
|
|
77292
|
-
const inputs2 = { expiry };
|
|
77292
|
+
const inputs2 = { expiry, revision: (0, import_node_crypto53.randomUUID)() };
|
|
77293
77293
|
const watch = (directory2, recursive, name3) => {
|
|
77294
77294
|
const watcher = import_node_fs89.default.watch(
|
|
77295
77295
|
directory2,
|
|
@@ -77330,10 +77330,11 @@ function watchNativeInputs(root) {
|
|
|
77330
77330
|
watchedInputs.set(workspace, inputs2);
|
|
77331
77331
|
return inputs2;
|
|
77332
77332
|
}
|
|
77333
|
-
var import_node_fs89, import_node_path90, import_node_timers, setTimeoutNode, RETENTION_MS, watchedInputs, NativePreparation;
|
|
77333
|
+
var import_node_crypto53, import_node_fs89, import_node_path90, import_node_timers, setTimeoutNode, RETENTION_MS, watchedInputs, NativePreparation;
|
|
77334
77334
|
var init_native_preparation = __esm({
|
|
77335
77335
|
"src/native-preparation.ts"() {
|
|
77336
77336
|
"use strict";
|
|
77337
|
+
import_node_crypto53 = require("node:crypto");
|
|
77337
77338
|
import_node_fs89 = __toESM(require("node:fs"), 1);
|
|
77338
77339
|
import_node_path90 = __toESM(require("node:path"), 1);
|
|
77339
77340
|
import_node_timers = require("node:timers");
|
|
@@ -77544,7 +77545,7 @@ function nativeStaticLibraryEntry(recipe2, compiler, sdk2, distribution) {
|
|
|
77544
77545
|
return { name: recipe2.name, inputs: inputs2, key: nativeEntryKey(inputs2) };
|
|
77545
77546
|
}
|
|
77546
77547
|
function nativeStaticLibraryRecipe(bytes) {
|
|
77547
|
-
const digest3 = (0,
|
|
77548
|
+
const digest3 = (0, import_node_crypto54.createHash)("sha256").update(bytes).digest("hex");
|
|
77548
77549
|
return NATIVE_STATIC_LIBRARY_RECIPES.find((item) => item.nativeSha256 === digest3);
|
|
77549
77550
|
}
|
|
77550
77551
|
function nativeStaticLibrary(file, recipe2, moduleRoot) {
|
|
@@ -77587,7 +77588,7 @@ function isRustSymbol(name3, demangled) {
|
|
|
77587
77588
|
function rustStaticLibrary(file, moduleRoot) {
|
|
77588
77589
|
const toolchain = swiftModuleToolchain(moduleRoot);
|
|
77589
77590
|
const bytes = import_node_fs91.default.readFileSync(file);
|
|
77590
|
-
const key2 = (0,
|
|
77591
|
+
const key2 = (0, import_node_crypto54.createHash)("sha256").update("rust-c-abi-v4\0").update(toolchain.release).update("\0").update(bytes).digest("hex");
|
|
77591
77592
|
const directory2 = import_node_path92.default.join(cacheDir(), "native-archives", key2);
|
|
77592
77593
|
const archive = import_node_path92.default.join(directory2, "library.a");
|
|
77593
77594
|
if (import_node_fs91.default.existsSync(archive)) return archive;
|
|
@@ -77616,7 +77617,7 @@ function rustStaticLibrary(file, moduleRoot) {
|
|
|
77616
77617
|
const members2 = readArMembers(bytes, true);
|
|
77617
77618
|
const seen = /* @__PURE__ */ new Set();
|
|
77618
77619
|
const unique2 = members2.filter(({ name: name3, bytes: bytes2 }) => {
|
|
77619
|
-
const identity2 = name3 + "\0" + (0,
|
|
77620
|
+
const identity2 = name3 + "\0" + (0, import_node_crypto54.createHash)("sha256").update(bytes2).digest("hex");
|
|
77620
77621
|
if (seen.has(identity2)) return false;
|
|
77621
77622
|
seen.add(identity2);
|
|
77622
77623
|
return true;
|
|
@@ -77663,14 +77664,14 @@ function rustStaticLibrary(file, moduleRoot) {
|
|
|
77663
77664
|
function combineNativeStaticLibraries(files2, moduleRoot) {
|
|
77664
77665
|
if (files2.length === 1) return files2[0];
|
|
77665
77666
|
const toolchain = swiftModuleToolchain(moduleRoot);
|
|
77666
|
-
const hash = (0,
|
|
77667
|
+
const hash = (0, import_node_crypto54.createHash)("sha256").update(toolchain.release);
|
|
77667
77668
|
for (const file of files2)
|
|
77668
77669
|
hash.update("\0").update(import_node_path92.default.basename(file)).update("\0").update(import_node_fs91.default.readFileSync(file));
|
|
77669
77670
|
const directory2 = import_node_path92.default.join(cacheDir(), "native-archives", hash.digest("hex"));
|
|
77670
77671
|
const archive = import_node_path92.default.join(directory2, "combined.a");
|
|
77671
77672
|
if (import_node_fs91.default.existsSync(archive)) return archive;
|
|
77672
77673
|
import_node_fs91.default.mkdirSync(directory2, { recursive: true });
|
|
77673
|
-
const temporary = import_node_path92.default.join(directory2, `combined-${(0,
|
|
77674
|
+
const temporary = import_node_path92.default.join(directory2, `combined-${(0, import_node_crypto54.randomUUID)()}.a`);
|
|
77674
77675
|
try {
|
|
77675
77676
|
(0, import_node_child_process45.execFileSync)(import_node_path92.default.join(toolchain.toolchainBin, "llvm-ar"), [
|
|
77676
77677
|
"qcsDL",
|
|
@@ -77683,12 +77684,12 @@ function combineNativeStaticLibraries(files2, moduleRoot) {
|
|
|
77683
77684
|
}
|
|
77684
77685
|
return archive;
|
|
77685
77686
|
}
|
|
77686
|
-
var import_node_child_process45,
|
|
77687
|
+
var import_node_child_process45, import_node_crypto54, import_node_fs91, import_node_path92, WEBRTC_NATIVE_FRAMEWORK, SIGNAL_WEBRTC_NATIVE_FRAMEWORK, WEBRTC_NATIVE_FRAMEWORK_RECIPES, NATIVE_STATIC_LIBRARY_RECIPES;
|
|
77687
77688
|
var init_native_static_libraries = __esm({
|
|
77688
77689
|
"src/native-static-libraries.ts"() {
|
|
77689
77690
|
"use strict";
|
|
77690
77691
|
import_node_child_process45 = require("node:child_process");
|
|
77691
|
-
|
|
77692
|
+
import_node_crypto54 = require("node:crypto");
|
|
77692
77693
|
import_node_fs91 = __toESM(require("node:fs"), 1);
|
|
77693
77694
|
import_node_path92 = __toESM(require("node:path"), 1);
|
|
77694
77695
|
init_home_paths();
|
|
@@ -78403,11 +78404,11 @@ var init_nitro_adapter = __esm({
|
|
|
78403
78404
|
});
|
|
78404
78405
|
|
|
78405
78406
|
// src/react-native-core-digest.ts
|
|
78406
|
-
var
|
|
78407
|
+
var import_node_crypto55, import_node_fs94, import_node_path95;
|
|
78407
78408
|
var init_react_native_core_digest = __esm({
|
|
78408
78409
|
"src/react-native-core-digest.ts"() {
|
|
78409
78410
|
"use strict";
|
|
78410
|
-
|
|
78411
|
+
import_node_crypto55 = require("node:crypto");
|
|
78411
78412
|
import_node_fs94 = __toESM(require("node:fs"), 1);
|
|
78412
78413
|
import_node_path95 = __toESM(require("node:path"), 1);
|
|
78413
78414
|
}
|
|
@@ -81845,11 +81846,11 @@ function coreDataModelDirectories(files2) {
|
|
|
81845
81846
|
}
|
|
81846
81847
|
return [...models].sort();
|
|
81847
81848
|
}
|
|
81848
|
-
var
|
|
81849
|
+
var import_node_crypto56, import_node_fs96, import_node_path97, attributeTypes, deleteRules, EXTERNAL_BINARY, PRESERVE_AFTER_DELETION, yes, common, uid, NULL, classChains, KeyedArchive, sha2563;
|
|
81849
81850
|
var init_core_data_model = __esm({
|
|
81850
81851
|
"src/core-data-model.ts"() {
|
|
81851
81852
|
"use strict";
|
|
81852
|
-
|
|
81853
|
+
import_node_crypto56 = require("node:crypto");
|
|
81853
81854
|
import_node_fs96 = require("node:fs");
|
|
81854
81855
|
import_node_path97 = __toESM(require("node:path"), 1);
|
|
81855
81856
|
init_core_data_entity_classes();
|
|
@@ -81968,7 +81969,7 @@ var init_core_data_model = __esm({
|
|
|
81968
81969
|
});
|
|
81969
81970
|
}
|
|
81970
81971
|
};
|
|
81971
|
-
sha2563 = (...parts) => (0,
|
|
81972
|
+
sha2563 = (...parts) => (0, import_node_crypto56.createHash)("sha256").update(
|
|
81972
81973
|
Buffer.concat(
|
|
81973
81974
|
parts.map(
|
|
81974
81975
|
(part) => Array.isArray(part) ? Buffer.from(part) : Buffer.from(part)
|
|
@@ -84199,7 +84200,7 @@ function processAlive(pid) {
|
|
|
84199
84200
|
}
|
|
84200
84201
|
function tryAcquireNumberedLock(directory2, detail = "") {
|
|
84201
84202
|
(0, import_node_fs97.mkdirSync)(directory2, { recursive: true });
|
|
84202
|
-
const claim = (0, import_node_path98.join)(directory2, `claim-${process.pid}-${(0,
|
|
84203
|
+
const claim = (0, import_node_path98.join)(directory2, `claim-${process.pid}-${(0, import_node_crypto57.randomUUID)()}`);
|
|
84203
84204
|
for (; ; ) {
|
|
84204
84205
|
const numbers = (0, import_node_fs97.readdirSync)(directory2).filter((name3) => /^\d+$/.test(name3)).map(Number);
|
|
84205
84206
|
const top = Math.max(-1, ...numbers);
|
|
@@ -84238,11 +84239,11 @@ ${detail}` : ""}`);
|
|
|
84238
84239
|
};
|
|
84239
84240
|
}
|
|
84240
84241
|
}
|
|
84241
|
-
var
|
|
84242
|
+
var import_node_crypto57, import_node_fs97, import_node_path98, errorCode2;
|
|
84242
84243
|
var init_numbered_lock = __esm({
|
|
84243
84244
|
"src/numbered-lock.ts"() {
|
|
84244
84245
|
"use strict";
|
|
84245
|
-
|
|
84246
|
+
import_node_crypto57 = require("node:crypto");
|
|
84246
84247
|
import_node_fs97 = require("node:fs");
|
|
84247
84248
|
import_node_path98 = require("node:path");
|
|
84248
84249
|
errorCode2 = (error) => error instanceof Error && "code" in error ? error.code : void 0;
|
|
@@ -84269,7 +84270,7 @@ async function buildRiveRuntimeDependencies(checkout, moduleRoot) {
|
|
|
84269
84270
|
];
|
|
84270
84271
|
const objc = [...swiftObjCRuntimeFlags, "-fobjc-exceptions"];
|
|
84271
84272
|
const xcode = (0, import_node_child_process47.execFileSync)("xcodebuild", ["-version"], { encoding: "utf8" });
|
|
84272
|
-
const key2 = (0,
|
|
84273
|
+
const key2 = (0, import_node_crypto58.createHash)("sha256").update(
|
|
84273
84274
|
JSON.stringify([
|
|
84274
84275
|
RECIPE,
|
|
84275
84276
|
(0, import_node_child_process47.execFileSync)("git", ["-C", runtime, "rev-parse", "HEAD"], {
|
|
@@ -84480,12 +84481,12 @@ exec ${quote3(import_node_path99.default.join(toolchainBin, "llvm-ar"))} rcs "$o
|
|
|
84480
84481
|
);
|
|
84481
84482
|
return directory2;
|
|
84482
84483
|
}
|
|
84483
|
-
var import_node_child_process47,
|
|
84484
|
+
var import_node_child_process47, import_node_crypto58, import_node_fs98, import_node_os19, import_node_path99, import_promises8, RECIPE, CONFIG, RUNTIME_LIBRARIES;
|
|
84484
84485
|
var init_rive_runtime_dependencies = __esm({
|
|
84485
84486
|
"src/rive-runtime-dependencies.ts"() {
|
|
84486
84487
|
"use strict";
|
|
84487
84488
|
import_node_child_process47 = require("node:child_process");
|
|
84488
|
-
|
|
84489
|
+
import_node_crypto58 = require("node:crypto");
|
|
84489
84490
|
import_node_fs98 = __toESM(require("node:fs"), 1);
|
|
84490
84491
|
import_node_os19 = __toESM(require("node:os"), 1);
|
|
84491
84492
|
import_node_path99 = __toESM(require("node:path"), 1);
|
|
@@ -84584,7 +84585,7 @@ var init_swift_shipped_binaries = __esm({
|
|
|
84584
84585
|
|
|
84585
84586
|
// src/swift-packages.ts
|
|
84586
84587
|
function remoteSwiftCheckouts(root) {
|
|
84587
|
-
const key2 = (0,
|
|
84588
|
+
const key2 = (0, import_node_crypto59.createHash)("sha256").update(import_node_fs99.default.realpathSync(root)).digest("hex").slice(0, 32);
|
|
84588
84589
|
import_node_fs99.default.mkdirSync(cacheDir(), { recursive: true });
|
|
84589
84590
|
return import_node_path100.default.join(import_node_fs99.default.realpathSync(cacheDir()), "swift-packages", key2, "checkouts");
|
|
84590
84591
|
}
|
|
@@ -85318,12 +85319,12 @@ function resolveSwiftPackages(options2) {
|
|
|
85318
85319
|
result.nativeProducts.push({ name: name3, packageDir: manifest.dir, source });
|
|
85319
85320
|
return result;
|
|
85320
85321
|
}
|
|
85321
|
-
var import_node_child_process48,
|
|
85322
|
+
var import_node_child_process48, import_node_crypto59, import_node_fs99, import_node_path100, import_promises9, import_node_util12, swiftBinaryOnDisk, SWIFT_PLACEHOLDER_PACKAGES, placeholderPackage, sourceFrameworkRecipes, UNSUPPORTED_NATIVE, BINARY, blockers, verified, execFileAsync2, checkoutKey;
|
|
85322
85323
|
var init_swift_packages = __esm({
|
|
85323
85324
|
"src/swift-packages.ts"() {
|
|
85324
85325
|
"use strict";
|
|
85325
85326
|
import_node_child_process48 = require("node:child_process");
|
|
85326
|
-
|
|
85327
|
+
import_node_crypto59 = require("node:crypto");
|
|
85327
85328
|
import_node_fs99 = __toESM(require("node:fs"), 1);
|
|
85328
85329
|
import_node_path100 = __toESM(require("node:path"), 1);
|
|
85329
85330
|
import_promises9 = require("node:timers/promises");
|
|
@@ -85433,7 +85434,7 @@ function sourceClosureFiles(srcDir, entrypoints, excludedFiles = []) {
|
|
|
85433
85434
|
return files2.sort();
|
|
85434
85435
|
}
|
|
85435
85436
|
function sourceClosureDigest(srcDir, entrypoints, excludedFiles) {
|
|
85436
|
-
const hash = (0,
|
|
85437
|
+
const hash = (0, import_node_crypto60.createHash)("sha256");
|
|
85437
85438
|
for (const file of sourceClosureFiles(srcDir, entrypoints, excludedFiles)) {
|
|
85438
85439
|
const key2 = import_node_path101.default.relative(srcDir, file);
|
|
85439
85440
|
const bytes = (0, import_node_fs100.readFileSync)(file);
|
|
@@ -85441,11 +85442,11 @@ function sourceClosureDigest(srcDir, entrypoints, excludedFiles) {
|
|
|
85441
85442
|
}
|
|
85442
85443
|
return hash.digest("hex");
|
|
85443
85444
|
}
|
|
85444
|
-
var
|
|
85445
|
+
var import_node_crypto60, import_node_fs100, import_node_path101, STANDIN_DIGEST_ENTRYPOINTS, SPECIFIER, standinSourceDigest, STANDIN_SOURCE_DIGEST;
|
|
85445
85446
|
var init_swift_standin_digest = __esm({
|
|
85446
85447
|
"src/swift-standin-digest.ts"() {
|
|
85447
85448
|
"use strict";
|
|
85448
|
-
|
|
85449
|
+
import_node_crypto60 = require("node:crypto");
|
|
85449
85450
|
import_node_fs100 = require("node:fs");
|
|
85450
85451
|
import_node_path101 = __toESM(require("node:path"), 1);
|
|
85451
85452
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
@@ -85991,7 +85992,7 @@ var init_genrule_library_builds = __esm({
|
|
|
85991
85992
|
function nativeFrameworkCompiler(moduleRoot, toolchainBin, directory2) {
|
|
85992
85993
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
85993
85994
|
const sdk2 = swiftSdkPaths(moduleRoot, toolchainBin);
|
|
85994
|
-
const identity2 = (0,
|
|
85995
|
+
const identity2 = (0, import_node_crypto61.createHash)("sha256").update(
|
|
85995
85996
|
JSON.stringify([
|
|
85996
85997
|
distribution?.id,
|
|
85997
85998
|
distribution?.link,
|
|
@@ -86017,7 +86018,7 @@ function nativeFrameworkCompiler(moduleRoot, toolchainBin, directory2) {
|
|
|
86017
86018
|
for (const alias of product.frameworkAliases) {
|
|
86018
86019
|
if (alias.wasmSdkId !== distribution.wasmSdkId || alias.wasmSdkChecksum !== distribution.wasmSdkChecksum)
|
|
86019
86020
|
throw new Error(`framework SDK identity differs for ${alias.name}`);
|
|
86020
|
-
if ((0,
|
|
86021
|
+
if ((0, import_node_crypto61.createHash)("sha256").update(import_node_fs103.default.readFileSync(import_node_path104.default.join(moduleRoot, alias.moduleMap))).digest("hex") !== alias.moduleMapSha256)
|
|
86021
86022
|
throw new Error(`framework module map changed ${alias.moduleMap}`);
|
|
86022
86023
|
const selected = /* @__PURE__ */ new Set();
|
|
86023
86024
|
const reach = (name3) => {
|
|
@@ -86058,7 +86059,7 @@ function nativeFrameworkCompiler(moduleRoot, toolchainBin, directory2) {
|
|
|
86058
86059
|
for (const alias of owner.frameworkAliases) {
|
|
86059
86060
|
if (frameworkResponses[alias.name])
|
|
86060
86061
|
throw new Error(`ambiguous declared framework ${alias.name}`);
|
|
86061
|
-
if ((0,
|
|
86062
|
+
if ((0, import_node_crypto61.createHash)("sha256").update(import_node_fs103.default.readFileSync(import_node_path104.default.join(sdkRoot, alias.moduleMap))).digest("hex") !== alias.moduleMapSha256)
|
|
86062
86063
|
throw new Error(`framework module map changed ${alias.moduleMap}`);
|
|
86063
86064
|
const file = import_node_path104.default.join(root, `${alias.name}.rsp`);
|
|
86064
86065
|
import_node_fs103.default.writeFileSync(file, aliasArtifacts.map(quote3).join("\n") + "\n");
|
|
@@ -86152,11 +86153,11 @@ exec ${shellQuote(configuration.compiler)} "$@"
|
|
|
86152
86153
|
};
|
|
86153
86154
|
return { cc: compiler("clang"), cxx: compiler("clang++"), identity: identity2 };
|
|
86154
86155
|
}
|
|
86155
|
-
var
|
|
86156
|
+
var import_node_crypto61, import_node_fs103, import_node_path104, v7;
|
|
86156
86157
|
var init_native_framework_compiler = __esm({
|
|
86157
86158
|
"src/native-framework-compiler.ts"() {
|
|
86158
86159
|
"use strict";
|
|
86159
|
-
|
|
86160
|
+
import_node_crypto61 = require("node:crypto");
|
|
86160
86161
|
import_node_fs103 = __toESM(require("node:fs"), 1);
|
|
86161
86162
|
import_node_path104 = __toESM(require("node:path"), 1);
|
|
86162
86163
|
v7 = __toESM(require("peachsim/vendor/valibot"), 1);
|
|
@@ -86186,7 +86187,7 @@ function llvmIdentity(toolchainBin, release) {
|
|
|
86186
86187
|
] : ["clang", "wasm-ld", "llvm-ar", "llvm-nm", "llvm-strip"].map(
|
|
86187
86188
|
(name3) => swiftFileChecksum(import_node_path105.default.join(toolchainBin, name3))
|
|
86188
86189
|
);
|
|
86189
|
-
const identity2 = (0,
|
|
86190
|
+
const identity2 = (0, import_node_crypto62.createHash)("sha256").update(JSON.stringify(components)).digest("hex");
|
|
86190
86191
|
toolIdentities.set(toolchainBin, identity2);
|
|
86191
86192
|
return identity2;
|
|
86192
86193
|
}
|
|
@@ -86194,7 +86195,7 @@ function cSdkIdentity(sysroot, resourceDir, frameworks) {
|
|
|
86194
86195
|
const key2 = JSON.stringify([sysroot, resourceDir, frameworks]);
|
|
86195
86196
|
const cached2 = sysrootIdentities.get(key2);
|
|
86196
86197
|
if (cached2) return cached2;
|
|
86197
|
-
const hash = (0,
|
|
86198
|
+
const hash = (0, import_node_crypto62.createHash)("sha256");
|
|
86198
86199
|
const add = (root, relative4) => {
|
|
86199
86200
|
const file = import_node_path105.default.join(root, relative4);
|
|
86200
86201
|
const stat = import_node_fs104.default.statSync(file, { throwIfNoEntry: false });
|
|
@@ -86229,7 +86230,7 @@ function frameworkProbeIdentity(moduleRoot, toolchainBin) {
|
|
|
86229
86230
|
import_node_fs104.default.readFileSync(import_node_path105.default.join(moduleRoot, SWIFT_FRAMEWORK_PRODUCT_FILE), "utf8")
|
|
86230
86231
|
)
|
|
86231
86232
|
);
|
|
86232
|
-
const hash = (0,
|
|
86233
|
+
const hash = (0, import_node_crypto62.createHash)("sha256").update(
|
|
86233
86234
|
JSON.stringify([
|
|
86234
86235
|
headers,
|
|
86235
86236
|
distribution.link,
|
|
@@ -86239,7 +86240,7 @@ function frameworkProbeIdentity(moduleRoot, toolchainBin) {
|
|
|
86239
86240
|
])
|
|
86240
86241
|
);
|
|
86241
86242
|
const objects = distribution.objects.map((file) => [file, distribution.files[file]]);
|
|
86242
|
-
const objectKey = (0,
|
|
86243
|
+
const objectKey = (0, import_node_crypto62.createHash)("sha256").update(JSON.stringify(objects)).digest("hex");
|
|
86243
86244
|
const cache = import_node_path105.default.join(cacheDir4, "framework-symbols-by-object", objectKey);
|
|
86244
86245
|
if (!import_node_fs104.default.existsSync(cache)) {
|
|
86245
86246
|
import_node_fs104.default.mkdirSync(import_node_path105.default.dirname(cache), { recursive: true });
|
|
@@ -86274,7 +86275,7 @@ function frameworkProbeIdentity(moduleRoot, toolchainBin) {
|
|
|
86274
86275
|
const digest3 = import_node_path105.default.join(temporary, "digest");
|
|
86275
86276
|
import_node_fs104.default.writeFileSync(
|
|
86276
86277
|
digest3,
|
|
86277
|
-
(0,
|
|
86278
|
+
(0, import_node_crypto62.createHash)("sha256").update(symbols.sort().join("\n")).digest("hex")
|
|
86278
86279
|
);
|
|
86279
86280
|
import_node_fs104.default.renameSync(digest3, cache);
|
|
86280
86281
|
} finally {
|
|
@@ -86329,7 +86330,7 @@ function buildable(declaration) {
|
|
|
86329
86330
|
return builderOf(declaration) !== null && declaration.dependencies.every(buildable);
|
|
86330
86331
|
}
|
|
86331
86332
|
function declarationInputs(declaration, builder, toolchain, dependencyKeys) {
|
|
86332
|
-
const hash = (0,
|
|
86333
|
+
const hash = (0, import_node_crypto62.createHash)("sha256");
|
|
86333
86334
|
const files2 = declaration.sources.filter(
|
|
86334
86335
|
(source) => !source.generator && !source.file.split(import_node_path105.default.sep).includes(".git")
|
|
86335
86336
|
).map((source) => import_node_path105.default.relative(declaration.packageDir, source.file));
|
|
@@ -86461,12 +86462,12 @@ function genruleArchive(declaration, library, moduleRoot) {
|
|
|
86461
86462
|
}
|
|
86462
86463
|
return combined;
|
|
86463
86464
|
}
|
|
86464
|
-
var import_node_child_process51,
|
|
86465
|
+
var import_node_child_process51, import_node_crypto62, import_node_fs104, import_node_os20, import_node_path105, v8, BUILDERS, cacheDir4, toolIdentities, sysrootIdentities, GENRULE_RECIPE, GENRULE_BUNDLE;
|
|
86465
86466
|
var init_genrule_archives = __esm({
|
|
86466
86467
|
"src/genrule-archives.ts"() {
|
|
86467
86468
|
"use strict";
|
|
86468
86469
|
import_node_child_process51 = require("node:child_process");
|
|
86469
|
-
|
|
86470
|
+
import_node_crypto62 = require("node:crypto");
|
|
86470
86471
|
import_node_fs104 = __toESM(require("node:fs"), 1);
|
|
86471
86472
|
import_node_os20 = __toESM(require("node:os"), 1);
|
|
86472
86473
|
import_node_path105 = __toESM(require("node:path"), 1);
|
|
@@ -86574,7 +86575,7 @@ function privateSentrySlice(entry, moduleRoot) {
|
|
|
86574
86575
|
function nativeSwiftSlice(standin, moduleRoot, generator, configured, artifact) {
|
|
86575
86576
|
if (standin.module !== SENTRY_SWIFT_SLICE.name) return standin;
|
|
86576
86577
|
const native = simulatorNativeLibrary(artifact());
|
|
86577
|
-
if (!native || (0,
|
|
86578
|
+
if (!native || (0, import_node_crypto63.createHash)("sha256").update(import_node_fs105.default.readFileSync(native.file)).digest("hex") !== SENTRY_SWIFT_SLICE.nativeSha256)
|
|
86578
86579
|
return standin;
|
|
86579
86580
|
if (configured)
|
|
86580
86581
|
throw new Error(
|
|
@@ -86632,12 +86633,12 @@ function nativeSwiftSlice(standin, moduleRoot, generator, configured, artifact)
|
|
|
86632
86633
|
}
|
|
86633
86634
|
};
|
|
86634
86635
|
}
|
|
86635
|
-
var import_node_child_process52,
|
|
86636
|
+
var import_node_child_process52, import_node_crypto63, import_node_fs105, import_node_os21, import_node_path106, SENTRY_SWIFT_SLICE;
|
|
86636
86637
|
var init_native_swift_slices = __esm({
|
|
86637
86638
|
"src/native-swift-slices.ts"() {
|
|
86638
86639
|
"use strict";
|
|
86639
86640
|
import_node_child_process52 = require("node:child_process");
|
|
86640
|
-
|
|
86641
|
+
import_node_crypto63 = require("node:crypto");
|
|
86641
86642
|
import_node_fs105 = __toESM(require("node:fs"), 1);
|
|
86642
86643
|
import_node_os21 = __toESM(require("node:os"), 1);
|
|
86643
86644
|
import_node_path106 = __toESM(require("node:path"), 1);
|
|
@@ -87325,7 +87326,7 @@ function treeDigest(root) {
|
|
|
87325
87326
|
}).join("\n");
|
|
87326
87327
|
const memo2 = digests.get(`tree\0${root}`);
|
|
87327
87328
|
if (memo2?.stamp === stamp) return memo2.digest;
|
|
87328
|
-
const hash = (0,
|
|
87329
|
+
const hash = (0, import_node_crypto64.createHash)("sha256");
|
|
87329
87330
|
for (const name3 of names) {
|
|
87330
87331
|
hash.update(`${name3}\0`);
|
|
87331
87332
|
hash.update(import_node_fs109.default.readFileSync(import_node_path109.default.join(root, name3)));
|
|
@@ -87372,7 +87373,7 @@ function swiftBinaryFramework(binary2) {
|
|
|
87372
87373
|
const found3 = locateXcframework(import_node_path109.default.join(dir, "tree"));
|
|
87373
87374
|
if (found3) return { dir: found3, digest: stored.sha };
|
|
87374
87375
|
}
|
|
87375
|
-
const sha2 = (0,
|
|
87376
|
+
const sha2 = (0, import_node_crypto64.createHash)("sha256").update(import_node_fs109.default.readFileSync(binary2.dir)).digest("hex");
|
|
87376
87377
|
if (sha2 !== stored?.sha || !locateXcframework(import_node_path109.default.join(dir, "tree"))) {
|
|
87377
87378
|
import_node_fs109.default.rmSync(dir, { recursive: true, force: true });
|
|
87378
87379
|
import_node_fs109.default.mkdirSync(import_node_path109.default.join(dir, "tree"), { recursive: true });
|
|
@@ -87384,7 +87385,7 @@ function swiftBinaryFramework(binary2) {
|
|
|
87384
87385
|
return { dir: found2, digest: sha2 };
|
|
87385
87386
|
}
|
|
87386
87387
|
if (stored && import_node_fs109.default.existsSync(archive)) {
|
|
87387
|
-
const sha2 = (0,
|
|
87388
|
+
const sha2 = (0, import_node_crypto64.createHash)("sha256").update(import_node_fs109.default.readFileSync(archive)).digest("hex");
|
|
87388
87389
|
if (sha2 !== expected)
|
|
87389
87390
|
throw new Error(`archive checksum ${sha2} is not the declared checksum ${expected}`);
|
|
87390
87391
|
const found2 = locateXcframework(import_node_path109.default.join(dir, "tree"));
|
|
@@ -87393,7 +87394,7 @@ function swiftBinaryFramework(binary2) {
|
|
|
87393
87394
|
import_node_fs109.default.rmSync(dir, { recursive: true, force: true });
|
|
87394
87395
|
import_node_fs109.default.mkdirSync(import_node_path109.default.join(dir, "tree"), { recursive: true });
|
|
87395
87396
|
exec("curl", ["-fsSL", "--retry", "2", "-o", archive, binary2.url]);
|
|
87396
|
-
const sha = (0,
|
|
87397
|
+
const sha = (0, import_node_crypto64.createHash)("sha256").update(import_node_fs109.default.readFileSync(archive)).digest("hex");
|
|
87397
87398
|
if (sha !== expected) {
|
|
87398
87399
|
import_node_fs109.default.rmSync(dir, { recursive: true, force: true });
|
|
87399
87400
|
throw new Error(`archive checksum ${sha} is not the declared checksum ${expected}`);
|
|
@@ -87518,7 +87519,7 @@ function binaryHeaderSearchPaths(binary2, root, workspaceRoot2, declaredFramewor
|
|
|
87518
87519
|
});
|
|
87519
87520
|
}
|
|
87520
87521
|
}
|
|
87521
|
-
const declaredDigest = (0,
|
|
87522
|
+
const declaredDigest = (0, import_node_crypto64.createHash)("sha256");
|
|
87522
87523
|
for (const framework of providedFrameworks)
|
|
87523
87524
|
declaredDigest.update(`provided/${import_node_path109.default.relative(artifact.dir, framework)}\0`);
|
|
87524
87525
|
for (const [framework, { declared: names, imports: imports2, sdkHeader }] of declared)
|
|
@@ -87588,7 +87589,7 @@ function binaryHeaderSearchPaths(binary2, root, workspaceRoot2, declaredFramewor
|
|
|
87588
87589
|
import_node_fs109.default.copyFileSync(surface.modulemap, modulemap);
|
|
87589
87590
|
}
|
|
87590
87591
|
}
|
|
87591
|
-
const contents2 = (0,
|
|
87592
|
+
const contents2 = (0, import_node_crypto64.createHash)("sha256");
|
|
87592
87593
|
for (const framework of providedFrameworks.filter((item) => !declared.has(item))) {
|
|
87593
87594
|
const modulemap = import_node_path109.default.join(
|
|
87594
87595
|
pending,
|
|
@@ -89003,7 +89004,7 @@ function crateSourceRoots(manifest, searchRoot) {
|
|
|
89003
89004
|
return roots;
|
|
89004
89005
|
}
|
|
89005
89006
|
function crateSourceDigest(manifest, searchRoot) {
|
|
89006
|
-
const hash = (0,
|
|
89007
|
+
const hash = (0, import_node_crypto64.createHash)("sha256");
|
|
89007
89008
|
const walk4 = (dir, root) => {
|
|
89008
89009
|
for (const entry of import_node_fs109.default.readdirSync(dir, { withFileTypes: true }).sort((left, right) => left.name < right.name ? -1 : 1)) {
|
|
89009
89010
|
const full = import_node_path109.default.join(dir, entry.name);
|
|
@@ -89450,7 +89451,7 @@ function standinGenerationInputs(binaries, toolchain, configuredBehavior = {}, s
|
|
|
89450
89451
|
...swiftSources.flags,
|
|
89451
89452
|
...swiftSources.sources.flatMap((source) => [
|
|
89452
89453
|
source,
|
|
89453
|
-
(0,
|
|
89454
|
+
(0, import_node_crypto64.createHash)("sha256").update(import_node_fs109.default.readFileSync(import_node_path109.default.join(binary2.dir, source))).digest("hex")
|
|
89454
89455
|
])
|
|
89455
89456
|
);
|
|
89456
89457
|
continue;
|
|
@@ -89486,7 +89487,7 @@ function standinGenerationInputs(binaries, toolchain, configuredBehavior = {}, s
|
|
|
89486
89487
|
);
|
|
89487
89488
|
}
|
|
89488
89489
|
}
|
|
89489
|
-
return (0,
|
|
89490
|
+
return (0, import_node_crypto64.createHash)("sha256").update(parts.join("\0")).digest("hex");
|
|
89490
89491
|
}
|
|
89491
89492
|
function missingArtifactGap(binary2) {
|
|
89492
89493
|
if (swiftBinaryOnDisk(binary2)) return null;
|
|
@@ -89568,7 +89569,7 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
89568
89569
|
return NO_IMPORTABLE_SURFACE;
|
|
89569
89570
|
}
|
|
89570
89571
|
const configured = new Map(Object.entries(behavior));
|
|
89571
|
-
const hash = (0,
|
|
89572
|
+
const hash = (0, import_node_crypto64.createHash)("sha256").update(
|
|
89572
89573
|
standinGenerationInputs([binary2], toolchain, behavior)
|
|
89573
89574
|
);
|
|
89574
89575
|
hash.update(digest3);
|
|
@@ -89808,7 +89809,7 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
|
|
|
89808
89809
|
);
|
|
89809
89810
|
if (binary2.moduleSources !== void 0)
|
|
89810
89811
|
frameworkInputs.push(
|
|
89811
|
-
`${binary2.target}\0${(0,
|
|
89812
|
+
`${binary2.target}\0${(0, import_node_crypto64.createHash)("sha256").update(
|
|
89812
89813
|
[iosSdkId(), ...swiftSources.flags, ...swiftSources.sources, ...texts].join(
|
|
89813
89814
|
"\0"
|
|
89814
89815
|
)
|
|
@@ -89849,7 +89850,7 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
|
|
|
89849
89850
|
import_node_fs109.default.mkdirSync(sourceFrameworks);
|
|
89850
89851
|
const frameworks = {
|
|
89851
89852
|
dirs: [...frameworkDirs, sourceFrameworks].sort(),
|
|
89852
|
-
digest: (0,
|
|
89853
|
+
digest: (0, import_node_crypto64.createHash)("sha256").update(frameworkInputs.sort().join("\0")).digest("hex"),
|
|
89853
89854
|
surfaces: frameworkSurfaces
|
|
89854
89855
|
};
|
|
89855
89856
|
const siblings = new Map(
|
|
@@ -89968,12 +89969,12 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
|
|
|
89968
89969
|
import_node_fs109.default.rmSync(modules, { recursive: true, force: true });
|
|
89969
89970
|
}
|
|
89970
89971
|
}
|
|
89971
|
-
var import_node_child_process54,
|
|
89972
|
+
var import_node_child_process54, import_node_crypto64, import_node_fs109, import_node_path109, TRIPLE, cacheDir5, key, digests, isBinaryLibraryFile, OBJC_IMPORT, files, OBJC, NO_IMPORTABLE_SURFACE, OBJC_ATTRIBUTE, TYPE_DECLARATION, OPTIONAL_REQUIREMENT, WASM_EH_FLAGS, OBJC_UNREPRESENTABLE, INERT_VALUE, identChar, RUST_TARGET, UNSEARCHED, RUST_TOOLCHAIN, built;
|
|
89972
89973
|
var init_swift_standins = __esm({
|
|
89973
89974
|
"src/swift-standins.ts"() {
|
|
89974
89975
|
"use strict";
|
|
89975
89976
|
import_node_child_process54 = require("node:child_process");
|
|
89976
|
-
|
|
89977
|
+
import_node_crypto64 = require("node:crypto");
|
|
89977
89978
|
import_node_fs109 = __toESM(require("node:fs"), 1);
|
|
89978
89979
|
import_node_path109 = __toESM(require("node:path"), 1);
|
|
89979
89980
|
init_forked_script_contract();
|
|
@@ -90005,7 +90006,7 @@ var init_swift_standins = __esm({
|
|
|
90005
90006
|
init_swiftTargetContract();
|
|
90006
90007
|
TRIPLE = SWIFT_WASM_TRIPLE;
|
|
90007
90008
|
cacheDir5 = import_node_path109.default.join(cacheDir(), "swift-standins");
|
|
90008
|
-
key = (...parts) => (0,
|
|
90009
|
+
key = (...parts) => (0, import_node_crypto64.createHash)("sha256").update(parts.join("\0")).digest("hex").slice(0, 32);
|
|
90009
90010
|
digests = /* @__PURE__ */ new Map();
|
|
90010
90011
|
isBinaryLibraryFile = (file) => /\.(?:a|dylib|o|tbd)$/i.test(file);
|
|
90011
90012
|
OBJC_IMPORT = /#\s*(?:import|include)\s*[<"](?:[\w+-]+\/)?([\w+.-]+\.h)[>"]/g;
|
|
@@ -90243,14 +90244,14 @@ function* xcodeObjCInputSteps(app, binaries, moduleRoot, products, sourceRoot =
|
|
|
90243
90244
|
Infinity
|
|
90244
90245
|
);
|
|
90245
90246
|
const backport = DOUBLE_CONVERSION_WASM64_BACKPORT;
|
|
90246
|
-
if (import_node_path110.default.basename(file) !== "utils.h" || (0,
|
|
90247
|
+
if (import_node_path110.default.basename(file) !== "utils.h" || (0, import_node_crypto65.createHash)("sha256").update(bytes).digest("hex") !== backport.originalSha256) {
|
|
90247
90248
|
sources.set(file, bytes);
|
|
90248
90249
|
return;
|
|
90249
90250
|
}
|
|
90250
90251
|
const derived = Buffer.from(
|
|
90251
90252
|
bytes.toString("utf8").replace(backport.before, backport.after)
|
|
90252
90253
|
);
|
|
90253
|
-
if ((0,
|
|
90254
|
+
if ((0, import_node_crypto65.createHash)("sha256").update(derived).digest("hex") !== backport.derivedSha256)
|
|
90254
90255
|
throw new Error(`DoubleConversion backport derived source differs: ${file}`);
|
|
90255
90256
|
sources.set(file, derived);
|
|
90256
90257
|
derivations[file] = {
|
|
@@ -90656,7 +90657,7 @@ function prepareXcodeSwiftProducts(app, binaries, moduleRoot) {
|
|
|
90656
90657
|
const staged = withFrameworkCompanionImports(original);
|
|
90657
90658
|
if (staged !== original) sources.set(file, Buffer.from(staged));
|
|
90658
90659
|
}
|
|
90659
|
-
const digest3 = (bytes) => (0,
|
|
90660
|
+
const digest3 = (bytes) => (0, import_node_crypto65.createHash)("sha256").update(bytes).digest("hex");
|
|
90660
90661
|
const providers = /* @__PURE__ */ new Map();
|
|
90661
90662
|
for (const target of targets) {
|
|
90662
90663
|
if (!supplied.has(target.moduleName)) continue;
|
|
@@ -91010,7 +91011,7 @@ async function prepareXcodeNativeInputs(app, binaries, moduleRoot, purpose) {
|
|
|
91010
91011
|
products
|
|
91011
91012
|
);
|
|
91012
91013
|
const checkouts = remoteSwiftCheckouts(app.rootDir);
|
|
91013
|
-
const digest3 = (bytes) => (0,
|
|
91014
|
+
const digest3 = (bytes) => (0, import_node_crypto65.createHash)("sha256").update(bytes).digest("hex");
|
|
91014
91015
|
const inputs2 = Object.fromEntries(
|
|
91015
91016
|
[...sources].map(([file, bytes]) => [file, digest3(bytes)])
|
|
91016
91017
|
);
|
|
@@ -91374,12 +91375,12 @@ ${reported.trimEnd() || `Clang exited with status ${result.status}`}`;
|
|
|
91374
91375
|
import_node_fs110.default.closeSync(descriptor);
|
|
91375
91376
|
}
|
|
91376
91377
|
}
|
|
91377
|
-
var import_node_child_process55,
|
|
91378
|
+
var import_node_child_process55, import_node_crypto65, import_node_fs110, import_node_path110, SwiftObjCCompilationError, isDirectory4, isSdkInclude, FRAMEWORK_IMPORT, OWN_IMPORT;
|
|
91378
91379
|
var init_swift_objc_compile = __esm({
|
|
91379
91380
|
"src/swift-objc-compile.ts"() {
|
|
91380
91381
|
"use strict";
|
|
91381
91382
|
import_node_child_process55 = require("node:child_process");
|
|
91382
|
-
|
|
91383
|
+
import_node_crypto65 = require("node:crypto");
|
|
91383
91384
|
import_node_fs110 = __toESM(require("node:fs"), 1);
|
|
91384
91385
|
import_node_path110 = __toESM(require("node:path"), 1);
|
|
91385
91386
|
init_mapLimit();
|
|
@@ -91439,7 +91440,7 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
|
|
|
91439
91440
|
(binary2) => binary2.publicHeaders === void 0 && binary2.placeholder === void 0 && swiftBinaryOnDisk(binary2) && binaryHeaderSearchPaths(binary2, staged, app.rootDir).headers.length === 1
|
|
91440
91441
|
))
|
|
91441
91442
|
return [...binaries];
|
|
91442
|
-
const hash = (0,
|
|
91443
|
+
const hash = (0, import_node_crypto66.createHash)("sha256");
|
|
91443
91444
|
hash.update(
|
|
91444
91445
|
JSON.stringify([
|
|
91445
91446
|
inputs2.targets,
|
|
@@ -91648,12 +91649,12 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
|
|
|
91648
91649
|
);
|
|
91649
91650
|
return result;
|
|
91650
91651
|
}
|
|
91651
|
-
var import_node_child_process56,
|
|
91652
|
+
var import_node_child_process56, import_node_crypto66, import_node_fs111, import_node_path111, cachedInputs;
|
|
91652
91653
|
var init_swift_cxx_reachable = __esm({
|
|
91653
91654
|
"src/swift-cxx-reachable.ts"() {
|
|
91654
91655
|
"use strict";
|
|
91655
91656
|
import_node_child_process56 = require("node:child_process");
|
|
91656
|
-
|
|
91657
|
+
import_node_crypto66 = require("node:crypto");
|
|
91657
91658
|
import_node_fs111 = __toESM(require("node:fs"), 1);
|
|
91658
91659
|
import_node_path111 = __toESM(require("node:path"), 1);
|
|
91659
91660
|
init_is_record();
|
|
@@ -91971,7 +91972,7 @@ async function wasmPortableAssembly(binaries, toolchainBin, moduleRoot) {
|
|
|
91971
91972
|
const clang = import_node_path113.default.join(toolchainBin, "clang");
|
|
91972
91973
|
const empty = (binary2, file) => {
|
|
91973
91974
|
const source = import_node_path113.default.join(binary2.dir, file);
|
|
91974
|
-
const key2 = (0,
|
|
91975
|
+
const key2 = (0, import_node_crypto67.createHash)("sha256").update(
|
|
91975
91976
|
JSON.stringify([
|
|
91976
91977
|
clang,
|
|
91977
91978
|
sdk2.sysroot,
|
|
@@ -92016,7 +92017,7 @@ async function wasmPortableAssembly(binaries, toolchainBin, moduleRoot) {
|
|
|
92016
92017
|
return new Set(portable.flat());
|
|
92017
92018
|
}
|
|
92018
92019
|
async function swiftPackages(entry, app) {
|
|
92019
|
-
const stamp = (file) => import_node_fs113.default.existsSync(file) ? (0,
|
|
92020
|
+
const stamp = (file) => import_node_fs113.default.existsSync(file) ? (0, import_node_crypto67.createHash)("sha256").update(import_node_fs113.default.readFileSync(file)).digest("hex") : null;
|
|
92020
92021
|
const owners = [...app.frameworks, app].map((target) => ({
|
|
92021
92022
|
module: target.moduleName,
|
|
92022
92023
|
products: target.packageProducts ?? []
|
|
@@ -93179,7 +93180,7 @@ async function buildSwiftResourceTable(project2, baseUrl, inputs2) {
|
|
|
93179
93180
|
const source = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true }).decode(
|
|
93180
93181
|
bytes
|
|
93181
93182
|
);
|
|
93182
|
-
const sha2565 = (0,
|
|
93183
|
+
const sha2565 = (0, import_node_crypto67.createHash)("sha256").update(bytes).digest("hex");
|
|
93183
93184
|
const bundle = swiftResourceBundleForFile(bundles, key2);
|
|
93184
93185
|
if (!bundle && inputs2["Package.swift"])
|
|
93185
93186
|
throw new Error(`metal source ${key2} has no resource target bundle`);
|
|
@@ -93202,7 +93203,7 @@ async function buildSwiftResourceTable(project2, baseUrl, inputs2) {
|
|
|
93202
93203
|
const bytes = readPackageFile2(project2.packagePath, disk, limits.imageBytes);
|
|
93203
93204
|
pdfs.set(file, {
|
|
93204
93205
|
file: disk,
|
|
93205
|
-
sha256: (0,
|
|
93206
|
+
sha256: (0, import_node_crypto67.createHash)("sha256").update(bytes).digest("hex")
|
|
93206
93207
|
});
|
|
93207
93208
|
}
|
|
93208
93209
|
const pdfRasters = rasterizePdfFiles([...pdfs.values()], limits);
|
|
@@ -93248,7 +93249,7 @@ async function buildSwiftResourceTable(project2, baseUrl, inputs2) {
|
|
|
93248
93249
|
throw new Error("swift image pack exceeds the compile service caps");
|
|
93249
93250
|
}
|
|
93250
93251
|
imageBytes += bytes.length;
|
|
93251
|
-
const hash = (0,
|
|
93252
|
+
const hash = (0, import_node_crypto67.createHash)("sha256").update(bytes).digest("hex").slice(0, 16);
|
|
93252
93253
|
const bundle = table[bundlePath] ?? /* @__PURE__ */ Object.create(null);
|
|
93253
93254
|
const pixelSize = ext === ".png" ? readPngDimensions(bytes) : null;
|
|
93254
93255
|
const variant2 = {
|
|
@@ -93555,7 +93556,7 @@ function updateSwiftConfigStamp(hash, packagePath) {
|
|
|
93555
93556
|
hash.update(JSON.stringify(gates.map((name3) => swiftWasm64PlatformGates[name3])));
|
|
93556
93557
|
}
|
|
93557
93558
|
function sourceStamp(packagePath, moduleRootOverride, hosted = false) {
|
|
93558
|
-
const hash = (0,
|
|
93559
|
+
const hash = (0, import_node_crypto67.createHash)("sha256");
|
|
93559
93560
|
hash.update(packagePath);
|
|
93560
93561
|
updateSwiftConfigStamp(hash, packagePath);
|
|
93561
93562
|
const libraries = projects().get(packagePath)?.libraries;
|
|
@@ -93584,7 +93585,7 @@ function sourceStamp(packagePath, moduleRootOverride, hosted = false) {
|
|
|
93584
93585
|
return hash.digest("hex").slice(0, 16);
|
|
93585
93586
|
}
|
|
93586
93587
|
function sourceContentStamp(packagePath, moduleRootOverride) {
|
|
93587
|
-
const hash = (0,
|
|
93588
|
+
const hash = (0, import_node_crypto67.createHash)("sha256");
|
|
93588
93589
|
hash.update(compilerSourceDigest);
|
|
93589
93590
|
updateSwiftConfigStamp(hash, packagePath);
|
|
93590
93591
|
const libraries = projects().get(packagePath)?.libraries;
|
|
@@ -93616,7 +93617,7 @@ function moduleStamp(packagePath, moduleRootOverride, hosted) {
|
|
|
93616
93617
|
(root) => import_node_fs113.default.existsSync(import_node_path113.default.join(root, "toolchain.json"))
|
|
93617
93618
|
);
|
|
93618
93619
|
if (!moduleRoot) return "";
|
|
93619
|
-
const hash = (0,
|
|
93620
|
+
const hash = (0, import_node_crypto67.createHash)("sha256");
|
|
93620
93621
|
hash.update(moduleRoot);
|
|
93621
93622
|
for (const relative4 of swiftModuleInputFiles(moduleRoot)) {
|
|
93622
93623
|
hash.update(relative4);
|
|
@@ -93626,7 +93627,7 @@ function moduleStamp(packagePath, moduleRootOverride, hosted) {
|
|
|
93626
93627
|
}
|
|
93627
93628
|
function otherInputs(input, standalone) {
|
|
93628
93629
|
const { files: _files, ...rest } = input;
|
|
93629
|
-
return (0,
|
|
93630
|
+
return (0, import_node_crypto67.createHash)("sha256").update(JSON.stringify({ ...rest, standalone })).digest("hex");
|
|
93630
93631
|
}
|
|
93631
93632
|
function icuUrl(origin, artifact) {
|
|
93632
93633
|
return "url" in artifact.icu ? artifact.icu.url : `${origin}${ICU_PATH}${swiftIcuAddress(artifact.icu)}`;
|
|
@@ -93641,7 +93642,7 @@ function standinLibraries(binaries, standins, rootDir, toolchain, rustWasm64) {
|
|
|
93641
93642
|
for (const standin of standins) {
|
|
93642
93643
|
if (!standin.prebuilt) continue;
|
|
93643
93644
|
const bytes = Buffer.from(standin.prebuilt.library, "base64");
|
|
93644
|
-
const digest3 = (0,
|
|
93645
|
+
const digest3 = (0, import_node_crypto67.createHash)("sha256").update(bytes).digest("hex");
|
|
93645
93646
|
const dir = import_node_path113.default.join(swiftCacheDir(), "native-archives", digest3);
|
|
93646
93647
|
import_node_fs113.default.mkdirSync(dir, { recursive: true });
|
|
93647
93648
|
const library = import_node_path113.default.join(dir, `lib${standin.module}.a`);
|
|
@@ -93972,7 +93973,7 @@ function swiftBuildRoot(packagePath, moduleRoot) {
|
|
|
93972
93973
|
return import_node_path113.default.join(
|
|
93973
93974
|
swiftCacheDir(),
|
|
93974
93975
|
"swift-builds",
|
|
93975
|
-
(0,
|
|
93976
|
+
(0, import_node_crypto67.createHash)("sha256").update(`${compilerKey}\0${buildKeyPath}`).digest("hex").slice(0, 16)
|
|
93976
93977
|
);
|
|
93977
93978
|
}
|
|
93978
93979
|
function installedWorkspaceInput(packagePath, entry, moduleRoot) {
|
|
@@ -94274,7 +94275,7 @@ async function fetchSwiftDyldTable(moduleUrl, module2, signal) {
|
|
|
94274
94275
|
const response = await fetch(url, { signal });
|
|
94275
94276
|
if (!response.ok) throw new Error(`swift compile: ${url} answered ${response.status}`);
|
|
94276
94277
|
const bytes = Buffer.from(await response.arrayBuffer());
|
|
94277
|
-
if (bytes.length !== byteLength || (0,
|
|
94278
|
+
if (bytes.length !== byteLength || (0, import_node_crypto67.createHash)("sha256").update(bytes).digest("hex") !== sha2565)
|
|
94278
94279
|
throw new Error(`swift compile: ${url} does not match its module's index`);
|
|
94279
94280
|
return { dyldTable: { sha256: sha2565, bytes } };
|
|
94280
94281
|
}
|
|
@@ -94352,13 +94353,13 @@ function swiftArtifactIsAvailable(origin, url, hash) {
|
|
|
94352
94353
|
(project2) => project2.artifacts.some((artifact) => artifact.hash === hash)
|
|
94353
94354
|
);
|
|
94354
94355
|
}
|
|
94355
|
-
var import_node_async_hooks2, import_node_child_process58,
|
|
94356
|
+
var import_node_async_hooks2, import_node_child_process58, import_node_crypto67, import_node_fs113, import_node_os23, import_node_path113, ARTIFACT_PATH, RESOURCE_PATH, ICU_PATH, SKIP_ROOT_DIRS, NATIVE_DESCRIPTOR, NATIVE_GLUE, SwiftMissingModulesError, 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;
|
|
94356
94357
|
var init_swift_host = __esm({
|
|
94357
94358
|
"src/swift-host.ts"() {
|
|
94358
94359
|
"use strict";
|
|
94359
94360
|
import_node_async_hooks2 = require("node:async_hooks");
|
|
94360
94361
|
import_node_child_process58 = require("node:child_process");
|
|
94361
|
-
|
|
94362
|
+
import_node_crypto67 = require("node:crypto");
|
|
94362
94363
|
import_node_fs113 = __toESM(require("node:fs"), 1);
|
|
94363
94364
|
import_node_os23 = __toESM(require("node:os"), 1);
|
|
94364
94365
|
import_node_path113 = __toESM(require("node:path"), 1);
|
|
@@ -94911,7 +94912,7 @@ function hashTree(root) {
|
|
|
94911
94912
|
for (const entry of import_node_fs116.default.readdirSync(root, { recursive: true, withFileTypes: true })) {
|
|
94912
94913
|
if (!entry.isFile()) continue;
|
|
94913
94914
|
const file = import_node_path116.default.join(entry.parentPath, entry.name);
|
|
94914
|
-
hashes[import_node_path116.default.relative(root, file).split(import_node_path116.default.sep).join("/")] = (0,
|
|
94915
|
+
hashes[import_node_path116.default.relative(root, file).split(import_node_path116.default.sep).join("/")] = (0, import_node_crypto68.createHash)("sha256").update(import_node_fs116.default.readFileSync(file)).digest("hex");
|
|
94915
94916
|
}
|
|
94916
94917
|
return Object.fromEntries(Object.entries(hashes).sort(([a], [b]) => a < b ? -1 : 1));
|
|
94917
94918
|
}
|
|
@@ -94961,12 +94962,12 @@ async function runInstalledTurboCodegen(appRoot, outDir, signal) {
|
|
|
94961
94962
|
files: hashTree(generatedRoot)
|
|
94962
94963
|
};
|
|
94963
94964
|
}
|
|
94964
|
-
var import_node_child_process59,
|
|
94965
|
+
var import_node_child_process59, import_node_crypto68, import_node_fs116, import_node_module13, import_node_path116, import_node_util13, run10, RENDERER_PODS, RENDERER_PODS_VERSIONED, COMPILED_SOURCE, LEGACY_BRIDGE_DEV_SUPPORT, LEGACY_BRIDGE_PODS, LEGACY_BRIDGE_PODS_VERSIONED;
|
|
94965
94966
|
var init_turbo_codegen_intake = __esm({
|
|
94966
94967
|
"src/turbo-codegen-intake.ts"() {
|
|
94967
94968
|
"use strict";
|
|
94968
94969
|
import_node_child_process59 = require("node:child_process");
|
|
94969
|
-
|
|
94970
|
+
import_node_crypto68 = require("node:crypto");
|
|
94970
94971
|
import_node_fs116 = __toESM(require("node:fs"), 1);
|
|
94971
94972
|
import_node_module13 = require("node:module");
|
|
94972
94973
|
import_node_path116 = __toESM(require("node:path"), 1);
|
|
@@ -98806,11 +98807,11 @@ extern "C" __attribute__((export_name("peach_fabric_component_names"))) const ch
|
|
|
98806
98807
|
}
|
|
98807
98808
|
`;
|
|
98808
98809
|
}
|
|
98809
|
-
var
|
|
98810
|
+
var import_node_crypto69, import_node_fs117, import_node_path117, TURBO_CORE_TARGET, TURBO_FMT_TARGET, TURBO_ENTRY_HEADER, TURBO_CORE_PUBLIC_HEADERS, REGISTRATION, CODEGEN_OBJC, UNIT, HEADER5, OBJC2, OBJC_TURBO, OBJC_BRIDGE, OBJC_REGISTERED, REACT_NATIVE_UNITS, REACT_NATIVE_INCLUDE_ROOTS, REACT_NATIVE_OBJC_UNITS, REACT_NATIVE_OBJC_VERSIONED_UNITS, REACT_NATIVE_HEADER_DIRS, REACT_NATIVE_BARE_HEADER_DIRS, DECLARED_MODULE_NAME, EXPORTED_MODULE, sha2564, podspecList, versionParts, iosOf, JS_CALL_INVOKER, FABRIC_HOST_INCLUDES, FABRIC_HOST_PAPER_INCLUDES, PAPER_UIKIT_BRIDGE_SWIFT;
|
|
98810
98811
|
var init_turbo_source = __esm({
|
|
98811
98812
|
"src/turbo-source.ts"() {
|
|
98812
98813
|
"use strict";
|
|
98813
|
-
|
|
98814
|
+
import_node_crypto69 = require("node:crypto");
|
|
98814
98815
|
import_node_fs117 = __toESM(require("node:fs"), 1);
|
|
98815
98816
|
import_node_path117 = __toESM(require("node:path"), 1);
|
|
98816
98817
|
init_cocoapods_trunk();
|
|
@@ -98938,7 +98939,7 @@ var init_turbo_source = __esm({
|
|
|
98938
98939
|
];
|
|
98939
98940
|
DECLARED_MODULE_NAME = /\bName\(\s*"(\w+)"\s*\)/g;
|
|
98940
98941
|
EXPORTED_MODULE = /\bRCT_(?:EXPORT_MODULE(?:_NO_LOAD)?|EXTERN_MODULE)\s*\(\s*(\w*)/g;
|
|
98941
|
-
sha2564 = (data) => (0,
|
|
98942
|
+
sha2564 = (data) => (0, import_node_crypto69.createHash)("sha256").update(data).digest("hex");
|
|
98942
98943
|
podspecList = podspecAttribute;
|
|
98943
98944
|
versionParts = (version2) => version2.split(/[.-]/).map((p) => Number(p) || 0);
|
|
98944
98945
|
iosOf = (member) => object6(member.ios) ? member.ios : null;
|
|
@@ -99732,7 +99733,7 @@ function retainInstalledReactNativeDeclarations(snapshot, options2, skipped) {
|
|
|
99732
99733
|
}
|
|
99733
99734
|
async function prepareTurboCompileInput(options2) {
|
|
99734
99735
|
await prepareTurboSourceDependencies(options2.reactNativeRoot);
|
|
99735
|
-
const key2 = (0,
|
|
99736
|
+
const key2 = (0, import_node_crypto70.createHash)("sha256").update(options2.providers.map(({ root }) => import_node_fs118.default.realpathSync(root)).join("\0")).update("\0").update(import_node_fs118.default.realpathSync(options2.moduleRoot)).digest("hex");
|
|
99736
99737
|
const scratch2 = import_node_path118.default.join(import_node_os24.default.tmpdir(), "peach-turbo-swift", key2);
|
|
99737
99738
|
import_node_fs118.default.mkdirSync(scratch2, { recursive: true });
|
|
99738
99739
|
const codegenDir = import_node_fs118.default.mkdtempSync(import_node_path118.default.join(scratch2, "codegen-"));
|
|
@@ -99933,11 +99934,11 @@ async function compileTurboModule(options2) {
|
|
|
99933
99934
|
collection
|
|
99934
99935
|
};
|
|
99935
99936
|
}
|
|
99936
|
-
var
|
|
99937
|
+
var import_node_crypto70, import_node_fs118, import_node_module14, import_node_os24, import_node_path118;
|
|
99937
99938
|
var init_turbo_compile = __esm({
|
|
99938
99939
|
"src/turbo-compile.ts"() {
|
|
99939
99940
|
"use strict";
|
|
99940
|
-
|
|
99941
|
+
import_node_crypto70 = require("node:crypto");
|
|
99941
99942
|
import_node_fs118 = __toESM(require("node:fs"), 1);
|
|
99942
99943
|
import_node_module14 = require("node:module");
|
|
99943
99944
|
import_node_os24 = __toESM(require("node:os"), 1);
|
|
@@ -100154,8 +100155,8 @@ function reactNativeCoreEntry(reactNativeRoot, moduleRoot, mode) {
|
|
|
100154
100155
|
);
|
|
100155
100156
|
if (!isRecord(manifest) || typeof manifest.version !== "string")
|
|
100156
100157
|
throw new Error(`${reactNativeRoot}: react-native has no version`);
|
|
100157
|
-
const headers = (0,
|
|
100158
|
-
const sources = (0,
|
|
100158
|
+
const headers = (0, import_node_crypto71.createHash)("sha256");
|
|
100159
|
+
const sources = (0, import_node_crypto71.createHash)("sha256");
|
|
100159
100160
|
const walk4 = (relative4) => {
|
|
100160
100161
|
for (const file of import_node_fs120.default.readdirSync(import_node_path120.default.join(reactNativeRoot, relative4), { withFileTypes: true }).sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0)) {
|
|
100161
100162
|
if (file.name === "node_modules" || file.name.startsWith(".")) continue;
|
|
@@ -100262,7 +100263,7 @@ function linkReactNativeCore(collection, core, moduleRoot) {
|
|
|
100262
100263
|
const file = import_node_path120.default.join(
|
|
100263
100264
|
cacheDir(),
|
|
100264
100265
|
"native-archives",
|
|
100265
|
-
`${(0,
|
|
100266
|
+
`${(0, import_node_crypto71.createHash)("sha256").update(data).digest("hex")}.a`
|
|
100266
100267
|
);
|
|
100267
100268
|
import_node_fs120.default.mkdirSync(import_node_path120.default.dirname(file), { recursive: true });
|
|
100268
100269
|
if (!import_node_fs120.default.existsSync(file)) import_node_fs120.default.writeFileSync(file, Buffer.from(data, "base64"));
|
|
@@ -100272,11 +100273,11 @@ function linkReactNativeCore(collection, core, moduleRoot) {
|
|
|
100272
100273
|
}
|
|
100273
100274
|
}
|
|
100274
100275
|
}
|
|
100275
|
-
var
|
|
100276
|
+
var import_node_crypto71, import_node_fs120, import_node_module15, import_node_path120, import_node_util14, recipe, strings3, building;
|
|
100276
100277
|
var init_react_native_core = __esm({
|
|
100277
100278
|
"src/react-native-core.ts"() {
|
|
100278
100279
|
"use strict";
|
|
100279
|
-
|
|
100280
|
+
import_node_crypto71 = require("node:crypto");
|
|
100280
100281
|
import_node_fs120 = __toESM(require("node:fs"), 1);
|
|
100281
100282
|
import_node_module15 = require("node:module");
|
|
100282
100283
|
import_node_path120 = __toESM(require("node:path"), 1);
|
|
@@ -100306,11 +100307,11 @@ async function trunkSpecification(lockFile, root, version2, checksum) {
|
|
|
100306
100307
|
"specifications",
|
|
100307
100308
|
`${checksum}.json`
|
|
100308
100309
|
);
|
|
100309
|
-
const sha1 = (value) => (0,
|
|
100310
|
+
const sha1 = (value) => (0, import_node_crypto72.createHash)("sha1").update(value).digest("hex");
|
|
100310
100311
|
let text7;
|
|
100311
100312
|
if (import_node_fs121.default.existsSync(file)) text7 = import_node_fs121.default.readFileSync(file, "utf8");
|
|
100312
100313
|
else {
|
|
100313
|
-
const shard2 = (0,
|
|
100314
|
+
const shard2 = (0, import_node_crypto72.createHash)("md5").update(root).digest("hex").slice(0, 3).split("").join("/");
|
|
100314
100315
|
const specPath = `Specs/${shard2}/${root}/${version2}/${root}.podspec.json`;
|
|
100315
100316
|
const response = await fetch(`https://cdn.cocoapods.org/${specPath}`);
|
|
100316
100317
|
if (!response.ok)
|
|
@@ -100439,7 +100440,7 @@ async function collectSwiftSourcePods(lockFile, modules, moduleRoot, headerModul
|
|
|
100439
100440
|
"end",
|
|
100440
100441
|
""
|
|
100441
100442
|
].join("\n");
|
|
100442
|
-
const key2 = (0,
|
|
100443
|
+
const key2 = (0, import_node_crypto72.createHash)("sha256").update(project).update(podfile).update(JSON.stringify([...selected].sort(([a], [b]) => a.localeCompare(b)))).update(
|
|
100443
100444
|
JSON.stringify(
|
|
100444
100445
|
Object.entries(specificationChecksums).sort(([a], [b]) => a.localeCompare(b))
|
|
100445
100446
|
)
|
|
@@ -100508,11 +100509,11 @@ async function collectSwiftSourcePods(lockFile, modules, moduleRoot, headerModul
|
|
|
100508
100509
|
);
|
|
100509
100510
|
});
|
|
100510
100511
|
}
|
|
100511
|
-
var
|
|
100512
|
+
var import_node_crypto72, import_node_fs121, import_node_path121, APP, record4, project, podModuleName;
|
|
100512
100513
|
var init_swift_source_pods = __esm({
|
|
100513
100514
|
"src/swift-source-pods.ts"() {
|
|
100514
100515
|
"use strict";
|
|
100515
|
-
|
|
100516
|
+
import_node_crypto72 = require("node:crypto");
|
|
100516
100517
|
import_node_fs121 = __toESM(require("node:fs"), 1);
|
|
100517
100518
|
import_node_path121 = __toESM(require("node:path"), 1);
|
|
100518
100519
|
init_browser();
|
|
@@ -101189,7 +101190,7 @@ async function prepareNitroCompileInput(options2) {
|
|
|
101189
101190
|
input.libraries ??= {};
|
|
101190
101191
|
input.libraries[nitroProviderTarget({ name: name3 })] = library;
|
|
101191
101192
|
}
|
|
101192
|
-
const key2 = (0,
|
|
101193
|
+
const key2 = (0, import_node_crypto73.createHash)("sha256").update(
|
|
101193
101194
|
collection.providers.map(({ root, hybridObjects }) => `${root}\0${hybridObjects.join(",")}`).join("\0")
|
|
101194
101195
|
).update("\0").update(import_node_fs122.default.realpathSync(options2.moduleRoot)).update("\0").update(options2.configuration).digest("hex");
|
|
101195
101196
|
const packagePath = import_node_path122.default.join(import_node_os25.default.tmpdir(), "peach-nitro-swift", key2, `p${process.pid}`);
|
|
@@ -101246,11 +101247,11 @@ function nitrogenGeneratedSources(podDirectory) {
|
|
|
101246
101247
|
...sources(import_node_path122.default.join(generated, "ios"), /\.(h|hpp|c|cpp|mm|swift)$/)
|
|
101247
101248
|
];
|
|
101248
101249
|
}
|
|
101249
|
-
var
|
|
101250
|
+
var import_node_crypto73, import_node_fs122, import_node_os25, import_node_path122, BUNDLED_CXX_NAMESPACES, REACT_INCLUDE_PATTERN, REACT_LINKING_PATTERN, REACT_VERSION_PATTERN, RN_HEADER_DIR_MAP, RN_COMMON_ROOTS;
|
|
101250
101251
|
var init_nitro_compile = __esm({
|
|
101251
101252
|
"src/nitro-compile.ts"() {
|
|
101252
101253
|
"use strict";
|
|
101253
|
-
|
|
101254
|
+
import_node_crypto73 = require("node:crypto");
|
|
101254
101255
|
import_node_fs122 = __toESM(require("node:fs"), 1);
|
|
101255
101256
|
import_node_os25 = __toESM(require("node:os"), 1);
|
|
101256
101257
|
import_node_path122 = __toESM(require("node:path"), 1);
|
|
@@ -101327,11 +101328,11 @@ var init_nitro_compile = __esm({
|
|
|
101327
101328
|
});
|
|
101328
101329
|
|
|
101329
101330
|
// src/nitro-compiler-digest.ts
|
|
101330
|
-
var
|
|
101331
|
+
var import_node_crypto74, import_node_fs123, import_node_path123;
|
|
101331
101332
|
var init_nitro_compiler_digest = __esm({
|
|
101332
101333
|
"src/nitro-compiler-digest.ts"() {
|
|
101333
101334
|
"use strict";
|
|
101334
|
-
|
|
101335
|
+
import_node_crypto74 = require("node:crypto");
|
|
101335
101336
|
import_node_fs123 = require("node:fs");
|
|
101336
101337
|
import_node_path123 = __toESM(require("node:path"), 1);
|
|
101337
101338
|
init_swift_compiler_digest();
|
|
@@ -101352,7 +101353,7 @@ function hashPackageTree(root, options2) {
|
|
|
101352
101353
|
}
|
|
101353
101354
|
};
|
|
101354
101355
|
walk4(root, "");
|
|
101355
|
-
const hash = (0,
|
|
101356
|
+
const hash = (0, import_node_crypto75.createHash)("sha256");
|
|
101356
101357
|
return (async () => {
|
|
101357
101358
|
for (let start = 0; start < files2.length; start += READ_AHEAD) {
|
|
101358
101359
|
const batch = files2.slice(start, start + READ_AHEAD);
|
|
@@ -101367,11 +101368,11 @@ function packageTreeDigest(root) {
|
|
|
101367
101368
|
compareNames: (left, right) => left.localeCompare(right)
|
|
101368
101369
|
});
|
|
101369
101370
|
}
|
|
101370
|
-
var
|
|
101371
|
+
var import_node_crypto75, import_node_fs124, import_promises11, import_node_path124, READ_AHEAD;
|
|
101371
101372
|
var init_package_tree_digest = __esm({
|
|
101372
101373
|
"src/package-tree-digest.ts"() {
|
|
101373
101374
|
"use strict";
|
|
101374
|
-
|
|
101375
|
+
import_node_crypto75 = require("node:crypto");
|
|
101375
101376
|
import_node_fs124 = require("node:fs");
|
|
101376
101377
|
import_promises11 = require("node:fs/promises");
|
|
101377
101378
|
import_node_path124 = require("node:path");
|
|
@@ -102282,7 +102283,7 @@ async function compilePreparedOneSDKApp(appRoot, preparedRoot, origin, moduleRoo
|
|
|
102282
102283
|
const packagePath = import_node_path127.default.join(
|
|
102283
102284
|
swiftCacheDir(),
|
|
102284
102285
|
"peach-one-sdk-swift",
|
|
102285
|
-
(0,
|
|
102286
|
+
(0, import_node_crypto76.createHash)("sha256").update(import_node_fs127.default.realpathSync(appRoot)).digest("hex").slice(0, 16),
|
|
102286
102287
|
"sdk"
|
|
102287
102288
|
);
|
|
102288
102289
|
const bindingFlags = optimize ? '["-suppress-warnings"]' : '["-suppress-warnings", "-Onone", "-no-whole-module-optimization"]';
|
|
@@ -102329,11 +102330,11 @@ async function buildOneSDKBundle(appRoot) {
|
|
|
102329
102330
|
assets: await compiledModuleAssets(compiled.artifact)
|
|
102330
102331
|
};
|
|
102331
102332
|
}
|
|
102332
|
-
var
|
|
102333
|
+
var import_node_crypto76, import_node_fs127, import_node_path127, ONE_SDK_ROUTE, ONE_SDK_BINDING_SHARDS, ONE_SDK_BINDING_SHARD_MIN_BYTES, handleOneSDKRequest;
|
|
102333
102334
|
var init_one_sdk_bundle = __esm({
|
|
102334
102335
|
"src/one-sdk-bundle.ts"() {
|
|
102335
102336
|
"use strict";
|
|
102336
|
-
|
|
102337
|
+
import_node_crypto76 = require("node:crypto");
|
|
102337
102338
|
import_node_fs127 = __toESM(require("node:fs"), 1);
|
|
102338
102339
|
import_node_path127 = __toESM(require("node:path"), 1);
|
|
102339
102340
|
init_expo_native_workspace();
|
|
@@ -102377,13 +102378,13 @@ var init_expo_eager_seam_contract = __esm({
|
|
|
102377
102378
|
|
|
102378
102379
|
// src/expo-native-compiler-digest.ts
|
|
102379
102380
|
function expoNativeCompilerDigestValue() {
|
|
102380
|
-
return true ? "
|
|
102381
|
+
return true ? "ecafe9dff251decb45af7e610bd212d9ce7e82092d88a9781627d952631dc0b0" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
102381
102382
|
}
|
|
102382
|
-
var
|
|
102383
|
+
var import_node_crypto77;
|
|
102383
102384
|
var init_expo_native_compiler_digest = __esm({
|
|
102384
102385
|
"src/expo-native-compiler-digest.ts"() {
|
|
102385
102386
|
"use strict";
|
|
102386
|
-
|
|
102387
|
+
import_node_crypto77 = require("node:crypto");
|
|
102387
102388
|
init_react_native_core_digest();
|
|
102388
102389
|
init_swift_compiler_digest();
|
|
102389
102390
|
init_swift_standin_digest();
|
|
@@ -102392,7 +102393,7 @@ var init_expo_native_compiler_digest = __esm({
|
|
|
102392
102393
|
|
|
102393
102394
|
// src/expo-discovery-cache.ts
|
|
102394
102395
|
function peachPin() {
|
|
102395
|
-
return (0,
|
|
102396
|
+
return (0, import_node_crypto78.createHash)("sha256").update(
|
|
102396
102397
|
`${FORMAT}\0${expoNativeCompilerDigestValue()}\0${swiftNativePin().distribution.id}\0`
|
|
102397
102398
|
).update(JSON.stringify([...EXPO_EAGER_NATIVE_VIEWS])).update(JSON.stringify([...peachAnsweredNativePackages()].sort())).digest("hex");
|
|
102398
102399
|
}
|
|
@@ -102406,7 +102407,7 @@ function stable(value) {
|
|
|
102406
102407
|
}
|
|
102407
102408
|
async function expoDiscoveryKey(options2) {
|
|
102408
102409
|
const { root, hash } = await hashExpoWorkspace(options2.appRoot, options2.signal);
|
|
102409
|
-
const key2 = (0,
|
|
102410
|
+
const key2 = (0, import_node_crypto78.createHash)("sha256").update(`${peachPin()}\0${hash}\0`).update(`${stable(JSON.parse(options2.searchText))}\0`).update(`${stable(options2.configuration)}\0`).update(stable(JSON.parse(options2.resolveText))).digest("hex");
|
|
102410
102411
|
return { key: key2, root };
|
|
102411
102412
|
}
|
|
102412
102413
|
function expoDiscoveryCacheDir() {
|
|
@@ -102477,7 +102478,7 @@ function readExpoDiscovery(key2) {
|
|
|
102477
102478
|
if (typeof parsed2.archive !== "string" || !isDigest(parsed2.archive)) return void 0;
|
|
102478
102479
|
const archive = import_node_path128.default.join(expoDiscoveryCacheDir(), "blobs", `${parsed2.archive}.zst`);
|
|
102479
102480
|
const bytes = import_node_fs128.default.readFileSync(archive);
|
|
102480
|
-
if ((0,
|
|
102481
|
+
if ((0, import_node_crypto78.createHash)("sha256").update(bytes).digest("hex") !== parsed2.archive)
|
|
102481
102482
|
return void 0;
|
|
102482
102483
|
const bodies = (0, import_node_zlib8.zstdDecompressSync)(bytes);
|
|
102483
102484
|
const decoded = /* @__PURE__ */ new Map();
|
|
@@ -102551,7 +102552,7 @@ function stampedFileHash(file) {
|
|
|
102551
102552
|
const stamp = [stat.dev, stat.ino, stat.size, stat.mtimeNs, stat.ctimeNs].join(":");
|
|
102552
102553
|
const cached2 = fileHashes.get(file);
|
|
102553
102554
|
if (cached2?.stamp === stamp) return cached2.checksum;
|
|
102554
|
-
const checksum = (0,
|
|
102555
|
+
const checksum = (0, import_node_crypto78.createHash)("sha256").update(import_node_fs128.default.readFileSync(file)).digest("hex");
|
|
102555
102556
|
fileHashes.set(file, { stamp, checksum });
|
|
102556
102557
|
fileHashesChanged = true;
|
|
102557
102558
|
return checksum;
|
|
@@ -102560,7 +102561,7 @@ function saveFileHashes() {
|
|
|
102560
102561
|
if (!fileHashesChanged) return;
|
|
102561
102562
|
fileHashesChanged = false;
|
|
102562
102563
|
const target = fileHashesPath();
|
|
102563
|
-
const temporary = `${target}.${process.pid}.${(0,
|
|
102564
|
+
const temporary = `${target}.${process.pid}.${(0, import_node_crypto78.randomUUID)()}.tmp`;
|
|
102564
102565
|
try {
|
|
102565
102566
|
import_node_fs128.default.mkdirSync(import_node_path128.default.dirname(target), { recursive: true });
|
|
102566
102567
|
import_node_fs128.default.writeFileSync(
|
|
@@ -102615,7 +102616,7 @@ function frameworkDigest(directory2, signal) {
|
|
|
102615
102616
|
if (target !== root && !target.startsWith(`${root}${import_node_path128.default.sep}`))
|
|
102616
102617
|
throw new Error(`framework link escapes its tree: ${relative4}`);
|
|
102617
102618
|
}
|
|
102618
|
-
return (0,
|
|
102619
|
+
return (0, import_node_crypto78.createHash)("sha256").update(JSON.stringify([...entries2])).digest("hex");
|
|
102619
102620
|
}
|
|
102620
102621
|
function rewritePreparedPaths(options2) {
|
|
102621
102622
|
const { units, sourceRoot, preparedRoot, signal } = options2;
|
|
@@ -102636,7 +102637,7 @@ function rewritePreparedPaths(options2) {
|
|
|
102636
102637
|
return null;
|
|
102637
102638
|
}
|
|
102638
102639
|
if (!preparedBytes.equals(sourceBytes)) return null;
|
|
102639
|
-
dependencies[sourceFile] = (0,
|
|
102640
|
+
dependencies[sourceFile] = (0, import_node_crypto78.createHash)("sha256").update(sourceBytes).digest("hex");
|
|
102640
102641
|
verifiedFiles.set(preparedFile, sourceFile);
|
|
102641
102642
|
return sourceFile;
|
|
102642
102643
|
};
|
|
@@ -102713,7 +102714,7 @@ function rewritePreparedPaths(options2) {
|
|
|
102713
102714
|
portableDir = import_node_path128.default.join(parent, import_node_path128.default.basename(dir));
|
|
102714
102715
|
if (!import_node_fs128.default.existsSync(portableDir)) {
|
|
102715
102716
|
import_node_fs128.default.mkdirSync(parent, { recursive: true });
|
|
102716
|
-
const tmp = import_node_path128.default.join(parent, `.${process.pid}.${(0,
|
|
102717
|
+
const tmp = import_node_path128.default.join(parent, `.${process.pid}.${(0, import_node_crypto78.randomUUID)()}.tmp`);
|
|
102717
102718
|
try {
|
|
102718
102719
|
import_node_fs128.default.cpSync(dir, tmp, { recursive: true, verbatimSymlinks: true });
|
|
102719
102720
|
if (frameworkDigest(tmp, signal) !== preparedDigest)
|
|
@@ -102742,7 +102743,7 @@ function writeExpoDiscovery(options2) {
|
|
|
102742
102743
|
try {
|
|
102743
102744
|
const dir = expoDiscoveryCacheDir();
|
|
102744
102745
|
import_node_fs128.default.mkdirSync(dir, { recursive: true });
|
|
102745
|
-
const tmp = import_node_path128.default.join(dir, `.${options2.key}.${process.pid}.${(0,
|
|
102746
|
+
const tmp = import_node_path128.default.join(dir, `.${options2.key}.${process.pid}.${(0, import_node_crypto78.randomUUID)()}.tmp`);
|
|
102746
102747
|
if (options2.units === null) {
|
|
102747
102748
|
import_node_fs128.default.writeFileSync(
|
|
102748
102749
|
tmp,
|
|
@@ -102805,8 +102806,8 @@ function writeExpoDiscovery(options2) {
|
|
|
102805
102806
|
}
|
|
102806
102807
|
);
|
|
102807
102808
|
const contents2 = (0, import_node_zlib8.zstdCompressSync)(Buffer.concat(chunks, size2));
|
|
102808
|
-
const archive = (0,
|
|
102809
|
-
const temporary = import_node_path128.default.join(blobDir, "." + (0,
|
|
102809
|
+
const archive = (0, import_node_crypto78.createHash)("sha256").update(contents2).digest("hex");
|
|
102810
|
+
const temporary = import_node_path128.default.join(blobDir, "." + (0, import_node_crypto78.randomUUID)() + ".tmp");
|
|
102810
102811
|
try {
|
|
102811
102812
|
import_node_fs128.default.writeFileSync(temporary, contents2);
|
|
102812
102813
|
import_node_fs128.default.renameSync(temporary, import_node_path128.default.join(blobDir, `${archive}.zst`));
|
|
@@ -102833,11 +102834,11 @@ function writeExpoDiscovery(options2) {
|
|
|
102833
102834
|
return error instanceof Error ? error.message : String(error);
|
|
102834
102835
|
}
|
|
102835
102836
|
}
|
|
102836
|
-
var
|
|
102837
|
+
var import_node_crypto78, import_node_fs128, import_node_path128, import_node_zlib8, FORMAT, EXPIRY_MS, ORPHAN_TEMPORARY_MS, strings4, stringRecord, isDigest, digestRecord, isBodyOffset, isBodyOffsets, sourceLocationLine, fileHashes, fileHashesLoaded, fileHashesChanged, MISSING_TREE;
|
|
102837
102838
|
var init_expo_discovery_cache = __esm({
|
|
102838
102839
|
"src/expo-discovery-cache.ts"() {
|
|
102839
102840
|
"use strict";
|
|
102840
|
-
|
|
102841
|
+
import_node_crypto78 = require("node:crypto");
|
|
102841
102842
|
import_node_fs128 = __toESM(require("node:fs"), 1);
|
|
102842
102843
|
import_node_path128 = __toESM(require("node:path"), 1);
|
|
102843
102844
|
import_node_zlib8 = require("node:zlib");
|
|
@@ -103041,7 +103042,7 @@ async function expoNativeInputs(appRoot) {
|
|
|
103041
103042
|
"swift-pin": JSON.stringify(swiftNativePin()),
|
|
103042
103043
|
answered: JSON.stringify([...peachAnsweredNativePackages()].sort()),
|
|
103043
103044
|
"pods-environment": JSON.stringify(reactNativePodsEnvironment()),
|
|
103044
|
-
fingerprint: (0,
|
|
103045
|
+
fingerprint: (0, import_node_crypto79.createHash)("sha256").update(lines.sort().join("\n")).digest("hex")
|
|
103045
103046
|
},
|
|
103046
103047
|
packages
|
|
103047
103048
|
};
|
|
@@ -103147,7 +103148,7 @@ async function prebuiltAppTarget(appRoot, signal, dependencies = "lockfile") {
|
|
|
103147
103148
|
}
|
|
103148
103149
|
function servedExpoSwift(appRoot, entry, app) {
|
|
103149
103150
|
if (!entry.expoSwift) return null;
|
|
103150
|
-
const rootId = `${(0,
|
|
103151
|
+
const rootId = `${(0, import_node_crypto79.createHash)("sha256").update(import_node_fs130.default.realpathSync(appRoot)).digest("hex")}/Expo`;
|
|
103151
103152
|
if (app.infoPlist === null) throw new Error("the prebuilt app target has no Info.plist");
|
|
103152
103153
|
const installed = installedInfoPlist(app.infoPlist, entry.infoPlist);
|
|
103153
103154
|
const infoPlist2 = Buffer.from(installed).toString("base64");
|
|
@@ -103175,11 +103176,11 @@ async function prebuiltExpoSwiftResult(appRoot, entry, signal) {
|
|
|
103175
103176
|
await prebuiltAppTarget(appRoot, signal, "installed")
|
|
103176
103177
|
);
|
|
103177
103178
|
}
|
|
103178
|
-
var
|
|
103179
|
+
var import_node_crypto79, import_node_fs130, import_node_module18, import_node_path130, import_node_util15, import_plist9, EXPO_NATIVE_ENTRY_NAME, IDENTITY_SOURCE_SKIPS, expoNativeEntryUrl, isStringRecord, isPlistArray, published2, lookups, answers;
|
|
103179
103180
|
var init_expo_native_prebuilt = __esm({
|
|
103180
103181
|
"src/expo-native-prebuilt.ts"() {
|
|
103181
103182
|
"use strict";
|
|
103182
|
-
|
|
103183
|
+
import_node_crypto79 = require("node:crypto");
|
|
103183
103184
|
import_node_fs130 = __toESM(require("node:fs"), 1);
|
|
103184
103185
|
import_node_module18 = require("node:module");
|
|
103185
103186
|
import_node_path130 = __toESM(require("node:path"), 1);
|
|
@@ -103190,7 +103191,6 @@ var init_expo_native_prebuilt = __esm({
|
|
|
103190
103191
|
init_expo_native_workspace();
|
|
103191
103192
|
init_expoSwiftContract();
|
|
103192
103193
|
init_is_record();
|
|
103193
|
-
init_native_app_identity();
|
|
103194
103194
|
init_native_app_identity_project();
|
|
103195
103195
|
init_native_firebase_config();
|
|
103196
103196
|
init_native_prebuilt();
|
|
@@ -103794,7 +103794,7 @@ function exportedNames(moduleRoot, name3) {
|
|
|
103794
103794
|
const modules = import_node_path132.default.join(moduleRoot, "modules");
|
|
103795
103795
|
const module2 = import_node_path132.default.join(modules, `${name3}.swiftmodule`);
|
|
103796
103796
|
if (!import_node_fs132.default.existsSync(module2)) return /* @__PURE__ */ new Set();
|
|
103797
|
-
const key2 = (0,
|
|
103797
|
+
const key2 = (0, import_node_crypto80.createHash)("sha256").update(import_node_fs132.default.readFileSync(module2)).digest("hex");
|
|
103798
103798
|
const directory2 = import_node_path132.default.join(swiftCacheDir(), "swift-public-names");
|
|
103799
103799
|
const receipt = import_node_path132.default.join(directory2, `${key2}.json`);
|
|
103800
103800
|
if (import_node_fs132.default.existsSync(receipt)) {
|
|
@@ -103877,12 +103877,12 @@ function clangTypeOwnership(moduleRoot, module2) {
|
|
|
103877
103877
|
}
|
|
103878
103878
|
);
|
|
103879
103879
|
}
|
|
103880
|
-
var import_node_child_process62,
|
|
103880
|
+
var import_node_child_process62, import_node_crypto80, import_node_fs132, import_node_path132, blockTypedef, enumTypedef, enumConstant, swiftPrivate;
|
|
103881
103881
|
var init_swift_clang_type_ownership = __esm({
|
|
103882
103882
|
"src/swift-clang-type-ownership.ts"() {
|
|
103883
103883
|
"use strict";
|
|
103884
103884
|
import_node_child_process62 = require("node:child_process");
|
|
103885
|
-
|
|
103885
|
+
import_node_crypto80 = require("node:crypto");
|
|
103886
103886
|
import_node_fs132 = __toESM(require("node:fs"), 1);
|
|
103887
103887
|
import_node_path132 = __toESM(require("node:path"), 1);
|
|
103888
103888
|
init_is_record();
|
|
@@ -105525,7 +105525,7 @@ function targetSettings2(units) {
|
|
|
105525
105525
|
}
|
|
105526
105526
|
function oneSDKStamp(oneSDK) {
|
|
105527
105527
|
if (!oneSDK) return "";
|
|
105528
|
-
const hash = (0,
|
|
105528
|
+
const hash = (0, import_node_crypto81.createHash)("sha256");
|
|
105529
105529
|
for (const files2 of [oneSDK.targets, oneSDK.entry])
|
|
105530
105530
|
for (const [name3, source] of [...files2].sort(([a], [b]) => a.localeCompare(b)))
|
|
105531
105531
|
hash.update(`${name3}\0${source}\0`);
|
|
@@ -105576,7 +105576,7 @@ ${bridgeModules.length ? "import React\n" : ""}${oneSDK ? "import One\nimport On
|
|
|
105576
105576
|
`;
|
|
105577
105577
|
}
|
|
105578
105578
|
function expoSwiftPreparedKey(base2, units, reactProviderStamp) {
|
|
105579
|
-
const hash = (0,
|
|
105579
|
+
const hash = (0, import_node_crypto81.createHash)("sha256");
|
|
105580
105580
|
hash.update(base2);
|
|
105581
105581
|
hash.update(reactProviderStamp);
|
|
105582
105582
|
for (const unit2 of units) {
|
|
@@ -105950,8 +105950,8 @@ async function compileExpoSwiftModulesTraced(root, base2, publishArtifact, optio
|
|
|
105950
105950
|
}
|
|
105951
105951
|
return provider;
|
|
105952
105952
|
})() : void 0;
|
|
105953
|
-
const reactProviderStamp = reactProvider ? (0,
|
|
105954
|
-
const key2 = (0,
|
|
105953
|
+
const reactProviderStamp = reactProvider ? (0, import_node_crypto81.createHash)("sha256").update(JSON.stringify(reactProvider)).digest("hex") : "";
|
|
105954
|
+
const key2 = (0, import_node_crypto81.createHash)("sha256").update(import_node_fs133.default.realpathSync(root)).digest("hex");
|
|
105955
105955
|
const unitContentStamp = (unit2) => sourceContentStamp(expoSwiftPackage(key2, unit2.moduleId), module2.root) + (unit2.reactNativeProvider ? `:${reactProviderStamp}` : "");
|
|
105956
105956
|
const failures = /* @__PURE__ */ new Map();
|
|
105957
105957
|
const failureRecords = /* @__PURE__ */ new Map();
|
|
@@ -106293,13 +106293,13 @@ async function compileExpoSwiftModulesTraced(root, base2, publishArtifact, optio
|
|
|
106293
106293
|
throw failure2;
|
|
106294
106294
|
}
|
|
106295
106295
|
}
|
|
106296
|
-
var import_node_async_hooks3, import_node_child_process63,
|
|
106296
|
+
var import_node_async_hooks3, import_node_child_process63, import_node_crypto81, import_node_fs133, import_node_module20, import_node_os27, import_node_path133, import_node_url4, import_node_util16, run11, scriptEnv, EXPO_SWIFT_ENTRY, WITNESS_BATCH, traceStore, discoveryCache, preparedCache, savedFs, ignoredRoots, ownTemporaryRoots, EXPO_MODULE_SCAN_TIMEOUT_MS, preparedExpoSwift, openPreparations, ExpoSwiftLinkRefusal;
|
|
106297
106297
|
var init_expo_swift_host = __esm({
|
|
106298
106298
|
"src/expo-swift-host.ts"() {
|
|
106299
106299
|
"use strict";
|
|
106300
106300
|
import_node_async_hooks3 = require("node:async_hooks");
|
|
106301
106301
|
import_node_child_process63 = require("node:child_process");
|
|
106302
|
-
|
|
106302
|
+
import_node_crypto81 = require("node:crypto");
|
|
106303
106303
|
import_node_fs133 = __toESM(require("node:fs"), 1);
|
|
106304
106304
|
import_node_module20 = require("node:module");
|
|
106305
106305
|
import_node_os27 = __toESM(require("node:os"), 1);
|
|
@@ -106627,7 +106627,7 @@ async function resolveAndroidGradleSources(request) {
|
|
|
106627
106627
|
const parent = import_node_path136.default.join(kotlinHome(), "gradle-sources");
|
|
106628
106628
|
import_node_fs135.default.mkdirSync(parent, { recursive: true });
|
|
106629
106629
|
const work = import_node_fs135.default.mkdtempSync(import_node_path136.default.join(parent, ".query-"));
|
|
106630
|
-
const task = `peachAndroidSources${(0,
|
|
106630
|
+
const task = `peachAndroidSources${(0, import_node_crypto82.randomBytes)(8).toString("hex")}`;
|
|
106631
106631
|
const script = import_node_path136.default.join(work, "sources.gradle");
|
|
106632
106632
|
const encoded = Buffer.from(
|
|
106633
106633
|
JSON.stringify({
|
|
@@ -106748,12 +106748,12 @@ function readDependencySources(value) {
|
|
|
106748
106748
|
};
|
|
106749
106749
|
});
|
|
106750
106750
|
}
|
|
106751
|
-
var import_node_child_process64,
|
|
106751
|
+
var import_node_child_process64, import_node_crypto82, import_node_fs135, import_node_path136, import_node_util17, run12, modelQuery;
|
|
106752
106752
|
var init_android_gradle_sources = __esm({
|
|
106753
106753
|
"src/android-gradle-sources.ts"() {
|
|
106754
106754
|
"use strict";
|
|
106755
106755
|
import_node_child_process64 = require("node:child_process");
|
|
106756
|
-
|
|
106756
|
+
import_node_crypto82 = require("node:crypto");
|
|
106757
106757
|
import_node_fs135 = __toESM(require("node:fs"), 1);
|
|
106758
106758
|
import_node_path136 = __toESM(require("node:path"), 1);
|
|
106759
106759
|
import_node_util17 = require("node:util");
|
|
@@ -107097,7 +107097,7 @@ var init_android_bridge_packages = __esm({
|
|
|
107097
107097
|
|
|
107098
107098
|
// src/java-module-abi.ts
|
|
107099
107099
|
async function readJavaModuleSpecs(files2, sdkRoot, toolchain) {
|
|
107100
|
-
const digest3 = (0,
|
|
107100
|
+
const digest3 = (0, import_node_crypto83.createHash)("sha256");
|
|
107101
107101
|
const parent = import_node_path138.default.join(kotlinHome(), "java-specs");
|
|
107102
107102
|
import_node_fs137.default.mkdirSync(parent, { recursive: true });
|
|
107103
107103
|
const work = import_node_fs137.default.mkdtempSync(import_node_path138.default.join(parent, ".read-"));
|
|
@@ -107194,12 +107194,12 @@ async function compileJavaModuleAbi(input) {
|
|
|
107194
107194
|
);
|
|
107195
107195
|
return library;
|
|
107196
107196
|
}
|
|
107197
|
-
var import_node_child_process65,
|
|
107197
|
+
var import_node_child_process65, import_node_crypto83, import_node_fs137, import_node_path138, import_node_util18, run13, JAVA_BINDINGS_INITIALIZER;
|
|
107198
107198
|
var init_java_module_abi = __esm({
|
|
107199
107199
|
"src/java-module-abi.ts"() {
|
|
107200
107200
|
"use strict";
|
|
107201
107201
|
import_node_child_process65 = require("node:child_process");
|
|
107202
|
-
|
|
107202
|
+
import_node_crypto83 = require("node:crypto");
|
|
107203
107203
|
import_node_fs137 = __toESM(require("node:fs"), 1);
|
|
107204
107204
|
import_node_path138 = __toESM(require("node:path"), 1);
|
|
107205
107205
|
import_node_util18 = require("node:util");
|
|
@@ -107307,13 +107307,13 @@ function verifyKotlinSdkDirectory(root, compiler) {
|
|
|
107307
107307
|
if (!stat.isFile() || stat.nlink !== 1)
|
|
107308
107308
|
throw new Error(`Kotlin SDK binary is not a regular file: ${name3}`);
|
|
107309
107309
|
const bytes = import_node_fs138.default.readFileSync(target);
|
|
107310
|
-
if (bytes.length !== expected.bytes || (0,
|
|
107310
|
+
if (bytes.length !== expected.bytes || (0, import_node_crypto84.createHash)("sha256").update(bytes).digest("hex") !== expected.sha256)
|
|
107311
107311
|
throw new Error(`Kotlin SDK binary differs from its manifest: ${name3}`);
|
|
107312
107312
|
}
|
|
107313
107313
|
return manifest;
|
|
107314
107314
|
}
|
|
107315
107315
|
async function installKotlinSdkArchive(archive, compiler) {
|
|
107316
|
-
const sha2565 = (0,
|
|
107316
|
+
const sha2565 = (0, import_node_crypto84.createHash)("sha256").update(archive).digest("hex");
|
|
107317
107317
|
const parent = import_node_path139.default.join(kotlinHome(), "sdk");
|
|
107318
107318
|
const root = import_node_path139.default.join(parent, sha2565);
|
|
107319
107319
|
if (import_node_fs138.default.existsSync(root))
|
|
@@ -107342,12 +107342,12 @@ async function installKotlinSdkArchive(archive, compiler) {
|
|
|
107342
107342
|
import_node_fs138.default.rmSync(work, { recursive: true, force: true });
|
|
107343
107343
|
}
|
|
107344
107344
|
}
|
|
107345
|
-
var import_node_child_process66,
|
|
107345
|
+
var import_node_child_process66, import_node_crypto84, import_node_fs138, import_node_path139, import_node_util19, run14;
|
|
107346
107346
|
var init_kotlin_sdk = __esm({
|
|
107347
107347
|
"src/kotlin-sdk.ts"() {
|
|
107348
107348
|
"use strict";
|
|
107349
107349
|
import_node_child_process66 = require("node:child_process");
|
|
107350
|
-
|
|
107350
|
+
import_node_crypto84 = require("node:crypto");
|
|
107351
107351
|
import_node_fs138 = __toESM(require("node:fs"), 1);
|
|
107352
107352
|
import_node_path139 = __toESM(require("node:path"), 1);
|
|
107353
107353
|
import_node_util19 = require("node:util");
|
|
@@ -107451,7 +107451,7 @@ function peachKotlinModuleRoot() {
|
|
|
107451
107451
|
return import_node_path141.default.resolve(import_node_path141.default.dirname((0, import_node_url5.fileURLToPath)(__sootsim_import_meta_url)), "..", "kotlin");
|
|
107452
107452
|
if (installedRoot) return installedRoot;
|
|
107453
107453
|
const files2 = JSON.parse(__PEACH_BUNDLED_KOTLIN__);
|
|
107454
|
-
const digest3 = (0,
|
|
107454
|
+
const digest3 = (0, import_node_crypto85.createHash)("sha256").update(__PEACH_BUNDLED_KOTLIN__).digest("hex");
|
|
107455
107455
|
const parent = import_node_path141.default.join(rnxHomeDir(), "kotlin", "modules");
|
|
107456
107456
|
const root = import_node_path141.default.join(parent, digest3);
|
|
107457
107457
|
import_node_fs140.default.mkdirSync(parent, { recursive: true });
|
|
@@ -107480,11 +107480,11 @@ function peachKotlinModuleRoot() {
|
|
|
107480
107480
|
installedRoot = root;
|
|
107481
107481
|
return root;
|
|
107482
107482
|
}
|
|
107483
|
-
var
|
|
107483
|
+
var import_node_crypto85, import_node_fs140, import_node_path141, import_node_url5, installedRoot;
|
|
107484
107484
|
var init_kotlin_module = __esm({
|
|
107485
107485
|
"src/kotlin-module.ts"() {
|
|
107486
107486
|
"use strict";
|
|
107487
|
-
|
|
107487
|
+
import_node_crypto85 = require("node:crypto");
|
|
107488
107488
|
import_node_fs140 = __toESM(require("node:fs"), 1);
|
|
107489
107489
|
import_node_path141 = __toESM(require("node:path"), 1);
|
|
107490
107490
|
import_node_url5 = require("node:url");
|
|
@@ -107996,7 +107996,7 @@ function readExpoTypes(output) {
|
|
|
107996
107996
|
});
|
|
107997
107997
|
}
|
|
107998
107998
|
async function scanSources(tool, parse16, toolchain, moduleRoot, files2) {
|
|
107999
|
-
const digest3 = (0,
|
|
107999
|
+
const digest3 = (0, import_node_crypto86.createHash)("sha256").update(JSON.stringify(toolchain.compiler));
|
|
108000
108000
|
const sdk2 = await loadKotlinSdk(moduleRoot, toolchain);
|
|
108001
108001
|
digest3.update(import_node_fs141.default.readFileSync(import_node_path142.default.join(moduleRoot, "sdk.tar.gz")));
|
|
108002
108002
|
digest3.update(tool);
|
|
@@ -108656,7 +108656,7 @@ async function compileKotlin(input, origin) {
|
|
|
108656
108656
|
bytes: import_node_fs141.default.readFileSync(file)
|
|
108657
108657
|
}));
|
|
108658
108658
|
const { composeArchive, ...compilerInputs } = toolchain;
|
|
108659
|
-
const digest3 = (0,
|
|
108659
|
+
const digest3 = (0, import_node_crypto86.createHash)("sha256");
|
|
108660
108660
|
digest3.update(
|
|
108661
108661
|
JSON.stringify({
|
|
108662
108662
|
format: BUILD_FORMAT,
|
|
@@ -108948,12 +108948,12 @@ async function serveKotlinRequest(pathname, res, app) {
|
|
|
108948
108948
|
}
|
|
108949
108949
|
return true;
|
|
108950
108950
|
}
|
|
108951
|
-
var import_node_child_process67,
|
|
108951
|
+
var import_node_child_process67, import_node_crypto86, import_node_fs141, import_node_module23, import_node_path142, import_node_util20, run15, KOTLIN_ARTIFACT_PREFIX, SKIP_DIRS, configureDeviceSource, BUILD_FORMAT, builds, toolScans, BRIDGE_PARAMETERS, BRIDGE_CASTS, BRIDGE_RETURNS, bridgeType, JAVA_CLASSES, argb, escapes2, literal2, CONTENT_TYPES;
|
|
108952
108952
|
var init_kotlin_host = __esm({
|
|
108953
108953
|
"src/kotlin-host.ts"() {
|
|
108954
108954
|
"use strict";
|
|
108955
108955
|
import_node_child_process67 = require("node:child_process");
|
|
108956
|
-
|
|
108956
|
+
import_node_crypto86 = require("node:crypto");
|
|
108957
108957
|
import_node_fs141 = __toESM(require("node:fs"), 1);
|
|
108958
108958
|
import_node_module23 = require("node:module");
|
|
108959
108959
|
import_node_path142 = __toESM(require("node:path"), 1);
|
|
@@ -109782,7 +109782,7 @@ __export(bundle_channel_exports, {
|
|
|
109782
109782
|
snapshotOneProductionBundle: () => snapshotOneProductionBundle
|
|
109783
109783
|
});
|
|
109784
109784
|
module.exports = __toCommonJS(bundle_channel_exports);
|
|
109785
|
-
var
|
|
109785
|
+
var import_node_crypto88 = require("node:crypto");
|
|
109786
109786
|
var import_node_fs148 = require("node:fs");
|
|
109787
109787
|
var import_node_path150 = require("node:path");
|
|
109788
109788
|
var import_node_vm = require("node:vm");
|
|
@@ -109956,7 +109956,7 @@ init_expo_native_workspace();
|
|
|
109956
109956
|
|
|
109957
109957
|
// src/host/staged-host-files.ts
|
|
109958
109958
|
var import_node_async_hooks4 = require("node:async_hooks");
|
|
109959
|
-
var
|
|
109959
|
+
var import_node_crypto87 = require("node:crypto");
|
|
109960
109960
|
var import_node_fs143 = __toESM(require("node:fs"), 1);
|
|
109961
109961
|
var import_node_path144 = __toESM(require("node:path"), 1);
|
|
109962
109962
|
|
|
@@ -110050,10 +110050,10 @@ function stageHostBytes(bytes, origin, extension = "") {
|
|
|
110050
110050
|
}
|
|
110051
110051
|
async function stageHostDerivedBytes(input, producer, origin, extension, derive) {
|
|
110052
110052
|
const directory2 = prepareStagedDirectory();
|
|
110053
|
-
const inputDigest = (0,
|
|
110053
|
+
const inputDigest = (0, import_node_crypto87.createHash)("sha256").update(input).digest("hex");
|
|
110054
110054
|
const index = import_node_path144.default.join(
|
|
110055
110055
|
directory2,
|
|
110056
|
-
`derived-${(0,
|
|
110056
|
+
`derived-${(0, import_node_crypto87.createHash)("sha256").update(`${producer}\0${inputDigest}`).digest("hex")}`
|
|
110057
110057
|
);
|
|
110058
110058
|
const recorded = import_node_fs143.default.existsSync(index) ? import_node_fs143.default.readFileSync(index, "utf8") : "";
|
|
110059
110059
|
if (STAGED_NAME.test(recorded) && import_node_fs143.default.existsSync(import_node_path144.default.join(directory2, recorded))) {
|
|
@@ -110064,7 +110064,7 @@ async function stageHostDerivedBytes(input, producer, origin, extension, derive)
|
|
|
110064
110064
|
return new URL(STAGED_PREFIX + recorded, origin).toString();
|
|
110065
110065
|
}
|
|
110066
110066
|
const staged = writeStagedBytes(await derive(), origin, extension, directory2);
|
|
110067
|
-
const temporary = import_node_path144.default.join(directory2, (0,
|
|
110067
|
+
const temporary = import_node_path144.default.join(directory2, (0, import_node_crypto87.randomUUID)());
|
|
110068
110068
|
try {
|
|
110069
110069
|
import_node_fs143.default.writeFileSync(temporary, new URL(staged).pathname.slice(STAGED_PREFIX.length), {
|
|
110070
110070
|
flag: "wx"
|
|
@@ -110089,7 +110089,7 @@ function prepareStagedDirectory() {
|
|
|
110089
110089
|
return directory2;
|
|
110090
110090
|
}
|
|
110091
110091
|
function writeStagedBytes(bytes, origin, extension, directory2) {
|
|
110092
|
-
const digest3 = (0,
|
|
110092
|
+
const digest3 = (0, import_node_crypto87.createHash)("sha256").update(bytes).digest("hex");
|
|
110093
110093
|
extension = extension.toLowerCase();
|
|
110094
110094
|
const name3 = STAGED_NAME.test(digest3 + extension) ? digest3 + extension : digest3;
|
|
110095
110095
|
stagedCapture.getStore()?.add(name3);
|
|
@@ -110098,7 +110098,7 @@ function writeStagedBytes(bytes, origin, extension, directory2) {
|
|
|
110098
110098
|
if (import_node_fs143.default.existsSync(destination)) {
|
|
110099
110099
|
import_node_fs143.default.utimesSync(destination, new Date(now), new Date(now));
|
|
110100
110100
|
} else {
|
|
110101
|
-
const temporary = import_node_path144.default.join(directory2, (0,
|
|
110101
|
+
const temporary = import_node_path144.default.join(directory2, (0, import_node_crypto87.randomUUID)());
|
|
110102
110102
|
try {
|
|
110103
110103
|
import_node_fs143.default.writeFileSync(temporary, bytes, { flag: "wx" });
|
|
110104
110104
|
import_node_fs143.default.renameSync(temporary, destination);
|
|
@@ -110395,7 +110395,7 @@ async function discoverProjectOneNativeAppCatalog(projectRoot, assetOrigin) {
|
|
|
110395
110395
|
}
|
|
110396
110396
|
|
|
110397
110397
|
// src/bundle-channel.mjs
|
|
110398
|
-
var digest2 = (bytes) => (0,
|
|
110398
|
+
var digest2 = (bytes) => (0, import_node_crypto88.createHash)("sha256").update(bytes).digest("hex");
|
|
110399
110399
|
var segment2 = /^[a-zA-Z0-9._-]+$/;
|
|
110400
110400
|
function packagedAssetDirectory(location) {
|
|
110401
110401
|
const parsed2 = new URL(location, "https://packaged.invalid");
|
|
@@ -110501,7 +110501,7 @@ async function prepareChannel({
|
|
|
110501
110501
|
files2.set(asset.path, asset.bytes);
|
|
110502
110502
|
}
|
|
110503
110503
|
}
|
|
110504
|
-
const identity2 = (0,
|
|
110504
|
+
const identity2 = (0, import_node_crypto88.createHash)("sha256").update(bundle).update(icon);
|
|
110505
110505
|
for (const [path137, bytes] of [...files2].sort(
|
|
110506
110506
|
([a], [b]) => a < b ? -1 : a > b ? 1 : 0
|
|
110507
110507
|
)) {
|