peachsim 0.1.2481 → 0.1.2483
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/inspect.ts +2 -1
- 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 +2620 -2599
- 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 +2 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-FYDDLFH7.mjs → acorn-5IUVEQ5U.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-XVGPPYRC.mjs → chunk-3XA33ML6.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-I2KV5OCI.mjs → chunk-3Y4O3MOM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CIRF7MUH.mjs → chunk-4LW6LZ6Z.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-56VSEMVW.mjs → chunk-4PY2AMHM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-6ALMBFOB.mjs → chunk-74BYI5ME.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YY4T7YSR.mjs → chunk-DMZ7YRB2.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-MYAC4QOH.mjs → chunk-DV6RVJXG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-IKMY4F25.mjs → chunk-HHIU36JR.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VGOJCWU3.mjs → chunk-HK2PVWZR.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ZNG6GMUS.mjs → chunk-HPATKEHW.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HK2YIUS3.mjs → chunk-IGRHCKP6.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-3AHKFCTP.mjs → chunk-JNWWQ6IK.mjs} +1 -1
- package/dist-lib/esm-chunks/chunk-KK3WVSF7.mjs +12 -0
- package/dist-lib/esm-chunks/{chunk-RRHGYD5I.mjs → chunk-M4YWLFJD.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-55FEZERB.mjs → chunk-NWAG7YWU.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-DILJLCVN.mjs → chunk-NZ4SCX34.mjs} +12 -12
- package/dist-lib/esm-chunks/{chunk-DR66BWZR.mjs → chunk-QQJEXO33.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-OMWELJZM.mjs → chunk-REMZIJ6Q.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-MTWECGVY.mjs → chunk-UCAXXDBC.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YBJYSS46.mjs → chunk-UETKYQXI.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-DOTVMR2R.mjs → chunk-UTFTGMVS.mjs} +5 -5
- package/dist-lib/esm-chunks/{metro-layout-parser-EEI7OVUC.mjs → metro-layout-parser-ONZA2XYW.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-V5QMDVKG.mjs → swift-package-prebuilt-W7ES3LDK.mjs} +10 -10
- package/dist-lib/esm-chunks/{swift-sdk-app-module-QEWCSQWL.mjs → swift-sdk-app-module-XYSH4J23.mjs} +13 -13
- package/dist-lib/esm-chunks/{swift-sdk-image-XH4JSUEA.mjs → swift-sdk-image-KNCQQOMT.mjs} +13 -13
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-HQJ5Z6TE.mjs → swift-sdk-image-producer-DC6U6VUF.mjs} +4 -4
- package/dist-lib/expo-swift-bundle.cjs +260 -233
- package/dist-lib/expo-swift-metadata.cjs +2 -2
- package/dist-lib/expo-swift-metadata.mjs +7 -7
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +440 -453
- package/dist-lib/host/fetch-proxy-handler.cjs +181 -343
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +4 -4
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +15 -15
- package/dist-lib/native-app-identity.cjs +2 -2
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +79 -79
- package/dist-lib/public-origins-lib.json +82 -77
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +7 -7
- package/dist-lib/skills.cjs +494 -503
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +10 -10
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +5 -5
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/@xmldom/xmldom.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/bplist-parser.cjs +1 -1
- package/dist-lib/vendor/ignore.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/plist.cjs +1 -1
- package/dist-lib/vendor/smol-toml.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +1 -1
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/dist-types/packages/peach-engine/core-abi/style/style-schema.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +2 -2
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/assetCatalogContract.ts +8 -0
- package/src/expo-swift-host.ts +17 -35
- package/src/expo-widgets-bundle.ts +6 -4
- package/src/guest-bundle.ts +8 -3
- package/src/host/bridge-host.ts +4 -25
- package/src/native-preparation.ts +112 -120
- package/src/nitro-bundle.ts +26 -35
- package/src/one-sdk-bundle.ts +1 -0
- package/src/swift-host.ts +3 -0
- package/src/turbo-bundle.ts +5 -1
- package/dist-lib/esm-chunks/chunk-V27M6XEI.mjs +0 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2483 | (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;
|
|
@@ -1508,7 +1508,7 @@ var init_swift_source_file = __esm({
|
|
|
1508
1508
|
// src/assetCatalogContract.ts
|
|
1509
1509
|
function isSwiftImageVariants(value) {
|
|
1510
1510
|
return Array.isArray(value) && value.length > 0 && value.every(
|
|
1511
|
-
(image) => typeof image === "object" && image !== null && typeof image.uri === "string" && typeof image.scale === "number" && Number.isFinite(image.scale) && image.scale > 0 && (image.appearance === void 0 || image.appearance === "light" || image.appearance === "dark") && (image.renderingMode === void 0 || image.renderingMode === "template" || image.renderingMode === "original")
|
|
1511
|
+
(image) => typeof image === "object" && image !== null && typeof image.uri === "string" && typeof image.scale === "number" && Number.isFinite(image.scale) && image.scale > 0 && (image.pixelSize === void 0 || typeof image.pixelSize === "object" && image.pixelSize !== null && Number.isInteger(image.pixelSize.width) && image.pixelSize.width > 0 && Number.isInteger(image.pixelSize.height) && image.pixelSize.height > 0) && (image.appearance === void 0 || image.appearance === "light" || image.appearance === "dark") && (image.renderingMode === void 0 || image.renderingMode === "template" || image.renderingMode === "original")
|
|
1512
1512
|
);
|
|
1513
1513
|
}
|
|
1514
1514
|
function sfSymbolVariantKey(variant2) {
|
|
@@ -26242,13 +26242,13 @@ var init_swift_standin_digest = __esm({
|
|
|
26242
26242
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
26243
26243
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
26244
26244
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
26245
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
26245
|
+
STANDIN_SOURCE_DIGEST = true ? "85f1e7cbeb527885fc58cf92a8723307e9e5239bfa66c1d45020f2cae6b61e3f" : standinSourceDigest();
|
|
26246
26246
|
}
|
|
26247
26247
|
});
|
|
26248
26248
|
|
|
26249
26249
|
// src/expo-native-compiler-digest.ts
|
|
26250
26250
|
function expoNativeCompilerDigestValue() {
|
|
26251
|
-
return true ? "
|
|
26251
|
+
return true ? "f9671a1c1eddca137b78f44455f0e3f062609c1fae0e7694d60d1eafc2bf55d1" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
26252
26252
|
}
|
|
26253
26253
|
var import_node_crypto17;
|
|
26254
26254
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -73041,137 +73041,134 @@ var init_expo_native_prebuilt = __esm({
|
|
|
73041
73041
|
}
|
|
73042
73042
|
});
|
|
73043
73043
|
|
|
73044
|
-
// src/
|
|
73045
|
-
|
|
73046
|
-
|
|
73047
|
-
|
|
73048
|
-
|
|
73049
|
-
|
|
73050
|
-
|
|
73051
|
-
setTimeoutNode(() => openRevisions.delete(key2), OPEN_RECEIPT_MS).unref();
|
|
73044
|
+
// src/nativePreparationContract.ts
|
|
73045
|
+
var NATIVE_PREPARE_QUERY_PARAM, NATIVE_PREPARED_QUERY_PARAM;
|
|
73046
|
+
var init_nativePreparationContract = __esm({
|
|
73047
|
+
"src/nativePreparationContract.ts"() {
|
|
73048
|
+
"use strict";
|
|
73049
|
+
NATIVE_PREPARE_QUERY_PARAM = "prepare";
|
|
73050
|
+
NATIVE_PREPARED_QUERY_PARAM = "prepared";
|
|
73052
73051
|
}
|
|
73053
|
-
|
|
73052
|
+
});
|
|
73053
|
+
|
|
73054
|
+
// src/native-preparation.ts
|
|
73055
|
+
function ignoredChange(relative3) {
|
|
73056
|
+
const parts = relative3.split(import_node_path95.default.sep);
|
|
73057
|
+
return relative3 === import_node_path95.default.join(".git", "index") || parts.includes(".cache") || parts.includes(".expo") || /(?:^|[\\/])node_modules[\\/]expo-widgets[\\/]bundle[\\/]build(?:[\\/]|$)/.test(
|
|
73058
|
+
relative3
|
|
73059
|
+
);
|
|
73054
73060
|
}
|
|
73055
|
-
|
|
73056
|
-
const
|
|
73057
|
-
const
|
|
73058
|
-
|
|
73059
|
-
|
|
73060
|
-
|
|
73061
|
-
const require2 = (0, import_node_module13.createRequire)(import_node_path95.default.join(app, "package.json"));
|
|
73062
|
-
let widgetsOutput;
|
|
73063
|
-
try {
|
|
73064
|
-
widgetsOutput = import_node_path95.default.join(
|
|
73065
|
-
import_node_path95.default.dirname(require2.resolve("expo-widgets/package.json")),
|
|
73066
|
-
"bundle",
|
|
73067
|
-
"build"
|
|
73068
|
-
);
|
|
73069
|
-
} catch (error) {
|
|
73070
|
-
if (!(error instanceof Error && "code" in error && error.code === "MODULE_NOT_FOUND"))
|
|
73071
|
-
throw error;
|
|
73061
|
+
function watchNativeInputs(root) {
|
|
73062
|
+
const workspace = findWorkspaceRoot(root);
|
|
73063
|
+
const existing = watchedInputs.get(workspace);
|
|
73064
|
+
if (existing) {
|
|
73065
|
+
existing.expiry.refresh();
|
|
73066
|
+
return existing;
|
|
73072
73067
|
}
|
|
73073
|
-
const
|
|
73074
|
-
hash.update(
|
|
73075
|
-
JSON.stringify([
|
|
73076
|
-
config,
|
|
73077
|
-
resolveActiveRuntimeRoot(),
|
|
73078
|
-
resolveDevCheckoutRuntimeAssetRoot()
|
|
73079
|
-
])
|
|
73080
|
-
);
|
|
73068
|
+
const watchers = [];
|
|
73081
73069
|
const visited = /* @__PURE__ */ new Set();
|
|
73082
|
-
const
|
|
73083
|
-
|
|
73084
|
-
|
|
73085
|
-
|
|
73086
|
-
|
|
73070
|
+
const expiry = setTimeoutNode(close, RETENTION_MS);
|
|
73071
|
+
expiry.unref();
|
|
73072
|
+
function close() {
|
|
73073
|
+
if (watchedInputs.get(workspace) === inputs2) watchedInputs.delete(workspace);
|
|
73074
|
+
(0, import_node_timers.clearTimeout)(expiry);
|
|
73075
|
+
for (const watcher of watchers) watcher.close();
|
|
73076
|
+
}
|
|
73077
|
+
const inputs2 = { expiry };
|
|
73078
|
+
const watch = (directory2, recursive, name3) => {
|
|
73079
|
+
const watcher = import_node_fs94.default.watch(
|
|
73080
|
+
directory2,
|
|
73081
|
+
{ recursive, persistent: false },
|
|
73082
|
+
(_event, file) => {
|
|
73083
|
+
if (!file || (name3 ? file === name3 : !ignoredChange(file))) close();
|
|
73084
|
+
}
|
|
73085
|
+
);
|
|
73086
|
+
watchers.push(watcher);
|
|
73087
|
+
watcher.on("error", close);
|
|
73088
|
+
};
|
|
73089
|
+
const scan3 = (directory2, watchRoot2) => {
|
|
73090
|
+
if (visited.has(directory2)) return;
|
|
73087
73091
|
visited.add(directory2);
|
|
73088
|
-
const
|
|
73089
|
-
entries2.sort((a, b) => a.name < b.name ? -1 : Number(a.name !== b.name));
|
|
73090
|
-
for (const entry of entries2) {
|
|
73092
|
+
for (const entry of import_node_fs94.default.readdirSync(directory2, { withFileTypes: true })) {
|
|
73091
73093
|
const file = import_node_path95.default.join(directory2, entry.name);
|
|
73092
|
-
|
|
73093
|
-
if (
|
|
73094
|
-
if (!dependency && excluded(import_node_path95.default.relative(root, file), entry.isDirectory()))
|
|
73095
|
-
continue;
|
|
73096
|
-
hash.update(file).update("\0");
|
|
73097
|
-
if (entry.isDirectory()) {
|
|
73098
|
-
directories.push({ file, installed: dependency });
|
|
73099
|
-
continue;
|
|
73100
|
-
}
|
|
73101
|
-
const stat = import_node_fs94.default.lstatSync(file);
|
|
73102
|
-
hash.update(
|
|
73103
|
-
`${stat.dev}:${stat.ino}:${stat.size}:${stat.ctimeMs}:${stat.mtimeMs}\0`
|
|
73104
|
-
);
|
|
73094
|
+
if (ignoredChange(import_node_path95.default.relative(watchRoot2, file)) || entry.name === ".git") continue;
|
|
73095
|
+
if (entry.isDirectory()) scan3(file, watchRoot2);
|
|
73105
73096
|
if (!entry.isSymbolicLink()) continue;
|
|
73106
|
-
const target = import_node_fs94.default.
|
|
73107
|
-
if (target
|
|
73108
|
-
|
|
73109
|
-
|
|
73110
|
-
|
|
73111
|
-
|
|
73112
|
-
);
|
|
73113
|
-
|
|
73097
|
+
const target = import_node_path95.default.resolve(directory2, import_node_fs94.default.readlinkSync(file));
|
|
73098
|
+
if (target === workspace || target.startsWith(workspace + import_node_path95.default.sep)) continue;
|
|
73099
|
+
const real = import_node_fs94.default.realpathSync(file);
|
|
73100
|
+
if (visited.has(real)) continue;
|
|
73101
|
+
watch(import_node_path95.default.dirname(real), false, import_node_path95.default.basename(real));
|
|
73102
|
+
if (import_node_fs94.default.statSync(real).isDirectory()) {
|
|
73103
|
+
watch(real, true);
|
|
73104
|
+
scan3(real, real);
|
|
73105
|
+
} else visited.add(real);
|
|
73114
73106
|
}
|
|
73115
|
-
|
|
73107
|
+
};
|
|
73108
|
+
try {
|
|
73109
|
+
watch(workspace, true);
|
|
73110
|
+
scan3(workspace, workspace);
|
|
73111
|
+
} catch {
|
|
73112
|
+
close();
|
|
73113
|
+
return void 0;
|
|
73116
73114
|
}
|
|
73117
|
-
|
|
73115
|
+
watchedInputs.set(workspace, inputs2);
|
|
73116
|
+
return inputs2;
|
|
73118
73117
|
}
|
|
73119
|
-
var
|
|
73118
|
+
var import_node_fs94, import_node_path95, import_node_timers, setTimeoutNode, RETENTION_MS, watchedInputs, NativePreparation;
|
|
73120
73119
|
var init_native_preparation = __esm({
|
|
73121
73120
|
"src/native-preparation.ts"() {
|
|
73122
73121
|
"use strict";
|
|
73123
|
-
import_node_crypto58 = require("node:crypto");
|
|
73124
73122
|
import_node_fs94 = __toESM(require("node:fs"), 1);
|
|
73125
|
-
import_node_module13 = require("node:module");
|
|
73126
73123
|
import_node_path95 = __toESM(require("node:path"), 1);
|
|
73127
73124
|
import_node_timers = require("node:timers");
|
|
73128
|
-
|
|
73129
|
-
init_expo_workspace_exclusion();
|
|
73130
|
-
init_native_firebase_config();
|
|
73125
|
+
init_nativePreparationContract();
|
|
73131
73126
|
init_runtime_assets();
|
|
73132
73127
|
init_workspace_root();
|
|
73133
73128
|
setTimeoutNode = import_node_timers.setTimeout;
|
|
73134
|
-
|
|
73135
|
-
|
|
73136
|
-
|
|
73129
|
+
RETENTION_MS = 30 * 60 * 1e3;
|
|
73130
|
+
watchedInputs = /* @__PURE__ */ new Map();
|
|
73131
|
+
NativePreparation = class {
|
|
73137
73132
|
compiling = /* @__PURE__ */ new Map();
|
|
73138
|
-
prepared = /* @__PURE__ */ new
|
|
73133
|
+
prepared = /* @__PURE__ */ new WeakMap();
|
|
73139
73134
|
receipts = /* @__PURE__ */ new Map();
|
|
73140
|
-
async
|
|
73141
|
-
const
|
|
73142
|
-
|
|
73143
|
-
|
|
73144
|
-
|
|
73145
|
-
|
|
73146
|
-
|
|
73147
|
-
|
|
73148
|
-
|
|
73149
|
-
|
|
73150
|
-
|
|
73151
|
-
|
|
73152
|
-
|
|
73153
|
-
if (prepared) (0, import_node_timers.clearTimeout)(prepared.expiry);
|
|
73154
|
-
this.prepared.delete(owner);
|
|
73155
|
-
const result = compile2().then((value) => {
|
|
73156
|
-
if (revision) {
|
|
73157
|
-
const expiry = setTimeoutNode(
|
|
73158
|
-
() => this.prepared.delete(owner),
|
|
73159
|
-
OPEN_RECEIPT_MS
|
|
73160
|
-
);
|
|
73161
|
-
expiry.unref();
|
|
73162
|
-
this.prepared.set(owner, { revision, value, expiry });
|
|
73135
|
+
async resolve(root, owner, params, compile2, reusable = () => true) {
|
|
73136
|
+
const receipt = this.take(owner, params.get(NATIVE_PREPARED_QUERY_PARAM));
|
|
73137
|
+
if (receipt) return receipt.value;
|
|
73138
|
+
const token = params.get(NATIVE_PREPARE_QUERY_PARAM);
|
|
73139
|
+
const inputs2 = token ? watchNativeInputs(root) : void 0;
|
|
73140
|
+
const key2 = inputs2 ? `${owner}\0${resolveActiveRuntimeRoot() ?? ""}` : owner;
|
|
73141
|
+
let pending = this.compiling;
|
|
73142
|
+
if (inputs2) {
|
|
73143
|
+
const prepared = this.prepared.get(inputs2);
|
|
73144
|
+
if (prepared) pending = prepared;
|
|
73145
|
+
else {
|
|
73146
|
+
pending = /* @__PURE__ */ new Map();
|
|
73147
|
+
this.prepared.set(inputs2, pending);
|
|
73163
73148
|
}
|
|
73164
|
-
|
|
73165
|
-
|
|
73166
|
-
|
|
73167
|
-
|
|
73149
|
+
}
|
|
73150
|
+
let preparation = pending.get(key2);
|
|
73151
|
+
if (!preparation || preparation.ready && !reusable(preparation.ready.value)) {
|
|
73152
|
+
const next = { result: Promise.resolve().then(compile2) };
|
|
73153
|
+
preparation = next;
|
|
73154
|
+
pending.set(key2, next);
|
|
73155
|
+
void next.result.then(
|
|
73156
|
+
(value2) => {
|
|
73157
|
+
if (!inputs2 || !reusable(value2)) pending.delete(key2);
|
|
73158
|
+
else next.ready = { value: value2 };
|
|
73159
|
+
},
|
|
73160
|
+
() => pending.delete(key2)
|
|
73161
|
+
);
|
|
73162
|
+
}
|
|
73163
|
+
const value = await preparation.result;
|
|
73164
|
+
this.store(owner, token, value);
|
|
73165
|
+
return value;
|
|
73168
73166
|
}
|
|
73169
|
-
// each open hands its own response to the first tenant request, including null.
|
|
73170
73167
|
store(owner, token, value) {
|
|
73171
73168
|
if (!token) return;
|
|
73172
73169
|
const previous = this.receipts.get(token);
|
|
73173
73170
|
if (previous) (0, import_node_timers.clearTimeout)(previous.expiry);
|
|
73174
|
-
const expiry = setTimeoutNode(() => this.receipts.delete(token),
|
|
73171
|
+
const expiry = setTimeoutNode(() => this.receipts.delete(token), RETENTION_MS);
|
|
73175
73172
|
expiry.unref();
|
|
73176
73173
|
this.receipts.set(token, { owner, value, expiry });
|
|
73177
73174
|
}
|
|
@@ -73301,7 +73298,7 @@ function nativeStaticLibraryEntry(recipe2, compiler, sdk2, distribution) {
|
|
|
73301
73298
|
return { name: recipe2.name, inputs: inputs2, key: nativeEntryKey(inputs2) };
|
|
73302
73299
|
}
|
|
73303
73300
|
function nativeStaticLibraryRecipe(bytes) {
|
|
73304
|
-
const digest2 = (0,
|
|
73301
|
+
const digest2 = (0, import_node_crypto58.createHash)("sha256").update(bytes).digest("hex");
|
|
73305
73302
|
return NATIVE_STATIC_LIBRARY_RECIPES.find((item) => item.nativeSha256 === digest2);
|
|
73306
73303
|
}
|
|
73307
73304
|
function nativeStaticLibrary(file, recipe2, moduleRoot) {
|
|
@@ -73344,7 +73341,7 @@ function isRustSymbol(name3, demangled) {
|
|
|
73344
73341
|
function rustStaticLibrary(file, moduleRoot) {
|
|
73345
73342
|
const toolchain = swiftModuleToolchain(moduleRoot);
|
|
73346
73343
|
const bytes = import_node_fs96.default.readFileSync(file);
|
|
73347
|
-
const key2 = (0,
|
|
73344
|
+
const key2 = (0, import_node_crypto58.createHash)("sha256").update("rust-c-abi-v4\0").update(toolchain.release).update("\0").update(bytes).digest("hex");
|
|
73348
73345
|
const directory2 = import_node_path97.default.join(cacheDir(), "native-archives", key2);
|
|
73349
73346
|
const archive = import_node_path97.default.join(directory2, "library.a");
|
|
73350
73347
|
if (import_node_fs96.default.existsSync(archive)) return archive;
|
|
@@ -73373,7 +73370,7 @@ function rustStaticLibrary(file, moduleRoot) {
|
|
|
73373
73370
|
const members2 = readArMembers(bytes, true);
|
|
73374
73371
|
const seen = /* @__PURE__ */ new Set();
|
|
73375
73372
|
const unique2 = members2.filter(({ name: name3, bytes: bytes2 }) => {
|
|
73376
|
-
const identity2 = name3 + "\0" + (0,
|
|
73373
|
+
const identity2 = name3 + "\0" + (0, import_node_crypto58.createHash)("sha256").update(bytes2).digest("hex");
|
|
73377
73374
|
if (seen.has(identity2)) return false;
|
|
73378
73375
|
seen.add(identity2);
|
|
73379
73376
|
return true;
|
|
@@ -73420,14 +73417,14 @@ function rustStaticLibrary(file, moduleRoot) {
|
|
|
73420
73417
|
function combineNativeStaticLibraries(files2, moduleRoot) {
|
|
73421
73418
|
if (files2.length === 1) return files2[0];
|
|
73422
73419
|
const toolchain = swiftModuleToolchain(moduleRoot);
|
|
73423
|
-
const hash = (0,
|
|
73420
|
+
const hash = (0, import_node_crypto58.createHash)("sha256").update(toolchain.release);
|
|
73424
73421
|
for (const file of files2)
|
|
73425
73422
|
hash.update("\0").update(import_node_path97.default.basename(file)).update("\0").update(import_node_fs96.default.readFileSync(file));
|
|
73426
73423
|
const directory2 = import_node_path97.default.join(cacheDir(), "native-archives", hash.digest("hex"));
|
|
73427
73424
|
const archive = import_node_path97.default.join(directory2, "combined.a");
|
|
73428
73425
|
if (import_node_fs96.default.existsSync(archive)) return archive;
|
|
73429
73426
|
import_node_fs96.default.mkdirSync(directory2, { recursive: true });
|
|
73430
|
-
const temporary = import_node_path97.default.join(directory2, `combined-${(0,
|
|
73427
|
+
const temporary = import_node_path97.default.join(directory2, `combined-${(0, import_node_crypto58.randomUUID)()}.a`);
|
|
73431
73428
|
try {
|
|
73432
73429
|
(0, import_node_child_process46.execFileSync)(import_node_path97.default.join(toolchain.toolchainBin, "llvm-ar"), [
|
|
73433
73430
|
"qcsDL",
|
|
@@ -73440,12 +73437,12 @@ function combineNativeStaticLibraries(files2, moduleRoot) {
|
|
|
73440
73437
|
}
|
|
73441
73438
|
return archive;
|
|
73442
73439
|
}
|
|
73443
|
-
var import_node_child_process46,
|
|
73440
|
+
var import_node_child_process46, import_node_crypto58, import_node_fs96, import_node_path97, WEBRTC_NATIVE_FRAMEWORK, SIGNAL_WEBRTC_NATIVE_FRAMEWORK, WEBRTC_NATIVE_FRAMEWORK_RECIPES, NATIVE_STATIC_LIBRARY_RECIPES;
|
|
73444
73441
|
var init_native_static_libraries = __esm({
|
|
73445
73442
|
"src/native-static-libraries.ts"() {
|
|
73446
73443
|
"use strict";
|
|
73447
73444
|
import_node_child_process46 = require("node:child_process");
|
|
73448
|
-
|
|
73445
|
+
import_node_crypto58 = require("node:crypto");
|
|
73449
73446
|
import_node_fs96 = __toESM(require("node:fs"), 1);
|
|
73450
73447
|
import_node_path97 = __toESM(require("node:path"), 1);
|
|
73451
73448
|
init_home_paths();
|
|
@@ -73743,13 +73740,6 @@ var init_native_static_libraries = __esm({
|
|
|
73743
73740
|
}
|
|
73744
73741
|
});
|
|
73745
73742
|
|
|
73746
|
-
// src/nativePreparationContract.ts
|
|
73747
|
-
var init_nativePreparationContract = __esm({
|
|
73748
|
-
"src/nativePreparationContract.ts"() {
|
|
73749
|
-
"use strict";
|
|
73750
|
-
}
|
|
73751
|
-
});
|
|
73752
|
-
|
|
73753
73743
|
// ../../src/helpers/mapLimit.ts
|
|
73754
73744
|
async function mapLimit(items2, limit, worker) {
|
|
73755
73745
|
const results = new Array(items2.length);
|
|
@@ -73787,7 +73777,7 @@ function processAlive(pid) {
|
|
|
73787
73777
|
}
|
|
73788
73778
|
function tryAcquireNumberedLock(directory2, detail = "") {
|
|
73789
73779
|
(0, import_node_fs97.mkdirSync)(directory2, { recursive: true });
|
|
73790
|
-
const claim = (0, import_node_path98.join)(directory2, `claim-${process.pid}-${(0,
|
|
73780
|
+
const claim = (0, import_node_path98.join)(directory2, `claim-${process.pid}-${(0, import_node_crypto59.randomUUID)()}`);
|
|
73791
73781
|
for (; ; ) {
|
|
73792
73782
|
const numbers = (0, import_node_fs97.readdirSync)(directory2).filter((name3) => /^\d+$/.test(name3)).map(Number);
|
|
73793
73783
|
const top = Math.max(-1, ...numbers);
|
|
@@ -73826,11 +73816,11 @@ ${detail}` : ""}`);
|
|
|
73826
73816
|
};
|
|
73827
73817
|
}
|
|
73828
73818
|
}
|
|
73829
|
-
var
|
|
73819
|
+
var import_node_crypto59, import_node_fs97, import_node_path98, errorCode2;
|
|
73830
73820
|
var init_numbered_lock = __esm({
|
|
73831
73821
|
"src/numbered-lock.ts"() {
|
|
73832
73822
|
"use strict";
|
|
73833
|
-
|
|
73823
|
+
import_node_crypto59 = require("node:crypto");
|
|
73834
73824
|
import_node_fs97 = require("node:fs");
|
|
73835
73825
|
import_node_path98 = require("node:path");
|
|
73836
73826
|
errorCode2 = (error) => error instanceof Error && "code" in error ? error.code : void 0;
|
|
@@ -73857,7 +73847,7 @@ async function buildRiveRuntimeDependencies(checkout, moduleRoot) {
|
|
|
73857
73847
|
];
|
|
73858
73848
|
const objc = [...swiftObjCRuntimeFlags, "-fobjc-exceptions"];
|
|
73859
73849
|
const xcode = (0, import_node_child_process47.execFileSync)("xcodebuild", ["-version"], { encoding: "utf8" });
|
|
73860
|
-
const key2 = (0,
|
|
73850
|
+
const key2 = (0, import_node_crypto60.createHash)("sha256").update(
|
|
73861
73851
|
JSON.stringify([
|
|
73862
73852
|
RECIPE,
|
|
73863
73853
|
(0, import_node_child_process47.execFileSync)("git", ["-C", runtime, "rev-parse", "HEAD"], {
|
|
@@ -73874,7 +73864,7 @@ async function buildRiveRuntimeDependencies(checkout, moduleRoot) {
|
|
|
73874
73864
|
if (!import_node_fs98.default.existsSync(complete)) {
|
|
73875
73865
|
let release = tryAcquireNumberedLock(`${output}.lock`);
|
|
73876
73866
|
while (!release) {
|
|
73877
|
-
await (0,
|
|
73867
|
+
await (0, import_promises9.setTimeout)(1e3);
|
|
73878
73868
|
release = tryAcquireNumberedLock(`${output}.lock`);
|
|
73879
73869
|
}
|
|
73880
73870
|
try {
|
|
@@ -74068,16 +74058,16 @@ exec ${quote3(import_node_path99.default.join(toolchainBin, "llvm-ar"))} rcs "$o
|
|
|
74068
74058
|
);
|
|
74069
74059
|
return directory2;
|
|
74070
74060
|
}
|
|
74071
|
-
var import_node_child_process47,
|
|
74061
|
+
var import_node_child_process47, import_node_crypto60, import_node_fs98, import_node_os20, import_node_path99, import_promises9, RECIPE, CONFIG, RUNTIME_LIBRARIES;
|
|
74072
74062
|
var init_rive_runtime_dependencies = __esm({
|
|
74073
74063
|
"src/rive-runtime-dependencies.ts"() {
|
|
74074
74064
|
"use strict";
|
|
74075
74065
|
import_node_child_process47 = require("node:child_process");
|
|
74076
|
-
|
|
74066
|
+
import_node_crypto60 = require("node:crypto");
|
|
74077
74067
|
import_node_fs98 = __toESM(require("node:fs"), 1);
|
|
74078
74068
|
import_node_os20 = __toESM(require("node:os"), 1);
|
|
74079
74069
|
import_node_path99 = __toESM(require("node:path"), 1);
|
|
74080
|
-
|
|
74070
|
+
import_promises9 = require("node:timers/promises");
|
|
74081
74071
|
init_home_paths();
|
|
74082
74072
|
init_numbered_lock();
|
|
74083
74073
|
init_swift_compile();
|
|
@@ -74172,7 +74162,7 @@ var init_swift_shipped_binaries = __esm({
|
|
|
74172
74162
|
|
|
74173
74163
|
// src/swift-packages.ts
|
|
74174
74164
|
function remoteSwiftCheckouts(root) {
|
|
74175
|
-
const key2 = (0,
|
|
74165
|
+
const key2 = (0, import_node_crypto61.createHash)("sha256").update(import_node_fs99.default.realpathSync(root)).digest("hex").slice(0, 32);
|
|
74176
74166
|
import_node_fs99.default.mkdirSync(cacheDir(), { recursive: true });
|
|
74177
74167
|
return import_node_path100.default.join(import_node_fs99.default.realpathSync(cacheDir()), "swift-packages", key2, "checkouts");
|
|
74178
74168
|
}
|
|
@@ -74279,7 +74269,7 @@ async function fetchCheckout(checkouts, identity2, pin2, signal) {
|
|
|
74279
74269
|
const lock = async () => {
|
|
74280
74270
|
let release = tryAcquireNumberedLock(`${dir}.lock`);
|
|
74281
74271
|
while (!release) {
|
|
74282
|
-
await (0,
|
|
74272
|
+
await (0, import_promises10.setTimeout)(25, void 0, { signal });
|
|
74283
74273
|
release = tryAcquireNumberedLock(`${dir}.lock`);
|
|
74284
74274
|
}
|
|
74285
74275
|
return release;
|
|
@@ -74906,15 +74896,15 @@ function resolveSwiftPackages(options2) {
|
|
|
74906
74896
|
result.nativeProducts.push({ name: name3, packageDir: manifest.dir, source });
|
|
74907
74897
|
return result;
|
|
74908
74898
|
}
|
|
74909
|
-
var import_node_child_process48,
|
|
74899
|
+
var import_node_child_process48, import_node_crypto61, import_node_fs99, import_node_path100, import_promises10, import_node_util13, swiftBinaryOnDisk, SWIFT_PLACEHOLDER_PACKAGES, placeholderPackage, sourceFrameworkRecipes, UNSUPPORTED_NATIVE, BINARY, blockers, verified, execFileAsync2, checkoutKey;
|
|
74910
74900
|
var init_swift_packages = __esm({
|
|
74911
74901
|
"src/swift-packages.ts"() {
|
|
74912
74902
|
"use strict";
|
|
74913
74903
|
import_node_child_process48 = require("node:child_process");
|
|
74914
|
-
|
|
74904
|
+
import_node_crypto61 = require("node:crypto");
|
|
74915
74905
|
import_node_fs99 = __toESM(require("node:fs"), 1);
|
|
74916
74906
|
import_node_path100 = __toESM(require("node:path"), 1);
|
|
74917
|
-
|
|
74907
|
+
import_promises10 = require("node:timers/promises");
|
|
74918
74908
|
import_node_util13 = require("node:util");
|
|
74919
74909
|
init_git_repo_env();
|
|
74920
74910
|
init_home_paths();
|
|
@@ -75521,7 +75511,7 @@ var init_genrule_library_builds = __esm({
|
|
|
75521
75511
|
function nativeFrameworkCompiler(moduleRoot, toolchainBin, directory2) {
|
|
75522
75512
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
75523
75513
|
const sdk2 = swiftSdkPaths(moduleRoot, toolchainBin);
|
|
75524
|
-
const identity2 = (0,
|
|
75514
|
+
const identity2 = (0, import_node_crypto62.createHash)("sha256").update(
|
|
75525
75515
|
JSON.stringify([
|
|
75526
75516
|
distribution?.id,
|
|
75527
75517
|
distribution?.link,
|
|
@@ -75547,7 +75537,7 @@ function nativeFrameworkCompiler(moduleRoot, toolchainBin, directory2) {
|
|
|
75547
75537
|
for (const alias of product.frameworkAliases) {
|
|
75548
75538
|
if (alias.wasmSdkId !== distribution.wasmSdkId || alias.wasmSdkChecksum !== distribution.wasmSdkChecksum)
|
|
75549
75539
|
throw new Error(`framework SDK identity differs for ${alias.name}`);
|
|
75550
|
-
if ((0,
|
|
75540
|
+
if ((0, import_node_crypto62.createHash)("sha256").update(import_node_fs102.default.readFileSync(import_node_path103.default.join(moduleRoot, alias.moduleMap))).digest("hex") !== alias.moduleMapSha256)
|
|
75551
75541
|
throw new Error(`framework module map changed ${alias.moduleMap}`);
|
|
75552
75542
|
const selected = /* @__PURE__ */ new Set();
|
|
75553
75543
|
const reach = (name3) => {
|
|
@@ -75588,7 +75578,7 @@ function nativeFrameworkCompiler(moduleRoot, toolchainBin, directory2) {
|
|
|
75588
75578
|
for (const alias of owner.frameworkAliases) {
|
|
75589
75579
|
if (frameworkResponses[alias.name])
|
|
75590
75580
|
throw new Error(`ambiguous declared framework ${alias.name}`);
|
|
75591
|
-
if ((0,
|
|
75581
|
+
if ((0, import_node_crypto62.createHash)("sha256").update(import_node_fs102.default.readFileSync(import_node_path103.default.join(sdkRoot, alias.moduleMap))).digest("hex") !== alias.moduleMapSha256)
|
|
75592
75582
|
throw new Error(`framework module map changed ${alias.moduleMap}`);
|
|
75593
75583
|
const file = import_node_path103.default.join(root, `${alias.name}.rsp`);
|
|
75594
75584
|
import_node_fs102.default.writeFileSync(file, aliasArtifacts.map(quote3).join("\n") + "\n");
|
|
@@ -75682,11 +75672,11 @@ exec ${shellQuote(configuration.compiler)} "$@"
|
|
|
75682
75672
|
};
|
|
75683
75673
|
return { cc: compiler("clang"), cxx: compiler("clang++"), identity: identity2 };
|
|
75684
75674
|
}
|
|
75685
|
-
var
|
|
75675
|
+
var import_node_crypto62, import_node_fs102, import_node_path103, v7;
|
|
75686
75676
|
var init_native_framework_compiler = __esm({
|
|
75687
75677
|
"src/native-framework-compiler.ts"() {
|
|
75688
75678
|
"use strict";
|
|
75689
|
-
|
|
75679
|
+
import_node_crypto62 = require("node:crypto");
|
|
75690
75680
|
import_node_fs102 = __toESM(require("node:fs"), 1);
|
|
75691
75681
|
import_node_path103 = __toESM(require("node:path"), 1);
|
|
75692
75682
|
v7 = __toESM(require("peachsim/vendor/valibot"), 1);
|
|
@@ -75716,7 +75706,7 @@ function llvmIdentity(toolchainBin, release) {
|
|
|
75716
75706
|
] : ["clang", "wasm-ld", "llvm-ar", "llvm-nm", "llvm-strip"].map(
|
|
75717
75707
|
(name3) => swiftFileChecksum(import_node_path104.default.join(toolchainBin, name3))
|
|
75718
75708
|
);
|
|
75719
|
-
const identity2 = (0,
|
|
75709
|
+
const identity2 = (0, import_node_crypto63.createHash)("sha256").update(JSON.stringify(components)).digest("hex");
|
|
75720
75710
|
toolIdentities.set(toolchainBin, identity2);
|
|
75721
75711
|
return identity2;
|
|
75722
75712
|
}
|
|
@@ -75724,7 +75714,7 @@ function cSdkIdentity(sysroot, resourceDir, frameworks) {
|
|
|
75724
75714
|
const key2 = JSON.stringify([sysroot, resourceDir, frameworks]);
|
|
75725
75715
|
const cached2 = sysrootIdentities.get(key2);
|
|
75726
75716
|
if (cached2) return cached2;
|
|
75727
|
-
const hash = (0,
|
|
75717
|
+
const hash = (0, import_node_crypto63.createHash)("sha256");
|
|
75728
75718
|
const add = (root, relative3) => {
|
|
75729
75719
|
const file = import_node_path104.default.join(root, relative3);
|
|
75730
75720
|
const stat = import_node_fs103.default.statSync(file, { throwIfNoEntry: false });
|
|
@@ -75759,7 +75749,7 @@ function frameworkProbeIdentity(moduleRoot, toolchainBin) {
|
|
|
75759
75749
|
import_node_fs103.default.readFileSync(import_node_path104.default.join(moduleRoot, SWIFT_FRAMEWORK_PRODUCT_FILE), "utf8")
|
|
75760
75750
|
)
|
|
75761
75751
|
);
|
|
75762
|
-
const hash = (0,
|
|
75752
|
+
const hash = (0, import_node_crypto63.createHash)("sha256").update(
|
|
75763
75753
|
JSON.stringify([
|
|
75764
75754
|
headers,
|
|
75765
75755
|
distribution.link,
|
|
@@ -75769,7 +75759,7 @@ function frameworkProbeIdentity(moduleRoot, toolchainBin) {
|
|
|
75769
75759
|
])
|
|
75770
75760
|
);
|
|
75771
75761
|
const objects = distribution.objects.map((file) => [file, distribution.files[file]]);
|
|
75772
|
-
const objectKey = (0,
|
|
75762
|
+
const objectKey = (0, import_node_crypto63.createHash)("sha256").update(JSON.stringify(objects)).digest("hex");
|
|
75773
75763
|
const cache = import_node_path104.default.join(cacheDir4, "framework-symbols-by-object", objectKey);
|
|
75774
75764
|
if (!import_node_fs103.default.existsSync(cache)) {
|
|
75775
75765
|
import_node_fs103.default.mkdirSync(import_node_path104.default.dirname(cache), { recursive: true });
|
|
@@ -75804,7 +75794,7 @@ function frameworkProbeIdentity(moduleRoot, toolchainBin) {
|
|
|
75804
75794
|
const digest2 = import_node_path104.default.join(temporary, "digest");
|
|
75805
75795
|
import_node_fs103.default.writeFileSync(
|
|
75806
75796
|
digest2,
|
|
75807
|
-
(0,
|
|
75797
|
+
(0, import_node_crypto63.createHash)("sha256").update(symbols.sort().join("\n")).digest("hex")
|
|
75808
75798
|
);
|
|
75809
75799
|
import_node_fs103.default.renameSync(digest2, cache);
|
|
75810
75800
|
} finally {
|
|
@@ -75859,7 +75849,7 @@ function buildable(declaration) {
|
|
|
75859
75849
|
return builderOf(declaration) !== null && declaration.dependencies.every(buildable);
|
|
75860
75850
|
}
|
|
75861
75851
|
function declarationInputs(declaration, builder, toolchain, dependencyKeys) {
|
|
75862
|
-
const hash = (0,
|
|
75852
|
+
const hash = (0, import_node_crypto63.createHash)("sha256");
|
|
75863
75853
|
const files2 = declaration.sources.filter(
|
|
75864
75854
|
(source) => !source.generator && !source.file.split(import_node_path104.default.sep).includes(".git")
|
|
75865
75855
|
).map((source) => import_node_path104.default.relative(declaration.packageDir, source.file));
|
|
@@ -75991,12 +75981,12 @@ function genruleArchive(declaration, library, moduleRoot) {
|
|
|
75991
75981
|
}
|
|
75992
75982
|
return combined;
|
|
75993
75983
|
}
|
|
75994
|
-
var import_node_child_process51,
|
|
75984
|
+
var import_node_child_process51, import_node_crypto63, import_node_fs103, import_node_os21, import_node_path104, v8, BUILDERS, cacheDir4, toolIdentities, sysrootIdentities, GENRULE_RECIPE, GENRULE_BUNDLE;
|
|
75995
75985
|
var init_genrule_archives = __esm({
|
|
75996
75986
|
"src/genrule-archives.ts"() {
|
|
75997
75987
|
"use strict";
|
|
75998
75988
|
import_node_child_process51 = require("node:child_process");
|
|
75999
|
-
|
|
75989
|
+
import_node_crypto63 = require("node:crypto");
|
|
76000
75990
|
import_node_fs103 = __toESM(require("node:fs"), 1);
|
|
76001
75991
|
import_node_os21 = __toESM(require("node:os"), 1);
|
|
76002
75992
|
import_node_path104 = __toESM(require("node:path"), 1);
|
|
@@ -76104,7 +76094,7 @@ function privateSentrySlice(entry, moduleRoot) {
|
|
|
76104
76094
|
function nativeSwiftSlice(standin, moduleRoot, generator, configured, artifact) {
|
|
76105
76095
|
if (standin.module !== SENTRY_SWIFT_SLICE.name) return standin;
|
|
76106
76096
|
const native = simulatorNativeLibrary(artifact());
|
|
76107
|
-
if (!native || (0,
|
|
76097
|
+
if (!native || (0, import_node_crypto64.createHash)("sha256").update(import_node_fs104.default.readFileSync(native.file)).digest("hex") !== SENTRY_SWIFT_SLICE.nativeSha256)
|
|
76108
76098
|
return standin;
|
|
76109
76099
|
if (configured)
|
|
76110
76100
|
throw new Error(
|
|
@@ -76162,12 +76152,12 @@ function nativeSwiftSlice(standin, moduleRoot, generator, configured, artifact)
|
|
|
76162
76152
|
}
|
|
76163
76153
|
};
|
|
76164
76154
|
}
|
|
76165
|
-
var import_node_child_process52,
|
|
76155
|
+
var import_node_child_process52, import_node_crypto64, import_node_fs104, import_node_os22, import_node_path105, SENTRY_SWIFT_SLICE;
|
|
76166
76156
|
var init_native_swift_slices = __esm({
|
|
76167
76157
|
"src/native-swift-slices.ts"() {
|
|
76168
76158
|
"use strict";
|
|
76169
76159
|
import_node_child_process52 = require("node:child_process");
|
|
76170
|
-
|
|
76160
|
+
import_node_crypto64 = require("node:crypto");
|
|
76171
76161
|
import_node_fs104 = __toESM(require("node:fs"), 1);
|
|
76172
76162
|
import_node_os22 = __toESM(require("node:os"), 1);
|
|
76173
76163
|
import_node_path105 = __toESM(require("node:path"), 1);
|
|
@@ -76225,7 +76215,7 @@ async function cxxDeclarations(astFile, headers) {
|
|
|
76225
76215
|
const result = [];
|
|
76226
76216
|
let lastFile = "";
|
|
76227
76217
|
let rootComplete = false;
|
|
76228
|
-
await (0,
|
|
76218
|
+
await (0, import_promises11.pipeline)(import_node_fs106.default.createReadStream(astFile), (0, import_stream_json.default)(), async (tokens2) => {
|
|
76229
76219
|
for await (const value of tokens2) {
|
|
76230
76220
|
if (!value || typeof value !== "object" || !("name" in value) || typeof value.name !== "string")
|
|
76231
76221
|
throw new Error("invalid clang AST token");
|
|
@@ -76319,13 +76309,13 @@ async function cxxDeclarations(astFile, headers) {
|
|
|
76319
76309
|
if (stack.length !== 0 || !rootComplete) throw new Error("truncated clang AST");
|
|
76320
76310
|
return result;
|
|
76321
76311
|
}
|
|
76322
|
-
var import_node_fs106, import_node_path106,
|
|
76312
|
+
var import_node_fs106, import_node_path106, import_promises11, import_stream_json, DECLARATIONS;
|
|
76323
76313
|
var init_swift_cxx_declarations = __esm({
|
|
76324
76314
|
"src/swift-cxx-declarations.ts"() {
|
|
76325
76315
|
"use strict";
|
|
76326
76316
|
import_node_fs106 = __toESM(require("node:fs"), 1);
|
|
76327
76317
|
import_node_path106 = __toESM(require("node:path"), 1);
|
|
76328
|
-
|
|
76318
|
+
import_promises11 = require("node:stream/promises");
|
|
76329
76319
|
import_stream_json = __toESM(require("peachsim/vendor/stream-json"), 1);
|
|
76330
76320
|
DECLARATIONS = /* @__PURE__ */ new Set([
|
|
76331
76321
|
"FunctionDecl",
|
|
@@ -76903,7 +76893,7 @@ function treeDigest2(root) {
|
|
|
76903
76893
|
}).join("\n");
|
|
76904
76894
|
const memo2 = digests.get(`tree\0${root}`);
|
|
76905
76895
|
if (memo2?.stamp === stamp) return memo2.digest;
|
|
76906
|
-
const hash = (0,
|
|
76896
|
+
const hash = (0, import_node_crypto65.createHash)("sha256");
|
|
76907
76897
|
for (const name3 of names) {
|
|
76908
76898
|
hash.update(`${name3}\0`);
|
|
76909
76899
|
hash.update(import_node_fs108.default.readFileSync(import_node_path108.default.join(root, name3)));
|
|
@@ -76950,7 +76940,7 @@ function swiftBinaryFramework(binary2) {
|
|
|
76950
76940
|
const found3 = locateXcframework(import_node_path108.default.join(dir, "tree"));
|
|
76951
76941
|
if (found3) return { dir: found3, digest: stored.sha };
|
|
76952
76942
|
}
|
|
76953
|
-
const sha2 = (0,
|
|
76943
|
+
const sha2 = (0, import_node_crypto65.createHash)("sha256").update(import_node_fs108.default.readFileSync(binary2.dir)).digest("hex");
|
|
76954
76944
|
if (sha2 !== stored?.sha || !locateXcframework(import_node_path108.default.join(dir, "tree"))) {
|
|
76955
76945
|
import_node_fs108.default.rmSync(dir, { recursive: true, force: true });
|
|
76956
76946
|
import_node_fs108.default.mkdirSync(import_node_path108.default.join(dir, "tree"), { recursive: true });
|
|
@@ -76962,7 +76952,7 @@ function swiftBinaryFramework(binary2) {
|
|
|
76962
76952
|
return { dir: found2, digest: sha2 };
|
|
76963
76953
|
}
|
|
76964
76954
|
if (stored && import_node_fs108.default.existsSync(archive)) {
|
|
76965
|
-
const sha2 = (0,
|
|
76955
|
+
const sha2 = (0, import_node_crypto65.createHash)("sha256").update(import_node_fs108.default.readFileSync(archive)).digest("hex");
|
|
76966
76956
|
if (sha2 !== expected)
|
|
76967
76957
|
throw new Error(`archive checksum ${sha2} is not the declared checksum ${expected}`);
|
|
76968
76958
|
const found2 = locateXcframework(import_node_path108.default.join(dir, "tree"));
|
|
@@ -76971,7 +76961,7 @@ function swiftBinaryFramework(binary2) {
|
|
|
76971
76961
|
import_node_fs108.default.rmSync(dir, { recursive: true, force: true });
|
|
76972
76962
|
import_node_fs108.default.mkdirSync(import_node_path108.default.join(dir, "tree"), { recursive: true });
|
|
76973
76963
|
exec("curl", ["-fsSL", "--retry", "2", "-o", archive, binary2.url]);
|
|
76974
|
-
const sha = (0,
|
|
76964
|
+
const sha = (0, import_node_crypto65.createHash)("sha256").update(import_node_fs108.default.readFileSync(archive)).digest("hex");
|
|
76975
76965
|
if (sha !== expected) {
|
|
76976
76966
|
import_node_fs108.default.rmSync(dir, { recursive: true, force: true });
|
|
76977
76967
|
throw new Error(`archive checksum ${sha} is not the declared checksum ${expected}`);
|
|
@@ -77096,7 +77086,7 @@ function binaryHeaderSearchPaths(binary2, root, workspaceRoot2, declaredFramewor
|
|
|
77096
77086
|
});
|
|
77097
77087
|
}
|
|
77098
77088
|
}
|
|
77099
|
-
const declaredDigest = (0,
|
|
77089
|
+
const declaredDigest = (0, import_node_crypto65.createHash)("sha256");
|
|
77100
77090
|
for (const framework of providedFrameworks)
|
|
77101
77091
|
declaredDigest.update(`provided/${import_node_path108.default.relative(artifact.dir, framework)}\0`);
|
|
77102
77092
|
for (const [framework, { declared: names, imports: imports2, sdkHeader }] of declared)
|
|
@@ -77166,7 +77156,7 @@ function binaryHeaderSearchPaths(binary2, root, workspaceRoot2, declaredFramewor
|
|
|
77166
77156
|
import_node_fs108.default.copyFileSync(surface.modulemap, modulemap);
|
|
77167
77157
|
}
|
|
77168
77158
|
}
|
|
77169
|
-
const contents2 = (0,
|
|
77159
|
+
const contents2 = (0, import_node_crypto65.createHash)("sha256");
|
|
77170
77160
|
for (const framework of providedFrameworks.filter((item) => !declared.has(item))) {
|
|
77171
77161
|
const modulemap = import_node_path108.default.join(
|
|
77172
77162
|
pending,
|
|
@@ -78581,7 +78571,7 @@ function crateSourceRoots(manifest, searchRoot) {
|
|
|
78581
78571
|
return roots;
|
|
78582
78572
|
}
|
|
78583
78573
|
function crateSourceDigest(manifest, searchRoot) {
|
|
78584
|
-
const hash = (0,
|
|
78574
|
+
const hash = (0, import_node_crypto65.createHash)("sha256");
|
|
78585
78575
|
const walk4 = (dir, root) => {
|
|
78586
78576
|
for (const entry of import_node_fs108.default.readdirSync(dir, { withFileTypes: true }).sort((left, right) => left.name < right.name ? -1 : 1)) {
|
|
78587
78577
|
const full = import_node_path108.default.join(dir, entry.name);
|
|
@@ -79028,7 +79018,7 @@ function standinGenerationInputs(binaries, toolchain, configuredBehavior = {}, s
|
|
|
79028
79018
|
...swiftSources.flags,
|
|
79029
79019
|
...swiftSources.sources.flatMap((source) => [
|
|
79030
79020
|
source,
|
|
79031
|
-
(0,
|
|
79021
|
+
(0, import_node_crypto65.createHash)("sha256").update(import_node_fs108.default.readFileSync(import_node_path108.default.join(binary2.dir, source))).digest("hex")
|
|
79032
79022
|
])
|
|
79033
79023
|
);
|
|
79034
79024
|
continue;
|
|
@@ -79064,7 +79054,7 @@ function standinGenerationInputs(binaries, toolchain, configuredBehavior = {}, s
|
|
|
79064
79054
|
);
|
|
79065
79055
|
}
|
|
79066
79056
|
}
|
|
79067
|
-
return (0,
|
|
79057
|
+
return (0, import_node_crypto65.createHash)("sha256").update(parts.join("\0")).digest("hex");
|
|
79068
79058
|
}
|
|
79069
79059
|
function missingArtifactGap(binary2) {
|
|
79070
79060
|
if (swiftBinaryOnDisk(binary2)) return null;
|
|
@@ -79146,7 +79136,7 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
79146
79136
|
return NO_IMPORTABLE_SURFACE;
|
|
79147
79137
|
}
|
|
79148
79138
|
const configured = new Map(Object.entries(behavior));
|
|
79149
|
-
const hash = (0,
|
|
79139
|
+
const hash = (0, import_node_crypto65.createHash)("sha256").update(
|
|
79150
79140
|
standinGenerationInputs([binary2], toolchain, behavior)
|
|
79151
79141
|
);
|
|
79152
79142
|
hash.update(digest2);
|
|
@@ -79386,7 +79376,7 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
|
|
|
79386
79376
|
);
|
|
79387
79377
|
if (binary2.moduleSources !== void 0)
|
|
79388
79378
|
frameworkInputs.push(
|
|
79389
|
-
`${binary2.target}\0${(0,
|
|
79379
|
+
`${binary2.target}\0${(0, import_node_crypto65.createHash)("sha256").update(
|
|
79390
79380
|
[iosSdkId(), ...swiftSources.flags, ...swiftSources.sources, ...texts].join(
|
|
79391
79381
|
"\0"
|
|
79392
79382
|
)
|
|
@@ -79427,7 +79417,7 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
|
|
|
79427
79417
|
import_node_fs108.default.mkdirSync(sourceFrameworks);
|
|
79428
79418
|
const frameworks = {
|
|
79429
79419
|
dirs: [...frameworkDirs, sourceFrameworks].sort(),
|
|
79430
|
-
digest: (0,
|
|
79420
|
+
digest: (0, import_node_crypto65.createHash)("sha256").update(frameworkInputs.sort().join("\0")).digest("hex"),
|
|
79431
79421
|
surfaces: frameworkSurfaces
|
|
79432
79422
|
};
|
|
79433
79423
|
const siblings = new Map(
|
|
@@ -79546,12 +79536,12 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
|
|
|
79546
79536
|
import_node_fs108.default.rmSync(modules, { recursive: true, force: true });
|
|
79547
79537
|
}
|
|
79548
79538
|
}
|
|
79549
|
-
var import_node_child_process54,
|
|
79539
|
+
var import_node_child_process54, import_node_crypto65, import_node_fs108, import_node_path108, TRIPLE, cacheDir5, key, digests, isBinaryLibraryFile, OBJC_IMPORT, files, OBJC, NO_IMPORTABLE_SURFACE, OBJC_ATTRIBUTE, TYPE_DECLARATION, OPTIONAL_REQUIREMENT, WASM_EH_FLAGS, OBJC_UNREPRESENTABLE, INERT_VALUE, identChar, RUST_TARGET, UNSEARCHED, RUST_TOOLCHAIN, built;
|
|
79550
79540
|
var init_swift_standins = __esm({
|
|
79551
79541
|
"src/swift-standins.ts"() {
|
|
79552
79542
|
"use strict";
|
|
79553
79543
|
import_node_child_process54 = require("node:child_process");
|
|
79554
|
-
|
|
79544
|
+
import_node_crypto65 = require("node:crypto");
|
|
79555
79545
|
import_node_fs108 = __toESM(require("node:fs"), 1);
|
|
79556
79546
|
import_node_path108 = __toESM(require("node:path"), 1);
|
|
79557
79547
|
init_forked_script_contract();
|
|
@@ -79583,7 +79573,7 @@ var init_swift_standins = __esm({
|
|
|
79583
79573
|
init_swiftTargetContract();
|
|
79584
79574
|
TRIPLE = SWIFT_WASM_TRIPLE;
|
|
79585
79575
|
cacheDir5 = import_node_path108.default.join(cacheDir(), "swift-standins");
|
|
79586
|
-
key = (...parts) => (0,
|
|
79576
|
+
key = (...parts) => (0, import_node_crypto65.createHash)("sha256").update(parts.join("\0")).digest("hex").slice(0, 32);
|
|
79587
79577
|
digests = /* @__PURE__ */ new Map();
|
|
79588
79578
|
isBinaryLibraryFile = (file) => /\.(?:a|dylib|o|tbd)$/i.test(file);
|
|
79589
79579
|
OBJC_IMPORT = /#\s*(?:import|include)\s*[<"](?:[\w+-]+\/)?([\w+.-]+\.h)[>"]/g;
|
|
@@ -79821,14 +79811,14 @@ function* xcodeObjCInputSteps(app, binaries, moduleRoot, products, sourceRoot =
|
|
|
79821
79811
|
Infinity
|
|
79822
79812
|
);
|
|
79823
79813
|
const backport = DOUBLE_CONVERSION_WASM64_BACKPORT;
|
|
79824
|
-
if (import_node_path109.default.basename(file) !== "utils.h" || (0,
|
|
79814
|
+
if (import_node_path109.default.basename(file) !== "utils.h" || (0, import_node_crypto66.createHash)("sha256").update(bytes).digest("hex") !== backport.originalSha256) {
|
|
79825
79815
|
sources.set(file, bytes);
|
|
79826
79816
|
return;
|
|
79827
79817
|
}
|
|
79828
79818
|
const derived = Buffer.from(
|
|
79829
79819
|
bytes.toString("utf8").replace(backport.before, backport.after)
|
|
79830
79820
|
);
|
|
79831
|
-
if ((0,
|
|
79821
|
+
if ((0, import_node_crypto66.createHash)("sha256").update(derived).digest("hex") !== backport.derivedSha256)
|
|
79832
79822
|
throw new Error(`DoubleConversion backport derived source differs: ${file}`);
|
|
79833
79823
|
sources.set(file, derived);
|
|
79834
79824
|
derivations[file] = {
|
|
@@ -80234,7 +80224,7 @@ function prepareXcodeSwiftProducts(app, binaries, moduleRoot) {
|
|
|
80234
80224
|
const staged = withFrameworkCompanionImports(original);
|
|
80235
80225
|
if (staged !== original) sources.set(file, Buffer.from(staged));
|
|
80236
80226
|
}
|
|
80237
|
-
const digest2 = (bytes) => (0,
|
|
80227
|
+
const digest2 = (bytes) => (0, import_node_crypto66.createHash)("sha256").update(bytes).digest("hex");
|
|
80238
80228
|
const providers = /* @__PURE__ */ new Map();
|
|
80239
80229
|
for (const target of targets) {
|
|
80240
80230
|
if (!supplied.has(target.moduleName)) continue;
|
|
@@ -80588,7 +80578,7 @@ async function prepareXcodeNativeInputs(app, binaries, moduleRoot, purpose) {
|
|
|
80588
80578
|
products
|
|
80589
80579
|
);
|
|
80590
80580
|
const checkouts = remoteSwiftCheckouts(app.rootDir);
|
|
80591
|
-
const digest2 = (bytes) => (0,
|
|
80581
|
+
const digest2 = (bytes) => (0, import_node_crypto66.createHash)("sha256").update(bytes).digest("hex");
|
|
80592
80582
|
const inputs2 = Object.fromEntries(
|
|
80593
80583
|
[...sources].map(([file, bytes]) => [file, digest2(bytes)])
|
|
80594
80584
|
);
|
|
@@ -80952,12 +80942,12 @@ ${reported.trimEnd() || `Clang exited with status ${result.status}`}`;
|
|
|
80952
80942
|
import_node_fs109.default.closeSync(descriptor);
|
|
80953
80943
|
}
|
|
80954
80944
|
}
|
|
80955
|
-
var import_node_child_process55,
|
|
80945
|
+
var import_node_child_process55, import_node_crypto66, import_node_fs109, import_node_path109, SwiftObjCCompilationError, isDirectory4, isSdkInclude, FRAMEWORK_IMPORT, OWN_IMPORT;
|
|
80956
80946
|
var init_swift_objc_compile = __esm({
|
|
80957
80947
|
"src/swift-objc-compile.ts"() {
|
|
80958
80948
|
"use strict";
|
|
80959
80949
|
import_node_child_process55 = require("node:child_process");
|
|
80960
|
-
|
|
80950
|
+
import_node_crypto66 = require("node:crypto");
|
|
80961
80951
|
import_node_fs109 = __toESM(require("node:fs"), 1);
|
|
80962
80952
|
import_node_path109 = __toESM(require("node:path"), 1);
|
|
80963
80953
|
init_mapLimit();
|
|
@@ -81459,7 +81449,7 @@ function collectInstalledSwiftBridgeUnits(appRoot, units, installedNamespaces, s
|
|
|
81459
81449
|
const dependencies = manifest && typeof manifest === "object" ? Reflect.get(manifest, "dependencies") : null;
|
|
81460
81450
|
if (!dependencies || typeof dependencies !== "object" || Array.isArray(dependencies))
|
|
81461
81451
|
return;
|
|
81462
|
-
const appRequire = (0,
|
|
81452
|
+
const appRequire = (0, import_node_module13.createRequire)(manifestPath);
|
|
81463
81453
|
const namespacesSeen = new Set(units.map((unit2) => unit2.namespace));
|
|
81464
81454
|
for (const packageName of Object.keys(dependencies).sort()) {
|
|
81465
81455
|
signal?.throwIfAborted();
|
|
@@ -81553,12 +81543,12 @@ public func ${register}() -> RCTModuleHost.Registration {
|
|
|
81553
81543
|
}
|
|
81554
81544
|
}
|
|
81555
81545
|
}
|
|
81556
|
-
var import_node_fs110,
|
|
81546
|
+
var import_node_fs110, import_node_module13, import_node_path110, DIRECTIVE, swiftString, BRIDGE_MODULE_FILE_PREFIX;
|
|
81557
81547
|
var init_react_native_bridge_modules = __esm({
|
|
81558
81548
|
"src/react-native-bridge-modules.ts"() {
|
|
81559
81549
|
"use strict";
|
|
81560
81550
|
import_node_fs110 = __toESM(require("node:fs"), 1);
|
|
81561
|
-
|
|
81551
|
+
import_node_module13 = require("node:module");
|
|
81562
81552
|
import_node_path110 = __toESM(require("node:path"), 1);
|
|
81563
81553
|
init_answeredNativePackages();
|
|
81564
81554
|
init_swift_compile();
|
|
@@ -81589,6 +81579,41 @@ var init_nitro_adapter = __esm({
|
|
|
81589
81579
|
}
|
|
81590
81580
|
});
|
|
81591
81581
|
|
|
81582
|
+
// ../../src/ios/pngHeader.ts
|
|
81583
|
+
function readPngHeader(bytes) {
|
|
81584
|
+
if (bytes.byteLength < 26) return null;
|
|
81585
|
+
for (let i = 0; i < PNG_SIGNATURE.length; i++) {
|
|
81586
|
+
if (bytes[i] !== PNG_SIGNATURE[i]) return null;
|
|
81587
|
+
}
|
|
81588
|
+
if (bytes[12] !== 73 || bytes[13] !== 72 || bytes[14] !== 68 || bytes[15] !== 82) {
|
|
81589
|
+
return null;
|
|
81590
|
+
}
|
|
81591
|
+
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
81592
|
+
const width = view.getUint32(16, false);
|
|
81593
|
+
const height = view.getUint32(20, false);
|
|
81594
|
+
const bitDepth = bytes[24] ?? 0;
|
|
81595
|
+
const colorType = bytes[25] ?? 0;
|
|
81596
|
+
return {
|
|
81597
|
+
width,
|
|
81598
|
+
height,
|
|
81599
|
+
bitDepth,
|
|
81600
|
+
colorType,
|
|
81601
|
+
hasAlpha: ALPHA_COLOR_TYPES.has(colorType)
|
|
81602
|
+
};
|
|
81603
|
+
}
|
|
81604
|
+
function readPngDimensions(bytes) {
|
|
81605
|
+
const h = readPngHeader(bytes);
|
|
81606
|
+
return h ? { width: h.width, height: h.height } : null;
|
|
81607
|
+
}
|
|
81608
|
+
var PNG_SIGNATURE, ALPHA_COLOR_TYPES;
|
|
81609
|
+
var init_pngHeader = __esm({
|
|
81610
|
+
"../../src/ios/pngHeader.ts"() {
|
|
81611
|
+
"use strict";
|
|
81612
|
+
PNG_SIGNATURE = [137, 80, 78, 71, 13, 10, 26, 10];
|
|
81613
|
+
ALPHA_COLOR_TYPES = /* @__PURE__ */ new Set([4, 6]);
|
|
81614
|
+
}
|
|
81615
|
+
});
|
|
81616
|
+
|
|
81592
81617
|
// ../../node_modules/svgpath/lib/path_parse.js
|
|
81593
81618
|
var require_path_parse = __commonJS({
|
|
81594
81619
|
"../../node_modules/svgpath/lib/path_parse.js"(exports2, module2) {
|
|
@@ -84960,11 +84985,11 @@ function coreDataModelDirectories(files2) {
|
|
|
84960
84985
|
}
|
|
84961
84986
|
return [...models].sort();
|
|
84962
84987
|
}
|
|
84963
|
-
var
|
|
84988
|
+
var import_node_crypto67, import_node_fs113, import_node_path113, attributeTypes, deleteRules, EXTERNAL_BINARY, PRESERVE_AFTER_DELETION, yes, common, uid, NULL, classChains, KeyedArchive, sha2563;
|
|
84964
84989
|
var init_core_data_model = __esm({
|
|
84965
84990
|
"src/core-data-model.ts"() {
|
|
84966
84991
|
"use strict";
|
|
84967
|
-
|
|
84992
|
+
import_node_crypto67 = require("node:crypto");
|
|
84968
84993
|
import_node_fs113 = require("node:fs");
|
|
84969
84994
|
import_node_path113 = __toESM(require("node:path"), 1);
|
|
84970
84995
|
init_core_data_entity_classes();
|
|
@@ -85083,7 +85108,7 @@ var init_core_data_model = __esm({
|
|
|
85083
85108
|
});
|
|
85084
85109
|
}
|
|
85085
85110
|
};
|
|
85086
|
-
sha2563 = (...parts) => (0,
|
|
85111
|
+
sha2563 = (...parts) => (0, import_node_crypto67.createHash)("sha256").update(
|
|
85087
85112
|
Buffer.concat(
|
|
85088
85113
|
parts.map(
|
|
85089
85114
|
(part) => Array.isArray(part) ? Buffer.from(part) : Buffer.from(part)
|
|
@@ -87281,7 +87306,7 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
|
|
|
87281
87306
|
(binary2) => binary2.publicHeaders === void 0 && binary2.placeholder === void 0 && swiftBinaryOnDisk(binary2) && binaryHeaderSearchPaths(binary2, staged, app.rootDir).headers.length === 1
|
|
87282
87307
|
))
|
|
87283
87308
|
return [...binaries];
|
|
87284
|
-
const hash = (0,
|
|
87309
|
+
const hash = (0, import_node_crypto68.createHash)("sha256");
|
|
87285
87310
|
hash.update(
|
|
87286
87311
|
JSON.stringify([
|
|
87287
87312
|
inputs2.targets,
|
|
@@ -87490,12 +87515,12 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
|
|
|
87490
87515
|
);
|
|
87491
87516
|
return result;
|
|
87492
87517
|
}
|
|
87493
|
-
var import_node_child_process57,
|
|
87518
|
+
var import_node_child_process57, import_node_crypto68, import_node_fs114, import_node_path114, cachedInputs;
|
|
87494
87519
|
var init_swift_cxx_reachable = __esm({
|
|
87495
87520
|
"src/swift-cxx-reachable.ts"() {
|
|
87496
87521
|
"use strict";
|
|
87497
87522
|
import_node_child_process57 = require("node:child_process");
|
|
87498
|
-
|
|
87523
|
+
import_node_crypto68 = require("node:crypto");
|
|
87499
87524
|
import_node_fs114 = __toESM(require("node:fs"), 1);
|
|
87500
87525
|
import_node_path114 = __toESM(require("node:path"), 1);
|
|
87501
87526
|
init_is_record();
|
|
@@ -87813,7 +87838,7 @@ async function wasmPortableAssembly(binaries, toolchainBin, moduleRoot) {
|
|
|
87813
87838
|
const clang = import_node_path116.default.join(toolchainBin, "clang");
|
|
87814
87839
|
const empty = (binary2, file) => {
|
|
87815
87840
|
const source = import_node_path116.default.join(binary2.dir, file);
|
|
87816
|
-
const key2 = (0,
|
|
87841
|
+
const key2 = (0, import_node_crypto69.createHash)("sha256").update(
|
|
87817
87842
|
JSON.stringify([
|
|
87818
87843
|
clang,
|
|
87819
87844
|
sdk2.sysroot,
|
|
@@ -87858,7 +87883,7 @@ async function wasmPortableAssembly(binaries, toolchainBin, moduleRoot) {
|
|
|
87858
87883
|
return new Set(portable.flat());
|
|
87859
87884
|
}
|
|
87860
87885
|
async function swiftPackages(entry, app) {
|
|
87861
|
-
const stamp = (file) => import_node_fs116.default.existsSync(file) ? (0,
|
|
87886
|
+
const stamp = (file) => import_node_fs116.default.existsSync(file) ? (0, import_node_crypto69.createHash)("sha256").update(import_node_fs116.default.readFileSync(file)).digest("hex") : null;
|
|
87862
87887
|
const owners = [...app.frameworks, app].map((target) => ({
|
|
87863
87888
|
module: target.moduleName,
|
|
87864
87889
|
products: target.packageProducts ?? []
|
|
@@ -89021,7 +89046,7 @@ async function buildSwiftResourceTable(project, baseUrl, inputs2) {
|
|
|
89021
89046
|
const source = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true }).decode(
|
|
89022
89047
|
bytes
|
|
89023
89048
|
);
|
|
89024
|
-
const sha2565 = (0,
|
|
89049
|
+
const sha2565 = (0, import_node_crypto69.createHash)("sha256").update(bytes).digest("hex");
|
|
89025
89050
|
const bundle = swiftResourceBundleForFile(bundles, key2);
|
|
89026
89051
|
if (!bundle && inputs2["Package.swift"])
|
|
89027
89052
|
throw new Error(`metal source ${key2} has no resource target bundle`);
|
|
@@ -89044,7 +89069,7 @@ async function buildSwiftResourceTable(project, baseUrl, inputs2) {
|
|
|
89044
89069
|
const bytes = readPackageFile2(project.packagePath, disk, limits.imageBytes);
|
|
89045
89070
|
pdfs.set(file, {
|
|
89046
89071
|
file: disk,
|
|
89047
|
-
sha256: (0,
|
|
89072
|
+
sha256: (0, import_node_crypto69.createHash)("sha256").update(bytes).digest("hex")
|
|
89048
89073
|
});
|
|
89049
89074
|
}
|
|
89050
89075
|
const pdfRasters = rasterizePdfFiles([...pdfs.values()], limits);
|
|
@@ -89090,13 +89115,15 @@ async function buildSwiftResourceTable(project, baseUrl, inputs2) {
|
|
|
89090
89115
|
throw new Error("swift image pack exceeds the compile service caps");
|
|
89091
89116
|
}
|
|
89092
89117
|
imageBytes += bytes.length;
|
|
89093
|
-
const hash = (0,
|
|
89118
|
+
const hash = (0, import_node_crypto69.createHash)("sha256").update(bytes).digest("hex").slice(0, 16);
|
|
89094
89119
|
const bundle = table[bundlePath] ?? /* @__PURE__ */ Object.create(null);
|
|
89120
|
+
const pixelSize = ext === ".png" ? readPngDimensions(bytes) : null;
|
|
89095
89121
|
const variant2 = {
|
|
89096
89122
|
uri: `${baseUrl}${RESOURCE_PATH}${hash}${ext}`,
|
|
89097
89123
|
scale,
|
|
89098
89124
|
...appearance === void 0 ? {} : { appearance },
|
|
89099
|
-
...renderingMode ? { renderingMode } : {}
|
|
89125
|
+
...renderingMode ? { renderingMode } : {},
|
|
89126
|
+
...pixelSize?.width && pixelSize.height ? { pixelSize } : {}
|
|
89100
89127
|
};
|
|
89101
89128
|
for (const lookup2 of [name3, ...fileNames ?? []]) {
|
|
89102
89129
|
const variants = bundle[lookup2] ??= [];
|
|
@@ -89395,7 +89422,7 @@ function updateSwiftConfigStamp(hash, packagePath) {
|
|
|
89395
89422
|
hash.update(JSON.stringify(gates.map((name3) => swiftWasm64PlatformGates[name3])));
|
|
89396
89423
|
}
|
|
89397
89424
|
function sourceStamp(packagePath, moduleRootOverride, hosted = false) {
|
|
89398
|
-
const hash = (0,
|
|
89425
|
+
const hash = (0, import_node_crypto69.createHash)("sha256");
|
|
89399
89426
|
hash.update(packagePath);
|
|
89400
89427
|
updateSwiftConfigStamp(hash, packagePath);
|
|
89401
89428
|
const libraries = projects().get(packagePath)?.libraries;
|
|
@@ -89424,7 +89451,7 @@ function sourceStamp(packagePath, moduleRootOverride, hosted = false) {
|
|
|
89424
89451
|
return hash.digest("hex").slice(0, 16);
|
|
89425
89452
|
}
|
|
89426
89453
|
function sourceContentStamp(packagePath, moduleRootOverride) {
|
|
89427
|
-
const hash = (0,
|
|
89454
|
+
const hash = (0, import_node_crypto69.createHash)("sha256");
|
|
89428
89455
|
hash.update(compilerSourceDigest);
|
|
89429
89456
|
updateSwiftConfigStamp(hash, packagePath);
|
|
89430
89457
|
const libraries = projects().get(packagePath)?.libraries;
|
|
@@ -89456,7 +89483,7 @@ function moduleStamp(packagePath, moduleRootOverride, hosted) {
|
|
|
89456
89483
|
(root) => import_node_fs116.default.existsSync(import_node_path116.default.join(root, "toolchain.json"))
|
|
89457
89484
|
);
|
|
89458
89485
|
if (!moduleRoot) return "";
|
|
89459
|
-
const hash = (0,
|
|
89486
|
+
const hash = (0, import_node_crypto69.createHash)("sha256");
|
|
89460
89487
|
hash.update(moduleRoot);
|
|
89461
89488
|
for (const relative3 of swiftModuleInputFiles(moduleRoot)) {
|
|
89462
89489
|
hash.update(relative3);
|
|
@@ -89466,7 +89493,7 @@ function moduleStamp(packagePath, moduleRootOverride, hosted) {
|
|
|
89466
89493
|
}
|
|
89467
89494
|
function otherInputs(input, standalone) {
|
|
89468
89495
|
const { files: _files, ...rest } = input;
|
|
89469
|
-
return (0,
|
|
89496
|
+
return (0, import_node_crypto69.createHash)("sha256").update(JSON.stringify({ ...rest, standalone })).digest("hex");
|
|
89470
89497
|
}
|
|
89471
89498
|
function icuUrl(origin, artifact) {
|
|
89472
89499
|
return "url" in artifact.icu ? artifact.icu.url : `${origin}${ICU_PATH}${swiftIcuAddress(artifact.icu)}`;
|
|
@@ -89481,7 +89508,7 @@ function standinLibraries(binaries, standins, rootDir, toolchain, rustWasm64) {
|
|
|
89481
89508
|
for (const standin of standins) {
|
|
89482
89509
|
if (!standin.prebuilt) continue;
|
|
89483
89510
|
const bytes = Buffer.from(standin.prebuilt.library, "base64");
|
|
89484
|
-
const digest2 = (0,
|
|
89511
|
+
const digest2 = (0, import_node_crypto69.createHash)("sha256").update(bytes).digest("hex");
|
|
89485
89512
|
const dir = import_node_path116.default.join(swiftCacheDir(), "native-archives", digest2);
|
|
89486
89513
|
import_node_fs116.default.mkdirSync(dir, { recursive: true });
|
|
89487
89514
|
const library = import_node_path116.default.join(dir, `lib${standin.module}.a`);
|
|
@@ -89805,7 +89832,7 @@ function swiftBuildRoot(packagePath, moduleRoot) {
|
|
|
89805
89832
|
return import_node_path116.default.join(
|
|
89806
89833
|
swiftCacheDir(),
|
|
89807
89834
|
"swift-builds",
|
|
89808
|
-
(0,
|
|
89835
|
+
(0, import_node_crypto69.createHash)("sha256").update(`${compilerKey}\0${buildKeyPath}`).digest("hex").slice(0, 16)
|
|
89809
89836
|
);
|
|
89810
89837
|
}
|
|
89811
89838
|
function installedWorkspaceInput(packagePath, entry, moduleRoot) {
|
|
@@ -90107,7 +90134,7 @@ async function fetchSwiftDyldTable(moduleUrl, module2, signal) {
|
|
|
90107
90134
|
const response = await fetch(url, { signal });
|
|
90108
90135
|
if (!response.ok) throw new Error(`swift compile: ${url} answered ${response.status}`);
|
|
90109
90136
|
const bytes = Buffer.from(await response.arrayBuffer());
|
|
90110
|
-
if (bytes.length !== byteLength || (0,
|
|
90137
|
+
if (bytes.length !== byteLength || (0, import_node_crypto69.createHash)("sha256").update(bytes).digest("hex") !== sha2565)
|
|
90111
90138
|
throw new Error(`swift compile: ${url} does not match its module's index`);
|
|
90112
90139
|
return { dyldTable: { sha256: sha2565, bytes } };
|
|
90113
90140
|
}
|
|
@@ -90185,16 +90212,17 @@ function swiftArtifactIsAvailable(origin, url, hash) {
|
|
|
90185
90212
|
(project) => project.artifacts.some((artifact) => artifact.hash === hash)
|
|
90186
90213
|
);
|
|
90187
90214
|
}
|
|
90188
|
-
var import_node_async_hooks2, import_node_child_process59,
|
|
90215
|
+
var import_node_async_hooks2, import_node_child_process59, import_node_crypto69, import_node_fs116, import_node_os24, import_node_path116, ARTIFACT_PATH, RESOURCE_PATH, ICU_PATH, SKIP_ROOT_DIRS, NATIVE_DESCRIPTOR, NATIVE_GLUE, SwiftMissingModulesError, sharedProjects, projectScope, projects, sharedSourceEntries, sourceEntries, sharedXcodeProjects, xcodeProjects, preparedScriptInputs, emptyWasmAssembly, XCODE_APP_DIR, XCODE_FRAMEWORKS_DIR, XCODE_PACKAGES_DIR, layoutScope, HOSTED_LIMITS, LOCAL_LIMITS, inputLimits, RESOURCE_CONTENT_TYPES, API_GAP_PATTERNS, IOS_SDK_FRAMEWORKS;
|
|
90189
90216
|
var init_swift_host = __esm({
|
|
90190
90217
|
"src/swift-host.ts"() {
|
|
90191
90218
|
"use strict";
|
|
90192
90219
|
import_node_async_hooks2 = require("node:async_hooks");
|
|
90193
90220
|
import_node_child_process59 = require("node:child_process");
|
|
90194
|
-
|
|
90221
|
+
import_node_crypto69 = require("node:crypto");
|
|
90195
90222
|
import_node_fs116 = __toESM(require("node:fs"), 1);
|
|
90196
90223
|
import_node_os24 = __toESM(require("node:os"), 1);
|
|
90197
90224
|
import_node_path116 = __toESM(require("node:path"), 1);
|
|
90225
|
+
init_pngHeader();
|
|
90198
90226
|
init_nativeDyldTableContract();
|
|
90199
90227
|
init_nativeSdkBindingContract();
|
|
90200
90228
|
init_bundleAssets();
|
|
@@ -90333,12 +90361,12 @@ var init_swift_installed_targets = __esm({
|
|
|
90333
90361
|
});
|
|
90334
90362
|
|
|
90335
90363
|
// src/installed-native-libraries.ts
|
|
90336
|
-
var import_node_fs118,
|
|
90364
|
+
var import_node_fs118, import_node_module14, import_node_path118;
|
|
90337
90365
|
var init_installed_native_libraries = __esm({
|
|
90338
90366
|
"src/installed-native-libraries.ts"() {
|
|
90339
90367
|
"use strict";
|
|
90340
90368
|
import_node_fs118 = __toESM(require("node:fs"), 1);
|
|
90341
|
-
|
|
90369
|
+
import_node_module14 = require("node:module");
|
|
90342
90370
|
import_node_path118 = __toESM(require("node:path"), 1);
|
|
90343
90371
|
init_is_record();
|
|
90344
90372
|
init_native_static_libraries();
|
|
@@ -90419,7 +90447,7 @@ function hashTree(root) {
|
|
|
90419
90447
|
for (const entry of import_node_fs119.default.readdirSync(root, { recursive: true, withFileTypes: true })) {
|
|
90420
90448
|
if (!entry.isFile()) continue;
|
|
90421
90449
|
const file = import_node_path119.default.join(entry.parentPath, entry.name);
|
|
90422
|
-
hashes[import_node_path119.default.relative(root, file).split(import_node_path119.default.sep).join("/")] = (0,
|
|
90450
|
+
hashes[import_node_path119.default.relative(root, file).split(import_node_path119.default.sep).join("/")] = (0, import_node_crypto70.createHash)("sha256").update(import_node_fs119.default.readFileSync(file)).digest("hex");
|
|
90423
90451
|
}
|
|
90424
90452
|
return Object.fromEntries(Object.entries(hashes).sort(([a], [b]) => a < b ? -1 : 1));
|
|
90425
90453
|
}
|
|
@@ -90429,7 +90457,7 @@ function realTarget(target) {
|
|
|
90429
90457
|
return import_node_path119.default.join(realTarget(import_node_path119.default.dirname(resolved)), import_node_path119.default.basename(resolved));
|
|
90430
90458
|
}
|
|
90431
90459
|
async function runInstalledTurboCodegen(appRoot, outDir, signal) {
|
|
90432
|
-
const manifestPath = (0,
|
|
90460
|
+
const manifestPath = (0, import_node_module15.createRequire)(import_node_path119.default.join(appRoot, "package.json")).resolve(
|
|
90433
90461
|
"react-native/package.json"
|
|
90434
90462
|
);
|
|
90435
90463
|
const manifest = JSON.parse(import_node_fs119.default.readFileSync(manifestPath, "utf8"));
|
|
@@ -90469,14 +90497,14 @@ async function runInstalledTurboCodegen(appRoot, outDir, signal) {
|
|
|
90469
90497
|
files: hashTree(generatedRoot)
|
|
90470
90498
|
};
|
|
90471
90499
|
}
|
|
90472
|
-
var import_node_child_process60,
|
|
90500
|
+
var import_node_child_process60, import_node_crypto70, import_node_fs119, import_node_module15, import_node_path119, import_node_util14, run10, RENDERER_PODS, RENDERER_PODS_VERSIONED, COMPILED_SOURCE, LEGACY_BRIDGE_DEV_SUPPORT, LEGACY_BRIDGE_PODS, LEGACY_BRIDGE_PODS_VERSIONED;
|
|
90473
90501
|
var init_turbo_codegen_intake = __esm({
|
|
90474
90502
|
"src/turbo-codegen-intake.ts"() {
|
|
90475
90503
|
"use strict";
|
|
90476
90504
|
import_node_child_process60 = require("node:child_process");
|
|
90477
|
-
|
|
90505
|
+
import_node_crypto70 = require("node:crypto");
|
|
90478
90506
|
import_node_fs119 = __toESM(require("node:fs"), 1);
|
|
90479
|
-
|
|
90507
|
+
import_node_module15 = require("node:module");
|
|
90480
90508
|
import_node_path119 = __toESM(require("node:path"), 1);
|
|
90481
90509
|
import_node_util14 = require("node:util");
|
|
90482
90510
|
init_forked_script_contract();
|
|
@@ -94242,11 +94270,11 @@ extern "C" __attribute__((export_name("peach_fabric_component_names"))) const ch
|
|
|
94242
94270
|
}
|
|
94243
94271
|
`;
|
|
94244
94272
|
}
|
|
94245
|
-
var
|
|
94273
|
+
var import_node_crypto71, import_node_fs120, import_node_path120, TURBO_CORE_TARGET, TURBO_FMT_TARGET, TURBO_ENTRY_HEADER, TURBO_CORE_PUBLIC_HEADERS, REGISTRATION, CODEGEN_OBJC, UNIT, HEADER5, OBJC2, OBJC_TURBO, OBJC_BRIDGE, OBJC_REGISTERED, REACT_NATIVE_UNITS, REACT_NATIVE_INCLUDE_ROOTS, REACT_NATIVE_OBJC_UNITS, REACT_NATIVE_OBJC_VERSIONED_UNITS, REACT_NATIVE_HEADER_DIRS, REACT_NATIVE_BARE_HEADER_DIRS, sha2564, podspecList, versionParts, iosOf, JS_CALL_INVOKER, FABRIC_HOST_INCLUDES, FABRIC_HOST_PAPER_INCLUDES, PAPER_UIKIT_BRIDGE_SWIFT;
|
|
94246
94274
|
var init_turbo_source = __esm({
|
|
94247
94275
|
"src/turbo-source.ts"() {
|
|
94248
94276
|
"use strict";
|
|
94249
|
-
|
|
94277
|
+
import_node_crypto71 = require("node:crypto");
|
|
94250
94278
|
import_node_fs120 = __toESM(require("node:fs"), 1);
|
|
94251
94279
|
import_node_path120 = __toESM(require("node:path"), 1);
|
|
94252
94280
|
init_cocoapods_trunk();
|
|
@@ -94372,7 +94400,7 @@ var init_turbo_source = __esm({
|
|
|
94372
94400
|
REACT_NATIVE_BARE_HEADER_DIRS = [
|
|
94373
94401
|
"ReactCommon/react/renderer/imagemanager/platform/ios/react/renderer/imagemanager"
|
|
94374
94402
|
];
|
|
94375
|
-
sha2564 = (data) => (0,
|
|
94403
|
+
sha2564 = (data) => (0, import_node_crypto71.createHash)("sha256").update(data).digest("hex");
|
|
94376
94404
|
podspecList = podspecAttribute;
|
|
94377
94405
|
versionParts = (version2) => version2.split(/[.-]/).map((p) => Number(p) || 0);
|
|
94378
94406
|
iosOf = (member) => object6(member.ios) ? member.ios : null;
|
|
@@ -95127,13 +95155,13 @@ function collectTurboCompileInput(collection, runtime, iosDeploymentTarget, depe
|
|
|
95127
95155
|
resources: { ...dependencies?.resources, ...collection.resources }
|
|
95128
95156
|
};
|
|
95129
95157
|
}
|
|
95130
|
-
var
|
|
95158
|
+
var import_node_crypto72, import_node_fs121, import_node_module16, import_node_os25, import_node_path121;
|
|
95131
95159
|
var init_turbo_compile = __esm({
|
|
95132
95160
|
"src/turbo-compile.ts"() {
|
|
95133
95161
|
"use strict";
|
|
95134
|
-
|
|
95162
|
+
import_node_crypto72 = require("node:crypto");
|
|
95135
95163
|
import_node_fs121 = __toESM(require("node:fs"), 1);
|
|
95136
|
-
|
|
95164
|
+
import_node_module16 = require("node:module");
|
|
95137
95165
|
import_node_os25 = __toESM(require("node:os"), 1);
|
|
95138
95166
|
import_node_path121 = __toESM(require("node:path"), 1);
|
|
95139
95167
|
init_native_app_identity_project();
|
|
@@ -95348,8 +95376,8 @@ function reactNativeCoreEntry(reactNativeRoot, moduleRoot, mode) {
|
|
|
95348
95376
|
);
|
|
95349
95377
|
if (!isRecord(manifest) || typeof manifest.version !== "string")
|
|
95350
95378
|
throw new Error(`${reactNativeRoot}: react-native has no version`);
|
|
95351
|
-
const headers = (0,
|
|
95352
|
-
const sources = (0,
|
|
95379
|
+
const headers = (0, import_node_crypto73.createHash)("sha256");
|
|
95380
|
+
const sources = (0, import_node_crypto73.createHash)("sha256");
|
|
95353
95381
|
const walk4 = (relative3) => {
|
|
95354
95382
|
for (const file of import_node_fs123.default.readdirSync(import_node_path123.default.join(reactNativeRoot, relative3), { withFileTypes: true }).sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0)) {
|
|
95355
95383
|
if (file.name === "node_modules" || file.name.startsWith(".")) continue;
|
|
@@ -95365,7 +95393,7 @@ function reactNativeCoreEntry(reactNativeRoot, moduleRoot, mode) {
|
|
|
95365
95393
|
};
|
|
95366
95394
|
walk4("");
|
|
95367
95395
|
const codegenRoot = import_node_path123.default.dirname(
|
|
95368
|
-
(0,
|
|
95396
|
+
(0, import_node_module17.createRequire)(import_node_path123.default.join(reactNativeRoot, "package.json")).resolve(
|
|
95369
95397
|
"@react-native/codegen/package.json"
|
|
95370
95398
|
)
|
|
95371
95399
|
);
|
|
@@ -95416,13 +95444,13 @@ async function prebuiltReactNativeCore(project, reactNativeRoot, moduleRoot, mod
|
|
|
95416
95444
|
throw new Error(`React Native core ${entry.key} does not match its descriptor`);
|
|
95417
95445
|
return readReactNativeCore(JSON.parse(import_node_fs123.default.readFileSync(file, "utf8")));
|
|
95418
95446
|
}
|
|
95419
|
-
var
|
|
95447
|
+
var import_node_crypto73, import_node_fs123, import_node_module17, import_node_path123, import_node_util15, recipe, strings4, building;
|
|
95420
95448
|
var init_react_native_core = __esm({
|
|
95421
95449
|
"src/react-native-core.ts"() {
|
|
95422
95450
|
"use strict";
|
|
95423
|
-
|
|
95451
|
+
import_node_crypto73 = require("node:crypto");
|
|
95424
95452
|
import_node_fs123 = __toESM(require("node:fs"), 1);
|
|
95425
|
-
|
|
95453
|
+
import_node_module17 = require("node:module");
|
|
95426
95454
|
import_node_path123 = __toESM(require("node:path"), 1);
|
|
95427
95455
|
import_node_util15 = require("node:util");
|
|
95428
95456
|
init_home_paths();
|
|
@@ -95445,7 +95473,7 @@ function exportedNames(moduleRoot, name3) {
|
|
|
95445
95473
|
const modules = import_node_path124.default.join(moduleRoot, "modules");
|
|
95446
95474
|
const module2 = import_node_path124.default.join(modules, `${name3}.swiftmodule`);
|
|
95447
95475
|
if (!import_node_fs124.default.existsSync(module2)) return /* @__PURE__ */ new Set();
|
|
95448
|
-
const key2 = (0,
|
|
95476
|
+
const key2 = (0, import_node_crypto74.createHash)("sha256").update(import_node_fs124.default.readFileSync(module2)).digest("hex");
|
|
95449
95477
|
const directory2 = import_node_path124.default.join(swiftCacheDir(), "swift-public-names");
|
|
95450
95478
|
const receipt = import_node_path124.default.join(directory2, `${key2}.json`);
|
|
95451
95479
|
if (import_node_fs124.default.existsSync(receipt)) {
|
|
@@ -95528,12 +95556,12 @@ function clangTypeOwnership(moduleRoot, module2) {
|
|
|
95528
95556
|
}
|
|
95529
95557
|
);
|
|
95530
95558
|
}
|
|
95531
|
-
var import_node_child_process62,
|
|
95559
|
+
var import_node_child_process62, import_node_crypto74, import_node_fs124, import_node_path124, blockTypedef, enumTypedef, enumConstant, swiftPrivate;
|
|
95532
95560
|
var init_swift_clang_type_ownership = __esm({
|
|
95533
95561
|
"src/swift-clang-type-ownership.ts"() {
|
|
95534
95562
|
"use strict";
|
|
95535
95563
|
import_node_child_process62 = require("node:child_process");
|
|
95536
|
-
|
|
95564
|
+
import_node_crypto74 = require("node:crypto");
|
|
95537
95565
|
import_node_fs124 = __toESM(require("node:fs"), 1);
|
|
95538
95566
|
import_node_path124 = __toESM(require("node:path"), 1);
|
|
95539
95567
|
init_is_record();
|
|
@@ -95997,7 +96025,7 @@ function enrichInstalledUnits(units, installed, namespaceGroups, provided, modul
|
|
|
95997
96025
|
const byPath = [...installedTargets].sort((a, b) => b.path.length - a.path.length);
|
|
95998
96026
|
const reactNativeRoot = import_node_fs125.default.realpathSync(
|
|
95999
96027
|
import_node_path125.default.dirname(
|
|
96000
|
-
(0,
|
|
96028
|
+
(0, import_node_module18.createRequire)(import_node_path125.default.join(appRoot, "package.json")).resolve(
|
|
96001
96029
|
"react-native/package.json"
|
|
96002
96030
|
)
|
|
96003
96031
|
)
|
|
@@ -96444,7 +96472,7 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
|
|
|
96444
96472
|
signal?.throwIfAborted();
|
|
96445
96473
|
appRoot = import_node_fs125.default.realpathSync(appRoot);
|
|
96446
96474
|
const appConfig = await loadRNXAppConfig(resolveAppProject(appRoot));
|
|
96447
|
-
const appRequire = (0,
|
|
96475
|
+
const appRequire = (0, import_node_module18.createRequire)(import_node_path125.default.join(appRoot, "package.json"));
|
|
96448
96476
|
let expoRoot;
|
|
96449
96477
|
try {
|
|
96450
96478
|
expoRoot = import_node_path125.default.dirname(appRequire.resolve("expo/package.json"));
|
|
@@ -97176,7 +97204,7 @@ function targetSettings2(units) {
|
|
|
97176
97204
|
}
|
|
97177
97205
|
function oneSDKStamp(oneSDK) {
|
|
97178
97206
|
if (!oneSDK) return "";
|
|
97179
|
-
const hash = (0,
|
|
97207
|
+
const hash = (0, import_node_crypto75.createHash)("sha256");
|
|
97180
97208
|
for (const files2 of [oneSDK.targets, oneSDK.entry])
|
|
97181
97209
|
for (const [name3, source] of [...files2].sort(([a], [b]) => a.localeCompare(b)))
|
|
97182
97210
|
hash.update(`${name3}\0${source}\0`);
|
|
@@ -97227,7 +97255,7 @@ ${bridgeModules.length ? "import React\n" : ""}${oneSDK ? "import One\nimport On
|
|
|
97227
97255
|
`;
|
|
97228
97256
|
}
|
|
97229
97257
|
function expoSwiftPreparedKey(base, units, reactProviderStamp) {
|
|
97230
|
-
const hash = (0,
|
|
97258
|
+
const hash = (0, import_node_crypto75.createHash)("sha256");
|
|
97231
97259
|
hash.update(base);
|
|
97232
97260
|
hash.update(reactProviderStamp);
|
|
97233
97261
|
for (const unit2 of units) {
|
|
@@ -97574,7 +97602,7 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
97574
97602
|
const reactProvider = units.some((unit2) => unit2.reactNativeProvider) ? await (async () => {
|
|
97575
97603
|
const projectRoot = options2.installedWorkspace ? import_node_path125.default.dirname(import_node_path125.default.dirname(options2.installedWorkspace)) : (await prepareExpoNativeWorkspace(root, signal, options2.iosTarget)).app;
|
|
97576
97604
|
const reactNativeRoot = import_node_path125.default.dirname(
|
|
97577
|
-
(0,
|
|
97605
|
+
(0, import_node_module18.createRequire)(import_node_path125.default.join(projectRoot, "package.json")).resolve(
|
|
97578
97606
|
"react-native/package.json"
|
|
97579
97607
|
)
|
|
97580
97608
|
);
|
|
@@ -97601,8 +97629,8 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
97601
97629
|
}
|
|
97602
97630
|
return provider;
|
|
97603
97631
|
})() : void 0;
|
|
97604
|
-
const reactProviderStamp = reactProvider ? (0,
|
|
97605
|
-
const key2 = (0,
|
|
97632
|
+
const reactProviderStamp = reactProvider ? (0, import_node_crypto75.createHash)("sha256").update(JSON.stringify(reactProvider)).digest("hex") : "";
|
|
97633
|
+
const key2 = (0, import_node_crypto75.createHash)("sha256").update(import_node_fs125.default.realpathSync(root)).digest("hex");
|
|
97606
97634
|
const unitContentStamp = (unit2) => sourceContentStamp(expoSwiftPackage(key2, unit2.moduleId), module2.root) + (unit2.reactNativeProvider ? `:${reactProviderStamp}` : "");
|
|
97607
97635
|
const failures = /* @__PURE__ */ new Map();
|
|
97608
97636
|
const failureRecords = /* @__PURE__ */ new Map();
|
|
@@ -97944,15 +97972,15 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
97944
97972
|
throw failure2;
|
|
97945
97973
|
}
|
|
97946
97974
|
}
|
|
97947
|
-
var import_node_async_hooks3, import_node_child_process63,
|
|
97975
|
+
var import_node_async_hooks3, import_node_child_process63, import_node_crypto75, import_node_fs125, import_node_module18, import_node_os26, import_node_path125, import_node_url4, import_node_util16, run11, scriptEnv, EXPO_SWIFT_ENTRY, WITNESS_BATCH, traceStore, discoveryCache, preparedCache, savedFs, ignoredRoots, ownTemporaryRoots, EXPO_MODULE_SCAN_TIMEOUT_MS, preparedExpoSwift, openPreparations, ExpoSwiftLinkRefusal;
|
|
97948
97976
|
var init_expo_swift_host = __esm({
|
|
97949
97977
|
"src/expo-swift-host.ts"() {
|
|
97950
97978
|
"use strict";
|
|
97951
97979
|
import_node_async_hooks3 = require("node:async_hooks");
|
|
97952
97980
|
import_node_child_process63 = require("node:child_process");
|
|
97953
|
-
|
|
97981
|
+
import_node_crypto75 = require("node:crypto");
|
|
97954
97982
|
import_node_fs125 = __toESM(require("node:fs"), 1);
|
|
97955
|
-
|
|
97983
|
+
import_node_module18 = require("node:module");
|
|
97956
97984
|
import_node_os26 = __toESM(require("node:os"), 1);
|
|
97957
97985
|
import_node_path125 = __toESM(require("node:path"), 1);
|
|
97958
97986
|
import_node_url4 = require("node:url");
|
|
@@ -97972,7 +98000,6 @@ var init_expo_swift_host = __esm({
|
|
|
97972
98000
|
init_native_firebase_config();
|
|
97973
98001
|
init_native_preparation();
|
|
97974
98002
|
init_native_static_libraries();
|
|
97975
|
-
init_nativePreparationContract();
|
|
97976
98003
|
init_react_native_bridge_modules();
|
|
97977
98004
|
init_react_native_core();
|
|
97978
98005
|
init_swift_binary_modules();
|
|
@@ -97999,7 +98026,7 @@ var init_expo_swift_host = __esm({
|
|
|
97999
98026
|
ownTemporaryRoots = /* @__PURE__ */ new Set();
|
|
98000
98027
|
EXPO_MODULE_SCAN_TIMEOUT_MS = 6e4;
|
|
98001
98028
|
preparedExpoSwift = /* @__PURE__ */ new Map();
|
|
98002
|
-
openPreparations = new
|
|
98029
|
+
openPreparations = new NativePreparation();
|
|
98003
98030
|
ExpoSwiftLinkRefusal = class extends Error {
|
|
98004
98031
|
};
|
|
98005
98032
|
}
|