peachsim 0.1.2624 → 0.1.2626
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/diagnose-native.ts +717 -0
- package/cli/commands/perf-native.ts +120 -51
- 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 +424 -339
- 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-DH6VFUJ3.mjs → acorn-JXJYSAIN.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-YOD53JTM.mjs → chunk-26TN2VTX.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-T7C6Z5UH.mjs → chunk-2NVWTTQ4.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LT533AHJ.mjs → chunk-2R77YMAI.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-XONCLAVA.mjs → chunk-4KZSU4Q6.mjs} +21 -13
- package/dist-lib/esm-chunks/{chunk-IMI2NE4A.mjs → chunk-5STOTQGG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HKPKCJI5.mjs → chunk-5TQNPFPN.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-OLAYY7SG.mjs → chunk-5UEXET5Y.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LMWSFXYN.mjs → chunk-62JXISPM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-A2WMBGJO.mjs → chunk-7ASIV44B.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-JHMD4G4V.mjs → chunk-AETFJFSQ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-UJORQHAE.mjs → chunk-AVFNDICR.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-AV7G5PTE.mjs → chunk-BFQUJ4RC.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-265THLTP.mjs → chunk-BSNIUHSI.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CM2NU5MS.mjs → chunk-F6KLM535.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-LOQBWIPM.mjs → chunk-HESCA2JF.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-N4ZJZUCO.mjs → chunk-IYJG62ST.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QNXV766K.mjs → chunk-LBDHHUER.mjs} +81 -15
- package/dist-lib/esm-chunks/{chunk-EFQFJ7M6.mjs → chunk-LWOZ3LUO.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-3XA5HYI5.mjs → chunk-T4ZKKV6P.mjs} +9 -8
- package/dist-lib/esm-chunks/{chunk-2YHIYKY2.mjs → chunk-UD7ON4ZV.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-LCO2EXKF.mjs → chunk-V4CRDOYA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LD7Z3NDO.mjs → chunk-WC43FELF.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QZ5HTMWV.mjs → chunk-XCUDQYYK.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VH4BJS5V.mjs → chunk-YPBNNV6N.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-MDVTDJ65.mjs → metro-layout-parser-E34XATI4.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-ZN7I4FYC.mjs → swift-package-prebuilt-73BSTPFQ.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-DUVE2OXH.mjs → swift-sdk-app-module-L7AT6SCB.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-YSWQBCYV.mjs → swift-sdk-image-5NH574IM.mjs} +16 -18
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-MZ235WSK.mjs → swift-sdk-image-producer-YVZHH2LX.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +325 -240
- 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 +428 -343
- package/dist-lib/host/fetch-proxy-handler.cjs +76 -8
- 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 +4 -3
- 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 +87 -86
- package/dist-lib/public-origins-lib.json +69 -64
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +8 -8
- package/dist-lib/skills.cjs +465 -380
- package/dist-lib/swift-compile.cjs +142 -62
- package/dist-lib/swift-compile.mjs +12 -12
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +6 -6
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +1 -1
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/src/react-native-core-build.ts +12 -12
- package/src/react-native-core.ts +3 -7
- package/src/swift-compiler-digest.ts +37 -10
- package/src/swift-distribution-contract.ts +6 -1
- package/src/swift-distribution.lock.json +4 -2
- package/src/swift-sdk-image-recipe.ts +20 -0
- package/src/swift-sdk-image.ts +2 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2626 | (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;
|
|
@@ -17922,7 +17922,10 @@ var init_react_native_core_digest = __esm({
|
|
|
17922
17922
|
});
|
|
17923
17923
|
|
|
17924
17924
|
// src/swift-compiler-digest.ts
|
|
17925
|
-
|
|
17925
|
+
function swiftArchiveCompilerDigestValue() {
|
|
17926
|
+
return true ? "53326609252f356d24373d653503ae1ad7e08db0a4b20c5236e7e7d1c769ee7f" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname, "archive");
|
|
17927
|
+
}
|
|
17928
|
+
var import_node_crypto15, import_node_fs31, import_node_path30, SWIFT_DIGEST_SOURCES, LINKED_IMAGE_SOURCES, SWIFT_ARCHIVE_DIGEST_SOURCES;
|
|
17926
17929
|
var init_swift_compiler_digest = __esm({
|
|
17927
17930
|
"src/swift-compiler-digest.ts"() {
|
|
17928
17931
|
"use strict";
|
|
@@ -17930,6 +17933,72 @@ var init_swift_compiler_digest = __esm({
|
|
|
17930
17933
|
import_node_fs31 = require("node:fs");
|
|
17931
17934
|
import_node_path30 = __toESM(require("node:path"), 1);
|
|
17932
17935
|
init_swift_objc_sdk_tree();
|
|
17936
|
+
SWIFT_DIGEST_SOURCES = [
|
|
17937
|
+
"swift-compile.ts",
|
|
17938
|
+
"swift-sdk-surface.ts",
|
|
17939
|
+
"swift-wasm-archive.ts",
|
|
17940
|
+
"swift-lexical.ts",
|
|
17941
|
+
"swift-header-compiler.ts",
|
|
17942
|
+
"swift-header-dependencies.ts",
|
|
17943
|
+
"swift-reproducible.ts",
|
|
17944
|
+
"write-build-file.ts",
|
|
17945
|
+
"xcode-header-search.ts",
|
|
17946
|
+
"case-insensitive-header-overlay.ts",
|
|
17947
|
+
"swift-package.ts",
|
|
17948
|
+
"swift-package-prebuilt.ts",
|
|
17949
|
+
"swift-package-prebuilt-targets.ts",
|
|
17950
|
+
"swift-objc-prebuilt.ts",
|
|
17951
|
+
"swift-objc-prebuilt-catalog.ts",
|
|
17952
|
+
"swift-toolchain.ts",
|
|
17953
|
+
"swift-shared-sdk.ts",
|
|
17954
|
+
"swift-distribution-mirror.ts",
|
|
17955
|
+
"swift-design-time.ts",
|
|
17956
|
+
"binaryen.lock.json",
|
|
17957
|
+
"swift-root-lock.ts",
|
|
17958
|
+
"process-table.ts",
|
|
17959
|
+
"swift-link-roots.ts",
|
|
17960
|
+
"swift-wasm-prune.ts",
|
|
17961
|
+
"wasm-optimize.ts",
|
|
17962
|
+
"wasm-features.ts",
|
|
17963
|
+
"wasm-narrow-boundary.ts",
|
|
17964
|
+
"../../peach-kit/src/nativeWasmContract.ts",
|
|
17965
|
+
"swift-guest-image-ledger.ts",
|
|
17966
|
+
"swift-guest-archive.ts",
|
|
17967
|
+
"swift-guest-link-plan.ts",
|
|
17968
|
+
"swift-guest-link.ts",
|
|
17969
|
+
"swift-guest-compile.ts",
|
|
17970
|
+
"swift-guest-dyld-functions.ts",
|
|
17971
|
+
"swift-guest-linked-spans.ts",
|
|
17972
|
+
"swift-guest-source-plan.ts",
|
|
17973
|
+
"swift-guest-runtime-plan.ts",
|
|
17974
|
+
"swift-guest-source-inputs.ts",
|
|
17975
|
+
"swift-guest-manifest.ts",
|
|
17976
|
+
"swift-guest-projection.ts",
|
|
17977
|
+
"swift-guest-projection-storage.ts",
|
|
17978
|
+
"swiftGuestImageContract.ts",
|
|
17979
|
+
"swift-runtime-products.ts",
|
|
17980
|
+
"swift-sdk-app-module.ts",
|
|
17981
|
+
"swift-sdk-image-map.ts",
|
|
17982
|
+
"swift-sdk-image-wasm.ts",
|
|
17983
|
+
"swift-sdk-image.ts",
|
|
17984
|
+
"../../peach-kit/src/nativeSdkBindingContract.ts",
|
|
17985
|
+
"swiftRuntimeProductContract.ts",
|
|
17986
|
+
"swiftTargetContract.ts",
|
|
17987
|
+
"swift-objc-import.ts",
|
|
17988
|
+
"swiftContract.ts",
|
|
17989
|
+
"swift-objc-platform.ts",
|
|
17990
|
+
"swift-objc-standin.ts",
|
|
17991
|
+
"swift-objc-sdk.ts"
|
|
17992
|
+
];
|
|
17993
|
+
LINKED_IMAGE_SOURCES = /* @__PURE__ */ new Set([
|
|
17994
|
+
"binaryen.lock.json",
|
|
17995
|
+
"swift-sdk-app-module.ts",
|
|
17996
|
+
"swift-sdk-image.ts",
|
|
17997
|
+
"wasm-optimize.ts"
|
|
17998
|
+
]);
|
|
17999
|
+
SWIFT_ARCHIVE_DIGEST_SOURCES = SWIFT_DIGEST_SOURCES.filter(
|
|
18000
|
+
(file) => !LINKED_IMAGE_SOURCES.has(file)
|
|
18001
|
+
);
|
|
17933
18002
|
}
|
|
17934
18003
|
});
|
|
17935
18004
|
|
|
@@ -17999,13 +18068,13 @@ var init_swift_standin_digest = __esm({
|
|
|
17999
18068
|
];
|
|
18000
18069
|
RUNTIME_IMPORT = /(?:^|[;\n])[ \t]*(?:import|export)\s+(?!type(?:\s|\{))([\s\S]*?)\s+from\s*['"]([^'"]+)['"]|(?:^|[;\n])[ \t]*import\s+['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
18001
18070
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS, STANDIN_DIGEST_EXCLUDED_FILES);
|
|
18002
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
18071
|
+
STANDIN_SOURCE_DIGEST = true ? "c87e0b7f1ae69b2a4e76611266612d6218f81a3244e592800c02f78c4f8e48f6" : standinSourceDigest();
|
|
18003
18072
|
}
|
|
18004
18073
|
});
|
|
18005
18074
|
|
|
18006
18075
|
// src/expo-native-compiler-digest.ts
|
|
18007
18076
|
function expoNativeCompilerDigestValue() {
|
|
18008
|
-
return true ? "
|
|
18077
|
+
return true ? "e9c127a6fe6b767d364983920ce71499b88057f966ac63fcb102ddd3ae4209fd" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
18009
18078
|
}
|
|
18010
18079
|
var import_node_crypto17;
|
|
18011
18080
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -22205,12 +22274,13 @@ function parseSwiftDistributionLock(value) {
|
|
|
22205
22274
|
if (runtime === void 0) return void 0;
|
|
22206
22275
|
if (!isRecord(runtime) || typeof runtime.source !== "string" || !/^[a-f0-9]{64}$/.test(runtime.source) || typeof runtime.url !== "string" || !/^https:\/\/[a-z0-9.-]+(?::\d+)?\/compile\/asset\/[a-f0-9]{64}$/.test(
|
|
22207
22276
|
runtime.url
|
|
22208
|
-
) || runtime.dataPlan !== void 0 && (typeof runtime.dataPlan !== "string" || !/^[a-f0-9]{64}$/.test(runtime.dataPlan)))
|
|
22277
|
+
) || runtime.dataPlan !== void 0 && (typeof runtime.dataPlan !== "string" || !/^[a-f0-9]{64}$/.test(runtime.dataPlan)) || runtime.recipe !== void 0 && (typeof runtime.recipe !== "string" || !/^[a-f0-9]{16}$/.test(runtime.recipe)))
|
|
22209
22278
|
throw new Error("invalid shared SDK runtime publication in Swift distribution lock");
|
|
22210
22279
|
return {
|
|
22211
22280
|
source: runtime.source,
|
|
22212
22281
|
url: runtime.url,
|
|
22213
|
-
...runtime.dataPlan && { dataPlan: runtime.dataPlan }
|
|
22282
|
+
...runtime.dataPlan && { dataPlan: runtime.dataPlan },
|
|
22283
|
+
...runtime.recipe && { recipe: runtime.recipe }
|
|
22214
22284
|
};
|
|
22215
22285
|
};
|
|
22216
22286
|
const sdkRuntime = publication(value.sdkRuntime);
|
|
@@ -37996,6 +38066,21 @@ var init_swift_root_lock = __esm({
|
|
|
37996
38066
|
}
|
|
37997
38067
|
});
|
|
37998
38068
|
|
|
38069
|
+
// src/swift-sdk-image-recipe.ts
|
|
38070
|
+
var import_node_crypto37, SWIFT_SDK_IMAGE_VERSION, swiftSdkImageScope, SWIFT_SDK_IMAGE_RECIPE;
|
|
38071
|
+
var init_swift_sdk_image_recipe = __esm({
|
|
38072
|
+
"src/swift-sdk-image-recipe.ts"() {
|
|
38073
|
+
"use strict";
|
|
38074
|
+
import_node_crypto37 = require("node:crypto");
|
|
38075
|
+
init_wasm_optimize();
|
|
38076
|
+
SWIFT_SDK_IMAGE_VERSION = 13;
|
|
38077
|
+
swiftSdkImageScope = (scopedLookups) => scopedLookups ? "guest image scopes 9\n" : "unscoped constructor order 1\n";
|
|
38078
|
+
SWIFT_SDK_IMAGE_RECIPE = (0, import_node_crypto37.createHash)("sha256").update(`swift-sdk-image
|
|
38079
|
+
${SWIFT_SDK_IMAGE_VERSION}
|
|
38080
|
+
`).update(WASM_LOWER_IDENTITY).update(swiftSdkImageScope(false)).update(swiftSdkImageScope(true)).digest("hex").slice(0, 16);
|
|
38081
|
+
}
|
|
38082
|
+
});
|
|
38083
|
+
|
|
37999
38084
|
// src/swift-sdk-image-producer.ts
|
|
38000
38085
|
var swift_sdk_image_producer_exports = {};
|
|
38001
38086
|
__export(swift_sdk_image_producer_exports, {
|
|
@@ -38036,7 +38121,7 @@ function applySwiftSdkProducerEnvironment(environment) {
|
|
|
38036
38121
|
}
|
|
38037
38122
|
}
|
|
38038
38123
|
function writeSwiftSdkProducerResult(file, launchId, error) {
|
|
38039
|
-
const temporary = `${file}.${(0,
|
|
38124
|
+
const temporary = `${file}.${(0, import_node_crypto38.randomUUID)()}`;
|
|
38040
38125
|
(0, import_node_fs59.writeFileSync)(temporary, JSON.stringify({ launchId, error: error ?? null }));
|
|
38041
38126
|
(0, import_node_fs59.renameSync)(temporary, file);
|
|
38042
38127
|
}
|
|
@@ -38148,7 +38233,7 @@ async function produceSwiftSdkImage(input) {
|
|
|
38148
38233
|
}
|
|
38149
38234
|
}
|
|
38150
38235
|
const repo = import_node_path57.default.resolve(input.moduleRoot, "../..");
|
|
38151
|
-
const launchId = (0,
|
|
38236
|
+
const launchId = (0, import_node_crypto38.randomUUID)();
|
|
38152
38237
|
const directory3 = import_node_path57.default.join(root, launchId);
|
|
38153
38238
|
const requestFile = import_node_path57.default.join(directory3, "request.json");
|
|
38154
38239
|
const sessionFile2 = import_node_path57.default.join(directory3, "session");
|
|
@@ -38246,12 +38331,12 @@ async function produceSwiftSdkImage(input) {
|
|
|
38246
38331
|
await (0, import_promises6.setTimeout)(2e3, void 0, { signal: input.signal });
|
|
38247
38332
|
}
|
|
38248
38333
|
}
|
|
38249
|
-
var import_node_child_process33,
|
|
38334
|
+
var import_node_child_process33, import_node_crypto38, import_node_fs59, import_node_path57, import_promises6, import_node_util9, run3, environmentNames, launcher;
|
|
38250
38335
|
var init_swift_sdk_image_producer = __esm({
|
|
38251
38336
|
"src/swift-sdk-image-producer.ts"() {
|
|
38252
38337
|
"use strict";
|
|
38253
38338
|
import_node_child_process33 = require("node:child_process");
|
|
38254
|
-
|
|
38339
|
+
import_node_crypto38 = require("node:crypto");
|
|
38255
38340
|
import_node_fs59 = require("node:fs");
|
|
38256
38341
|
import_node_path57 = __toESM(require("node:path"), 1);
|
|
38257
38342
|
import_promises6 = require("node:timers/promises");
|
|
@@ -38291,7 +38376,6 @@ __export(swift_sdk_image_exports, {
|
|
|
38291
38376
|
SWIFT_SDK_APP_TABLE_BASE: () => SWIFT_SDK_APP_TABLE_BASE,
|
|
38292
38377
|
SWIFT_SDK_IMAGE_BUNDLE: () => SWIFT_SDK_IMAGE_BUNDLE,
|
|
38293
38378
|
SWIFT_SDK_IMAGE_FILES: () => SWIFT_SDK_IMAGE_FILES,
|
|
38294
|
-
SWIFT_SDK_IMAGE_VERSION: () => SWIFT_SDK_IMAGE_VERSION,
|
|
38295
38379
|
SWIFT_SDK_MEMORY_BASE: () => SWIFT_SDK_MEMORY_BASE,
|
|
38296
38380
|
SWIFT_SDK_PIECE_FIELDS: () => SWIFT_SDK_PIECE_FIELDS,
|
|
38297
38381
|
buildSwiftSdkImage: () => buildSwiftSdkImage,
|
|
@@ -38326,9 +38410,9 @@ function swiftSdkImageProducts(moduleRoot, frameworkImports2) {
|
|
|
38326
38410
|
function swiftSdkImageKey(moduleRoot, scopedLookups = false, products = []) {
|
|
38327
38411
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
38328
38412
|
const inputs2 = distribution ? swiftSdkDistributionInputs(distribution) : swiftModuleDigest(moduleRoot);
|
|
38329
|
-
return (0,
|
|
38413
|
+
return (0, import_node_crypto39.createHash)("sha256").update(`swift-sdk-image
|
|
38330
38414
|
${SWIFT_SDK_IMAGE_VERSION}
|
|
38331
|
-
`).update(WASM_LOWER_IDENTITY).update(KEEP_WASM_NAMES ? "\nnames\n" : "\n").update(scopedLookups
|
|
38415
|
+
`).update(WASM_LOWER_IDENTITY).update(KEEP_WASM_NAMES ? "\nnames\n" : "\n").update(swiftSdkImageScope(scopedLookups)).update(inputs2).update(products.length === 0 ? "" : `
|
|
38332
38416
|
products ${products.join(" ")}`).digest("hex").slice(0, 32);
|
|
38333
38417
|
}
|
|
38334
38418
|
function swiftSdkImageEntry(key2, scopedLookups) {
|
|
@@ -38417,7 +38501,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
|
|
|
38417
38501
|
stage
|
|
38418
38502
|
]);
|
|
38419
38503
|
const image = cached(stage, key2);
|
|
38420
|
-
if (!image || (0,
|
|
38504
|
+
if (!image || (0, import_node_crypto39.createHash)("sha256").update((0, import_node_fs60.readFileSync)(image.image)).digest("hex") !== image.sha256)
|
|
38421
38505
|
throw new Error(`invalid published Swift SDK image ${key2}`);
|
|
38422
38506
|
(0, import_node_fs60.rmSync)(directory2, { recursive: true, force: true });
|
|
38423
38507
|
(0, import_node_fs60.renameSync)(stage, directory2);
|
|
@@ -38687,7 +38771,7 @@ async function linkSwiftSdkImage(moduleRoot, key2, directory2, work, scopedLooku
|
|
|
38687
38771
|
(0, import_node_fs60.writeFileSync)(import_node_path58.default.join(work, INTERFACE_FILE), JSON.stringify(sdkInterface));
|
|
38688
38772
|
(0, import_node_fs60.writeFileSync)(
|
|
38689
38773
|
import_node_path58.default.join(work, IMAGE_DIGEST),
|
|
38690
|
-
typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(image).digest("hex") : (0,
|
|
38774
|
+
typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(image).digest("hex") : (0, import_node_crypto39.createHash)("sha256").update(image).digest("hex")
|
|
38691
38775
|
);
|
|
38692
38776
|
if (swiftSdkImageKey(
|
|
38693
38777
|
moduleRoot,
|
|
@@ -38956,12 +39040,12 @@ function readSwiftSdkManifest(image) {
|
|
|
38956
39040
|
}));
|
|
38957
39041
|
return setBoundedCache(cachedSdkManifests, cacheKey, { manifest, block: block2, segments });
|
|
38958
39042
|
}
|
|
38959
|
-
var import_node_child_process34,
|
|
39043
|
+
var import_node_child_process34, import_node_crypto39, import_node_fs60, import_node_path58, import_node_util10, run4, SWIFT_SDK_APP_MEMORY_BASE, SWIFT_SDK_MEMORY_BASE, SWIFT_SDK_APP_TABLE_BASE, EMPTY_APP, IMAGE_TABLES, IMAGE_ENTRY, imageApp, IMAGE_FILE, IMAGE_DIGEST, swiftSdkImageFile, INTERFACE_FILE, MANIFEST_FILE, MANIFEST_DATA_FILE, SWIFT_SDK_IMAGE_FILES, SWIFT_SDK_IMAGE_BUNDLE, MAX_CACHED_SDK_IMAGES, cachedSdkInterfaces, cachedSdkManifestIndices, cachedSdkManifests, SWIFT_SDK_PIECE_FIELDS, MANIFEST_BLOCKS, isManifestBlock;
|
|
38960
39044
|
var init_swift_sdk_image = __esm({
|
|
38961
39045
|
"src/swift-sdk-image.ts"() {
|
|
38962
39046
|
"use strict";
|
|
38963
39047
|
import_node_child_process34 = require("node:child_process");
|
|
38964
|
-
|
|
39048
|
+
import_node_crypto39 = require("node:crypto");
|
|
38965
39049
|
import_node_fs60 = require("node:fs");
|
|
38966
39050
|
import_node_path58 = __toESM(require("node:path"), 1);
|
|
38967
39051
|
import_node_util10 = require("node:util");
|
|
@@ -38973,13 +39057,13 @@ var init_swift_sdk_image = __esm({
|
|
|
38973
39057
|
init_swift_root_lock();
|
|
38974
39058
|
init_swift_sdk_guest_lookups();
|
|
38975
39059
|
init_swift_sdk_image_map();
|
|
39060
|
+
init_swift_sdk_image_recipe();
|
|
38976
39061
|
init_swift_sdk_image_wasm();
|
|
38977
39062
|
init_swift_toolchain();
|
|
38978
39063
|
init_swift_wasm_prune();
|
|
38979
39064
|
init_swiftTargetContract();
|
|
38980
39065
|
init_wasm_optimize();
|
|
38981
39066
|
run4 = (0, import_node_util10.promisify)(import_node_child_process34.execFile);
|
|
38982
|
-
SWIFT_SDK_IMAGE_VERSION = 13;
|
|
38983
39067
|
SWIFT_SDK_APP_MEMORY_BASE = 8372224;
|
|
38984
39068
|
SWIFT_SDK_MEMORY_BASE = 128 * 1024 * 1024;
|
|
38985
39069
|
SWIFT_SDK_APP_TABLE_BASE = 524288;
|
|
@@ -39505,7 +39589,7 @@ async function linkSwiftAppModule(options2) {
|
|
|
39505
39589
|
lazy,
|
|
39506
39590
|
KEEP_WASM_NAMES
|
|
39507
39591
|
])
|
|
39508
|
-
).update(bytes).digest("hex") : (0,
|
|
39592
|
+
).update(bytes).digest("hex") : (0, import_node_crypto40.createHash)("sha256").update(
|
|
39509
39593
|
JSON.stringify([
|
|
39510
39594
|
loweringCache.compilerDigest,
|
|
39511
39595
|
optimize,
|
|
@@ -40124,7 +40208,7 @@ function createSwiftSdkBinding(linkage, sdk2, usage, projection) {
|
|
|
40124
40208
|
bindSwiftAppModule(linkage, sdk2),
|
|
40125
40209
|
selectSwiftSdkData(sdk2, usage, linkage, projection)
|
|
40126
40210
|
]);
|
|
40127
|
-
const sha2565 = typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(bytes).digest("hex") : (0,
|
|
40211
|
+
const sha2565 = typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(bytes).digest("hex") : (0, import_node_crypto40.createHash)("sha256").update(bytes).digest("hex");
|
|
40128
40212
|
return { bytes, sha256: sha2565 };
|
|
40129
40213
|
}
|
|
40130
40214
|
function readSwiftSdkUsage(mapFile, linkedFile, sdkObjects) {
|
|
@@ -40671,12 +40755,12 @@ function partitionParent(section2) {
|
|
|
40671
40755
|
"__objc_class_refs"
|
|
40672
40756
|
].find((name3) => section2 === name3 || section2.startsWith(`${name3}.`));
|
|
40673
40757
|
}
|
|
40674
|
-
var import_node_child_process35,
|
|
40758
|
+
var import_node_child_process35, import_node_crypto40, import_node_fs61, import_node_path59, import_node_util11, import_node_zlib4, run5, RELOCATION_WIDTHS, GLOBAL_INDEX, TLS_SLEB64, SDK_TLS_HELPER, SDK_TLS_DELTA, OBJC_SECTION_BOUNDARY, uleb4, sleb2, encodedName2, SCANNED, RUN_GAP;
|
|
40675
40759
|
var init_swift_sdk_app_module = __esm({
|
|
40676
40760
|
"src/swift-sdk-app-module.ts"() {
|
|
40677
40761
|
"use strict";
|
|
40678
40762
|
import_node_child_process35 = require("node:child_process");
|
|
40679
|
-
|
|
40763
|
+
import_node_crypto40 = require("node:crypto");
|
|
40680
40764
|
import_node_fs61 = require("node:fs");
|
|
40681
40765
|
import_node_path59 = __toESM(require("node:path"), 1);
|
|
40682
40766
|
import_node_util11 = require("node:util");
|
|
@@ -41382,7 +41466,7 @@ function compilerCheckpoint(root, recipe2, args, header) {
|
|
|
41382
41466
|
}
|
|
41383
41467
|
if (!objects.length) return;
|
|
41384
41468
|
const outputs = [module2, header, map2[""].dependencies, ...objects];
|
|
41385
|
-
const digest2 = (0,
|
|
41469
|
+
const digest2 = (0, import_node_crypto41.createHash)("sha256").update(recipe2).update(JSON.stringify(args)).update(mapText);
|
|
41386
41470
|
for (const flag of args) {
|
|
41387
41471
|
if (!flag.startsWith("@")) continue;
|
|
41388
41472
|
const response = flag.slice(1);
|
|
@@ -41476,11 +41560,11 @@ async function withSwiftHeaderCompiler(root, toolchainBin, recipe2, producers, b
|
|
|
41476
41560
|
(0, import_node_fs63.rmSync)(directory2, { recursive: true, force: true });
|
|
41477
41561
|
}
|
|
41478
41562
|
}
|
|
41479
|
-
var
|
|
41563
|
+
var import_node_crypto41, import_node_fs63, import_node_http, import_node_path61, SWIFT_HEADER_COMPILER_WRAPPER, argument, client;
|
|
41480
41564
|
var init_swift_header_compiler = __esm({
|
|
41481
41565
|
"src/swift-header-compiler.ts"() {
|
|
41482
41566
|
"use strict";
|
|
41483
|
-
|
|
41567
|
+
import_node_crypto41 = require("node:crypto");
|
|
41484
41568
|
import_node_fs63 = require("node:fs");
|
|
41485
41569
|
import_node_http = require("node:http");
|
|
41486
41570
|
import_node_path61 = __toESM(require("node:path"), 1);
|
|
@@ -41763,7 +41847,7 @@ function swiftIcuAsset(toolchainBin, sdk2) {
|
|
|
41763
41847
|
JSON.stringify([toolchainBin, sdk2, swiftSdkOptions()]),
|
|
41764
41848
|
async () => {
|
|
41765
41849
|
const zipped = await deflate(await swiftIcuData(toolchainBin, sdk2));
|
|
41766
|
-
return { sha256: (0,
|
|
41850
|
+
return { sha256: (0, import_node_crypto42.createHash)("sha256").update(zipped).digest("hex"), gzip: zipped };
|
|
41767
41851
|
}
|
|
41768
41852
|
);
|
|
41769
41853
|
}
|
|
@@ -41865,7 +41949,7 @@ function swiftIcuPacked(icu) {
|
|
|
41865
41949
|
)
|
|
41866
41950
|
);
|
|
41867
41951
|
await (0, import_promises7.mkdir)(import_node_path63.default.dirname(file), { recursive: true });
|
|
41868
|
-
const tmp = `${file}.${(0,
|
|
41952
|
+
const tmp = `${file}.${(0, import_node_crypto42.randomUUID)()}.tmp`;
|
|
41869
41953
|
await (0, import_promises7.writeFile)(tmp, packed);
|
|
41870
41954
|
await (0, import_promises7.rename)(tmp, file);
|
|
41871
41955
|
return packed;
|
|
@@ -41878,12 +41962,12 @@ async function swiftIcuBundleAsset(icu) {
|
|
|
41878
41962
|
contentType: "application/octet-stream"
|
|
41879
41963
|
};
|
|
41880
41964
|
}
|
|
41881
|
-
var import_node_child_process37,
|
|
41965
|
+
var import_node_child_process37, import_node_crypto42, import_node_fs64, import_promises7, import_node_os14, import_node_path63, import_node_util12, import_node_zlib5, run6, deflate, compressBrotli, inflateGzip, ARCHIVE, MEMBER, raw, assets, packedFiles;
|
|
41882
41966
|
var init_swift_icu = __esm({
|
|
41883
41967
|
"src/swift-icu.ts"() {
|
|
41884
41968
|
"use strict";
|
|
41885
41969
|
import_node_child_process37 = require("node:child_process");
|
|
41886
|
-
|
|
41970
|
+
import_node_crypto42 = require("node:crypto");
|
|
41887
41971
|
import_node_fs64 = require("node:fs");
|
|
41888
41972
|
import_promises7 = require("node:fs/promises");
|
|
41889
41973
|
import_node_os14 = __toESM(require("node:os"), 1);
|
|
@@ -42135,7 +42219,7 @@ function swiftObjCPrebuiltCompiler(clang, root, sysroot, distribution, targets,
|
|
|
42135
42219
|
);
|
|
42136
42220
|
if (!modules.length) return [];
|
|
42137
42221
|
const { executable, prefixArgs } = rnxSelfInvocation();
|
|
42138
|
-
const compiler = (0,
|
|
42222
|
+
const compiler = (0, import_node_crypto43.createHash)("sha256").update(import_node_fs66.default.readFileSync(clang)).digest("hex");
|
|
42139
42223
|
return [
|
|
42140
42224
|
'case "$module" in',
|
|
42141
42225
|
` ${modules.join("|")}) exec ${[
|
|
@@ -42153,12 +42237,12 @@ function swiftObjCPrebuiltCompiler(clang, root, sysroot, distribution, targets,
|
|
|
42153
42237
|
"esac"
|
|
42154
42238
|
];
|
|
42155
42239
|
}
|
|
42156
|
-
var import_node_child_process39,
|
|
42240
|
+
var import_node_child_process39, import_node_crypto43, import_node_fs66, import_node_path65, quote2;
|
|
42157
42241
|
var init_swift_objc_prebuilt = __esm({
|
|
42158
42242
|
"src/swift-objc-prebuilt.ts"() {
|
|
42159
42243
|
"use strict";
|
|
42160
42244
|
import_node_child_process39 = require("node:child_process");
|
|
42161
|
-
|
|
42245
|
+
import_node_crypto43 = require("node:crypto");
|
|
42162
42246
|
import_node_fs66 = __toESM(require("node:fs"), 1);
|
|
42163
42247
|
import_node_path65 = __toESM(require("node:path"), 1);
|
|
42164
42248
|
init_internal_child_contract();
|
|
@@ -42511,7 +42595,7 @@ function swiftPackagePrebuiltEntries(input, moduleRoot, toolchainBin) {
|
|
|
42511
42595
|
([file, source]) => !/\.(?:swift|c|h|inc|modulemap)$/.test(file) || file.endsWith(".swift") && swiftImportNames(source, available2).some((name4) => !available2.has(name4))
|
|
42512
42596
|
))
|
|
42513
42597
|
return [];
|
|
42514
|
-
const hash = (0,
|
|
42598
|
+
const hash = (0, import_node_crypto44.createHash)("sha256");
|
|
42515
42599
|
for (const entry of files2.sort(
|
|
42516
42600
|
([left], [right]) => left < right ? -1 : left > right ? 1 : 0
|
|
42517
42601
|
))
|
|
@@ -42578,11 +42662,11 @@ function useSwiftPackagePrebuilts(input, moduleRoot, toolchainBin) {
|
|
|
42578
42662
|
}
|
|
42579
42663
|
return resolved;
|
|
42580
42664
|
}
|
|
42581
|
-
var
|
|
42665
|
+
var import_node_crypto44, import_node_fs69, import_node_path69, PACKAGE_RECIPE;
|
|
42582
42666
|
var init_swift_package_prebuilt = __esm({
|
|
42583
42667
|
"src/swift-package-prebuilt.ts"() {
|
|
42584
42668
|
"use strict";
|
|
42585
|
-
|
|
42669
|
+
import_node_crypto44 = require("node:crypto");
|
|
42586
42670
|
import_node_fs69 = __toESM(require("node:fs"), 1);
|
|
42587
42671
|
import_node_path69 = __toESM(require("node:path"), 1);
|
|
42588
42672
|
init_native_prebuilt();
|
|
@@ -42742,7 +42826,7 @@ function swiftObjCSelectorOptions(moduleRoot) {
|
|
|
42742
42826
|
`;
|
|
42743
42827
|
if (!(0, import_node_fs70.existsSync)(map2) || (0, import_node_fs70.readFileSync)(map2, "utf8") !== content) {
|
|
42744
42828
|
(0, import_node_fs70.mkdirSync)(import_node_path70.default.dirname(map2), { recursive: true });
|
|
42745
|
-
const partial = `${map2}.${(0,
|
|
42829
|
+
const partial = `${map2}.${(0, import_node_crypto45.randomUUID)()}`;
|
|
42746
42830
|
(0, import_node_fs70.writeFileSync)(partial, content);
|
|
42747
42831
|
(0, import_node_fs70.renameSync)(partial, map2);
|
|
42748
42832
|
}
|
|
@@ -42770,7 +42854,7 @@ async function ensureMacroPlugins(moduleRoot, toolchainBin, release, signal, lea
|
|
|
42770
42854
|
return { libraries, executables };
|
|
42771
42855
|
}
|
|
42772
42856
|
function swiftProjectBuildKey(moduleRoot, release) {
|
|
42773
|
-
return (0,
|
|
42857
|
+
return (0, import_node_crypto45.createHash)("sha256").update(`swift-framework/v2\0${release}\0${swiftModuleSdk(moduleRoot).wasmSdkId}`).update(swiftModuleDigest(moduleRoot)).digest("hex").slice(0, 32);
|
|
42774
42858
|
}
|
|
42775
42859
|
function sameStringList(left, right) {
|
|
42776
42860
|
if (left === right) return true;
|
|
@@ -43018,7 +43102,7 @@ function distributionClangModuleOptions(root, modules) {
|
|
|
43018
43102
|
function providedModulesPath(root, modules, excluded) {
|
|
43019
43103
|
if (!excluded || excluded.size === 0) return modules;
|
|
43020
43104
|
const entries2 = (0, import_node_fs70.readdirSync)(modules).filter((entry) => !excluded.has(entry.replace(/\..*$/, ""))).sort();
|
|
43021
|
-
const key2 = (0,
|
|
43105
|
+
const key2 = (0, import_node_crypto45.createHash)("sha256").update(JSON.stringify([modules, entries2])).update([...excluded].sort().join("\0")).digest("hex").slice(0, 16);
|
|
43022
43106
|
const directory2 = import_node_path70.default.join(root, `.peach-modules-${key2}`);
|
|
43023
43107
|
const complete = import_node_path70.default.join(directory2, ".complete");
|
|
43024
43108
|
if (!(0, import_node_fs70.existsSync)(complete)) {
|
|
@@ -43100,10 +43184,10 @@ function swiftTargetDependencies(files2, targets, frameworks = OPTIONAL_FRAMEWOR
|
|
|
43100
43184
|
function sha256Digest(value) {
|
|
43101
43185
|
if (typeof Bun !== "undefined")
|
|
43102
43186
|
return new Bun.CryptoHasher("sha256").update(value).digest();
|
|
43103
|
-
return (0,
|
|
43187
|
+
return (0, import_node_crypto45.createHash)("sha256").update(value).digest();
|
|
43104
43188
|
}
|
|
43105
43189
|
function swiftCompileInputHash(input, release) {
|
|
43106
|
-
const hash = (0,
|
|
43190
|
+
const hash = (0, import_node_crypto45.createHash)("sha256");
|
|
43107
43191
|
hash.update(`swift-compile
|
|
43108
43192
|
${release}
|
|
43109
43193
|
`);
|
|
@@ -43310,7 +43394,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
43310
43394
|
].join("\n") + "\n";
|
|
43311
43395
|
distributionLinkPath = distributionLink.path.replace(
|
|
43312
43396
|
/\.rsp$/,
|
|
43313
|
-
`-${(0,
|
|
43397
|
+
`-${(0, import_node_crypto45.createHash)("sha256").update(list2).digest("hex").slice(0, 12)}.rsp`
|
|
43314
43398
|
);
|
|
43315
43399
|
distributionLink.files.set(distributionLinkPath, list2);
|
|
43316
43400
|
}
|
|
@@ -43331,7 +43415,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
43331
43415
|
const endRun = () => {
|
|
43332
43416
|
if (run12.length >= MODULE_MAP_RESPONSE_FILE_RUN) {
|
|
43333
43417
|
const lines = run12.map((flag) => JSON.stringify(flag)).join("\n") + "\n";
|
|
43334
|
-
const digest3 = (0,
|
|
43418
|
+
const digest3 = (0, import_node_crypto45.createHash)("sha256").update(lines).digest("hex");
|
|
43335
43419
|
const file2 = import_node_path70.default.join(args.root, ".peach-clang-arguments", `${digest3}.rsp`);
|
|
43336
43420
|
args.files.set(file2, lines);
|
|
43337
43421
|
flags.push(`@${file2}`);
|
|
@@ -43355,7 +43439,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
43355
43439
|
}
|
|
43356
43440
|
endRun();
|
|
43357
43441
|
const content = JSON.stringify(flags);
|
|
43358
|
-
const digest2 = (0,
|
|
43442
|
+
const digest2 = (0, import_node_crypto45.createHash)("sha256").update(content).digest("hex");
|
|
43359
43443
|
const file = import_node_path70.default.join(args.root, ".peach-manifest-arguments", `${digest2}.json`);
|
|
43360
43444
|
args.files.set(file, content);
|
|
43361
43445
|
return `peachCompilerArguments(${JSON.stringify(file)})`;
|
|
@@ -43367,7 +43451,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
43367
43451
|
const macros = compactSwiftClangDefines(swiftClangSearchArguments(flags));
|
|
43368
43452
|
const compact = args.coalescibleOverlays ? compactSwiftClangOverlays(macros, args.coalescibleOverlays) : macros;
|
|
43369
43453
|
const content = compact.map((flag) => JSON.stringify(flag)).join("\n") + "\n";
|
|
43370
|
-
const digest2 = (0,
|
|
43454
|
+
const digest2 = (0, import_node_crypto45.createHash)("sha256").update(content).digest("hex");
|
|
43371
43455
|
const file = import_node_path70.default.join(args.root, ".peach-swift-arguments", `${digest2}.rsp`);
|
|
43372
43456
|
args.files.set(file, content);
|
|
43373
43457
|
return JSON.stringify([`@${file}`]);
|
|
@@ -44956,7 +45040,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
44956
45040
|
)
|
|
44957
45041
|
];
|
|
44958
45042
|
const moduleFlag = perFile.some((flag) => flag.startsWith("-fmodule-name=")) ? [] : [`-fmodule-name=${swiftTargetModuleName(target.name)}`];
|
|
44959
|
-
const identity2 = (0,
|
|
45043
|
+
const identity2 = (0, import_node_crypto45.createHash)("sha256").update(
|
|
44960
45044
|
JSON.stringify([
|
|
44961
45045
|
cxx,
|
|
44962
45046
|
quoteDirs,
|
|
@@ -45319,7 +45403,7 @@ module ${moduleName}.Swift {
|
|
|
45319
45403
|
])
|
|
45320
45404
|
(0, import_node_fs70.rmSync)(cache, { recursive: true, force: true });
|
|
45321
45405
|
files2.set(frameworkSearchRecord, frameworkSearch);
|
|
45322
|
-
const modulePlan = (0,
|
|
45406
|
+
const modulePlan = (0, import_node_crypto45.createHash)("sha256").update(
|
|
45323
45407
|
swiftModuleInputFiles(moduleRoot).join("\n")
|
|
45324
45408
|
);
|
|
45325
45409
|
if (!distribution) {
|
|
@@ -45328,7 +45412,7 @@ module ${moduleName}.Swift {
|
|
|
45328
45412
|
modulePlan.update(
|
|
45329
45413
|
Object.keys(input.files).filter((file) => file.endsWith(".swift")).sort().join("\n")
|
|
45330
45414
|
);
|
|
45331
|
-
const resourcePlan = (0,
|
|
45415
|
+
const resourcePlan = (0, import_node_crypto45.createHash)("sha256").update(
|
|
45332
45416
|
JSON.stringify(
|
|
45333
45417
|
resourceTargets.filter((target) => target.resources).map((target) => [
|
|
45334
45418
|
target.name,
|
|
@@ -45636,7 +45720,7 @@ ${entry}`);
|
|
|
45636
45720
|
);
|
|
45637
45721
|
for (const [target, data] of Object.entries(input.libraries ?? {})) {
|
|
45638
45722
|
const bytes = Buffer.from(data, "base64");
|
|
45639
|
-
const digest2 = (0,
|
|
45723
|
+
const digest2 = (0, import_node_crypto45.createHash)("sha256").update(bytes).digest("hex");
|
|
45640
45724
|
if (input.binaryModules?.[target] && packageTargets.has(target)) {
|
|
45641
45725
|
const objects = import_node_path70.default.join(
|
|
45642
45726
|
layout2.root,
|
|
@@ -46288,7 +46372,7 @@ function readCompiledArtifact(directory2, hash) {
|
|
|
46288
46372
|
return null;
|
|
46289
46373
|
const bytes = (0, import_node_fs70.readFileSync)(import_node_path70.default.join(directory2, "app.wasm"));
|
|
46290
46374
|
const gzip2 = (0, import_node_fs70.readFileSync)(import_node_path70.default.join(directory2, "icu.gz"));
|
|
46291
|
-
if ((0,
|
|
46375
|
+
if ((0, import_node_crypto45.createHash)("sha256").update(bytes).digest("hex") !== receipt.wasm || (0, import_node_crypto45.createHash)("sha256").update(gzip2).digest("hex") !== receipt.icu || bytes.length <= 8 || bytes.readUInt32LE(0) !== 1836278016 || bytes.readUInt32LE(4) !== 1)
|
|
46292
46376
|
return null;
|
|
46293
46377
|
let sdk2;
|
|
46294
46378
|
if ("sdk" in receipt) {
|
|
@@ -46296,7 +46380,7 @@ function readCompiledArtifact(directory2, hash) {
|
|
|
46296
46380
|
if (!isRecord(image) || typeof image.key !== "string" || typeof image.sha256 !== "string" || typeof image.binding !== "string")
|
|
46297
46381
|
return null;
|
|
46298
46382
|
const binding = (0, import_node_fs70.readFileSync)(import_node_path70.default.join(directory2, "sdk-binding.bin"));
|
|
46299
|
-
if ((0,
|
|
46383
|
+
if ((0, import_node_crypto45.createHash)("sha256").update(binding).digest("hex") !== image.binding)
|
|
46300
46384
|
return null;
|
|
46301
46385
|
sdk2 = {
|
|
46302
46386
|
key: image.key,
|
|
@@ -46324,7 +46408,7 @@ function saveCompiledArtifact(root, artifact) {
|
|
|
46324
46408
|
import_node_path70.default.join(pending, "artifact.json"),
|
|
46325
46409
|
JSON.stringify({
|
|
46326
46410
|
hash: artifact.hash,
|
|
46327
|
-
wasm: (0,
|
|
46411
|
+
wasm: (0, import_node_crypto45.createHash)("sha256").update(artifact.bytes).digest("hex"),
|
|
46328
46412
|
icu: artifact.icu.sha256,
|
|
46329
46413
|
sdk: artifact.sdk && {
|
|
46330
46414
|
key: artifact.sdk.key,
|
|
@@ -46673,7 +46757,7 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
46673
46757
|
const unoptimized = args.input.unoptimized === true;
|
|
46674
46758
|
const sdkOptions = swiftCompileSdkOptions(args.moduleRoot, args.toolchainBin);
|
|
46675
46759
|
const selectorOptions = swiftObjCSelectorOptions(args.moduleRoot);
|
|
46676
|
-
const receiptKey = (0,
|
|
46760
|
+
const receiptKey = (0, import_node_crypto45.createHash)("sha256").update(
|
|
46677
46761
|
JSON.stringify([
|
|
46678
46762
|
"framework-products/v2",
|
|
46679
46763
|
args.frameworkKey,
|
|
@@ -46840,7 +46924,7 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
46840
46924
|
const archiveBase = import_node_path70.default.join(scratch2, "products-lib");
|
|
46841
46925
|
(0, import_node_fs70.mkdirSync)(archiveBase, { recursive: true });
|
|
46842
46926
|
const archiveRoot = import_node_path70.default.join(archiveBase, receiptKey);
|
|
46843
|
-
const stagedArchiveRoot = `${archiveRoot}.tmp-${process.pid}-${(0,
|
|
46927
|
+
const stagedArchiveRoot = `${archiveRoot}.tmp-${process.pid}-${(0, import_node_crypto45.randomUUID)()}`;
|
|
46844
46928
|
const stagedArchive = import_node_path70.default.join(stagedArchiveRoot, "lib");
|
|
46845
46929
|
(0, import_node_fs70.mkdirSync)(stagedArchive, { recursive: true });
|
|
46846
46930
|
const archived = /* @__PURE__ */ new Map();
|
|
@@ -46883,7 +46967,7 @@ ${args.frameworkKey}`,
|
|
|
46883
46967
|
const receiptsDir = import_node_path70.default.join(scratch2, "products-ready");
|
|
46884
46968
|
(0, import_node_fs70.mkdirSync)(receiptsDir, { recursive: true });
|
|
46885
46969
|
const receiptFile2 = import_node_path70.default.join(receiptsDir, `${receiptKey}.json`);
|
|
46886
|
-
const partialReceipt = `${receiptFile2}.${process.pid}.${(0,
|
|
46970
|
+
const partialReceipt = `${receiptFile2}.${process.pid}.${(0, import_node_crypto45.randomUUID)()}`;
|
|
46887
46971
|
(0, import_node_fs70.writeFileSync)(
|
|
46888
46972
|
partialReceipt,
|
|
46889
46973
|
JSON.stringify({
|
|
@@ -47055,7 +47139,7 @@ function mirrorTree2(source, target, skip) {
|
|
|
47055
47139
|
if (existing?.isFile() && existing.size === stat.size && (existing.mtimeMs === stat.mtimeMs || (0, import_node_fs70.readFileSync)(from).equals((0, import_node_fs70.readFileSync)(to))))
|
|
47056
47140
|
continue;
|
|
47057
47141
|
if (existing) (0, import_node_fs70.rmSync)(to, { recursive: true, force: true });
|
|
47058
|
-
const partial = `${to}.${(0,
|
|
47142
|
+
const partial = `${to}.${(0, import_node_crypto45.randomUUID)()}`;
|
|
47059
47143
|
(0, import_node_fs70.copyFileSync)(from, partial);
|
|
47060
47144
|
if (stat.mtimeMs > Date.now()) (0, import_node_fs70.utimesSync)(partial, stat.atime, stat.mtime);
|
|
47061
47145
|
(0, import_node_fs70.renameSync)(partial, to);
|
|
@@ -47115,7 +47199,7 @@ function stageFrameworkSource(moduleRoot, slot, frameworkKey, release) {
|
|
|
47115
47199
|
return stagedModule;
|
|
47116
47200
|
}
|
|
47117
47201
|
function swiftLinkStamp(args) {
|
|
47118
|
-
const hash = (0,
|
|
47202
|
+
const hash = (0, import_node_crypto45.createHash)("sha256");
|
|
47119
47203
|
hash.update(`swift-link/v1
|
|
47120
47204
|
${args.frameworkKey}
|
|
47121
47205
|
`);
|
|
@@ -47243,7 +47327,7 @@ async function compileSwiftProjectOnce(sources, options2) {
|
|
|
47243
47327
|
const inputHash = swiftCompileInputHash(input, options2.release);
|
|
47244
47328
|
const moduleDigest = swiftModuleDigest(moduleRoot);
|
|
47245
47329
|
const sourceHash = inputHash.copy().update(moduleDigest).digest("hex");
|
|
47246
|
-
const hash = sdkImage ? (0,
|
|
47330
|
+
const hash = sdkImage ? (0, import_node_crypto45.createHash)("sha256").update(`${sourceHash}
|
|
47247
47331
|
sdk module ${sdkImage.key}`).digest("hex") : sourceHash;
|
|
47248
47332
|
const frameworkKey = swiftProjectBuildKey(moduleRoot, options2.release);
|
|
47249
47333
|
const sharedRoot = import_node_path70.default.join(swiftCacheDir(), "swift-projects", hash);
|
|
@@ -47340,7 +47424,7 @@ ${cap}` : "";
|
|
|
47340
47424
|
}
|
|
47341
47425
|
const baseRoot = root;
|
|
47342
47426
|
const canPoolBuildRoot = !options2.intermediates && !options2.project && !options2.linkOnly && import_node_path70.default.basename(import_node_path70.default.dirname(baseRoot)) === "swift-builds";
|
|
47343
|
-
const buildShape = canPoolBuildRoot ? (0,
|
|
47427
|
+
const buildShape = canPoolBuildRoot ? (0, import_node_crypto45.createHash)("sha256").update(
|
|
47344
47428
|
JSON.stringify([
|
|
47345
47429
|
frameworkKey,
|
|
47346
47430
|
Boolean(sdkImage),
|
|
@@ -47829,17 +47913,17 @@ ${cap}` : "";
|
|
|
47829
47913
|
}
|
|
47830
47914
|
const receipt = import_node_path70.default.join(
|
|
47831
47915
|
checkpoints,
|
|
47832
|
-
(0,
|
|
47916
|
+
(0, import_node_crypto45.createHash)("sha256").update(target).digest("hex")
|
|
47833
47917
|
);
|
|
47834
47918
|
const headers = producers.map(headerPaths);
|
|
47835
47919
|
for (const header of headers)
|
|
47836
47920
|
if ((0, import_node_fs70.existsSync)(header.original)) publishHeader(header);
|
|
47837
47921
|
const fingerprint = () => {
|
|
47838
|
-
const digest2 = (0,
|
|
47922
|
+
const digest2 = (0, import_node_crypto45.createHash)("sha256").update(recipe2);
|
|
47839
47923
|
for (const { original, emitted } of headers) {
|
|
47840
47924
|
if (!(0, import_node_fs70.existsSync)(original) || !(0, import_node_fs70.existsSync)(emitted)) return;
|
|
47841
47925
|
digest2.update(
|
|
47842
|
-
(0,
|
|
47926
|
+
(0, import_node_crypto45.createHash)("sha256").update((0, import_node_fs70.readFileSync)(emitted)).digest()
|
|
47843
47927
|
);
|
|
47844
47928
|
}
|
|
47845
47929
|
return digest2.digest("hex");
|
|
@@ -48052,12 +48136,12 @@ ${cap}` : "";
|
|
|
48052
48136
|
options2.signal
|
|
48053
48137
|
);
|
|
48054
48138
|
}
|
|
48055
|
-
var import_node_child_process41,
|
|
48139
|
+
var import_node_child_process41, import_node_crypto45, import_node_fs70, import_node_os16, import_node_path70, v6, WASM_TRIPLE, SWIFTPM_PROGRESS, SWIFTPM_NOISE, SWIFT_COMPILER_ENV_KEYS, SYSTEM_MODULE_LIBRARIES, SYSTEM_MODULE_IMPORT, lastPartition, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, availableModules, sdkOverlayFrameworks, DISTRIBUTION_CLANG_MODULES, CLANG_DISTRIBUTION_MODULES, ONE_PRODUCT, GAME_FAMILY, gameProducts, gameProduct, GAME_REACH, ONE_IMPLICIT_FLAGS, executableLinkFlags, darwinRecordsRegion, REACTOR_FLAG, MULTI_MANIFEST_VERSION, SWIFT_HEADER_PRODUCTS_TARGET, compilerSourceDigest, nativeCxxCompilerFlags, MODULE_MAP_RESPONSE_FILE_RUN, cFlagArray, cxxFlagArray, SWIFTPM_DEFAULT_IOS_DEPLOYMENT_TARGET, OS_IOS, ARCH_ARM64, NOT_ON_IOS, DELEGATE_CLASS, ARM64_MACRO, WASM_MACRO, ARCH_WASM32, C_WORDS, archEnvironments, CORE_FOUNDATION_GEOMETRY_TYPES, CORE_FOUNDATION_GRAPHICS_TYPES, CORE_FOUNDATION_HANDLE_IMPORTS, cPredefineTable, cPredefineCache, HIDDEN_UNITS, FIRST_WINS_PAIRS, LAST_WINS_PAIRS, VALUE_FLAGS, LIBXML_REFERENCE, LIBXML_SOURCE, ROOT_LOCKS, host, rootLocks, SHARED_ARTIFACT_BUDGET_BYTES, SHARED_ARTIFACT_GRACE_MS, RETIRED_PREFIX, retainedArtifacts, FRAMEWORK_LINK_TARGET, frameworkProductsReceiptSchema, SWIFT_LINK_STAMP, SWIFT_HOST_COMPILER_WRAPPER, SWIFT_FRAMEWORK_SLOTS, SWIFT_FRAMEWORK_UNOPTIMIZED_SLOTS, SWIFT_FRAMEWORK_SLOT_KEY, SWIFT_FRAMEWORK_SLOT_ORIGIN, SWIFT_FRAMEWORK_SLOT_RELEASE, SWIFT_BUILD_ROOT_SLOTS, SWIFT_BUILD_ROOT_SHAPE;
|
|
48056
48140
|
var init_swift_compile = __esm({
|
|
48057
48141
|
"src/swift-compile.ts"() {
|
|
48058
48142
|
"use strict";
|
|
48059
48143
|
import_node_child_process41 = require("node:child_process");
|
|
48060
|
-
|
|
48144
|
+
import_node_crypto45 = require("node:crypto");
|
|
48061
48145
|
import_node_fs70 = require("node:fs");
|
|
48062
48146
|
import_node_os16 = __toESM(require("node:os"), 1);
|
|
48063
48147
|
import_node_path70 = __toESM(require("node:path"), 1);
|
|
@@ -48285,7 +48369,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
|
|
|
48285
48369
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
48286
48370
|
MULTI_MANIFEST_VERSION = 76;
|
|
48287
48371
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
48288
|
-
compilerSourceDigest = true ? "
|
|
48372
|
+
compilerSourceDigest = true ? "169122685e250113f128b79efc78f9868f581da36ab083c174056ab99b87b629" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
48289
48373
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
48290
48374
|
MODULE_MAP_RESPONSE_FILE_RUN = 16;
|
|
48291
48375
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
@@ -48401,7 +48485,7 @@ async function podPrepareEnvironment(base) {
|
|
|
48401
48485
|
if (process.platform !== "linux") return base;
|
|
48402
48486
|
const { root, toolchainBin } = await resolveSwiftModule();
|
|
48403
48487
|
const { sysroot, resources } = swiftSdkPaths(root, toolchainBin);
|
|
48404
|
-
const key2 = (0,
|
|
48488
|
+
const key2 = (0, import_node_crypto46.createHash)("sha256").update(XCRUN).update(CLANG).digest("hex").slice(0, 16);
|
|
48405
48489
|
const directory2 = import_node_path71.default.join(cacheDir(), "pod-tools", key2);
|
|
48406
48490
|
if (!import_node_fs71.default.existsSync(directory2)) {
|
|
48407
48491
|
import_node_fs71.default.mkdirSync(import_node_path71.default.dirname(directory2), { recursive: true });
|
|
@@ -48442,11 +48526,11 @@ async function podPrepareEnvironment(base) {
|
|
|
48442
48526
|
PEACH_POD_RESOURCES: resources
|
|
48443
48527
|
};
|
|
48444
48528
|
}
|
|
48445
|
-
var
|
|
48529
|
+
var import_node_crypto46, import_node_fs71, import_node_path71, XCRUN, CLANG;
|
|
48446
48530
|
var init_pod_prepare_toolchain = __esm({
|
|
48447
48531
|
"src/pod-prepare-toolchain.ts"() {
|
|
48448
48532
|
"use strict";
|
|
48449
|
-
|
|
48533
|
+
import_node_crypto46 = require("node:crypto");
|
|
48450
48534
|
import_node_fs71 = __toESM(require("node:fs"), 1);
|
|
48451
48535
|
import_node_path71 = __toESM(require("node:path"), 1);
|
|
48452
48536
|
init_home_paths();
|
|
@@ -48532,10 +48616,10 @@ async function podSourceRoot(spec, prepareEnv) {
|
|
|
48532
48616
|
`${name3}: unrecognized ${strategy} source options ${unrecognized.join(", ")}`
|
|
48533
48617
|
);
|
|
48534
48618
|
const base = import_node_path72.default.join(rnxHomeDir(), "pod-sources");
|
|
48535
|
-
const digest2 = (0,
|
|
48619
|
+
const digest2 = (0, import_node_crypto47.createHash)("sha256").update(canonicalJson(source)).digest("hex").slice(0, 16);
|
|
48536
48620
|
const root = import_node_path72.default.join(base, name3, `${String(spec.version)}-${digest2}`);
|
|
48537
48621
|
if (import_node_fs72.default.existsSync(root)) return root;
|
|
48538
|
-
const stage = import_node_path72.default.join(base, ".staging", (0,
|
|
48622
|
+
const stage = import_node_path72.default.join(base, ".staging", (0, import_node_crypto47.randomUUID)());
|
|
48539
48623
|
import_node_fs72.default.mkdirSync(stage, { recursive: true });
|
|
48540
48624
|
try {
|
|
48541
48625
|
if (strategy === "git") await downloadGit(name3, url, options2, stage);
|
|
@@ -48710,7 +48794,7 @@ async function downloadFile(pod, url, headers, file, algorithm) {
|
|
|
48710
48794
|
}
|
|
48711
48795
|
if (!response?.ok || !response.body)
|
|
48712
48796
|
throw new Error(`${pod}: GET ${url} failed with HTTP ${response?.status ?? "error"}`);
|
|
48713
|
-
const hash = algorithm ? (0,
|
|
48797
|
+
const hash = algorithm ? (0, import_node_crypto47.createHash)(algorithm) : null;
|
|
48714
48798
|
const handle = await import_node_fs72.default.promises.open(file, "w");
|
|
48715
48799
|
try {
|
|
48716
48800
|
const reader = response.body.getReader();
|
|
@@ -48967,12 +49051,12 @@ function cleanInstalledPod(spec, root, used) {
|
|
|
48967
49051
|
(node) => used.filter((entry) => entry.specs.includes(node.name)).map((entry) => entry.platform)
|
|
48968
49052
|
);
|
|
48969
49053
|
}
|
|
48970
|
-
var import_node_child_process42,
|
|
49054
|
+
var import_node_child_process42, import_node_crypto47, import_node_fs72, import_node_os17, import_node_path72, COCOAPODS_VERSION, USER_AGENT, PLATFORMS, HEADER_EXTENSIONS, SOURCE_EXTENSIONS2, SOURCE_FILES_PATTERN, STRATEGIES, OPTIONS, ARCHIVE_TYPES, object5, RETRY_STATUSES, chomp, stringList, bracketEnd, escapeRegex;
|
|
48971
49055
|
var init_pod_sources = __esm({
|
|
48972
49056
|
"src/pod-sources.ts"() {
|
|
48973
49057
|
"use strict";
|
|
48974
49058
|
import_node_child_process42 = require("node:child_process");
|
|
48975
|
-
|
|
49059
|
+
import_node_crypto47 = require("node:crypto");
|
|
48976
49060
|
import_node_fs72 = __toESM(require("node:fs"), 1);
|
|
48977
49061
|
import_node_os17 = __toESM(require("node:os"), 1);
|
|
48978
49062
|
import_node_path72 = __toESM(require("node:path"), 1);
|
|
@@ -56226,7 +56310,7 @@ function specRepo(url, refresh) {
|
|
|
56226
56310
|
const dir = import_node_path73.default.join(
|
|
56227
56311
|
cacheDir(),
|
|
56228
56312
|
"cocoapods-repos",
|
|
56229
|
-
(0,
|
|
56313
|
+
(0, import_node_crypto48.createHash)("sha256").update(url).digest("hex").slice(0, 16)
|
|
56230
56314
|
);
|
|
56231
56315
|
if (!import_node_fs73.default.existsSync(import_node_path73.default.join(dir, ".git"))) {
|
|
56232
56316
|
const staged = `${dir}.${process.pid}`;
|
|
@@ -56256,7 +56340,7 @@ function podDir(repo, name3) {
|
|
|
56256
56340
|
const specs = import_node_fs73.default.existsSync(import_node_path73.default.join(repo, "Specs")) ? import_node_path73.default.join(repo, "Specs") : repo;
|
|
56257
56341
|
const metadata = import_node_path73.default.join(repo, "CocoaPods-version.yml");
|
|
56258
56342
|
const lengths = import_node_fs73.default.existsSync(metadata) ? browser_default.parse(import_node_fs73.default.readFileSync(metadata, "utf8"))?.prefix_lengths : void 0;
|
|
56259
|
-
const hash = (0,
|
|
56343
|
+
const hash = (0, import_node_crypto48.createHash)("md5").update(name3).digest("hex");
|
|
56260
56344
|
let at = 0;
|
|
56261
56345
|
const shards2 = (Array.isArray(lengths) ? lengths : []).map((length) => {
|
|
56262
56346
|
if (typeof length !== "number")
|
|
@@ -56289,17 +56373,17 @@ async function sourceSpecificationFile(source, name3, version2) {
|
|
|
56289
56373
|
if (!file) throw new Error(`${source} lists ${name3} ${version2} without a podspec`);
|
|
56290
56374
|
return file;
|
|
56291
56375
|
}
|
|
56292
|
-
var import_node_child_process43,
|
|
56376
|
+
var import_node_child_process43, import_node_crypto48, import_node_fs73, import_node_path73, shard, shards, TRUNK_SOURCES, refreshed, specRepoKey;
|
|
56293
56377
|
var init_cocoapods_trunk = __esm({
|
|
56294
56378
|
"src/cocoapods-trunk.ts"() {
|
|
56295
56379
|
"use strict";
|
|
56296
56380
|
import_node_child_process43 = require("node:child_process");
|
|
56297
|
-
|
|
56381
|
+
import_node_crypto48 = require("node:crypto");
|
|
56298
56382
|
import_node_fs73 = __toESM(require("node:fs"), 1);
|
|
56299
56383
|
import_node_path73 = __toESM(require("node:path"), 1);
|
|
56300
56384
|
init_browser();
|
|
56301
56385
|
init_home_paths();
|
|
56302
|
-
shard = (name3) => (0,
|
|
56386
|
+
shard = (name3) => (0, import_node_crypto48.createHash)("md5").update(name3).digest("hex").slice(0, 3).split("");
|
|
56303
56387
|
shards = /* @__PURE__ */ new Map();
|
|
56304
56388
|
TRUNK_SOURCES = /* @__PURE__ */ new Set([
|
|
56305
56389
|
"trunk",
|
|
@@ -66249,7 +66333,7 @@ end
|
|
|
66249
66333
|
function sha256Hex4(bytes) {
|
|
66250
66334
|
if (typeof Bun !== "undefined")
|
|
66251
66335
|
return new Bun.CryptoHasher("sha256").update(bytes).digest("hex");
|
|
66252
|
-
return (0,
|
|
66336
|
+
return (0, import_node_crypto49.createHash)("sha256").update(bytes).digest("hex");
|
|
66253
66337
|
}
|
|
66254
66338
|
function isBazelPackage(input) {
|
|
66255
66339
|
return /^BUILD(?:\.bazel)?$/.test(import_node_path83.default.basename(input)) && import_node_fs82.default.statSync(input).isFile();
|
|
@@ -66280,7 +66364,7 @@ function bazelBinary(root) {
|
|
|
66280
66364
|
const expected = (0, import_node_child_process44.execFileSync)("curl", ["-fsSL", `${url}.sha256`], {
|
|
66281
66365
|
encoding: "utf8"
|
|
66282
66366
|
}).split(/\s/)[0];
|
|
66283
|
-
const actual = (0,
|
|
66367
|
+
const actual = (0, import_node_crypto49.createHash)("sha256").update(import_node_fs82.default.readFileSync(partial)).digest("hex");
|
|
66284
66368
|
if (actual !== expected) {
|
|
66285
66369
|
import_node_fs82.default.rmSync(partial, { force: true });
|
|
66286
66370
|
throw new Error(`${url} digest ${actual} differs from its release ${expected}`);
|
|
@@ -66310,7 +66394,7 @@ function parseRule(raw2) {
|
|
|
66310
66394
|
};
|
|
66311
66395
|
}
|
|
66312
66396
|
function graphInputsDigest(root) {
|
|
66313
|
-
const hash = (0,
|
|
66397
|
+
const hash = (0, import_node_crypto49.createHash)("sha256");
|
|
66314
66398
|
const visit3 = (dir) => {
|
|
66315
66399
|
for (const entry of import_node_fs82.default.readdirSync(dir, { withFileTypes: true }).sort((a, b) => a.name.localeCompare(b.name))) {
|
|
66316
66400
|
if (entry.name.startsWith(".") || entry.name.startsWith("bazel-")) continue;
|
|
@@ -66343,7 +66427,7 @@ function bazelGraph(root, label, configuration) {
|
|
|
66343
66427
|
const cached2 = graphs.get(key2);
|
|
66344
66428
|
if (cached2) return cached2;
|
|
66345
66429
|
const flags = configurationFlags(configuration);
|
|
66346
|
-
const digest2 = (0,
|
|
66430
|
+
const digest2 = (0, import_node_crypto49.createHash)("sha256").update(JSON.stringify([GRAPH_FORMAT, label, flags, QUERIED_RULES])).update(graphInputsDigest(root)).digest("hex").slice(0, 24);
|
|
66347
66431
|
const file = import_node_path83.default.join(root, ".build", "peach-bazel", `graph-${digest2}.json`);
|
|
66348
66432
|
const bazel = bazelBinary(root);
|
|
66349
66433
|
const run12 = (args) => (0, import_node_child_process44.execFileSync)(bazel, args, {
|
|
@@ -67167,12 +67251,12 @@ function shellTokens(options2) {
|
|
|
67167
67251
|
return words2;
|
|
67168
67252
|
});
|
|
67169
67253
|
}
|
|
67170
|
-
var import_node_child_process44,
|
|
67254
|
+
var import_node_child_process44, import_node_crypto49, import_node_fs82, import_node_os18, import_node_path83, LIBRARY_RULES, QUERIED_RULES, NATIVE_SOURCE, HEADER4, PRODUCTS, graphs, CLANG_CONFIGURATION_FLAGS, GRAPH_FORMAT, BazelFiles, CXX_STANDARD;
|
|
67171
67255
|
var init_bazel_project = __esm({
|
|
67172
67256
|
"src/bazel-project.ts"() {
|
|
67173
67257
|
"use strict";
|
|
67174
67258
|
import_node_child_process44 = require("node:child_process");
|
|
67175
|
-
|
|
67259
|
+
import_node_crypto49 = require("node:crypto");
|
|
67176
67260
|
import_node_fs82 = __toESM(require("node:fs"), 1);
|
|
67177
67261
|
import_node_os18 = __toESM(require("node:os"), 1);
|
|
67178
67262
|
import_node_path83 = __toESM(require("node:path"), 1);
|
|
@@ -68067,7 +68151,7 @@ async function swiftBinaryModules(binary2) {
|
|
|
68067
68151
|
if (!binary2.url) return localSwiftBinaryModules(binary2.dir);
|
|
68068
68152
|
const cached2 = import_node_path84.default.join(
|
|
68069
68153
|
cacheDir3,
|
|
68070
|
-
`${(0,
|
|
68154
|
+
`${(0, import_node_crypto50.createHash)("sha256").update(`${binary2.url}\0${binary2.checksum ?? ""}`).digest("hex").slice(0, 32)}.json`
|
|
68071
68155
|
);
|
|
68072
68156
|
if (import_node_fs83.default.existsSync(cached2)) {
|
|
68073
68157
|
const value = JSON.parse(import_node_fs83.default.readFileSync(cached2, "utf8"));
|
|
@@ -68079,11 +68163,11 @@ async function swiftBinaryModules(binary2) {
|
|
|
68079
68163
|
import_node_fs83.default.writeFileSync(cached2, JSON.stringify(modules));
|
|
68080
68164
|
return modules;
|
|
68081
68165
|
}
|
|
68082
|
-
var
|
|
68166
|
+
var import_node_crypto50, import_node_fs83, import_node_path84, cacheDir3;
|
|
68083
68167
|
var init_swift_binary_modules = __esm({
|
|
68084
68168
|
"src/swift-binary-modules.ts"() {
|
|
68085
68169
|
"use strict";
|
|
68086
|
-
|
|
68170
|
+
import_node_crypto50 = require("node:crypto");
|
|
68087
68171
|
import_node_fs83 = __toESM(require("node:fs"), 1);
|
|
68088
68172
|
import_node_path84 = __toESM(require("node:path"), 1);
|
|
68089
68173
|
init_home_paths();
|
|
@@ -68093,11 +68177,11 @@ var init_swift_binary_modules = __esm({
|
|
|
68093
68177
|
});
|
|
68094
68178
|
|
|
68095
68179
|
// src/swift-coverage/provenance.ts
|
|
68096
|
-
var
|
|
68180
|
+
var import_node_crypto51, import_node_fs84, import_node_path85, swiftCoverageProvenance;
|
|
68097
68181
|
var init_provenance = __esm({
|
|
68098
68182
|
"src/swift-coverage/provenance.ts"() {
|
|
68099
68183
|
"use strict";
|
|
68100
|
-
|
|
68184
|
+
import_node_crypto51 = require("node:crypto");
|
|
68101
68185
|
import_node_fs84 = require("node:fs");
|
|
68102
68186
|
import_node_path85 = require("node:path");
|
|
68103
68187
|
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"d6a3228567a46c6d5280895383093889d9b868958a117881061bdd74729a225f","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"facdbeb9de6bb12da4ab4954553edfaadd0e486f1181443138be70c3d8396236","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"523fdfffc0cff95c8df7beeca437622a07d4fd666f0bb22b0ff67d14c42a7b10","swift-package.ts":"05c6cf101fbc944f6684a70db0a9c5aede846b2f0482a6b4a5a0abed737d4658","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"32bf10d6f3396dd1a20ff6d415499a5990ec2550c63306fd9ef071bdf4a58f1e","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"c72b724fc497e4cf603c355f86eb3c07c929ad299758cffbc6ff88ed241654c6","xcode-project.ts":"e30510099ee19d34de62d8ae859df53f77594a4ab105fdb5bcd7e005ec9689ca","xcode-target-members.ts":"96f6a9f5567a4fbd9806252229b35b9a451a112b20f70f8c20189ffd428815fd","xcode-json-project.ts":"df6d6db28e0c8cfdf1f480e1e32d35f12c9cf1936642d5dda923889fb18a8fd6","openstep-plist.ts":"da11f86885ef1e25979ad989f332195c113c4b7a43f108e8d36646973430b81b"}') : swiftCoverageSourceDigests((0, import_node_path85.join)(__sootsim_import_meta_dirname, ".."));
|
|
@@ -69194,16 +69278,16 @@ function assetSymbolText(plan, root) {
|
|
|
69194
69278
|
if (source.status === "unknown") throw new Error(source.reason);
|
|
69195
69279
|
return source.text;
|
|
69196
69280
|
}
|
|
69197
|
-
var
|
|
69281
|
+
var import_node_crypto52, import_node_fs86, import_node_path87, sha2562, unprovenAssetSettings, assetSymbolSettingKeys, provenOtherAssetFlags, symbolTexts;
|
|
69198
69282
|
var init_xcode_assets = __esm({
|
|
69199
69283
|
"src/swift-coverage/xcode-assets.ts"() {
|
|
69200
69284
|
"use strict";
|
|
69201
|
-
|
|
69285
|
+
import_node_crypto52 = require("node:crypto");
|
|
69202
69286
|
import_node_fs86 = require("node:fs");
|
|
69203
69287
|
import_node_path87 = require("node:path");
|
|
69204
69288
|
init_provenance();
|
|
69205
69289
|
init_xcode_asset_symbols();
|
|
69206
|
-
sha2562 = (bytes) => (0,
|
|
69290
|
+
sha2562 = (bytes) => (0, import_node_crypto52.createHash)("sha256").update(bytes).digest("hex");
|
|
69207
69291
|
unprovenAssetSettings = [
|
|
69208
69292
|
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_FRAMEWORKS",
|
|
69209
69293
|
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_WARNINGS",
|
|
@@ -69799,7 +69883,7 @@ function normalizedEnums(input) {
|
|
|
69799
69883
|
}
|
|
69800
69884
|
function localizationIdentifier(field, key2) {
|
|
69801
69885
|
const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
69802
|
-
const digest2 = (0,
|
|
69886
|
+
const digest2 = (0, import_node_crypto53.createHash)("sha256").update(JSON.stringify([...field, key2])).digest();
|
|
69803
69887
|
return Array.from(
|
|
69804
69888
|
digest2.subarray(0, 6),
|
|
69805
69889
|
(byte) => alphabet[byte % alphabet.length]
|
|
@@ -70124,12 +70208,12 @@ function writeIntentDefinition(input, prefix) {
|
|
|
70124
70208
|
lines.push("</plist>", "");
|
|
70125
70209
|
return lines.join("\n");
|
|
70126
70210
|
}
|
|
70127
|
-
var import_strict4,
|
|
70211
|
+
var import_strict4, import_node_crypto53, typeMetadata, initializeMetadata, widgetArraySizes, defaultReasonMessages;
|
|
70128
70212
|
var init_metadata = __esm({
|
|
70129
70213
|
"src/intent-definition/metadata.ts"() {
|
|
70130
70214
|
"use strict";
|
|
70131
70215
|
import_strict4 = __toESM(require("node:assert/strict"), 1);
|
|
70132
|
-
|
|
70216
|
+
import_node_crypto53 = require("node:crypto");
|
|
70133
70217
|
init_fields();
|
|
70134
70218
|
init_hash_input();
|
|
70135
70219
|
init_siphash();
|
|
@@ -70838,7 +70922,7 @@ function preparePortableIntent(definition2, derivedDirectory, prefix, language,
|
|
|
70838
70922
|
if (prefix) identifier(prefix);
|
|
70839
70923
|
if (module2) identifier(module2);
|
|
70840
70924
|
const source = import_node_fs87.default.readFileSync(definition2);
|
|
70841
|
-
const key2 = (0,
|
|
70925
|
+
const key2 = (0, import_node_crypto54.createHash)("sha256").update(
|
|
70842
70926
|
JSON.stringify([intentCompilerRevision, definition2, prefix, language, module2])
|
|
70843
70927
|
).update("\0").update(source).digest("hex");
|
|
70844
70928
|
const cache = import_node_path88.default.join(derivedDirectory, "IntentDefinitions");
|
|
@@ -70878,11 +70962,11 @@ function preparePortableIntent(definition2, derivedDirectory, prefix, language,
|
|
|
70878
70962
|
import_node_fs87.default.rmSync(stage, { recursive: true, force: true });
|
|
70879
70963
|
}
|
|
70880
70964
|
}
|
|
70881
|
-
var
|
|
70965
|
+
var import_node_crypto54, import_node_fs87, import_node_path88, intentCompilerRevision;
|
|
70882
70966
|
var init_xcode_intents = __esm({
|
|
70883
70967
|
"src/xcode-intents.ts"() {
|
|
70884
70968
|
"use strict";
|
|
70885
|
-
|
|
70969
|
+
import_node_crypto54 = require("node:crypto");
|
|
70886
70970
|
import_node_fs87 = __toESM(require("node:fs"), 1);
|
|
70887
70971
|
import_node_path88 = __toESM(require("node:path"), 1);
|
|
70888
70972
|
init_fields();
|
|
@@ -71576,7 +71660,7 @@ function loadProject(xcodeproj) {
|
|
|
71576
71660
|
if (!projectFile)
|
|
71577
71661
|
throw new Error(`${xcodeproj} has no project.pbxproj or project.xcproj`);
|
|
71578
71662
|
const source = import_node_fs88.default.readFileSync(projectFile, "utf8");
|
|
71579
|
-
const digest2 = (0,
|
|
71663
|
+
const digest2 = (0, import_node_crypto55.createHash)("sha256").update(source).digest("hex");
|
|
71580
71664
|
const cached2 = loaded2.get(projectFile);
|
|
71581
71665
|
if (cached2?.digest === digest2) return cached2.project;
|
|
71582
71666
|
const root = projectFile.endsWith(".xcproj") ? readXcodeJsonProject(xcodeproj, source) : parseOpenStepPlist(source);
|
|
@@ -71628,7 +71712,7 @@ function xcodeInstallationIdentity() {
|
|
|
71628
71712
|
if (!selected) return null;
|
|
71629
71713
|
const directory2 = import_node_path90.default.extname(selected) === ".app" ? import_node_path90.default.join(selected, "Contents", "Developer") : selected;
|
|
71630
71714
|
const versionFile = `${directory2}/../version.plist`;
|
|
71631
|
-
const version2 = import_node_fs88.default.existsSync(versionFile) ? (0,
|
|
71715
|
+
const version2 = import_node_fs88.default.existsSync(versionFile) ? (0, import_node_crypto55.createHash)("sha256").update(import_node_fs88.default.readFileSync(versionFile)).digest("hex") : null;
|
|
71632
71716
|
return { directory: directory2, version: version2 };
|
|
71633
71717
|
}
|
|
71634
71718
|
function defaultConfiguration(project) {
|
|
@@ -72096,7 +72180,7 @@ function targetMembers(ref, settings, options2, settingKeys, projectInputs) {
|
|
|
72096
72180
|
);
|
|
72097
72181
|
});
|
|
72098
72182
|
}
|
|
72099
|
-
const signature2 = (0,
|
|
72183
|
+
const signature2 = (0, import_node_crypto55.createHash)("sha256").update(
|
|
72100
72184
|
JSON.stringify([phase, [...settingKeys].map((key3) => [key3, settings(key3)])])
|
|
72101
72185
|
);
|
|
72102
72186
|
for (const file of inputFiles) {
|
|
@@ -72251,7 +72335,7 @@ ${output}`
|
|
|
72251
72335
|
const inputs2 = JSON.stringify([
|
|
72252
72336
|
1,
|
|
72253
72337
|
args,
|
|
72254
|
-
(0,
|
|
72338
|
+
(0, import_node_crypto55.createHash)("sha256").update(import_node_fs88.default.readFileSync(file)).digest("hex")
|
|
72255
72339
|
]);
|
|
72256
72340
|
const developer = settings("DEVELOPER_DIR");
|
|
72257
72341
|
const cached2 = import_node_fs88.default.existsSync(output) && import_node_fs88.default.existsSync(stamp) ? import_node_fs88.default.readFileSync(stamp, "utf8").split("\n") : [];
|
|
@@ -73571,12 +73655,12 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
|
|
|
73571
73655
|
cocoapods
|
|
73572
73656
|
};
|
|
73573
73657
|
}
|
|
73574
|
-
var import_node_child_process45,
|
|
73658
|
+
var import_node_child_process45, import_node_crypto55, import_node_fs88, import_node_module8, import_node_path90, XCODE_DEFAULT_IOS_DEPLOYMENT_TARGET, runScriptTimeoutMs, CXX_STANDARD_ALIASES, PRE_CXX20_STANDARDS, APPLICATION, APP_EXTENSION, RESOURCE_BUNDLE, PRODUCT_MACH_O_TYPES, FRAMEWORK_PRODUCTS, HEADER_FILE, MODULE_PRODUCTS, CONDITIONS, isDirectory3, loaded2, developerDir, preparedSourcePhases, isPodsProject, targetRefs, workspaceResolvedFile, SwiftPackageResolutionRequired;
|
|
73575
73659
|
var init_xcode_project = __esm({
|
|
73576
73660
|
"src/xcode-project.ts"() {
|
|
73577
73661
|
"use strict";
|
|
73578
73662
|
import_node_child_process45 = require("node:child_process");
|
|
73579
|
-
|
|
73663
|
+
import_node_crypto55 = require("node:crypto");
|
|
73580
73664
|
import_node_fs88 = __toESM(require("node:fs"), 1);
|
|
73581
73665
|
import_node_module8 = require("node:module");
|
|
73582
73666
|
import_node_path90 = __toESM(require("node:path"), 1);
|
|
@@ -73766,8 +73850,8 @@ async function walkWorkspaceInputs(app, everyByte, sourceOnly, podsEnvironment)
|
|
|
73766
73850
|
);
|
|
73767
73851
|
const appRelative = import_node_path91.default.relative(root, app);
|
|
73768
73852
|
const manifest = JSON.parse(import_node_fs89.default.readFileSync(import_node_path91.default.join(root, "package.json"), "utf8"));
|
|
73769
|
-
const hash = (0,
|
|
73770
|
-
const native = (0,
|
|
73853
|
+
const hash = (0, import_node_crypto56.createHash)("sha256");
|
|
73854
|
+
const native = (0, import_node_crypto56.createHash)("sha256");
|
|
73771
73855
|
const nativeDirectories = localPackageDirectories(root, app);
|
|
73772
73856
|
const versionFree = new Set(
|
|
73773
73857
|
nativeDirectories.filter((directory2) => directory2 !== appRelative && directory2 !== "").filter(
|
|
@@ -73851,7 +73935,7 @@ async function walkWorkspaceInputs(app, everyByte, sourceOnly, podsEnvironment)
|
|
|
73851
73935
|
unread.slice(start, start + 32).map(async ({ file, content }) => {
|
|
73852
73936
|
const bytes = await import_node_fs89.default.promises.readFile(file);
|
|
73853
73937
|
content.size = bytes.length;
|
|
73854
|
-
content.digest = (0,
|
|
73938
|
+
content.digest = (0, import_node_crypto56.createHash)("sha256").update(bytes).digest("hex");
|
|
73855
73939
|
fileDigests.set(file, content);
|
|
73856
73940
|
})
|
|
73857
73941
|
);
|
|
@@ -74398,7 +74482,7 @@ function stageCachedQuickCryptoOpenSsl(app) {
|
|
|
74398
74482
|
const sha2565 = /openssl_sha256\s*=\s*"([0-9a-f]{64})"/.exec(podspec)?.[1];
|
|
74399
74483
|
if (!sha2565) return;
|
|
74400
74484
|
const archive = import_node_path91.default.join(cacheDir(), "pod-archives", `${sha2565}.zip`);
|
|
74401
|
-
if (!import_node_fs89.default.existsSync(archive) || (0,
|
|
74485
|
+
if (!import_node_fs89.default.existsSync(archive) || (0, import_node_crypto56.createHash)("sha256").update(import_node_fs89.default.readFileSync(archive)).digest("hex") !== sha2565)
|
|
74402
74486
|
return;
|
|
74403
74487
|
import_node_fs89.default.rmSync(opensslDir, { recursive: true, force: true });
|
|
74404
74488
|
import_node_fs89.default.mkdirSync(opensslDir, { recursive: true });
|
|
@@ -74436,12 +74520,12 @@ ${failedOutputLine(command, cwd, bytes)}`
|
|
|
74436
74520
|
});
|
|
74437
74521
|
});
|
|
74438
74522
|
}
|
|
74439
|
-
var import_node_child_process46,
|
|
74523
|
+
var import_node_child_process46, import_node_crypto56, import_node_fs89, import_node_module9, import_node_os19, import_node_path91, import_node_util13, isolatedGitEnv, NATIVE_CONFIG_FILE, NATIVE_SOURCE_FILE2, fileDigests, NATIVE_PACKAGE_ENTRY, hashing, KEPT_WORKSPACES, WORKSPACE_GRACE_MS, ABANDONED_WORKSPACE_MS, RETIRED_PREFIX2, preparing, watches, current, CLONE_ENTRIES;
|
|
74440
74524
|
var init_expo_native_workspace = __esm({
|
|
74441
74525
|
"src/expo-native-workspace.ts"() {
|
|
74442
74526
|
"use strict";
|
|
74443
74527
|
import_node_child_process46 = require("node:child_process");
|
|
74444
|
-
|
|
74528
|
+
import_node_crypto56 = require("node:crypto");
|
|
74445
74529
|
import_node_fs89 = __toESM(require("node:fs"), 1);
|
|
74446
74530
|
import_node_module9 = require("node:module");
|
|
74447
74531
|
import_node_os19 = __toESM(require("node:os"), 1);
|
|
@@ -74514,7 +74598,7 @@ function run() {
|
|
|
74514
74598
|
|
|
74515
74599
|
// src/expo-discovery-cache.ts
|
|
74516
74600
|
function peachPin() {
|
|
74517
|
-
return (0,
|
|
74601
|
+
return (0, import_node_crypto57.createHash)("sha256").update(
|
|
74518
74602
|
`${FORMAT}\0${expoNativeCompilerDigestValue()}\0${swiftNativePin().distribution.id}\0`
|
|
74519
74603
|
).update(JSON.stringify([...EXPO_EAGER_NATIVE_VIEWS])).update(JSON.stringify([...peachAnsweredNativePackages()].sort())).digest("hex");
|
|
74520
74604
|
}
|
|
@@ -74528,7 +74612,7 @@ function stable(value) {
|
|
|
74528
74612
|
}
|
|
74529
74613
|
async function expoDiscoveryKey(options2) {
|
|
74530
74614
|
const { root, hash } = await hashExpoWorkspace(options2.appRoot, options2.signal);
|
|
74531
|
-
const key2 = (0,
|
|
74615
|
+
const key2 = (0, import_node_crypto57.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");
|
|
74532
74616
|
return { key: key2, root };
|
|
74533
74617
|
}
|
|
74534
74618
|
function expoDiscoveryCacheDir() {
|
|
@@ -74599,7 +74683,7 @@ function readExpoDiscovery(key2) {
|
|
|
74599
74683
|
if (typeof parsed2.archive !== "string" || !isDigest(parsed2.archive)) return void 0;
|
|
74600
74684
|
const archive = import_node_path92.default.join(expoDiscoveryCacheDir(), "blobs", `${parsed2.archive}.zst`);
|
|
74601
74685
|
const bytes = import_node_fs90.default.readFileSync(archive);
|
|
74602
|
-
if ((0,
|
|
74686
|
+
if ((0, import_node_crypto57.createHash)("sha256").update(bytes).digest("hex") !== parsed2.archive)
|
|
74603
74687
|
return void 0;
|
|
74604
74688
|
const bodies = (0, import_node_zlib6.zstdDecompressSync)(bytes);
|
|
74605
74689
|
const decoded = /* @__PURE__ */ new Map();
|
|
@@ -74673,7 +74757,7 @@ function stampedFileHash(file) {
|
|
|
74673
74757
|
const stamp = [stat.dev, stat.ino, stat.size, stat.mtimeNs, stat.ctimeNs].join(":");
|
|
74674
74758
|
const cached2 = fileHashes.get(file);
|
|
74675
74759
|
if (cached2?.stamp === stamp) return cached2.checksum;
|
|
74676
|
-
const checksum = (0,
|
|
74760
|
+
const checksum = (0, import_node_crypto57.createHash)("sha256").update(import_node_fs90.default.readFileSync(file)).digest("hex");
|
|
74677
74761
|
fileHashes.set(file, { stamp, checksum });
|
|
74678
74762
|
fileHashesChanged = true;
|
|
74679
74763
|
return checksum;
|
|
@@ -74682,7 +74766,7 @@ function saveFileHashes() {
|
|
|
74682
74766
|
if (!fileHashesChanged) return;
|
|
74683
74767
|
fileHashesChanged = false;
|
|
74684
74768
|
const target = fileHashesPath();
|
|
74685
|
-
const temporary = `${target}.${process.pid}.${(0,
|
|
74769
|
+
const temporary = `${target}.${process.pid}.${(0, import_node_crypto57.randomUUID)()}.tmp`;
|
|
74686
74770
|
try {
|
|
74687
74771
|
import_node_fs90.default.mkdirSync(import_node_path92.default.dirname(target), { recursive: true });
|
|
74688
74772
|
import_node_fs90.default.writeFileSync(
|
|
@@ -74737,7 +74821,7 @@ function frameworkDigest(directory2, signal) {
|
|
|
74737
74821
|
if (target !== root && !target.startsWith(`${root}${import_node_path92.default.sep}`))
|
|
74738
74822
|
throw new Error(`framework link escapes its tree: ${relative3}`);
|
|
74739
74823
|
}
|
|
74740
|
-
return (0,
|
|
74824
|
+
return (0, import_node_crypto57.createHash)("sha256").update(JSON.stringify([...entries2])).digest("hex");
|
|
74741
74825
|
}
|
|
74742
74826
|
function rewritePreparedPaths(options2) {
|
|
74743
74827
|
const { units, sourceRoot, preparedRoot, signal } = options2;
|
|
@@ -74758,7 +74842,7 @@ function rewritePreparedPaths(options2) {
|
|
|
74758
74842
|
return null;
|
|
74759
74843
|
}
|
|
74760
74844
|
if (!preparedBytes.equals(sourceBytes)) return null;
|
|
74761
|
-
dependencies[sourceFile] = (0,
|
|
74845
|
+
dependencies[sourceFile] = (0, import_node_crypto57.createHash)("sha256").update(sourceBytes).digest("hex");
|
|
74762
74846
|
verifiedFiles.set(preparedFile, sourceFile);
|
|
74763
74847
|
return sourceFile;
|
|
74764
74848
|
};
|
|
@@ -74835,7 +74919,7 @@ function rewritePreparedPaths(options2) {
|
|
|
74835
74919
|
portableDir = import_node_path92.default.join(parent, import_node_path92.default.basename(dir));
|
|
74836
74920
|
if (!import_node_fs90.default.existsSync(portableDir)) {
|
|
74837
74921
|
import_node_fs90.default.mkdirSync(parent, { recursive: true });
|
|
74838
|
-
const tmp = import_node_path92.default.join(parent, `.${process.pid}.${(0,
|
|
74922
|
+
const tmp = import_node_path92.default.join(parent, `.${process.pid}.${(0, import_node_crypto57.randomUUID)()}.tmp`);
|
|
74839
74923
|
try {
|
|
74840
74924
|
import_node_fs90.default.cpSync(dir, tmp, { recursive: true, verbatimSymlinks: true });
|
|
74841
74925
|
if (frameworkDigest(tmp, signal) !== preparedDigest)
|
|
@@ -74864,7 +74948,7 @@ function writeExpoDiscovery(options2) {
|
|
|
74864
74948
|
try {
|
|
74865
74949
|
const dir = expoDiscoveryCacheDir();
|
|
74866
74950
|
import_node_fs90.default.mkdirSync(dir, { recursive: true });
|
|
74867
|
-
const tmp = import_node_path92.default.join(dir, `.${options2.key}.${process.pid}.${(0,
|
|
74951
|
+
const tmp = import_node_path92.default.join(dir, `.${options2.key}.${process.pid}.${(0, import_node_crypto57.randomUUID)()}.tmp`);
|
|
74868
74952
|
if (options2.units === null) {
|
|
74869
74953
|
import_node_fs90.default.writeFileSync(
|
|
74870
74954
|
tmp,
|
|
@@ -74927,8 +75011,8 @@ function writeExpoDiscovery(options2) {
|
|
|
74927
75011
|
}
|
|
74928
75012
|
);
|
|
74929
75013
|
const contents2 = (0, import_node_zlib6.zstdCompressSync)(Buffer.concat(chunks, size2));
|
|
74930
|
-
const archive = (0,
|
|
74931
|
-
const temporary = import_node_path92.default.join(blobDir, "." + (0,
|
|
75014
|
+
const archive = (0, import_node_crypto57.createHash)("sha256").update(contents2).digest("hex");
|
|
75015
|
+
const temporary = import_node_path92.default.join(blobDir, "." + (0, import_node_crypto57.randomUUID)() + ".tmp");
|
|
74932
75016
|
try {
|
|
74933
75017
|
import_node_fs90.default.writeFileSync(temporary, contents2);
|
|
74934
75018
|
import_node_fs90.default.renameSync(temporary, import_node_path92.default.join(blobDir, `${archive}.zst`));
|
|
@@ -74955,11 +75039,11 @@ function writeExpoDiscovery(options2) {
|
|
|
74955
75039
|
return error instanceof Error ? error.message : String(error);
|
|
74956
75040
|
}
|
|
74957
75041
|
}
|
|
74958
|
-
var
|
|
75042
|
+
var import_node_crypto57, import_node_fs90, import_node_path92, import_node_zlib6, FORMAT, EXPIRY_MS, ORPHAN_TEMPORARY_MS, strings2, stringRecord, isDigest, digestRecord, isBodyOffset, isBodyOffsets, sourceLocationLine, fileHashes, fileHashesLoaded, fileHashesChanged, MISSING_TREE;
|
|
74959
75043
|
var init_expo_discovery_cache = __esm({
|
|
74960
75044
|
"src/expo-discovery-cache.ts"() {
|
|
74961
75045
|
"use strict";
|
|
74962
|
-
|
|
75046
|
+
import_node_crypto57 = require("node:crypto");
|
|
74963
75047
|
import_node_fs90 = __toESM(require("node:fs"), 1);
|
|
74964
75048
|
import_node_path92 = __toESM(require("node:path"), 1);
|
|
74965
75049
|
import_node_zlib6 = require("node:zlib");
|
|
@@ -75380,7 +75464,7 @@ function hashPackageTree(root, options2) {
|
|
|
75380
75464
|
}
|
|
75381
75465
|
};
|
|
75382
75466
|
walk4(root, "");
|
|
75383
|
-
const hash = (0,
|
|
75467
|
+
const hash = (0, import_node_crypto58.createHash)("sha256");
|
|
75384
75468
|
return (async () => {
|
|
75385
75469
|
for (let start = 0; start < files2.length; start += READ_AHEAD) {
|
|
75386
75470
|
const batch = files2.slice(start, start + READ_AHEAD);
|
|
@@ -75395,11 +75479,11 @@ function packageTreeDigest(root) {
|
|
|
75395
75479
|
compareNames: (left, right) => left.localeCompare(right)
|
|
75396
75480
|
});
|
|
75397
75481
|
}
|
|
75398
|
-
var
|
|
75482
|
+
var import_node_crypto58, import_node_fs93, import_promises8, import_node_path95, READ_AHEAD;
|
|
75399
75483
|
var init_package_tree_digest = __esm({
|
|
75400
75484
|
"src/package-tree-digest.ts"() {
|
|
75401
75485
|
"use strict";
|
|
75402
|
-
|
|
75486
|
+
import_node_crypto58 = require("node:crypto");
|
|
75403
75487
|
import_node_fs93 = require("node:fs");
|
|
75404
75488
|
import_promises8 = require("node:fs/promises");
|
|
75405
75489
|
import_node_path95 = require("node:path");
|
|
@@ -75479,7 +75563,7 @@ async function expoNativeInputs(appRoot) {
|
|
|
75479
75563
|
"swift-pin": JSON.stringify(swiftNativePin()),
|
|
75480
75564
|
answered: JSON.stringify([...peachAnsweredNativePackages()].sort()),
|
|
75481
75565
|
"pods-environment": JSON.stringify(reactNativePodsEnvironment()),
|
|
75482
|
-
fingerprint: (0,
|
|
75566
|
+
fingerprint: (0, import_node_crypto59.createHash)("sha256").update(lines.sort().join("\n")).digest("hex")
|
|
75483
75567
|
},
|
|
75484
75568
|
packages
|
|
75485
75569
|
};
|
|
@@ -75585,7 +75669,7 @@ async function prebuiltAppTarget(appRoot, signal, dependencies = "lockfile") {
|
|
|
75585
75669
|
}
|
|
75586
75670
|
function servedExpoSwift(appRoot, entry, app) {
|
|
75587
75671
|
if (!entry.expoSwift) return null;
|
|
75588
|
-
const rootId = `${(0,
|
|
75672
|
+
const rootId = `${(0, import_node_crypto59.createHash)("sha256").update(import_node_fs94.default.realpathSync(appRoot)).digest("hex")}/Expo`;
|
|
75589
75673
|
if (app.infoPlist === null) throw new Error("the prebuilt app target has no Info.plist");
|
|
75590
75674
|
const installed = installedInfoPlist(app.infoPlist, entry.infoPlist);
|
|
75591
75675
|
const infoPlist2 = Buffer.from(installed).toString("base64");
|
|
@@ -75613,11 +75697,11 @@ async function prebuiltExpoSwiftResult(appRoot, entry, signal) {
|
|
|
75613
75697
|
await prebuiltAppTarget(appRoot, signal, "installed")
|
|
75614
75698
|
);
|
|
75615
75699
|
}
|
|
75616
|
-
var
|
|
75700
|
+
var import_node_crypto59, import_node_fs94, import_node_module12, import_node_path96, import_node_util14, EXPO_NATIVE_ENTRY_NAME, IDENTITY_SOURCE_SKIPS, expoNativeEntryUrl, isStringRecord, isPlistArray, published, lookups, answers;
|
|
75617
75701
|
var init_expo_native_prebuilt = __esm({
|
|
75618
75702
|
"src/expo-native-prebuilt.ts"() {
|
|
75619
75703
|
"use strict";
|
|
75620
|
-
|
|
75704
|
+
import_node_crypto59 = require("node:crypto");
|
|
75621
75705
|
import_node_fs94 = __toESM(require("node:fs"), 1);
|
|
75622
75706
|
import_node_module12 = require("node:module");
|
|
75623
75707
|
import_node_path96 = __toESM(require("node:path"), 1);
|
|
@@ -75679,7 +75763,7 @@ function watchNativeInputs(root) {
|
|
|
75679
75763
|
(0, import_node_timers.clearTimeout)(expiry);
|
|
75680
75764
|
for (const watcher of watchers) watcher.close();
|
|
75681
75765
|
}
|
|
75682
|
-
const inputs2 = { expiry, revision: (0,
|
|
75766
|
+
const inputs2 = { expiry, revision: (0, import_node_crypto60.randomUUID)() };
|
|
75683
75767
|
const watch = (directory2, recursive, name3) => {
|
|
75684
75768
|
const watcher = import_node_fs95.default.watch(
|
|
75685
75769
|
directory2,
|
|
@@ -75720,11 +75804,11 @@ function watchNativeInputs(root) {
|
|
|
75720
75804
|
watchedInputs.set(workspace, inputs2);
|
|
75721
75805
|
return inputs2;
|
|
75722
75806
|
}
|
|
75723
|
-
var
|
|
75807
|
+
var import_node_crypto60, import_node_fs95, import_node_path97, import_node_timers, setTimeoutNode, RETENTION_MS, watchedInputs, NativePreparation;
|
|
75724
75808
|
var init_native_preparation = __esm({
|
|
75725
75809
|
"src/native-preparation.ts"() {
|
|
75726
75810
|
"use strict";
|
|
75727
|
-
|
|
75811
|
+
import_node_crypto60 = require("node:crypto");
|
|
75728
75812
|
import_node_fs95 = __toESM(require("node:fs"), 1);
|
|
75729
75813
|
import_node_path97 = __toESM(require("node:path"), 1);
|
|
75730
75814
|
import_node_timers = require("node:timers");
|
|
@@ -75904,7 +75988,7 @@ function nativeStaticLibraryEntry(recipe2, compiler, sdk2, distribution) {
|
|
|
75904
75988
|
return { name: recipe2.name, inputs: inputs2, key: nativeEntryKey(inputs2) };
|
|
75905
75989
|
}
|
|
75906
75990
|
function nativeStaticLibraryRecipe(bytes) {
|
|
75907
|
-
const digest2 = (0,
|
|
75991
|
+
const digest2 = (0, import_node_crypto61.createHash)("sha256").update(bytes).digest("hex");
|
|
75908
75992
|
return NATIVE_STATIC_LIBRARY_RECIPES.find((item) => item.nativeSha256 === digest2);
|
|
75909
75993
|
}
|
|
75910
75994
|
function nativeStaticLibrary(file, recipe2, moduleRoot) {
|
|
@@ -75947,7 +76031,7 @@ function isRustSymbol(name3, demangled) {
|
|
|
75947
76031
|
function rustStaticLibrary(file, moduleRoot) {
|
|
75948
76032
|
const toolchain = swiftModuleToolchain(moduleRoot);
|
|
75949
76033
|
const bytes = import_node_fs97.default.readFileSync(file);
|
|
75950
|
-
const key2 = (0,
|
|
76034
|
+
const key2 = (0, import_node_crypto61.createHash)("sha256").update("rust-c-abi-v4\0").update(toolchain.release).update("\0").update(bytes).digest("hex");
|
|
75951
76035
|
const directory2 = import_node_path99.default.join(cacheDir(), "native-archives", key2);
|
|
75952
76036
|
const archive = import_node_path99.default.join(directory2, "library.a");
|
|
75953
76037
|
if (import_node_fs97.default.existsSync(archive)) return archive;
|
|
@@ -75976,7 +76060,7 @@ function rustStaticLibrary(file, moduleRoot) {
|
|
|
75976
76060
|
const members2 = readArMembers(bytes, true);
|
|
75977
76061
|
const seen = /* @__PURE__ */ new Set();
|
|
75978
76062
|
const unique2 = members2.filter(({ name: name3, bytes: bytes2 }) => {
|
|
75979
|
-
const identity2 = name3 + "\0" + (0,
|
|
76063
|
+
const identity2 = name3 + "\0" + (0, import_node_crypto61.createHash)("sha256").update(bytes2).digest("hex");
|
|
75980
76064
|
if (seen.has(identity2)) return false;
|
|
75981
76065
|
seen.add(identity2);
|
|
75982
76066
|
return true;
|
|
@@ -76023,14 +76107,14 @@ function rustStaticLibrary(file, moduleRoot) {
|
|
|
76023
76107
|
function combineNativeStaticLibraries(files2, moduleRoot) {
|
|
76024
76108
|
if (files2.length === 1) return files2[0];
|
|
76025
76109
|
const toolchain = swiftModuleToolchain(moduleRoot);
|
|
76026
|
-
const hash = (0,
|
|
76110
|
+
const hash = (0, import_node_crypto61.createHash)("sha256").update(toolchain.release);
|
|
76027
76111
|
for (const file of files2)
|
|
76028
76112
|
hash.update("\0").update(import_node_path99.default.basename(file)).update("\0").update(import_node_fs97.default.readFileSync(file));
|
|
76029
76113
|
const directory2 = import_node_path99.default.join(cacheDir(), "native-archives", hash.digest("hex"));
|
|
76030
76114
|
const archive = import_node_path99.default.join(directory2, "combined.a");
|
|
76031
76115
|
if (import_node_fs97.default.existsSync(archive)) return archive;
|
|
76032
76116
|
import_node_fs97.default.mkdirSync(directory2, { recursive: true });
|
|
76033
|
-
const temporary = import_node_path99.default.join(directory2, `combined-${(0,
|
|
76117
|
+
const temporary = import_node_path99.default.join(directory2, `combined-${(0, import_node_crypto61.randomUUID)()}.a`);
|
|
76034
76118
|
try {
|
|
76035
76119
|
(0, import_node_child_process48.execFileSync)(import_node_path99.default.join(toolchain.toolchainBin, "llvm-ar"), [
|
|
76036
76120
|
"qcsDL",
|
|
@@ -76043,12 +76127,12 @@ function combineNativeStaticLibraries(files2, moduleRoot) {
|
|
|
76043
76127
|
}
|
|
76044
76128
|
return archive;
|
|
76045
76129
|
}
|
|
76046
|
-
var import_node_child_process48,
|
|
76130
|
+
var import_node_child_process48, import_node_crypto61, import_node_fs97, import_node_path99, WEBRTC_NATIVE_FRAMEWORK, SIGNAL_WEBRTC_NATIVE_FRAMEWORK, WEBRTC_NATIVE_FRAMEWORK_RECIPES, NATIVE_STATIC_LIBRARY_RECIPES;
|
|
76047
76131
|
var init_native_static_libraries = __esm({
|
|
76048
76132
|
"src/native-static-libraries.ts"() {
|
|
76049
76133
|
"use strict";
|
|
76050
76134
|
import_node_child_process48 = require("node:child_process");
|
|
76051
|
-
|
|
76135
|
+
import_node_crypto61 = require("node:crypto");
|
|
76052
76136
|
import_node_fs97 = __toESM(require("node:fs"), 1);
|
|
76053
76137
|
import_node_path99 = __toESM(require("node:path"), 1);
|
|
76054
76138
|
init_home_paths();
|
|
@@ -76653,13 +76737,13 @@ var init_swift_wasm64_wamr = __esm({
|
|
|
76653
76737
|
|
|
76654
76738
|
// src/swift-wasm64-native-source.ts
|
|
76655
76739
|
function deriveSource(file, bytes, backport) {
|
|
76656
|
-
if (!backport || (0,
|
|
76740
|
+
if (!backport || (0, import_node_crypto62.createHash)("sha256").update(bytes).digest("hex") !== backport.originalSha256)
|
|
76657
76741
|
return null;
|
|
76658
76742
|
const source = bytes.toString("utf8");
|
|
76659
76743
|
const derived = Buffer.from(
|
|
76660
76744
|
"rewrite" in backport ? backport.rewrite(source) : source.replace(backport.before, backport.after)
|
|
76661
76745
|
);
|
|
76662
|
-
if ((0,
|
|
76746
|
+
if ((0, import_node_crypto62.createHash)("sha256").update(derived).digest("hex") !== backport.derivedSha256)
|
|
76663
76747
|
throw new Error(`Native source derivation differs: ${file}`);
|
|
76664
76748
|
return {
|
|
76665
76749
|
bytes: derived,
|
|
@@ -76678,11 +76762,11 @@ function deriveWasm64NativeSource(file, bytes) {
|
|
|
76678
76762
|
sourceDerivations.get(name3) ?? headerDerivations.get(name3)
|
|
76679
76763
|
);
|
|
76680
76764
|
}
|
|
76681
|
-
var
|
|
76765
|
+
var import_node_crypto62, import_node_path101, webrtcUnknownArchitecture, boringsslWordSize2, wamrCommit, headerDerivations, sourceDerivations;
|
|
76682
76766
|
var init_swift_wasm64_native_source = __esm({
|
|
76683
76767
|
"src/swift-wasm64-native-source.ts"() {
|
|
76684
76768
|
"use strict";
|
|
76685
|
-
|
|
76769
|
+
import_node_crypto62 = require("node:crypto");
|
|
76686
76770
|
import_node_path101 = __toESM(require("node:path"), 1);
|
|
76687
76771
|
init_swift_wasm64_wamr();
|
|
76688
76772
|
init_swiftWasm64ConfigContract();
|
|
@@ -77142,7 +77226,7 @@ var init_genrule_library_builds = __esm({
|
|
|
77142
77226
|
function nativeFrameworkCompiler(moduleRoot, toolchainBin, directory2) {
|
|
77143
77227
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
77144
77228
|
const sdk2 = swiftSdkPaths(moduleRoot, toolchainBin);
|
|
77145
|
-
const identity2 = (0,
|
|
77229
|
+
const identity2 = (0, import_node_crypto63.createHash)("sha256").update(
|
|
77146
77230
|
JSON.stringify([
|
|
77147
77231
|
distribution?.id,
|
|
77148
77232
|
distribution?.link,
|
|
@@ -77168,7 +77252,7 @@ function nativeFrameworkCompiler(moduleRoot, toolchainBin, directory2) {
|
|
|
77168
77252
|
for (const alias of product.frameworkAliases) {
|
|
77169
77253
|
if (alias.wasmSdkId !== distribution.wasmSdkId || alias.wasmSdkChecksum !== distribution.wasmSdkChecksum)
|
|
77170
77254
|
throw new Error(`framework SDK identity differs for ${alias.name}`);
|
|
77171
|
-
if ((0,
|
|
77255
|
+
if ((0, import_node_crypto63.createHash)("sha256").update(import_node_fs100.default.readFileSync(import_node_path103.default.join(moduleRoot, alias.moduleMap))).digest("hex") !== alias.moduleMapSha256)
|
|
77172
77256
|
throw new Error(`framework module map changed ${alias.moduleMap}`);
|
|
77173
77257
|
const selected = /* @__PURE__ */ new Set();
|
|
77174
77258
|
const reach = (name3) => {
|
|
@@ -77209,7 +77293,7 @@ function nativeFrameworkCompiler(moduleRoot, toolchainBin, directory2) {
|
|
|
77209
77293
|
for (const alias of owner.frameworkAliases) {
|
|
77210
77294
|
if (frameworkResponses[alias.name])
|
|
77211
77295
|
throw new Error(`ambiguous declared framework ${alias.name}`);
|
|
77212
|
-
if ((0,
|
|
77296
|
+
if ((0, import_node_crypto63.createHash)("sha256").update(import_node_fs100.default.readFileSync(import_node_path103.default.join(sdkRoot, alias.moduleMap))).digest("hex") !== alias.moduleMapSha256)
|
|
77213
77297
|
throw new Error(`framework module map changed ${alias.moduleMap}`);
|
|
77214
77298
|
const file = import_node_path103.default.join(root, `${alias.name}.rsp`);
|
|
77215
77299
|
import_node_fs100.default.writeFileSync(file, aliasArtifacts.map(quote3).join("\n") + "\n");
|
|
@@ -77303,11 +77387,11 @@ exec ${shellQuote(configuration.compiler)} "$@"
|
|
|
77303
77387
|
};
|
|
77304
77388
|
return { cc: compiler("clang"), cxx: compiler("clang++"), identity: identity2 };
|
|
77305
77389
|
}
|
|
77306
|
-
var
|
|
77390
|
+
var import_node_crypto63, import_node_fs100, import_node_path103, v7;
|
|
77307
77391
|
var init_native_framework_compiler = __esm({
|
|
77308
77392
|
"src/native-framework-compiler.ts"() {
|
|
77309
77393
|
"use strict";
|
|
77310
|
-
|
|
77394
|
+
import_node_crypto63 = require("node:crypto");
|
|
77311
77395
|
import_node_fs100 = __toESM(require("node:fs"), 1);
|
|
77312
77396
|
import_node_path103 = __toESM(require("node:path"), 1);
|
|
77313
77397
|
v7 = __toESM(require("peachsim/vendor/valibot"), 1);
|
|
@@ -77328,7 +77412,7 @@ function processAlive(pid) {
|
|
|
77328
77412
|
}
|
|
77329
77413
|
function tryAcquireNumberedLock(directory2, detail = "") {
|
|
77330
77414
|
(0, import_node_fs101.mkdirSync)(directory2, { recursive: true });
|
|
77331
|
-
const claim = (0, import_node_path104.join)(directory2, `claim-${process.pid}-${(0,
|
|
77415
|
+
const claim = (0, import_node_path104.join)(directory2, `claim-${process.pid}-${(0, import_node_crypto64.randomUUID)()}`);
|
|
77332
77416
|
for (; ; ) {
|
|
77333
77417
|
const numbers = (0, import_node_fs101.readdirSync)(directory2).filter((name3) => /^\d+$/.test(name3)).map(Number);
|
|
77334
77418
|
const top = Math.max(-1, ...numbers);
|
|
@@ -77367,11 +77451,11 @@ ${detail}` : ""}`);
|
|
|
77367
77451
|
};
|
|
77368
77452
|
}
|
|
77369
77453
|
}
|
|
77370
|
-
var
|
|
77454
|
+
var import_node_crypto64, import_node_fs101, import_node_path104, errorCode2;
|
|
77371
77455
|
var init_numbered_lock = __esm({
|
|
77372
77456
|
"src/numbered-lock.ts"() {
|
|
77373
77457
|
"use strict";
|
|
77374
|
-
|
|
77458
|
+
import_node_crypto64 = require("node:crypto");
|
|
77375
77459
|
import_node_fs101 = require("node:fs");
|
|
77376
77460
|
import_node_path104 = require("node:path");
|
|
77377
77461
|
errorCode2 = (error) => error instanceof Error && "code" in error ? error.code : void 0;
|
|
@@ -77398,7 +77482,7 @@ function llvmIdentity(toolchainBin, release) {
|
|
|
77398
77482
|
] : ["clang", "wasm-ld", "llvm-ar", "llvm-nm", "llvm-strip"].map(
|
|
77399
77483
|
(name3) => swiftFileChecksum(import_node_path105.default.join(toolchainBin, name3))
|
|
77400
77484
|
);
|
|
77401
|
-
const identity2 = (0,
|
|
77485
|
+
const identity2 = (0, import_node_crypto65.createHash)("sha256").update(JSON.stringify(components)).digest("hex");
|
|
77402
77486
|
toolIdentities.set(toolchainBin, identity2);
|
|
77403
77487
|
return identity2;
|
|
77404
77488
|
}
|
|
@@ -77406,7 +77490,7 @@ function cSdkIdentity(sysroot, resourceDir, frameworks) {
|
|
|
77406
77490
|
const key2 = JSON.stringify([sysroot, resourceDir, frameworks]);
|
|
77407
77491
|
const cached2 = sysrootIdentities.get(key2);
|
|
77408
77492
|
if (cached2) return cached2;
|
|
77409
|
-
const hash = (0,
|
|
77493
|
+
const hash = (0, import_node_crypto65.createHash)("sha256");
|
|
77410
77494
|
const add = (root, relative3) => {
|
|
77411
77495
|
const file = import_node_path105.default.join(root, relative3);
|
|
77412
77496
|
const stat = import_node_fs102.default.statSync(file, { throwIfNoEntry: false });
|
|
@@ -77441,7 +77525,7 @@ function frameworkProbeIdentity(moduleRoot, toolchainBin) {
|
|
|
77441
77525
|
import_node_fs102.default.readFileSync(import_node_path105.default.join(moduleRoot, SWIFT_FRAMEWORK_PRODUCT_FILE), "utf8")
|
|
77442
77526
|
)
|
|
77443
77527
|
);
|
|
77444
|
-
const hash = (0,
|
|
77528
|
+
const hash = (0, import_node_crypto65.createHash)("sha256").update(
|
|
77445
77529
|
JSON.stringify([
|
|
77446
77530
|
headers,
|
|
77447
77531
|
distribution.link,
|
|
@@ -77451,7 +77535,7 @@ function frameworkProbeIdentity(moduleRoot, toolchainBin) {
|
|
|
77451
77535
|
])
|
|
77452
77536
|
);
|
|
77453
77537
|
const objects = distribution.objects.map((file) => [file, distribution.files[file]]);
|
|
77454
|
-
const objectKey = (0,
|
|
77538
|
+
const objectKey = (0, import_node_crypto65.createHash)("sha256").update(JSON.stringify(objects)).digest("hex");
|
|
77455
77539
|
const cache = import_node_path105.default.join(cacheDir4, "framework-symbols-by-object", objectKey);
|
|
77456
77540
|
if (!import_node_fs102.default.existsSync(cache)) {
|
|
77457
77541
|
import_node_fs102.default.mkdirSync(import_node_path105.default.dirname(cache), { recursive: true });
|
|
@@ -77486,7 +77570,7 @@ function frameworkProbeIdentity(moduleRoot, toolchainBin) {
|
|
|
77486
77570
|
const digest2 = import_node_path105.default.join(temporary, "digest");
|
|
77487
77571
|
import_node_fs102.default.writeFileSync(
|
|
77488
77572
|
digest2,
|
|
77489
|
-
(0,
|
|
77573
|
+
(0, import_node_crypto65.createHash)("sha256").update(symbols.sort().join("\n")).digest("hex")
|
|
77490
77574
|
);
|
|
77491
77575
|
import_node_fs102.default.renameSync(digest2, cache);
|
|
77492
77576
|
} finally {
|
|
@@ -77541,7 +77625,7 @@ function buildable(declaration) {
|
|
|
77541
77625
|
return builderOf(declaration) !== null && declaration.dependencies.every(buildable);
|
|
77542
77626
|
}
|
|
77543
77627
|
function declarationInputs(declaration, builder, toolchain, dependencyKeys) {
|
|
77544
|
-
const hash = (0,
|
|
77628
|
+
const hash = (0, import_node_crypto65.createHash)("sha256");
|
|
77545
77629
|
const files2 = declaration.sources.filter(
|
|
77546
77630
|
(source) => !source.generator && !source.file.split(import_node_path105.default.sep).includes(".git")
|
|
77547
77631
|
).map((source) => import_node_path105.default.relative(declaration.packageDir, source.file));
|
|
@@ -77675,12 +77759,12 @@ function genruleArchive(declaration, library, moduleRoot) {
|
|
|
77675
77759
|
}
|
|
77676
77760
|
return combined;
|
|
77677
77761
|
}
|
|
77678
|
-
var import_node_child_process51,
|
|
77762
|
+
var import_node_child_process51, import_node_crypto65, import_node_fs102, import_node_os21, import_node_path105, v8, BUILDERS, cacheDir4, toolIdentities, sysrootIdentities, GENRULE_RECIPE, GENRULE_BUNDLE;
|
|
77679
77763
|
var init_genrule_archives = __esm({
|
|
77680
77764
|
"src/genrule-archives.ts"() {
|
|
77681
77765
|
"use strict";
|
|
77682
77766
|
import_node_child_process51 = require("node:child_process");
|
|
77683
|
-
|
|
77767
|
+
import_node_crypto65 = require("node:crypto");
|
|
77684
77768
|
import_node_fs102 = __toESM(require("node:fs"), 1);
|
|
77685
77769
|
import_node_os21 = __toESM(require("node:os"), 1);
|
|
77686
77770
|
import_node_path105 = __toESM(require("node:path"), 1);
|
|
@@ -77788,7 +77872,7 @@ function privateSentrySlice(entry, moduleRoot) {
|
|
|
77788
77872
|
function nativeSwiftSlice(standin, moduleRoot, generator, configured, artifact) {
|
|
77789
77873
|
if (standin.module !== SENTRY_SWIFT_SLICE.name) return standin;
|
|
77790
77874
|
const native = simulatorNativeLibrary(artifact());
|
|
77791
|
-
if (!native || (0,
|
|
77875
|
+
if (!native || (0, import_node_crypto66.createHash)("sha256").update(import_node_fs103.default.readFileSync(native.file)).digest("hex") !== SENTRY_SWIFT_SLICE.nativeSha256)
|
|
77792
77876
|
return standin;
|
|
77793
77877
|
if (configured)
|
|
77794
77878
|
throw new Error(
|
|
@@ -77846,12 +77930,12 @@ function nativeSwiftSlice(standin, moduleRoot, generator, configured, artifact)
|
|
|
77846
77930
|
}
|
|
77847
77931
|
};
|
|
77848
77932
|
}
|
|
77849
|
-
var import_node_child_process52,
|
|
77933
|
+
var import_node_child_process52, import_node_crypto66, import_node_fs103, import_node_os22, import_node_path106, SENTRY_SWIFT_SLICE;
|
|
77850
77934
|
var init_native_swift_slices = __esm({
|
|
77851
77935
|
"src/native-swift-slices.ts"() {
|
|
77852
77936
|
"use strict";
|
|
77853
77937
|
import_node_child_process52 = require("node:child_process");
|
|
77854
|
-
|
|
77938
|
+
import_node_crypto66 = require("node:crypto");
|
|
77855
77939
|
import_node_fs103 = __toESM(require("node:fs"), 1);
|
|
77856
77940
|
import_node_os22 = __toESM(require("node:os"), 1);
|
|
77857
77941
|
import_node_path106 = __toESM(require("node:path"), 1);
|
|
@@ -78659,7 +78743,7 @@ function treeDigest2(root) {
|
|
|
78659
78743
|
}).join("\n");
|
|
78660
78744
|
const memo2 = digests.get(`tree\0${root}`);
|
|
78661
78745
|
if (memo2?.stamp === stamp) return memo2.digest;
|
|
78662
|
-
const hash = (0,
|
|
78746
|
+
const hash = (0, import_node_crypto67.createHash)("sha256");
|
|
78663
78747
|
for (const name3 of names) {
|
|
78664
78748
|
hash.update(`${name3}\0`);
|
|
78665
78749
|
hash.update(import_node_fs107.default.readFileSync(import_node_path109.default.join(root, name3)));
|
|
@@ -78706,7 +78790,7 @@ function swiftBinaryFramework(binary2) {
|
|
|
78706
78790
|
const found3 = locateXcframework(import_node_path109.default.join(dir, "tree"));
|
|
78707
78791
|
if (found3) return { dir: found3, digest: stored.sha };
|
|
78708
78792
|
}
|
|
78709
|
-
const sha2 = (0,
|
|
78793
|
+
const sha2 = (0, import_node_crypto67.createHash)("sha256").update(import_node_fs107.default.readFileSync(binary2.dir)).digest("hex");
|
|
78710
78794
|
if (sha2 !== stored?.sha || !locateXcframework(import_node_path109.default.join(dir, "tree"))) {
|
|
78711
78795
|
import_node_fs107.default.rmSync(dir, { recursive: true, force: true });
|
|
78712
78796
|
import_node_fs107.default.mkdirSync(import_node_path109.default.join(dir, "tree"), { recursive: true });
|
|
@@ -78718,7 +78802,7 @@ function swiftBinaryFramework(binary2) {
|
|
|
78718
78802
|
return { dir: found2, digest: sha2 };
|
|
78719
78803
|
}
|
|
78720
78804
|
if (stored && import_node_fs107.default.existsSync(archive)) {
|
|
78721
|
-
const sha2 = (0,
|
|
78805
|
+
const sha2 = (0, import_node_crypto67.createHash)("sha256").update(import_node_fs107.default.readFileSync(archive)).digest("hex");
|
|
78722
78806
|
if (sha2 !== expected)
|
|
78723
78807
|
throw new Error(`archive checksum ${sha2} is not the declared checksum ${expected}`);
|
|
78724
78808
|
const found2 = locateXcframework(import_node_path109.default.join(dir, "tree"));
|
|
@@ -78727,7 +78811,7 @@ function swiftBinaryFramework(binary2) {
|
|
|
78727
78811
|
import_node_fs107.default.rmSync(dir, { recursive: true, force: true });
|
|
78728
78812
|
import_node_fs107.default.mkdirSync(import_node_path109.default.join(dir, "tree"), { recursive: true });
|
|
78729
78813
|
exec("curl", ["-fsSL", "--retry", "2", "-o", archive, binary2.url]);
|
|
78730
|
-
const sha = (0,
|
|
78814
|
+
const sha = (0, import_node_crypto67.createHash)("sha256").update(import_node_fs107.default.readFileSync(archive)).digest("hex");
|
|
78731
78815
|
if (sha !== expected) {
|
|
78732
78816
|
import_node_fs107.default.rmSync(dir, { recursive: true, force: true });
|
|
78733
78817
|
throw new Error(`archive checksum ${sha} is not the declared checksum ${expected}`);
|
|
@@ -78852,7 +78936,7 @@ function binaryHeaderSearchPaths(binary2, root, workspaceRoot2, declaredFramewor
|
|
|
78852
78936
|
});
|
|
78853
78937
|
}
|
|
78854
78938
|
}
|
|
78855
|
-
const declaredDigest = (0,
|
|
78939
|
+
const declaredDigest = (0, import_node_crypto67.createHash)("sha256");
|
|
78856
78940
|
for (const framework of providedFrameworks)
|
|
78857
78941
|
declaredDigest.update(`provided/${import_node_path109.default.relative(artifact.dir, framework)}\0`);
|
|
78858
78942
|
for (const [framework, { declared: names, imports: imports2, sdkHeader }] of declared)
|
|
@@ -78922,7 +79006,7 @@ function binaryHeaderSearchPaths(binary2, root, workspaceRoot2, declaredFramewor
|
|
|
78922
79006
|
import_node_fs107.default.copyFileSync(surface.modulemap, modulemap);
|
|
78923
79007
|
}
|
|
78924
79008
|
}
|
|
78925
|
-
const contents2 = (0,
|
|
79009
|
+
const contents2 = (0, import_node_crypto67.createHash)("sha256");
|
|
78926
79010
|
for (const framework of providedFrameworks.filter((item) => !declared.has(item))) {
|
|
78927
79011
|
const modulemap = import_node_path109.default.join(
|
|
78928
79012
|
pending,
|
|
@@ -80337,7 +80421,7 @@ function crateSourceRoots(manifest, searchRoot) {
|
|
|
80337
80421
|
return roots;
|
|
80338
80422
|
}
|
|
80339
80423
|
function crateSourceDigest(manifest, searchRoot) {
|
|
80340
|
-
const hash = (0,
|
|
80424
|
+
const hash = (0, import_node_crypto67.createHash)("sha256");
|
|
80341
80425
|
const walk4 = (dir, root) => {
|
|
80342
80426
|
for (const entry of import_node_fs107.default.readdirSync(dir, { withFileTypes: true }).sort((left, right) => left.name < right.name ? -1 : 1)) {
|
|
80343
80427
|
const full = import_node_path109.default.join(dir, entry.name);
|
|
@@ -80784,7 +80868,7 @@ function standinGenerationInputs(binaries, toolchain, configuredBehavior = {}, s
|
|
|
80784
80868
|
...swiftSources.flags,
|
|
80785
80869
|
...swiftSources.sources.flatMap((source) => [
|
|
80786
80870
|
source,
|
|
80787
|
-
(0,
|
|
80871
|
+
(0, import_node_crypto67.createHash)("sha256").update(import_node_fs107.default.readFileSync(import_node_path109.default.join(binary2.dir, source))).digest("hex")
|
|
80788
80872
|
])
|
|
80789
80873
|
);
|
|
80790
80874
|
continue;
|
|
@@ -80820,7 +80904,7 @@ function standinGenerationInputs(binaries, toolchain, configuredBehavior = {}, s
|
|
|
80820
80904
|
);
|
|
80821
80905
|
}
|
|
80822
80906
|
}
|
|
80823
|
-
return (0,
|
|
80907
|
+
return (0, import_node_crypto67.createHash)("sha256").update(parts.join("\0")).digest("hex");
|
|
80824
80908
|
}
|
|
80825
80909
|
function missingArtifactGap(binary2) {
|
|
80826
80910
|
if (swiftBinaryOnDisk(binary2)) return null;
|
|
@@ -80902,7 +80986,7 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
80902
80986
|
return NO_IMPORTABLE_SURFACE;
|
|
80903
80987
|
}
|
|
80904
80988
|
const configured = new Map(Object.entries(behavior));
|
|
80905
|
-
const hash = (0,
|
|
80989
|
+
const hash = (0, import_node_crypto67.createHash)("sha256").update(
|
|
80906
80990
|
standinGenerationInputs([binary2], toolchain, behavior)
|
|
80907
80991
|
);
|
|
80908
80992
|
hash.update(digest2);
|
|
@@ -81142,7 +81226,7 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
|
|
|
81142
81226
|
);
|
|
81143
81227
|
if (binary2.moduleSources !== void 0)
|
|
81144
81228
|
frameworkInputs.push(
|
|
81145
|
-
`${binary2.target}\0${(0,
|
|
81229
|
+
`${binary2.target}\0${(0, import_node_crypto67.createHash)("sha256").update(
|
|
81146
81230
|
[iosSdkId(), ...swiftSources.flags, ...swiftSources.sources, ...texts].join(
|
|
81147
81231
|
"\0"
|
|
81148
81232
|
)
|
|
@@ -81183,7 +81267,7 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
|
|
|
81183
81267
|
import_node_fs107.default.mkdirSync(sourceFrameworks);
|
|
81184
81268
|
const frameworks = {
|
|
81185
81269
|
dirs: [...frameworkDirs, sourceFrameworks].sort(),
|
|
81186
|
-
digest: (0,
|
|
81270
|
+
digest: (0, import_node_crypto67.createHash)("sha256").update(frameworkInputs.sort().join("\0")).digest("hex"),
|
|
81187
81271
|
surfaces: frameworkSurfaces
|
|
81188
81272
|
};
|
|
81189
81273
|
const siblings = new Map(
|
|
@@ -81302,12 +81386,12 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
|
|
|
81302
81386
|
import_node_fs107.default.rmSync(modules, { recursive: true, force: true });
|
|
81303
81387
|
}
|
|
81304
81388
|
}
|
|
81305
|
-
var import_node_child_process54,
|
|
81389
|
+
var import_node_child_process54, import_node_crypto67, import_node_fs107, 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;
|
|
81306
81390
|
var init_swift_standins = __esm({
|
|
81307
81391
|
"src/swift-standins.ts"() {
|
|
81308
81392
|
"use strict";
|
|
81309
81393
|
import_node_child_process54 = require("node:child_process");
|
|
81310
|
-
|
|
81394
|
+
import_node_crypto67 = require("node:crypto");
|
|
81311
81395
|
import_node_fs107 = __toESM(require("node:fs"), 1);
|
|
81312
81396
|
import_node_path109 = __toESM(require("node:path"), 1);
|
|
81313
81397
|
init_forked_script_contract();
|
|
@@ -81337,7 +81421,7 @@ var init_swift_standins = __esm({
|
|
|
81337
81421
|
init_swiftTargetContract();
|
|
81338
81422
|
TRIPLE = SWIFT_WASM_TRIPLE;
|
|
81339
81423
|
cacheDir5 = import_node_path109.default.join(cacheDir(), "swift-standins");
|
|
81340
|
-
key = (...parts) => (0,
|
|
81424
|
+
key = (...parts) => (0, import_node_crypto67.createHash)("sha256").update(parts.join("\0")).digest("hex").slice(0, 32);
|
|
81341
81425
|
digests = /* @__PURE__ */ new Map();
|
|
81342
81426
|
isBinaryLibraryFile = (file) => /\.(?:a|dylib|o|tbd)$/i.test(file);
|
|
81343
81427
|
OBJC_IMPORT = /#\s*(?:import|include)\s*[<"](?:[\w+-]+\/)?([\w+.-]+\.h)[>"]/g;
|
|
@@ -81500,7 +81584,7 @@ function compiledFrameworkImports(app, products) {
|
|
|
81500
81584
|
function sha256Hex5(bytes) {
|
|
81501
81585
|
if (typeof Bun !== "undefined")
|
|
81502
81586
|
return new Bun.CryptoHasher("sha256").update(bytes).digest("hex");
|
|
81503
|
-
return (0,
|
|
81587
|
+
return (0, import_node_crypto68.createHash)("sha256").update(bytes).digest("hex");
|
|
81504
81588
|
}
|
|
81505
81589
|
function regularFileStamp(file) {
|
|
81506
81590
|
const stat = import_node_fs108.default.lstatSync(file, { bigint: true, throwIfNoEntry: false });
|
|
@@ -81543,7 +81627,7 @@ function cachedBinaryFileDigest(file) {
|
|
|
81543
81627
|
const digest2 = sha256Hex5(import_node_fs108.default.readFileSync(real));
|
|
81544
81628
|
binaryFileDigests.set(real, { stamp, digest: digest2 });
|
|
81545
81629
|
import_node_fs108.default.mkdirSync(dir, { recursive: true });
|
|
81546
|
-
const partial = `${record4}.${process.pid}.${(0,
|
|
81630
|
+
const partial = `${record4}.${process.pid}.${(0, import_node_crypto68.randomUUID)()}`;
|
|
81547
81631
|
import_node_fs108.default.writeFileSync(partial, JSON.stringify({ stamp, digest: digest2 }));
|
|
81548
81632
|
import_node_fs108.default.renameSync(partial, record4);
|
|
81549
81633
|
return digest2;
|
|
@@ -82813,12 +82897,12 @@ ${reported.trimEnd() || `Clang exited with status ${result.status}`}`;
|
|
|
82813
82897
|
import_node_fs108.default.closeSync(descriptor);
|
|
82814
82898
|
}
|
|
82815
82899
|
}
|
|
82816
|
-
var import_node_child_process55,
|
|
82900
|
+
var import_node_child_process55, import_node_crypto68, import_node_fs108, import_node_path110, SwiftObjCCompilationError, isDirectory4, isSdkInclude, FRAMEWORK_IMPORT, OWN_IMPORT, binaryFileDigests, objcInputSnapshots;
|
|
82817
82901
|
var init_swift_objc_compile = __esm({
|
|
82818
82902
|
"src/swift-objc-compile.ts"() {
|
|
82819
82903
|
"use strict";
|
|
82820
82904
|
import_node_child_process55 = require("node:child_process");
|
|
82821
|
-
|
|
82905
|
+
import_node_crypto68 = require("node:crypto");
|
|
82822
82906
|
import_node_fs108 = __toESM(require("node:fs"), 1);
|
|
82823
82907
|
import_node_path110 = __toESM(require("node:path"), 1);
|
|
82824
82908
|
init_mapLimit();
|
|
@@ -86856,11 +86940,11 @@ function coreDataModelDirectories(files2) {
|
|
|
86856
86940
|
}
|
|
86857
86941
|
return [...models].sort();
|
|
86858
86942
|
}
|
|
86859
|
-
var
|
|
86943
|
+
var import_node_crypto69, import_node_fs112, import_node_path114, attributeTypes, deleteRules, EXTERNAL_BINARY, PRESERVE_AFTER_DELETION, yes, common, uid, NULL, classChains, KeyedArchive, sha2563;
|
|
86860
86944
|
var init_core_data_model = __esm({
|
|
86861
86945
|
"src/core-data-model.ts"() {
|
|
86862
86946
|
"use strict";
|
|
86863
|
-
|
|
86947
|
+
import_node_crypto69 = require("node:crypto");
|
|
86864
86948
|
import_node_fs112 = require("node:fs");
|
|
86865
86949
|
import_node_path114 = __toESM(require("node:path"), 1);
|
|
86866
86950
|
init_core_data_entity_classes();
|
|
@@ -86979,7 +87063,7 @@ var init_core_data_model = __esm({
|
|
|
86979
87063
|
});
|
|
86980
87064
|
}
|
|
86981
87065
|
};
|
|
86982
|
-
sha2563 = (...parts) => (0,
|
|
87066
|
+
sha2563 = (...parts) => (0, import_node_crypto69.createHash)("sha256").update(
|
|
86983
87067
|
Buffer.concat(
|
|
86984
87068
|
parts.map(
|
|
86985
87069
|
(part) => Array.isArray(part) ? Buffer.from(part) : Buffer.from(part)
|
|
@@ -89171,7 +89255,7 @@ async function buildRiveRuntimeDependencies(checkout, moduleRoot) {
|
|
|
89171
89255
|
];
|
|
89172
89256
|
const objc = [...swiftObjCRuntimeFlags, "-fobjc-exceptions"];
|
|
89173
89257
|
const xcode = (0, import_node_child_process57.execFileSync)("xcodebuild", ["-version"], { encoding: "utf8" });
|
|
89174
|
-
const key2 = (0,
|
|
89258
|
+
const key2 = (0, import_node_crypto70.createHash)("sha256").update(
|
|
89175
89259
|
JSON.stringify([
|
|
89176
89260
|
RECIPE,
|
|
89177
89261
|
(0, import_node_child_process57.execFileSync)("git", ["-C", runtime, "rev-parse", "HEAD"], {
|
|
@@ -89382,12 +89466,12 @@ exec ${quote3(import_node_path115.default.join(toolchainBin, "llvm-ar"))} rcs "$
|
|
|
89382
89466
|
);
|
|
89383
89467
|
return directory2;
|
|
89384
89468
|
}
|
|
89385
|
-
var import_node_child_process57,
|
|
89469
|
+
var import_node_child_process57, import_node_crypto70, import_node_fs113, import_node_os23, import_node_path115, import_promises10, RECIPE, CONFIG, RUNTIME_LIBRARIES;
|
|
89386
89470
|
var init_rive_runtime_dependencies = __esm({
|
|
89387
89471
|
"src/rive-runtime-dependencies.ts"() {
|
|
89388
89472
|
"use strict";
|
|
89389
89473
|
import_node_child_process57 = require("node:child_process");
|
|
89390
|
-
|
|
89474
|
+
import_node_crypto70 = require("node:crypto");
|
|
89391
89475
|
import_node_fs113 = __toESM(require("node:fs"), 1);
|
|
89392
89476
|
import_node_os23 = __toESM(require("node:os"), 1);
|
|
89393
89477
|
import_node_path115 = __toESM(require("node:path"), 1);
|
|
@@ -90244,7 +90328,7 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
|
|
|
90244
90328
|
(binary2) => binary2.publicHeaders === void 0 && binary2.placeholder === void 0 && swiftBinaryOnDisk(binary2) && binaryHeaderSearchPaths(binary2, staged, app.rootDir).headers.length === 1
|
|
90245
90329
|
))
|
|
90246
90330
|
return [...binaries];
|
|
90247
|
-
const hash = (0,
|
|
90331
|
+
const hash = (0, import_node_crypto71.createHash)("sha256");
|
|
90248
90332
|
hash.update(
|
|
90249
90333
|
JSON.stringify([
|
|
90250
90334
|
inputs2.targets,
|
|
@@ -90453,12 +90537,12 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
|
|
|
90453
90537
|
);
|
|
90454
90538
|
return result;
|
|
90455
90539
|
}
|
|
90456
|
-
var import_node_child_process59,
|
|
90540
|
+
var import_node_child_process59, import_node_crypto71, import_node_fs115, import_node_path117, cachedInputs;
|
|
90457
90541
|
var init_swift_cxx_reachable = __esm({
|
|
90458
90542
|
"src/swift-cxx-reachable.ts"() {
|
|
90459
90543
|
"use strict";
|
|
90460
90544
|
import_node_child_process59 = require("node:child_process");
|
|
90461
|
-
|
|
90545
|
+
import_node_crypto71 = require("node:crypto");
|
|
90462
90546
|
import_node_fs115 = __toESM(require("node:fs"), 1);
|
|
90463
90547
|
import_node_path117 = __toESM(require("node:path"), 1);
|
|
90464
90548
|
init_is_record();
|
|
@@ -90656,7 +90740,7 @@ function nativeSourceDescriptor(packagePath) {
|
|
|
90656
90740
|
function swiftArtifactContentDigest(bytes) {
|
|
90657
90741
|
let digest2 = swiftArtifactDigests.get(bytes);
|
|
90658
90742
|
if (!digest2) {
|
|
90659
|
-
digest2 = (0,
|
|
90743
|
+
digest2 = (0, import_node_crypto72.createHash)("sha256").update(bytes).digest("hex");
|
|
90660
90744
|
swiftArtifactDigests.set(bytes, digest2);
|
|
90661
90745
|
}
|
|
90662
90746
|
return digest2;
|
|
@@ -90784,7 +90868,7 @@ async function wasmPortableAssembly(binaries, toolchainBin, moduleRoot) {
|
|
|
90784
90868
|
const clang = import_node_path119.default.join(toolchainBin, "clang");
|
|
90785
90869
|
const empty = (binary2, file) => {
|
|
90786
90870
|
const source = import_node_path119.default.join(binary2.dir, file);
|
|
90787
|
-
const key2 = (0,
|
|
90871
|
+
const key2 = (0, import_node_crypto72.createHash)("sha256").update(
|
|
90788
90872
|
JSON.stringify([
|
|
90789
90873
|
clang,
|
|
90790
90874
|
sdk2.sysroot,
|
|
@@ -90829,7 +90913,7 @@ async function wasmPortableAssembly(binaries, toolchainBin, moduleRoot) {
|
|
|
90829
90913
|
return new Set(portable.flat());
|
|
90830
90914
|
}
|
|
90831
90915
|
async function swiftPackages(entry, app) {
|
|
90832
|
-
const stamp = (file) => import_node_fs117.default.existsSync(file) ? (0,
|
|
90916
|
+
const stamp = (file) => import_node_fs117.default.existsSync(file) ? (0, import_node_crypto72.createHash)("sha256").update(import_node_fs117.default.readFileSync(file)).digest("hex") : null;
|
|
90833
90917
|
const owners = [...app.frameworks, app].map((target) => ({
|
|
90834
90918
|
module: target.moduleName,
|
|
90835
90919
|
products: target.packageProducts ?? []
|
|
@@ -91993,7 +92077,7 @@ async function buildSwiftResourceTable(project, baseUrl, inputs2) {
|
|
|
91993
92077
|
const source = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true }).decode(
|
|
91994
92078
|
bytes
|
|
91995
92079
|
);
|
|
91996
|
-
const sha2565 = (0,
|
|
92080
|
+
const sha2565 = (0, import_node_crypto72.createHash)("sha256").update(bytes).digest("hex");
|
|
91997
92081
|
const bundle = swiftResourceBundleForFile(bundles, key2);
|
|
91998
92082
|
if (!bundle && inputs2["Package.swift"])
|
|
91999
92083
|
throw new Error(`metal source ${key2} has no resource target bundle`);
|
|
@@ -92016,7 +92100,7 @@ async function buildSwiftResourceTable(project, baseUrl, inputs2) {
|
|
|
92016
92100
|
const bytes = readPackageFile2(project.packagePath, disk, limits.imageBytes);
|
|
92017
92101
|
pdfs.set(file, {
|
|
92018
92102
|
file: disk,
|
|
92019
|
-
sha256: (0,
|
|
92103
|
+
sha256: (0, import_node_crypto72.createHash)("sha256").update(bytes).digest("hex")
|
|
92020
92104
|
});
|
|
92021
92105
|
}
|
|
92022
92106
|
const pdfRasters = rasterizePdfFiles([...pdfs.values()], limits);
|
|
@@ -92062,7 +92146,7 @@ async function buildSwiftResourceTable(project, baseUrl, inputs2) {
|
|
|
92062
92146
|
throw new Error("swift image pack exceeds the compile service caps");
|
|
92063
92147
|
}
|
|
92064
92148
|
imageBytes += bytes.length;
|
|
92065
|
-
const hash = (0,
|
|
92149
|
+
const hash = (0, import_node_crypto72.createHash)("sha256").update(bytes).digest("hex").slice(0, 16);
|
|
92066
92150
|
const bundle = table[bundlePath] ?? /* @__PURE__ */ Object.create(null);
|
|
92067
92151
|
const pixelSize = ext === ".png" ? readPngDimensions(bytes) : null;
|
|
92068
92152
|
const variant2 = {
|
|
@@ -92369,7 +92453,7 @@ function updateSwiftConfigStamp(hash, packagePath) {
|
|
|
92369
92453
|
hash.update(JSON.stringify(gates.map((name3) => swiftWasm64PlatformGates[name3])));
|
|
92370
92454
|
}
|
|
92371
92455
|
function sourceStamp(packagePath, moduleRootOverride, hosted = false) {
|
|
92372
|
-
const hash = (0,
|
|
92456
|
+
const hash = (0, import_node_crypto72.createHash)("sha256");
|
|
92373
92457
|
hash.update(packagePath);
|
|
92374
92458
|
updateSwiftConfigStamp(hash, packagePath);
|
|
92375
92459
|
const libraries = projects().get(packagePath)?.libraries;
|
|
@@ -92398,7 +92482,7 @@ function sourceStamp(packagePath, moduleRootOverride, hosted = false) {
|
|
|
92398
92482
|
return hash.digest("hex").slice(0, 16);
|
|
92399
92483
|
}
|
|
92400
92484
|
function sourceContentStamp(packagePath, moduleRootOverride) {
|
|
92401
|
-
const hash = (0,
|
|
92485
|
+
const hash = (0, import_node_crypto72.createHash)("sha256");
|
|
92402
92486
|
hash.update(compilerSourceDigest);
|
|
92403
92487
|
updateSwiftConfigStamp(hash, packagePath);
|
|
92404
92488
|
const libraries = projects().get(packagePath)?.libraries;
|
|
@@ -92430,7 +92514,7 @@ function moduleStamp(packagePath, moduleRootOverride, hosted) {
|
|
|
92430
92514
|
(root) => import_node_fs117.default.existsSync(import_node_path119.default.join(root, "toolchain.json"))
|
|
92431
92515
|
);
|
|
92432
92516
|
if (!moduleRoot) return "";
|
|
92433
|
-
const hash = (0,
|
|
92517
|
+
const hash = (0, import_node_crypto72.createHash)("sha256");
|
|
92434
92518
|
hash.update(moduleRoot);
|
|
92435
92519
|
for (const relative3 of swiftModuleInputFiles(moduleRoot)) {
|
|
92436
92520
|
hash.update(relative3);
|
|
@@ -92440,7 +92524,7 @@ function moduleStamp(packagePath, moduleRootOverride, hosted) {
|
|
|
92440
92524
|
}
|
|
92441
92525
|
function otherInputs(input, standalone) {
|
|
92442
92526
|
const { files: _files, ...rest } = input;
|
|
92443
|
-
return (0,
|
|
92527
|
+
return (0, import_node_crypto72.createHash)("sha256").update(JSON.stringify({ ...rest, standalone })).digest("hex");
|
|
92444
92528
|
}
|
|
92445
92529
|
function icuUrl(origin, artifact) {
|
|
92446
92530
|
return "url" in artifact.icu ? artifact.icu.url : `${origin}${ICU_PATH}${swiftIcuAddress(artifact.icu)}`;
|
|
@@ -92455,7 +92539,7 @@ function standinLibraries(binaries, standins, rootDir, toolchain, rustWasm64) {
|
|
|
92455
92539
|
for (const standin of standins) {
|
|
92456
92540
|
if (!standin.prebuilt) continue;
|
|
92457
92541
|
const bytes = Buffer.from(standin.prebuilt.library, "base64");
|
|
92458
|
-
const digest2 = (0,
|
|
92542
|
+
const digest2 = (0, import_node_crypto72.createHash)("sha256").update(bytes).digest("hex");
|
|
92459
92543
|
const dir = import_node_path119.default.join(swiftCacheDir(), "native-archives", digest2);
|
|
92460
92544
|
import_node_fs117.default.mkdirSync(dir, { recursive: true });
|
|
92461
92545
|
const library = import_node_path119.default.join(dir, `lib${standin.module}.a`);
|
|
@@ -92797,7 +92881,7 @@ function swiftBuildRoot(packagePath, moduleRoot) {
|
|
|
92797
92881
|
return import_node_path119.default.join(
|
|
92798
92882
|
swiftCacheDir(),
|
|
92799
92883
|
"swift-builds",
|
|
92800
|
-
(0,
|
|
92884
|
+
(0, import_node_crypto72.createHash)("sha256").update(`${compilerKey}\0${buildKeyPath}`).digest("hex").slice(0, 16)
|
|
92801
92885
|
);
|
|
92802
92886
|
}
|
|
92803
92887
|
function installedWorkspaceInput(packagePath, entry, moduleRoot) {
|
|
@@ -93098,7 +93182,7 @@ async function fetchSwiftDyldTable(moduleUrl, module2, signal) {
|
|
|
93098
93182
|
const response = await fetch(url, { signal });
|
|
93099
93183
|
if (!response.ok) throw new Error(`swift compile: ${url} answered ${response.status}`);
|
|
93100
93184
|
const bytes = Buffer.from(await response.arrayBuffer());
|
|
93101
|
-
if (bytes.length !== byteLength || (0,
|
|
93185
|
+
if (bytes.length !== byteLength || (0, import_node_crypto72.createHash)("sha256").update(bytes).digest("hex") !== sha2565)
|
|
93102
93186
|
throw new Error(`swift compile: ${url} does not match its module's index`);
|
|
93103
93187
|
return { dyldTable: { sha256: sha2565, bytes } };
|
|
93104
93188
|
}
|
|
@@ -93177,13 +93261,13 @@ function swiftArtifactIsAvailable(origin, url, hash) {
|
|
|
93177
93261
|
(project) => project.artifacts.some((artifact) => artifact.hash === hash)
|
|
93178
93262
|
);
|
|
93179
93263
|
}
|
|
93180
|
-
var import_node_async_hooks2, import_node_child_process61,
|
|
93264
|
+
var import_node_async_hooks2, import_node_child_process61, import_node_crypto72, import_node_fs117, import_node_os25, import_node_path119, ARTIFACT_PATH, RESOURCE_PATH, ICU_PATH, SKIP_ROOT_DIRS, NATIVE_DESCRIPTOR, NATIVE_GLUE, SwiftMissingModulesError, swiftArtifactDigests, sharedProjects, projectScope, projects, sharedSourceEntries, sourceEntries, sharedXcodeProjects, xcodeProjects, preparedScriptInputs, emptyWasmAssembly, XCODE_APP_DIR, XCODE_FRAMEWORKS_DIR, XCODE_PACKAGES_DIR, layoutScope, HOSTED_LIMITS, LOCAL_LIMITS, inputLimits, RESOURCE_CONTENT_TYPES, API_GAP_PATTERNS, IOS_SDK_FRAMEWORKS;
|
|
93181
93265
|
var init_swift_host = __esm({
|
|
93182
93266
|
"src/swift-host.ts"() {
|
|
93183
93267
|
"use strict";
|
|
93184
93268
|
import_node_async_hooks2 = require("node:async_hooks");
|
|
93185
93269
|
import_node_child_process61 = require("node:child_process");
|
|
93186
|
-
|
|
93270
|
+
import_node_crypto72 = require("node:crypto");
|
|
93187
93271
|
import_node_fs117 = __toESM(require("node:fs"), 1);
|
|
93188
93272
|
import_node_os25 = __toESM(require("node:os"), 1);
|
|
93189
93273
|
import_node_path119 = __toESM(require("node:path"), 1);
|
|
@@ -93413,7 +93497,7 @@ function hashTree(root) {
|
|
|
93413
93497
|
for (const entry of import_node_fs120.default.readdirSync(root, { recursive: true, withFileTypes: true })) {
|
|
93414
93498
|
if (!entry.isFile()) continue;
|
|
93415
93499
|
const file = import_node_path122.default.join(entry.parentPath, entry.name);
|
|
93416
|
-
hashes[import_node_path122.default.relative(root, file).split(import_node_path122.default.sep).join("/")] = (0,
|
|
93500
|
+
hashes[import_node_path122.default.relative(root, file).split(import_node_path122.default.sep).join("/")] = (0, import_node_crypto73.createHash)("sha256").update(import_node_fs120.default.readFileSync(file)).digest("hex");
|
|
93417
93501
|
}
|
|
93418
93502
|
return Object.fromEntries(Object.entries(hashes).sort(([a], [b]) => a < b ? -1 : 1));
|
|
93419
93503
|
}
|
|
@@ -93463,12 +93547,12 @@ async function runInstalledTurboCodegen(appRoot, outDir, signal) {
|
|
|
93463
93547
|
files: hashTree(generatedRoot)
|
|
93464
93548
|
};
|
|
93465
93549
|
}
|
|
93466
|
-
var import_node_child_process62,
|
|
93550
|
+
var import_node_child_process62, import_node_crypto73, import_node_fs120, import_node_module15, import_node_path122, import_node_util16, run10, RENDERER_PODS, RENDERER_PODS_VERSIONED, COMPILED_SOURCE, LEGACY_BRIDGE_DEV_SUPPORT, LEGACY_BRIDGE_PODS, LEGACY_BRIDGE_PODS_VERSIONED;
|
|
93467
93551
|
var init_turbo_codegen_intake = __esm({
|
|
93468
93552
|
"src/turbo-codegen-intake.ts"() {
|
|
93469
93553
|
"use strict";
|
|
93470
93554
|
import_node_child_process62 = require("node:child_process");
|
|
93471
|
-
|
|
93555
|
+
import_node_crypto73 = require("node:crypto");
|
|
93472
93556
|
import_node_fs120 = __toESM(require("node:fs"), 1);
|
|
93473
93557
|
import_node_module15 = require("node:module");
|
|
93474
93558
|
import_node_path122 = __toESM(require("node:path"), 1);
|
|
@@ -97347,11 +97431,11 @@ extern "C" __attribute__((export_name("peach_fabric_component_names"))) const ch
|
|
|
97347
97431
|
}
|
|
97348
97432
|
`;
|
|
97349
97433
|
}
|
|
97350
|
-
var
|
|
97434
|
+
var import_node_crypto74, import_node_fs121, import_node_path123, 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;
|
|
97351
97435
|
var init_turbo_source = __esm({
|
|
97352
97436
|
"src/turbo-source.ts"() {
|
|
97353
97437
|
"use strict";
|
|
97354
|
-
|
|
97438
|
+
import_node_crypto74 = require("node:crypto");
|
|
97355
97439
|
import_node_fs121 = __toESM(require("node:fs"), 1);
|
|
97356
97440
|
import_node_path123 = __toESM(require("node:path"), 1);
|
|
97357
97441
|
init_cocoapods_trunk();
|
|
@@ -97477,7 +97561,7 @@ var init_turbo_source = __esm({
|
|
|
97477
97561
|
REACT_NATIVE_BARE_HEADER_DIRS = [
|
|
97478
97562
|
"ReactCommon/react/renderer/imagemanager/platform/ios/react/renderer/imagemanager"
|
|
97479
97563
|
];
|
|
97480
|
-
sha2564 = (data) => (0,
|
|
97564
|
+
sha2564 = (data) => (0, import_node_crypto74.createHash)("sha256").update(data).digest("hex");
|
|
97481
97565
|
podspecList = podspecAttribute;
|
|
97482
97566
|
versionParts = (version2) => version2.split(/[.-]/).map((p) => Number(p) || 0);
|
|
97483
97567
|
iosOf = (member) => object7(member.ios) ? member.ios : null;
|
|
@@ -98238,11 +98322,11 @@ function collectTurboCompileInput(collection, runtime, iosDeploymentTarget, depe
|
|
|
98238
98322
|
resources: { ...dependencies?.resources, ...collection.resources }
|
|
98239
98323
|
};
|
|
98240
98324
|
}
|
|
98241
|
-
var
|
|
98325
|
+
var import_node_crypto75, import_node_fs122, import_node_module16, import_node_os26, import_node_path124;
|
|
98242
98326
|
var init_turbo_compile = __esm({
|
|
98243
98327
|
"src/turbo-compile.ts"() {
|
|
98244
98328
|
"use strict";
|
|
98245
|
-
|
|
98329
|
+
import_node_crypto75 = require("node:crypto");
|
|
98246
98330
|
import_node_fs122 = __toESM(require("node:fs"), 1);
|
|
98247
98331
|
import_node_module16 = require("node:module");
|
|
98248
98332
|
import_node_os26 = __toESM(require("node:os"), 1);
|
|
@@ -98270,7 +98354,18 @@ async function buildReactNativeCore(project, reactNativeRoot, mode, moduleRoot)
|
|
|
98270
98354
|
const entry = reactNativeCoreEntry(reactNativeRoot, moduleRoot, mode);
|
|
98271
98355
|
const directory2 = nativeEntryCache("react-native", entry.name, entry.key);
|
|
98272
98356
|
const work = import_node_path125.default.join(cacheDir(), "react-native-core-build", entry.key);
|
|
98273
|
-
|
|
98357
|
+
const {
|
|
98358
|
+
compiler: _compiler,
|
|
98359
|
+
distribution: _distribution,
|
|
98360
|
+
recipe: _recipe,
|
|
98361
|
+
...nativeInputs
|
|
98362
|
+
} = entry.inputs;
|
|
98363
|
+
const buildRoot = import_node_path125.default.join(
|
|
98364
|
+
cacheDir(),
|
|
98365
|
+
"react-native-core-products",
|
|
98366
|
+
nativeEntryKey(nativeInputs)
|
|
98367
|
+
);
|
|
98368
|
+
return withSwiftRootLock(`${buildRoot}.core-lock`, async () => {
|
|
98274
98369
|
if (import_node_fs123.default.existsSync(import_node_path125.default.join(directory2, "descriptor.json"))) return directory2;
|
|
98275
98370
|
const module2 = { root: moduleRoot, ...swiftModuleToolchain(moduleRoot) };
|
|
98276
98371
|
const floor = reactNativeCoreFloor(reactNativeRoot);
|
|
@@ -98307,17 +98402,6 @@ async function buildReactNativeCore(project, reactNativeRoot, mode, moduleRoot)
|
|
|
98307
98402
|
}
|
|
98308
98403
|
const input = collectTurboCompileInput(producer, null, floor);
|
|
98309
98404
|
input.files[input.entry] = input.entry.endsWith(".swift") ? "@main struct PeachCoreProducer { static func main() {} }\n" : "int main() { return 0; }\n";
|
|
98310
|
-
const {
|
|
98311
|
-
compiler: _compiler,
|
|
98312
|
-
distribution: _distribution,
|
|
98313
|
-
recipe: _recipe,
|
|
98314
|
-
...nativeInputs
|
|
98315
|
-
} = entry.inputs;
|
|
98316
|
-
const buildRoot = import_node_path125.default.join(
|
|
98317
|
-
cacheDir(),
|
|
98318
|
-
"react-native-core-products",
|
|
98319
|
-
nativeEntryKey(nativeInputs)
|
|
98320
|
-
);
|
|
98321
98405
|
await compileSwiftProjectUnit(input, {
|
|
98322
98406
|
...module2,
|
|
98323
98407
|
moduleRoot: module2.root,
|
|
@@ -98459,8 +98543,8 @@ function reactNativeCoreEntry(reactNativeRoot, moduleRoot, mode) {
|
|
|
98459
98543
|
);
|
|
98460
98544
|
if (!isRecord(manifest) || typeof manifest.version !== "string")
|
|
98461
98545
|
throw new Error(`${reactNativeRoot}: react-native has no version`);
|
|
98462
|
-
const headers = (0,
|
|
98463
|
-
const sources = (0,
|
|
98546
|
+
const headers = (0, import_node_crypto76.createHash)("sha256");
|
|
98547
|
+
const sources = (0, import_node_crypto76.createHash)("sha256");
|
|
98464
98548
|
const walk4 = (relative3) => {
|
|
98465
98549
|
for (const file of import_node_fs124.default.readdirSync(import_node_path126.default.join(reactNativeRoot, relative3), { withFileTypes: true }).sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0)) {
|
|
98466
98550
|
if (file.name === "node_modules" || file.name.startsWith(".")) continue;
|
|
@@ -98488,7 +98572,7 @@ function reactNativeCoreEntry(reactNativeRoot, moduleRoot, mode) {
|
|
|
98488
98572
|
"react-native": manifest.version,
|
|
98489
98573
|
headers: headers.digest("hex"),
|
|
98490
98574
|
sources: sources.digest("hex"),
|
|
98491
|
-
compiler:
|
|
98575
|
+
compiler: swiftArchiveCompilerDigestValue(),
|
|
98492
98576
|
recipe,
|
|
98493
98577
|
mode,
|
|
98494
98578
|
"ios-deployment-target": reactNativeCoreFloor(reactNativeRoot),
|
|
@@ -98527,11 +98611,11 @@ async function prebuiltReactNativeCore(project, reactNativeRoot, moduleRoot, mod
|
|
|
98527
98611
|
throw new Error(`React Native core ${entry.key} does not match its descriptor`);
|
|
98528
98612
|
return readReactNativeCore(JSON.parse(import_node_fs124.default.readFileSync(file, "utf8")));
|
|
98529
98613
|
}
|
|
98530
|
-
var
|
|
98614
|
+
var import_node_crypto76, import_node_fs124, import_node_module17, import_node_path126, import_node_util17, recipe, strings4, building;
|
|
98531
98615
|
var init_react_native_core = __esm({
|
|
98532
98616
|
"src/react-native-core.ts"() {
|
|
98533
98617
|
"use strict";
|
|
98534
|
-
|
|
98618
|
+
import_node_crypto76 = require("node:crypto");
|
|
98535
98619
|
import_node_fs124 = __toESM(require("node:fs"), 1);
|
|
98536
98620
|
import_node_module17 = require("node:module");
|
|
98537
98621
|
import_node_path126 = __toESM(require("node:path"), 1);
|
|
@@ -98542,10 +98626,11 @@ var init_react_native_core = __esm({
|
|
|
98542
98626
|
init_native_static_libraries();
|
|
98543
98627
|
init_react_native_core_digest();
|
|
98544
98628
|
init_swift_compile();
|
|
98629
|
+
init_swift_compiler_digest();
|
|
98545
98630
|
init_swift_distribution();
|
|
98546
98631
|
init_swift_package();
|
|
98547
98632
|
init_swiftContract();
|
|
98548
|
-
recipe = true ? "
|
|
98633
|
+
recipe = true ? "737e4942681b979bd94d697440cd3fc71975f9bb732444bd4e08d57dd493e833" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
98549
98634
|
strings4 = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
98550
98635
|
building = /* @__PURE__ */ new Map();
|
|
98551
98636
|
}
|
|
@@ -98556,7 +98641,7 @@ function exportedNames(moduleRoot, name3) {
|
|
|
98556
98641
|
const modules = import_node_path127.default.join(moduleRoot, "modules");
|
|
98557
98642
|
const module2 = import_node_path127.default.join(modules, `${name3}.swiftmodule`);
|
|
98558
98643
|
if (!import_node_fs125.default.existsSync(module2)) return /* @__PURE__ */ new Set();
|
|
98559
|
-
const key2 = (0,
|
|
98644
|
+
const key2 = (0, import_node_crypto77.createHash)("sha256").update(import_node_fs125.default.readFileSync(module2)).digest("hex");
|
|
98560
98645
|
const directory2 = import_node_path127.default.join(swiftCacheDir(), "swift-public-names");
|
|
98561
98646
|
const receipt = import_node_path127.default.join(directory2, `${key2}.json`);
|
|
98562
98647
|
if (import_node_fs125.default.existsSync(receipt)) {
|
|
@@ -98639,12 +98724,12 @@ function clangTypeOwnership(moduleRoot, module2) {
|
|
|
98639
98724
|
}
|
|
98640
98725
|
);
|
|
98641
98726
|
}
|
|
98642
|
-
var import_node_child_process64,
|
|
98727
|
+
var import_node_child_process64, import_node_crypto77, import_node_fs125, import_node_path127, blockTypedef, enumTypedef, enumConstant, swiftPrivate;
|
|
98643
98728
|
var init_swift_clang_type_ownership = __esm({
|
|
98644
98729
|
"src/swift-clang-type-ownership.ts"() {
|
|
98645
98730
|
"use strict";
|
|
98646
98731
|
import_node_child_process64 = require("node:child_process");
|
|
98647
|
-
|
|
98732
|
+
import_node_crypto77 = require("node:crypto");
|
|
98648
98733
|
import_node_fs125 = __toESM(require("node:fs"), 1);
|
|
98649
98734
|
import_node_path127 = __toESM(require("node:path"), 1);
|
|
98650
98735
|
init_is_record();
|
|
@@ -100287,7 +100372,7 @@ function targetSettings2(units) {
|
|
|
100287
100372
|
}
|
|
100288
100373
|
function oneSDKStamp(oneSDK) {
|
|
100289
100374
|
if (!oneSDK) return "";
|
|
100290
|
-
const hash = (0,
|
|
100375
|
+
const hash = (0, import_node_crypto78.createHash)("sha256");
|
|
100291
100376
|
for (const files2 of [oneSDK.targets, oneSDK.entry])
|
|
100292
100377
|
for (const [name3, source] of [...files2].sort(([a], [b]) => a.localeCompare(b)))
|
|
100293
100378
|
hash.update(`${name3}\0${source}\0`);
|
|
@@ -100338,7 +100423,7 @@ ${bridgeModules.length ? "import React\n" : ""}${oneSDK ? "import One\nimport On
|
|
|
100338
100423
|
`;
|
|
100339
100424
|
}
|
|
100340
100425
|
function expoSwiftPreparedKey(base, units, reactProviderStamp) {
|
|
100341
|
-
const hash = (0,
|
|
100426
|
+
const hash = (0, import_node_crypto78.createHash)("sha256");
|
|
100342
100427
|
hash.update(base);
|
|
100343
100428
|
hash.update(reactProviderStamp);
|
|
100344
100429
|
for (const unit2 of units) {
|
|
@@ -100712,8 +100797,8 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
100712
100797
|
}
|
|
100713
100798
|
return provider;
|
|
100714
100799
|
})() : void 0;
|
|
100715
|
-
const reactProviderStamp = reactProvider ? (0,
|
|
100716
|
-
const key2 = (0,
|
|
100800
|
+
const reactProviderStamp = reactProvider ? (0, import_node_crypto78.createHash)("sha256").update(JSON.stringify(reactProvider)).digest("hex") : "";
|
|
100801
|
+
const key2 = (0, import_node_crypto78.createHash)("sha256").update(import_node_fs126.default.realpathSync(root)).digest("hex");
|
|
100717
100802
|
const unitContentStamp = (unit2) => sourceContentStamp(expoSwiftPackage(key2, unit2.moduleId), module2.root) + (unit2.reactNativeProvider ? `:${reactProviderStamp}` : "");
|
|
100718
100803
|
const failures = /* @__PURE__ */ new Map();
|
|
100719
100804
|
const failureRecords = /* @__PURE__ */ new Map();
|
|
@@ -101055,13 +101140,13 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
101055
101140
|
throw failure2;
|
|
101056
101141
|
}
|
|
101057
101142
|
}
|
|
101058
|
-
var import_node_async_hooks3, import_node_child_process65,
|
|
101143
|
+
var import_node_async_hooks3, import_node_child_process65, import_node_crypto78, import_node_fs126, import_node_module18, import_node_os27, import_node_path128, import_node_url4, import_node_util18, run11, scriptEnv, EXPO_SWIFT_ENTRY, WITNESS_BATCH, traceStore, discoveryCache, preparedCache, savedFs, ignoredRoots, ownTemporaryRoots, EXPO_MODULE_SCAN_TIMEOUT_MS, preparedExpoSwift, openPreparations, ExpoSwiftLinkRefusal;
|
|
101059
101144
|
var init_expo_swift_host = __esm({
|
|
101060
101145
|
"src/expo-swift-host.ts"() {
|
|
101061
101146
|
"use strict";
|
|
101062
101147
|
import_node_async_hooks3 = require("node:async_hooks");
|
|
101063
101148
|
import_node_child_process65 = require("node:child_process");
|
|
101064
|
-
|
|
101149
|
+
import_node_crypto78 = require("node:crypto");
|
|
101065
101150
|
import_node_fs126 = __toESM(require("node:fs"), 1);
|
|
101066
101151
|
import_node_module18 = require("node:module");
|
|
101067
101152
|
import_node_os27 = __toESM(require("node:os"), 1);
|