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;
|
|
@@ -26248,7 +26248,7 @@ var init_swift_standin_digest = __esm({
|
|
|
26248
26248
|
|
|
26249
26249
|
// src/expo-native-compiler-digest.ts
|
|
26250
26250
|
function expoNativeCompilerDigestValue() {
|
|
26251
|
-
return true ? "
|
|
26251
|
+
return true ? "ecafe9dff251decb45af7e610bd212d9ce7e82092d88a9781627d952631dc0b0" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
26252
26252
|
}
|
|
26253
26253
|
var import_node_crypto17;
|
|
26254
26254
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -73025,7 +73025,6 @@ var init_expo_native_prebuilt = __esm({
|
|
|
73025
73025
|
init_expo_native_workspace();
|
|
73026
73026
|
init_expoSwiftContract();
|
|
73027
73027
|
init_is_record();
|
|
73028
|
-
init_native_app_identity();
|
|
73029
73028
|
init_native_app_identity_project();
|
|
73030
73029
|
init_native_firebase_config();
|
|
73031
73030
|
init_native_prebuilt();
|
|
@@ -73077,7 +73076,7 @@ function watchNativeInputs(root) {
|
|
|
73077
73076
|
(0, import_node_timers.clearTimeout)(expiry);
|
|
73078
73077
|
for (const watcher of watchers) watcher.close();
|
|
73079
73078
|
}
|
|
73080
|
-
const inputs2 = { expiry };
|
|
73079
|
+
const inputs2 = { expiry, revision: (0, import_node_crypto58.randomUUID)() };
|
|
73081
73080
|
const watch = (directory2, recursive, name3) => {
|
|
73082
73081
|
const watcher = import_node_fs94.default.watch(
|
|
73083
73082
|
directory2,
|
|
@@ -73118,10 +73117,11 @@ function watchNativeInputs(root) {
|
|
|
73118
73117
|
watchedInputs.set(workspace, inputs2);
|
|
73119
73118
|
return inputs2;
|
|
73120
73119
|
}
|
|
73121
|
-
var import_node_fs94, import_node_path95, import_node_timers, setTimeoutNode, RETENTION_MS, watchedInputs, NativePreparation;
|
|
73120
|
+
var import_node_crypto58, import_node_fs94, import_node_path95, import_node_timers, setTimeoutNode, RETENTION_MS, watchedInputs, NativePreparation;
|
|
73122
73121
|
var init_native_preparation = __esm({
|
|
73123
73122
|
"src/native-preparation.ts"() {
|
|
73124
73123
|
"use strict";
|
|
73124
|
+
import_node_crypto58 = require("node:crypto");
|
|
73125
73125
|
import_node_fs94 = __toESM(require("node:fs"), 1);
|
|
73126
73126
|
import_node_path95 = __toESM(require("node:path"), 1);
|
|
73127
73127
|
import_node_timers = require("node:timers");
|
|
@@ -73301,7 +73301,7 @@ function nativeStaticLibraryEntry(recipe2, compiler, sdk2, distribution) {
|
|
|
73301
73301
|
return { name: recipe2.name, inputs: inputs2, key: nativeEntryKey(inputs2) };
|
|
73302
73302
|
}
|
|
73303
73303
|
function nativeStaticLibraryRecipe(bytes) {
|
|
73304
|
-
const digest2 = (0,
|
|
73304
|
+
const digest2 = (0, import_node_crypto59.createHash)("sha256").update(bytes).digest("hex");
|
|
73305
73305
|
return NATIVE_STATIC_LIBRARY_RECIPES.find((item) => item.nativeSha256 === digest2);
|
|
73306
73306
|
}
|
|
73307
73307
|
function nativeStaticLibrary(file, recipe2, moduleRoot) {
|
|
@@ -73344,7 +73344,7 @@ function isRustSymbol(name3, demangled) {
|
|
|
73344
73344
|
function rustStaticLibrary(file, moduleRoot) {
|
|
73345
73345
|
const toolchain = swiftModuleToolchain(moduleRoot);
|
|
73346
73346
|
const bytes = import_node_fs96.default.readFileSync(file);
|
|
73347
|
-
const key2 = (0,
|
|
73347
|
+
const key2 = (0, import_node_crypto59.createHash)("sha256").update("rust-c-abi-v4\0").update(toolchain.release).update("\0").update(bytes).digest("hex");
|
|
73348
73348
|
const directory2 = import_node_path97.default.join(cacheDir(), "native-archives", key2);
|
|
73349
73349
|
const archive = import_node_path97.default.join(directory2, "library.a");
|
|
73350
73350
|
if (import_node_fs96.default.existsSync(archive)) return archive;
|
|
@@ -73373,7 +73373,7 @@ function rustStaticLibrary(file, moduleRoot) {
|
|
|
73373
73373
|
const members2 = readArMembers(bytes, true);
|
|
73374
73374
|
const seen = /* @__PURE__ */ new Set();
|
|
73375
73375
|
const unique2 = members2.filter(({ name: name3, bytes: bytes2 }) => {
|
|
73376
|
-
const identity2 = name3 + "\0" + (0,
|
|
73376
|
+
const identity2 = name3 + "\0" + (0, import_node_crypto59.createHash)("sha256").update(bytes2).digest("hex");
|
|
73377
73377
|
if (seen.has(identity2)) return false;
|
|
73378
73378
|
seen.add(identity2);
|
|
73379
73379
|
return true;
|
|
@@ -73420,14 +73420,14 @@ function rustStaticLibrary(file, moduleRoot) {
|
|
|
73420
73420
|
function combineNativeStaticLibraries(files2, moduleRoot) {
|
|
73421
73421
|
if (files2.length === 1) return files2[0];
|
|
73422
73422
|
const toolchain = swiftModuleToolchain(moduleRoot);
|
|
73423
|
-
const hash = (0,
|
|
73423
|
+
const hash = (0, import_node_crypto59.createHash)("sha256").update(toolchain.release);
|
|
73424
73424
|
for (const file of files2)
|
|
73425
73425
|
hash.update("\0").update(import_node_path97.default.basename(file)).update("\0").update(import_node_fs96.default.readFileSync(file));
|
|
73426
73426
|
const directory2 = import_node_path97.default.join(cacheDir(), "native-archives", hash.digest("hex"));
|
|
73427
73427
|
const archive = import_node_path97.default.join(directory2, "combined.a");
|
|
73428
73428
|
if (import_node_fs96.default.existsSync(archive)) return archive;
|
|
73429
73429
|
import_node_fs96.default.mkdirSync(directory2, { recursive: true });
|
|
73430
|
-
const temporary = import_node_path97.default.join(directory2, `combined-${(0,
|
|
73430
|
+
const temporary = import_node_path97.default.join(directory2, `combined-${(0, import_node_crypto59.randomUUID)()}.a`);
|
|
73431
73431
|
try {
|
|
73432
73432
|
(0, import_node_child_process46.execFileSync)(import_node_path97.default.join(toolchain.toolchainBin, "llvm-ar"), [
|
|
73433
73433
|
"qcsDL",
|
|
@@ -73440,12 +73440,12 @@ function combineNativeStaticLibraries(files2, moduleRoot) {
|
|
|
73440
73440
|
}
|
|
73441
73441
|
return archive;
|
|
73442
73442
|
}
|
|
73443
|
-
var import_node_child_process46,
|
|
73443
|
+
var import_node_child_process46, import_node_crypto59, import_node_fs96, import_node_path97, WEBRTC_NATIVE_FRAMEWORK, SIGNAL_WEBRTC_NATIVE_FRAMEWORK, WEBRTC_NATIVE_FRAMEWORK_RECIPES, NATIVE_STATIC_LIBRARY_RECIPES;
|
|
73444
73444
|
var init_native_static_libraries = __esm({
|
|
73445
73445
|
"src/native-static-libraries.ts"() {
|
|
73446
73446
|
"use strict";
|
|
73447
73447
|
import_node_child_process46 = require("node:child_process");
|
|
73448
|
-
|
|
73448
|
+
import_node_crypto59 = require("node:crypto");
|
|
73449
73449
|
import_node_fs96 = __toESM(require("node:fs"), 1);
|
|
73450
73450
|
import_node_path97 = __toESM(require("node:path"), 1);
|
|
73451
73451
|
init_home_paths();
|
|
@@ -73780,7 +73780,7 @@ function processAlive(pid) {
|
|
|
73780
73780
|
}
|
|
73781
73781
|
function tryAcquireNumberedLock(directory2, detail = "") {
|
|
73782
73782
|
(0, import_node_fs97.mkdirSync)(directory2, { recursive: true });
|
|
73783
|
-
const claim = (0, import_node_path98.join)(directory2, `claim-${process.pid}-${(0,
|
|
73783
|
+
const claim = (0, import_node_path98.join)(directory2, `claim-${process.pid}-${(0, import_node_crypto60.randomUUID)()}`);
|
|
73784
73784
|
for (; ; ) {
|
|
73785
73785
|
const numbers = (0, import_node_fs97.readdirSync)(directory2).filter((name3) => /^\d+$/.test(name3)).map(Number);
|
|
73786
73786
|
const top = Math.max(-1, ...numbers);
|
|
@@ -73819,11 +73819,11 @@ ${detail}` : ""}`);
|
|
|
73819
73819
|
};
|
|
73820
73820
|
}
|
|
73821
73821
|
}
|
|
73822
|
-
var
|
|
73822
|
+
var import_node_crypto60, import_node_fs97, import_node_path98, errorCode2;
|
|
73823
73823
|
var init_numbered_lock = __esm({
|
|
73824
73824
|
"src/numbered-lock.ts"() {
|
|
73825
73825
|
"use strict";
|
|
73826
|
-
|
|
73826
|
+
import_node_crypto60 = require("node:crypto");
|
|
73827
73827
|
import_node_fs97 = require("node:fs");
|
|
73828
73828
|
import_node_path98 = require("node:path");
|
|
73829
73829
|
errorCode2 = (error) => error instanceof Error && "code" in error ? error.code : void 0;
|
|
@@ -73850,7 +73850,7 @@ async function buildRiveRuntimeDependencies(checkout, moduleRoot) {
|
|
|
73850
73850
|
];
|
|
73851
73851
|
const objc = [...swiftObjCRuntimeFlags, "-fobjc-exceptions"];
|
|
73852
73852
|
const xcode = (0, import_node_child_process47.execFileSync)("xcodebuild", ["-version"], { encoding: "utf8" });
|
|
73853
|
-
const key2 = (0,
|
|
73853
|
+
const key2 = (0, import_node_crypto61.createHash)("sha256").update(
|
|
73854
73854
|
JSON.stringify([
|
|
73855
73855
|
RECIPE,
|
|
73856
73856
|
(0, import_node_child_process47.execFileSync)("git", ["-C", runtime, "rev-parse", "HEAD"], {
|
|
@@ -74061,12 +74061,12 @@ exec ${quote3(import_node_path99.default.join(toolchainBin, "llvm-ar"))} rcs "$o
|
|
|
74061
74061
|
);
|
|
74062
74062
|
return directory2;
|
|
74063
74063
|
}
|
|
74064
|
-
var import_node_child_process47,
|
|
74064
|
+
var import_node_child_process47, import_node_crypto61, import_node_fs98, import_node_os20, import_node_path99, import_promises9, RECIPE, CONFIG, RUNTIME_LIBRARIES;
|
|
74065
74065
|
var init_rive_runtime_dependencies = __esm({
|
|
74066
74066
|
"src/rive-runtime-dependencies.ts"() {
|
|
74067
74067
|
"use strict";
|
|
74068
74068
|
import_node_child_process47 = require("node:child_process");
|
|
74069
|
-
|
|
74069
|
+
import_node_crypto61 = require("node:crypto");
|
|
74070
74070
|
import_node_fs98 = __toESM(require("node:fs"), 1);
|
|
74071
74071
|
import_node_os20 = __toESM(require("node:os"), 1);
|
|
74072
74072
|
import_node_path99 = __toESM(require("node:path"), 1);
|
|
@@ -74165,7 +74165,7 @@ var init_swift_shipped_binaries = __esm({
|
|
|
74165
74165
|
|
|
74166
74166
|
// src/swift-packages.ts
|
|
74167
74167
|
function remoteSwiftCheckouts(root) {
|
|
74168
|
-
const key2 = (0,
|
|
74168
|
+
const key2 = (0, import_node_crypto62.createHash)("sha256").update(import_node_fs99.default.realpathSync(root)).digest("hex").slice(0, 32);
|
|
74169
74169
|
import_node_fs99.default.mkdirSync(cacheDir(), { recursive: true });
|
|
74170
74170
|
return import_node_path100.default.join(import_node_fs99.default.realpathSync(cacheDir()), "swift-packages", key2, "checkouts");
|
|
74171
74171
|
}
|
|
@@ -74899,12 +74899,12 @@ function resolveSwiftPackages(options2) {
|
|
|
74899
74899
|
result.nativeProducts.push({ name: name3, packageDir: manifest.dir, source });
|
|
74900
74900
|
return result;
|
|
74901
74901
|
}
|
|
74902
|
-
var import_node_child_process48,
|
|
74902
|
+
var import_node_child_process48, import_node_crypto62, import_node_fs99, import_node_path100, import_promises10, import_node_util13, swiftBinaryOnDisk, SWIFT_PLACEHOLDER_PACKAGES, placeholderPackage, sourceFrameworkRecipes, UNSUPPORTED_NATIVE, BINARY, blockers, verified, execFileAsync2, checkoutKey;
|
|
74903
74903
|
var init_swift_packages = __esm({
|
|
74904
74904
|
"src/swift-packages.ts"() {
|
|
74905
74905
|
"use strict";
|
|
74906
74906
|
import_node_child_process48 = require("node:child_process");
|
|
74907
|
-
|
|
74907
|
+
import_node_crypto62 = require("node:crypto");
|
|
74908
74908
|
import_node_fs99 = __toESM(require("node:fs"), 1);
|
|
74909
74909
|
import_node_path100 = __toESM(require("node:path"), 1);
|
|
74910
74910
|
import_promises10 = require("node:timers/promises");
|
|
@@ -75514,7 +75514,7 @@ var init_genrule_library_builds = __esm({
|
|
|
75514
75514
|
function nativeFrameworkCompiler(moduleRoot, toolchainBin, directory2) {
|
|
75515
75515
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
75516
75516
|
const sdk2 = swiftSdkPaths(moduleRoot, toolchainBin);
|
|
75517
|
-
const identity2 = (0,
|
|
75517
|
+
const identity2 = (0, import_node_crypto63.createHash)("sha256").update(
|
|
75518
75518
|
JSON.stringify([
|
|
75519
75519
|
distribution?.id,
|
|
75520
75520
|
distribution?.link,
|
|
@@ -75540,7 +75540,7 @@ function nativeFrameworkCompiler(moduleRoot, toolchainBin, directory2) {
|
|
|
75540
75540
|
for (const alias of product.frameworkAliases) {
|
|
75541
75541
|
if (alias.wasmSdkId !== distribution.wasmSdkId || alias.wasmSdkChecksum !== distribution.wasmSdkChecksum)
|
|
75542
75542
|
throw new Error(`framework SDK identity differs for ${alias.name}`);
|
|
75543
|
-
if ((0,
|
|
75543
|
+
if ((0, import_node_crypto63.createHash)("sha256").update(import_node_fs102.default.readFileSync(import_node_path103.default.join(moduleRoot, alias.moduleMap))).digest("hex") !== alias.moduleMapSha256)
|
|
75544
75544
|
throw new Error(`framework module map changed ${alias.moduleMap}`);
|
|
75545
75545
|
const selected = /* @__PURE__ */ new Set();
|
|
75546
75546
|
const reach = (name3) => {
|
|
@@ -75581,7 +75581,7 @@ function nativeFrameworkCompiler(moduleRoot, toolchainBin, directory2) {
|
|
|
75581
75581
|
for (const alias of owner.frameworkAliases) {
|
|
75582
75582
|
if (frameworkResponses[alias.name])
|
|
75583
75583
|
throw new Error(`ambiguous declared framework ${alias.name}`);
|
|
75584
|
-
if ((0,
|
|
75584
|
+
if ((0, import_node_crypto63.createHash)("sha256").update(import_node_fs102.default.readFileSync(import_node_path103.default.join(sdkRoot, alias.moduleMap))).digest("hex") !== alias.moduleMapSha256)
|
|
75585
75585
|
throw new Error(`framework module map changed ${alias.moduleMap}`);
|
|
75586
75586
|
const file = import_node_path103.default.join(root, `${alias.name}.rsp`);
|
|
75587
75587
|
import_node_fs102.default.writeFileSync(file, aliasArtifacts.map(quote3).join("\n") + "\n");
|
|
@@ -75675,11 +75675,11 @@ exec ${shellQuote(configuration.compiler)} "$@"
|
|
|
75675
75675
|
};
|
|
75676
75676
|
return { cc: compiler("clang"), cxx: compiler("clang++"), identity: identity2 };
|
|
75677
75677
|
}
|
|
75678
|
-
var
|
|
75678
|
+
var import_node_crypto63, import_node_fs102, import_node_path103, v7;
|
|
75679
75679
|
var init_native_framework_compiler = __esm({
|
|
75680
75680
|
"src/native-framework-compiler.ts"() {
|
|
75681
75681
|
"use strict";
|
|
75682
|
-
|
|
75682
|
+
import_node_crypto63 = require("node:crypto");
|
|
75683
75683
|
import_node_fs102 = __toESM(require("node:fs"), 1);
|
|
75684
75684
|
import_node_path103 = __toESM(require("node:path"), 1);
|
|
75685
75685
|
v7 = __toESM(require("peachsim/vendor/valibot"), 1);
|
|
@@ -75709,7 +75709,7 @@ function llvmIdentity(toolchainBin, release) {
|
|
|
75709
75709
|
] : ["clang", "wasm-ld", "llvm-ar", "llvm-nm", "llvm-strip"].map(
|
|
75710
75710
|
(name3) => swiftFileChecksum(import_node_path104.default.join(toolchainBin, name3))
|
|
75711
75711
|
);
|
|
75712
|
-
const identity2 = (0,
|
|
75712
|
+
const identity2 = (0, import_node_crypto64.createHash)("sha256").update(JSON.stringify(components)).digest("hex");
|
|
75713
75713
|
toolIdentities.set(toolchainBin, identity2);
|
|
75714
75714
|
return identity2;
|
|
75715
75715
|
}
|
|
@@ -75717,7 +75717,7 @@ function cSdkIdentity(sysroot, resourceDir, frameworks) {
|
|
|
75717
75717
|
const key2 = JSON.stringify([sysroot, resourceDir, frameworks]);
|
|
75718
75718
|
const cached2 = sysrootIdentities.get(key2);
|
|
75719
75719
|
if (cached2) return cached2;
|
|
75720
|
-
const hash = (0,
|
|
75720
|
+
const hash = (0, import_node_crypto64.createHash)("sha256");
|
|
75721
75721
|
const add = (root, relative3) => {
|
|
75722
75722
|
const file = import_node_path104.default.join(root, relative3);
|
|
75723
75723
|
const stat = import_node_fs103.default.statSync(file, { throwIfNoEntry: false });
|
|
@@ -75752,7 +75752,7 @@ function frameworkProbeIdentity(moduleRoot, toolchainBin) {
|
|
|
75752
75752
|
import_node_fs103.default.readFileSync(import_node_path104.default.join(moduleRoot, SWIFT_FRAMEWORK_PRODUCT_FILE), "utf8")
|
|
75753
75753
|
)
|
|
75754
75754
|
);
|
|
75755
|
-
const hash = (0,
|
|
75755
|
+
const hash = (0, import_node_crypto64.createHash)("sha256").update(
|
|
75756
75756
|
JSON.stringify([
|
|
75757
75757
|
headers,
|
|
75758
75758
|
distribution.link,
|
|
@@ -75762,7 +75762,7 @@ function frameworkProbeIdentity(moduleRoot, toolchainBin) {
|
|
|
75762
75762
|
])
|
|
75763
75763
|
);
|
|
75764
75764
|
const objects = distribution.objects.map((file) => [file, distribution.files[file]]);
|
|
75765
|
-
const objectKey = (0,
|
|
75765
|
+
const objectKey = (0, import_node_crypto64.createHash)("sha256").update(JSON.stringify(objects)).digest("hex");
|
|
75766
75766
|
const cache = import_node_path104.default.join(cacheDir4, "framework-symbols-by-object", objectKey);
|
|
75767
75767
|
if (!import_node_fs103.default.existsSync(cache)) {
|
|
75768
75768
|
import_node_fs103.default.mkdirSync(import_node_path104.default.dirname(cache), { recursive: true });
|
|
@@ -75797,7 +75797,7 @@ function frameworkProbeIdentity(moduleRoot, toolchainBin) {
|
|
|
75797
75797
|
const digest2 = import_node_path104.default.join(temporary, "digest");
|
|
75798
75798
|
import_node_fs103.default.writeFileSync(
|
|
75799
75799
|
digest2,
|
|
75800
|
-
(0,
|
|
75800
|
+
(0, import_node_crypto64.createHash)("sha256").update(symbols.sort().join("\n")).digest("hex")
|
|
75801
75801
|
);
|
|
75802
75802
|
import_node_fs103.default.renameSync(digest2, cache);
|
|
75803
75803
|
} finally {
|
|
@@ -75852,7 +75852,7 @@ function buildable(declaration) {
|
|
|
75852
75852
|
return builderOf(declaration) !== null && declaration.dependencies.every(buildable);
|
|
75853
75853
|
}
|
|
75854
75854
|
function declarationInputs(declaration, builder, toolchain, dependencyKeys) {
|
|
75855
|
-
const hash = (0,
|
|
75855
|
+
const hash = (0, import_node_crypto64.createHash)("sha256");
|
|
75856
75856
|
const files2 = declaration.sources.filter(
|
|
75857
75857
|
(source) => !source.generator && !source.file.split(import_node_path104.default.sep).includes(".git")
|
|
75858
75858
|
).map((source) => import_node_path104.default.relative(declaration.packageDir, source.file));
|
|
@@ -75984,12 +75984,12 @@ function genruleArchive(declaration, library, moduleRoot) {
|
|
|
75984
75984
|
}
|
|
75985
75985
|
return combined;
|
|
75986
75986
|
}
|
|
75987
|
-
var import_node_child_process51,
|
|
75987
|
+
var import_node_child_process51, import_node_crypto64, import_node_fs103, import_node_os21, import_node_path104, v8, BUILDERS, cacheDir4, toolIdentities, sysrootIdentities, GENRULE_RECIPE, GENRULE_BUNDLE;
|
|
75988
75988
|
var init_genrule_archives = __esm({
|
|
75989
75989
|
"src/genrule-archives.ts"() {
|
|
75990
75990
|
"use strict";
|
|
75991
75991
|
import_node_child_process51 = require("node:child_process");
|
|
75992
|
-
|
|
75992
|
+
import_node_crypto64 = require("node:crypto");
|
|
75993
75993
|
import_node_fs103 = __toESM(require("node:fs"), 1);
|
|
75994
75994
|
import_node_os21 = __toESM(require("node:os"), 1);
|
|
75995
75995
|
import_node_path104 = __toESM(require("node:path"), 1);
|
|
@@ -76097,7 +76097,7 @@ function privateSentrySlice(entry, moduleRoot) {
|
|
|
76097
76097
|
function nativeSwiftSlice(standin, moduleRoot, generator, configured, artifact) {
|
|
76098
76098
|
if (standin.module !== SENTRY_SWIFT_SLICE.name) return standin;
|
|
76099
76099
|
const native = simulatorNativeLibrary(artifact());
|
|
76100
|
-
if (!native || (0,
|
|
76100
|
+
if (!native || (0, import_node_crypto65.createHash)("sha256").update(import_node_fs104.default.readFileSync(native.file)).digest("hex") !== SENTRY_SWIFT_SLICE.nativeSha256)
|
|
76101
76101
|
return standin;
|
|
76102
76102
|
if (configured)
|
|
76103
76103
|
throw new Error(
|
|
@@ -76155,12 +76155,12 @@ function nativeSwiftSlice(standin, moduleRoot, generator, configured, artifact)
|
|
|
76155
76155
|
}
|
|
76156
76156
|
};
|
|
76157
76157
|
}
|
|
76158
|
-
var import_node_child_process52,
|
|
76158
|
+
var import_node_child_process52, import_node_crypto65, import_node_fs104, import_node_os22, import_node_path105, SENTRY_SWIFT_SLICE;
|
|
76159
76159
|
var init_native_swift_slices = __esm({
|
|
76160
76160
|
"src/native-swift-slices.ts"() {
|
|
76161
76161
|
"use strict";
|
|
76162
76162
|
import_node_child_process52 = require("node:child_process");
|
|
76163
|
-
|
|
76163
|
+
import_node_crypto65 = require("node:crypto");
|
|
76164
76164
|
import_node_fs104 = __toESM(require("node:fs"), 1);
|
|
76165
76165
|
import_node_os22 = __toESM(require("node:os"), 1);
|
|
76166
76166
|
import_node_path105 = __toESM(require("node:path"), 1);
|
|
@@ -76896,7 +76896,7 @@ function treeDigest2(root) {
|
|
|
76896
76896
|
}).join("\n");
|
|
76897
76897
|
const memo2 = digests.get(`tree\0${root}`);
|
|
76898
76898
|
if (memo2?.stamp === stamp) return memo2.digest;
|
|
76899
|
-
const hash = (0,
|
|
76899
|
+
const hash = (0, import_node_crypto66.createHash)("sha256");
|
|
76900
76900
|
for (const name3 of names) {
|
|
76901
76901
|
hash.update(`${name3}\0`);
|
|
76902
76902
|
hash.update(import_node_fs108.default.readFileSync(import_node_path108.default.join(root, name3)));
|
|
@@ -76943,7 +76943,7 @@ function swiftBinaryFramework(binary2) {
|
|
|
76943
76943
|
const found3 = locateXcframework(import_node_path108.default.join(dir, "tree"));
|
|
76944
76944
|
if (found3) return { dir: found3, digest: stored.sha };
|
|
76945
76945
|
}
|
|
76946
|
-
const sha2 = (0,
|
|
76946
|
+
const sha2 = (0, import_node_crypto66.createHash)("sha256").update(import_node_fs108.default.readFileSync(binary2.dir)).digest("hex");
|
|
76947
76947
|
if (sha2 !== stored?.sha || !locateXcframework(import_node_path108.default.join(dir, "tree"))) {
|
|
76948
76948
|
import_node_fs108.default.rmSync(dir, { recursive: true, force: true });
|
|
76949
76949
|
import_node_fs108.default.mkdirSync(import_node_path108.default.join(dir, "tree"), { recursive: true });
|
|
@@ -76955,7 +76955,7 @@ function swiftBinaryFramework(binary2) {
|
|
|
76955
76955
|
return { dir: found2, digest: sha2 };
|
|
76956
76956
|
}
|
|
76957
76957
|
if (stored && import_node_fs108.default.existsSync(archive)) {
|
|
76958
|
-
const sha2 = (0,
|
|
76958
|
+
const sha2 = (0, import_node_crypto66.createHash)("sha256").update(import_node_fs108.default.readFileSync(archive)).digest("hex");
|
|
76959
76959
|
if (sha2 !== expected)
|
|
76960
76960
|
throw new Error(`archive checksum ${sha2} is not the declared checksum ${expected}`);
|
|
76961
76961
|
const found2 = locateXcframework(import_node_path108.default.join(dir, "tree"));
|
|
@@ -76964,7 +76964,7 @@ function swiftBinaryFramework(binary2) {
|
|
|
76964
76964
|
import_node_fs108.default.rmSync(dir, { recursive: true, force: true });
|
|
76965
76965
|
import_node_fs108.default.mkdirSync(import_node_path108.default.join(dir, "tree"), { recursive: true });
|
|
76966
76966
|
exec("curl", ["-fsSL", "--retry", "2", "-o", archive, binary2.url]);
|
|
76967
|
-
const sha = (0,
|
|
76967
|
+
const sha = (0, import_node_crypto66.createHash)("sha256").update(import_node_fs108.default.readFileSync(archive)).digest("hex");
|
|
76968
76968
|
if (sha !== expected) {
|
|
76969
76969
|
import_node_fs108.default.rmSync(dir, { recursive: true, force: true });
|
|
76970
76970
|
throw new Error(`archive checksum ${sha} is not the declared checksum ${expected}`);
|
|
@@ -77089,7 +77089,7 @@ function binaryHeaderSearchPaths(binary2, root, workspaceRoot2, declaredFramewor
|
|
|
77089
77089
|
});
|
|
77090
77090
|
}
|
|
77091
77091
|
}
|
|
77092
|
-
const declaredDigest = (0,
|
|
77092
|
+
const declaredDigest = (0, import_node_crypto66.createHash)("sha256");
|
|
77093
77093
|
for (const framework of providedFrameworks)
|
|
77094
77094
|
declaredDigest.update(`provided/${import_node_path108.default.relative(artifact.dir, framework)}\0`);
|
|
77095
77095
|
for (const [framework, { declared: names, imports: imports2, sdkHeader }] of declared)
|
|
@@ -77159,7 +77159,7 @@ function binaryHeaderSearchPaths(binary2, root, workspaceRoot2, declaredFramewor
|
|
|
77159
77159
|
import_node_fs108.default.copyFileSync(surface.modulemap, modulemap);
|
|
77160
77160
|
}
|
|
77161
77161
|
}
|
|
77162
|
-
const contents2 = (0,
|
|
77162
|
+
const contents2 = (0, import_node_crypto66.createHash)("sha256");
|
|
77163
77163
|
for (const framework of providedFrameworks.filter((item) => !declared.has(item))) {
|
|
77164
77164
|
const modulemap = import_node_path108.default.join(
|
|
77165
77165
|
pending,
|
|
@@ -78574,7 +78574,7 @@ function crateSourceRoots(manifest, searchRoot) {
|
|
|
78574
78574
|
return roots;
|
|
78575
78575
|
}
|
|
78576
78576
|
function crateSourceDigest(manifest, searchRoot) {
|
|
78577
|
-
const hash = (0,
|
|
78577
|
+
const hash = (0, import_node_crypto66.createHash)("sha256");
|
|
78578
78578
|
const walk4 = (dir, root) => {
|
|
78579
78579
|
for (const entry of import_node_fs108.default.readdirSync(dir, { withFileTypes: true }).sort((left, right) => left.name < right.name ? -1 : 1)) {
|
|
78580
78580
|
const full = import_node_path108.default.join(dir, entry.name);
|
|
@@ -79021,7 +79021,7 @@ function standinGenerationInputs(binaries, toolchain, configuredBehavior = {}, s
|
|
|
79021
79021
|
...swiftSources.flags,
|
|
79022
79022
|
...swiftSources.sources.flatMap((source) => [
|
|
79023
79023
|
source,
|
|
79024
|
-
(0,
|
|
79024
|
+
(0, import_node_crypto66.createHash)("sha256").update(import_node_fs108.default.readFileSync(import_node_path108.default.join(binary2.dir, source))).digest("hex")
|
|
79025
79025
|
])
|
|
79026
79026
|
);
|
|
79027
79027
|
continue;
|
|
@@ -79057,7 +79057,7 @@ function standinGenerationInputs(binaries, toolchain, configuredBehavior = {}, s
|
|
|
79057
79057
|
);
|
|
79058
79058
|
}
|
|
79059
79059
|
}
|
|
79060
|
-
return (0,
|
|
79060
|
+
return (0, import_node_crypto66.createHash)("sha256").update(parts.join("\0")).digest("hex");
|
|
79061
79061
|
}
|
|
79062
79062
|
function missingArtifactGap(binary2) {
|
|
79063
79063
|
if (swiftBinaryOnDisk(binary2)) return null;
|
|
@@ -79139,7 +79139,7 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
79139
79139
|
return NO_IMPORTABLE_SURFACE;
|
|
79140
79140
|
}
|
|
79141
79141
|
const configured = new Map(Object.entries(behavior));
|
|
79142
|
-
const hash = (0,
|
|
79142
|
+
const hash = (0, import_node_crypto66.createHash)("sha256").update(
|
|
79143
79143
|
standinGenerationInputs([binary2], toolchain, behavior)
|
|
79144
79144
|
);
|
|
79145
79145
|
hash.update(digest2);
|
|
@@ -79379,7 +79379,7 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
|
|
|
79379
79379
|
);
|
|
79380
79380
|
if (binary2.moduleSources !== void 0)
|
|
79381
79381
|
frameworkInputs.push(
|
|
79382
|
-
`${binary2.target}\0${(0,
|
|
79382
|
+
`${binary2.target}\0${(0, import_node_crypto66.createHash)("sha256").update(
|
|
79383
79383
|
[iosSdkId(), ...swiftSources.flags, ...swiftSources.sources, ...texts].join(
|
|
79384
79384
|
"\0"
|
|
79385
79385
|
)
|
|
@@ -79420,7 +79420,7 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
|
|
|
79420
79420
|
import_node_fs108.default.mkdirSync(sourceFrameworks);
|
|
79421
79421
|
const frameworks = {
|
|
79422
79422
|
dirs: [...frameworkDirs, sourceFrameworks].sort(),
|
|
79423
|
-
digest: (0,
|
|
79423
|
+
digest: (0, import_node_crypto66.createHash)("sha256").update(frameworkInputs.sort().join("\0")).digest("hex"),
|
|
79424
79424
|
surfaces: frameworkSurfaces
|
|
79425
79425
|
};
|
|
79426
79426
|
const siblings = new Map(
|
|
@@ -79539,12 +79539,12 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
|
|
|
79539
79539
|
import_node_fs108.default.rmSync(modules, { recursive: true, force: true });
|
|
79540
79540
|
}
|
|
79541
79541
|
}
|
|
79542
|
-
var import_node_child_process54,
|
|
79542
|
+
var import_node_child_process54, import_node_crypto66, import_node_fs108, import_node_path108, 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;
|
|
79543
79543
|
var init_swift_standins = __esm({
|
|
79544
79544
|
"src/swift-standins.ts"() {
|
|
79545
79545
|
"use strict";
|
|
79546
79546
|
import_node_child_process54 = require("node:child_process");
|
|
79547
|
-
|
|
79547
|
+
import_node_crypto66 = require("node:crypto");
|
|
79548
79548
|
import_node_fs108 = __toESM(require("node:fs"), 1);
|
|
79549
79549
|
import_node_path108 = __toESM(require("node:path"), 1);
|
|
79550
79550
|
init_forked_script_contract();
|
|
@@ -79576,7 +79576,7 @@ var init_swift_standins = __esm({
|
|
|
79576
79576
|
init_swiftTargetContract();
|
|
79577
79577
|
TRIPLE = SWIFT_WASM_TRIPLE;
|
|
79578
79578
|
cacheDir5 = import_node_path108.default.join(cacheDir(), "swift-standins");
|
|
79579
|
-
key = (...parts) => (0,
|
|
79579
|
+
key = (...parts) => (0, import_node_crypto66.createHash)("sha256").update(parts.join("\0")).digest("hex").slice(0, 32);
|
|
79580
79580
|
digests = /* @__PURE__ */ new Map();
|
|
79581
79581
|
isBinaryLibraryFile = (file) => /\.(?:a|dylib|o|tbd)$/i.test(file);
|
|
79582
79582
|
OBJC_IMPORT = /#\s*(?:import|include)\s*[<"](?:[\w+-]+\/)?([\w+.-]+\.h)[>"]/g;
|
|
@@ -79814,14 +79814,14 @@ function* xcodeObjCInputSteps(app, binaries, moduleRoot, products, sourceRoot =
|
|
|
79814
79814
|
Infinity
|
|
79815
79815
|
);
|
|
79816
79816
|
const backport = DOUBLE_CONVERSION_WASM64_BACKPORT;
|
|
79817
|
-
if (import_node_path109.default.basename(file) !== "utils.h" || (0,
|
|
79817
|
+
if (import_node_path109.default.basename(file) !== "utils.h" || (0, import_node_crypto67.createHash)("sha256").update(bytes).digest("hex") !== backport.originalSha256) {
|
|
79818
79818
|
sources.set(file, bytes);
|
|
79819
79819
|
return;
|
|
79820
79820
|
}
|
|
79821
79821
|
const derived = Buffer.from(
|
|
79822
79822
|
bytes.toString("utf8").replace(backport.before, backport.after)
|
|
79823
79823
|
);
|
|
79824
|
-
if ((0,
|
|
79824
|
+
if ((0, import_node_crypto67.createHash)("sha256").update(derived).digest("hex") !== backport.derivedSha256)
|
|
79825
79825
|
throw new Error(`DoubleConversion backport derived source differs: ${file}`);
|
|
79826
79826
|
sources.set(file, derived);
|
|
79827
79827
|
derivations[file] = {
|
|
@@ -80227,7 +80227,7 @@ function prepareXcodeSwiftProducts(app, binaries, moduleRoot) {
|
|
|
80227
80227
|
const staged = withFrameworkCompanionImports(original);
|
|
80228
80228
|
if (staged !== original) sources.set(file, Buffer.from(staged));
|
|
80229
80229
|
}
|
|
80230
|
-
const digest2 = (bytes) => (0,
|
|
80230
|
+
const digest2 = (bytes) => (0, import_node_crypto67.createHash)("sha256").update(bytes).digest("hex");
|
|
80231
80231
|
const providers = /* @__PURE__ */ new Map();
|
|
80232
80232
|
for (const target of targets) {
|
|
80233
80233
|
if (!supplied.has(target.moduleName)) continue;
|
|
@@ -80581,7 +80581,7 @@ async function prepareXcodeNativeInputs(app, binaries, moduleRoot, purpose) {
|
|
|
80581
80581
|
products
|
|
80582
80582
|
);
|
|
80583
80583
|
const checkouts = remoteSwiftCheckouts(app.rootDir);
|
|
80584
|
-
const digest2 = (bytes) => (0,
|
|
80584
|
+
const digest2 = (bytes) => (0, import_node_crypto67.createHash)("sha256").update(bytes).digest("hex");
|
|
80585
80585
|
const inputs2 = Object.fromEntries(
|
|
80586
80586
|
[...sources].map(([file, bytes]) => [file, digest2(bytes)])
|
|
80587
80587
|
);
|
|
@@ -80945,12 +80945,12 @@ ${reported.trimEnd() || `Clang exited with status ${result.status}`}`;
|
|
|
80945
80945
|
import_node_fs109.default.closeSync(descriptor);
|
|
80946
80946
|
}
|
|
80947
80947
|
}
|
|
80948
|
-
var import_node_child_process55,
|
|
80948
|
+
var import_node_child_process55, import_node_crypto67, import_node_fs109, import_node_path109, SwiftObjCCompilationError, isDirectory4, isSdkInclude, FRAMEWORK_IMPORT, OWN_IMPORT;
|
|
80949
80949
|
var init_swift_objc_compile = __esm({
|
|
80950
80950
|
"src/swift-objc-compile.ts"() {
|
|
80951
80951
|
"use strict";
|
|
80952
80952
|
import_node_child_process55 = require("node:child_process");
|
|
80953
|
-
|
|
80953
|
+
import_node_crypto67 = require("node:crypto");
|
|
80954
80954
|
import_node_fs109 = __toESM(require("node:fs"), 1);
|
|
80955
80955
|
import_node_path109 = __toESM(require("node:path"), 1);
|
|
80956
80956
|
init_mapLimit();
|
|
@@ -84988,11 +84988,11 @@ function coreDataModelDirectories(files2) {
|
|
|
84988
84988
|
}
|
|
84989
84989
|
return [...models].sort();
|
|
84990
84990
|
}
|
|
84991
|
-
var
|
|
84991
|
+
var import_node_crypto68, import_node_fs113, import_node_path113, attributeTypes, deleteRules, EXTERNAL_BINARY, PRESERVE_AFTER_DELETION, yes, common, uid, NULL, classChains, KeyedArchive, sha2563;
|
|
84992
84992
|
var init_core_data_model = __esm({
|
|
84993
84993
|
"src/core-data-model.ts"() {
|
|
84994
84994
|
"use strict";
|
|
84995
|
-
|
|
84995
|
+
import_node_crypto68 = require("node:crypto");
|
|
84996
84996
|
import_node_fs113 = require("node:fs");
|
|
84997
84997
|
import_node_path113 = __toESM(require("node:path"), 1);
|
|
84998
84998
|
init_core_data_entity_classes();
|
|
@@ -85111,7 +85111,7 @@ var init_core_data_model = __esm({
|
|
|
85111
85111
|
});
|
|
85112
85112
|
}
|
|
85113
85113
|
};
|
|
85114
|
-
sha2563 = (...parts) => (0,
|
|
85114
|
+
sha2563 = (...parts) => (0, import_node_crypto68.createHash)("sha256").update(
|
|
85115
85115
|
Buffer.concat(
|
|
85116
85116
|
parts.map(
|
|
85117
85117
|
(part) => Array.isArray(part) ? Buffer.from(part) : Buffer.from(part)
|
|
@@ -87309,7 +87309,7 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
|
|
|
87309
87309
|
(binary2) => binary2.publicHeaders === void 0 && binary2.placeholder === void 0 && swiftBinaryOnDisk(binary2) && binaryHeaderSearchPaths(binary2, staged, app.rootDir).headers.length === 1
|
|
87310
87310
|
))
|
|
87311
87311
|
return [...binaries];
|
|
87312
|
-
const hash = (0,
|
|
87312
|
+
const hash = (0, import_node_crypto69.createHash)("sha256");
|
|
87313
87313
|
hash.update(
|
|
87314
87314
|
JSON.stringify([
|
|
87315
87315
|
inputs2.targets,
|
|
@@ -87518,12 +87518,12 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
|
|
|
87518
87518
|
);
|
|
87519
87519
|
return result;
|
|
87520
87520
|
}
|
|
87521
|
-
var import_node_child_process57,
|
|
87521
|
+
var import_node_child_process57, import_node_crypto69, import_node_fs114, import_node_path114, cachedInputs;
|
|
87522
87522
|
var init_swift_cxx_reachable = __esm({
|
|
87523
87523
|
"src/swift-cxx-reachable.ts"() {
|
|
87524
87524
|
"use strict";
|
|
87525
87525
|
import_node_child_process57 = require("node:child_process");
|
|
87526
|
-
|
|
87526
|
+
import_node_crypto69 = require("node:crypto");
|
|
87527
87527
|
import_node_fs114 = __toESM(require("node:fs"), 1);
|
|
87528
87528
|
import_node_path114 = __toESM(require("node:path"), 1);
|
|
87529
87529
|
init_is_record();
|
|
@@ -87841,7 +87841,7 @@ async function wasmPortableAssembly(binaries, toolchainBin, moduleRoot) {
|
|
|
87841
87841
|
const clang = import_node_path116.default.join(toolchainBin, "clang");
|
|
87842
87842
|
const empty = (binary2, file) => {
|
|
87843
87843
|
const source = import_node_path116.default.join(binary2.dir, file);
|
|
87844
|
-
const key2 = (0,
|
|
87844
|
+
const key2 = (0, import_node_crypto70.createHash)("sha256").update(
|
|
87845
87845
|
JSON.stringify([
|
|
87846
87846
|
clang,
|
|
87847
87847
|
sdk2.sysroot,
|
|
@@ -87886,7 +87886,7 @@ async function wasmPortableAssembly(binaries, toolchainBin, moduleRoot) {
|
|
|
87886
87886
|
return new Set(portable.flat());
|
|
87887
87887
|
}
|
|
87888
87888
|
async function swiftPackages(entry, app) {
|
|
87889
|
-
const stamp = (file) => import_node_fs116.default.existsSync(file) ? (0,
|
|
87889
|
+
const stamp = (file) => import_node_fs116.default.existsSync(file) ? (0, import_node_crypto70.createHash)("sha256").update(import_node_fs116.default.readFileSync(file)).digest("hex") : null;
|
|
87890
87890
|
const owners = [...app.frameworks, app].map((target) => ({
|
|
87891
87891
|
module: target.moduleName,
|
|
87892
87892
|
products: target.packageProducts ?? []
|
|
@@ -89049,7 +89049,7 @@ async function buildSwiftResourceTable(project, baseUrl, inputs2) {
|
|
|
89049
89049
|
const source = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true }).decode(
|
|
89050
89050
|
bytes
|
|
89051
89051
|
);
|
|
89052
|
-
const sha2565 = (0,
|
|
89052
|
+
const sha2565 = (0, import_node_crypto70.createHash)("sha256").update(bytes).digest("hex");
|
|
89053
89053
|
const bundle = swiftResourceBundleForFile(bundles, key2);
|
|
89054
89054
|
if (!bundle && inputs2["Package.swift"])
|
|
89055
89055
|
throw new Error(`metal source ${key2} has no resource target bundle`);
|
|
@@ -89072,7 +89072,7 @@ async function buildSwiftResourceTable(project, baseUrl, inputs2) {
|
|
|
89072
89072
|
const bytes = readPackageFile2(project.packagePath, disk, limits.imageBytes);
|
|
89073
89073
|
pdfs.set(file, {
|
|
89074
89074
|
file: disk,
|
|
89075
|
-
sha256: (0,
|
|
89075
|
+
sha256: (0, import_node_crypto70.createHash)("sha256").update(bytes).digest("hex")
|
|
89076
89076
|
});
|
|
89077
89077
|
}
|
|
89078
89078
|
const pdfRasters = rasterizePdfFiles([...pdfs.values()], limits);
|
|
@@ -89118,7 +89118,7 @@ async function buildSwiftResourceTable(project, baseUrl, inputs2) {
|
|
|
89118
89118
|
throw new Error("swift image pack exceeds the compile service caps");
|
|
89119
89119
|
}
|
|
89120
89120
|
imageBytes += bytes.length;
|
|
89121
|
-
const hash = (0,
|
|
89121
|
+
const hash = (0, import_node_crypto70.createHash)("sha256").update(bytes).digest("hex").slice(0, 16);
|
|
89122
89122
|
const bundle = table[bundlePath] ?? /* @__PURE__ */ Object.create(null);
|
|
89123
89123
|
const pixelSize = ext === ".png" ? readPngDimensions(bytes) : null;
|
|
89124
89124
|
const variant2 = {
|
|
@@ -89425,7 +89425,7 @@ function updateSwiftConfigStamp(hash, packagePath) {
|
|
|
89425
89425
|
hash.update(JSON.stringify(gates.map((name3) => swiftWasm64PlatformGates[name3])));
|
|
89426
89426
|
}
|
|
89427
89427
|
function sourceStamp(packagePath, moduleRootOverride, hosted = false) {
|
|
89428
|
-
const hash = (0,
|
|
89428
|
+
const hash = (0, import_node_crypto70.createHash)("sha256");
|
|
89429
89429
|
hash.update(packagePath);
|
|
89430
89430
|
updateSwiftConfigStamp(hash, packagePath);
|
|
89431
89431
|
const libraries = projects().get(packagePath)?.libraries;
|
|
@@ -89454,7 +89454,7 @@ function sourceStamp(packagePath, moduleRootOverride, hosted = false) {
|
|
|
89454
89454
|
return hash.digest("hex").slice(0, 16);
|
|
89455
89455
|
}
|
|
89456
89456
|
function sourceContentStamp(packagePath, moduleRootOverride) {
|
|
89457
|
-
const hash = (0,
|
|
89457
|
+
const hash = (0, import_node_crypto70.createHash)("sha256");
|
|
89458
89458
|
hash.update(compilerSourceDigest);
|
|
89459
89459
|
updateSwiftConfigStamp(hash, packagePath);
|
|
89460
89460
|
const libraries = projects().get(packagePath)?.libraries;
|
|
@@ -89486,7 +89486,7 @@ function moduleStamp(packagePath, moduleRootOverride, hosted) {
|
|
|
89486
89486
|
(root) => import_node_fs116.default.existsSync(import_node_path116.default.join(root, "toolchain.json"))
|
|
89487
89487
|
);
|
|
89488
89488
|
if (!moduleRoot) return "";
|
|
89489
|
-
const hash = (0,
|
|
89489
|
+
const hash = (0, import_node_crypto70.createHash)("sha256");
|
|
89490
89490
|
hash.update(moduleRoot);
|
|
89491
89491
|
for (const relative3 of swiftModuleInputFiles(moduleRoot)) {
|
|
89492
89492
|
hash.update(relative3);
|
|
@@ -89496,7 +89496,7 @@ function moduleStamp(packagePath, moduleRootOverride, hosted) {
|
|
|
89496
89496
|
}
|
|
89497
89497
|
function otherInputs(input, standalone) {
|
|
89498
89498
|
const { files: _files, ...rest } = input;
|
|
89499
|
-
return (0,
|
|
89499
|
+
return (0, import_node_crypto70.createHash)("sha256").update(JSON.stringify({ ...rest, standalone })).digest("hex");
|
|
89500
89500
|
}
|
|
89501
89501
|
function icuUrl(origin, artifact) {
|
|
89502
89502
|
return "url" in artifact.icu ? artifact.icu.url : `${origin}${ICU_PATH}${swiftIcuAddress(artifact.icu)}`;
|
|
@@ -89511,7 +89511,7 @@ function standinLibraries(binaries, standins, rootDir, toolchain, rustWasm64) {
|
|
|
89511
89511
|
for (const standin of standins) {
|
|
89512
89512
|
if (!standin.prebuilt) continue;
|
|
89513
89513
|
const bytes = Buffer.from(standin.prebuilt.library, "base64");
|
|
89514
|
-
const digest2 = (0,
|
|
89514
|
+
const digest2 = (0, import_node_crypto70.createHash)("sha256").update(bytes).digest("hex");
|
|
89515
89515
|
const dir = import_node_path116.default.join(swiftCacheDir(), "native-archives", digest2);
|
|
89516
89516
|
import_node_fs116.default.mkdirSync(dir, { recursive: true });
|
|
89517
89517
|
const library = import_node_path116.default.join(dir, `lib${standin.module}.a`);
|
|
@@ -89835,7 +89835,7 @@ function swiftBuildRoot(packagePath, moduleRoot) {
|
|
|
89835
89835
|
return import_node_path116.default.join(
|
|
89836
89836
|
swiftCacheDir(),
|
|
89837
89837
|
"swift-builds",
|
|
89838
|
-
(0,
|
|
89838
|
+
(0, import_node_crypto70.createHash)("sha256").update(`${compilerKey}\0${buildKeyPath}`).digest("hex").slice(0, 16)
|
|
89839
89839
|
);
|
|
89840
89840
|
}
|
|
89841
89841
|
function installedWorkspaceInput(packagePath, entry, moduleRoot) {
|
|
@@ -90137,7 +90137,7 @@ async function fetchSwiftDyldTable(moduleUrl, module2, signal) {
|
|
|
90137
90137
|
const response = await fetch(url, { signal });
|
|
90138
90138
|
if (!response.ok) throw new Error(`swift compile: ${url} answered ${response.status}`);
|
|
90139
90139
|
const bytes = Buffer.from(await response.arrayBuffer());
|
|
90140
|
-
if (bytes.length !== byteLength || (0,
|
|
90140
|
+
if (bytes.length !== byteLength || (0, import_node_crypto70.createHash)("sha256").update(bytes).digest("hex") !== sha2565)
|
|
90141
90141
|
throw new Error(`swift compile: ${url} does not match its module's index`);
|
|
90142
90142
|
return { dyldTable: { sha256: sha2565, bytes } };
|
|
90143
90143
|
}
|
|
@@ -90215,13 +90215,13 @@ function swiftArtifactIsAvailable(origin, url, hash) {
|
|
|
90215
90215
|
(project) => project.artifacts.some((artifact) => artifact.hash === hash)
|
|
90216
90216
|
);
|
|
90217
90217
|
}
|
|
90218
|
-
var import_node_async_hooks2, import_node_child_process59,
|
|
90218
|
+
var import_node_async_hooks2, import_node_child_process59, import_node_crypto70, import_node_fs116, import_node_os24, import_node_path116, 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;
|
|
90219
90219
|
var init_swift_host = __esm({
|
|
90220
90220
|
"src/swift-host.ts"() {
|
|
90221
90221
|
"use strict";
|
|
90222
90222
|
import_node_async_hooks2 = require("node:async_hooks");
|
|
90223
90223
|
import_node_child_process59 = require("node:child_process");
|
|
90224
|
-
|
|
90224
|
+
import_node_crypto70 = require("node:crypto");
|
|
90225
90225
|
import_node_fs116 = __toESM(require("node:fs"), 1);
|
|
90226
90226
|
import_node_os24 = __toESM(require("node:os"), 1);
|
|
90227
90227
|
import_node_path116 = __toESM(require("node:path"), 1);
|
|
@@ -90450,7 +90450,7 @@ function hashTree(root) {
|
|
|
90450
90450
|
for (const entry of import_node_fs119.default.readdirSync(root, { recursive: true, withFileTypes: true })) {
|
|
90451
90451
|
if (!entry.isFile()) continue;
|
|
90452
90452
|
const file = import_node_path119.default.join(entry.parentPath, entry.name);
|
|
90453
|
-
hashes[import_node_path119.default.relative(root, file).split(import_node_path119.default.sep).join("/")] = (0,
|
|
90453
|
+
hashes[import_node_path119.default.relative(root, file).split(import_node_path119.default.sep).join("/")] = (0, import_node_crypto71.createHash)("sha256").update(import_node_fs119.default.readFileSync(file)).digest("hex");
|
|
90454
90454
|
}
|
|
90455
90455
|
return Object.fromEntries(Object.entries(hashes).sort(([a], [b]) => a < b ? -1 : 1));
|
|
90456
90456
|
}
|
|
@@ -90500,12 +90500,12 @@ async function runInstalledTurboCodegen(appRoot, outDir, signal) {
|
|
|
90500
90500
|
files: hashTree(generatedRoot)
|
|
90501
90501
|
};
|
|
90502
90502
|
}
|
|
90503
|
-
var import_node_child_process60,
|
|
90503
|
+
var import_node_child_process60, import_node_crypto71, import_node_fs119, import_node_module15, import_node_path119, import_node_util14, run10, RENDERER_PODS, RENDERER_PODS_VERSIONED, COMPILED_SOURCE, LEGACY_BRIDGE_DEV_SUPPORT, LEGACY_BRIDGE_PODS, LEGACY_BRIDGE_PODS_VERSIONED;
|
|
90504
90504
|
var init_turbo_codegen_intake = __esm({
|
|
90505
90505
|
"src/turbo-codegen-intake.ts"() {
|
|
90506
90506
|
"use strict";
|
|
90507
90507
|
import_node_child_process60 = require("node:child_process");
|
|
90508
|
-
|
|
90508
|
+
import_node_crypto71 = require("node:crypto");
|
|
90509
90509
|
import_node_fs119 = __toESM(require("node:fs"), 1);
|
|
90510
90510
|
import_node_module15 = require("node:module");
|
|
90511
90511
|
import_node_path119 = __toESM(require("node:path"), 1);
|
|
@@ -94273,11 +94273,11 @@ extern "C" __attribute__((export_name("peach_fabric_component_names"))) const ch
|
|
|
94273
94273
|
}
|
|
94274
94274
|
`;
|
|
94275
94275
|
}
|
|
94276
|
-
var
|
|
94276
|
+
var import_node_crypto72, import_node_fs120, import_node_path120, 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, sha2564, podspecList, versionParts, iosOf, JS_CALL_INVOKER, FABRIC_HOST_INCLUDES, FABRIC_HOST_PAPER_INCLUDES, PAPER_UIKIT_BRIDGE_SWIFT;
|
|
94277
94277
|
var init_turbo_source = __esm({
|
|
94278
94278
|
"src/turbo-source.ts"() {
|
|
94279
94279
|
"use strict";
|
|
94280
|
-
|
|
94280
|
+
import_node_crypto72 = require("node:crypto");
|
|
94281
94281
|
import_node_fs120 = __toESM(require("node:fs"), 1);
|
|
94282
94282
|
import_node_path120 = __toESM(require("node:path"), 1);
|
|
94283
94283
|
init_cocoapods_trunk();
|
|
@@ -94403,7 +94403,7 @@ var init_turbo_source = __esm({
|
|
|
94403
94403
|
REACT_NATIVE_BARE_HEADER_DIRS = [
|
|
94404
94404
|
"ReactCommon/react/renderer/imagemanager/platform/ios/react/renderer/imagemanager"
|
|
94405
94405
|
];
|
|
94406
|
-
sha2564 = (data) => (0,
|
|
94406
|
+
sha2564 = (data) => (0, import_node_crypto72.createHash)("sha256").update(data).digest("hex");
|
|
94407
94407
|
podspecList = podspecAttribute;
|
|
94408
94408
|
versionParts = (version2) => version2.split(/[.-]/).map((p) => Number(p) || 0);
|
|
94409
94409
|
iosOf = (member) => object6(member.ios) ? member.ios : null;
|
|
@@ -95158,11 +95158,11 @@ function collectTurboCompileInput(collection, runtime, iosDeploymentTarget, depe
|
|
|
95158
95158
|
resources: { ...dependencies?.resources, ...collection.resources }
|
|
95159
95159
|
};
|
|
95160
95160
|
}
|
|
95161
|
-
var
|
|
95161
|
+
var import_node_crypto73, import_node_fs121, import_node_module16, import_node_os25, import_node_path121;
|
|
95162
95162
|
var init_turbo_compile = __esm({
|
|
95163
95163
|
"src/turbo-compile.ts"() {
|
|
95164
95164
|
"use strict";
|
|
95165
|
-
|
|
95165
|
+
import_node_crypto73 = require("node:crypto");
|
|
95166
95166
|
import_node_fs121 = __toESM(require("node:fs"), 1);
|
|
95167
95167
|
import_node_module16 = require("node:module");
|
|
95168
95168
|
import_node_os25 = __toESM(require("node:os"), 1);
|
|
@@ -95379,8 +95379,8 @@ function reactNativeCoreEntry(reactNativeRoot, moduleRoot, mode) {
|
|
|
95379
95379
|
);
|
|
95380
95380
|
if (!isRecord(manifest) || typeof manifest.version !== "string")
|
|
95381
95381
|
throw new Error(`${reactNativeRoot}: react-native has no version`);
|
|
95382
|
-
const headers = (0,
|
|
95383
|
-
const sources = (0,
|
|
95382
|
+
const headers = (0, import_node_crypto74.createHash)("sha256");
|
|
95383
|
+
const sources = (0, import_node_crypto74.createHash)("sha256");
|
|
95384
95384
|
const walk4 = (relative3) => {
|
|
95385
95385
|
for (const file of import_node_fs123.default.readdirSync(import_node_path123.default.join(reactNativeRoot, relative3), { withFileTypes: true }).sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0)) {
|
|
95386
95386
|
if (file.name === "node_modules" || file.name.startsWith(".")) continue;
|
|
@@ -95447,11 +95447,11 @@ async function prebuiltReactNativeCore(project, reactNativeRoot, moduleRoot, mod
|
|
|
95447
95447
|
throw new Error(`React Native core ${entry.key} does not match its descriptor`);
|
|
95448
95448
|
return readReactNativeCore(JSON.parse(import_node_fs123.default.readFileSync(file, "utf8")));
|
|
95449
95449
|
}
|
|
95450
|
-
var
|
|
95450
|
+
var import_node_crypto74, import_node_fs123, import_node_module17, import_node_path123, import_node_util15, recipe, strings4, building;
|
|
95451
95451
|
var init_react_native_core = __esm({
|
|
95452
95452
|
"src/react-native-core.ts"() {
|
|
95453
95453
|
"use strict";
|
|
95454
|
-
|
|
95454
|
+
import_node_crypto74 = require("node:crypto");
|
|
95455
95455
|
import_node_fs123 = __toESM(require("node:fs"), 1);
|
|
95456
95456
|
import_node_module17 = require("node:module");
|
|
95457
95457
|
import_node_path123 = __toESM(require("node:path"), 1);
|
|
@@ -95476,7 +95476,7 @@ function exportedNames(moduleRoot, name3) {
|
|
|
95476
95476
|
const modules = import_node_path124.default.join(moduleRoot, "modules");
|
|
95477
95477
|
const module2 = import_node_path124.default.join(modules, `${name3}.swiftmodule`);
|
|
95478
95478
|
if (!import_node_fs124.default.existsSync(module2)) return /* @__PURE__ */ new Set();
|
|
95479
|
-
const key2 = (0,
|
|
95479
|
+
const key2 = (0, import_node_crypto75.createHash)("sha256").update(import_node_fs124.default.readFileSync(module2)).digest("hex");
|
|
95480
95480
|
const directory2 = import_node_path124.default.join(swiftCacheDir(), "swift-public-names");
|
|
95481
95481
|
const receipt = import_node_path124.default.join(directory2, `${key2}.json`);
|
|
95482
95482
|
if (import_node_fs124.default.existsSync(receipt)) {
|
|
@@ -95559,12 +95559,12 @@ function clangTypeOwnership(moduleRoot, module2) {
|
|
|
95559
95559
|
}
|
|
95560
95560
|
);
|
|
95561
95561
|
}
|
|
95562
|
-
var import_node_child_process62,
|
|
95562
|
+
var import_node_child_process62, import_node_crypto75, import_node_fs124, import_node_path124, blockTypedef, enumTypedef, enumConstant, swiftPrivate;
|
|
95563
95563
|
var init_swift_clang_type_ownership = __esm({
|
|
95564
95564
|
"src/swift-clang-type-ownership.ts"() {
|
|
95565
95565
|
"use strict";
|
|
95566
95566
|
import_node_child_process62 = require("node:child_process");
|
|
95567
|
-
|
|
95567
|
+
import_node_crypto75 = require("node:crypto");
|
|
95568
95568
|
import_node_fs124 = __toESM(require("node:fs"), 1);
|
|
95569
95569
|
import_node_path124 = __toESM(require("node:path"), 1);
|
|
95570
95570
|
init_is_record();
|
|
@@ -97207,7 +97207,7 @@ function targetSettings2(units) {
|
|
|
97207
97207
|
}
|
|
97208
97208
|
function oneSDKStamp(oneSDK) {
|
|
97209
97209
|
if (!oneSDK) return "";
|
|
97210
|
-
const hash = (0,
|
|
97210
|
+
const hash = (0, import_node_crypto76.createHash)("sha256");
|
|
97211
97211
|
for (const files2 of [oneSDK.targets, oneSDK.entry])
|
|
97212
97212
|
for (const [name3, source] of [...files2].sort(([a], [b]) => a.localeCompare(b)))
|
|
97213
97213
|
hash.update(`${name3}\0${source}\0`);
|
|
@@ -97258,7 +97258,7 @@ ${bridgeModules.length ? "import React\n" : ""}${oneSDK ? "import One\nimport On
|
|
|
97258
97258
|
`;
|
|
97259
97259
|
}
|
|
97260
97260
|
function expoSwiftPreparedKey(base, units, reactProviderStamp) {
|
|
97261
|
-
const hash = (0,
|
|
97261
|
+
const hash = (0, import_node_crypto76.createHash)("sha256");
|
|
97262
97262
|
hash.update(base);
|
|
97263
97263
|
hash.update(reactProviderStamp);
|
|
97264
97264
|
for (const unit2 of units) {
|
|
@@ -97632,8 +97632,8 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
97632
97632
|
}
|
|
97633
97633
|
return provider;
|
|
97634
97634
|
})() : void 0;
|
|
97635
|
-
const reactProviderStamp = reactProvider ? (0,
|
|
97636
|
-
const key2 = (0,
|
|
97635
|
+
const reactProviderStamp = reactProvider ? (0, import_node_crypto76.createHash)("sha256").update(JSON.stringify(reactProvider)).digest("hex") : "";
|
|
97636
|
+
const key2 = (0, import_node_crypto76.createHash)("sha256").update(import_node_fs125.default.realpathSync(root)).digest("hex");
|
|
97637
97637
|
const unitContentStamp = (unit2) => sourceContentStamp(expoSwiftPackage(key2, unit2.moduleId), module2.root) + (unit2.reactNativeProvider ? `:${reactProviderStamp}` : "");
|
|
97638
97638
|
const failures = /* @__PURE__ */ new Map();
|
|
97639
97639
|
const failureRecords = /* @__PURE__ */ new Map();
|
|
@@ -97975,13 +97975,13 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
97975
97975
|
throw failure2;
|
|
97976
97976
|
}
|
|
97977
97977
|
}
|
|
97978
|
-
var import_node_async_hooks3, import_node_child_process63,
|
|
97978
|
+
var import_node_async_hooks3, import_node_child_process63, import_node_crypto76, import_node_fs125, import_node_module18, import_node_os26, import_node_path125, 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;
|
|
97979
97979
|
var init_expo_swift_host = __esm({
|
|
97980
97980
|
"src/expo-swift-host.ts"() {
|
|
97981
97981
|
"use strict";
|
|
97982
97982
|
import_node_async_hooks3 = require("node:async_hooks");
|
|
97983
97983
|
import_node_child_process63 = require("node:child_process");
|
|
97984
|
-
|
|
97984
|
+
import_node_crypto76 = require("node:crypto");
|
|
97985
97985
|
import_node_fs125 = __toESM(require("node:fs"), 1);
|
|
97986
97986
|
import_node_module18 = require("node:module");
|
|
97987
97987
|
import_node_os26 = __toESM(require("node:os"), 1);
|