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;
|
|
@@ -10068,7 +10068,10 @@ var init_swift_objc_sdk_tree = __esm({
|
|
|
10068
10068
|
});
|
|
10069
10069
|
|
|
10070
10070
|
// src/swift-compiler-digest.ts
|
|
10071
|
-
|
|
10071
|
+
function swiftArchiveCompilerDigestValue() {
|
|
10072
|
+
return true ? "53326609252f356d24373d653503ae1ad7e08db0a4b20c5236e7e7d1c769ee7f" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname, "archive");
|
|
10073
|
+
}
|
|
10074
|
+
var import_node_crypto9, import_node_fs20, import_node_path16, SWIFT_DIGEST_SOURCES, LINKED_IMAGE_SOURCES, SWIFT_ARCHIVE_DIGEST_SOURCES;
|
|
10072
10075
|
var init_swift_compiler_digest = __esm({
|
|
10073
10076
|
"src/swift-compiler-digest.ts"() {
|
|
10074
10077
|
"use strict";
|
|
@@ -10076,6 +10079,72 @@ var init_swift_compiler_digest = __esm({
|
|
|
10076
10079
|
import_node_fs20 = require("node:fs");
|
|
10077
10080
|
import_node_path16 = __toESM(require("node:path"), 1);
|
|
10078
10081
|
init_swift_objc_sdk_tree();
|
|
10082
|
+
SWIFT_DIGEST_SOURCES = [
|
|
10083
|
+
"swift-compile.ts",
|
|
10084
|
+
"swift-sdk-surface.ts",
|
|
10085
|
+
"swift-wasm-archive.ts",
|
|
10086
|
+
"swift-lexical.ts",
|
|
10087
|
+
"swift-header-compiler.ts",
|
|
10088
|
+
"swift-header-dependencies.ts",
|
|
10089
|
+
"swift-reproducible.ts",
|
|
10090
|
+
"write-build-file.ts",
|
|
10091
|
+
"xcode-header-search.ts",
|
|
10092
|
+
"case-insensitive-header-overlay.ts",
|
|
10093
|
+
"swift-package.ts",
|
|
10094
|
+
"swift-package-prebuilt.ts",
|
|
10095
|
+
"swift-package-prebuilt-targets.ts",
|
|
10096
|
+
"swift-objc-prebuilt.ts",
|
|
10097
|
+
"swift-objc-prebuilt-catalog.ts",
|
|
10098
|
+
"swift-toolchain.ts",
|
|
10099
|
+
"swift-shared-sdk.ts",
|
|
10100
|
+
"swift-distribution-mirror.ts",
|
|
10101
|
+
"swift-design-time.ts",
|
|
10102
|
+
"binaryen.lock.json",
|
|
10103
|
+
"swift-root-lock.ts",
|
|
10104
|
+
"process-table.ts",
|
|
10105
|
+
"swift-link-roots.ts",
|
|
10106
|
+
"swift-wasm-prune.ts",
|
|
10107
|
+
"wasm-optimize.ts",
|
|
10108
|
+
"wasm-features.ts",
|
|
10109
|
+
"wasm-narrow-boundary.ts",
|
|
10110
|
+
"../../peach-kit/src/nativeWasmContract.ts",
|
|
10111
|
+
"swift-guest-image-ledger.ts",
|
|
10112
|
+
"swift-guest-archive.ts",
|
|
10113
|
+
"swift-guest-link-plan.ts",
|
|
10114
|
+
"swift-guest-link.ts",
|
|
10115
|
+
"swift-guest-compile.ts",
|
|
10116
|
+
"swift-guest-dyld-functions.ts",
|
|
10117
|
+
"swift-guest-linked-spans.ts",
|
|
10118
|
+
"swift-guest-source-plan.ts",
|
|
10119
|
+
"swift-guest-runtime-plan.ts",
|
|
10120
|
+
"swift-guest-source-inputs.ts",
|
|
10121
|
+
"swift-guest-manifest.ts",
|
|
10122
|
+
"swift-guest-projection.ts",
|
|
10123
|
+
"swift-guest-projection-storage.ts",
|
|
10124
|
+
"swiftGuestImageContract.ts",
|
|
10125
|
+
"swift-runtime-products.ts",
|
|
10126
|
+
"swift-sdk-app-module.ts",
|
|
10127
|
+
"swift-sdk-image-map.ts",
|
|
10128
|
+
"swift-sdk-image-wasm.ts",
|
|
10129
|
+
"swift-sdk-image.ts",
|
|
10130
|
+
"../../peach-kit/src/nativeSdkBindingContract.ts",
|
|
10131
|
+
"swiftRuntimeProductContract.ts",
|
|
10132
|
+
"swiftTargetContract.ts",
|
|
10133
|
+
"swift-objc-import.ts",
|
|
10134
|
+
"swiftContract.ts",
|
|
10135
|
+
"swift-objc-platform.ts",
|
|
10136
|
+
"swift-objc-standin.ts",
|
|
10137
|
+
"swift-objc-sdk.ts"
|
|
10138
|
+
];
|
|
10139
|
+
LINKED_IMAGE_SOURCES = /* @__PURE__ */ new Set([
|
|
10140
|
+
"binaryen.lock.json",
|
|
10141
|
+
"swift-sdk-app-module.ts",
|
|
10142
|
+
"swift-sdk-image.ts",
|
|
10143
|
+
"wasm-optimize.ts"
|
|
10144
|
+
]);
|
|
10145
|
+
SWIFT_ARCHIVE_DIGEST_SOURCES = SWIFT_DIGEST_SOURCES.filter(
|
|
10146
|
+
(file) => !LINKED_IMAGE_SOURCES.has(file)
|
|
10147
|
+
);
|
|
10079
10148
|
}
|
|
10080
10149
|
});
|
|
10081
10150
|
|
|
@@ -14892,12 +14961,13 @@ function parseSwiftDistributionLock(value) {
|
|
|
14892
14961
|
if (runtime === void 0) return void 0;
|
|
14893
14962
|
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(
|
|
14894
14963
|
runtime.url
|
|
14895
|
-
) || runtime.dataPlan !== void 0 && (typeof runtime.dataPlan !== "string" || !/^[a-f0-9]{64}$/.test(runtime.dataPlan)))
|
|
14964
|
+
) || 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)))
|
|
14896
14965
|
throw new Error("invalid shared SDK runtime publication in Swift distribution lock");
|
|
14897
14966
|
return {
|
|
14898
14967
|
source: runtime.source,
|
|
14899
14968
|
url: runtime.url,
|
|
14900
|
-
...runtime.dataPlan && { dataPlan: runtime.dataPlan }
|
|
14969
|
+
...runtime.dataPlan && { dataPlan: runtime.dataPlan },
|
|
14970
|
+
...runtime.recipe && { recipe: runtime.recipe }
|
|
14901
14971
|
};
|
|
14902
14972
|
};
|
|
14903
14973
|
const sdkRuntime = publication(value.sdkRuntime);
|
|
@@ -30840,6 +30910,21 @@ var init_swift_root_lock = __esm({
|
|
|
30840
30910
|
}
|
|
30841
30911
|
});
|
|
30842
30912
|
|
|
30913
|
+
// src/swift-sdk-image-recipe.ts
|
|
30914
|
+
var import_node_crypto27, SWIFT_SDK_IMAGE_VERSION, swiftSdkImageScope, SWIFT_SDK_IMAGE_RECIPE;
|
|
30915
|
+
var init_swift_sdk_image_recipe = __esm({
|
|
30916
|
+
"src/swift-sdk-image-recipe.ts"() {
|
|
30917
|
+
"use strict";
|
|
30918
|
+
import_node_crypto27 = require("node:crypto");
|
|
30919
|
+
init_wasm_optimize();
|
|
30920
|
+
SWIFT_SDK_IMAGE_VERSION = 13;
|
|
30921
|
+
swiftSdkImageScope = (scopedLookups) => scopedLookups ? "guest image scopes 9\n" : "unscoped constructor order 1\n";
|
|
30922
|
+
SWIFT_SDK_IMAGE_RECIPE = (0, import_node_crypto27.createHash)("sha256").update(`swift-sdk-image
|
|
30923
|
+
${SWIFT_SDK_IMAGE_VERSION}
|
|
30924
|
+
`).update(WASM_LOWER_IDENTITY).update(swiftSdkImageScope(false)).update(swiftSdkImageScope(true)).digest("hex").slice(0, 16);
|
|
30925
|
+
}
|
|
30926
|
+
});
|
|
30927
|
+
|
|
30843
30928
|
// src/swift-sdk-image-producer.ts
|
|
30844
30929
|
var swift_sdk_image_producer_exports = {};
|
|
30845
30930
|
__export(swift_sdk_image_producer_exports, {
|
|
@@ -30880,7 +30965,7 @@ function applySwiftSdkProducerEnvironment(environment) {
|
|
|
30880
30965
|
}
|
|
30881
30966
|
}
|
|
30882
30967
|
function writeSwiftSdkProducerResult(file, launchId, error) {
|
|
30883
|
-
const temporary = `${file}.${(0,
|
|
30968
|
+
const temporary = `${file}.${(0, import_node_crypto28.randomUUID)()}`;
|
|
30884
30969
|
(0, import_node_fs44.writeFileSync)(temporary, JSON.stringify({ launchId, error: error ?? null }));
|
|
30885
30970
|
(0, import_node_fs44.renameSync)(temporary, file);
|
|
30886
30971
|
}
|
|
@@ -30992,7 +31077,7 @@ async function produceSwiftSdkImage(input) {
|
|
|
30992
31077
|
}
|
|
30993
31078
|
}
|
|
30994
31079
|
const repo = import_node_path42.default.resolve(input.moduleRoot, "../..");
|
|
30995
|
-
const launchId = (0,
|
|
31080
|
+
const launchId = (0, import_node_crypto28.randomUUID)();
|
|
30996
31081
|
const directory3 = import_node_path42.default.join(root, launchId);
|
|
30997
31082
|
const requestFile = import_node_path42.default.join(directory3, "request.json");
|
|
30998
31083
|
const sessionFile2 = import_node_path42.default.join(directory3, "session");
|
|
@@ -31090,12 +31175,12 @@ async function produceSwiftSdkImage(input) {
|
|
|
31090
31175
|
await (0, import_promises5.setTimeout)(2e3, void 0, { signal: input.signal });
|
|
31091
31176
|
}
|
|
31092
31177
|
}
|
|
31093
|
-
var import_node_child_process27,
|
|
31178
|
+
var import_node_child_process27, import_node_crypto28, import_node_fs44, import_node_path42, import_promises5, import_node_util7, run, environmentNames, launcher;
|
|
31094
31179
|
var init_swift_sdk_image_producer = __esm({
|
|
31095
31180
|
"src/swift-sdk-image-producer.ts"() {
|
|
31096
31181
|
"use strict";
|
|
31097
31182
|
import_node_child_process27 = require("node:child_process");
|
|
31098
|
-
|
|
31183
|
+
import_node_crypto28 = require("node:crypto");
|
|
31099
31184
|
import_node_fs44 = require("node:fs");
|
|
31100
31185
|
import_node_path42 = __toESM(require("node:path"), 1);
|
|
31101
31186
|
import_promises5 = require("node:timers/promises");
|
|
@@ -31135,7 +31220,6 @@ __export(swift_sdk_image_exports, {
|
|
|
31135
31220
|
SWIFT_SDK_APP_TABLE_BASE: () => SWIFT_SDK_APP_TABLE_BASE,
|
|
31136
31221
|
SWIFT_SDK_IMAGE_BUNDLE: () => SWIFT_SDK_IMAGE_BUNDLE,
|
|
31137
31222
|
SWIFT_SDK_IMAGE_FILES: () => SWIFT_SDK_IMAGE_FILES,
|
|
31138
|
-
SWIFT_SDK_IMAGE_VERSION: () => SWIFT_SDK_IMAGE_VERSION,
|
|
31139
31223
|
SWIFT_SDK_MEMORY_BASE: () => SWIFT_SDK_MEMORY_BASE,
|
|
31140
31224
|
SWIFT_SDK_PIECE_FIELDS: () => SWIFT_SDK_PIECE_FIELDS,
|
|
31141
31225
|
buildSwiftSdkImage: () => buildSwiftSdkImage,
|
|
@@ -31170,9 +31254,9 @@ function swiftSdkImageProducts(moduleRoot, frameworkImports2) {
|
|
|
31170
31254
|
function swiftSdkImageKey(moduleRoot, scopedLookups = false, products = []) {
|
|
31171
31255
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
31172
31256
|
const inputs2 = distribution ? swiftSdkDistributionInputs(distribution) : swiftModuleDigest(moduleRoot);
|
|
31173
|
-
return (0,
|
|
31257
|
+
return (0, import_node_crypto29.createHash)("sha256").update(`swift-sdk-image
|
|
31174
31258
|
${SWIFT_SDK_IMAGE_VERSION}
|
|
31175
|
-
`).update(WASM_LOWER_IDENTITY).update(KEEP_WASM_NAMES ? "\nnames\n" : "\n").update(scopedLookups
|
|
31259
|
+
`).update(WASM_LOWER_IDENTITY).update(KEEP_WASM_NAMES ? "\nnames\n" : "\n").update(swiftSdkImageScope(scopedLookups)).update(inputs2).update(products.length === 0 ? "" : `
|
|
31176
31260
|
products ${products.join(" ")}`).digest("hex").slice(0, 32);
|
|
31177
31261
|
}
|
|
31178
31262
|
function swiftSdkImageEntry(key2, scopedLookups) {
|
|
@@ -31261,7 +31345,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
|
|
|
31261
31345
|
stage
|
|
31262
31346
|
]);
|
|
31263
31347
|
const image = cached(stage, key2);
|
|
31264
|
-
if (!image || (0,
|
|
31348
|
+
if (!image || (0, import_node_crypto29.createHash)("sha256").update((0, import_node_fs45.readFileSync)(image.image)).digest("hex") !== image.sha256)
|
|
31265
31349
|
throw new Error(`invalid published Swift SDK image ${key2}`);
|
|
31266
31350
|
(0, import_node_fs45.rmSync)(directory2, { recursive: true, force: true });
|
|
31267
31351
|
(0, import_node_fs45.renameSync)(stage, directory2);
|
|
@@ -31531,7 +31615,7 @@ async function linkSwiftSdkImage(moduleRoot, key2, directory2, work, scopedLooku
|
|
|
31531
31615
|
(0, import_node_fs45.writeFileSync)(import_node_path43.default.join(work, INTERFACE_FILE), JSON.stringify(sdkInterface));
|
|
31532
31616
|
(0, import_node_fs45.writeFileSync)(
|
|
31533
31617
|
import_node_path43.default.join(work, IMAGE_DIGEST),
|
|
31534
|
-
typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(image).digest("hex") : (0,
|
|
31618
|
+
typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(image).digest("hex") : (0, import_node_crypto29.createHash)("sha256").update(image).digest("hex")
|
|
31535
31619
|
);
|
|
31536
31620
|
if (swiftSdkImageKey(
|
|
31537
31621
|
moduleRoot,
|
|
@@ -31800,12 +31884,12 @@ function readSwiftSdkManifest(image) {
|
|
|
31800
31884
|
}));
|
|
31801
31885
|
return setBoundedCache(cachedSdkManifests, cacheKey, { manifest, block: block2, segments });
|
|
31802
31886
|
}
|
|
31803
|
-
var import_node_child_process28,
|
|
31887
|
+
var import_node_child_process28, import_node_crypto29, import_node_fs45, import_node_path43, import_node_util8, run2, 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;
|
|
31804
31888
|
var init_swift_sdk_image = __esm({
|
|
31805
31889
|
"src/swift-sdk-image.ts"() {
|
|
31806
31890
|
"use strict";
|
|
31807
31891
|
import_node_child_process28 = require("node:child_process");
|
|
31808
|
-
|
|
31892
|
+
import_node_crypto29 = require("node:crypto");
|
|
31809
31893
|
import_node_fs45 = require("node:fs");
|
|
31810
31894
|
import_node_path43 = __toESM(require("node:path"), 1);
|
|
31811
31895
|
import_node_util8 = require("node:util");
|
|
@@ -31817,13 +31901,13 @@ var init_swift_sdk_image = __esm({
|
|
|
31817
31901
|
init_swift_root_lock();
|
|
31818
31902
|
init_swift_sdk_guest_lookups();
|
|
31819
31903
|
init_swift_sdk_image_map();
|
|
31904
|
+
init_swift_sdk_image_recipe();
|
|
31820
31905
|
init_swift_sdk_image_wasm();
|
|
31821
31906
|
init_swift_toolchain();
|
|
31822
31907
|
init_swift_wasm_prune();
|
|
31823
31908
|
init_swiftTargetContract();
|
|
31824
31909
|
init_wasm_optimize();
|
|
31825
31910
|
run2 = (0, import_node_util8.promisify)(import_node_child_process28.execFile);
|
|
31826
|
-
SWIFT_SDK_IMAGE_VERSION = 13;
|
|
31827
31911
|
SWIFT_SDK_APP_MEMORY_BASE = 8372224;
|
|
31828
31912
|
SWIFT_SDK_MEMORY_BASE = 128 * 1024 * 1024;
|
|
31829
31913
|
SWIFT_SDK_APP_TABLE_BASE = 524288;
|
|
@@ -32349,7 +32433,7 @@ async function linkSwiftAppModule(options2) {
|
|
|
32349
32433
|
lazy,
|
|
32350
32434
|
KEEP_WASM_NAMES
|
|
32351
32435
|
])
|
|
32352
|
-
).update(bytes).digest("hex") : (0,
|
|
32436
|
+
).update(bytes).digest("hex") : (0, import_node_crypto30.createHash)("sha256").update(
|
|
32353
32437
|
JSON.stringify([
|
|
32354
32438
|
loweringCache.compilerDigest,
|
|
32355
32439
|
optimize,
|
|
@@ -32968,7 +33052,7 @@ function createSwiftSdkBinding(linkage, sdk2, usage, projection) {
|
|
|
32968
33052
|
bindSwiftAppModule(linkage, sdk2),
|
|
32969
33053
|
selectSwiftSdkData(sdk2, usage, linkage, projection)
|
|
32970
33054
|
]);
|
|
32971
|
-
const sha2565 = typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(bytes).digest("hex") : (0,
|
|
33055
|
+
const sha2565 = typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(bytes).digest("hex") : (0, import_node_crypto30.createHash)("sha256").update(bytes).digest("hex");
|
|
32972
33056
|
return { bytes, sha256: sha2565 };
|
|
32973
33057
|
}
|
|
32974
33058
|
function readSwiftSdkUsage(mapFile, linkedFile, sdkObjects) {
|
|
@@ -33515,12 +33599,12 @@ function partitionParent(section2) {
|
|
|
33515
33599
|
"__objc_class_refs"
|
|
33516
33600
|
].find((name3) => section2 === name3 || section2.startsWith(`${name3}.`));
|
|
33517
33601
|
}
|
|
33518
|
-
var import_node_child_process29,
|
|
33602
|
+
var import_node_child_process29, import_node_crypto30, import_node_fs46, import_node_path44, import_node_util9, import_node_zlib5, run3, RELOCATION_WIDTHS, GLOBAL_INDEX, TLS_SLEB64, SDK_TLS_HELPER, SDK_TLS_DELTA, OBJC_SECTION_BOUNDARY, uleb4, sleb2, encodedName2, SCANNED, RUN_GAP;
|
|
33519
33603
|
var init_swift_sdk_app_module = __esm({
|
|
33520
33604
|
"src/swift-sdk-app-module.ts"() {
|
|
33521
33605
|
"use strict";
|
|
33522
33606
|
import_node_child_process29 = require("node:child_process");
|
|
33523
|
-
|
|
33607
|
+
import_node_crypto30 = require("node:crypto");
|
|
33524
33608
|
import_node_fs46 = require("node:fs");
|
|
33525
33609
|
import_node_path44 = __toESM(require("node:path"), 1);
|
|
33526
33610
|
import_node_util9 = require("node:util");
|
|
@@ -34226,7 +34310,7 @@ function compilerCheckpoint(root, recipe2, args, header) {
|
|
|
34226
34310
|
}
|
|
34227
34311
|
if (!objects.length) return;
|
|
34228
34312
|
const outputs = [module2, header, map2[""].dependencies, ...objects];
|
|
34229
|
-
const digest3 = (0,
|
|
34313
|
+
const digest3 = (0, import_node_crypto31.createHash)("sha256").update(recipe2).update(JSON.stringify(args)).update(mapText);
|
|
34230
34314
|
for (const flag of args) {
|
|
34231
34315
|
if (!flag.startsWith("@")) continue;
|
|
34232
34316
|
const response = flag.slice(1);
|
|
@@ -34320,11 +34404,11 @@ async function withSwiftHeaderCompiler(root, toolchainBin, recipe2, producers, b
|
|
|
34320
34404
|
(0, import_node_fs48.rmSync)(directory2, { recursive: true, force: true });
|
|
34321
34405
|
}
|
|
34322
34406
|
}
|
|
34323
|
-
var
|
|
34407
|
+
var import_node_crypto31, import_node_fs48, import_node_http2, import_node_path46, SWIFT_HEADER_COMPILER_WRAPPER, argument, client;
|
|
34324
34408
|
var init_swift_header_compiler = __esm({
|
|
34325
34409
|
"src/swift-header-compiler.ts"() {
|
|
34326
34410
|
"use strict";
|
|
34327
|
-
|
|
34411
|
+
import_node_crypto31 = require("node:crypto");
|
|
34328
34412
|
import_node_fs48 = require("node:fs");
|
|
34329
34413
|
import_node_http2 = require("node:http");
|
|
34330
34414
|
import_node_path46 = __toESM(require("node:path"), 1);
|
|
@@ -34607,7 +34691,7 @@ function swiftIcuAsset(toolchainBin, sdk2) {
|
|
|
34607
34691
|
JSON.stringify([toolchainBin, sdk2, swiftSdkOptions()]),
|
|
34608
34692
|
async () => {
|
|
34609
34693
|
const zipped = await deflate(await swiftIcuData(toolchainBin, sdk2));
|
|
34610
|
-
return { sha256: (0,
|
|
34694
|
+
return { sha256: (0, import_node_crypto32.createHash)("sha256").update(zipped).digest("hex"), gzip: zipped };
|
|
34611
34695
|
}
|
|
34612
34696
|
);
|
|
34613
34697
|
}
|
|
@@ -34709,7 +34793,7 @@ function swiftIcuPacked(icu) {
|
|
|
34709
34793
|
)
|
|
34710
34794
|
);
|
|
34711
34795
|
await (0, import_promises6.mkdir)(import_node_path48.default.dirname(file), { recursive: true });
|
|
34712
|
-
const tmp = `${file}.${(0,
|
|
34796
|
+
const tmp = `${file}.${(0, import_node_crypto32.randomUUID)()}.tmp`;
|
|
34713
34797
|
await (0, import_promises6.writeFile)(tmp, packed);
|
|
34714
34798
|
await (0, import_promises6.rename)(tmp, file);
|
|
34715
34799
|
return packed;
|
|
@@ -34722,12 +34806,12 @@ async function swiftIcuBundleAsset(icu) {
|
|
|
34722
34806
|
contentType: "application/octet-stream"
|
|
34723
34807
|
};
|
|
34724
34808
|
}
|
|
34725
|
-
var import_node_child_process31,
|
|
34809
|
+
var import_node_child_process31, import_node_crypto32, import_node_fs49, import_promises6, import_node_os12, import_node_path48, import_node_util10, import_node_zlib6, run4, deflate, compressBrotli, inflateGzip, ARCHIVE, MEMBER, raw, assets, packedFiles;
|
|
34726
34810
|
var init_swift_icu = __esm({
|
|
34727
34811
|
"src/swift-icu.ts"() {
|
|
34728
34812
|
"use strict";
|
|
34729
34813
|
import_node_child_process31 = require("node:child_process");
|
|
34730
|
-
|
|
34814
|
+
import_node_crypto32 = require("node:crypto");
|
|
34731
34815
|
import_node_fs49 = require("node:fs");
|
|
34732
34816
|
import_promises6 = require("node:fs/promises");
|
|
34733
34817
|
import_node_os12 = __toESM(require("node:os"), 1);
|
|
@@ -34997,7 +35081,7 @@ function swiftObjCPrebuiltCompiler(clang, root, sysroot, distribution, targets,
|
|
|
34997
35081
|
);
|
|
34998
35082
|
if (!modules.length) return [];
|
|
34999
35083
|
const { executable, prefixArgs } = rnxSelfInvocation();
|
|
35000
|
-
const compiler = (0,
|
|
35084
|
+
const compiler = (0, import_node_crypto33.createHash)("sha256").update(import_node_fs51.default.readFileSync(clang)).digest("hex");
|
|
35001
35085
|
return [
|
|
35002
35086
|
'case "$module" in',
|
|
35003
35087
|
` ${modules.join("|")}) exec ${[
|
|
@@ -35015,12 +35099,12 @@ function swiftObjCPrebuiltCompiler(clang, root, sysroot, distribution, targets,
|
|
|
35015
35099
|
"esac"
|
|
35016
35100
|
];
|
|
35017
35101
|
}
|
|
35018
|
-
var import_node_child_process33,
|
|
35102
|
+
var import_node_child_process33, import_node_crypto33, import_node_fs51, import_node_path50, quote2;
|
|
35019
35103
|
var init_swift_objc_prebuilt = __esm({
|
|
35020
35104
|
"src/swift-objc-prebuilt.ts"() {
|
|
35021
35105
|
"use strict";
|
|
35022
35106
|
import_node_child_process33 = require("node:child_process");
|
|
35023
|
-
|
|
35107
|
+
import_node_crypto33 = require("node:crypto");
|
|
35024
35108
|
import_node_fs51 = __toESM(require("node:fs"), 1);
|
|
35025
35109
|
import_node_path50 = __toESM(require("node:path"), 1);
|
|
35026
35110
|
init_internal_child_contract();
|
|
@@ -35373,7 +35457,7 @@ function swiftPackagePrebuiltEntries(input, moduleRoot, toolchainBin) {
|
|
|
35373
35457
|
([file, source]) => !/\.(?:swift|c|h|inc|modulemap)$/.test(file) || file.endsWith(".swift") && swiftImportNames(source, available2).some((name4) => !available2.has(name4))
|
|
35374
35458
|
))
|
|
35375
35459
|
return [];
|
|
35376
|
-
const hash = (0,
|
|
35460
|
+
const hash = (0, import_node_crypto34.createHash)("sha256");
|
|
35377
35461
|
for (const entry of files2.sort(
|
|
35378
35462
|
([left], [right]) => left < right ? -1 : left > right ? 1 : 0
|
|
35379
35463
|
))
|
|
@@ -35440,11 +35524,11 @@ function useSwiftPackagePrebuilts(input, moduleRoot, toolchainBin) {
|
|
|
35440
35524
|
}
|
|
35441
35525
|
return resolved;
|
|
35442
35526
|
}
|
|
35443
|
-
var
|
|
35527
|
+
var import_node_crypto34, import_node_fs54, import_node_path54, PACKAGE_RECIPE;
|
|
35444
35528
|
var init_swift_package_prebuilt = __esm({
|
|
35445
35529
|
"src/swift-package-prebuilt.ts"() {
|
|
35446
35530
|
"use strict";
|
|
35447
|
-
|
|
35531
|
+
import_node_crypto34 = require("node:crypto");
|
|
35448
35532
|
import_node_fs54 = __toESM(require("node:fs"), 1);
|
|
35449
35533
|
import_node_path54 = __toESM(require("node:path"), 1);
|
|
35450
35534
|
init_native_prebuilt();
|
|
@@ -35604,7 +35688,7 @@ function swiftObjCSelectorOptions(moduleRoot) {
|
|
|
35604
35688
|
`;
|
|
35605
35689
|
if (!(0, import_node_fs55.existsSync)(map2) || (0, import_node_fs55.readFileSync)(map2, "utf8") !== content) {
|
|
35606
35690
|
(0, import_node_fs55.mkdirSync)(import_node_path55.default.dirname(map2), { recursive: true });
|
|
35607
|
-
const partial = `${map2}.${(0,
|
|
35691
|
+
const partial = `${map2}.${(0, import_node_crypto35.randomUUID)()}`;
|
|
35608
35692
|
(0, import_node_fs55.writeFileSync)(partial, content);
|
|
35609
35693
|
(0, import_node_fs55.renameSync)(partial, map2);
|
|
35610
35694
|
}
|
|
@@ -35632,7 +35716,7 @@ async function ensureMacroPlugins(moduleRoot, toolchainBin, release, signal, lea
|
|
|
35632
35716
|
return { libraries, executables };
|
|
35633
35717
|
}
|
|
35634
35718
|
function swiftProjectBuildKey(moduleRoot, release) {
|
|
35635
|
-
return (0,
|
|
35719
|
+
return (0, import_node_crypto35.createHash)("sha256").update(`swift-framework/v2\0${release}\0${swiftModuleSdk(moduleRoot).wasmSdkId}`).update(swiftModuleDigest(moduleRoot)).digest("hex").slice(0, 32);
|
|
35636
35720
|
}
|
|
35637
35721
|
function sameStringList(left, right) {
|
|
35638
35722
|
if (left === right) return true;
|
|
@@ -35880,7 +35964,7 @@ function distributionClangModuleOptions(root, modules) {
|
|
|
35880
35964
|
function providedModulesPath(root, modules, excluded) {
|
|
35881
35965
|
if (!excluded || excluded.size === 0) return modules;
|
|
35882
35966
|
const entries2 = (0, import_node_fs55.readdirSync)(modules).filter((entry) => !excluded.has(entry.replace(/\..*$/, ""))).sort();
|
|
35883
|
-
const key2 = (0,
|
|
35967
|
+
const key2 = (0, import_node_crypto35.createHash)("sha256").update(JSON.stringify([modules, entries2])).update([...excluded].sort().join("\0")).digest("hex").slice(0, 16);
|
|
35884
35968
|
const directory2 = import_node_path55.default.join(root, `.peach-modules-${key2}`);
|
|
35885
35969
|
const complete = import_node_path55.default.join(directory2, ".complete");
|
|
35886
35970
|
if (!(0, import_node_fs55.existsSync)(complete)) {
|
|
@@ -35962,10 +36046,10 @@ function swiftTargetDependencies(files2, targets, frameworks = OPTIONAL_FRAMEWOR
|
|
|
35962
36046
|
function sha256Digest(value) {
|
|
35963
36047
|
if (typeof Bun !== "undefined")
|
|
35964
36048
|
return new Bun.CryptoHasher("sha256").update(value).digest();
|
|
35965
|
-
return (0,
|
|
36049
|
+
return (0, import_node_crypto35.createHash)("sha256").update(value).digest();
|
|
35966
36050
|
}
|
|
35967
36051
|
function swiftCompileInputHash(input, release) {
|
|
35968
|
-
const hash = (0,
|
|
36052
|
+
const hash = (0, import_node_crypto35.createHash)("sha256");
|
|
35969
36053
|
hash.update(`swift-compile
|
|
35970
36054
|
${release}
|
|
35971
36055
|
`);
|
|
@@ -36172,7 +36256,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
36172
36256
|
].join("\n") + "\n";
|
|
36173
36257
|
distributionLinkPath = distributionLink.path.replace(
|
|
36174
36258
|
/\.rsp$/,
|
|
36175
|
-
`-${(0,
|
|
36259
|
+
`-${(0, import_node_crypto35.createHash)("sha256").update(list2).digest("hex").slice(0, 12)}.rsp`
|
|
36176
36260
|
);
|
|
36177
36261
|
distributionLink.files.set(distributionLinkPath, list2);
|
|
36178
36262
|
}
|
|
@@ -36193,7 +36277,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
36193
36277
|
const endRun = () => {
|
|
36194
36278
|
if (run16.length >= MODULE_MAP_RESPONSE_FILE_RUN) {
|
|
36195
36279
|
const lines = run16.map((flag) => JSON.stringify(flag)).join("\n") + "\n";
|
|
36196
|
-
const digest4 = (0,
|
|
36280
|
+
const digest4 = (0, import_node_crypto35.createHash)("sha256").update(lines).digest("hex");
|
|
36197
36281
|
const file2 = import_node_path55.default.join(args.root, ".peach-clang-arguments", `${digest4}.rsp`);
|
|
36198
36282
|
args.files.set(file2, lines);
|
|
36199
36283
|
flags.push(`@${file2}`);
|
|
@@ -36217,7 +36301,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
36217
36301
|
}
|
|
36218
36302
|
endRun();
|
|
36219
36303
|
const content = JSON.stringify(flags);
|
|
36220
|
-
const digest3 = (0,
|
|
36304
|
+
const digest3 = (0, import_node_crypto35.createHash)("sha256").update(content).digest("hex");
|
|
36221
36305
|
const file = import_node_path55.default.join(args.root, ".peach-manifest-arguments", `${digest3}.json`);
|
|
36222
36306
|
args.files.set(file, content);
|
|
36223
36307
|
return `peachCompilerArguments(${JSON.stringify(file)})`;
|
|
@@ -36229,7 +36313,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
36229
36313
|
const macros = compactSwiftClangDefines(swiftClangSearchArguments(flags));
|
|
36230
36314
|
const compact = args.coalescibleOverlays ? compactSwiftClangOverlays(macros, args.coalescibleOverlays) : macros;
|
|
36231
36315
|
const content = compact.map((flag) => JSON.stringify(flag)).join("\n") + "\n";
|
|
36232
|
-
const digest3 = (0,
|
|
36316
|
+
const digest3 = (0, import_node_crypto35.createHash)("sha256").update(content).digest("hex");
|
|
36233
36317
|
const file = import_node_path55.default.join(args.root, ".peach-swift-arguments", `${digest3}.rsp`);
|
|
36234
36318
|
args.files.set(file, content);
|
|
36235
36319
|
return JSON.stringify([`@${file}`]);
|
|
@@ -37818,7 +37902,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
37818
37902
|
)
|
|
37819
37903
|
];
|
|
37820
37904
|
const moduleFlag = perFile.some((flag) => flag.startsWith("-fmodule-name=")) ? [] : [`-fmodule-name=${swiftTargetModuleName(target.name)}`];
|
|
37821
|
-
const identity2 = (0,
|
|
37905
|
+
const identity2 = (0, import_node_crypto35.createHash)("sha256").update(
|
|
37822
37906
|
JSON.stringify([
|
|
37823
37907
|
cxx,
|
|
37824
37908
|
quoteDirs,
|
|
@@ -38181,7 +38265,7 @@ module ${moduleName2}.Swift {
|
|
|
38181
38265
|
])
|
|
38182
38266
|
(0, import_node_fs55.rmSync)(cache, { recursive: true, force: true });
|
|
38183
38267
|
files2.set(frameworkSearchRecord, frameworkSearch);
|
|
38184
|
-
const modulePlan = (0,
|
|
38268
|
+
const modulePlan = (0, import_node_crypto35.createHash)("sha256").update(
|
|
38185
38269
|
swiftModuleInputFiles(moduleRoot).join("\n")
|
|
38186
38270
|
);
|
|
38187
38271
|
if (!distribution) {
|
|
@@ -38190,7 +38274,7 @@ module ${moduleName2}.Swift {
|
|
|
38190
38274
|
modulePlan.update(
|
|
38191
38275
|
Object.keys(input.files).filter((file) => file.endsWith(".swift")).sort().join("\n")
|
|
38192
38276
|
);
|
|
38193
|
-
const resourcePlan = (0,
|
|
38277
|
+
const resourcePlan = (0, import_node_crypto35.createHash)("sha256").update(
|
|
38194
38278
|
JSON.stringify(
|
|
38195
38279
|
resourceTargets.filter((target) => target.resources).map((target) => [
|
|
38196
38280
|
target.name,
|
|
@@ -38498,7 +38582,7 @@ ${entry}`);
|
|
|
38498
38582
|
);
|
|
38499
38583
|
for (const [target, data] of Object.entries(input.libraries ?? {})) {
|
|
38500
38584
|
const bytes = Buffer.from(data, "base64");
|
|
38501
|
-
const digest3 = (0,
|
|
38585
|
+
const digest3 = (0, import_node_crypto35.createHash)("sha256").update(bytes).digest("hex");
|
|
38502
38586
|
if (input.binaryModules?.[target] && packageTargets.has(target)) {
|
|
38503
38587
|
const objects = import_node_path55.default.join(
|
|
38504
38588
|
layout2.root,
|
|
@@ -39150,7 +39234,7 @@ function readCompiledArtifact(directory2, hash) {
|
|
|
39150
39234
|
return null;
|
|
39151
39235
|
const bytes = (0, import_node_fs55.readFileSync)(import_node_path55.default.join(directory2, "app.wasm"));
|
|
39152
39236
|
const gzip2 = (0, import_node_fs55.readFileSync)(import_node_path55.default.join(directory2, "icu.gz"));
|
|
39153
|
-
if ((0,
|
|
39237
|
+
if ((0, import_node_crypto35.createHash)("sha256").update(bytes).digest("hex") !== receipt.wasm || (0, import_node_crypto35.createHash)("sha256").update(gzip2).digest("hex") !== receipt.icu || bytes.length <= 8 || bytes.readUInt32LE(0) !== 1836278016 || bytes.readUInt32LE(4) !== 1)
|
|
39154
39238
|
return null;
|
|
39155
39239
|
let sdk2;
|
|
39156
39240
|
if ("sdk" in receipt) {
|
|
@@ -39158,7 +39242,7 @@ function readCompiledArtifact(directory2, hash) {
|
|
|
39158
39242
|
if (!isRecord(image) || typeof image.key !== "string" || typeof image.sha256 !== "string" || typeof image.binding !== "string")
|
|
39159
39243
|
return null;
|
|
39160
39244
|
const binding = (0, import_node_fs55.readFileSync)(import_node_path55.default.join(directory2, "sdk-binding.bin"));
|
|
39161
|
-
if ((0,
|
|
39245
|
+
if ((0, import_node_crypto35.createHash)("sha256").update(binding).digest("hex") !== image.binding)
|
|
39162
39246
|
return null;
|
|
39163
39247
|
sdk2 = {
|
|
39164
39248
|
key: image.key,
|
|
@@ -39186,7 +39270,7 @@ function saveCompiledArtifact(root, artifact) {
|
|
|
39186
39270
|
import_node_path55.default.join(pending2, "artifact.json"),
|
|
39187
39271
|
JSON.stringify({
|
|
39188
39272
|
hash: artifact.hash,
|
|
39189
|
-
wasm: (0,
|
|
39273
|
+
wasm: (0, import_node_crypto35.createHash)("sha256").update(artifact.bytes).digest("hex"),
|
|
39190
39274
|
icu: artifact.icu.sha256,
|
|
39191
39275
|
sdk: artifact.sdk && {
|
|
39192
39276
|
key: artifact.sdk.key,
|
|
@@ -39535,7 +39619,7 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
39535
39619
|
const unoptimized = args.input.unoptimized === true;
|
|
39536
39620
|
const sdkOptions = swiftCompileSdkOptions(args.moduleRoot, args.toolchainBin);
|
|
39537
39621
|
const selectorOptions = swiftObjCSelectorOptions(args.moduleRoot);
|
|
39538
|
-
const receiptKey = (0,
|
|
39622
|
+
const receiptKey = (0, import_node_crypto35.createHash)("sha256").update(
|
|
39539
39623
|
JSON.stringify([
|
|
39540
39624
|
"framework-products/v2",
|
|
39541
39625
|
args.frameworkKey,
|
|
@@ -39702,7 +39786,7 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
39702
39786
|
const archiveBase = import_node_path55.default.join(scratch2, "products-lib");
|
|
39703
39787
|
(0, import_node_fs55.mkdirSync)(archiveBase, { recursive: true });
|
|
39704
39788
|
const archiveRoot = import_node_path55.default.join(archiveBase, receiptKey);
|
|
39705
|
-
const stagedArchiveRoot = `${archiveRoot}.tmp-${process.pid}-${(0,
|
|
39789
|
+
const stagedArchiveRoot = `${archiveRoot}.tmp-${process.pid}-${(0, import_node_crypto35.randomUUID)()}`;
|
|
39706
39790
|
const stagedArchive = import_node_path55.default.join(stagedArchiveRoot, "lib");
|
|
39707
39791
|
(0, import_node_fs55.mkdirSync)(stagedArchive, { recursive: true });
|
|
39708
39792
|
const archived = /* @__PURE__ */ new Map();
|
|
@@ -39745,7 +39829,7 @@ ${args.frameworkKey}`,
|
|
|
39745
39829
|
const receiptsDir = import_node_path55.default.join(scratch2, "products-ready");
|
|
39746
39830
|
(0, import_node_fs55.mkdirSync)(receiptsDir, { recursive: true });
|
|
39747
39831
|
const receiptFile2 = import_node_path55.default.join(receiptsDir, `${receiptKey}.json`);
|
|
39748
|
-
const partialReceipt = `${receiptFile2}.${process.pid}.${(0,
|
|
39832
|
+
const partialReceipt = `${receiptFile2}.${process.pid}.${(0, import_node_crypto35.randomUUID)()}`;
|
|
39749
39833
|
(0, import_node_fs55.writeFileSync)(
|
|
39750
39834
|
partialReceipt,
|
|
39751
39835
|
JSON.stringify({
|
|
@@ -39917,7 +40001,7 @@ function mirrorTree2(source, target, skip) {
|
|
|
39917
40001
|
if (existing?.isFile() && existing.size === stat.size && (existing.mtimeMs === stat.mtimeMs || (0, import_node_fs55.readFileSync)(from).equals((0, import_node_fs55.readFileSync)(to))))
|
|
39918
40002
|
continue;
|
|
39919
40003
|
if (existing) (0, import_node_fs55.rmSync)(to, { recursive: true, force: true });
|
|
39920
|
-
const partial = `${to}.${(0,
|
|
40004
|
+
const partial = `${to}.${(0, import_node_crypto35.randomUUID)()}`;
|
|
39921
40005
|
(0, import_node_fs55.copyFileSync)(from, partial);
|
|
39922
40006
|
if (stat.mtimeMs > Date.now()) (0, import_node_fs55.utimesSync)(partial, stat.atime, stat.mtime);
|
|
39923
40007
|
(0, import_node_fs55.renameSync)(partial, to);
|
|
@@ -39977,7 +40061,7 @@ function stageFrameworkSource(moduleRoot, slot, frameworkKey, release) {
|
|
|
39977
40061
|
return stagedModule;
|
|
39978
40062
|
}
|
|
39979
40063
|
function swiftLinkStamp(args) {
|
|
39980
|
-
const hash = (0,
|
|
40064
|
+
const hash = (0, import_node_crypto35.createHash)("sha256");
|
|
39981
40065
|
hash.update(`swift-link/v1
|
|
39982
40066
|
${args.frameworkKey}
|
|
39983
40067
|
`);
|
|
@@ -40105,7 +40189,7 @@ async function compileSwiftProjectOnce(sources, options2) {
|
|
|
40105
40189
|
const inputHash = swiftCompileInputHash(input, options2.release);
|
|
40106
40190
|
const moduleDigest = swiftModuleDigest(moduleRoot);
|
|
40107
40191
|
const sourceHash = inputHash.copy().update(moduleDigest).digest("hex");
|
|
40108
|
-
const hash = sdkImage ? (0,
|
|
40192
|
+
const hash = sdkImage ? (0, import_node_crypto35.createHash)("sha256").update(`${sourceHash}
|
|
40109
40193
|
sdk module ${sdkImage.key}`).digest("hex") : sourceHash;
|
|
40110
40194
|
const frameworkKey = swiftProjectBuildKey(moduleRoot, options2.release);
|
|
40111
40195
|
const sharedRoot = import_node_path55.default.join(swiftCacheDir(), "swift-projects", hash);
|
|
@@ -40202,7 +40286,7 @@ ${cap}` : "";
|
|
|
40202
40286
|
}
|
|
40203
40287
|
const baseRoot = root;
|
|
40204
40288
|
const canPoolBuildRoot = !options2.intermediates && !options2.project && !options2.linkOnly && import_node_path55.default.basename(import_node_path55.default.dirname(baseRoot)) === "swift-builds";
|
|
40205
|
-
const buildShape = canPoolBuildRoot ? (0,
|
|
40289
|
+
const buildShape = canPoolBuildRoot ? (0, import_node_crypto35.createHash)("sha256").update(
|
|
40206
40290
|
JSON.stringify([
|
|
40207
40291
|
frameworkKey,
|
|
40208
40292
|
Boolean(sdkImage),
|
|
@@ -40691,17 +40775,17 @@ ${cap}` : "";
|
|
|
40691
40775
|
}
|
|
40692
40776
|
const receipt = import_node_path55.default.join(
|
|
40693
40777
|
checkpoints,
|
|
40694
|
-
(0,
|
|
40778
|
+
(0, import_node_crypto35.createHash)("sha256").update(target).digest("hex")
|
|
40695
40779
|
);
|
|
40696
40780
|
const headers = producers.map(headerPaths);
|
|
40697
40781
|
for (const header of headers)
|
|
40698
40782
|
if ((0, import_node_fs55.existsSync)(header.original)) publishHeader(header);
|
|
40699
40783
|
const fingerprint = () => {
|
|
40700
|
-
const digest3 = (0,
|
|
40784
|
+
const digest3 = (0, import_node_crypto35.createHash)("sha256").update(recipe2);
|
|
40701
40785
|
for (const { original, emitted } of headers) {
|
|
40702
40786
|
if (!(0, import_node_fs55.existsSync)(original) || !(0, import_node_fs55.existsSync)(emitted)) return;
|
|
40703
40787
|
digest3.update(
|
|
40704
|
-
(0,
|
|
40788
|
+
(0, import_node_crypto35.createHash)("sha256").update((0, import_node_fs55.readFileSync)(emitted)).digest()
|
|
40705
40789
|
);
|
|
40706
40790
|
}
|
|
40707
40791
|
return digest3.digest("hex");
|
|
@@ -40914,12 +40998,12 @@ ${cap}` : "";
|
|
|
40914
40998
|
options2.signal
|
|
40915
40999
|
);
|
|
40916
41000
|
}
|
|
40917
|
-
var import_node_child_process35,
|
|
41001
|
+
var import_node_child_process35, import_node_crypto35, import_node_fs55, import_node_os14, import_node_path55, 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;
|
|
40918
41002
|
var init_swift_compile = __esm({
|
|
40919
41003
|
"src/swift-compile.ts"() {
|
|
40920
41004
|
"use strict";
|
|
40921
41005
|
import_node_child_process35 = require("node:child_process");
|
|
40922
|
-
|
|
41006
|
+
import_node_crypto35 = require("node:crypto");
|
|
40923
41007
|
import_node_fs55 = require("node:fs");
|
|
40924
41008
|
import_node_os14 = __toESM(require("node:os"), 1);
|
|
40925
41009
|
import_node_path55 = __toESM(require("node:path"), 1);
|
|
@@ -41147,7 +41231,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
|
|
|
41147
41231
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
41148
41232
|
MULTI_MANIFEST_VERSION = 76;
|
|
41149
41233
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
41150
|
-
compilerSourceDigest = true ? "
|
|
41234
|
+
compilerSourceDigest = true ? "169122685e250113f128b79efc78f9868f581da36ab083c174056ab99b87b629" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
41151
41235
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
41152
41236
|
MODULE_MAP_RESPONSE_FILE_RUN = 16;
|
|
41153
41237
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
@@ -41263,7 +41347,7 @@ async function podPrepareEnvironment(base2) {
|
|
|
41263
41347
|
if (process.platform !== "linux") return base2;
|
|
41264
41348
|
const { root, toolchainBin } = await resolveSwiftModule();
|
|
41265
41349
|
const { sysroot, resources } = swiftSdkPaths(root, toolchainBin);
|
|
41266
|
-
const key2 = (0,
|
|
41350
|
+
const key2 = (0, import_node_crypto36.createHash)("sha256").update(XCRUN).update(CLANG).digest("hex").slice(0, 16);
|
|
41267
41351
|
const directory2 = import_node_path56.default.join(cacheDir(), "pod-tools", key2);
|
|
41268
41352
|
if (!import_node_fs56.default.existsSync(directory2)) {
|
|
41269
41353
|
import_node_fs56.default.mkdirSync(import_node_path56.default.dirname(directory2), { recursive: true });
|
|
@@ -41304,11 +41388,11 @@ async function podPrepareEnvironment(base2) {
|
|
|
41304
41388
|
PEACH_POD_RESOURCES: resources
|
|
41305
41389
|
};
|
|
41306
41390
|
}
|
|
41307
|
-
var
|
|
41391
|
+
var import_node_crypto36, import_node_fs56, import_node_path56, XCRUN, CLANG;
|
|
41308
41392
|
var init_pod_prepare_toolchain = __esm({
|
|
41309
41393
|
"src/pod-prepare-toolchain.ts"() {
|
|
41310
41394
|
"use strict";
|
|
41311
|
-
|
|
41395
|
+
import_node_crypto36 = require("node:crypto");
|
|
41312
41396
|
import_node_fs56 = __toESM(require("node:fs"), 1);
|
|
41313
41397
|
import_node_path56 = __toESM(require("node:path"), 1);
|
|
41314
41398
|
init_home_paths();
|
|
@@ -41394,10 +41478,10 @@ async function podSourceRoot(spec, prepareEnv) {
|
|
|
41394
41478
|
`${name3}: unrecognized ${strategy} source options ${unrecognized.join(", ")}`
|
|
41395
41479
|
);
|
|
41396
41480
|
const base2 = import_node_path57.default.join(rnxHomeDir(), "pod-sources");
|
|
41397
|
-
const digest3 = (0,
|
|
41481
|
+
const digest3 = (0, import_node_crypto37.createHash)("sha256").update(canonicalJson(source)).digest("hex").slice(0, 16);
|
|
41398
41482
|
const root = import_node_path57.default.join(base2, name3, `${String(spec.version)}-${digest3}`);
|
|
41399
41483
|
if (import_node_fs57.default.existsSync(root)) return root;
|
|
41400
|
-
const stage = import_node_path57.default.join(base2, ".staging", (0,
|
|
41484
|
+
const stage = import_node_path57.default.join(base2, ".staging", (0, import_node_crypto37.randomUUID)());
|
|
41401
41485
|
import_node_fs57.default.mkdirSync(stage, { recursive: true });
|
|
41402
41486
|
try {
|
|
41403
41487
|
if (strategy === "git") await downloadGit(name3, url, options2, stage);
|
|
@@ -41572,7 +41656,7 @@ async function downloadFile(pod, url, headers, file, algorithm) {
|
|
|
41572
41656
|
}
|
|
41573
41657
|
if (!response?.ok || !response.body)
|
|
41574
41658
|
throw new Error(`${pod}: GET ${url} failed with HTTP ${response?.status ?? "error"}`);
|
|
41575
|
-
const hash = algorithm ? (0,
|
|
41659
|
+
const hash = algorithm ? (0, import_node_crypto37.createHash)(algorithm) : null;
|
|
41576
41660
|
const handle = await import_node_fs57.default.promises.open(file, "w");
|
|
41577
41661
|
try {
|
|
41578
41662
|
const reader = response.body.getReader();
|
|
@@ -41829,12 +41913,12 @@ function cleanInstalledPod(spec, root, used) {
|
|
|
41829
41913
|
(node) => used.filter((entry) => entry.specs.includes(node.name)).map((entry) => entry.platform)
|
|
41830
41914
|
);
|
|
41831
41915
|
}
|
|
41832
|
-
var import_node_child_process36,
|
|
41916
|
+
var import_node_child_process36, import_node_crypto37, import_node_fs57, import_node_os15, import_node_path57, COCOAPODS_VERSION, USER_AGENT, PLATFORMS, HEADER_EXTENSIONS, SOURCE_EXTENSIONS, SOURCE_FILES_PATTERN, STRATEGIES, OPTIONS, ARCHIVE_TYPES, object4, RETRY_STATUSES, chomp, stringList, bracketEnd, escapeRegex;
|
|
41833
41917
|
var init_pod_sources = __esm({
|
|
41834
41918
|
"src/pod-sources.ts"() {
|
|
41835
41919
|
"use strict";
|
|
41836
41920
|
import_node_child_process36 = require("node:child_process");
|
|
41837
|
-
|
|
41921
|
+
import_node_crypto37 = require("node:crypto");
|
|
41838
41922
|
import_node_fs57 = __toESM(require("node:fs"), 1);
|
|
41839
41923
|
import_node_os15 = __toESM(require("node:os"), 1);
|
|
41840
41924
|
import_node_path57 = __toESM(require("node:path"), 1);
|
|
@@ -49088,7 +49172,7 @@ function specRepo(url, refresh) {
|
|
|
49088
49172
|
const dir = import_node_path58.default.join(
|
|
49089
49173
|
cacheDir(),
|
|
49090
49174
|
"cocoapods-repos",
|
|
49091
|
-
(0,
|
|
49175
|
+
(0, import_node_crypto38.createHash)("sha256").update(url).digest("hex").slice(0, 16)
|
|
49092
49176
|
);
|
|
49093
49177
|
if (!import_node_fs58.default.existsSync(import_node_path58.default.join(dir, ".git"))) {
|
|
49094
49178
|
const staged = `${dir}.${process.pid}`;
|
|
@@ -49118,7 +49202,7 @@ function podDir(repo, name3) {
|
|
|
49118
49202
|
const specs = import_node_fs58.default.existsSync(import_node_path58.default.join(repo, "Specs")) ? import_node_path58.default.join(repo, "Specs") : repo;
|
|
49119
49203
|
const metadata = import_node_path58.default.join(repo, "CocoaPods-version.yml");
|
|
49120
49204
|
const lengths = import_node_fs58.default.existsSync(metadata) ? browser_default.parse(import_node_fs58.default.readFileSync(metadata, "utf8"))?.prefix_lengths : void 0;
|
|
49121
|
-
const hash = (0,
|
|
49205
|
+
const hash = (0, import_node_crypto38.createHash)("md5").update(name3).digest("hex");
|
|
49122
49206
|
let at = 0;
|
|
49123
49207
|
const shards2 = (Array.isArray(lengths) ? lengths : []).map((length) => {
|
|
49124
49208
|
if (typeof length !== "number")
|
|
@@ -49151,17 +49235,17 @@ async function sourceSpecificationFile(source, name3, version2) {
|
|
|
49151
49235
|
if (!file) throw new Error(`${source} lists ${name3} ${version2} without a podspec`);
|
|
49152
49236
|
return file;
|
|
49153
49237
|
}
|
|
49154
|
-
var import_node_child_process37,
|
|
49238
|
+
var import_node_child_process37, import_node_crypto38, import_node_fs58, import_node_path58, shard, shards, TRUNK_SOURCES, refreshed, specRepoKey;
|
|
49155
49239
|
var init_cocoapods_trunk = __esm({
|
|
49156
49240
|
"src/cocoapods-trunk.ts"() {
|
|
49157
49241
|
"use strict";
|
|
49158
49242
|
import_node_child_process37 = require("node:child_process");
|
|
49159
|
-
|
|
49243
|
+
import_node_crypto38 = require("node:crypto");
|
|
49160
49244
|
import_node_fs58 = __toESM(require("node:fs"), 1);
|
|
49161
49245
|
import_node_path58 = __toESM(require("node:path"), 1);
|
|
49162
49246
|
init_browser();
|
|
49163
49247
|
init_home_paths();
|
|
49164
|
-
shard = (name3) => (0,
|
|
49248
|
+
shard = (name3) => (0, import_node_crypto38.createHash)("md5").update(name3).digest("hex").slice(0, 3).split("");
|
|
49165
49249
|
shards = /* @__PURE__ */ new Map();
|
|
49166
49250
|
TRUNK_SOURCES = /* @__PURE__ */ new Set([
|
|
49167
49251
|
"trunk",
|
|
@@ -49280,7 +49364,7 @@ function prism() {
|
|
|
49280
49364
|
throw new Error(`prism exited ${code}`);
|
|
49281
49365
|
},
|
|
49282
49366
|
random_get: (pointer2, length) => {
|
|
49283
|
-
if (memory) (0,
|
|
49367
|
+
if (memory) (0, import_node_crypto39.randomFillSync)(new Uint8Array(memory.buffer, pointer2, length));
|
|
49284
49368
|
return 0;
|
|
49285
49369
|
}
|
|
49286
49370
|
}
|
|
@@ -49304,11 +49388,11 @@ function parseRuby(source, file) {
|
|
|
49304
49388
|
parsed.set(file, { source, program: result.value });
|
|
49305
49389
|
return result.value;
|
|
49306
49390
|
}
|
|
49307
|
-
var
|
|
49391
|
+
var import_node_crypto39, import_node_fs60, import_node_module3, import_parsePrism, RubySyntaxError, prismExports, parsed;
|
|
49308
49392
|
var init_podspec_prism = __esm({
|
|
49309
49393
|
"src/podspec-prism.ts"() {
|
|
49310
49394
|
"use strict";
|
|
49311
|
-
|
|
49395
|
+
import_node_crypto39 = require("node:crypto");
|
|
49312
49396
|
import_node_fs60 = __toESM(require("node:fs"), 1);
|
|
49313
49397
|
import_node_module3 = require("node:module");
|
|
49314
49398
|
import_parsePrism = require("peachsim/vendor/@ruby/prism/src/parsePrism.js");
|
|
@@ -49927,7 +50011,7 @@ function stringMethod(interp, self, call, env) {
|
|
|
49927
50011
|
case "ascii_only?":
|
|
49928
50012
|
return call.name === "valid_encoding?" ? true : [...s].every((c) => c.charCodeAt(0) < 128);
|
|
49929
50013
|
case "hash":
|
|
49930
|
-
return Number.parseInt((0,
|
|
50014
|
+
return Number.parseInt((0, import_node_crypto40.createHash)("sha1").update(s).digest("hex").slice(0, 12), 16);
|
|
49931
50015
|
case "strip_heredoc":
|
|
49932
50016
|
return str2(stripHeredoc2(s));
|
|
49933
50017
|
case "squish":
|
|
@@ -50446,7 +50530,7 @@ function arrayMethod(interp, self, call, env) {
|
|
|
50446
50530
|
return NOT_FOUND;
|
|
50447
50531
|
case "hash":
|
|
50448
50532
|
return Number.parseInt(
|
|
50449
|
-
(0,
|
|
50533
|
+
(0, import_node_crypto40.createHash)("sha1").update(hashKey(self)).digest("hex").slice(0, 12),
|
|
50450
50534
|
16
|
|
50451
50535
|
);
|
|
50452
50536
|
case "pack":
|
|
@@ -50720,7 +50804,7 @@ function hashMethod(interp, self, call, env) {
|
|
|
50720
50804
|
}
|
|
50721
50805
|
case "hash":
|
|
50722
50806
|
return Number.parseInt(
|
|
50723
|
-
(0,
|
|
50807
|
+
(0, import_node_crypto40.createHash)("sha1").update(hashKey(self)).digest("hex").slice(0, 12),
|
|
50724
50808
|
16
|
|
50725
50809
|
);
|
|
50726
50810
|
case "compare_by_identity":
|
|
@@ -52059,12 +52143,12 @@ function archiveStepInside(words2, cwd, writable) {
|
|
|
52059
52143
|
return /^-x[a-z]*f$/.test(args[0] ?? "") && args.includes("-C") && operands.length === 2 && operands.every(inside);
|
|
52060
52144
|
return false;
|
|
52061
52145
|
}
|
|
52062
|
-
var import_node_child_process38,
|
|
52146
|
+
var import_node_child_process38, import_node_crypto40, import_node_fs61, import_node_path59, N, UnsupportedRuby, RString, RSymbol, RFloat, RRange, RRegexp, RMatch, RHash, RProc, RObject, RModule, Scope, RubyError, BreakSignal, NextSignal, ReturnSignal, ThrowSignal, objectIds, nextObjectId, str2, sym, truthy, POD_VERSION_METADATA, RubyVersion, Interpreter, RetrySignal, breakTags, BoundMethod, UnboundMethod, NOT_FOUND, EnumeratorData, RubyKeys, OBJECT_METHODS, KERNEL_METHODS, STDLIB, SCRIPT_RUNNERS;
|
|
52063
52147
|
var init_podspec_ruby = __esm({
|
|
52064
52148
|
"src/podspec-ruby.ts"() {
|
|
52065
52149
|
"use strict";
|
|
52066
52150
|
import_node_child_process38 = require("node:child_process");
|
|
52067
|
-
|
|
52151
|
+
import_node_crypto40 = require("node:crypto");
|
|
52068
52152
|
import_node_fs61 = __toESM(require("node:fs"), 1);
|
|
52069
52153
|
import_node_path59 = __toESM(require("node:path"), 1);
|
|
52070
52154
|
N = __toESM(require("peachsim/vendor/@ruby/prism/src/nodes.js"), 1);
|
|
@@ -54309,7 +54393,7 @@ function defineVersionClass(interp, cls) {
|
|
|
54309
54393
|
cls,
|
|
54310
54394
|
"hash",
|
|
54311
54395
|
(c) => Number.parseInt(
|
|
54312
|
-
(0,
|
|
54396
|
+
(0, import_node_crypto41.createHash)("sha1").update(data(c).text).digest("hex").slice(0, 12),
|
|
54313
54397
|
16
|
|
54314
54398
|
)
|
|
54315
54399
|
);
|
|
@@ -55123,11 +55207,11 @@ function installStdlib(interp) {
|
|
|
55123
55207
|
def(
|
|
55124
55208
|
cls,
|
|
55125
55209
|
"hexdigest",
|
|
55126
|
-
(c) => str2((0,
|
|
55210
|
+
(c) => str2((0, import_node_crypto41.createHash)(algorithm).update(text4(interp, c.args[0])).digest("hex"))
|
|
55127
55211
|
);
|
|
55128
55212
|
def(cls, "file", (c) => {
|
|
55129
55213
|
const value = new RObject(cls);
|
|
55130
|
-
value.data = (0,
|
|
55214
|
+
value.data = (0, import_node_crypto41.createHash)(algorithm).update(import_node_fs62.default.readFileSync(resolve4(text4(interp, c.args[0])))).digest("hex");
|
|
55131
55215
|
return value;
|
|
55132
55216
|
});
|
|
55133
55217
|
interp.defineNative(
|
|
@@ -55281,12 +55365,12 @@ function fnmatch(pattern, subject, flags) {
|
|
|
55281
55365
|
return !leadingDot && new RegExp(`^${source}$`, casefold ? "is" : "s").test(subject);
|
|
55282
55366
|
});
|
|
55283
55367
|
}
|
|
55284
|
-
var import_node_child_process39,
|
|
55368
|
+
var import_node_child_process39, import_node_crypto41, import_node_fs62, import_node_os16, import_node_path60, segment, FileHandle, WriteHandle, DownloadHandle, GemRequirement, TimeValue, SetData;
|
|
55285
55369
|
var init_podspec_ruby_stdlib = __esm({
|
|
55286
55370
|
"src/podspec-ruby-stdlib.ts"() {
|
|
55287
55371
|
"use strict";
|
|
55288
55372
|
import_node_child_process39 = require("node:child_process");
|
|
55289
|
-
|
|
55373
|
+
import_node_crypto41 = require("node:crypto");
|
|
55290
55374
|
import_node_fs62 = __toESM(require("node:fs"), 1);
|
|
55291
55375
|
import_node_os16 = __toESM(require("node:os"), 1);
|
|
55292
55376
|
import_node_path60 = __toESM(require("node:path"), 1);
|
|
@@ -66463,7 +66547,7 @@ function packageRoot(file) {
|
|
|
66463
66547
|
return directory2;
|
|
66464
66548
|
}
|
|
66465
66549
|
function appIdentity(app) {
|
|
66466
|
-
return (0,
|
|
66550
|
+
return (0, import_node_crypto42.createHash)("sha256").update(import_node_fs72.default.readFileSync(import_node_path72.default.join(app, "package.json"))).digest("hex");
|
|
66467
66551
|
}
|
|
66468
66552
|
function receiptFile(key2, environment) {
|
|
66469
66553
|
return import_node_path72.default.join(cacheDir(), "podspecs", "receipts-v1", key2, `${environment}.json`);
|
|
@@ -66487,7 +66571,7 @@ function podspecReceiptIdentity(file, appRoot = null) {
|
|
|
66487
66571
|
if (import_node_fs72.default.existsSync(manifest2)) manifests.add(manifest2);
|
|
66488
66572
|
if (directory2 === workspace || import_node_path72.default.dirname(directory2) === directory2) break;
|
|
66489
66573
|
}
|
|
66490
|
-
const hash = (0,
|
|
66574
|
+
const hash = (0, import_node_crypto42.createHash)("sha256").update(import_node_path72.default.relative(dependencyRoot, file)).update("\0").update(import_node_fs72.default.readFileSync(file));
|
|
66491
66575
|
hash.update("\0").update(manifest);
|
|
66492
66576
|
if (reactNative) hash.update("\0react-native-source");
|
|
66493
66577
|
for (const manifest2 of manifests) hash.update("\0").update(import_node_fs72.default.readFileSync(manifest2));
|
|
@@ -66501,7 +66585,7 @@ function podspecReceiptIdentity(file, appRoot = null) {
|
|
|
66501
66585
|
packageContexts.set(app, contexts);
|
|
66502
66586
|
let context = contexts.get(dependencyRoot);
|
|
66503
66587
|
if (!context) {
|
|
66504
|
-
const hash = (0,
|
|
66588
|
+
const hash = (0, import_node_crypto42.createHash)("sha256");
|
|
66505
66589
|
const walk4 = (relative4) => {
|
|
66506
66590
|
for (const entry of import_node_fs72.default.readdirSync(import_node_path72.default.join(dependencyRoot, relative4), {
|
|
66507
66591
|
withFileTypes: true
|
|
@@ -66520,7 +66604,7 @@ function podspecReceiptIdentity(file, appRoot = null) {
|
|
|
66520
66604
|
context = hash.digest("hex");
|
|
66521
66605
|
contexts.set(dependencyRoot, context);
|
|
66522
66606
|
}
|
|
66523
|
-
const environmentHash = (0,
|
|
66607
|
+
const environmentHash = (0, import_node_crypto42.createHash)("sha256").update(context);
|
|
66524
66608
|
for (const name3 of Object.keys(env).filter((name4) => /^(RCT_|USE_|ONE_|HERMES_|EXPO_)/.test(name4)).sort())
|
|
66525
66609
|
environmentHash.update("\0").update(name3).update(env[name3] ?? "");
|
|
66526
66610
|
const installed = reactNative ? void 0 : installedPodspec(app, file, dependencyRoot);
|
|
@@ -66585,7 +66669,7 @@ function loadPodspecs(files2, appRoot = null) {
|
|
|
66585
66669
|
receipts.set(plan.key, plan.receipt);
|
|
66586
66670
|
const file = receiptFile(plan.key, plan.environment);
|
|
66587
66671
|
import_node_fs72.default.mkdirSync(import_node_path72.default.dirname(file), { recursive: true });
|
|
66588
|
-
const temporary = `${file}.${(0,
|
|
66672
|
+
const temporary = `${file}.${(0, import_node_crypto42.randomUUID)()}.tmp`;
|
|
66589
66673
|
import_node_fs72.default.writeFileSync(temporary, JSON.stringify(plan.receipt));
|
|
66590
66674
|
import_node_fs72.default.renameSync(temporary, file);
|
|
66591
66675
|
}
|
|
@@ -66735,11 +66819,11 @@ function podspecSourceFiles(directory2, spec) {
|
|
|
66735
66819
|
);
|
|
66736
66820
|
return matched;
|
|
66737
66821
|
}
|
|
66738
|
-
var
|
|
66822
|
+
var import_node_crypto42, import_node_fs72, import_node_path72, import_zod, UnsupportedPodspec, pathsSchema, attributesSchema, evaluatedSpecSchema, podspecReceiptSchema, receipts, restoredReceipts, appReceipts, inputKeys, packageContexts, installedSpecs, Spec, podspecName, podspecSwiftVersion, c99, podspecLinksBinaries, podspecSourcePatterns, trees, SOURCE_EXTENSIONS2;
|
|
66739
66823
|
var init_podspec_sources = __esm({
|
|
66740
66824
|
"src/podspec-sources.ts"() {
|
|
66741
66825
|
"use strict";
|
|
66742
|
-
|
|
66826
|
+
import_node_crypto42 = require("node:crypto");
|
|
66743
66827
|
import_node_fs72 = __toESM(require("node:fs"), 1);
|
|
66744
66828
|
import_node_path72 = __toESM(require("node:path"), 1);
|
|
66745
66829
|
import_zod = require("peachsim/vendor/zod");
|
|
@@ -66805,7 +66889,7 @@ var init_podspec_sources = __esm({
|
|
|
66805
66889
|
function sha256Hex5(bytes) {
|
|
66806
66890
|
if (typeof Bun !== "undefined")
|
|
66807
66891
|
return new Bun.CryptoHasher("sha256").update(bytes).digest("hex");
|
|
66808
|
-
return (0,
|
|
66892
|
+
return (0, import_node_crypto43.createHash)("sha256").update(bytes).digest("hex");
|
|
66809
66893
|
}
|
|
66810
66894
|
function isBazelPackage(input) {
|
|
66811
66895
|
return /^BUILD(?:\.bazel)?$/.test(import_node_path73.default.basename(input)) && import_node_fs73.default.statSync(input).isFile();
|
|
@@ -66836,7 +66920,7 @@ function bazelBinary(root) {
|
|
|
66836
66920
|
const expected = (0, import_node_child_process41.execFileSync)("curl", ["-fsSL", `${url}.sha256`], {
|
|
66837
66921
|
encoding: "utf8"
|
|
66838
66922
|
}).split(/\s/)[0];
|
|
66839
|
-
const actual = (0,
|
|
66923
|
+
const actual = (0, import_node_crypto43.createHash)("sha256").update(import_node_fs73.default.readFileSync(partial)).digest("hex");
|
|
66840
66924
|
if (actual !== expected) {
|
|
66841
66925
|
import_node_fs73.default.rmSync(partial, { force: true });
|
|
66842
66926
|
throw new Error(`${url} digest ${actual} differs from its release ${expected}`);
|
|
@@ -66866,7 +66950,7 @@ function parseRule(raw2) {
|
|
|
66866
66950
|
};
|
|
66867
66951
|
}
|
|
66868
66952
|
function graphInputsDigest(root) {
|
|
66869
|
-
const hash = (0,
|
|
66953
|
+
const hash = (0, import_node_crypto43.createHash)("sha256");
|
|
66870
66954
|
const visit3 = (dir) => {
|
|
66871
66955
|
for (const entry of import_node_fs73.default.readdirSync(dir, { withFileTypes: true }).sort((a, b) => a.name.localeCompare(b.name))) {
|
|
66872
66956
|
if (entry.name.startsWith(".") || entry.name.startsWith("bazel-")) continue;
|
|
@@ -66899,7 +66983,7 @@ function bazelGraph(root, label, configuration) {
|
|
|
66899
66983
|
const cached2 = graphs.get(key2);
|
|
66900
66984
|
if (cached2) return cached2;
|
|
66901
66985
|
const flags = configurationFlags(configuration);
|
|
66902
|
-
const digest3 = (0,
|
|
66986
|
+
const digest3 = (0, import_node_crypto43.createHash)("sha256").update(JSON.stringify([GRAPH_FORMAT, label, flags, QUERIED_RULES])).update(graphInputsDigest(root)).digest("hex").slice(0, 24);
|
|
66903
66987
|
const file = import_node_path73.default.join(root, ".build", "peach-bazel", `graph-${digest3}.json`);
|
|
66904
66988
|
const bazel = bazelBinary(root);
|
|
66905
66989
|
const run16 = (args) => (0, import_node_child_process41.execFileSync)(bazel, args, {
|
|
@@ -67723,12 +67807,12 @@ function shellTokens(options2) {
|
|
|
67723
67807
|
return words2;
|
|
67724
67808
|
});
|
|
67725
67809
|
}
|
|
67726
|
-
var import_node_child_process41,
|
|
67810
|
+
var import_node_child_process41, import_node_crypto43, import_node_fs73, import_node_os18, import_node_path73, LIBRARY_RULES, QUERIED_RULES, NATIVE_SOURCE, HEADER3, PRODUCTS, graphs, CLANG_CONFIGURATION_FLAGS, GRAPH_FORMAT, BazelFiles, CXX_STANDARD;
|
|
67727
67811
|
var init_bazel_project = __esm({
|
|
67728
67812
|
"src/bazel-project.ts"() {
|
|
67729
67813
|
"use strict";
|
|
67730
67814
|
import_node_child_process41 = require("node:child_process");
|
|
67731
|
-
|
|
67815
|
+
import_node_crypto43 = require("node:crypto");
|
|
67732
67816
|
import_node_fs73 = __toESM(require("node:fs"), 1);
|
|
67733
67817
|
import_node_os18 = __toESM(require("node:os"), 1);
|
|
67734
67818
|
import_node_path73 = __toESM(require("node:path"), 1);
|
|
@@ -68189,7 +68273,7 @@ async function swiftBinaryModules(binary2) {
|
|
|
68189
68273
|
if (!binary2.url) return localSwiftBinaryModules(binary2.dir);
|
|
68190
68274
|
const cached2 = import_node_path74.default.join(
|
|
68191
68275
|
cacheDir3,
|
|
68192
|
-
`${(0,
|
|
68276
|
+
`${(0, import_node_crypto44.createHash)("sha256").update(`${binary2.url}\0${binary2.checksum ?? ""}`).digest("hex").slice(0, 32)}.json`
|
|
68193
68277
|
);
|
|
68194
68278
|
if (import_node_fs74.default.existsSync(cached2)) {
|
|
68195
68279
|
const value = JSON.parse(import_node_fs74.default.readFileSync(cached2, "utf8"));
|
|
@@ -68201,11 +68285,11 @@ async function swiftBinaryModules(binary2) {
|
|
|
68201
68285
|
import_node_fs74.default.writeFileSync(cached2, JSON.stringify(modules));
|
|
68202
68286
|
return modules;
|
|
68203
68287
|
}
|
|
68204
|
-
var
|
|
68288
|
+
var import_node_crypto44, import_node_fs74, import_node_path74, cacheDir3;
|
|
68205
68289
|
var init_swift_binary_modules = __esm({
|
|
68206
68290
|
"src/swift-binary-modules.ts"() {
|
|
68207
68291
|
"use strict";
|
|
68208
|
-
|
|
68292
|
+
import_node_crypto44 = require("node:crypto");
|
|
68209
68293
|
import_node_fs74 = __toESM(require("node:fs"), 1);
|
|
68210
68294
|
import_node_path74 = __toESM(require("node:path"), 1);
|
|
68211
68295
|
init_home_paths();
|
|
@@ -68215,11 +68299,11 @@ var init_swift_binary_modules = __esm({
|
|
|
68215
68299
|
});
|
|
68216
68300
|
|
|
68217
68301
|
// src/swift-coverage/provenance.ts
|
|
68218
|
-
var
|
|
68302
|
+
var import_node_crypto45, import_node_fs75, import_node_path75, swiftCoverageProvenance;
|
|
68219
68303
|
var init_provenance = __esm({
|
|
68220
68304
|
"src/swift-coverage/provenance.ts"() {
|
|
68221
68305
|
"use strict";
|
|
68222
|
-
|
|
68306
|
+
import_node_crypto45 = require("node:crypto");
|
|
68223
68307
|
import_node_fs75 = require("node:fs");
|
|
68224
68308
|
import_node_path75 = require("node:path");
|
|
68225
68309
|
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_path75.join)(__sootsim_import_meta_dirname, ".."));
|
|
@@ -69316,16 +69400,16 @@ function assetSymbolText(plan, root) {
|
|
|
69316
69400
|
if (source.status === "unknown") throw new Error(source.reason);
|
|
69317
69401
|
return source.text;
|
|
69318
69402
|
}
|
|
69319
|
-
var
|
|
69403
|
+
var import_node_crypto46, import_node_fs77, import_node_path77, sha2562, unprovenAssetSettings, assetSymbolSettingKeys, provenOtherAssetFlags, symbolTexts;
|
|
69320
69404
|
var init_xcode_assets = __esm({
|
|
69321
69405
|
"src/swift-coverage/xcode-assets.ts"() {
|
|
69322
69406
|
"use strict";
|
|
69323
|
-
|
|
69407
|
+
import_node_crypto46 = require("node:crypto");
|
|
69324
69408
|
import_node_fs77 = require("node:fs");
|
|
69325
69409
|
import_node_path77 = require("node:path");
|
|
69326
69410
|
init_provenance();
|
|
69327
69411
|
init_xcode_asset_symbols();
|
|
69328
|
-
sha2562 = (bytes) => (0,
|
|
69412
|
+
sha2562 = (bytes) => (0, import_node_crypto46.createHash)("sha256").update(bytes).digest("hex");
|
|
69329
69413
|
unprovenAssetSettings = [
|
|
69330
69414
|
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_FRAMEWORKS",
|
|
69331
69415
|
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_WARNINGS",
|
|
@@ -69921,7 +70005,7 @@ function normalizedEnums(input) {
|
|
|
69921
70005
|
}
|
|
69922
70006
|
function localizationIdentifier(field, key2) {
|
|
69923
70007
|
const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
69924
|
-
const digest3 = (0,
|
|
70008
|
+
const digest3 = (0, import_node_crypto47.createHash)("sha256").update(JSON.stringify([...field, key2])).digest();
|
|
69925
70009
|
return Array.from(
|
|
69926
70010
|
digest3.subarray(0, 6),
|
|
69927
70011
|
(byte) => alphabet[byte % alphabet.length]
|
|
@@ -70246,12 +70330,12 @@ function writeIntentDefinition(input, prefix) {
|
|
|
70246
70330
|
lines.push("</plist>", "");
|
|
70247
70331
|
return lines.join("\n");
|
|
70248
70332
|
}
|
|
70249
|
-
var import_strict4,
|
|
70333
|
+
var import_strict4, import_node_crypto47, typeMetadata, initializeMetadata, widgetArraySizes, defaultReasonMessages;
|
|
70250
70334
|
var init_metadata = __esm({
|
|
70251
70335
|
"src/intent-definition/metadata.ts"() {
|
|
70252
70336
|
"use strict";
|
|
70253
70337
|
import_strict4 = __toESM(require("node:assert/strict"), 1);
|
|
70254
|
-
|
|
70338
|
+
import_node_crypto47 = require("node:crypto");
|
|
70255
70339
|
init_fields();
|
|
70256
70340
|
init_hash_input();
|
|
70257
70341
|
init_siphash();
|
|
@@ -70960,7 +71044,7 @@ function preparePortableIntent(definition2, derivedDirectory, prefix, language,
|
|
|
70960
71044
|
if (prefix) identifier(prefix);
|
|
70961
71045
|
if (module2) identifier(module2);
|
|
70962
71046
|
const source = import_node_fs78.default.readFileSync(definition2);
|
|
70963
|
-
const key2 = (0,
|
|
71047
|
+
const key2 = (0, import_node_crypto48.createHash)("sha256").update(
|
|
70964
71048
|
JSON.stringify([intentCompilerRevision, definition2, prefix, language, module2])
|
|
70965
71049
|
).update("\0").update(source).digest("hex");
|
|
70966
71050
|
const cache = import_node_path78.default.join(derivedDirectory, "IntentDefinitions");
|
|
@@ -71000,11 +71084,11 @@ function preparePortableIntent(definition2, derivedDirectory, prefix, language,
|
|
|
71000
71084
|
import_node_fs78.default.rmSync(stage, { recursive: true, force: true });
|
|
71001
71085
|
}
|
|
71002
71086
|
}
|
|
71003
|
-
var
|
|
71087
|
+
var import_node_crypto48, import_node_fs78, import_node_path78, intentCompilerRevision;
|
|
71004
71088
|
var init_xcode_intents = __esm({
|
|
71005
71089
|
"src/xcode-intents.ts"() {
|
|
71006
71090
|
"use strict";
|
|
71007
|
-
|
|
71091
|
+
import_node_crypto48 = require("node:crypto");
|
|
71008
71092
|
import_node_fs78 = __toESM(require("node:fs"), 1);
|
|
71009
71093
|
import_node_path78 = __toESM(require("node:path"), 1);
|
|
71010
71094
|
init_fields();
|
|
@@ -71706,7 +71790,7 @@ function loadProject(xcodeproj) {
|
|
|
71706
71790
|
if (!projectFile)
|
|
71707
71791
|
throw new Error(`${xcodeproj} has no project.pbxproj or project.xcproj`);
|
|
71708
71792
|
const source = import_node_fs79.default.readFileSync(projectFile, "utf8");
|
|
71709
|
-
const digest3 = (0,
|
|
71793
|
+
const digest3 = (0, import_node_crypto49.createHash)("sha256").update(source).digest("hex");
|
|
71710
71794
|
const cached2 = loaded3.get(projectFile);
|
|
71711
71795
|
if (cached2?.digest === digest3) return cached2.project;
|
|
71712
71796
|
const root = projectFile.endsWith(".xcproj") ? readXcodeJsonProject(xcodeproj, source) : parseOpenStepPlist(source);
|
|
@@ -71758,7 +71842,7 @@ function xcodeInstallationIdentity() {
|
|
|
71758
71842
|
if (!selected) return null;
|
|
71759
71843
|
const directory2 = import_node_path80.default.extname(selected) === ".app" ? import_node_path80.default.join(selected, "Contents", "Developer") : selected;
|
|
71760
71844
|
const versionFile = `${directory2}/../version.plist`;
|
|
71761
|
-
const version2 = import_node_fs79.default.existsSync(versionFile) ? (0,
|
|
71845
|
+
const version2 = import_node_fs79.default.existsSync(versionFile) ? (0, import_node_crypto49.createHash)("sha256").update(import_node_fs79.default.readFileSync(versionFile)).digest("hex") : null;
|
|
71762
71846
|
return { directory: directory2, version: version2 };
|
|
71763
71847
|
}
|
|
71764
71848
|
function defaultConfiguration(project2) {
|
|
@@ -72226,7 +72310,7 @@ function targetMembers(ref, settings, options2, settingKeys, projectInputs) {
|
|
|
72226
72310
|
);
|
|
72227
72311
|
});
|
|
72228
72312
|
}
|
|
72229
|
-
const signature2 = (0,
|
|
72313
|
+
const signature2 = (0, import_node_crypto49.createHash)("sha256").update(
|
|
72230
72314
|
JSON.stringify([phase, [...settingKeys].map((key3) => [key3, settings(key3)])])
|
|
72231
72315
|
);
|
|
72232
72316
|
for (const file of inputFiles) {
|
|
@@ -72381,7 +72465,7 @@ ${output}`
|
|
|
72381
72465
|
const inputs2 = JSON.stringify([
|
|
72382
72466
|
1,
|
|
72383
72467
|
args,
|
|
72384
|
-
(0,
|
|
72468
|
+
(0, import_node_crypto49.createHash)("sha256").update(import_node_fs79.default.readFileSync(file)).digest("hex")
|
|
72385
72469
|
]);
|
|
72386
72470
|
const developer = settings("DEVELOPER_DIR");
|
|
72387
72471
|
const cached2 = import_node_fs79.default.existsSync(output) && import_node_fs79.default.existsSync(stamp) ? import_node_fs79.default.readFileSync(stamp, "utf8").split("\n") : [];
|
|
@@ -73844,12 +73928,12 @@ function readXcodeAppTarget(input, targetName, configurationName, options2 = {})
|
|
|
73844
73928
|
cocoapods
|
|
73845
73929
|
};
|
|
73846
73930
|
}
|
|
73847
|
-
var import_node_child_process42,
|
|
73931
|
+
var import_node_child_process42, import_node_crypto49, import_node_fs79, import_node_module5, import_node_path80, 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, loaded3, developerDir, preparedSourcePhases, isPodsProject, targetRefs, NativeAppTargetSelectionError, workspaceResolvedFile, SwiftPackageResolutionRequired;
|
|
73848
73932
|
var init_xcode_project = __esm({
|
|
73849
73933
|
"src/xcode-project.ts"() {
|
|
73850
73934
|
"use strict";
|
|
73851
73935
|
import_node_child_process42 = require("node:child_process");
|
|
73852
|
-
|
|
73936
|
+
import_node_crypto49 = require("node:crypto");
|
|
73853
73937
|
import_node_fs79 = __toESM(require("node:fs"), 1);
|
|
73854
73938
|
import_node_module5 = require("node:module");
|
|
73855
73939
|
import_node_path80 = __toESM(require("node:path"), 1);
|
|
@@ -74041,8 +74125,8 @@ async function walkWorkspaceInputs(app, everyByte, sourceOnly, podsEnvironment)
|
|
|
74041
74125
|
);
|
|
74042
74126
|
const appRelative = import_node_path81.default.relative(root, app);
|
|
74043
74127
|
const manifest = JSON.parse(import_node_fs80.default.readFileSync(import_node_path81.default.join(root, "package.json"), "utf8"));
|
|
74044
|
-
const hash = (0,
|
|
74045
|
-
const native = (0,
|
|
74128
|
+
const hash = (0, import_node_crypto50.createHash)("sha256");
|
|
74129
|
+
const native = (0, import_node_crypto50.createHash)("sha256");
|
|
74046
74130
|
const nativeDirectories = localPackageDirectories(root, app);
|
|
74047
74131
|
const versionFree = new Set(
|
|
74048
74132
|
nativeDirectories.filter((directory2) => directory2 !== appRelative && directory2 !== "").filter(
|
|
@@ -74126,7 +74210,7 @@ async function walkWorkspaceInputs(app, everyByte, sourceOnly, podsEnvironment)
|
|
|
74126
74210
|
unread.slice(start, start + 32).map(async ({ file, content }) => {
|
|
74127
74211
|
const bytes = await import_node_fs80.default.promises.readFile(file);
|
|
74128
74212
|
content.size = bytes.length;
|
|
74129
|
-
content.digest = (0,
|
|
74213
|
+
content.digest = (0, import_node_crypto50.createHash)("sha256").update(bytes).digest("hex");
|
|
74130
74214
|
fileDigests.set(file, content);
|
|
74131
74215
|
})
|
|
74132
74216
|
);
|
|
@@ -74676,7 +74760,7 @@ function stageCachedQuickCryptoOpenSsl(app) {
|
|
|
74676
74760
|
const sha2565 = /openssl_sha256\s*=\s*"([0-9a-f]{64})"/.exec(podspec)?.[1];
|
|
74677
74761
|
if (!sha2565) return;
|
|
74678
74762
|
const archive = import_node_path81.default.join(cacheDir(), "pod-archives", `${sha2565}.zip`);
|
|
74679
|
-
if (!import_node_fs80.default.existsSync(archive) || (0,
|
|
74763
|
+
if (!import_node_fs80.default.existsSync(archive) || (0, import_node_crypto50.createHash)("sha256").update(import_node_fs80.default.readFileSync(archive)).digest("hex") !== sha2565)
|
|
74680
74764
|
return;
|
|
74681
74765
|
import_node_fs80.default.rmSync(opensslDir, { recursive: true, force: true });
|
|
74682
74766
|
import_node_fs80.default.mkdirSync(opensslDir, { recursive: true });
|
|
@@ -74714,12 +74798,12 @@ ${failedOutputLine(command, cwd, bytes)}`
|
|
|
74714
74798
|
});
|
|
74715
74799
|
});
|
|
74716
74800
|
}
|
|
74717
|
-
var import_node_child_process43,
|
|
74801
|
+
var import_node_child_process43, import_node_crypto50, import_node_fs80, import_node_module6, import_node_os19, import_node_path81, import_node_util11, isolatedGitEnv, NATIVE_CONFIG_FILE, NATIVE_SOURCE_FILE, fileDigests, NATIVE_PACKAGE_ENTRY, hashing, KEPT_WORKSPACES, WORKSPACE_GRACE_MS, ABANDONED_WORKSPACE_MS, RETIRED_PREFIX2, preparing, watches, current, CLONE_ENTRIES;
|
|
74718
74802
|
var init_expo_native_workspace = __esm({
|
|
74719
74803
|
"src/expo-native-workspace.ts"() {
|
|
74720
74804
|
"use strict";
|
|
74721
74805
|
import_node_child_process43 = require("node:child_process");
|
|
74722
|
-
|
|
74806
|
+
import_node_crypto50 = require("node:crypto");
|
|
74723
74807
|
import_node_fs80 = __toESM(require("node:fs"), 1);
|
|
74724
74808
|
import_node_module6 = require("node:module");
|
|
74725
74809
|
import_node_os19 = __toESM(require("node:os"), 1);
|
|
@@ -75134,7 +75218,7 @@ function kotlinHome() {
|
|
|
75134
75218
|
}
|
|
75135
75219
|
async function fetchVerified(download2, target) {
|
|
75136
75220
|
if (import_node_fs82.default.existsSync(target)) {
|
|
75137
|
-
if ((0,
|
|
75221
|
+
if ((0, import_node_crypto51.createHash)("sha256").update(import_node_fs82.default.readFileSync(target)).digest("hex") !== download2.sha256)
|
|
75138
75222
|
throw new Error(
|
|
75139
75223
|
`cached Kotlin download differs from its pin: ${import_node_path83.default.basename(target)}`
|
|
75140
75224
|
);
|
|
@@ -75143,7 +75227,7 @@ async function fetchVerified(download2, target) {
|
|
|
75143
75227
|
const response = await fetch(download2.url);
|
|
75144
75228
|
if (!response.ok) throw new Error(`${download2.url} answered ${response.status}`);
|
|
75145
75229
|
const bytes = Buffer.from(await response.arrayBuffer());
|
|
75146
|
-
const digest3 = (0,
|
|
75230
|
+
const digest3 = (0, import_node_crypto51.createHash)("sha256").update(bytes).digest("hex");
|
|
75147
75231
|
if (digest3 !== download2.sha256)
|
|
75148
75232
|
throw new Error(`${download2.url} has sha256 ${digest3}, expected ${download2.sha256}`);
|
|
75149
75233
|
import_node_fs82.default.mkdirSync(import_node_path83.default.dirname(target), { recursive: true });
|
|
@@ -75156,7 +75240,7 @@ async function ensureCompose(toolchain) {
|
|
|
75156
75240
|
const root = import_node_path83.default.join(kotlinHome(), "compose", toolchain.composeArchive.sha256);
|
|
75157
75241
|
const verify = (dir) => {
|
|
75158
75242
|
for (const { name: name3, sha256: sha2565 } of downloads) {
|
|
75159
|
-
const actual = (0,
|
|
75243
|
+
const actual = (0, import_node_crypto51.createHash)("sha256").update(import_node_fs82.default.readFileSync(import_node_path83.default.join(dir, name3))).digest("hex");
|
|
75160
75244
|
if (actual !== sha2565)
|
|
75161
75245
|
throw new Error(`Compose input differs from its pin: ${name3}`);
|
|
75162
75246
|
}
|
|
@@ -75227,12 +75311,12 @@ function ensureToolchain(toolchain) {
|
|
|
75227
75311
|
toolchains.set(key2, ready);
|
|
75228
75312
|
return ready;
|
|
75229
75313
|
}
|
|
75230
|
-
var import_node_child_process44,
|
|
75314
|
+
var import_node_child_process44, import_node_crypto51, import_node_fs82, import_node_path83, import_node_util12, run6, toolchains;
|
|
75231
75315
|
var init_kotlin_toolchain = __esm({
|
|
75232
75316
|
"src/kotlin-toolchain.ts"() {
|
|
75233
75317
|
"use strict";
|
|
75234
75318
|
import_node_child_process44 = require("node:child_process");
|
|
75235
|
-
|
|
75319
|
+
import_node_crypto51 = require("node:crypto");
|
|
75236
75320
|
import_node_fs82 = __toESM(require("node:fs"), 1);
|
|
75237
75321
|
import_node_path83 = __toESM(require("node:path"), 1);
|
|
75238
75322
|
import_node_util12 = require("node:util");
|
|
@@ -75566,7 +75650,7 @@ async function prepareNitroDependencies(reactNativeVersion, reactNativeRoot) {
|
|
|
75566
75650
|
throw new Error(`${dependency.name} archive holds a symlink: ${name3}`);
|
|
75567
75651
|
if (entry.isDirectory()) walk4(name3);
|
|
75568
75652
|
else if (entry.isFile() && (dependency.files ?? HEADER4).test(entry.name))
|
|
75569
|
-
files2[name3] = (0,
|
|
75653
|
+
files2[name3] = (0, import_node_crypto52.createHash)("sha256").update(import_node_fs84.default.readFileSync(import_node_path85.default.join(tree2, name3))).digest("hex");
|
|
75570
75654
|
}
|
|
75571
75655
|
};
|
|
75572
75656
|
for (const sourceRoot of dependency.sourceDirectories ?? [dependency.headers.from])
|
|
@@ -75616,7 +75700,7 @@ function nitroDependencyReader(reactNativeVersion, reactNativeRoot) {
|
|
|
75616
75700
|
const tree2 = import_node_path85.default.join(directory(dependency), "tree");
|
|
75617
75701
|
const source = import_node_path85.default.join(tree2, relative4);
|
|
75618
75702
|
const bytes = readPackageFile(tree2, source, MAX_SWIFT_COMPILE_SOURCE_BYTES);
|
|
75619
|
-
const original = (0,
|
|
75703
|
+
const original = (0, import_node_crypto52.createHash)("sha256").update(bytes).digest("hex");
|
|
75620
75704
|
if (original !== digest3)
|
|
75621
75705
|
throw new Error(
|
|
75622
75706
|
`${dependency.name} header differs from its verified archive: ${relative4}`
|
|
@@ -75632,7 +75716,7 @@ function nitroDependencyReader(reactNativeVersion, reactNativeRoot) {
|
|
|
75632
75716
|
if (!text7.includes(backport.before))
|
|
75633
75717
|
throw new Error(`${dependency.name} backport anchor missing: ${relative4}`);
|
|
75634
75718
|
text7 = text7.replace(backport.before, backport.after);
|
|
75635
|
-
sha2565 = (0,
|
|
75719
|
+
sha2565 = (0, import_node_crypto52.createHash)("sha256").update(text7).digest("hex");
|
|
75636
75720
|
if (sha2565 !== backport.derivedSha256)
|
|
75637
75721
|
throw new Error(`${dependency.name} backport derived source differs: ${relative4}`);
|
|
75638
75722
|
}
|
|
@@ -75673,7 +75757,7 @@ function nitroDependencySources(reactNativeVersion, reactNativeRoot, select) {
|
|
|
75673
75757
|
if (!select(dependency.name, prepared)) continue;
|
|
75674
75758
|
const source = import_node_path85.default.join(tree2, relative4);
|
|
75675
75759
|
const bytes = readPackageFile(tree2, source, MAX_SWIFT_COMPILE_SOURCE_BYTES);
|
|
75676
|
-
if ((0,
|
|
75760
|
+
if ((0, import_node_crypto52.createHash)("sha256").update(bytes).digest("hex") !== digest3)
|
|
75677
75761
|
throw new Error(
|
|
75678
75762
|
`${dependency.name} source differs from its verified archive: ${relative4}`
|
|
75679
75763
|
);
|
|
@@ -75702,7 +75786,7 @@ function glogSources() {
|
|
|
75702
75786
|
if (!digest3) throw new Error(`glog ${GLOG.prefix} has no ${relative4}`);
|
|
75703
75787
|
const source = import_node_path85.default.join(tree2, relative4);
|
|
75704
75788
|
const bytes = readPackageFile(tree2, source, MAX_SWIFT_COMPILE_SOURCE_BYTES);
|
|
75705
|
-
if ((0,
|
|
75789
|
+
if ((0, import_node_crypto52.createHash)("sha256").update(bytes).digest("hex") !== digest3)
|
|
75706
75790
|
throw new Error(`glog source differs from its verified archive: ${relative4}`);
|
|
75707
75791
|
return { relative: relative4, source, text: bytes.toString("utf8"), sha256: digest3 };
|
|
75708
75792
|
};
|
|
@@ -75712,7 +75796,7 @@ function glogSources() {
|
|
|
75712
75796
|
relative: output,
|
|
75713
75797
|
source: original.source,
|
|
75714
75798
|
text: text7,
|
|
75715
|
-
sha256: (0,
|
|
75799
|
+
sha256: (0, import_node_crypto52.createHash)("sha256").update(text7).digest("hex"),
|
|
75716
75800
|
configured: { template, originalSha256: original.sha256 }
|
|
75717
75801
|
};
|
|
75718
75802
|
};
|
|
@@ -75740,12 +75824,12 @@ function glogSources() {
|
|
|
75740
75824
|
for (const unit2 of GLOG_UNITS) sources.push(read(unit2));
|
|
75741
75825
|
return sources;
|
|
75742
75826
|
}
|
|
75743
|
-
var import_node_child_process45,
|
|
75827
|
+
var import_node_child_process45, import_node_crypto52, import_node_fs84, import_node_path85, import_node_util13, run7, DOUBLE_CONVERSION_WASM64_BACKPORT2, RN_SHARED_DEPENDENCIES, RN_FMT_11_DEPENDENCIES, RN_FAST_FLOAT_6_DEPENDENCIES, RN_FMT_12_DEPENDENCIES, HEADER4, GLOG, GLOG_SUBSTITUTIONS, GLOG_CONFIGURE, GLOG_CONFIG_APPENDIX, GLOG_UNITS;
|
|
75744
75828
|
var init_nitro_dependencies = __esm({
|
|
75745
75829
|
"src/nitro-dependencies.ts"() {
|
|
75746
75830
|
"use strict";
|
|
75747
75831
|
import_node_child_process45 = require("node:child_process");
|
|
75748
|
-
|
|
75832
|
+
import_node_crypto52 = require("node:crypto");
|
|
75749
75833
|
import_node_fs84 = __toESM(require("node:fs"), 1);
|
|
75750
75834
|
import_node_path85 = __toESM(require("node:path"), 1);
|
|
75751
75835
|
import_node_util13 = require("node:util");
|
|
@@ -76698,7 +76782,7 @@ function collectNitroSources(options2, nativeSourceKeys, sourceRoot) {
|
|
|
76698
76782
|
result.sources.push({
|
|
76699
76783
|
file: original,
|
|
76700
76784
|
source,
|
|
76701
|
-
sha256: (0,
|
|
76785
|
+
sha256: (0, import_node_crypto53.createHash)("sha256").update(bytes).digest("hex")
|
|
76702
76786
|
});
|
|
76703
76787
|
}
|
|
76704
76788
|
const requested = `${targetPath(name3)}/upstream/${sourceRelative}`;
|
|
@@ -76888,7 +76972,7 @@ function collectNitroSources(options2, nativeSourceKeys, sourceRoot) {
|
|
|
76888
76972
|
result.sources.push({
|
|
76889
76973
|
file: mapKey,
|
|
76890
76974
|
source: import_node_fs86.default.realpathSync(modulemapPath),
|
|
76891
|
-
sha256: (0,
|
|
76975
|
+
sha256: (0, import_node_crypto53.createHash)("sha256").update(modulemapBytes).digest("hex")
|
|
76892
76976
|
});
|
|
76893
76977
|
registered.push(clangModule);
|
|
76894
76978
|
}
|
|
@@ -76950,7 +77034,7 @@ function collectNitroSources(options2, nativeSourceKeys, sourceRoot) {
|
|
|
76950
77034
|
result.sources.push({
|
|
76951
77035
|
file: key2,
|
|
76952
77036
|
source: real,
|
|
76953
|
-
sha256: (0,
|
|
77037
|
+
sha256: (0, import_node_crypto53.createHash)("sha256").update(bytes).digest("hex")
|
|
76954
77038
|
});
|
|
76955
77039
|
if (/\.(?:c|cc|cpp|cxx|m|mm|swift)$/.test(canonicalRel)) {
|
|
76956
77040
|
excludes.add(`upstream/${canonicalRel}`);
|
|
@@ -77303,11 +77387,11 @@ extern "C" void ${registration.symbol}();
|
|
|
77303
77387
|
}
|
|
77304
77388
|
return result;
|
|
77305
77389
|
}
|
|
77306
|
-
var
|
|
77390
|
+
var import_node_crypto53, import_node_fs86, import_node_module8, import_node_path87, import_zod2, nitroProviderTarget, NITRO_VIEWS_TARGET, PEER_PODSPEC_SKIP;
|
|
77307
77391
|
var init_nitro_source = __esm({
|
|
77308
77392
|
"src/nitro-source.ts"() {
|
|
77309
77393
|
"use strict";
|
|
77310
|
-
|
|
77394
|
+
import_node_crypto53 = require("node:crypto");
|
|
77311
77395
|
import_node_fs86 = __toESM(require("node:fs"), 1);
|
|
77312
77396
|
import_node_module8 = require("node:module");
|
|
77313
77397
|
import_node_path87 = __toESM(require("node:path"), 1);
|
|
@@ -77317,7 +77401,7 @@ var init_nitro_source = __esm({
|
|
|
77317
77401
|
init_react_native_autolinking();
|
|
77318
77402
|
init_swift_source_file();
|
|
77319
77403
|
init_swift_submit();
|
|
77320
|
-
nitroProviderTarget = (provider) => `NitroPackage_${(0,
|
|
77404
|
+
nitroProviderTarget = (provider) => `NitroPackage_${(0, import_node_crypto53.createHash)("sha256").update(provider.name).digest("hex").slice(0, 16)}`;
|
|
77321
77405
|
NITRO_VIEWS_TARGET = "PeachNitroViews";
|
|
77322
77406
|
PEER_PODSPEC_SKIP = /* @__PURE__ */ new Set([
|
|
77323
77407
|
"React-jsi",
|
|
@@ -79498,7 +79582,7 @@ async function loadStoreKitTestStore(configuration, appDir) {
|
|
|
79498
79582
|
const identityPath = import_node_path89.default.join(
|
|
79499
79583
|
cacheDir(),
|
|
79500
79584
|
"storekit-identities",
|
|
79501
|
-
`${(0,
|
|
79585
|
+
`${(0, import_node_crypto54.createHash)("sha256").update(import_node_path89.default.resolve(appDir)).digest("hex")}.json`
|
|
79502
79586
|
);
|
|
79503
79587
|
let signing;
|
|
79504
79588
|
try {
|
|
@@ -79514,7 +79598,7 @@ async function loadStoreKitTestStore(configuration, appDir) {
|
|
|
79514
79598
|
const certificate = await import_x509.X509CertificateGenerator.createSelfSigned(
|
|
79515
79599
|
{
|
|
79516
79600
|
name: "CN=StoreKit Testing in Xcode, O=StoreKit Testing in Xcode",
|
|
79517
|
-
serialNumber: (0,
|
|
79601
|
+
serialNumber: (0, import_node_crypto54.randomBytes)(16).toString("hex"),
|
|
79518
79602
|
notBefore: new Date(Date.now() - 6e4),
|
|
79519
79603
|
notAfter: new Date(Date.now() + 365 * 864e5),
|
|
79520
79604
|
signingAlgorithm: algorithm,
|
|
@@ -79531,11 +79615,11 @@ async function loadStoreKitTestStore(configuration, appDir) {
|
|
|
79531
79615
|
}
|
|
79532
79616
|
return { ...catalog, signing };
|
|
79533
79617
|
}
|
|
79534
|
-
var
|
|
79618
|
+
var import_node_crypto54, import_promises7, import_node_path89, import_x509;
|
|
79535
79619
|
var init_storekit_test_store = __esm({
|
|
79536
79620
|
"src/storekit-test-store.ts"() {
|
|
79537
79621
|
"use strict";
|
|
79538
|
-
|
|
79622
|
+
import_node_crypto54 = require("node:crypto");
|
|
79539
79623
|
import_promises7 = require("node:fs/promises");
|
|
79540
79624
|
import_node_path89 = __toESM(require("node:path"), 1);
|
|
79541
79625
|
init_storeKitContract();
|
|
@@ -79880,7 +79964,7 @@ function watchNativeInputs(root) {
|
|
|
79880
79964
|
(0, import_node_timers.clearTimeout)(expiry);
|
|
79881
79965
|
for (const watcher of watchers) watcher.close();
|
|
79882
79966
|
}
|
|
79883
|
-
const inputs2 = { expiry, revision: (0,
|
|
79967
|
+
const inputs2 = { expiry, revision: (0, import_node_crypto55.randomUUID)() };
|
|
79884
79968
|
const watch = (directory2, recursive, name3) => {
|
|
79885
79969
|
const watcher = import_node_fs90.default.watch(
|
|
79886
79970
|
directory2,
|
|
@@ -79921,11 +80005,11 @@ function watchNativeInputs(root) {
|
|
|
79921
80005
|
watchedInputs.set(workspace, inputs2);
|
|
79922
80006
|
return inputs2;
|
|
79923
80007
|
}
|
|
79924
|
-
var
|
|
80008
|
+
var import_node_crypto55, import_node_fs90, import_node_path92, import_node_timers, setTimeoutNode, RETENTION_MS, watchedInputs, NativePreparation;
|
|
79925
80009
|
var init_native_preparation = __esm({
|
|
79926
80010
|
"src/native-preparation.ts"() {
|
|
79927
80011
|
"use strict";
|
|
79928
|
-
|
|
80012
|
+
import_node_crypto55 = require("node:crypto");
|
|
79929
80013
|
import_node_fs90 = __toESM(require("node:fs"), 1);
|
|
79930
80014
|
import_node_path92 = __toESM(require("node:path"), 1);
|
|
79931
80015
|
import_node_timers = require("node:timers");
|
|
@@ -80136,7 +80220,7 @@ function nativeStaticLibraryEntry(recipe2, compiler, sdk2, distribution) {
|
|
|
80136
80220
|
return { name: recipe2.name, inputs: inputs2, key: nativeEntryKey(inputs2) };
|
|
80137
80221
|
}
|
|
80138
80222
|
function nativeStaticLibraryRecipe(bytes) {
|
|
80139
|
-
const digest3 = (0,
|
|
80223
|
+
const digest3 = (0, import_node_crypto56.createHash)("sha256").update(bytes).digest("hex");
|
|
80140
80224
|
return NATIVE_STATIC_LIBRARY_RECIPES.find((item) => item.nativeSha256 === digest3);
|
|
80141
80225
|
}
|
|
80142
80226
|
function nativeStaticLibrary(file, recipe2, moduleRoot) {
|
|
@@ -80179,7 +80263,7 @@ function isRustSymbol(name3, demangled) {
|
|
|
80179
80263
|
function rustStaticLibrary(file, moduleRoot) {
|
|
80180
80264
|
const toolchain = swiftModuleToolchain(moduleRoot);
|
|
80181
80265
|
const bytes = import_node_fs92.default.readFileSync(file);
|
|
80182
|
-
const key2 = (0,
|
|
80266
|
+
const key2 = (0, import_node_crypto56.createHash)("sha256").update("rust-c-abi-v4\0").update(toolchain.release).update("\0").update(bytes).digest("hex");
|
|
80183
80267
|
const directory2 = import_node_path94.default.join(cacheDir(), "native-archives", key2);
|
|
80184
80268
|
const archive = import_node_path94.default.join(directory2, "library.a");
|
|
80185
80269
|
if (import_node_fs92.default.existsSync(archive)) return archive;
|
|
@@ -80208,7 +80292,7 @@ function rustStaticLibrary(file, moduleRoot) {
|
|
|
80208
80292
|
const members2 = readArMembers(bytes, true);
|
|
80209
80293
|
const seen = /* @__PURE__ */ new Set();
|
|
80210
80294
|
const unique2 = members2.filter(({ name: name3, bytes: bytes2 }) => {
|
|
80211
|
-
const identity2 = name3 + "\0" + (0,
|
|
80295
|
+
const identity2 = name3 + "\0" + (0, import_node_crypto56.createHash)("sha256").update(bytes2).digest("hex");
|
|
80212
80296
|
if (seen.has(identity2)) return false;
|
|
80213
80297
|
seen.add(identity2);
|
|
80214
80298
|
return true;
|
|
@@ -80255,14 +80339,14 @@ function rustStaticLibrary(file, moduleRoot) {
|
|
|
80255
80339
|
function combineNativeStaticLibraries(files2, moduleRoot) {
|
|
80256
80340
|
if (files2.length === 1) return files2[0];
|
|
80257
80341
|
const toolchain = swiftModuleToolchain(moduleRoot);
|
|
80258
|
-
const hash = (0,
|
|
80342
|
+
const hash = (0, import_node_crypto56.createHash)("sha256").update(toolchain.release);
|
|
80259
80343
|
for (const file of files2)
|
|
80260
80344
|
hash.update("\0").update(import_node_path94.default.basename(file)).update("\0").update(import_node_fs92.default.readFileSync(file));
|
|
80261
80345
|
const directory2 = import_node_path94.default.join(cacheDir(), "native-archives", hash.digest("hex"));
|
|
80262
80346
|
const archive = import_node_path94.default.join(directory2, "combined.a");
|
|
80263
80347
|
if (import_node_fs92.default.existsSync(archive)) return archive;
|
|
80264
80348
|
import_node_fs92.default.mkdirSync(directory2, { recursive: true });
|
|
80265
|
-
const temporary = import_node_path94.default.join(directory2, `combined-${(0,
|
|
80349
|
+
const temporary = import_node_path94.default.join(directory2, `combined-${(0, import_node_crypto56.randomUUID)()}.a`);
|
|
80266
80350
|
try {
|
|
80267
80351
|
(0, import_node_child_process47.execFileSync)(import_node_path94.default.join(toolchain.toolchainBin, "llvm-ar"), [
|
|
80268
80352
|
"qcsDL",
|
|
@@ -80275,12 +80359,12 @@ function combineNativeStaticLibraries(files2, moduleRoot) {
|
|
|
80275
80359
|
}
|
|
80276
80360
|
return archive;
|
|
80277
80361
|
}
|
|
80278
|
-
var import_node_child_process47,
|
|
80362
|
+
var import_node_child_process47, import_node_crypto56, import_node_fs92, import_node_path94, WEBRTC_NATIVE_FRAMEWORK, SIGNAL_WEBRTC_NATIVE_FRAMEWORK, WEBRTC_NATIVE_FRAMEWORK_RECIPES, NATIVE_STATIC_LIBRARY_RECIPES;
|
|
80279
80363
|
var init_native_static_libraries = __esm({
|
|
80280
80364
|
"src/native-static-libraries.ts"() {
|
|
80281
80365
|
"use strict";
|
|
80282
80366
|
import_node_child_process47 = require("node:child_process");
|
|
80283
|
-
|
|
80367
|
+
import_node_crypto56 = require("node:crypto");
|
|
80284
80368
|
import_node_fs92 = __toESM(require("node:fs"), 1);
|
|
80285
80369
|
import_node_path94 = __toESM(require("node:path"), 1);
|
|
80286
80370
|
init_home_paths();
|
|
@@ -80994,11 +81078,11 @@ var init_nitro_adapter = __esm({
|
|
|
80994
81078
|
});
|
|
80995
81079
|
|
|
80996
81080
|
// src/react-native-core-digest.ts
|
|
80997
|
-
var
|
|
81081
|
+
var import_node_crypto57, import_node_fs95, import_node_path97;
|
|
80998
81082
|
var init_react_native_core_digest = __esm({
|
|
80999
81083
|
"src/react-native-core-digest.ts"() {
|
|
81000
81084
|
"use strict";
|
|
81001
|
-
|
|
81085
|
+
import_node_crypto57 = require("node:crypto");
|
|
81002
81086
|
import_node_fs95 = __toESM(require("node:fs"), 1);
|
|
81003
81087
|
import_node_path97 = __toESM(require("node:path"), 1);
|
|
81004
81088
|
}
|
|
@@ -84410,11 +84494,11 @@ function coreDataModelDirectories(files2) {
|
|
|
84410
84494
|
}
|
|
84411
84495
|
return [...models].sort();
|
|
84412
84496
|
}
|
|
84413
|
-
var
|
|
84497
|
+
var import_node_crypto58, import_node_fs97, import_node_path99, attributeTypes, deleteRules, EXTERNAL_BINARY, PRESERVE_AFTER_DELETION, yes, common, uid, NULL, classChains, KeyedArchive, sha2563;
|
|
84414
84498
|
var init_core_data_model = __esm({
|
|
84415
84499
|
"src/core-data-model.ts"() {
|
|
84416
84500
|
"use strict";
|
|
84417
|
-
|
|
84501
|
+
import_node_crypto58 = require("node:crypto");
|
|
84418
84502
|
import_node_fs97 = require("node:fs");
|
|
84419
84503
|
import_node_path99 = __toESM(require("node:path"), 1);
|
|
84420
84504
|
init_core_data_entity_classes();
|
|
@@ -84533,7 +84617,7 @@ var init_core_data_model = __esm({
|
|
|
84533
84617
|
});
|
|
84534
84618
|
}
|
|
84535
84619
|
};
|
|
84536
|
-
sha2563 = (...parts) => (0,
|
|
84620
|
+
sha2563 = (...parts) => (0, import_node_crypto58.createHash)("sha256").update(
|
|
84537
84621
|
Buffer.concat(
|
|
84538
84622
|
parts.map(
|
|
84539
84623
|
(part) => Array.isArray(part) ? Buffer.from(part) : Buffer.from(part)
|
|
@@ -86796,7 +86880,7 @@ function sourceClosureFiles(srcDir, entrypoints, excludedFiles = []) {
|
|
|
86796
86880
|
return files2.sort();
|
|
86797
86881
|
}
|
|
86798
86882
|
function sourceClosureDigest(srcDir, entrypoints, excludedFiles) {
|
|
86799
|
-
const hash = (0,
|
|
86883
|
+
const hash = (0, import_node_crypto59.createHash)("sha256");
|
|
86800
86884
|
for (const file of sourceClosureFiles(srcDir, entrypoints, excludedFiles)) {
|
|
86801
86885
|
const key2 = import_node_path100.default.relative(srcDir, file);
|
|
86802
86886
|
const bytes = (0, import_node_fs98.readFileSync)(file);
|
|
@@ -86804,11 +86888,11 @@ function sourceClosureDigest(srcDir, entrypoints, excludedFiles) {
|
|
|
86804
86888
|
}
|
|
86805
86889
|
return hash.digest("hex");
|
|
86806
86890
|
}
|
|
86807
|
-
var
|
|
86891
|
+
var import_node_crypto59, import_node_fs98, import_node_path100, STANDIN_DIGEST_ENTRYPOINTS, STANDIN_DIGEST_EXCLUDED_FILES, RUNTIME_IMPORT, standinSourceDigest, STANDIN_SOURCE_DIGEST;
|
|
86808
86892
|
var init_swift_standin_digest = __esm({
|
|
86809
86893
|
"src/swift-standin-digest.ts"() {
|
|
86810
86894
|
"use strict";
|
|
86811
|
-
|
|
86895
|
+
import_node_crypto59 = require("node:crypto");
|
|
86812
86896
|
import_node_fs98 = require("node:fs");
|
|
86813
86897
|
import_node_path100 = __toESM(require("node:path"), 1);
|
|
86814
86898
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
@@ -86819,7 +86903,7 @@ var init_swift_standin_digest = __esm({
|
|
|
86819
86903
|
];
|
|
86820
86904
|
RUNTIME_IMPORT = /(?:^|[;\n])[ \t]*(?:import|export)\s+(?!type(?:\s|\{))([\s\S]*?)\s+from\s*['"]([^'"]+)['"]|(?:^|[;\n])[ \t]*import\s+['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
86821
86905
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS, STANDIN_DIGEST_EXCLUDED_FILES);
|
|
86822
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
86906
|
+
STANDIN_SOURCE_DIGEST = true ? "c87e0b7f1ae69b2a4e76611266612d6218f81a3244e592800c02f78c4f8e48f6" : standinSourceDigest();
|
|
86823
86907
|
}
|
|
86824
86908
|
});
|
|
86825
86909
|
|
|
@@ -87131,13 +87215,13 @@ var init_swift_wasm64_wamr = __esm({
|
|
|
87131
87215
|
|
|
87132
87216
|
// src/swift-wasm64-native-source.ts
|
|
87133
87217
|
function deriveSource(file, bytes, backport) {
|
|
87134
|
-
if (!backport || (0,
|
|
87218
|
+
if (!backport || (0, import_node_crypto60.createHash)("sha256").update(bytes).digest("hex") !== backport.originalSha256)
|
|
87135
87219
|
return null;
|
|
87136
87220
|
const source = bytes.toString("utf8");
|
|
87137
87221
|
const derived = Buffer.from(
|
|
87138
87222
|
"rewrite" in backport ? backport.rewrite(source) : source.replace(backport.before, backport.after)
|
|
87139
87223
|
);
|
|
87140
|
-
if ((0,
|
|
87224
|
+
if ((0, import_node_crypto60.createHash)("sha256").update(derived).digest("hex") !== backport.derivedSha256)
|
|
87141
87225
|
throw new Error(`Native source derivation differs: ${file}`);
|
|
87142
87226
|
return {
|
|
87143
87227
|
bytes: derived,
|
|
@@ -87156,11 +87240,11 @@ function deriveWasm64NativeSource(file, bytes) {
|
|
|
87156
87240
|
sourceDerivations.get(name3) ?? headerDerivations.get(name3)
|
|
87157
87241
|
);
|
|
87158
87242
|
}
|
|
87159
|
-
var
|
|
87243
|
+
var import_node_crypto60, import_node_path102, webrtcUnknownArchitecture, boringsslWordSize2, wamrCommit, headerDerivations, sourceDerivations;
|
|
87160
87244
|
var init_swift_wasm64_native_source = __esm({
|
|
87161
87245
|
"src/swift-wasm64-native-source.ts"() {
|
|
87162
87246
|
"use strict";
|
|
87163
|
-
|
|
87247
|
+
import_node_crypto60 = require("node:crypto");
|
|
87164
87248
|
import_node_path102 = __toESM(require("node:path"), 1);
|
|
87165
87249
|
init_swift_wasm64_wamr();
|
|
87166
87250
|
init_swiftWasm64ConfigContract();
|
|
@@ -87620,7 +87704,7 @@ var init_genrule_library_builds = __esm({
|
|
|
87620
87704
|
function nativeFrameworkCompiler(moduleRoot, toolchainBin, directory2) {
|
|
87621
87705
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
87622
87706
|
const sdk2 = swiftSdkPaths(moduleRoot, toolchainBin);
|
|
87623
|
-
const identity2 = (0,
|
|
87707
|
+
const identity2 = (0, import_node_crypto61.createHash)("sha256").update(
|
|
87624
87708
|
JSON.stringify([
|
|
87625
87709
|
distribution?.id,
|
|
87626
87710
|
distribution?.link,
|
|
@@ -87646,7 +87730,7 @@ function nativeFrameworkCompiler(moduleRoot, toolchainBin, directory2) {
|
|
|
87646
87730
|
for (const alias of product.frameworkAliases) {
|
|
87647
87731
|
if (alias.wasmSdkId !== distribution.wasmSdkId || alias.wasmSdkChecksum !== distribution.wasmSdkChecksum)
|
|
87648
87732
|
throw new Error(`framework SDK identity differs for ${alias.name}`);
|
|
87649
|
-
if ((0,
|
|
87733
|
+
if ((0, import_node_crypto61.createHash)("sha256").update(import_node_fs101.default.readFileSync(import_node_path104.default.join(moduleRoot, alias.moduleMap))).digest("hex") !== alias.moduleMapSha256)
|
|
87650
87734
|
throw new Error(`framework module map changed ${alias.moduleMap}`);
|
|
87651
87735
|
const selected = /* @__PURE__ */ new Set();
|
|
87652
87736
|
const reach = (name3) => {
|
|
@@ -87687,7 +87771,7 @@ function nativeFrameworkCompiler(moduleRoot, toolchainBin, directory2) {
|
|
|
87687
87771
|
for (const alias of owner.frameworkAliases) {
|
|
87688
87772
|
if (frameworkResponses[alias.name])
|
|
87689
87773
|
throw new Error(`ambiguous declared framework ${alias.name}`);
|
|
87690
|
-
if ((0,
|
|
87774
|
+
if ((0, import_node_crypto61.createHash)("sha256").update(import_node_fs101.default.readFileSync(import_node_path104.default.join(sdkRoot, alias.moduleMap))).digest("hex") !== alias.moduleMapSha256)
|
|
87691
87775
|
throw new Error(`framework module map changed ${alias.moduleMap}`);
|
|
87692
87776
|
const file = import_node_path104.default.join(root, `${alias.name}.rsp`);
|
|
87693
87777
|
import_node_fs101.default.writeFileSync(file, aliasArtifacts.map(quote3).join("\n") + "\n");
|
|
@@ -87781,11 +87865,11 @@ exec ${shellQuote(configuration.compiler)} "$@"
|
|
|
87781
87865
|
};
|
|
87782
87866
|
return { cc: compiler("clang"), cxx: compiler("clang++"), identity: identity2 };
|
|
87783
87867
|
}
|
|
87784
|
-
var
|
|
87868
|
+
var import_node_crypto61, import_node_fs101, import_node_path104, v7;
|
|
87785
87869
|
var init_native_framework_compiler = __esm({
|
|
87786
87870
|
"src/native-framework-compiler.ts"() {
|
|
87787
87871
|
"use strict";
|
|
87788
|
-
|
|
87872
|
+
import_node_crypto61 = require("node:crypto");
|
|
87789
87873
|
import_node_fs101 = __toESM(require("node:fs"), 1);
|
|
87790
87874
|
import_node_path104 = __toESM(require("node:path"), 1);
|
|
87791
87875
|
v7 = __toESM(require("peachsim/vendor/valibot"), 1);
|
|
@@ -87806,7 +87890,7 @@ function processAlive(pid) {
|
|
|
87806
87890
|
}
|
|
87807
87891
|
function tryAcquireNumberedLock(directory2, detail = "") {
|
|
87808
87892
|
(0, import_node_fs102.mkdirSync)(directory2, { recursive: true });
|
|
87809
|
-
const claim = (0, import_node_path105.join)(directory2, `claim-${process.pid}-${(0,
|
|
87893
|
+
const claim = (0, import_node_path105.join)(directory2, `claim-${process.pid}-${(0, import_node_crypto62.randomUUID)()}`);
|
|
87810
87894
|
for (; ; ) {
|
|
87811
87895
|
const numbers = (0, import_node_fs102.readdirSync)(directory2).filter((name3) => /^\d+$/.test(name3)).map(Number);
|
|
87812
87896
|
const top = Math.max(-1, ...numbers);
|
|
@@ -87845,11 +87929,11 @@ ${detail}` : ""}`);
|
|
|
87845
87929
|
};
|
|
87846
87930
|
}
|
|
87847
87931
|
}
|
|
87848
|
-
var
|
|
87932
|
+
var import_node_crypto62, import_node_fs102, import_node_path105, errorCode2;
|
|
87849
87933
|
var init_numbered_lock = __esm({
|
|
87850
87934
|
"src/numbered-lock.ts"() {
|
|
87851
87935
|
"use strict";
|
|
87852
|
-
|
|
87936
|
+
import_node_crypto62 = require("node:crypto");
|
|
87853
87937
|
import_node_fs102 = require("node:fs");
|
|
87854
87938
|
import_node_path105 = require("node:path");
|
|
87855
87939
|
errorCode2 = (error) => error instanceof Error && "code" in error ? error.code : void 0;
|
|
@@ -87876,7 +87960,7 @@ function llvmIdentity(toolchainBin, release) {
|
|
|
87876
87960
|
] : ["clang", "wasm-ld", "llvm-ar", "llvm-nm", "llvm-strip"].map(
|
|
87877
87961
|
(name3) => swiftFileChecksum(import_node_path106.default.join(toolchainBin, name3))
|
|
87878
87962
|
);
|
|
87879
|
-
const identity2 = (0,
|
|
87963
|
+
const identity2 = (0, import_node_crypto63.createHash)("sha256").update(JSON.stringify(components)).digest("hex");
|
|
87880
87964
|
toolIdentities.set(toolchainBin, identity2);
|
|
87881
87965
|
return identity2;
|
|
87882
87966
|
}
|
|
@@ -87884,7 +87968,7 @@ function cSdkIdentity(sysroot, resourceDir, frameworks) {
|
|
|
87884
87968
|
const key2 = JSON.stringify([sysroot, resourceDir, frameworks]);
|
|
87885
87969
|
const cached2 = sysrootIdentities.get(key2);
|
|
87886
87970
|
if (cached2) return cached2;
|
|
87887
|
-
const hash = (0,
|
|
87971
|
+
const hash = (0, import_node_crypto63.createHash)("sha256");
|
|
87888
87972
|
const add = (root, relative4) => {
|
|
87889
87973
|
const file = import_node_path106.default.join(root, relative4);
|
|
87890
87974
|
const stat = import_node_fs103.default.statSync(file, { throwIfNoEntry: false });
|
|
@@ -87919,7 +88003,7 @@ function frameworkProbeIdentity(moduleRoot, toolchainBin) {
|
|
|
87919
88003
|
import_node_fs103.default.readFileSync(import_node_path106.default.join(moduleRoot, SWIFT_FRAMEWORK_PRODUCT_FILE), "utf8")
|
|
87920
88004
|
)
|
|
87921
88005
|
);
|
|
87922
|
-
const hash = (0,
|
|
88006
|
+
const hash = (0, import_node_crypto63.createHash)("sha256").update(
|
|
87923
88007
|
JSON.stringify([
|
|
87924
88008
|
headers,
|
|
87925
88009
|
distribution.link,
|
|
@@ -87929,7 +88013,7 @@ function frameworkProbeIdentity(moduleRoot, toolchainBin) {
|
|
|
87929
88013
|
])
|
|
87930
88014
|
);
|
|
87931
88015
|
const objects = distribution.objects.map((file) => [file, distribution.files[file]]);
|
|
87932
|
-
const objectKey = (0,
|
|
88016
|
+
const objectKey = (0, import_node_crypto63.createHash)("sha256").update(JSON.stringify(objects)).digest("hex");
|
|
87933
88017
|
const cache = import_node_path106.default.join(cacheDir4, "framework-symbols-by-object", objectKey);
|
|
87934
88018
|
if (!import_node_fs103.default.existsSync(cache)) {
|
|
87935
88019
|
import_node_fs103.default.mkdirSync(import_node_path106.default.dirname(cache), { recursive: true });
|
|
@@ -87964,7 +88048,7 @@ function frameworkProbeIdentity(moduleRoot, toolchainBin) {
|
|
|
87964
88048
|
const digest3 = import_node_path106.default.join(temporary, "digest");
|
|
87965
88049
|
import_node_fs103.default.writeFileSync(
|
|
87966
88050
|
digest3,
|
|
87967
|
-
(0,
|
|
88051
|
+
(0, import_node_crypto63.createHash)("sha256").update(symbols.sort().join("\n")).digest("hex")
|
|
87968
88052
|
);
|
|
87969
88053
|
import_node_fs103.default.renameSync(digest3, cache);
|
|
87970
88054
|
} finally {
|
|
@@ -88019,7 +88103,7 @@ function buildable(declaration) {
|
|
|
88019
88103
|
return builderOf(declaration) !== null && declaration.dependencies.every(buildable);
|
|
88020
88104
|
}
|
|
88021
88105
|
function declarationInputs(declaration, builder, toolchain, dependencyKeys) {
|
|
88022
|
-
const hash = (0,
|
|
88106
|
+
const hash = (0, import_node_crypto63.createHash)("sha256");
|
|
88023
88107
|
const files2 = declaration.sources.filter(
|
|
88024
88108
|
(source) => !source.generator && !source.file.split(import_node_path106.default.sep).includes(".git")
|
|
88025
88109
|
).map((source) => import_node_path106.default.relative(declaration.packageDir, source.file));
|
|
@@ -88153,12 +88237,12 @@ function genruleArchive(declaration, library, moduleRoot) {
|
|
|
88153
88237
|
}
|
|
88154
88238
|
return combined;
|
|
88155
88239
|
}
|
|
88156
|
-
var import_node_child_process51,
|
|
88240
|
+
var import_node_child_process51, import_node_crypto63, import_node_fs103, import_node_os20, import_node_path106, v8, BUILDERS, cacheDir4, toolIdentities, sysrootIdentities, GENRULE_RECIPE, GENRULE_BUNDLE;
|
|
88157
88241
|
var init_genrule_archives = __esm({
|
|
88158
88242
|
"src/genrule-archives.ts"() {
|
|
88159
88243
|
"use strict";
|
|
88160
88244
|
import_node_child_process51 = require("node:child_process");
|
|
88161
|
-
|
|
88245
|
+
import_node_crypto63 = require("node:crypto");
|
|
88162
88246
|
import_node_fs103 = __toESM(require("node:fs"), 1);
|
|
88163
88247
|
import_node_os20 = __toESM(require("node:os"), 1);
|
|
88164
88248
|
import_node_path106 = __toESM(require("node:path"), 1);
|
|
@@ -88266,7 +88350,7 @@ function privateSentrySlice(entry, moduleRoot) {
|
|
|
88266
88350
|
function nativeSwiftSlice(standin, moduleRoot, generator, configured, artifact) {
|
|
88267
88351
|
if (standin.module !== SENTRY_SWIFT_SLICE.name) return standin;
|
|
88268
88352
|
const native = simulatorNativeLibrary(artifact());
|
|
88269
|
-
if (!native || (0,
|
|
88353
|
+
if (!native || (0, import_node_crypto64.createHash)("sha256").update(import_node_fs104.default.readFileSync(native.file)).digest("hex") !== SENTRY_SWIFT_SLICE.nativeSha256)
|
|
88270
88354
|
return standin;
|
|
88271
88355
|
if (configured)
|
|
88272
88356
|
throw new Error(
|
|
@@ -88324,12 +88408,12 @@ function nativeSwiftSlice(standin, moduleRoot, generator, configured, artifact)
|
|
|
88324
88408
|
}
|
|
88325
88409
|
};
|
|
88326
88410
|
}
|
|
88327
|
-
var import_node_child_process52,
|
|
88411
|
+
var import_node_child_process52, import_node_crypto64, import_node_fs104, import_node_os21, import_node_path107, SENTRY_SWIFT_SLICE;
|
|
88328
88412
|
var init_native_swift_slices = __esm({
|
|
88329
88413
|
"src/native-swift-slices.ts"() {
|
|
88330
88414
|
"use strict";
|
|
88331
88415
|
import_node_child_process52 = require("node:child_process");
|
|
88332
|
-
|
|
88416
|
+
import_node_crypto64 = require("node:crypto");
|
|
88333
88417
|
import_node_fs104 = __toESM(require("node:fs"), 1);
|
|
88334
88418
|
import_node_os21 = __toESM(require("node:os"), 1);
|
|
88335
88419
|
import_node_path107 = __toESM(require("node:path"), 1);
|
|
@@ -89089,7 +89173,7 @@ function treeDigest(root) {
|
|
|
89089
89173
|
}).join("\n");
|
|
89090
89174
|
const memo2 = digests.get(`tree\0${root}`);
|
|
89091
89175
|
if (memo2?.stamp === stamp) return memo2.digest;
|
|
89092
|
-
const hash = (0,
|
|
89176
|
+
const hash = (0, import_node_crypto65.createHash)("sha256");
|
|
89093
89177
|
for (const name3 of names) {
|
|
89094
89178
|
hash.update(`${name3}\0`);
|
|
89095
89179
|
hash.update(import_node_fs108.default.readFileSync(import_node_path110.default.join(root, name3)));
|
|
@@ -89136,7 +89220,7 @@ function swiftBinaryFramework(binary2) {
|
|
|
89136
89220
|
const found3 = locateXcframework(import_node_path110.default.join(dir, "tree"));
|
|
89137
89221
|
if (found3) return { dir: found3, digest: stored.sha };
|
|
89138
89222
|
}
|
|
89139
|
-
const sha2 = (0,
|
|
89223
|
+
const sha2 = (0, import_node_crypto65.createHash)("sha256").update(import_node_fs108.default.readFileSync(binary2.dir)).digest("hex");
|
|
89140
89224
|
if (sha2 !== stored?.sha || !locateXcframework(import_node_path110.default.join(dir, "tree"))) {
|
|
89141
89225
|
import_node_fs108.default.rmSync(dir, { recursive: true, force: true });
|
|
89142
89226
|
import_node_fs108.default.mkdirSync(import_node_path110.default.join(dir, "tree"), { recursive: true });
|
|
@@ -89148,7 +89232,7 @@ function swiftBinaryFramework(binary2) {
|
|
|
89148
89232
|
return { dir: found2, digest: sha2 };
|
|
89149
89233
|
}
|
|
89150
89234
|
if (stored && import_node_fs108.default.existsSync(archive)) {
|
|
89151
|
-
const sha2 = (0,
|
|
89235
|
+
const sha2 = (0, import_node_crypto65.createHash)("sha256").update(import_node_fs108.default.readFileSync(archive)).digest("hex");
|
|
89152
89236
|
if (sha2 !== expected)
|
|
89153
89237
|
throw new Error(`archive checksum ${sha2} is not the declared checksum ${expected}`);
|
|
89154
89238
|
const found2 = locateXcframework(import_node_path110.default.join(dir, "tree"));
|
|
@@ -89157,7 +89241,7 @@ function swiftBinaryFramework(binary2) {
|
|
|
89157
89241
|
import_node_fs108.default.rmSync(dir, { recursive: true, force: true });
|
|
89158
89242
|
import_node_fs108.default.mkdirSync(import_node_path110.default.join(dir, "tree"), { recursive: true });
|
|
89159
89243
|
exec("curl", ["-fsSL", "--retry", "2", "-o", archive, binary2.url]);
|
|
89160
|
-
const sha = (0,
|
|
89244
|
+
const sha = (0, import_node_crypto65.createHash)("sha256").update(import_node_fs108.default.readFileSync(archive)).digest("hex");
|
|
89161
89245
|
if (sha !== expected) {
|
|
89162
89246
|
import_node_fs108.default.rmSync(dir, { recursive: true, force: true });
|
|
89163
89247
|
throw new Error(`archive checksum ${sha} is not the declared checksum ${expected}`);
|
|
@@ -89282,7 +89366,7 @@ function binaryHeaderSearchPaths(binary2, root, workspaceRoot2, declaredFramewor
|
|
|
89282
89366
|
});
|
|
89283
89367
|
}
|
|
89284
89368
|
}
|
|
89285
|
-
const declaredDigest = (0,
|
|
89369
|
+
const declaredDigest = (0, import_node_crypto65.createHash)("sha256");
|
|
89286
89370
|
for (const framework of providedFrameworks)
|
|
89287
89371
|
declaredDigest.update(`provided/${import_node_path110.default.relative(artifact.dir, framework)}\0`);
|
|
89288
89372
|
for (const [framework, { declared: names, imports: imports2, sdkHeader }] of declared)
|
|
@@ -89352,7 +89436,7 @@ function binaryHeaderSearchPaths(binary2, root, workspaceRoot2, declaredFramewor
|
|
|
89352
89436
|
import_node_fs108.default.copyFileSync(surface.modulemap, modulemap);
|
|
89353
89437
|
}
|
|
89354
89438
|
}
|
|
89355
|
-
const contents2 = (0,
|
|
89439
|
+
const contents2 = (0, import_node_crypto65.createHash)("sha256");
|
|
89356
89440
|
for (const framework of providedFrameworks.filter((item) => !declared.has(item))) {
|
|
89357
89441
|
const modulemap = import_node_path110.default.join(
|
|
89358
89442
|
pending2,
|
|
@@ -90767,7 +90851,7 @@ function crateSourceRoots(manifest, searchRoot) {
|
|
|
90767
90851
|
return roots;
|
|
90768
90852
|
}
|
|
90769
90853
|
function crateSourceDigest(manifest, searchRoot) {
|
|
90770
|
-
const hash = (0,
|
|
90854
|
+
const hash = (0, import_node_crypto65.createHash)("sha256");
|
|
90771
90855
|
const walk4 = (dir, root) => {
|
|
90772
90856
|
for (const entry of import_node_fs108.default.readdirSync(dir, { withFileTypes: true }).sort((left, right) => left.name < right.name ? -1 : 1)) {
|
|
90773
90857
|
const full = import_node_path110.default.join(dir, entry.name);
|
|
@@ -91214,7 +91298,7 @@ function standinGenerationInputs(binaries, toolchain, configuredBehavior = {}, s
|
|
|
91214
91298
|
...swiftSources.flags,
|
|
91215
91299
|
...swiftSources.sources.flatMap((source) => [
|
|
91216
91300
|
source,
|
|
91217
|
-
(0,
|
|
91301
|
+
(0, import_node_crypto65.createHash)("sha256").update(import_node_fs108.default.readFileSync(import_node_path110.default.join(binary2.dir, source))).digest("hex")
|
|
91218
91302
|
])
|
|
91219
91303
|
);
|
|
91220
91304
|
continue;
|
|
@@ -91250,7 +91334,7 @@ function standinGenerationInputs(binaries, toolchain, configuredBehavior = {}, s
|
|
|
91250
91334
|
);
|
|
91251
91335
|
}
|
|
91252
91336
|
}
|
|
91253
|
-
return (0,
|
|
91337
|
+
return (0, import_node_crypto65.createHash)("sha256").update(parts.join("\0")).digest("hex");
|
|
91254
91338
|
}
|
|
91255
91339
|
function missingArtifactGap(binary2) {
|
|
91256
91340
|
if (swiftBinaryOnDisk(binary2)) return null;
|
|
@@ -91332,7 +91416,7 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
91332
91416
|
return NO_IMPORTABLE_SURFACE;
|
|
91333
91417
|
}
|
|
91334
91418
|
const configured = new Map(Object.entries(behavior));
|
|
91335
|
-
const hash = (0,
|
|
91419
|
+
const hash = (0, import_node_crypto65.createHash)("sha256").update(
|
|
91336
91420
|
standinGenerationInputs([binary2], toolchain, behavior)
|
|
91337
91421
|
);
|
|
91338
91422
|
hash.update(digest3);
|
|
@@ -91572,7 +91656,7 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
|
|
|
91572
91656
|
);
|
|
91573
91657
|
if (binary2.moduleSources !== void 0)
|
|
91574
91658
|
frameworkInputs.push(
|
|
91575
|
-
`${binary2.target}\0${(0,
|
|
91659
|
+
`${binary2.target}\0${(0, import_node_crypto65.createHash)("sha256").update(
|
|
91576
91660
|
[iosSdkId(), ...swiftSources.flags, ...swiftSources.sources, ...texts].join(
|
|
91577
91661
|
"\0"
|
|
91578
91662
|
)
|
|
@@ -91613,7 +91697,7 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
|
|
|
91613
91697
|
import_node_fs108.default.mkdirSync(sourceFrameworks);
|
|
91614
91698
|
const frameworks = {
|
|
91615
91699
|
dirs: [...frameworkDirs, sourceFrameworks].sort(),
|
|
91616
|
-
digest: (0,
|
|
91700
|
+
digest: (0, import_node_crypto65.createHash)("sha256").update(frameworkInputs.sort().join("\0")).digest("hex"),
|
|
91617
91701
|
surfaces: frameworkSurfaces
|
|
91618
91702
|
};
|
|
91619
91703
|
const siblings = new Map(
|
|
@@ -91732,12 +91816,12 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
|
|
|
91732
91816
|
import_node_fs108.default.rmSync(modules, { recursive: true, force: true });
|
|
91733
91817
|
}
|
|
91734
91818
|
}
|
|
91735
|
-
var import_node_child_process54,
|
|
91819
|
+
var import_node_child_process54, import_node_crypto65, import_node_fs108, import_node_path110, 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;
|
|
91736
91820
|
var init_swift_standins = __esm({
|
|
91737
91821
|
"src/swift-standins.ts"() {
|
|
91738
91822
|
"use strict";
|
|
91739
91823
|
import_node_child_process54 = require("node:child_process");
|
|
91740
|
-
|
|
91824
|
+
import_node_crypto65 = require("node:crypto");
|
|
91741
91825
|
import_node_fs108 = __toESM(require("node:fs"), 1);
|
|
91742
91826
|
import_node_path110 = __toESM(require("node:path"), 1);
|
|
91743
91827
|
init_forked_script_contract();
|
|
@@ -91767,7 +91851,7 @@ var init_swift_standins = __esm({
|
|
|
91767
91851
|
init_swiftTargetContract();
|
|
91768
91852
|
TRIPLE = SWIFT_WASM_TRIPLE;
|
|
91769
91853
|
cacheDir5 = import_node_path110.default.join(cacheDir(), "swift-standins");
|
|
91770
|
-
key = (...parts) => (0,
|
|
91854
|
+
key = (...parts) => (0, import_node_crypto65.createHash)("sha256").update(parts.join("\0")).digest("hex").slice(0, 32);
|
|
91771
91855
|
digests = /* @__PURE__ */ new Map();
|
|
91772
91856
|
isBinaryLibraryFile = (file) => /\.(?:a|dylib|o|tbd)$/i.test(file);
|
|
91773
91857
|
OBJC_IMPORT = /#\s*(?:import|include)\s*[<"](?:[\w+-]+\/)?([\w+.-]+\.h)[>"]/g;
|
|
@@ -91930,7 +92014,7 @@ function compiledFrameworkImports(app, products) {
|
|
|
91930
92014
|
function sha256Hex6(bytes) {
|
|
91931
92015
|
if (typeof Bun !== "undefined")
|
|
91932
92016
|
return new Bun.CryptoHasher("sha256").update(bytes).digest("hex");
|
|
91933
|
-
return (0,
|
|
92017
|
+
return (0, import_node_crypto66.createHash)("sha256").update(bytes).digest("hex");
|
|
91934
92018
|
}
|
|
91935
92019
|
function regularFileStamp(file) {
|
|
91936
92020
|
const stat = import_node_fs109.default.lstatSync(file, { bigint: true, throwIfNoEntry: false });
|
|
@@ -91973,7 +92057,7 @@ function cachedBinaryFileDigest(file) {
|
|
|
91973
92057
|
const digest3 = sha256Hex6(import_node_fs109.default.readFileSync(real));
|
|
91974
92058
|
binaryFileDigests.set(real, { stamp, digest: digest3 });
|
|
91975
92059
|
import_node_fs109.default.mkdirSync(dir, { recursive: true });
|
|
91976
|
-
const partial = `${record5}.${process.pid}.${(0,
|
|
92060
|
+
const partial = `${record5}.${process.pid}.${(0, import_node_crypto66.randomUUID)()}`;
|
|
91977
92061
|
import_node_fs109.default.writeFileSync(partial, JSON.stringify({ stamp, digest: digest3 }));
|
|
91978
92062
|
import_node_fs109.default.renameSync(partial, record5);
|
|
91979
92063
|
return digest3;
|
|
@@ -93243,12 +93327,12 @@ ${reported.trimEnd() || `Clang exited with status ${result.status}`}`;
|
|
|
93243
93327
|
import_node_fs109.default.closeSync(descriptor);
|
|
93244
93328
|
}
|
|
93245
93329
|
}
|
|
93246
|
-
var import_node_child_process55,
|
|
93330
|
+
var import_node_child_process55, import_node_crypto66, import_node_fs109, import_node_path111, SwiftObjCCompilationError, isDirectory4, isSdkInclude, FRAMEWORK_IMPORT, OWN_IMPORT, binaryFileDigests, objcInputSnapshots;
|
|
93247
93331
|
var init_swift_objc_compile = __esm({
|
|
93248
93332
|
"src/swift-objc-compile.ts"() {
|
|
93249
93333
|
"use strict";
|
|
93250
93334
|
import_node_child_process55 = require("node:child_process");
|
|
93251
|
-
|
|
93335
|
+
import_node_crypto66 = require("node:crypto");
|
|
93252
93336
|
import_node_fs109 = __toESM(require("node:fs"), 1);
|
|
93253
93337
|
import_node_path111 = __toESM(require("node:path"), 1);
|
|
93254
93338
|
init_mapLimit();
|
|
@@ -93302,7 +93386,7 @@ async function buildRiveRuntimeDependencies(checkout, moduleRoot) {
|
|
|
93302
93386
|
];
|
|
93303
93387
|
const objc = [...swiftObjCRuntimeFlags, "-fobjc-exceptions"];
|
|
93304
93388
|
const xcode = (0, import_node_child_process56.execFileSync)("xcodebuild", ["-version"], { encoding: "utf8" });
|
|
93305
|
-
const key2 = (0,
|
|
93389
|
+
const key2 = (0, import_node_crypto67.createHash)("sha256").update(
|
|
93306
93390
|
JSON.stringify([
|
|
93307
93391
|
RECIPE,
|
|
93308
93392
|
(0, import_node_child_process56.execFileSync)("git", ["-C", runtime, "rev-parse", "HEAD"], {
|
|
@@ -93513,12 +93597,12 @@ exec ${quote3(import_node_path112.default.join(toolchainBin, "llvm-ar"))} rcs "$
|
|
|
93513
93597
|
);
|
|
93514
93598
|
return directory2;
|
|
93515
93599
|
}
|
|
93516
|
-
var import_node_child_process56,
|
|
93600
|
+
var import_node_child_process56, import_node_crypto67, import_node_fs110, import_node_os22, import_node_path112, import_promises9, RECIPE, CONFIG, RUNTIME_LIBRARIES;
|
|
93517
93601
|
var init_rive_runtime_dependencies = __esm({
|
|
93518
93602
|
"src/rive-runtime-dependencies.ts"() {
|
|
93519
93603
|
"use strict";
|
|
93520
93604
|
import_node_child_process56 = require("node:child_process");
|
|
93521
|
-
|
|
93605
|
+
import_node_crypto67 = require("node:crypto");
|
|
93522
93606
|
import_node_fs110 = __toESM(require("node:fs"), 1);
|
|
93523
93607
|
import_node_os22 = __toESM(require("node:os"), 1);
|
|
93524
93608
|
import_node_path112 = __toESM(require("node:path"), 1);
|
|
@@ -94375,7 +94459,7 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
|
|
|
94375
94459
|
(binary2) => binary2.publicHeaders === void 0 && binary2.placeholder === void 0 && swiftBinaryOnDisk(binary2) && binaryHeaderSearchPaths(binary2, staged, app.rootDir).headers.length === 1
|
|
94376
94460
|
))
|
|
94377
94461
|
return [...binaries];
|
|
94378
|
-
const hash = (0,
|
|
94462
|
+
const hash = (0, import_node_crypto68.createHash)("sha256");
|
|
94379
94463
|
hash.update(
|
|
94380
94464
|
JSON.stringify([
|
|
94381
94465
|
inputs2.targets,
|
|
@@ -94584,12 +94668,12 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
|
|
|
94584
94668
|
);
|
|
94585
94669
|
return result;
|
|
94586
94670
|
}
|
|
94587
|
-
var import_node_child_process58,
|
|
94671
|
+
var import_node_child_process58, import_node_crypto68, import_node_fs112, import_node_path114, cachedInputs;
|
|
94588
94672
|
var init_swift_cxx_reachable = __esm({
|
|
94589
94673
|
"src/swift-cxx-reachable.ts"() {
|
|
94590
94674
|
"use strict";
|
|
94591
94675
|
import_node_child_process58 = require("node:child_process");
|
|
94592
|
-
|
|
94676
|
+
import_node_crypto68 = require("node:crypto");
|
|
94593
94677
|
import_node_fs112 = __toESM(require("node:fs"), 1);
|
|
94594
94678
|
import_node_path114 = __toESM(require("node:path"), 1);
|
|
94595
94679
|
init_is_record();
|
|
@@ -94787,7 +94871,7 @@ function nativeSourceDescriptor(packagePath) {
|
|
|
94787
94871
|
function swiftArtifactContentDigest(bytes) {
|
|
94788
94872
|
let digest3 = swiftArtifactDigests.get(bytes);
|
|
94789
94873
|
if (!digest3) {
|
|
94790
|
-
digest3 = (0,
|
|
94874
|
+
digest3 = (0, import_node_crypto69.createHash)("sha256").update(bytes).digest("hex");
|
|
94791
94875
|
swiftArtifactDigests.set(bytes, digest3);
|
|
94792
94876
|
}
|
|
94793
94877
|
return digest3;
|
|
@@ -94915,7 +94999,7 @@ async function wasmPortableAssembly(binaries, toolchainBin, moduleRoot) {
|
|
|
94915
94999
|
const clang = import_node_path116.default.join(toolchainBin, "clang");
|
|
94916
95000
|
const empty = (binary2, file) => {
|
|
94917
95001
|
const source = import_node_path116.default.join(binary2.dir, file);
|
|
94918
|
-
const key2 = (0,
|
|
95002
|
+
const key2 = (0, import_node_crypto69.createHash)("sha256").update(
|
|
94919
95003
|
JSON.stringify([
|
|
94920
95004
|
clang,
|
|
94921
95005
|
sdk2.sysroot,
|
|
@@ -94960,7 +95044,7 @@ async function wasmPortableAssembly(binaries, toolchainBin, moduleRoot) {
|
|
|
94960
95044
|
return new Set(portable.flat());
|
|
94961
95045
|
}
|
|
94962
95046
|
async function swiftPackages(entry, app) {
|
|
94963
|
-
const stamp = (file) => import_node_fs114.default.existsSync(file) ? (0,
|
|
95047
|
+
const stamp = (file) => import_node_fs114.default.existsSync(file) ? (0, import_node_crypto69.createHash)("sha256").update(import_node_fs114.default.readFileSync(file)).digest("hex") : null;
|
|
94964
95048
|
const owners = [...app.frameworks, app].map((target) => ({
|
|
94965
95049
|
module: target.moduleName,
|
|
94966
95050
|
products: target.packageProducts ?? []
|
|
@@ -96124,7 +96208,7 @@ async function buildSwiftResourceTable(project2, baseUrl, inputs2) {
|
|
|
96124
96208
|
const source = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true }).decode(
|
|
96125
96209
|
bytes
|
|
96126
96210
|
);
|
|
96127
|
-
const sha2565 = (0,
|
|
96211
|
+
const sha2565 = (0, import_node_crypto69.createHash)("sha256").update(bytes).digest("hex");
|
|
96128
96212
|
const bundle = swiftResourceBundleForFile(bundles, key2);
|
|
96129
96213
|
if (!bundle && inputs2["Package.swift"])
|
|
96130
96214
|
throw new Error(`metal source ${key2} has no resource target bundle`);
|
|
@@ -96147,7 +96231,7 @@ async function buildSwiftResourceTable(project2, baseUrl, inputs2) {
|
|
|
96147
96231
|
const bytes = readPackageFile2(project2.packagePath, disk, limits.imageBytes);
|
|
96148
96232
|
pdfs.set(file, {
|
|
96149
96233
|
file: disk,
|
|
96150
|
-
sha256: (0,
|
|
96234
|
+
sha256: (0, import_node_crypto69.createHash)("sha256").update(bytes).digest("hex")
|
|
96151
96235
|
});
|
|
96152
96236
|
}
|
|
96153
96237
|
const pdfRasters = rasterizePdfFiles([...pdfs.values()], limits);
|
|
@@ -96193,7 +96277,7 @@ async function buildSwiftResourceTable(project2, baseUrl, inputs2) {
|
|
|
96193
96277
|
throw new Error("swift image pack exceeds the compile service caps");
|
|
96194
96278
|
}
|
|
96195
96279
|
imageBytes += bytes.length;
|
|
96196
|
-
const hash = (0,
|
|
96280
|
+
const hash = (0, import_node_crypto69.createHash)("sha256").update(bytes).digest("hex").slice(0, 16);
|
|
96197
96281
|
const bundle = table[bundlePath] ?? /* @__PURE__ */ Object.create(null);
|
|
96198
96282
|
const pixelSize = ext === ".png" ? readPngDimensions(bytes) : null;
|
|
96199
96283
|
const variant2 = {
|
|
@@ -96500,7 +96584,7 @@ function updateSwiftConfigStamp(hash, packagePath) {
|
|
|
96500
96584
|
hash.update(JSON.stringify(gates.map((name3) => swiftWasm64PlatformGates[name3])));
|
|
96501
96585
|
}
|
|
96502
96586
|
function sourceStamp(packagePath, moduleRootOverride, hosted = false) {
|
|
96503
|
-
const hash = (0,
|
|
96587
|
+
const hash = (0, import_node_crypto69.createHash)("sha256");
|
|
96504
96588
|
hash.update(packagePath);
|
|
96505
96589
|
updateSwiftConfigStamp(hash, packagePath);
|
|
96506
96590
|
const libraries = projects().get(packagePath)?.libraries;
|
|
@@ -96529,7 +96613,7 @@ function sourceStamp(packagePath, moduleRootOverride, hosted = false) {
|
|
|
96529
96613
|
return hash.digest("hex").slice(0, 16);
|
|
96530
96614
|
}
|
|
96531
96615
|
function sourceContentStamp(packagePath, moduleRootOverride) {
|
|
96532
|
-
const hash = (0,
|
|
96616
|
+
const hash = (0, import_node_crypto69.createHash)("sha256");
|
|
96533
96617
|
hash.update(compilerSourceDigest);
|
|
96534
96618
|
updateSwiftConfigStamp(hash, packagePath);
|
|
96535
96619
|
const libraries = projects().get(packagePath)?.libraries;
|
|
@@ -96561,7 +96645,7 @@ function moduleStamp(packagePath, moduleRootOverride, hosted) {
|
|
|
96561
96645
|
(root) => import_node_fs114.default.existsSync(import_node_path116.default.join(root, "toolchain.json"))
|
|
96562
96646
|
);
|
|
96563
96647
|
if (!moduleRoot) return "";
|
|
96564
|
-
const hash = (0,
|
|
96648
|
+
const hash = (0, import_node_crypto69.createHash)("sha256");
|
|
96565
96649
|
hash.update(moduleRoot);
|
|
96566
96650
|
for (const relative4 of swiftModuleInputFiles(moduleRoot)) {
|
|
96567
96651
|
hash.update(relative4);
|
|
@@ -96571,7 +96655,7 @@ function moduleStamp(packagePath, moduleRootOverride, hosted) {
|
|
|
96571
96655
|
}
|
|
96572
96656
|
function otherInputs(input, standalone) {
|
|
96573
96657
|
const { files: _files, ...rest } = input;
|
|
96574
|
-
return (0,
|
|
96658
|
+
return (0, import_node_crypto69.createHash)("sha256").update(JSON.stringify({ ...rest, standalone })).digest("hex");
|
|
96575
96659
|
}
|
|
96576
96660
|
function icuUrl(origin, artifact) {
|
|
96577
96661
|
return "url" in artifact.icu ? artifact.icu.url : `${origin}${ICU_PATH}${swiftIcuAddress(artifact.icu)}`;
|
|
@@ -96586,7 +96670,7 @@ function standinLibraries(binaries, standins, rootDir, toolchain, rustWasm64) {
|
|
|
96586
96670
|
for (const standin of standins) {
|
|
96587
96671
|
if (!standin.prebuilt) continue;
|
|
96588
96672
|
const bytes = Buffer.from(standin.prebuilt.library, "base64");
|
|
96589
|
-
const digest3 = (0,
|
|
96673
|
+
const digest3 = (0, import_node_crypto69.createHash)("sha256").update(bytes).digest("hex");
|
|
96590
96674
|
const dir = import_node_path116.default.join(swiftCacheDir(), "native-archives", digest3);
|
|
96591
96675
|
import_node_fs114.default.mkdirSync(dir, { recursive: true });
|
|
96592
96676
|
const library = import_node_path116.default.join(dir, `lib${standin.module}.a`);
|
|
@@ -96935,7 +97019,7 @@ function swiftBuildRoot(packagePath, moduleRoot) {
|
|
|
96935
97019
|
return import_node_path116.default.join(
|
|
96936
97020
|
swiftCacheDir(),
|
|
96937
97021
|
"swift-builds",
|
|
96938
|
-
(0,
|
|
97022
|
+
(0, import_node_crypto69.createHash)("sha256").update(`${compilerKey}\0${buildKeyPath}`).digest("hex").slice(0, 16)
|
|
96939
97023
|
);
|
|
96940
97024
|
}
|
|
96941
97025
|
function installedWorkspaceInput(packagePath, entry, moduleRoot) {
|
|
@@ -97236,7 +97320,7 @@ async function fetchSwiftDyldTable(moduleUrl, module2, signal) {
|
|
|
97236
97320
|
const response = await fetch(url, { signal });
|
|
97237
97321
|
if (!response.ok) throw new Error(`swift compile: ${url} answered ${response.status}`);
|
|
97238
97322
|
const bytes = Buffer.from(await response.arrayBuffer());
|
|
97239
|
-
if (bytes.length !== byteLength || (0,
|
|
97323
|
+
if (bytes.length !== byteLength || (0, import_node_crypto69.createHash)("sha256").update(bytes).digest("hex") !== sha2565)
|
|
97240
97324
|
throw new Error(`swift compile: ${url} does not match its module's index`);
|
|
97241
97325
|
return { dyldTable: { sha256: sha2565, bytes } };
|
|
97242
97326
|
}
|
|
@@ -97315,13 +97399,13 @@ function swiftArtifactIsAvailable(origin, url, hash) {
|
|
|
97315
97399
|
(project2) => project2.artifacts.some((artifact) => artifact.hash === hash)
|
|
97316
97400
|
);
|
|
97317
97401
|
}
|
|
97318
|
-
var import_node_async_hooks2, import_node_child_process60,
|
|
97402
|
+
var import_node_async_hooks2, import_node_child_process60, import_node_crypto69, import_node_fs114, import_node_os24, import_node_path116, 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;
|
|
97319
97403
|
var init_swift_host = __esm({
|
|
97320
97404
|
"src/swift-host.ts"() {
|
|
97321
97405
|
"use strict";
|
|
97322
97406
|
import_node_async_hooks2 = require("node:async_hooks");
|
|
97323
97407
|
import_node_child_process60 = require("node:child_process");
|
|
97324
|
-
|
|
97408
|
+
import_node_crypto69 = require("node:crypto");
|
|
97325
97409
|
import_node_fs114 = __toESM(require("node:fs"), 1);
|
|
97326
97410
|
import_node_os24 = __toESM(require("node:os"), 1);
|
|
97327
97411
|
import_node_path116 = __toESM(require("node:path"), 1);
|
|
@@ -97875,7 +97959,7 @@ function hashTree(root) {
|
|
|
97875
97959
|
for (const entry of import_node_fs117.default.readdirSync(root, { recursive: true, withFileTypes: true })) {
|
|
97876
97960
|
if (!entry.isFile()) continue;
|
|
97877
97961
|
const file = import_node_path119.default.join(entry.parentPath, entry.name);
|
|
97878
|
-
hashes[import_node_path119.default.relative(root, file).split(import_node_path119.default.sep).join("/")] = (0,
|
|
97962
|
+
hashes[import_node_path119.default.relative(root, file).split(import_node_path119.default.sep).join("/")] = (0, import_node_crypto70.createHash)("sha256").update(import_node_fs117.default.readFileSync(file)).digest("hex");
|
|
97879
97963
|
}
|
|
97880
97964
|
return Object.fromEntries(Object.entries(hashes).sort(([a], [b]) => a < b ? -1 : 1));
|
|
97881
97965
|
}
|
|
@@ -97925,12 +98009,12 @@ async function runInstalledTurboCodegen(appRoot, outDir, signal) {
|
|
|
97925
98009
|
files: hashTree(generatedRoot)
|
|
97926
98010
|
};
|
|
97927
98011
|
}
|
|
97928
|
-
var import_node_child_process61,
|
|
98012
|
+
var import_node_child_process61, import_node_crypto70, import_node_fs117, import_node_module13, import_node_path119, import_node_util15, run10, RENDERER_PODS, RENDERER_PODS_VERSIONED, COMPILED_SOURCE, LEGACY_BRIDGE_DEV_SUPPORT, LEGACY_BRIDGE_PODS, LEGACY_BRIDGE_PODS_VERSIONED;
|
|
97929
98013
|
var init_turbo_codegen_intake = __esm({
|
|
97930
98014
|
"src/turbo-codegen-intake.ts"() {
|
|
97931
98015
|
"use strict";
|
|
97932
98016
|
import_node_child_process61 = require("node:child_process");
|
|
97933
|
-
|
|
98017
|
+
import_node_crypto70 = require("node:crypto");
|
|
97934
98018
|
import_node_fs117 = __toESM(require("node:fs"), 1);
|
|
97935
98019
|
import_node_module13 = require("node:module");
|
|
97936
98020
|
import_node_path119 = __toESM(require("node:path"), 1);
|
|
@@ -101881,11 +101965,11 @@ extern "C" __attribute__((export_name("peach_fabric_component_names"))) const ch
|
|
|
101881
101965
|
}
|
|
101882
101966
|
`;
|
|
101883
101967
|
}
|
|
101884
|
-
var
|
|
101968
|
+
var import_node_crypto71, import_node_fs118, import_node_path120, TURBO_CORE_TARGET, TURBO_FMT_TARGET, TURBO_ENTRY_HEADER, TURBO_CORE_PUBLIC_HEADERS, REGISTRATION, CODEGEN_OBJC, UNIT, HEADER5, OBJC2, OBJC_TURBO, OBJC_BRIDGE, OBJC_REGISTERED, REACT_NATIVE_UNITS, REACT_NATIVE_INCLUDE_ROOTS, REACT_NATIVE_OBJC_UNITS, REACT_NATIVE_OBJC_VERSIONED_UNITS, REACT_NATIVE_HEADER_DIRS, REACT_NATIVE_BARE_HEADER_DIRS, DECLARED_MODULE_NAME, EXPORTED_MODULE, sha2564, podspecList, versionParts, iosOf, JS_CALL_INVOKER, FABRIC_HOST_INCLUDES, FABRIC_HOST_PAPER_INCLUDES, PAPER_UIKIT_BRIDGE_SWIFT;
|
|
101885
101969
|
var init_turbo_source = __esm({
|
|
101886
101970
|
"src/turbo-source.ts"() {
|
|
101887
101971
|
"use strict";
|
|
101888
|
-
|
|
101972
|
+
import_node_crypto71 = require("node:crypto");
|
|
101889
101973
|
import_node_fs118 = __toESM(require("node:fs"), 1);
|
|
101890
101974
|
import_node_path120 = __toESM(require("node:path"), 1);
|
|
101891
101975
|
init_cocoapods_trunk();
|
|
@@ -102013,7 +102097,7 @@ var init_turbo_source = __esm({
|
|
|
102013
102097
|
];
|
|
102014
102098
|
DECLARED_MODULE_NAME = /\bName\(\s*"(\w+)"\s*\)/g;
|
|
102015
102099
|
EXPORTED_MODULE = /\bRCT_(?:EXPORT_MODULE(?:_NO_LOAD)?|EXTERN_MODULE)\s*\(\s*(\w*)/g;
|
|
102016
|
-
sha2564 = (data) => (0,
|
|
102100
|
+
sha2564 = (data) => (0, import_node_crypto71.createHash)("sha256").update(data).digest("hex");
|
|
102017
102101
|
podspecList = podspecAttribute;
|
|
102018
102102
|
versionParts = (version2) => version2.split(/[.-]/).map((p) => Number(p) || 0);
|
|
102019
102103
|
iosOf = (member) => object7(member.ios) ? member.ios : null;
|
|
@@ -102813,7 +102897,7 @@ function retainInstalledReactNativeDeclarations(snapshot, options2, skipped) {
|
|
|
102813
102897
|
}
|
|
102814
102898
|
async function prepareTurboCompileInput(options2) {
|
|
102815
102899
|
await prepareTurboSourceDependencies(options2.reactNativeRoot);
|
|
102816
|
-
const key2 = (0,
|
|
102900
|
+
const key2 = (0, import_node_crypto72.createHash)("sha256").update(options2.providers.map(({ root }) => import_node_fs119.default.realpathSync(root)).join("\0")).update("\0").update(import_node_fs119.default.realpathSync(options2.moduleRoot)).digest("hex");
|
|
102817
102901
|
const scratch2 = import_node_path121.default.join(import_node_os25.default.tmpdir(), "peach-turbo-swift", key2);
|
|
102818
102902
|
import_node_fs119.default.mkdirSync(scratch2, { recursive: true });
|
|
102819
102903
|
const codegenDir = import_node_fs119.default.mkdtempSync(import_node_path121.default.join(scratch2, "codegen-"));
|
|
@@ -103014,11 +103098,11 @@ async function compileTurboModule(options2) {
|
|
|
103014
103098
|
collection
|
|
103015
103099
|
};
|
|
103016
103100
|
}
|
|
103017
|
-
var
|
|
103101
|
+
var import_node_crypto72, import_node_fs119, import_node_module14, import_node_os25, import_node_path121;
|
|
103018
103102
|
var init_turbo_compile = __esm({
|
|
103019
103103
|
"src/turbo-compile.ts"() {
|
|
103020
103104
|
"use strict";
|
|
103021
|
-
|
|
103105
|
+
import_node_crypto72 = require("node:crypto");
|
|
103022
103106
|
import_node_fs119 = __toESM(require("node:fs"), 1);
|
|
103023
103107
|
import_node_module14 = require("node:module");
|
|
103024
103108
|
import_node_os25 = __toESM(require("node:os"), 1);
|
|
@@ -103046,7 +103130,18 @@ async function buildReactNativeCore(project2, reactNativeRoot, mode, moduleRoot)
|
|
|
103046
103130
|
const entry = reactNativeCoreEntry(reactNativeRoot, moduleRoot, mode);
|
|
103047
103131
|
const directory2 = nativeEntryCache("react-native", entry.name, entry.key);
|
|
103048
103132
|
const work = import_node_path122.default.join(cacheDir(), "react-native-core-build", entry.key);
|
|
103049
|
-
|
|
103133
|
+
const {
|
|
103134
|
+
compiler: _compiler,
|
|
103135
|
+
distribution: _distribution,
|
|
103136
|
+
recipe: _recipe,
|
|
103137
|
+
...nativeInputs
|
|
103138
|
+
} = entry.inputs;
|
|
103139
|
+
const buildRoot = import_node_path122.default.join(
|
|
103140
|
+
cacheDir(),
|
|
103141
|
+
"react-native-core-products",
|
|
103142
|
+
nativeEntryKey(nativeInputs)
|
|
103143
|
+
);
|
|
103144
|
+
return withSwiftRootLock(`${buildRoot}.core-lock`, async () => {
|
|
103050
103145
|
if (import_node_fs120.default.existsSync(import_node_path122.default.join(directory2, "descriptor.json"))) return directory2;
|
|
103051
103146
|
const module2 = { root: moduleRoot, ...swiftModuleToolchain(moduleRoot) };
|
|
103052
103147
|
const floor = reactNativeCoreFloor(reactNativeRoot);
|
|
@@ -103083,17 +103178,6 @@ async function buildReactNativeCore(project2, reactNativeRoot, mode, moduleRoot)
|
|
|
103083
103178
|
}
|
|
103084
103179
|
const input = collectTurboCompileInput(producer, null, floor);
|
|
103085
103180
|
input.files[input.entry] = input.entry.endsWith(".swift") ? "@main struct PeachCoreProducer { static func main() {} }\n" : "int main() { return 0; }\n";
|
|
103086
|
-
const {
|
|
103087
|
-
compiler: _compiler,
|
|
103088
|
-
distribution: _distribution,
|
|
103089
|
-
recipe: _recipe,
|
|
103090
|
-
...nativeInputs
|
|
103091
|
-
} = entry.inputs;
|
|
103092
|
-
const buildRoot = import_node_path122.default.join(
|
|
103093
|
-
cacheDir(),
|
|
103094
|
-
"react-native-core-products",
|
|
103095
|
-
nativeEntryKey(nativeInputs)
|
|
103096
|
-
);
|
|
103097
103181
|
await compileSwiftProjectUnit(input, {
|
|
103098
103182
|
...module2,
|
|
103099
103183
|
moduleRoot: module2.root,
|
|
@@ -103235,8 +103319,8 @@ function reactNativeCoreEntry(reactNativeRoot, moduleRoot, mode) {
|
|
|
103235
103319
|
);
|
|
103236
103320
|
if (!isRecord(manifest) || typeof manifest.version !== "string")
|
|
103237
103321
|
throw new Error(`${reactNativeRoot}: react-native has no version`);
|
|
103238
|
-
const headers = (0,
|
|
103239
|
-
const sources = (0,
|
|
103322
|
+
const headers = (0, import_node_crypto73.createHash)("sha256");
|
|
103323
|
+
const sources = (0, import_node_crypto73.createHash)("sha256");
|
|
103240
103324
|
const walk4 = (relative4) => {
|
|
103241
103325
|
for (const file of import_node_fs121.default.readdirSync(import_node_path123.default.join(reactNativeRoot, relative4), { withFileTypes: true }).sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0)) {
|
|
103242
103326
|
if (file.name === "node_modules" || file.name.startsWith(".")) continue;
|
|
@@ -103264,7 +103348,7 @@ function reactNativeCoreEntry(reactNativeRoot, moduleRoot, mode) {
|
|
|
103264
103348
|
"react-native": manifest.version,
|
|
103265
103349
|
headers: headers.digest("hex"),
|
|
103266
103350
|
sources: sources.digest("hex"),
|
|
103267
|
-
compiler:
|
|
103351
|
+
compiler: swiftArchiveCompilerDigestValue(),
|
|
103268
103352
|
recipe,
|
|
103269
103353
|
mode,
|
|
103270
103354
|
"ios-deployment-target": reactNativeCoreFloor(reactNativeRoot),
|
|
@@ -103343,7 +103427,7 @@ function linkReactNativeCore(collection, core, moduleRoot) {
|
|
|
103343
103427
|
const file = import_node_path123.default.join(
|
|
103344
103428
|
cacheDir(),
|
|
103345
103429
|
"native-archives",
|
|
103346
|
-
`${(0,
|
|
103430
|
+
`${(0, import_node_crypto73.createHash)("sha256").update(data).digest("hex")}.a`
|
|
103347
103431
|
);
|
|
103348
103432
|
import_node_fs121.default.mkdirSync(import_node_path123.default.dirname(file), { recursive: true });
|
|
103349
103433
|
if (!import_node_fs121.default.existsSync(file)) import_node_fs121.default.writeFileSync(file, Buffer.from(data, "base64"));
|
|
@@ -103353,11 +103437,11 @@ function linkReactNativeCore(collection, core, moduleRoot) {
|
|
|
103353
103437
|
}
|
|
103354
103438
|
}
|
|
103355
103439
|
}
|
|
103356
|
-
var
|
|
103440
|
+
var import_node_crypto73, import_node_fs121, import_node_module15, import_node_path123, import_node_util16, recipe, strings3, building;
|
|
103357
103441
|
var init_react_native_core = __esm({
|
|
103358
103442
|
"src/react-native-core.ts"() {
|
|
103359
103443
|
"use strict";
|
|
103360
|
-
|
|
103444
|
+
import_node_crypto73 = require("node:crypto");
|
|
103361
103445
|
import_node_fs121 = __toESM(require("node:fs"), 1);
|
|
103362
103446
|
import_node_module15 = require("node:module");
|
|
103363
103447
|
import_node_path123 = __toESM(require("node:path"), 1);
|
|
@@ -103368,10 +103452,11 @@ var init_react_native_core = __esm({
|
|
|
103368
103452
|
init_native_static_libraries();
|
|
103369
103453
|
init_react_native_core_digest();
|
|
103370
103454
|
init_swift_compile();
|
|
103455
|
+
init_swift_compiler_digest();
|
|
103371
103456
|
init_swift_distribution();
|
|
103372
103457
|
init_swift_package();
|
|
103373
103458
|
init_swiftContract();
|
|
103374
|
-
recipe = true ? "
|
|
103459
|
+
recipe = true ? "737e4942681b979bd94d697440cd3fc71975f9bb732444bd4e08d57dd493e833" : reactNativeCoreDigest(__sootsim_import_meta_dirname);
|
|
103375
103460
|
strings3 = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
103376
103461
|
building = /* @__PURE__ */ new Map();
|
|
103377
103462
|
}
|
|
@@ -103387,11 +103472,11 @@ async function trunkSpecification(lockFile, root, version2, checksum) {
|
|
|
103387
103472
|
"specifications",
|
|
103388
103473
|
`${checksum}.json`
|
|
103389
103474
|
);
|
|
103390
|
-
const sha1 = (value) => (0,
|
|
103475
|
+
const sha1 = (value) => (0, import_node_crypto74.createHash)("sha1").update(value).digest("hex");
|
|
103391
103476
|
let text7;
|
|
103392
103477
|
if (import_node_fs122.default.existsSync(file)) text7 = import_node_fs122.default.readFileSync(file, "utf8");
|
|
103393
103478
|
else {
|
|
103394
|
-
const shard2 = (0,
|
|
103479
|
+
const shard2 = (0, import_node_crypto74.createHash)("md5").update(root).digest("hex").slice(0, 3).split("").join("/");
|
|
103395
103480
|
const specPath = `Specs/${shard2}/${root}/${version2}/${root}.podspec.json`;
|
|
103396
103481
|
const response = await fetch(`https://cdn.cocoapods.org/${specPath}`);
|
|
103397
103482
|
if (!response.ok)
|
|
@@ -103520,7 +103605,7 @@ async function collectSwiftSourcePods(lockFile, modules, moduleRoot, headerModul
|
|
|
103520
103605
|
"end",
|
|
103521
103606
|
""
|
|
103522
103607
|
].join("\n");
|
|
103523
|
-
const key2 = (0,
|
|
103608
|
+
const key2 = (0, import_node_crypto74.createHash)("sha256").update(project).update(podfile).update(JSON.stringify([...selected].sort(([a], [b]) => a.localeCompare(b)))).update(
|
|
103524
103609
|
JSON.stringify(
|
|
103525
103610
|
Object.entries(specificationChecksums).sort(([a], [b]) => a.localeCompare(b))
|
|
103526
103611
|
)
|
|
@@ -103589,11 +103674,11 @@ async function collectSwiftSourcePods(lockFile, modules, moduleRoot, headerModul
|
|
|
103589
103674
|
);
|
|
103590
103675
|
});
|
|
103591
103676
|
}
|
|
103592
|
-
var
|
|
103677
|
+
var import_node_crypto74, import_node_fs122, import_node_path124, APP, record4, project, podModuleName;
|
|
103593
103678
|
var init_swift_source_pods = __esm({
|
|
103594
103679
|
"src/swift-source-pods.ts"() {
|
|
103595
103680
|
"use strict";
|
|
103596
|
-
|
|
103681
|
+
import_node_crypto74 = require("node:crypto");
|
|
103597
103682
|
import_node_fs122 = __toESM(require("node:fs"), 1);
|
|
103598
103683
|
import_node_path124 = __toESM(require("node:path"), 1);
|
|
103599
103684
|
init_browser();
|
|
@@ -104270,7 +104355,7 @@ async function prepareNitroCompileInput(options2) {
|
|
|
104270
104355
|
input.libraries ??= {};
|
|
104271
104356
|
input.libraries[nitroProviderTarget({ name: name3 })] = library;
|
|
104272
104357
|
}
|
|
104273
|
-
const key2 = (0,
|
|
104358
|
+
const key2 = (0, import_node_crypto75.createHash)("sha256").update(
|
|
104274
104359
|
collection.providers.map(({ root, hybridObjects }) => `${root}\0${hybridObjects.join(",")}`).join("\0")
|
|
104275
104360
|
).update("\0").update(import_node_fs123.default.realpathSync(options2.moduleRoot)).update("\0").update(options2.configuration).digest("hex");
|
|
104276
104361
|
const packagePath = import_node_path125.default.join(import_node_os26.default.tmpdir(), "peach-nitro-swift", key2, `p${process.pid}`);
|
|
@@ -104327,11 +104412,11 @@ function nitrogenGeneratedSources(podDirectory) {
|
|
|
104327
104412
|
...sources(import_node_path125.default.join(generated, "ios"), /\.(h|hpp|c|cpp|mm|swift)$/)
|
|
104328
104413
|
];
|
|
104329
104414
|
}
|
|
104330
|
-
var
|
|
104415
|
+
var import_node_crypto75, import_node_fs123, import_node_os26, import_node_path125, BUNDLED_CXX_NAMESPACES, REACT_INCLUDE_PATTERN, REACT_LINKING_PATTERN, REACT_VERSION_PATTERN, RN_HEADER_DIR_MAP, RN_COMMON_ROOTS;
|
|
104331
104416
|
var init_nitro_compile = __esm({
|
|
104332
104417
|
"src/nitro-compile.ts"() {
|
|
104333
104418
|
"use strict";
|
|
104334
|
-
|
|
104419
|
+
import_node_crypto75 = require("node:crypto");
|
|
104335
104420
|
import_node_fs123 = __toESM(require("node:fs"), 1);
|
|
104336
104421
|
import_node_os26 = __toESM(require("node:os"), 1);
|
|
104337
104422
|
import_node_path125 = __toESM(require("node:path"), 1);
|
|
@@ -104408,11 +104493,11 @@ var init_nitro_compile = __esm({
|
|
|
104408
104493
|
});
|
|
104409
104494
|
|
|
104410
104495
|
// src/nitro-compiler-digest.ts
|
|
104411
|
-
var
|
|
104496
|
+
var import_node_crypto76, import_node_fs124, import_node_path126;
|
|
104412
104497
|
var init_nitro_compiler_digest = __esm({
|
|
104413
104498
|
"src/nitro-compiler-digest.ts"() {
|
|
104414
104499
|
"use strict";
|
|
104415
|
-
|
|
104500
|
+
import_node_crypto76 = require("node:crypto");
|
|
104416
104501
|
import_node_fs124 = require("node:fs");
|
|
104417
104502
|
import_node_path126 = __toESM(require("node:path"), 1);
|
|
104418
104503
|
init_swift_compiler_digest();
|
|
@@ -104433,7 +104518,7 @@ function hashPackageTree(root, options2) {
|
|
|
104433
104518
|
}
|
|
104434
104519
|
};
|
|
104435
104520
|
walk4(root, "");
|
|
104436
|
-
const hash = (0,
|
|
104521
|
+
const hash = (0, import_node_crypto77.createHash)("sha256");
|
|
104437
104522
|
return (async () => {
|
|
104438
104523
|
for (let start = 0; start < files2.length; start += READ_AHEAD) {
|
|
104439
104524
|
const batch = files2.slice(start, start + READ_AHEAD);
|
|
@@ -104448,11 +104533,11 @@ function packageTreeDigest(root) {
|
|
|
104448
104533
|
compareNames: (left, right) => left.localeCompare(right)
|
|
104449
104534
|
});
|
|
104450
104535
|
}
|
|
104451
|
-
var
|
|
104536
|
+
var import_node_crypto77, import_node_fs125, import_promises11, import_node_path127, READ_AHEAD;
|
|
104452
104537
|
var init_package_tree_digest = __esm({
|
|
104453
104538
|
"src/package-tree-digest.ts"() {
|
|
104454
104539
|
"use strict";
|
|
104455
|
-
|
|
104540
|
+
import_node_crypto77 = require("node:crypto");
|
|
104456
104541
|
import_node_fs125 = require("node:fs");
|
|
104457
104542
|
import_promises11 = require("node:fs/promises");
|
|
104458
104543
|
import_node_path127 = require("node:path");
|
|
@@ -104591,7 +104676,7 @@ var init_nitro_superset = __esm({
|
|
|
104591
104676
|
init_nitroContract();
|
|
104592
104677
|
init_swift_standin_digest();
|
|
104593
104678
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
104594
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
104679
|
+
NITRO_COMPILER_DIGEST = true ? "bdc0f5dd61f31a5b6f5bba3db67fc29584077dfb64bd237228a11b91b9ab2730" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
104595
104680
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
104596
104681
|
nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
|
|
104597
104682
|
published = /* @__PURE__ */ new Map();
|
|
@@ -105364,7 +105449,7 @@ async function compilePreparedOneSDKApp(appRoot, preparedRoot, origin, moduleRoo
|
|
|
105364
105449
|
const packagePath = import_node_path130.default.join(
|
|
105365
105450
|
swiftCacheDir(),
|
|
105366
105451
|
"peach-one-sdk-swift",
|
|
105367
|
-
(0,
|
|
105452
|
+
(0, import_node_crypto78.createHash)("sha256").update(import_node_fs128.default.realpathSync(appRoot)).digest("hex").slice(0, 16),
|
|
105368
105453
|
"sdk"
|
|
105369
105454
|
);
|
|
105370
105455
|
const bindingFlags = optimize ? '["-suppress-warnings"]' : '["-suppress-warnings", "-Onone", "-no-whole-module-optimization"]';
|
|
@@ -105411,11 +105496,11 @@ async function buildOneSDKBundle(appRoot) {
|
|
|
105411
105496
|
assets: await compiledModuleAssets(compiled.artifact)
|
|
105412
105497
|
};
|
|
105413
105498
|
}
|
|
105414
|
-
var
|
|
105499
|
+
var import_node_crypto78, import_node_fs128, import_node_path130, ONE_SDK_ROUTE, ONE_SDK_BINDING_SHARDS, ONE_SDK_BINDING_SHARD_MIN_BYTES, handleOneSDKRequest;
|
|
105415
105500
|
var init_one_sdk_bundle = __esm({
|
|
105416
105501
|
"src/one-sdk-bundle.ts"() {
|
|
105417
105502
|
"use strict";
|
|
105418
|
-
|
|
105503
|
+
import_node_crypto78 = require("node:crypto");
|
|
105419
105504
|
import_node_fs128 = __toESM(require("node:fs"), 1);
|
|
105420
105505
|
import_node_path130 = __toESM(require("node:path"), 1);
|
|
105421
105506
|
init_expo_native_workspace();
|
|
@@ -105459,13 +105544,13 @@ var init_expo_eager_seam_contract = __esm({
|
|
|
105459
105544
|
|
|
105460
105545
|
// src/expo-native-compiler-digest.ts
|
|
105461
105546
|
function expoNativeCompilerDigestValue() {
|
|
105462
|
-
return true ? "
|
|
105547
|
+
return true ? "e9c127a6fe6b767d364983920ce71499b88057f966ac63fcb102ddd3ae4209fd" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
105463
105548
|
}
|
|
105464
|
-
var
|
|
105549
|
+
var import_node_crypto79;
|
|
105465
105550
|
var init_expo_native_compiler_digest = __esm({
|
|
105466
105551
|
"src/expo-native-compiler-digest.ts"() {
|
|
105467
105552
|
"use strict";
|
|
105468
|
-
|
|
105553
|
+
import_node_crypto79 = require("node:crypto");
|
|
105469
105554
|
init_react_native_core_digest();
|
|
105470
105555
|
init_swift_compiler_digest();
|
|
105471
105556
|
init_swift_standin_digest();
|
|
@@ -105474,7 +105559,7 @@ var init_expo_native_compiler_digest = __esm({
|
|
|
105474
105559
|
|
|
105475
105560
|
// src/expo-discovery-cache.ts
|
|
105476
105561
|
function peachPin() {
|
|
105477
|
-
return (0,
|
|
105562
|
+
return (0, import_node_crypto80.createHash)("sha256").update(
|
|
105478
105563
|
`${FORMAT}\0${expoNativeCompilerDigestValue()}\0${swiftNativePin().distribution.id}\0`
|
|
105479
105564
|
).update(JSON.stringify([...EXPO_EAGER_NATIVE_VIEWS])).update(JSON.stringify([...peachAnsweredNativePackages()].sort())).digest("hex");
|
|
105480
105565
|
}
|
|
@@ -105488,7 +105573,7 @@ function stable(value) {
|
|
|
105488
105573
|
}
|
|
105489
105574
|
async function expoDiscoveryKey(options2) {
|
|
105490
105575
|
const { root, hash } = await hashExpoWorkspace(options2.appRoot, options2.signal);
|
|
105491
|
-
const key2 = (0,
|
|
105576
|
+
const key2 = (0, import_node_crypto80.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");
|
|
105492
105577
|
return { key: key2, root };
|
|
105493
105578
|
}
|
|
105494
105579
|
function expoDiscoveryCacheDir() {
|
|
@@ -105559,7 +105644,7 @@ function readExpoDiscovery(key2) {
|
|
|
105559
105644
|
if (typeof parsed2.archive !== "string" || !isDigest(parsed2.archive)) return void 0;
|
|
105560
105645
|
const archive = import_node_path131.default.join(expoDiscoveryCacheDir(), "blobs", `${parsed2.archive}.zst`);
|
|
105561
105646
|
const bytes = import_node_fs129.default.readFileSync(archive);
|
|
105562
|
-
if ((0,
|
|
105647
|
+
if ((0, import_node_crypto80.createHash)("sha256").update(bytes).digest("hex") !== parsed2.archive)
|
|
105563
105648
|
return void 0;
|
|
105564
105649
|
const bodies = (0, import_node_zlib8.zstdDecompressSync)(bytes);
|
|
105565
105650
|
const decoded = /* @__PURE__ */ new Map();
|
|
@@ -105633,7 +105718,7 @@ function stampedFileHash(file) {
|
|
|
105633
105718
|
const stamp = [stat.dev, stat.ino, stat.size, stat.mtimeNs, stat.ctimeNs].join(":");
|
|
105634
105719
|
const cached2 = fileHashes.get(file);
|
|
105635
105720
|
if (cached2?.stamp === stamp) return cached2.checksum;
|
|
105636
|
-
const checksum = (0,
|
|
105721
|
+
const checksum = (0, import_node_crypto80.createHash)("sha256").update(import_node_fs129.default.readFileSync(file)).digest("hex");
|
|
105637
105722
|
fileHashes.set(file, { stamp, checksum });
|
|
105638
105723
|
fileHashesChanged = true;
|
|
105639
105724
|
return checksum;
|
|
@@ -105642,7 +105727,7 @@ function saveFileHashes() {
|
|
|
105642
105727
|
if (!fileHashesChanged) return;
|
|
105643
105728
|
fileHashesChanged = false;
|
|
105644
105729
|
const target = fileHashesPath();
|
|
105645
|
-
const temporary = `${target}.${process.pid}.${(0,
|
|
105730
|
+
const temporary = `${target}.${process.pid}.${(0, import_node_crypto80.randomUUID)()}.tmp`;
|
|
105646
105731
|
try {
|
|
105647
105732
|
import_node_fs129.default.mkdirSync(import_node_path131.default.dirname(target), { recursive: true });
|
|
105648
105733
|
import_node_fs129.default.writeFileSync(
|
|
@@ -105697,7 +105782,7 @@ function frameworkDigest(directory2, signal) {
|
|
|
105697
105782
|
if (target !== root && !target.startsWith(`${root}${import_node_path131.default.sep}`))
|
|
105698
105783
|
throw new Error(`framework link escapes its tree: ${relative4}`);
|
|
105699
105784
|
}
|
|
105700
|
-
return (0,
|
|
105785
|
+
return (0, import_node_crypto80.createHash)("sha256").update(JSON.stringify([...entries2])).digest("hex");
|
|
105701
105786
|
}
|
|
105702
105787
|
function rewritePreparedPaths(options2) {
|
|
105703
105788
|
const { units, sourceRoot, preparedRoot, signal } = options2;
|
|
@@ -105718,7 +105803,7 @@ function rewritePreparedPaths(options2) {
|
|
|
105718
105803
|
return null;
|
|
105719
105804
|
}
|
|
105720
105805
|
if (!preparedBytes.equals(sourceBytes)) return null;
|
|
105721
|
-
dependencies[sourceFile] = (0,
|
|
105806
|
+
dependencies[sourceFile] = (0, import_node_crypto80.createHash)("sha256").update(sourceBytes).digest("hex");
|
|
105722
105807
|
verifiedFiles.set(preparedFile, sourceFile);
|
|
105723
105808
|
return sourceFile;
|
|
105724
105809
|
};
|
|
@@ -105795,7 +105880,7 @@ function rewritePreparedPaths(options2) {
|
|
|
105795
105880
|
portableDir = import_node_path131.default.join(parent, import_node_path131.default.basename(dir));
|
|
105796
105881
|
if (!import_node_fs129.default.existsSync(portableDir)) {
|
|
105797
105882
|
import_node_fs129.default.mkdirSync(parent, { recursive: true });
|
|
105798
|
-
const tmp = import_node_path131.default.join(parent, `.${process.pid}.${(0,
|
|
105883
|
+
const tmp = import_node_path131.default.join(parent, `.${process.pid}.${(0, import_node_crypto80.randomUUID)()}.tmp`);
|
|
105799
105884
|
try {
|
|
105800
105885
|
import_node_fs129.default.cpSync(dir, tmp, { recursive: true, verbatimSymlinks: true });
|
|
105801
105886
|
if (frameworkDigest(tmp, signal) !== preparedDigest)
|
|
@@ -105824,7 +105909,7 @@ function writeExpoDiscovery(options2) {
|
|
|
105824
105909
|
try {
|
|
105825
105910
|
const dir = expoDiscoveryCacheDir();
|
|
105826
105911
|
import_node_fs129.default.mkdirSync(dir, { recursive: true });
|
|
105827
|
-
const tmp = import_node_path131.default.join(dir, `.${options2.key}.${process.pid}.${(0,
|
|
105912
|
+
const tmp = import_node_path131.default.join(dir, `.${options2.key}.${process.pid}.${(0, import_node_crypto80.randomUUID)()}.tmp`);
|
|
105828
105913
|
if (options2.units === null) {
|
|
105829
105914
|
import_node_fs129.default.writeFileSync(
|
|
105830
105915
|
tmp,
|
|
@@ -105887,8 +105972,8 @@ function writeExpoDiscovery(options2) {
|
|
|
105887
105972
|
}
|
|
105888
105973
|
);
|
|
105889
105974
|
const contents2 = (0, import_node_zlib8.zstdCompressSync)(Buffer.concat(chunks, size2));
|
|
105890
|
-
const archive = (0,
|
|
105891
|
-
const temporary = import_node_path131.default.join(blobDir, "." + (0,
|
|
105975
|
+
const archive = (0, import_node_crypto80.createHash)("sha256").update(contents2).digest("hex");
|
|
105976
|
+
const temporary = import_node_path131.default.join(blobDir, "." + (0, import_node_crypto80.randomUUID)() + ".tmp");
|
|
105892
105977
|
try {
|
|
105893
105978
|
import_node_fs129.default.writeFileSync(temporary, contents2);
|
|
105894
105979
|
import_node_fs129.default.renameSync(temporary, import_node_path131.default.join(blobDir, `${archive}.zst`));
|
|
@@ -105915,11 +106000,11 @@ function writeExpoDiscovery(options2) {
|
|
|
105915
106000
|
return error instanceof Error ? error.message : String(error);
|
|
105916
106001
|
}
|
|
105917
106002
|
}
|
|
105918
|
-
var
|
|
106003
|
+
var import_node_crypto80, import_node_fs129, import_node_path131, import_node_zlib8, FORMAT, EXPIRY_MS, ORPHAN_TEMPORARY_MS, strings4, stringRecord, isDigest, digestRecord, isBodyOffset, isBodyOffsets, sourceLocationLine, fileHashes, fileHashesLoaded, fileHashesChanged, MISSING_TREE;
|
|
105919
106004
|
var init_expo_discovery_cache = __esm({
|
|
105920
106005
|
"src/expo-discovery-cache.ts"() {
|
|
105921
106006
|
"use strict";
|
|
105922
|
-
|
|
106007
|
+
import_node_crypto80 = require("node:crypto");
|
|
105923
106008
|
import_node_fs129 = __toESM(require("node:fs"), 1);
|
|
105924
106009
|
import_node_path131 = __toESM(require("node:path"), 1);
|
|
105925
106010
|
import_node_zlib8 = require("node:zlib");
|
|
@@ -106123,7 +106208,7 @@ async function expoNativeInputs(appRoot) {
|
|
|
106123
106208
|
"swift-pin": JSON.stringify(swiftNativePin()),
|
|
106124
106209
|
answered: JSON.stringify([...peachAnsweredNativePackages()].sort()),
|
|
106125
106210
|
"pods-environment": JSON.stringify(reactNativePodsEnvironment()),
|
|
106126
|
-
fingerprint: (0,
|
|
106211
|
+
fingerprint: (0, import_node_crypto81.createHash)("sha256").update(lines.sort().join("\n")).digest("hex")
|
|
106127
106212
|
},
|
|
106128
106213
|
packages
|
|
106129
106214
|
};
|
|
@@ -106229,7 +106314,7 @@ async function prebuiltAppTarget(appRoot, signal, dependencies = "lockfile") {
|
|
|
106229
106314
|
}
|
|
106230
106315
|
function servedExpoSwift(appRoot, entry, app) {
|
|
106231
106316
|
if (!entry.expoSwift) return null;
|
|
106232
|
-
const rootId = `${(0,
|
|
106317
|
+
const rootId = `${(0, import_node_crypto81.createHash)("sha256").update(import_node_fs131.default.realpathSync(appRoot)).digest("hex")}/Expo`;
|
|
106233
106318
|
if (app.infoPlist === null) throw new Error("the prebuilt app target has no Info.plist");
|
|
106234
106319
|
const installed = installedInfoPlist(app.infoPlist, entry.infoPlist);
|
|
106235
106320
|
const infoPlist2 = Buffer.from(installed).toString("base64");
|
|
@@ -106257,11 +106342,11 @@ async function prebuiltExpoSwiftResult(appRoot, entry, signal) {
|
|
|
106257
106342
|
await prebuiltAppTarget(appRoot, signal, "installed")
|
|
106258
106343
|
);
|
|
106259
106344
|
}
|
|
106260
|
-
var
|
|
106345
|
+
var import_node_crypto81, import_node_fs131, import_node_module18, import_node_path133, import_node_util17, EXPO_NATIVE_ENTRY_NAME, IDENTITY_SOURCE_SKIPS, expoNativeEntryUrl, isStringRecord, isPlistArray, published2, lookups, answers;
|
|
106261
106346
|
var init_expo_native_prebuilt = __esm({
|
|
106262
106347
|
"src/expo-native-prebuilt.ts"() {
|
|
106263
106348
|
"use strict";
|
|
106264
|
-
|
|
106349
|
+
import_node_crypto81 = require("node:crypto");
|
|
106265
106350
|
import_node_fs131 = __toESM(require("node:fs"), 1);
|
|
106266
106351
|
import_node_module18 = require("node:module");
|
|
106267
106352
|
import_node_path133 = __toESM(require("node:path"), 1);
|
|
@@ -106875,7 +106960,7 @@ function exportedNames(moduleRoot, name3) {
|
|
|
106875
106960
|
const modules = import_node_path135.default.join(moduleRoot, "modules");
|
|
106876
106961
|
const module2 = import_node_path135.default.join(modules, `${name3}.swiftmodule`);
|
|
106877
106962
|
if (!import_node_fs133.default.existsSync(module2)) return /* @__PURE__ */ new Set();
|
|
106878
|
-
const key2 = (0,
|
|
106963
|
+
const key2 = (0, import_node_crypto82.createHash)("sha256").update(import_node_fs133.default.readFileSync(module2)).digest("hex");
|
|
106879
106964
|
const directory2 = import_node_path135.default.join(swiftCacheDir(), "swift-public-names");
|
|
106880
106965
|
const receipt = import_node_path135.default.join(directory2, `${key2}.json`);
|
|
106881
106966
|
if (import_node_fs133.default.existsSync(receipt)) {
|
|
@@ -106958,12 +107043,12 @@ function clangTypeOwnership(moduleRoot, module2) {
|
|
|
106958
107043
|
}
|
|
106959
107044
|
);
|
|
106960
107045
|
}
|
|
106961
|
-
var import_node_child_process64,
|
|
107046
|
+
var import_node_child_process64, import_node_crypto82, import_node_fs133, import_node_path135, blockTypedef, enumTypedef, enumConstant, swiftPrivate;
|
|
106962
107047
|
var init_swift_clang_type_ownership = __esm({
|
|
106963
107048
|
"src/swift-clang-type-ownership.ts"() {
|
|
106964
107049
|
"use strict";
|
|
106965
107050
|
import_node_child_process64 = require("node:child_process");
|
|
106966
|
-
|
|
107051
|
+
import_node_crypto82 = require("node:crypto");
|
|
106967
107052
|
import_node_fs133 = __toESM(require("node:fs"), 1);
|
|
106968
107053
|
import_node_path135 = __toESM(require("node:path"), 1);
|
|
106969
107054
|
init_is_record();
|
|
@@ -108606,7 +108691,7 @@ function targetSettings2(units) {
|
|
|
108606
108691
|
}
|
|
108607
108692
|
function oneSDKStamp(oneSDK) {
|
|
108608
108693
|
if (!oneSDK) return "";
|
|
108609
|
-
const hash = (0,
|
|
108694
|
+
const hash = (0, import_node_crypto83.createHash)("sha256");
|
|
108610
108695
|
for (const files2 of [oneSDK.targets, oneSDK.entry])
|
|
108611
108696
|
for (const [name3, source] of [...files2].sort(([a], [b]) => a.localeCompare(b)))
|
|
108612
108697
|
hash.update(`${name3}\0${source}\0`);
|
|
@@ -108657,7 +108742,7 @@ ${bridgeModules.length ? "import React\n" : ""}${oneSDK ? "import One\nimport On
|
|
|
108657
108742
|
`;
|
|
108658
108743
|
}
|
|
108659
108744
|
function expoSwiftPreparedKey(base2, units, reactProviderStamp) {
|
|
108660
|
-
const hash = (0,
|
|
108745
|
+
const hash = (0, import_node_crypto83.createHash)("sha256");
|
|
108661
108746
|
hash.update(base2);
|
|
108662
108747
|
hash.update(reactProviderStamp);
|
|
108663
108748
|
for (const unit2 of units) {
|
|
@@ -109031,8 +109116,8 @@ async function compileExpoSwiftModulesTraced(root, base2, publishArtifact, optio
|
|
|
109031
109116
|
}
|
|
109032
109117
|
return provider;
|
|
109033
109118
|
})() : void 0;
|
|
109034
|
-
const reactProviderStamp = reactProvider ? (0,
|
|
109035
|
-
const key2 = (0,
|
|
109119
|
+
const reactProviderStamp = reactProvider ? (0, import_node_crypto83.createHash)("sha256").update(JSON.stringify(reactProvider)).digest("hex") : "";
|
|
109120
|
+
const key2 = (0, import_node_crypto83.createHash)("sha256").update(import_node_fs134.default.realpathSync(root)).digest("hex");
|
|
109036
109121
|
const unitContentStamp = (unit2) => sourceContentStamp(expoSwiftPackage(key2, unit2.moduleId), module2.root) + (unit2.reactNativeProvider ? `:${reactProviderStamp}` : "");
|
|
109037
109122
|
const failures = /* @__PURE__ */ new Map();
|
|
109038
109123
|
const failureRecords = /* @__PURE__ */ new Map();
|
|
@@ -109374,13 +109459,13 @@ async function compileExpoSwiftModulesTraced(root, base2, publishArtifact, optio
|
|
|
109374
109459
|
throw failure2;
|
|
109375
109460
|
}
|
|
109376
109461
|
}
|
|
109377
|
-
var import_node_async_hooks3, import_node_child_process65,
|
|
109462
|
+
var import_node_async_hooks3, import_node_child_process65, import_node_crypto83, import_node_fs134, import_node_module20, import_node_os28, import_node_path136, 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;
|
|
109378
109463
|
var init_expo_swift_host = __esm({
|
|
109379
109464
|
"src/expo-swift-host.ts"() {
|
|
109380
109465
|
"use strict";
|
|
109381
109466
|
import_node_async_hooks3 = require("node:async_hooks");
|
|
109382
109467
|
import_node_child_process65 = require("node:child_process");
|
|
109383
|
-
|
|
109468
|
+
import_node_crypto83 = require("node:crypto");
|
|
109384
109469
|
import_node_fs134 = __toESM(require("node:fs"), 1);
|
|
109385
109470
|
import_node_module20 = require("node:module");
|
|
109386
109471
|
import_node_os28 = __toESM(require("node:os"), 1);
|
|
@@ -109708,7 +109793,7 @@ async function resolveAndroidGradleSources(request) {
|
|
|
109708
109793
|
const parent = import_node_path139.default.join(kotlinHome(), "gradle-sources");
|
|
109709
109794
|
import_node_fs136.default.mkdirSync(parent, { recursive: true });
|
|
109710
109795
|
const work = import_node_fs136.default.mkdtempSync(import_node_path139.default.join(parent, ".query-"));
|
|
109711
|
-
const task = `peachAndroidSources${(0,
|
|
109796
|
+
const task = `peachAndroidSources${(0, import_node_crypto84.randomBytes)(8).toString("hex")}`;
|
|
109712
109797
|
const script = import_node_path139.default.join(work, "sources.gradle");
|
|
109713
109798
|
const encoded = Buffer.from(
|
|
109714
109799
|
JSON.stringify({
|
|
@@ -109860,12 +109945,12 @@ function readDependencySources(value) {
|
|
|
109860
109945
|
};
|
|
109861
109946
|
});
|
|
109862
109947
|
}
|
|
109863
|
-
var import_node_child_process66,
|
|
109948
|
+
var import_node_child_process66, import_node_crypto84, import_node_fs136, import_node_path139, import_node_util19, run12, modelQuery;
|
|
109864
109949
|
var init_android_gradle_sources = __esm({
|
|
109865
109950
|
"src/android-gradle-sources.ts"() {
|
|
109866
109951
|
"use strict";
|
|
109867
109952
|
import_node_child_process66 = require("node:child_process");
|
|
109868
|
-
|
|
109953
|
+
import_node_crypto84 = require("node:crypto");
|
|
109869
109954
|
import_node_fs136 = __toESM(require("node:fs"), 1);
|
|
109870
109955
|
import_node_path139 = __toESM(require("node:path"), 1);
|
|
109871
109956
|
import_node_util19 = require("node:util");
|
|
@@ -110253,7 +110338,7 @@ var init_android_bridge_packages = __esm({
|
|
|
110253
110338
|
|
|
110254
110339
|
// src/java-module-abi.ts
|
|
110255
110340
|
async function readJavaModuleSpecs(files2, sdkRoot, toolchain) {
|
|
110256
|
-
const digest3 = (0,
|
|
110341
|
+
const digest3 = (0, import_node_crypto85.createHash)("sha256");
|
|
110257
110342
|
const parent = import_node_path141.default.join(kotlinHome(), "java-specs");
|
|
110258
110343
|
import_node_fs138.default.mkdirSync(parent, { recursive: true });
|
|
110259
110344
|
const work = import_node_fs138.default.mkdtempSync(import_node_path141.default.join(parent, ".read-"));
|
|
@@ -110350,12 +110435,12 @@ async function compileJavaModuleAbi(input) {
|
|
|
110350
110435
|
);
|
|
110351
110436
|
return library;
|
|
110352
110437
|
}
|
|
110353
|
-
var import_node_child_process67,
|
|
110438
|
+
var import_node_child_process67, import_node_crypto85, import_node_fs138, import_node_path141, import_node_util20, run13, JAVA_BINDINGS_INITIALIZER;
|
|
110354
110439
|
var init_java_module_abi = __esm({
|
|
110355
110440
|
"src/java-module-abi.ts"() {
|
|
110356
110441
|
"use strict";
|
|
110357
110442
|
import_node_child_process67 = require("node:child_process");
|
|
110358
|
-
|
|
110443
|
+
import_node_crypto85 = require("node:crypto");
|
|
110359
110444
|
import_node_fs138 = __toESM(require("node:fs"), 1);
|
|
110360
110445
|
import_node_path141 = __toESM(require("node:path"), 1);
|
|
110361
110446
|
import_node_util20 = require("node:util");
|
|
@@ -110463,13 +110548,13 @@ function verifyKotlinSdkDirectory(root, compiler) {
|
|
|
110463
110548
|
if (!stat.isFile() || stat.nlink !== 1)
|
|
110464
110549
|
throw new Error(`Kotlin SDK binary is not a regular file: ${name3}`);
|
|
110465
110550
|
const bytes = import_node_fs139.default.readFileSync(target);
|
|
110466
|
-
if (bytes.length !== expected.bytes || (0,
|
|
110551
|
+
if (bytes.length !== expected.bytes || (0, import_node_crypto86.createHash)("sha256").update(bytes).digest("hex") !== expected.sha256)
|
|
110467
110552
|
throw new Error(`Kotlin SDK binary differs from its manifest: ${name3}`);
|
|
110468
110553
|
}
|
|
110469
110554
|
return manifest;
|
|
110470
110555
|
}
|
|
110471
110556
|
async function installKotlinSdkArchive(archive, compiler) {
|
|
110472
|
-
const sha2565 = (0,
|
|
110557
|
+
const sha2565 = (0, import_node_crypto86.createHash)("sha256").update(archive).digest("hex");
|
|
110473
110558
|
const parent = import_node_path142.default.join(kotlinHome(), "sdk");
|
|
110474
110559
|
const root = import_node_path142.default.join(parent, sha2565);
|
|
110475
110560
|
if (import_node_fs139.default.existsSync(root))
|
|
@@ -110498,12 +110583,12 @@ async function installKotlinSdkArchive(archive, compiler) {
|
|
|
110498
110583
|
import_node_fs139.default.rmSync(work, { recursive: true, force: true });
|
|
110499
110584
|
}
|
|
110500
110585
|
}
|
|
110501
|
-
var import_node_child_process68,
|
|
110586
|
+
var import_node_child_process68, import_node_crypto86, import_node_fs139, import_node_path142, import_node_util21, run14;
|
|
110502
110587
|
var init_kotlin_sdk = __esm({
|
|
110503
110588
|
"src/kotlin-sdk.ts"() {
|
|
110504
110589
|
"use strict";
|
|
110505
110590
|
import_node_child_process68 = require("node:child_process");
|
|
110506
|
-
|
|
110591
|
+
import_node_crypto86 = require("node:crypto");
|
|
110507
110592
|
import_node_fs139 = __toESM(require("node:fs"), 1);
|
|
110508
110593
|
import_node_path142 = __toESM(require("node:path"), 1);
|
|
110509
110594
|
import_node_util21 = require("node:util");
|
|
@@ -110606,7 +110691,7 @@ function peachKotlinModuleRoot() {
|
|
|
110606
110691
|
if (!IS_STANDALONE) return import_node_path144.default.join(peachsimPackageRoot(), "kotlin");
|
|
110607
110692
|
if (installedRoot) return installedRoot;
|
|
110608
110693
|
const files2 = JSON.parse(__PEACH_BUNDLED_KOTLIN__);
|
|
110609
|
-
const digest3 = (0,
|
|
110694
|
+
const digest3 = (0, import_node_crypto87.createHash)("sha256").update(__PEACH_BUNDLED_KOTLIN__).digest("hex");
|
|
110610
110695
|
const parent = import_node_path144.default.join(rnxHomeDir(), "kotlin", "modules");
|
|
110611
110696
|
const root = import_node_path144.default.join(parent, digest3);
|
|
110612
110697
|
import_node_fs141.default.mkdirSync(parent, { recursive: true });
|
|
@@ -110635,11 +110720,11 @@ function peachKotlinModuleRoot() {
|
|
|
110635
110720
|
installedRoot = root;
|
|
110636
110721
|
return root;
|
|
110637
110722
|
}
|
|
110638
|
-
var
|
|
110723
|
+
var import_node_crypto87, import_node_fs141, import_node_path144, installedRoot;
|
|
110639
110724
|
var init_kotlin_module = __esm({
|
|
110640
110725
|
"src/kotlin-module.ts"() {
|
|
110641
110726
|
"use strict";
|
|
110642
|
-
|
|
110727
|
+
import_node_crypto87 = require("node:crypto");
|
|
110643
110728
|
import_node_fs141 = __toESM(require("node:fs"), 1);
|
|
110644
110729
|
import_node_path144 = __toESM(require("node:path"), 1);
|
|
110645
110730
|
init_standalone();
|
|
@@ -111002,7 +111087,7 @@ function zipSources(bytes, where) {
|
|
|
111002
111087
|
return entries2;
|
|
111003
111088
|
}
|
|
111004
111089
|
function extract(bytes, where) {
|
|
111005
|
-
const key2 = (0,
|
|
111090
|
+
const key2 = (0, import_node_crypto88.createHash)("sha256").update(bytes).digest("hex");
|
|
111006
111091
|
const cached2 = pending.get(key2);
|
|
111007
111092
|
if (cached2) return cached2;
|
|
111008
111093
|
const request = (async () => {
|
|
@@ -111051,11 +111136,11 @@ function readSourcesJar(archive, where) {
|
|
|
111051
111136
|
function readMavenSourcesArchive(archive) {
|
|
111052
111137
|
return extract(readSourcesJar(archive, archive), archive);
|
|
111053
111138
|
}
|
|
111054
|
-
var
|
|
111139
|
+
var import_node_crypto88, import_node_fs143, import_node_os29, import_node_path146, import_node_zlib9, pending, MAX_SOURCES_JAR_BYTES, MAX_SOURCE_ENTRY_BYTES, MAX_TOTAL_EXTRACTED_BYTES;
|
|
111055
111140
|
var init_kotlin_maven_sources = __esm({
|
|
111056
111141
|
"src/kotlin-maven-sources.ts"() {
|
|
111057
111142
|
"use strict";
|
|
111058
|
-
|
|
111143
|
+
import_node_crypto88 = require("node:crypto");
|
|
111059
111144
|
import_node_fs143 = __toESM(require("node:fs"), 1);
|
|
111060
111145
|
import_node_os29 = __toESM(require("node:os"), 1);
|
|
111061
111146
|
import_node_path146 = __toESM(require("node:path"), 1);
|
|
@@ -111096,7 +111181,7 @@ async function compileKotlinGradleLibraries(input) {
|
|
|
111096
111181
|
])
|
|
111097
111182
|
];
|
|
111098
111183
|
const name3 = library.coordinate.replace(/[^a-zA-Z0-9._-]/g, "-");
|
|
111099
|
-
const suffix = (0,
|
|
111184
|
+
const suffix = (0, import_node_crypto89.createHash)("sha256").update(library.coordinate).digest("hex").slice(0, 12);
|
|
111100
111185
|
const klib = import_node_path147.default.join(input.output, `${name3}-${suffix}.klib`);
|
|
111101
111186
|
const kotlinJvmAbi = java.length && kotlin.length && library.jars.length === 1 ? library.jars[0] : void 0;
|
|
111102
111187
|
const abiPairs = java.length ? dependencies.flatMap(
|
|
@@ -111138,11 +111223,11 @@ async function compileKotlinGradleLibraries(input) {
|
|
|
111138
111223
|
}
|
|
111139
111224
|
return [...compiled.values()].map(({ klib }) => klib);
|
|
111140
111225
|
}
|
|
111141
|
-
var
|
|
111226
|
+
var import_node_crypto89, import_node_fs144, import_node_path147;
|
|
111142
111227
|
var init_kotlin_gradle_library_plan = __esm({
|
|
111143
111228
|
"src/kotlin-gradle-library-plan.ts"() {
|
|
111144
111229
|
"use strict";
|
|
111145
|
-
|
|
111230
|
+
import_node_crypto89 = require("node:crypto");
|
|
111146
111231
|
import_node_fs144 = __toESM(require("node:fs"), 1);
|
|
111147
111232
|
import_node_path147 = __toESM(require("node:path"), 1);
|
|
111148
111233
|
init_kotlin_library_sources();
|
|
@@ -111599,7 +111684,7 @@ function readExpoTypes(output) {
|
|
|
111599
111684
|
});
|
|
111600
111685
|
}
|
|
111601
111686
|
async function scanSources(tool, parse16, toolchain, moduleRoot, files2) {
|
|
111602
|
-
const digest3 = (0,
|
|
111687
|
+
const digest3 = (0, import_node_crypto90.createHash)("sha256").update(JSON.stringify(toolchain.compiler));
|
|
111603
111688
|
const sdk2 = await loadKotlinSdk(moduleRoot, toolchain);
|
|
111604
111689
|
digest3.update(import_node_fs145.default.readFileSync(import_node_path148.default.join(moduleRoot, "sdk.tar.gz")));
|
|
111605
111690
|
digest3.update(tool);
|
|
@@ -112261,7 +112346,7 @@ async function compileKotlin(input, origin) {
|
|
|
112261
112346
|
bytes: import_node_fs145.default.readFileSync(file)
|
|
112262
112347
|
}));
|
|
112263
112348
|
const { composeArchive, ...compilerInputs } = toolchain;
|
|
112264
|
-
const digest3 = (0,
|
|
112349
|
+
const digest3 = (0, import_node_crypto90.createHash)("sha256");
|
|
112265
112350
|
digest3.update(
|
|
112266
112351
|
JSON.stringify({
|
|
112267
112352
|
format: BUILD_FORMAT,
|
|
@@ -112283,7 +112368,7 @@ async function compileKotlin(input, origin) {
|
|
|
112283
112368
|
...gradleLibraries.libraries.flatMap(({ archive, jars }) => [archive, ...jars])
|
|
112284
112369
|
]);
|
|
112285
112370
|
for (const file of files2) {
|
|
112286
|
-
digest3.update((0,
|
|
112371
|
+
digest3.update((0, import_node_crypto90.createHash)("sha256").update(import_node_fs145.default.readFileSync(file)).digest());
|
|
112287
112372
|
}
|
|
112288
112373
|
}
|
|
112289
112374
|
if (viewModels) digest3.update(viewModels.toolClass);
|
|
@@ -112575,12 +112660,12 @@ async function serveKotlinRequest(pathname, res, app) {
|
|
|
112575
112660
|
}
|
|
112576
112661
|
return true;
|
|
112577
112662
|
}
|
|
112578
|
-
var import_node_child_process70,
|
|
112663
|
+
var import_node_child_process70, import_node_crypto90, import_node_fs145, import_node_module23, import_node_path148, import_node_util22, run15, KOTLIN_ARTIFACT_PREFIX, SKIP_DIRS, configureDeviceSource, BUILD_FORMAT, builds, toolScans, BRIDGE_PARAMETERS, BRIDGE_CASTS, BRIDGE_RETURNS, bridgeType, JAVA_CLASSES, argb, escapes2, literal2, CONTENT_TYPES;
|
|
112579
112664
|
var init_kotlin_host = __esm({
|
|
112580
112665
|
"src/kotlin-host.ts"() {
|
|
112581
112666
|
"use strict";
|
|
112582
112667
|
import_node_child_process70 = require("node:child_process");
|
|
112583
|
-
|
|
112668
|
+
import_node_crypto90 = require("node:crypto");
|
|
112584
112669
|
import_node_fs145 = __toESM(require("node:fs"), 1);
|
|
112585
112670
|
import_node_module23 = require("node:module");
|
|
112586
112671
|
import_node_path148 = __toESM(require("node:path"), 1);
|
|
@@ -113410,7 +113495,7 @@ __export(bundle_channel_exports, {
|
|
|
113410
113495
|
snapshotOneProductionBundle: () => snapshotOneProductionBundle
|
|
113411
113496
|
});
|
|
113412
113497
|
module.exports = __toCommonJS(bundle_channel_exports);
|
|
113413
|
-
var
|
|
113498
|
+
var import_node_crypto92 = require("node:crypto");
|
|
113414
113499
|
var import_node_fs152 = require("node:fs");
|
|
113415
113500
|
var import_node_path156 = require("node:path");
|
|
113416
113501
|
var import_node_vm = require("node:vm");
|
|
@@ -113586,7 +113671,7 @@ init_expo_native_workspace();
|
|
|
113586
113671
|
|
|
113587
113672
|
// src/host/staged-host-files.ts
|
|
113588
113673
|
var import_node_async_hooks4 = require("node:async_hooks");
|
|
113589
|
-
var
|
|
113674
|
+
var import_node_crypto91 = require("node:crypto");
|
|
113590
113675
|
var import_node_fs147 = __toESM(require("node:fs"), 1);
|
|
113591
113676
|
var import_node_path150 = __toESM(require("node:path"), 1);
|
|
113592
113677
|
|
|
@@ -113681,10 +113766,10 @@ function stageHostBytes(bytes, origin, extension = "") {
|
|
|
113681
113766
|
}
|
|
113682
113767
|
async function stageHostDerivedBytes(input, producer, origin, extension, derive) {
|
|
113683
113768
|
const directory2 = prepareStagedDirectory();
|
|
113684
|
-
const inputDigest = (0,
|
|
113769
|
+
const inputDigest = (0, import_node_crypto91.createHash)("sha256").update(input).digest("hex");
|
|
113685
113770
|
const index = import_node_path150.default.join(
|
|
113686
113771
|
directory2,
|
|
113687
|
-
`derived-${(0,
|
|
113772
|
+
`derived-${(0, import_node_crypto91.createHash)("sha256").update(`${producer}\0${inputDigest}`).digest("hex")}`
|
|
113688
113773
|
);
|
|
113689
113774
|
const recorded = import_node_fs147.default.existsSync(index) ? import_node_fs147.default.readFileSync(index, "utf8") : "";
|
|
113690
113775
|
if (STAGED_NAME.test(recorded) && import_node_fs147.default.existsSync(import_node_path150.default.join(directory2, recorded))) {
|
|
@@ -113695,7 +113780,7 @@ async function stageHostDerivedBytes(input, producer, origin, extension, derive)
|
|
|
113695
113780
|
return new URL(STAGED_PREFIX + recorded, origin).toString();
|
|
113696
113781
|
}
|
|
113697
113782
|
const staged = writeStagedBytes(await derive(), origin, extension, directory2);
|
|
113698
|
-
const temporary = import_node_path150.default.join(directory2, (0,
|
|
113783
|
+
const temporary = import_node_path150.default.join(directory2, (0, import_node_crypto91.randomUUID)());
|
|
113699
113784
|
try {
|
|
113700
113785
|
import_node_fs147.default.writeFileSync(temporary, new URL(staged).pathname.slice(STAGED_PREFIX.length), {
|
|
113701
113786
|
flag: "wx"
|
|
@@ -113720,7 +113805,7 @@ function prepareStagedDirectory() {
|
|
|
113720
113805
|
return directory2;
|
|
113721
113806
|
}
|
|
113722
113807
|
function writeStagedBytes(bytes, origin, extension, directory2) {
|
|
113723
|
-
const digest3 = (0,
|
|
113808
|
+
const digest3 = (0, import_node_crypto91.createHash)("sha256").update(bytes).digest("hex");
|
|
113724
113809
|
extension = extension.toLowerCase();
|
|
113725
113810
|
const name3 = STAGED_NAME.test(digest3 + extension) ? digest3 + extension : digest3;
|
|
113726
113811
|
stagedCapture.getStore()?.add(name3);
|
|
@@ -113729,7 +113814,7 @@ function writeStagedBytes(bytes, origin, extension, directory2) {
|
|
|
113729
113814
|
if (import_node_fs147.default.existsSync(destination)) {
|
|
113730
113815
|
import_node_fs147.default.utimesSync(destination, new Date(now), new Date(now));
|
|
113731
113816
|
} else {
|
|
113732
|
-
const temporary = import_node_path150.default.join(directory2, (0,
|
|
113817
|
+
const temporary = import_node_path150.default.join(directory2, (0, import_node_crypto91.randomUUID)());
|
|
113733
113818
|
try {
|
|
113734
113819
|
import_node_fs147.default.writeFileSync(temporary, bytes, { flag: "wx" });
|
|
113735
113820
|
import_node_fs147.default.renameSync(temporary, destination);
|
|
@@ -114026,7 +114111,7 @@ async function discoverProjectOneNativeAppCatalog(projectRoot, assetOrigin) {
|
|
|
114026
114111
|
}
|
|
114027
114112
|
|
|
114028
114113
|
// src/bundle-channel.mjs
|
|
114029
|
-
var digest2 = (bytes) => (0,
|
|
114114
|
+
var digest2 = (bytes) => (0, import_node_crypto92.createHash)("sha256").update(bytes).digest("hex");
|
|
114030
114115
|
var segment2 = /^[a-zA-Z0-9._-]+$/;
|
|
114031
114116
|
function packagedAssetDirectory(location) {
|
|
114032
114117
|
const parsed2 = new URL(location, "https://packaged.invalid");
|
|
@@ -114132,7 +114217,7 @@ async function prepareChannel({
|
|
|
114132
114217
|
files2.set(asset.path, asset.bytes);
|
|
114133
114218
|
}
|
|
114134
114219
|
}
|
|
114135
|
-
const identity2 = (0,
|
|
114220
|
+
const identity2 = (0, import_node_crypto92.createHash)("sha256").update(bundle).update(icon);
|
|
114136
114221
|
for (const [path143, bytes] of [...files2].sort(
|
|
114137
114222
|
([a], [b]) => a < b ? -1 : a > b ? 1 : 0
|
|
114138
114223
|
)) {
|