peachsim 0.1.2481 → 0.1.2482
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 +2578 -2595
- 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-FYDDLFH7.mjs → acorn-3RG2YV22.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-DOTVMR2R.mjs → chunk-5VLHG64M.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-CIRF7MUH.mjs → chunk-7I4VWI2V.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MYAC4QOH.mjs → chunk-CEQOCRNV.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-6ALMBFOB.mjs → chunk-D5LOEF4I.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-3AHKFCTP.mjs → chunk-DJKPHL72.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-XVGPPYRC.mjs → chunk-DYN7524Z.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-OMWELJZM.mjs → chunk-FKS6QFGF.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-DILJLCVN.mjs → chunk-GVLSR652.mjs} +12 -12
- package/dist-lib/esm-chunks/{chunk-VGOJCWU3.mjs → chunk-JNQJMRSO.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ZNG6GMUS.mjs → chunk-MDEXPYPS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-V27M6XEI.mjs → chunk-NFRYA23T.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-DR66BWZR.mjs → chunk-RUKQSGNO.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-56VSEMVW.mjs → chunk-V7WDCR3N.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YBJYSS46.mjs → chunk-WC3CBCQF.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MTWECGVY.mjs → chunk-WJCPHHTA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RRHGYD5I.mjs → chunk-WPW4V4XH.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-IKMY4F25.mjs → chunk-YC2PEM6U.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HK2YIUS3.mjs → chunk-YOKV3RRM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YY4T7YSR.mjs → chunk-YSTOPLNH.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-55FEZERB.mjs → chunk-Z2NSDMD7.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-I2KV5OCI.mjs → chunk-ZXAHJ6YC.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-EEI7OVUC.mjs → metro-layout-parser-OPFP36W3.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-V5QMDVKG.mjs → swift-package-prebuilt-S7ECXF7I.mjs} +10 -10
- package/dist-lib/esm-chunks/{swift-sdk-app-module-QEWCSQWL.mjs → swift-sdk-app-module-7WOLAFJ6.mjs} +13 -13
- package/dist-lib/esm-chunks/{swift-sdk-image-XH4JSUEA.mjs → swift-sdk-image-WDWMRJ76.mjs} +13 -13
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-HQJ5Z6TE.mjs → swift-sdk-image-producer-ZXAKVKXN.mjs} +4 -4
- package/dist-lib/expo-swift-bundle.cjs +219 -230
- 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 +391 -445
- package/dist-lib/host/fetch-proxy-handler.cjs +170 -340
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +4 -4
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +15 -15
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +79 -79
- package/dist-lib/public-origins-lib.json +77 -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 +445 -495
- 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/src/expo-swift-host.ts +17 -35
- package/src/expo-widgets-bundle.ts +6 -4
- 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/turbo-bundle.ts +5 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2482 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -26248,7 +26248,7 @@ var init_swift_standin_digest = __esm({
|
|
|
26248
26248
|
|
|
26249
26249
|
// src/expo-native-compiler-digest.ts
|
|
26250
26250
|
function expoNativeCompilerDigestValue() {
|
|
26251
|
-
return true ? "
|
|
26251
|
+
return true ? "12aee4ee3bd89c1730fb89a657de22e7caf0a3e86af4e562a1a0238a7e3b38e6" : 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();
|
|
@@ -84960,11 +84950,11 @@ function coreDataModelDirectories(files2) {
|
|
|
84960
84950
|
}
|
|
84961
84951
|
return [...models].sort();
|
|
84962
84952
|
}
|
|
84963
|
-
var
|
|
84953
|
+
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
84954
|
var init_core_data_model = __esm({
|
|
84965
84955
|
"src/core-data-model.ts"() {
|
|
84966
84956
|
"use strict";
|
|
84967
|
-
|
|
84957
|
+
import_node_crypto67 = require("node:crypto");
|
|
84968
84958
|
import_node_fs113 = require("node:fs");
|
|
84969
84959
|
import_node_path113 = __toESM(require("node:path"), 1);
|
|
84970
84960
|
init_core_data_entity_classes();
|
|
@@ -85083,7 +85073,7 @@ var init_core_data_model = __esm({
|
|
|
85083
85073
|
});
|
|
85084
85074
|
}
|
|
85085
85075
|
};
|
|
85086
|
-
sha2563 = (...parts) => (0,
|
|
85076
|
+
sha2563 = (...parts) => (0, import_node_crypto67.createHash)("sha256").update(
|
|
85087
85077
|
Buffer.concat(
|
|
85088
85078
|
parts.map(
|
|
85089
85079
|
(part) => Array.isArray(part) ? Buffer.from(part) : Buffer.from(part)
|
|
@@ -87281,7 +87271,7 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
|
|
|
87281
87271
|
(binary2) => binary2.publicHeaders === void 0 && binary2.placeholder === void 0 && swiftBinaryOnDisk(binary2) && binaryHeaderSearchPaths(binary2, staged, app.rootDir).headers.length === 1
|
|
87282
87272
|
))
|
|
87283
87273
|
return [...binaries];
|
|
87284
|
-
const hash = (0,
|
|
87274
|
+
const hash = (0, import_node_crypto68.createHash)("sha256");
|
|
87285
87275
|
hash.update(
|
|
87286
87276
|
JSON.stringify([
|
|
87287
87277
|
inputs2.targets,
|
|
@@ -87490,12 +87480,12 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
|
|
|
87490
87480
|
);
|
|
87491
87481
|
return result;
|
|
87492
87482
|
}
|
|
87493
|
-
var import_node_child_process57,
|
|
87483
|
+
var import_node_child_process57, import_node_crypto68, import_node_fs114, import_node_path114, cachedInputs;
|
|
87494
87484
|
var init_swift_cxx_reachable = __esm({
|
|
87495
87485
|
"src/swift-cxx-reachable.ts"() {
|
|
87496
87486
|
"use strict";
|
|
87497
87487
|
import_node_child_process57 = require("node:child_process");
|
|
87498
|
-
|
|
87488
|
+
import_node_crypto68 = require("node:crypto");
|
|
87499
87489
|
import_node_fs114 = __toESM(require("node:fs"), 1);
|
|
87500
87490
|
import_node_path114 = __toESM(require("node:path"), 1);
|
|
87501
87491
|
init_is_record();
|
|
@@ -87813,7 +87803,7 @@ async function wasmPortableAssembly(binaries, toolchainBin, moduleRoot) {
|
|
|
87813
87803
|
const clang = import_node_path116.default.join(toolchainBin, "clang");
|
|
87814
87804
|
const empty = (binary2, file) => {
|
|
87815
87805
|
const source = import_node_path116.default.join(binary2.dir, file);
|
|
87816
|
-
const key2 = (0,
|
|
87806
|
+
const key2 = (0, import_node_crypto69.createHash)("sha256").update(
|
|
87817
87807
|
JSON.stringify([
|
|
87818
87808
|
clang,
|
|
87819
87809
|
sdk2.sysroot,
|
|
@@ -87858,7 +87848,7 @@ async function wasmPortableAssembly(binaries, toolchainBin, moduleRoot) {
|
|
|
87858
87848
|
return new Set(portable.flat());
|
|
87859
87849
|
}
|
|
87860
87850
|
async function swiftPackages(entry, app) {
|
|
87861
|
-
const stamp = (file) => import_node_fs116.default.existsSync(file) ? (0,
|
|
87851
|
+
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
87852
|
const owners = [...app.frameworks, app].map((target) => ({
|
|
87863
87853
|
module: target.moduleName,
|
|
87864
87854
|
products: target.packageProducts ?? []
|
|
@@ -89021,7 +89011,7 @@ async function buildSwiftResourceTable(project, baseUrl, inputs2) {
|
|
|
89021
89011
|
const source = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true }).decode(
|
|
89022
89012
|
bytes
|
|
89023
89013
|
);
|
|
89024
|
-
const sha2565 = (0,
|
|
89014
|
+
const sha2565 = (0, import_node_crypto69.createHash)("sha256").update(bytes).digest("hex");
|
|
89025
89015
|
const bundle = swiftResourceBundleForFile(bundles, key2);
|
|
89026
89016
|
if (!bundle && inputs2["Package.swift"])
|
|
89027
89017
|
throw new Error(`metal source ${key2} has no resource target bundle`);
|
|
@@ -89044,7 +89034,7 @@ async function buildSwiftResourceTable(project, baseUrl, inputs2) {
|
|
|
89044
89034
|
const bytes = readPackageFile2(project.packagePath, disk, limits.imageBytes);
|
|
89045
89035
|
pdfs.set(file, {
|
|
89046
89036
|
file: disk,
|
|
89047
|
-
sha256: (0,
|
|
89037
|
+
sha256: (0, import_node_crypto69.createHash)("sha256").update(bytes).digest("hex")
|
|
89048
89038
|
});
|
|
89049
89039
|
}
|
|
89050
89040
|
const pdfRasters = rasterizePdfFiles([...pdfs.values()], limits);
|
|
@@ -89090,7 +89080,7 @@ async function buildSwiftResourceTable(project, baseUrl, inputs2) {
|
|
|
89090
89080
|
throw new Error("swift image pack exceeds the compile service caps");
|
|
89091
89081
|
}
|
|
89092
89082
|
imageBytes += bytes.length;
|
|
89093
|
-
const hash = (0,
|
|
89083
|
+
const hash = (0, import_node_crypto69.createHash)("sha256").update(bytes).digest("hex").slice(0, 16);
|
|
89094
89084
|
const bundle = table[bundlePath] ?? /* @__PURE__ */ Object.create(null);
|
|
89095
89085
|
const variant2 = {
|
|
89096
89086
|
uri: `${baseUrl}${RESOURCE_PATH}${hash}${ext}`,
|
|
@@ -89395,7 +89385,7 @@ function updateSwiftConfigStamp(hash, packagePath) {
|
|
|
89395
89385
|
hash.update(JSON.stringify(gates.map((name3) => swiftWasm64PlatformGates[name3])));
|
|
89396
89386
|
}
|
|
89397
89387
|
function sourceStamp(packagePath, moduleRootOverride, hosted = false) {
|
|
89398
|
-
const hash = (0,
|
|
89388
|
+
const hash = (0, import_node_crypto69.createHash)("sha256");
|
|
89399
89389
|
hash.update(packagePath);
|
|
89400
89390
|
updateSwiftConfigStamp(hash, packagePath);
|
|
89401
89391
|
const libraries = projects().get(packagePath)?.libraries;
|
|
@@ -89424,7 +89414,7 @@ function sourceStamp(packagePath, moduleRootOverride, hosted = false) {
|
|
|
89424
89414
|
return hash.digest("hex").slice(0, 16);
|
|
89425
89415
|
}
|
|
89426
89416
|
function sourceContentStamp(packagePath, moduleRootOverride) {
|
|
89427
|
-
const hash = (0,
|
|
89417
|
+
const hash = (0, import_node_crypto69.createHash)("sha256");
|
|
89428
89418
|
hash.update(compilerSourceDigest);
|
|
89429
89419
|
updateSwiftConfigStamp(hash, packagePath);
|
|
89430
89420
|
const libraries = projects().get(packagePath)?.libraries;
|
|
@@ -89456,7 +89446,7 @@ function moduleStamp(packagePath, moduleRootOverride, hosted) {
|
|
|
89456
89446
|
(root) => import_node_fs116.default.existsSync(import_node_path116.default.join(root, "toolchain.json"))
|
|
89457
89447
|
);
|
|
89458
89448
|
if (!moduleRoot) return "";
|
|
89459
|
-
const hash = (0,
|
|
89449
|
+
const hash = (0, import_node_crypto69.createHash)("sha256");
|
|
89460
89450
|
hash.update(moduleRoot);
|
|
89461
89451
|
for (const relative3 of swiftModuleInputFiles(moduleRoot)) {
|
|
89462
89452
|
hash.update(relative3);
|
|
@@ -89466,7 +89456,7 @@ function moduleStamp(packagePath, moduleRootOverride, hosted) {
|
|
|
89466
89456
|
}
|
|
89467
89457
|
function otherInputs(input, standalone) {
|
|
89468
89458
|
const { files: _files, ...rest } = input;
|
|
89469
|
-
return (0,
|
|
89459
|
+
return (0, import_node_crypto69.createHash)("sha256").update(JSON.stringify({ ...rest, standalone })).digest("hex");
|
|
89470
89460
|
}
|
|
89471
89461
|
function icuUrl(origin, artifact) {
|
|
89472
89462
|
return "url" in artifact.icu ? artifact.icu.url : `${origin}${ICU_PATH}${swiftIcuAddress(artifact.icu)}`;
|
|
@@ -89481,7 +89471,7 @@ function standinLibraries(binaries, standins, rootDir, toolchain, rustWasm64) {
|
|
|
89481
89471
|
for (const standin of standins) {
|
|
89482
89472
|
if (!standin.prebuilt) continue;
|
|
89483
89473
|
const bytes = Buffer.from(standin.prebuilt.library, "base64");
|
|
89484
|
-
const digest2 = (0,
|
|
89474
|
+
const digest2 = (0, import_node_crypto69.createHash)("sha256").update(bytes).digest("hex");
|
|
89485
89475
|
const dir = import_node_path116.default.join(swiftCacheDir(), "native-archives", digest2);
|
|
89486
89476
|
import_node_fs116.default.mkdirSync(dir, { recursive: true });
|
|
89487
89477
|
const library = import_node_path116.default.join(dir, `lib${standin.module}.a`);
|
|
@@ -89805,7 +89795,7 @@ function swiftBuildRoot(packagePath, moduleRoot) {
|
|
|
89805
89795
|
return import_node_path116.default.join(
|
|
89806
89796
|
swiftCacheDir(),
|
|
89807
89797
|
"swift-builds",
|
|
89808
|
-
(0,
|
|
89798
|
+
(0, import_node_crypto69.createHash)("sha256").update(`${compilerKey}\0${buildKeyPath}`).digest("hex").slice(0, 16)
|
|
89809
89799
|
);
|
|
89810
89800
|
}
|
|
89811
89801
|
function installedWorkspaceInput(packagePath, entry, moduleRoot) {
|
|
@@ -90107,7 +90097,7 @@ async function fetchSwiftDyldTable(moduleUrl, module2, signal) {
|
|
|
90107
90097
|
const response = await fetch(url, { signal });
|
|
90108
90098
|
if (!response.ok) throw new Error(`swift compile: ${url} answered ${response.status}`);
|
|
90109
90099
|
const bytes = Buffer.from(await response.arrayBuffer());
|
|
90110
|
-
if (bytes.length !== byteLength || (0,
|
|
90100
|
+
if (bytes.length !== byteLength || (0, import_node_crypto69.createHash)("sha256").update(bytes).digest("hex") !== sha2565)
|
|
90111
90101
|
throw new Error(`swift compile: ${url} does not match its module's index`);
|
|
90112
90102
|
return { dyldTable: { sha256: sha2565, bytes } };
|
|
90113
90103
|
}
|
|
@@ -90185,13 +90175,13 @@ function swiftArtifactIsAvailable(origin, url, hash) {
|
|
|
90185
90175
|
(project) => project.artifacts.some((artifact) => artifact.hash === hash)
|
|
90186
90176
|
);
|
|
90187
90177
|
}
|
|
90188
|
-
var import_node_async_hooks2, import_node_child_process59,
|
|
90178
|
+
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
90179
|
var init_swift_host = __esm({
|
|
90190
90180
|
"src/swift-host.ts"() {
|
|
90191
90181
|
"use strict";
|
|
90192
90182
|
import_node_async_hooks2 = require("node:async_hooks");
|
|
90193
90183
|
import_node_child_process59 = require("node:child_process");
|
|
90194
|
-
|
|
90184
|
+
import_node_crypto69 = require("node:crypto");
|
|
90195
90185
|
import_node_fs116 = __toESM(require("node:fs"), 1);
|
|
90196
90186
|
import_node_os24 = __toESM(require("node:os"), 1);
|
|
90197
90187
|
import_node_path116 = __toESM(require("node:path"), 1);
|
|
@@ -90333,12 +90323,12 @@ var init_swift_installed_targets = __esm({
|
|
|
90333
90323
|
});
|
|
90334
90324
|
|
|
90335
90325
|
// src/installed-native-libraries.ts
|
|
90336
|
-
var import_node_fs118,
|
|
90326
|
+
var import_node_fs118, import_node_module14, import_node_path118;
|
|
90337
90327
|
var init_installed_native_libraries = __esm({
|
|
90338
90328
|
"src/installed-native-libraries.ts"() {
|
|
90339
90329
|
"use strict";
|
|
90340
90330
|
import_node_fs118 = __toESM(require("node:fs"), 1);
|
|
90341
|
-
|
|
90331
|
+
import_node_module14 = require("node:module");
|
|
90342
90332
|
import_node_path118 = __toESM(require("node:path"), 1);
|
|
90343
90333
|
init_is_record();
|
|
90344
90334
|
init_native_static_libraries();
|
|
@@ -90419,7 +90409,7 @@ function hashTree(root) {
|
|
|
90419
90409
|
for (const entry of import_node_fs119.default.readdirSync(root, { recursive: true, withFileTypes: true })) {
|
|
90420
90410
|
if (!entry.isFile()) continue;
|
|
90421
90411
|
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,
|
|
90412
|
+
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
90413
|
}
|
|
90424
90414
|
return Object.fromEntries(Object.entries(hashes).sort(([a], [b]) => a < b ? -1 : 1));
|
|
90425
90415
|
}
|
|
@@ -90429,7 +90419,7 @@ function realTarget(target) {
|
|
|
90429
90419
|
return import_node_path119.default.join(realTarget(import_node_path119.default.dirname(resolved)), import_node_path119.default.basename(resolved));
|
|
90430
90420
|
}
|
|
90431
90421
|
async function runInstalledTurboCodegen(appRoot, outDir, signal) {
|
|
90432
|
-
const manifestPath = (0,
|
|
90422
|
+
const manifestPath = (0, import_node_module15.createRequire)(import_node_path119.default.join(appRoot, "package.json")).resolve(
|
|
90433
90423
|
"react-native/package.json"
|
|
90434
90424
|
);
|
|
90435
90425
|
const manifest = JSON.parse(import_node_fs119.default.readFileSync(manifestPath, "utf8"));
|
|
@@ -90469,14 +90459,14 @@ async function runInstalledTurboCodegen(appRoot, outDir, signal) {
|
|
|
90469
90459
|
files: hashTree(generatedRoot)
|
|
90470
90460
|
};
|
|
90471
90461
|
}
|
|
90472
|
-
var import_node_child_process60,
|
|
90462
|
+
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
90463
|
var init_turbo_codegen_intake = __esm({
|
|
90474
90464
|
"src/turbo-codegen-intake.ts"() {
|
|
90475
90465
|
"use strict";
|
|
90476
90466
|
import_node_child_process60 = require("node:child_process");
|
|
90477
|
-
|
|
90467
|
+
import_node_crypto70 = require("node:crypto");
|
|
90478
90468
|
import_node_fs119 = __toESM(require("node:fs"), 1);
|
|
90479
|
-
|
|
90469
|
+
import_node_module15 = require("node:module");
|
|
90480
90470
|
import_node_path119 = __toESM(require("node:path"), 1);
|
|
90481
90471
|
import_node_util14 = require("node:util");
|
|
90482
90472
|
init_forked_script_contract();
|
|
@@ -94242,11 +94232,11 @@ extern "C" __attribute__((export_name("peach_fabric_component_names"))) const ch
|
|
|
94242
94232
|
}
|
|
94243
94233
|
`;
|
|
94244
94234
|
}
|
|
94245
|
-
var
|
|
94235
|
+
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
94236
|
var init_turbo_source = __esm({
|
|
94247
94237
|
"src/turbo-source.ts"() {
|
|
94248
94238
|
"use strict";
|
|
94249
|
-
|
|
94239
|
+
import_node_crypto71 = require("node:crypto");
|
|
94250
94240
|
import_node_fs120 = __toESM(require("node:fs"), 1);
|
|
94251
94241
|
import_node_path120 = __toESM(require("node:path"), 1);
|
|
94252
94242
|
init_cocoapods_trunk();
|
|
@@ -94372,7 +94362,7 @@ var init_turbo_source = __esm({
|
|
|
94372
94362
|
REACT_NATIVE_BARE_HEADER_DIRS = [
|
|
94373
94363
|
"ReactCommon/react/renderer/imagemanager/platform/ios/react/renderer/imagemanager"
|
|
94374
94364
|
];
|
|
94375
|
-
sha2564 = (data) => (0,
|
|
94365
|
+
sha2564 = (data) => (0, import_node_crypto71.createHash)("sha256").update(data).digest("hex");
|
|
94376
94366
|
podspecList = podspecAttribute;
|
|
94377
94367
|
versionParts = (version2) => version2.split(/[.-]/).map((p) => Number(p) || 0);
|
|
94378
94368
|
iosOf = (member) => object6(member.ios) ? member.ios : null;
|
|
@@ -95127,13 +95117,13 @@ function collectTurboCompileInput(collection, runtime, iosDeploymentTarget, depe
|
|
|
95127
95117
|
resources: { ...dependencies?.resources, ...collection.resources }
|
|
95128
95118
|
};
|
|
95129
95119
|
}
|
|
95130
|
-
var
|
|
95120
|
+
var import_node_crypto72, import_node_fs121, import_node_module16, import_node_os25, import_node_path121;
|
|
95131
95121
|
var init_turbo_compile = __esm({
|
|
95132
95122
|
"src/turbo-compile.ts"() {
|
|
95133
95123
|
"use strict";
|
|
95134
|
-
|
|
95124
|
+
import_node_crypto72 = require("node:crypto");
|
|
95135
95125
|
import_node_fs121 = __toESM(require("node:fs"), 1);
|
|
95136
|
-
|
|
95126
|
+
import_node_module16 = require("node:module");
|
|
95137
95127
|
import_node_os25 = __toESM(require("node:os"), 1);
|
|
95138
95128
|
import_node_path121 = __toESM(require("node:path"), 1);
|
|
95139
95129
|
init_native_app_identity_project();
|
|
@@ -95348,8 +95338,8 @@ function reactNativeCoreEntry(reactNativeRoot, moduleRoot, mode) {
|
|
|
95348
95338
|
);
|
|
95349
95339
|
if (!isRecord(manifest) || typeof manifest.version !== "string")
|
|
95350
95340
|
throw new Error(`${reactNativeRoot}: react-native has no version`);
|
|
95351
|
-
const headers = (0,
|
|
95352
|
-
const sources = (0,
|
|
95341
|
+
const headers = (0, import_node_crypto73.createHash)("sha256");
|
|
95342
|
+
const sources = (0, import_node_crypto73.createHash)("sha256");
|
|
95353
95343
|
const walk4 = (relative3) => {
|
|
95354
95344
|
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
95345
|
if (file.name === "node_modules" || file.name.startsWith(".")) continue;
|
|
@@ -95365,7 +95355,7 @@ function reactNativeCoreEntry(reactNativeRoot, moduleRoot, mode) {
|
|
|
95365
95355
|
};
|
|
95366
95356
|
walk4("");
|
|
95367
95357
|
const codegenRoot = import_node_path123.default.dirname(
|
|
95368
|
-
(0,
|
|
95358
|
+
(0, import_node_module17.createRequire)(import_node_path123.default.join(reactNativeRoot, "package.json")).resolve(
|
|
95369
95359
|
"@react-native/codegen/package.json"
|
|
95370
95360
|
)
|
|
95371
95361
|
);
|
|
@@ -95416,13 +95406,13 @@ async function prebuiltReactNativeCore(project, reactNativeRoot, moduleRoot, mod
|
|
|
95416
95406
|
throw new Error(`React Native core ${entry.key} does not match its descriptor`);
|
|
95417
95407
|
return readReactNativeCore(JSON.parse(import_node_fs123.default.readFileSync(file, "utf8")));
|
|
95418
95408
|
}
|
|
95419
|
-
var
|
|
95409
|
+
var import_node_crypto73, import_node_fs123, import_node_module17, import_node_path123, import_node_util15, recipe, strings4, building;
|
|
95420
95410
|
var init_react_native_core = __esm({
|
|
95421
95411
|
"src/react-native-core.ts"() {
|
|
95422
95412
|
"use strict";
|
|
95423
|
-
|
|
95413
|
+
import_node_crypto73 = require("node:crypto");
|
|
95424
95414
|
import_node_fs123 = __toESM(require("node:fs"), 1);
|
|
95425
|
-
|
|
95415
|
+
import_node_module17 = require("node:module");
|
|
95426
95416
|
import_node_path123 = __toESM(require("node:path"), 1);
|
|
95427
95417
|
import_node_util15 = require("node:util");
|
|
95428
95418
|
init_home_paths();
|
|
@@ -95445,7 +95435,7 @@ function exportedNames(moduleRoot, name3) {
|
|
|
95445
95435
|
const modules = import_node_path124.default.join(moduleRoot, "modules");
|
|
95446
95436
|
const module2 = import_node_path124.default.join(modules, `${name3}.swiftmodule`);
|
|
95447
95437
|
if (!import_node_fs124.default.existsSync(module2)) return /* @__PURE__ */ new Set();
|
|
95448
|
-
const key2 = (0,
|
|
95438
|
+
const key2 = (0, import_node_crypto74.createHash)("sha256").update(import_node_fs124.default.readFileSync(module2)).digest("hex");
|
|
95449
95439
|
const directory2 = import_node_path124.default.join(swiftCacheDir(), "swift-public-names");
|
|
95450
95440
|
const receipt = import_node_path124.default.join(directory2, `${key2}.json`);
|
|
95451
95441
|
if (import_node_fs124.default.existsSync(receipt)) {
|
|
@@ -95528,12 +95518,12 @@ function clangTypeOwnership(moduleRoot, module2) {
|
|
|
95528
95518
|
}
|
|
95529
95519
|
);
|
|
95530
95520
|
}
|
|
95531
|
-
var import_node_child_process62,
|
|
95521
|
+
var import_node_child_process62, import_node_crypto74, import_node_fs124, import_node_path124, blockTypedef, enumTypedef, enumConstant, swiftPrivate;
|
|
95532
95522
|
var init_swift_clang_type_ownership = __esm({
|
|
95533
95523
|
"src/swift-clang-type-ownership.ts"() {
|
|
95534
95524
|
"use strict";
|
|
95535
95525
|
import_node_child_process62 = require("node:child_process");
|
|
95536
|
-
|
|
95526
|
+
import_node_crypto74 = require("node:crypto");
|
|
95537
95527
|
import_node_fs124 = __toESM(require("node:fs"), 1);
|
|
95538
95528
|
import_node_path124 = __toESM(require("node:path"), 1);
|
|
95539
95529
|
init_is_record();
|
|
@@ -95997,7 +95987,7 @@ function enrichInstalledUnits(units, installed, namespaceGroups, provided, modul
|
|
|
95997
95987
|
const byPath = [...installedTargets].sort((a, b) => b.path.length - a.path.length);
|
|
95998
95988
|
const reactNativeRoot = import_node_fs125.default.realpathSync(
|
|
95999
95989
|
import_node_path125.default.dirname(
|
|
96000
|
-
(0,
|
|
95990
|
+
(0, import_node_module18.createRequire)(import_node_path125.default.join(appRoot, "package.json")).resolve(
|
|
96001
95991
|
"react-native/package.json"
|
|
96002
95992
|
)
|
|
96003
95993
|
)
|
|
@@ -96444,7 +96434,7 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
|
|
|
96444
96434
|
signal?.throwIfAborted();
|
|
96445
96435
|
appRoot = import_node_fs125.default.realpathSync(appRoot);
|
|
96446
96436
|
const appConfig = await loadRNXAppConfig(resolveAppProject(appRoot));
|
|
96447
|
-
const appRequire = (0,
|
|
96437
|
+
const appRequire = (0, import_node_module18.createRequire)(import_node_path125.default.join(appRoot, "package.json"));
|
|
96448
96438
|
let expoRoot;
|
|
96449
96439
|
try {
|
|
96450
96440
|
expoRoot = import_node_path125.default.dirname(appRequire.resolve("expo/package.json"));
|
|
@@ -97176,7 +97166,7 @@ function targetSettings2(units) {
|
|
|
97176
97166
|
}
|
|
97177
97167
|
function oneSDKStamp(oneSDK) {
|
|
97178
97168
|
if (!oneSDK) return "";
|
|
97179
|
-
const hash = (0,
|
|
97169
|
+
const hash = (0, import_node_crypto75.createHash)("sha256");
|
|
97180
97170
|
for (const files2 of [oneSDK.targets, oneSDK.entry])
|
|
97181
97171
|
for (const [name3, source] of [...files2].sort(([a], [b]) => a.localeCompare(b)))
|
|
97182
97172
|
hash.update(`${name3}\0${source}\0`);
|
|
@@ -97227,7 +97217,7 @@ ${bridgeModules.length ? "import React\n" : ""}${oneSDK ? "import One\nimport On
|
|
|
97227
97217
|
`;
|
|
97228
97218
|
}
|
|
97229
97219
|
function expoSwiftPreparedKey(base, units, reactProviderStamp) {
|
|
97230
|
-
const hash = (0,
|
|
97220
|
+
const hash = (0, import_node_crypto75.createHash)("sha256");
|
|
97231
97221
|
hash.update(base);
|
|
97232
97222
|
hash.update(reactProviderStamp);
|
|
97233
97223
|
for (const unit2 of units) {
|
|
@@ -97574,7 +97564,7 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
97574
97564
|
const reactProvider = units.some((unit2) => unit2.reactNativeProvider) ? await (async () => {
|
|
97575
97565
|
const projectRoot = options2.installedWorkspace ? import_node_path125.default.dirname(import_node_path125.default.dirname(options2.installedWorkspace)) : (await prepareExpoNativeWorkspace(root, signal, options2.iosTarget)).app;
|
|
97576
97566
|
const reactNativeRoot = import_node_path125.default.dirname(
|
|
97577
|
-
(0,
|
|
97567
|
+
(0, import_node_module18.createRequire)(import_node_path125.default.join(projectRoot, "package.json")).resolve(
|
|
97578
97568
|
"react-native/package.json"
|
|
97579
97569
|
)
|
|
97580
97570
|
);
|
|
@@ -97601,8 +97591,8 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
97601
97591
|
}
|
|
97602
97592
|
return provider;
|
|
97603
97593
|
})() : void 0;
|
|
97604
|
-
const reactProviderStamp = reactProvider ? (0,
|
|
97605
|
-
const key2 = (0,
|
|
97594
|
+
const reactProviderStamp = reactProvider ? (0, import_node_crypto75.createHash)("sha256").update(JSON.stringify(reactProvider)).digest("hex") : "";
|
|
97595
|
+
const key2 = (0, import_node_crypto75.createHash)("sha256").update(import_node_fs125.default.realpathSync(root)).digest("hex");
|
|
97606
97596
|
const unitContentStamp = (unit2) => sourceContentStamp(expoSwiftPackage(key2, unit2.moduleId), module2.root) + (unit2.reactNativeProvider ? `:${reactProviderStamp}` : "");
|
|
97607
97597
|
const failures = /* @__PURE__ */ new Map();
|
|
97608
97598
|
const failureRecords = /* @__PURE__ */ new Map();
|
|
@@ -97944,15 +97934,15 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
97944
97934
|
throw failure2;
|
|
97945
97935
|
}
|
|
97946
97936
|
}
|
|
97947
|
-
var import_node_async_hooks3, import_node_child_process63,
|
|
97937
|
+
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
97938
|
var init_expo_swift_host = __esm({
|
|
97949
97939
|
"src/expo-swift-host.ts"() {
|
|
97950
97940
|
"use strict";
|
|
97951
97941
|
import_node_async_hooks3 = require("node:async_hooks");
|
|
97952
97942
|
import_node_child_process63 = require("node:child_process");
|
|
97953
|
-
|
|
97943
|
+
import_node_crypto75 = require("node:crypto");
|
|
97954
97944
|
import_node_fs125 = __toESM(require("node:fs"), 1);
|
|
97955
|
-
|
|
97945
|
+
import_node_module18 = require("node:module");
|
|
97956
97946
|
import_node_os26 = __toESM(require("node:os"), 1);
|
|
97957
97947
|
import_node_path125 = __toESM(require("node:path"), 1);
|
|
97958
97948
|
import_node_url4 = require("node:url");
|
|
@@ -97972,7 +97962,6 @@ var init_expo_swift_host = __esm({
|
|
|
97972
97962
|
init_native_firebase_config();
|
|
97973
97963
|
init_native_preparation();
|
|
97974
97964
|
init_native_static_libraries();
|
|
97975
|
-
init_nativePreparationContract();
|
|
97976
97965
|
init_react_native_bridge_modules();
|
|
97977
97966
|
init_react_native_core();
|
|
97978
97967
|
init_swift_binary_modules();
|
|
@@ -97999,7 +97988,7 @@ var init_expo_swift_host = __esm({
|
|
|
97999
97988
|
ownTemporaryRoots = /* @__PURE__ */ new Set();
|
|
98000
97989
|
EXPO_MODULE_SCAN_TIMEOUT_MS = 6e4;
|
|
98001
97990
|
preparedExpoSwift = /* @__PURE__ */ new Map();
|
|
98002
|
-
openPreparations = new
|
|
97991
|
+
openPreparations = new NativePreparation();
|
|
98003
97992
|
ExpoSwiftLinkRefusal = class extends Error {
|
|
98004
97993
|
};
|
|
98005
97994
|
}
|