peachsim 0.1.1833 → 0.1.1834
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/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 +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +8362 -8263
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +183 -155
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +8621 -8521
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +3 -3
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +3 -3
- package/dist-lib/native-app-identity-project.cjs +3 -3
- package/dist-lib/native-app-identity-project.mjs +3 -3
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +70 -66
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- 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 +1 -1
- package/dist-lib/skills.cjs +9404 -9305
- package/dist-lib/swift-compile.cjs +3 -8
- package/dist-lib/swift-compile.mjs +3 -8
- package/dist-lib/swift-package.cjs +1 -4
- package/dist-lib/swift-package.mjs +1 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +5 -11
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/package.json +1 -1
- package/src/expo-autolinking.ts +46 -0
- package/src/expo-swift-host.ts +6 -1
- package/src/native-seam-manifest.ts +0 -10
- package/src/swift-compile.ts +1 -6
- package/src/swift-objc-compile.ts +0 -4
- package/src/swift-package.ts +0 -9
- package/src/turbo-source.ts +103 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1834 | (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;
|
|
@@ -39,7 +39,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
39
39
|
var define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
|
|
40
40
|
var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
|
|
41
41
|
"<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
|
|
42
|
-
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "08583ee03b92e00f3f331e52fb480ef81c9fd7e668d796a5afcfa07978bcaf03", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "26f8d4a25d1af9917f0005153c73c9cefa4f6681c9d56c6333b8096190db0431", "swift-package.ts": "
|
|
42
|
+
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "08583ee03b92e00f3f331e52fb480ef81c9fd7e668d796a5afcfa07978bcaf03", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "26f8d4a25d1af9917f0005153c73c9cefa4f6681c9d56c6333b8096190db0431", "swift-package.ts": "e224b5e20ed3a86df1c62d6429e88234ed65317ce32c61c1b6b02aaee173d64f", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "a90155695844684e625ab83687161104f028ef34030715a40042a4407b77fca0", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "76e78ea9974671ff3b7e7a5d65e508306d8eadeb6b6bf859bd2ccc03f4ef6e72", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -1171,14 +1171,14 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
|
1171
1171
|
// src/expo-swift-host.ts
|
|
1172
1172
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1173
1173
|
var import_node_async_hooks2 = require("node:async_hooks");
|
|
1174
|
-
var
|
|
1174
|
+
var import_node_child_process39 = require("node:child_process");
|
|
1175
1175
|
var import_node_crypto31 = require("node:crypto");
|
|
1176
1176
|
var import_node_fs65 = __toESM(require("node:fs"), 1);
|
|
1177
1177
|
var import_node_module5 = require("node:module");
|
|
1178
1178
|
var import_node_os17 = __toESM(require("node:os"), 1);
|
|
1179
1179
|
var import_node_path62 = __toESM(require("node:path"), 1);
|
|
1180
1180
|
var import_node_url5 = require("node:url");
|
|
1181
|
-
var
|
|
1181
|
+
var import_node_util14 = require("node:util");
|
|
1182
1182
|
|
|
1183
1183
|
// ../peach-compat/src/stubs/native-seams/expo-eager-seam-contract.ts
|
|
1184
1184
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -6441,7 +6441,9 @@ var NativeURL = globalThis.URL;
|
|
|
6441
6441
|
|
|
6442
6442
|
// src/expo-autolinking.ts
|
|
6443
6443
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6444
|
+
var import_node_child_process7 = require("node:child_process");
|
|
6444
6445
|
var import_node_fs13 = __toESM(require("node:fs"), 1);
|
|
6446
|
+
var import_node_util4 = require("node:util");
|
|
6445
6447
|
function autolinkerAppleFlags(autolinkerManifest, appRoot) {
|
|
6446
6448
|
const manifest = JSON.parse(import_node_fs13.default.readFileSync(autolinkerManifest, "utf8"));
|
|
6447
6449
|
const version = manifest && typeof manifest === "object" && Reflect.get(manifest, "version");
|
|
@@ -6456,6 +6458,7 @@ function autolinkerAppleFlags(autolinkerManifest, appRoot) {
|
|
|
6456
6458
|
if (atLeast(1, 8, 0)) return ["--platform", "ios", "--project-root", appRoot];
|
|
6457
6459
|
return ["--platform", "ios"];
|
|
6458
6460
|
}
|
|
6461
|
+
var run4 = (0, import_node_util4.promisify)(import_node_child_process7.execFile);
|
|
6459
6462
|
|
|
6460
6463
|
// src/expo-discovery-cache.ts
|
|
6461
6464
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -6497,22 +6500,22 @@ function getCliVersion() {
|
|
|
6497
6500
|
|
|
6498
6501
|
// src/expo-native-workspace.ts
|
|
6499
6502
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6500
|
-
var
|
|
6503
|
+
var import_node_child_process27 = require("node:child_process");
|
|
6501
6504
|
var import_node_crypto19 = require("node:crypto");
|
|
6502
6505
|
var import_node_fs46 = __toESM(require("node:fs"), 1);
|
|
6503
6506
|
var import_node_module3 = require("node:module");
|
|
6504
6507
|
var import_node_path44 = __toESM(require("node:path"), 1);
|
|
6505
|
-
var
|
|
6508
|
+
var import_node_util10 = require("node:util");
|
|
6506
6509
|
|
|
6507
6510
|
// src/admitted-mac-build.ts
|
|
6508
6511
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6509
|
-
var
|
|
6512
|
+
var import_node_child_process8 = require("node:child_process");
|
|
6510
6513
|
function teamMachineInstalled() {
|
|
6511
|
-
const result = (0,
|
|
6514
|
+
const result = (0, import_node_child_process8.spawnSync)("tm", ["--version"], { stdio: "ignore" });
|
|
6512
6515
|
return !(result.error && "code" in result.error && result.error.code === "ENOENT");
|
|
6513
6516
|
}
|
|
6514
6517
|
function windowAdmission() {
|
|
6515
|
-
const result = (0,
|
|
6518
|
+
const result = (0, import_node_child_process8.spawnSync)("tm", ["window", "ancestor", "--json"], {
|
|
6516
6519
|
encoding: "utf8",
|
|
6517
6520
|
stdio: ["ignore", "pipe", "inherit"]
|
|
6518
6521
|
});
|
|
@@ -6535,13 +6538,13 @@ function windowAdmission() {
|
|
|
6535
6538
|
|
|
6536
6539
|
// src/expo-workspace-exclusion.ts
|
|
6537
6540
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6538
|
-
var
|
|
6541
|
+
var import_node_child_process9 = require("node:child_process");
|
|
6539
6542
|
var import_node_fs15 = __toESM(require("node:fs"), 1);
|
|
6540
6543
|
var import_node_path11 = __toESM(require("node:path"), 1);
|
|
6541
|
-
var
|
|
6544
|
+
var import_node_util5 = require("node:util");
|
|
6542
6545
|
var import_ignore = __toESM(require("ignore"), 1);
|
|
6543
6546
|
async function workspaceExclusion(root, portable = false) {
|
|
6544
|
-
const listed = await (0,
|
|
6547
|
+
const listed = await (0, import_node_util5.promisify)(import_node_child_process9.execFile)(
|
|
6545
6548
|
"git",
|
|
6546
6549
|
["ls-files", "-z", "--others", "--ignored", "--exclude-standard", "--directory"],
|
|
6547
6550
|
{
|
|
@@ -6592,7 +6595,7 @@ var import_node_path42 = __toESM(require("node:path"), 1);
|
|
|
6592
6595
|
|
|
6593
6596
|
// src/native-firebase-config.ts
|
|
6594
6597
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6595
|
-
var
|
|
6598
|
+
var import_node_child_process25 = require("node:child_process");
|
|
6596
6599
|
var import_node_fs41 = __toESM(require("node:fs"), 1);
|
|
6597
6600
|
var import_node_os13 = __toESM(require("node:os"), 1);
|
|
6598
6601
|
var import_node_path39 = __toESM(require("node:path"), 1);
|
|
@@ -6606,7 +6609,7 @@ function parsePlistSource(source) {
|
|
|
6606
6609
|
|
|
6607
6610
|
// src/xcode-project.ts
|
|
6608
6611
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6609
|
-
var
|
|
6612
|
+
var import_node_child_process24 = require("node:child_process");
|
|
6610
6613
|
var import_node_crypto15 = require("node:crypto");
|
|
6611
6614
|
var import_node_fs40 = __toESM(require("node:fs"), 1);
|
|
6612
6615
|
var import_node_path38 = __toESM(require("node:path"), 1);
|
|
@@ -6913,7 +6916,6 @@ function swiftPackageIdentity(url) {
|
|
|
6913
6916
|
const path54 = url.endsWith("/") ? url.slice(0, -1) : url;
|
|
6914
6917
|
return (path54.split("/").pop() ?? path54).replace(/\.git$/, "").toLowerCase();
|
|
6915
6918
|
}
|
|
6916
|
-
var fmtConstantInterpreterFlags = (flags) => flags.some((flag) => flag.includes("/fmt/")) ? ["-fexperimental-new-constant-interpreter"] : [];
|
|
6917
6919
|
var withoutGlogModuleMap = (flags) => flags.filter(
|
|
6918
6920
|
(flag) => !(flag.startsWith("-fmodule-map-file=") && flag.endsWith("/glog.modulemap"))
|
|
6919
6921
|
);
|
|
@@ -8547,12 +8549,12 @@ function assetSymbolText(plan, root) {
|
|
|
8547
8549
|
|
|
8548
8550
|
// src/swift-package-manifest.ts
|
|
8549
8551
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
8550
|
-
var
|
|
8552
|
+
var import_node_child_process23 = require("node:child_process");
|
|
8551
8553
|
var import_node_crypto14 = require("node:crypto");
|
|
8552
8554
|
var import_node_fs39 = __toESM(require("node:fs"), 1);
|
|
8553
8555
|
var import_node_os12 = __toESM(require("node:os"), 1);
|
|
8554
8556
|
var import_node_path36 = __toESM(require("node:path"), 1);
|
|
8555
|
-
var
|
|
8557
|
+
var import_node_util8 = require("node:util");
|
|
8556
8558
|
|
|
8557
8559
|
// src/swift-distribution.ts
|
|
8558
8560
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -8562,7 +8564,7 @@ var import_node_path35 = __toESM(require("node:path"), 1);
|
|
|
8562
8564
|
|
|
8563
8565
|
// cli/drivers/linux-browser-libs.ts
|
|
8564
8566
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
8565
|
-
var
|
|
8567
|
+
var import_node_child_process10 = require("node:child_process");
|
|
8566
8568
|
var import_node_fs21 = require("node:fs");
|
|
8567
8569
|
var import_node_path17 = require("node:path");
|
|
8568
8570
|
|
|
@@ -10012,7 +10014,7 @@ function linuxBrowserLibsKey(id, arch) {
|
|
|
10012
10014
|
return `linux-libs/${id}/${arch}.tar.gz`;
|
|
10013
10015
|
}
|
|
10014
10016
|
function missingLibraries(executablePath, libraryPath) {
|
|
10015
|
-
const ldd = (0,
|
|
10017
|
+
const ldd = (0, import_node_child_process10.spawnSync)("ldd", [executablePath], {
|
|
10016
10018
|
encoding: "utf8",
|
|
10017
10019
|
timeout: 3e4,
|
|
10018
10020
|
env: libraryPath ? {
|
|
@@ -10078,7 +10080,7 @@ async function ensureLinuxBrowserLibraries(executablePath, browser) {
|
|
|
10078
10080
|
|
|
10079
10081
|
// src/swift-compile.ts
|
|
10080
10082
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10081
|
-
var
|
|
10083
|
+
var import_node_child_process22 = require("node:child_process");
|
|
10082
10084
|
var import_node_crypto13 = require("node:crypto");
|
|
10083
10085
|
var import_node_fs37 = require("node:fs");
|
|
10084
10086
|
var import_node_os10 = __toESM(require("node:os"), 1);
|
|
@@ -10153,25 +10155,25 @@ function readIosSdkTree(root) {
|
|
|
10153
10155
|
|
|
10154
10156
|
// src/swift-darwin-records.ts
|
|
10155
10157
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10156
|
-
var
|
|
10158
|
+
var import_node_child_process15 = require("node:child_process");
|
|
10157
10159
|
var import_node_fs28 = require("node:fs");
|
|
10158
10160
|
var import_node_os6 = require("node:os");
|
|
10159
10161
|
var import_node_path25 = __toESM(require("node:path"), 1);
|
|
10160
10162
|
|
|
10161
10163
|
// src/swift-objc-platform.ts
|
|
10162
10164
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10163
|
-
var
|
|
10165
|
+
var import_node_child_process12 = require("node:child_process");
|
|
10164
10166
|
var import_node_path21 = __toESM(require("node:path"), 1);
|
|
10165
10167
|
|
|
10166
10168
|
// src/swift-toolchain.ts
|
|
10167
10169
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
10168
|
-
var
|
|
10170
|
+
var import_node_child_process11 = require("node:child_process");
|
|
10169
10171
|
var import_node_crypto7 = require("node:crypto");
|
|
10170
10172
|
var import_node_fs25 = __toESM(require("node:fs"), 1);
|
|
10171
10173
|
var import_node_os5 = __toESM(require("node:os"), 1);
|
|
10172
10174
|
var import_node_path20 = __toESM(require("node:path"), 1);
|
|
10173
10175
|
var import_node_url2 = require("node:url");
|
|
10174
|
-
var
|
|
10176
|
+
var import_node_util6 = require("node:util");
|
|
10175
10177
|
function peachsimPackageRoot() {
|
|
10176
10178
|
let dir = __sootsim_import_meta_dirname;
|
|
10177
10179
|
while (!import_node_fs25.default.existsSync(import_node_path20.default.join(dir, "package.json")) && dir !== import_node_path20.default.dirname(dir))
|
|
@@ -10441,7 +10443,7 @@ function ensureSwiftLinuxRuntime(release) {
|
|
|
10441
10443
|
`);
|
|
10442
10444
|
const download2 = `${plan.dest}.${process.pid}.tmp`;
|
|
10443
10445
|
try {
|
|
10444
|
-
(0,
|
|
10446
|
+
(0, import_node_child_process11.execFileSync)("curl", ["-fsSL", "--show-error", plan.url, "-o", download2], {
|
|
10445
10447
|
stdio: "inherit"
|
|
10446
10448
|
});
|
|
10447
10449
|
if (swiftFileChecksum(download2) !== plan.checksum)
|
|
@@ -10635,7 +10637,7 @@ ${swiftInstallSteps(release, sdk)}`
|
|
|
10635
10637
|
);
|
|
10636
10638
|
}
|
|
10637
10639
|
const swift = import_node_path20.default.join(bin, "swift");
|
|
10638
|
-
const sdks = (0,
|
|
10640
|
+
const sdks = (0, import_node_child_process11.execFileSync)(swift, ["sdk", "list", ...swiftSdkOptions()], {
|
|
10639
10641
|
encoding: "utf8",
|
|
10640
10642
|
env: swiftEnvironment(),
|
|
10641
10643
|
stdio: ["ignore", "pipe", "pipe"]
|
|
@@ -10660,7 +10662,7 @@ function validateSwiftSdkIdentity(sdk) {
|
|
|
10660
10662
|
throw new Error("invalid Swift SDK identity or checksum");
|
|
10661
10663
|
}
|
|
10662
10664
|
function swiftSdkBundle(swift, id, options) {
|
|
10663
|
-
const configuration = (0,
|
|
10665
|
+
const configuration = (0, import_node_child_process11.execFileSync)(
|
|
10664
10666
|
swift,
|
|
10665
10667
|
["sdk", "configure", ...options, "--show-configuration", id, "wasm32-unknown-wasip1"],
|
|
10666
10668
|
{ encoding: "utf8", env: swiftEnvironment(), stdio: ["ignore", "pipe", "pipe"] }
|
|
@@ -10738,7 +10740,7 @@ function installSwiftSdkArchive(swift, sdk, archive) {
|
|
|
10738
10740
|
throw new Error("declared Swift SDK archive checksum mismatch");
|
|
10739
10741
|
const store = import_node_path20.default.join(staging, "sdks");
|
|
10740
10742
|
import_node_fs25.default.mkdirSync(store);
|
|
10741
|
-
(0,
|
|
10743
|
+
(0, import_node_child_process11.execFileSync)(
|
|
10742
10744
|
swift,
|
|
10743
10745
|
[
|
|
10744
10746
|
"sdk",
|
|
@@ -10759,7 +10761,7 @@ function installSwiftSdkArchive(swift, sdk, archive) {
|
|
|
10759
10761
|
const directory = process.env.PEACH_SWIFT_SDKS_PATH;
|
|
10760
10762
|
const locks = directory ? import_node_path20.default.join(import_node_path20.default.resolve(directory), ".peach-locks") : import_node_path20.default.join(import_node_os5.default.homedir(), ".swiftpm", "builder-locks");
|
|
10761
10763
|
import_node_fs25.default.mkdirSync(locks, { recursive: true });
|
|
10762
|
-
(0,
|
|
10764
|
+
(0, import_node_child_process11.execFileSync)(
|
|
10763
10765
|
"perl",
|
|
10764
10766
|
[
|
|
10765
10767
|
"-e",
|
|
@@ -10816,7 +10818,7 @@ function installSwiftWasmSdk(release, sdk) {
|
|
|
10816
10818
|
if (sdk.wasmSdkUrl.startsWith("file:"))
|
|
10817
10819
|
import_node_fs25.default.copyFileSync((0, import_node_url2.fileURLToPath)(sdk.wasmSdkUrl), archive);
|
|
10818
10820
|
else
|
|
10819
|
-
(0,
|
|
10821
|
+
(0, import_node_child_process11.execFileSync)("curl", ["-fsSL", "--show-error", sdk.wasmSdkUrl, "-o", archive], {
|
|
10820
10822
|
stdio: "inherit"
|
|
10821
10823
|
});
|
|
10822
10824
|
installSwiftSdkArchive(swift, sdk, archive);
|
|
@@ -10883,7 +10885,7 @@ async function swiftCompilerAsync(release, signal) {
|
|
|
10883
10885
|
throw new Error(`Swift compiler binary mismatch: ${relative3}`);
|
|
10884
10886
|
}
|
|
10885
10887
|
}
|
|
10886
|
-
const { stdout } = await (0,
|
|
10888
|
+
const { stdout } = await (0, import_node_util6.promisify)(import_node_child_process11.execFile)(import_node_path20.default.join(bin, "swift"), ["--version"], {
|
|
10887
10889
|
encoding: "utf8",
|
|
10888
10890
|
env: swiftEnvironment(),
|
|
10889
10891
|
signal
|
|
@@ -10899,7 +10901,7 @@ function swiftCompiler(release) {
|
|
|
10899
10901
|
const bin = swiftToolchainBin(release);
|
|
10900
10902
|
if (release.includes("-custom-"))
|
|
10901
10903
|
verifySwiftHostCompiler(release, import_node_path20.default.resolve(bin, "../.."));
|
|
10902
|
-
const version = (0,
|
|
10904
|
+
const version = (0, import_node_child_process11.execFileSync)(import_node_path20.default.join(bin, "swift"), ["--version"], {
|
|
10903
10905
|
encoding: "utf8",
|
|
10904
10906
|
env: swiftEnvironment(),
|
|
10905
10907
|
stdio: ["ignore", "pipe", "pipe"]
|
|
@@ -10983,7 +10985,7 @@ function swiftObjCPlatformFlags(toolchainBin, minimum) {
|
|
|
10983
10985
|
Math.floor(minimum % 1e4 / 100),
|
|
10984
10986
|
minimum % 100
|
|
10985
10987
|
].join(".");
|
|
10986
|
-
const result = (0,
|
|
10988
|
+
const result = (0, import_node_child_process12.spawnSync)(
|
|
10987
10989
|
import_node_path21.default.join(toolchainBin, "clang"),
|
|
10988
10990
|
[
|
|
10989
10991
|
"-target",
|
|
@@ -11028,7 +11030,7 @@ var swiftObjCRuntimeFlags = [
|
|
|
11028
11030
|
|
|
11029
11031
|
// src/swift-objc-standin.ts
|
|
11030
11032
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
11031
|
-
var
|
|
11033
|
+
var import_node_child_process13 = require("node:child_process");
|
|
11032
11034
|
var import_node_crypto8 = require("node:crypto");
|
|
11033
11035
|
var import_node_fs26 = __toESM(require("node:fs"), 1);
|
|
11034
11036
|
var import_node_path23 = __toESM(require("node:path"), 1);
|
|
@@ -12542,7 +12544,7 @@ function developerDirs() {
|
|
|
12542
12544
|
try {
|
|
12543
12545
|
add(
|
|
12544
12546
|
// runner-toolchain-platform: darwin
|
|
12545
|
-
(0,
|
|
12547
|
+
(0, import_node_child_process13.execFileSync)("xcode-select", ["-p"], {
|
|
12546
12548
|
encoding: "utf8",
|
|
12547
12549
|
stdio: ["ignore", "pipe", "pipe"]
|
|
12548
12550
|
}).trim()
|
|
@@ -12561,7 +12563,7 @@ function readNativeSdk(developerDir) {
|
|
|
12561
12563
|
const env = { ...process.env, DEVELOPER_DIR: developerDir };
|
|
12562
12564
|
const xcrun = (args) => (
|
|
12563
12565
|
// runner-toolchain-platform: darwin
|
|
12564
|
-
(0,
|
|
12566
|
+
(0, import_node_child_process13.execFileSync)("xcrun", args, {
|
|
12565
12567
|
encoding: "utf8",
|
|
12566
12568
|
env,
|
|
12567
12569
|
stdio: ["ignore", "pipe", "pipe"]
|
|
@@ -12576,7 +12578,7 @@ function readNativeSdk(developerDir) {
|
|
|
12576
12578
|
sdk: xcrun(["--sdk", "iphonesimulator", "--show-sdk-version"]),
|
|
12577
12579
|
settings: digest2("SDKSettings.json"),
|
|
12578
12580
|
build: digest2("System/Library/CoreServices/SystemVersion.plist"),
|
|
12579
|
-
compilerVersion: (0,
|
|
12581
|
+
compilerVersion: (0, import_node_child_process13.execFileSync)(compiler, ["--version"], {
|
|
12580
12582
|
encoding: "utf8",
|
|
12581
12583
|
env,
|
|
12582
12584
|
stdio: ["ignore", "pipe", "pipe"]
|
|
@@ -12993,7 +12995,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
|
|
|
12993
12995
|
for (let round = 0; ; round++) {
|
|
12994
12996
|
import_node_fs26.default.rmSync(out, { recursive: true, force: true });
|
|
12995
12997
|
import_node_fs26.default.mkdirSync(out, { recursive: true });
|
|
12996
|
-
const
|
|
12998
|
+
const run8 = (0, import_node_child_process13.spawnSync)(
|
|
12997
12999
|
import_node_path23.default.join(toolchainBin, "swift-symbolgraph-extract"),
|
|
12998
13000
|
[
|
|
12999
13001
|
"-module-name",
|
|
@@ -13018,14 +13020,14 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
|
|
|
13018
13020
|
],
|
|
13019
13021
|
{ encoding: "utf8", env: swiftEnvironment(), maxBuffer: 256 * 1024 * 1024 }
|
|
13020
13022
|
);
|
|
13021
|
-
if (
|
|
13023
|
+
if (run8.error) throw run8.error;
|
|
13022
13024
|
const errors = [
|
|
13023
|
-
...
|
|
13025
|
+
...run8.stderr.matchAll(/^(?:(.+?):(\d+):(\d+): )?(?:fatal )?error: (.*)$/gm)
|
|
13024
13026
|
];
|
|
13025
|
-
if (errors.length === 0 &&
|
|
13027
|
+
if (errors.length === 0 && run8.status === 0) break;
|
|
13026
13028
|
if (original)
|
|
13027
13029
|
throw new Error(
|
|
13028
|
-
`original Objective-C declarations do not import as Swift: ${
|
|
13030
|
+
`original Objective-C declarations do not import as Swift: ${run8.stderr.trim() || run8.stdout.trim()}`
|
|
13029
13031
|
);
|
|
13030
13032
|
let progress = false;
|
|
13031
13033
|
const learn = (name3, kind) => {
|
|
@@ -13080,7 +13082,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
|
|
|
13080
13082
|
}
|
|
13081
13083
|
if (!progress || round === ROUNDS)
|
|
13082
13084
|
throw new Error(
|
|
13083
|
-
`its headers do not import as Swift: ${errors.length > 0 ? [...new Set(errors.map((match) => match[4]))].slice(0, 10).join("; ") : `swift-symbolgraph-extract ${
|
|
13085
|
+
`its headers do not import as Swift: ${errors.length > 0 ? [...new Set(errors.map((match) => match[4]))].slice(0, 10).join("; ") : `swift-symbolgraph-extract ${run8.signal ?? `exit ${run8.status}`}: ${(run8.stderr.trim() || run8.stdout.trim() || "no diagnostic").slice(0, 4e3)}`}`
|
|
13084
13086
|
);
|
|
13085
13087
|
writeHeaders();
|
|
13086
13088
|
}
|
|
@@ -13131,7 +13133,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
|
|
|
13131
13133
|
)
|
|
13132
13134
|
].join("\n")
|
|
13133
13135
|
);
|
|
13134
|
-
const
|
|
13136
|
+
const run8 = (0, import_node_child_process13.spawnSync)(
|
|
13135
13137
|
import_node_path23.default.join(toolchainBin, "swift-frontend"),
|
|
13136
13138
|
[
|
|
13137
13139
|
"-typecheck",
|
|
@@ -13145,8 +13147,8 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
|
|
|
13145
13147
|
],
|
|
13146
13148
|
{ encoding: "utf8", env: swiftEnvironment() }
|
|
13147
13149
|
);
|
|
13148
|
-
if (
|
|
13149
|
-
const unknown = /error: (?:no such module|cannot find type) .*/.exec(
|
|
13150
|
+
if (run8.error) throw run8.error;
|
|
13151
|
+
const unknown = /error: (?:no such module|cannot find type) .*/.exec(run8.stderr);
|
|
13150
13152
|
if (unknown)
|
|
13151
13153
|
throw new Error(`superclass conformances do not typecheck: ${unknown[0]}`);
|
|
13152
13154
|
const inherit = (superclass, protocol) => {
|
|
@@ -13154,13 +13156,13 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
|
|
|
13154
13156
|
inherited.add(protocol);
|
|
13155
13157
|
inheritedConformances.set(superclass, inherited);
|
|
13156
13158
|
};
|
|
13157
|
-
for (const match of
|
|
13159
|
+
for (const match of run8.stderr.matchAll(
|
|
13158
13160
|
/error: redundant conformance of 'PeachConforms(\d+)'/g
|
|
13159
13161
|
)) {
|
|
13160
13162
|
const { superclass, protocol } = pairs2[Number(match[1])];
|
|
13161
13163
|
inherit(superclass[0], protocol[0]);
|
|
13162
13164
|
}
|
|
13163
|
-
for (const match of
|
|
13165
|
+
for (const match of run8.stderr.matchAll(
|
|
13164
13166
|
/warning: class 'PeachConforms(\d+)' must restate inherited '@unchecked Sendable'/g
|
|
13165
13167
|
))
|
|
13166
13168
|
inherit(pairs2[Number(match[1])].superclass[0], "s:s8SendableP");
|
|
@@ -13235,7 +13237,7 @@ function protocolProperties(surface, headersDir, graphs, toolchainBin, search, w
|
|
|
13235
13237
|
].map((file) => `#import ${JSON.stringify(file)}
|
|
13236
13238
|
`).join("")
|
|
13237
13239
|
);
|
|
13238
|
-
const
|
|
13240
|
+
const run8 = (0, import_node_child_process13.spawnSync)(
|
|
13239
13241
|
import_node_path23.default.join(toolchainBin, "clang"),
|
|
13240
13242
|
[
|
|
13241
13243
|
"-x",
|
|
@@ -13265,11 +13267,11 @@ function protocolProperties(surface, headersDir, graphs, toolchainBin, search, w
|
|
|
13265
13267
|
maxBuffer: 256 * 1024 * 1024
|
|
13266
13268
|
}
|
|
13267
13269
|
);
|
|
13268
|
-
if (
|
|
13269
|
-
if (
|
|
13270
|
-
throw new Error(`Objective-C protocol ${name3} does not parse: ${
|
|
13270
|
+
if (run8.error) throw run8.error;
|
|
13271
|
+
if (run8.status !== 0)
|
|
13272
|
+
throw new Error(`Objective-C protocol ${name3} does not parse: ${run8.stderr.trim()}`);
|
|
13271
13273
|
let found = false;
|
|
13272
|
-
for (const chunk of
|
|
13274
|
+
for (const chunk of run8.stdout.split(/\n(?=\{\n)/).filter((part) => part.trim())) {
|
|
13273
13275
|
const declaration = JSON.parse(chunk);
|
|
13274
13276
|
if (!isRecord(declaration) || declaration.kind !== "ObjCProtocolDecl" || declaration.name !== name3 || !Array.isArray(declaration.inner))
|
|
13275
13277
|
continue;
|
|
@@ -13318,7 +13320,7 @@ function objcDeclarationAST(surface, framework, toolchainBin, search, work, orig
|
|
|
13318
13320
|
"-ast-dump-all=json"
|
|
13319
13321
|
];
|
|
13320
13322
|
const dump2 = (filter) => {
|
|
13321
|
-
const
|
|
13323
|
+
const run8 = (0, import_node_child_process13.spawnSync)(
|
|
13322
13324
|
import_node_path23.default.join(toolchainBin, "clang"),
|
|
13323
13325
|
[
|
|
13324
13326
|
...args,
|
|
@@ -13331,10 +13333,10 @@ function objcDeclarationAST(surface, framework, toolchainBin, search, work, orig
|
|
|
13331
13333
|
maxBuffer: 256 * 1024 * 1024
|
|
13332
13334
|
}
|
|
13333
13335
|
);
|
|
13334
|
-
if (
|
|
13335
|
-
if (
|
|
13336
|
-
throw new Error(`original Objective-C declaration AST failed: ${
|
|
13337
|
-
return
|
|
13336
|
+
if (run8.error) throw run8.error;
|
|
13337
|
+
if (run8.status !== 0)
|
|
13338
|
+
throw new Error(`original Objective-C declaration AST failed: ${run8.stderr.trim()}`);
|
|
13339
|
+
return run8.stdout;
|
|
13338
13340
|
};
|
|
13339
13341
|
const ast = JSON.parse(dump2());
|
|
13340
13342
|
const children = ast && typeof ast === "object" ? Reflect.get(ast, "inner") : void 0;
|
|
@@ -13400,7 +13402,7 @@ function enumValues(graphs, surface, framework, toolchainBin, search, work, orig
|
|
|
13400
13402
|
if (flag === "-sdk") flags.push("-isysroot", dir);
|
|
13401
13403
|
else flags.push(flag, dir);
|
|
13402
13404
|
}
|
|
13403
|
-
const
|
|
13405
|
+
const run8 = (0, import_node_child_process13.spawnSync)(
|
|
13404
13406
|
import_node_path23.default.join(toolchainBin, "clang"),
|
|
13405
13407
|
[
|
|
13406
13408
|
"-x",
|
|
@@ -13426,9 +13428,9 @@ function enumValues(graphs, surface, framework, toolchainBin, search, work, orig
|
|
|
13426
13428
|
maxBuffer: 1024 * 1024 * 1024
|
|
13427
13429
|
}
|
|
13428
13430
|
);
|
|
13429
|
-
if (
|
|
13431
|
+
if (run8.status !== 0)
|
|
13430
13432
|
throw new Error(
|
|
13431
|
-
`clang could not read its enum values: ${
|
|
13433
|
+
`clang could not read its enum values: ${run8.stderr.trim().slice(0, 400)}`
|
|
13432
13434
|
);
|
|
13433
13435
|
const constants = /* @__PURE__ */ new Map();
|
|
13434
13436
|
const walk3 = (node) => {
|
|
@@ -13456,7 +13458,7 @@ function enumValues(graphs, surface, framework, toolchainBin, search, work, orig
|
|
|
13456
13458
|
}
|
|
13457
13459
|
walk3(inner);
|
|
13458
13460
|
};
|
|
13459
|
-
walk3(JSON.parse(
|
|
13461
|
+
walk3(JSON.parse(run8.stdout));
|
|
13460
13462
|
for (const [id, name3] of wanted) {
|
|
13461
13463
|
const value = constants.get(name3);
|
|
13462
13464
|
if (value !== void 0) values.set(id, value.toString());
|
|
@@ -13478,7 +13480,7 @@ function constantValue(node) {
|
|
|
13478
13480
|
|
|
13479
13481
|
// src/swift-shared-sdk.ts
|
|
13480
13482
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
13481
|
-
var
|
|
13483
|
+
var import_node_child_process14 = require("node:child_process");
|
|
13482
13484
|
var import_node_crypto9 = require("node:crypto");
|
|
13483
13485
|
var import_node_fs27 = __toESM(require("node:fs"), 1);
|
|
13484
13486
|
var import_node_path24 = __toESM(require("node:path"), 1);
|
|
@@ -13701,7 +13703,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
|
|
|
13701
13703
|
]);
|
|
13702
13704
|
const cached2 = sdkViews.get(key2);
|
|
13703
13705
|
if (cached2 && import_node_fs27.default.existsSync(cached2.manifest)) return touchSdkView(cached2.options);
|
|
13704
|
-
const configuration = (0,
|
|
13706
|
+
const configuration = (0, import_node_child_process14.execFileSync)(
|
|
13705
13707
|
import_node_path24.default.join(toolchainBin, "swift"),
|
|
13706
13708
|
[
|
|
13707
13709
|
"sdk",
|
|
@@ -13804,7 +13806,7 @@ function compileDarwinRecords(args) {
|
|
|
13804
13806
|
args.out,
|
|
13805
13807
|
`${DARWIN_RECORDS_PREFIX}${file.replace(/\.[cm]$/, ".o")}`
|
|
13806
13808
|
);
|
|
13807
|
-
(0,
|
|
13809
|
+
(0, import_node_child_process15.execFileSync)(
|
|
13808
13810
|
import_node_path25.default.join(args.bin, "clang"),
|
|
13809
13811
|
[
|
|
13810
13812
|
"--target=wasm32-unknown-wasip1",
|
|
@@ -14358,16 +14360,16 @@ var foundationCategoryObjects = [
|
|
|
14358
14360
|
|
|
14359
14361
|
// src/swift-icu.ts
|
|
14360
14362
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
14361
|
-
var
|
|
14363
|
+
var import_node_child_process16 = require("node:child_process");
|
|
14362
14364
|
var import_node_crypto10 = require("node:crypto");
|
|
14363
14365
|
var import_node_fs29 = require("node:fs");
|
|
14364
14366
|
var import_node_path26 = __toESM(require("node:path"), 1);
|
|
14365
|
-
var
|
|
14367
|
+
var import_node_util7 = require("node:util");
|
|
14366
14368
|
var import_node_zlib2 = require("node:zlib");
|
|
14367
|
-
var
|
|
14368
|
-
var deflate = (0,
|
|
14369
|
-
var compressBrotli = (0,
|
|
14370
|
-
var inflateGzip = (0,
|
|
14369
|
+
var run5 = (0, import_node_util7.promisify)(import_node_child_process16.execFile);
|
|
14370
|
+
var deflate = (0, import_node_util7.promisify)(import_node_zlib2.gzip);
|
|
14371
|
+
var compressBrotli = (0, import_node_util7.promisify)(import_node_zlib2.brotliCompress);
|
|
14372
|
+
var inflateGzip = (0, import_node_util7.promisify)(import_node_zlib2.gunzip);
|
|
14371
14373
|
var ARCHIVE = "wasi/lib_FoundationICU.a";
|
|
14372
14374
|
var MEMBER = "icu_packaged_data.cpp.obj";
|
|
14373
14375
|
var raw = /* @__PURE__ */ new Map();
|
|
@@ -14400,12 +14402,12 @@ async function load(toolchainBin, sdk) {
|
|
|
14400
14402
|
const swift = import_node_path26.default.join(toolchainBin, "swift");
|
|
14401
14403
|
if (!(0, import_node_fs29.existsSync)(swift))
|
|
14402
14404
|
throw new Error(`swift-icu: no swift at ${swift} for the ${sdk} SDK's icu data`);
|
|
14403
|
-
const { stdout: listed } = await
|
|
14405
|
+
const { stdout: listed } = await run5(swift, ["sdk", "list", ...swiftSdkOptions()], {
|
|
14404
14406
|
env: swiftEnvironment()
|
|
14405
14407
|
});
|
|
14406
14408
|
if (!listed.split("\n").some((line) => line.trim() === sdk))
|
|
14407
14409
|
throw new Error(`swift-icu: ${sdk} is not installed for ${swift}`);
|
|
14408
|
-
const { stdout } = await
|
|
14410
|
+
const { stdout } = await run5(
|
|
14409
14411
|
swift,
|
|
14410
14412
|
[
|
|
14411
14413
|
"sdk",
|
|
@@ -14627,7 +14629,7 @@ function swiftObjCModuleMap(module2, headers) {
|
|
|
14627
14629
|
|
|
14628
14630
|
// src/swift-project-user.ts
|
|
14629
14631
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
14630
|
-
var
|
|
14632
|
+
var import_node_child_process17 = require("node:child_process");
|
|
14631
14633
|
var import_node_fs31 = require("node:fs");
|
|
14632
14634
|
var import_node_path28 = __toESM(require("node:path"), 1);
|
|
14633
14635
|
function prepareSwiftProjectProcess(root, user) {
|
|
@@ -14638,7 +14640,7 @@ function prepareSwiftProjectProcess(root, user) {
|
|
|
14638
14640
|
(0, import_node_fs31.mkdirSync)(tmp, { recursive: true });
|
|
14639
14641
|
const caches = ["cache", "config", "security"].map((name3) => import_node_path28.default.join(swiftpm, name3));
|
|
14640
14642
|
for (const directory of caches) (0, import_node_fs31.mkdirSync)(directory, { recursive: true });
|
|
14641
|
-
(0,
|
|
14643
|
+
(0, import_node_child_process17.execFileSync)("chown", ["-R", "-P", `${user.uid}:${user.gid}`, root, home]);
|
|
14642
14644
|
(0, import_node_fs31.chmodSync)(root, 448);
|
|
14643
14645
|
(0, import_node_fs31.chmodSync)(home, 448);
|
|
14644
14646
|
return {
|
|
@@ -14661,7 +14663,7 @@ function prepareSwiftProjectProcess(root, user) {
|
|
|
14661
14663
|
};
|
|
14662
14664
|
}
|
|
14663
14665
|
function endSwiftProjectProcesses(user) {
|
|
14664
|
-
(0,
|
|
14666
|
+
(0, import_node_child_process17.execFileSync)("sh", ["-c", "kill -s KILL -- -1 2>/dev/null || true"], {
|
|
14665
14667
|
uid: user.uid,
|
|
14666
14668
|
gid: user.gid
|
|
14667
14669
|
});
|
|
@@ -14710,7 +14712,7 @@ function swiftReproducibleBuildFlags(roots) {
|
|
|
14710
14712
|
|
|
14711
14713
|
// src/swift-root-lock.ts
|
|
14712
14714
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
14713
|
-
var
|
|
14715
|
+
var import_node_child_process18 = require("node:child_process");
|
|
14714
14716
|
var import_node_crypto11 = require("node:crypto");
|
|
14715
14717
|
var import_node_fs33 = require("node:fs");
|
|
14716
14718
|
var import_node_os8 = require("node:os");
|
|
@@ -14865,7 +14867,7 @@ async function withSwiftRootLock(root, work, signal, wait = true) {
|
|
|
14865
14867
|
}
|
|
14866
14868
|
},
|
|
14867
14869
|
spawn(command, args, options, companion) {
|
|
14868
|
-
const child = (0,
|
|
14870
|
+
const child = (0, import_node_child_process18.spawn)(
|
|
14869
14871
|
"/bin/sh",
|
|
14870
14872
|
["-c", 'IFS= read -r go || exit 1; exec "$@" </dev/null', "sh", command, ...args],
|
|
14871
14873
|
{ ...options, detached: true, stdio: ["pipe", "pipe", "pipe"] }
|
|
@@ -14898,12 +14900,12 @@ async function withSwiftRootLock(root, work, signal, wait = true) {
|
|
|
14898
14900
|
|
|
14899
14901
|
// src/swift-uniform-type-constants.ts
|
|
14900
14902
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
14901
|
-
var
|
|
14903
|
+
var import_node_child_process19 = require("node:child_process");
|
|
14902
14904
|
var import_node_path30 = __toESM(require("node:path"), 1);
|
|
14903
14905
|
function compileUniformTypeConstants(args) {
|
|
14904
14906
|
const source = import_node_path30.default.join(args.packageRoot, "runtime/UniformTypeIdentifiersConstants.m");
|
|
14905
14907
|
const object3 = import_node_path30.default.join(args.out, "UniformTypeIdentifiers-NativeConstants.o");
|
|
14906
|
-
(0,
|
|
14908
|
+
(0, import_node_child_process19.execFileSync)(
|
|
14907
14909
|
import_node_path30.default.join(args.bin, "clang"),
|
|
14908
14910
|
[
|
|
14909
14911
|
"--target=wasm32-unknown-wasip1",
|
|
@@ -14927,7 +14929,7 @@ function compileUniformTypeConstants(args) {
|
|
|
14927
14929
|
|
|
14928
14930
|
// src/swift-wasm-prune.ts
|
|
14929
14931
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
14930
|
-
var
|
|
14932
|
+
var import_node_child_process20 = require("node:child_process");
|
|
14931
14933
|
var import_node_crypto12 = require("node:crypto");
|
|
14932
14934
|
var import_node_fs34 = __toESM(require("node:fs"), 1);
|
|
14933
14935
|
var import_node_os9 = __toESM(require("node:os"), 1);
|
|
@@ -16436,7 +16438,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
16436
16438
|
}
|
|
16437
16439
|
const prunedRspPath = import_node_path31.default.join(directory, ".peach-link.pruned.rsp");
|
|
16438
16440
|
import_node_fs34.default.writeFileSync(prunedRspPath, outTokens.map((t) => JSON.stringify(t)).join(" "));
|
|
16439
|
-
(0,
|
|
16441
|
+
(0, import_node_child_process20.execFileSync)(import_node_path31.default.join(toolchainBin, "wasm-ld"), [`@${prunedRspPath}`], {
|
|
16440
16442
|
stdio: "pipe",
|
|
16441
16443
|
maxBuffer: Infinity
|
|
16442
16444
|
});
|
|
@@ -16445,7 +16447,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
16445
16447
|
|
|
16446
16448
|
// src/wasm-optimize.ts
|
|
16447
16449
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
16448
|
-
var
|
|
16450
|
+
var import_node_child_process21 = require("node:child_process");
|
|
16449
16451
|
var import_wasm_opt = require("wasm-opt");
|
|
16450
16452
|
var FEATURES = [
|
|
16451
16453
|
"threads",
|
|
@@ -16473,7 +16475,7 @@ async function runWasmOpt(file, output2) {
|
|
|
16473
16475
|
}
|
|
16474
16476
|
function installWasmOpt() {
|
|
16475
16477
|
try {
|
|
16476
|
-
(0,
|
|
16478
|
+
(0, import_node_child_process21.execFileSync)("npx", ["-y", "wasm-opt", "--wasm-opt-install"], {
|
|
16477
16479
|
timeout: 6e5,
|
|
16478
16480
|
stdio: ["ignore", "pipe", "pipe"],
|
|
16479
16481
|
env: { ...process.env, WASM_OPT_VERSION: import_wasm_opt.BINARYEN_VERSION }
|
|
@@ -16617,7 +16619,7 @@ async function runCompiler(command, args, options, stream = false, quiet) {
|
|
|
16617
16619
|
detached: true,
|
|
16618
16620
|
stdio: ["ignore", "pipe", "pipe"]
|
|
16619
16621
|
};
|
|
16620
|
-
const child = options.lease ? options.lease.spawn(command, args, launch, options.frameworkLease) : (0,
|
|
16622
|
+
const child = options.lease ? options.lease.spawn(command, args, launch, options.frameworkLease) : (0, import_node_child_process22.spawn)(command, args, launch);
|
|
16621
16623
|
let stopping;
|
|
16622
16624
|
try {
|
|
16623
16625
|
return await new Promise((resolve3, reject) => {
|
|
@@ -17146,7 +17148,7 @@ function swiftSdkPaths(moduleRoot, toolchainBin) {
|
|
|
17146
17148
|
const key2 = JSON.stringify([toolchainBin, sdk, options]);
|
|
17147
17149
|
const cached2 = sdkPaths.get(key2);
|
|
17148
17150
|
if (cached2) return cached2;
|
|
17149
|
-
const configuration = (0,
|
|
17151
|
+
const configuration = (0, import_node_child_process22.execFileSync)(
|
|
17150
17152
|
import_node_path34.default.join(toolchainBin, "swift"),
|
|
17151
17153
|
[
|
|
17152
17154
|
"sdk",
|
|
@@ -17376,7 +17378,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
17376
17378
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
17377
17379
|
var MULTI_MANIFEST_VERSION = 65;
|
|
17378
17380
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
17379
|
-
var compilerSourceDigest = true ? "
|
|
17381
|
+
var compilerSourceDigest = true ? "96782473c71232855f1ba299047583960204db64739ae5bb56652c57b6bcba63" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
17380
17382
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
17381
17383
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
17382
17384
|
hash.update(`swift-compile
|
|
@@ -17463,11 +17465,7 @@ ${target}
|
|
|
17463
17465
|
}
|
|
17464
17466
|
var nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
17465
17467
|
var cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
17466
|
-
var cxxFlagArray = (flags) => JSON.stringify([
|
|
17467
|
-
...nativeCxxCompilerFlags,
|
|
17468
|
-
...fmtConstantInterpreterFlags(flags),
|
|
17469
|
-
...withoutGlogModuleMap(flags)
|
|
17470
|
-
]);
|
|
17468
|
+
var cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
17471
17469
|
function swiftCrossImportFlags(moduleRoot, distribution) {
|
|
17472
17470
|
const overlayRoot = import_node_path34.default.join(
|
|
17473
17471
|
moduleRoot,
|
|
@@ -21873,7 +21871,7 @@ function swiftPackageFailure(error) {
|
|
|
21873
21871
|
}
|
|
21874
21872
|
var cacheDir3 = import_node_path36.default.join(cacheDir(), "swift-manifests");
|
|
21875
21873
|
var evaluated = /* @__PURE__ */ new Map();
|
|
21876
|
-
var execFileAsync = (0,
|
|
21874
|
+
var execFileAsync = (0, import_node_util8.promisify)(import_node_child_process23.execFile);
|
|
21877
21875
|
var cachedToolchain;
|
|
21878
21876
|
function toolchainFingerprint(command) {
|
|
21879
21877
|
const stat = import_node_fs39.default.statSync(command);
|
|
@@ -21917,7 +21915,7 @@ function dumpInputs(dir) {
|
|
|
21917
21915
|
path: command,
|
|
21918
21916
|
realpath: import_node_fs39.default.realpathSync(command),
|
|
21919
21917
|
sha256: (0, import_node_crypto14.createHash)("sha256").update(import_node_fs39.default.readFileSync(command)).digest("hex"),
|
|
21920
|
-
version: (0,
|
|
21918
|
+
version: (0, import_node_child_process23.execFileSync)(command, ["--version"], {
|
|
21921
21919
|
encoding: "utf8",
|
|
21922
21920
|
env: swiftEnvironment(),
|
|
21923
21921
|
stdio: ["ignore", "pipe", "pipe"]
|
|
@@ -21981,7 +21979,7 @@ function dump(dir, requirePrepared = false) {
|
|
|
21981
21979
|
if (requirePrepared) throw new SwiftManifestPreparationRequired(dir);
|
|
21982
21980
|
let output2;
|
|
21983
21981
|
try {
|
|
21984
|
-
output2 = (0,
|
|
21982
|
+
output2 = (0, import_node_child_process23.execFileSync)(
|
|
21985
21983
|
command,
|
|
21986
21984
|
[
|
|
21987
21985
|
"package",
|
|
@@ -22363,7 +22361,7 @@ async function resolveSwiftPackageRequirementsAsync(requirements, destination, s
|
|
|
22363
22361
|
const { dir, args, options, failed, publish } = resolveRequest(requirements);
|
|
22364
22362
|
try {
|
|
22365
22363
|
try {
|
|
22366
|
-
await (0,
|
|
22364
|
+
await (0, import_node_util8.promisify)(import_node_child_process23.execFile)(swiftCommand(), args, { ...options, signal });
|
|
22367
22365
|
} catch (error) {
|
|
22368
22366
|
throw failed(error);
|
|
22369
22367
|
}
|
|
@@ -23349,7 +23347,7 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
|
|
|
23349
23347
|
const derivedSettings = {
|
|
23350
23348
|
DEVELOPER_DIR: () => options.environment?.DEVELOPER_DIR ?? process.env.DEVELOPER_DIR ?? (developerDir ??= process.platform === "darwin" ? (
|
|
23351
23349
|
// runner-toolchain-platform: darwin
|
|
23352
|
-
(0,
|
|
23350
|
+
(0, import_node_child_process24.execFileSync)("xcode-select", ["-p"], {
|
|
23353
23351
|
encoding: "utf8",
|
|
23354
23352
|
stdio: ["ignore", "pipe", "pipe"]
|
|
23355
23353
|
}).trim()
|
|
@@ -23678,7 +23676,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
23678
23676
|
str(phase.shellPath) ?? "/bin/sh",
|
|
23679
23677
|
str(phase.shellScript) ?? ""
|
|
23680
23678
|
);
|
|
23681
|
-
(0,
|
|
23679
|
+
(0, import_node_child_process24.execFileSync)(shell, args, {
|
|
23682
23680
|
cwd: project.projectDir,
|
|
23683
23681
|
env,
|
|
23684
23682
|
stdio: ["ignore", "pipe", "pipe"],
|
|
@@ -24887,7 +24885,7 @@ async function readExpoConfigAsync(projectRoot) {
|
|
|
24887
24885
|
const directory = resultDirectory();
|
|
24888
24886
|
const resultPath = import_node_path39.default.join(directory, "config.json");
|
|
24889
24887
|
try {
|
|
24890
|
-
const child = (0,
|
|
24888
|
+
const child = (0, import_node_child_process25.spawn)("node", expoConfigArgs(projectRoot, resultPath), {
|
|
24891
24889
|
cwd: projectRoot,
|
|
24892
24890
|
stdio: ["ignore", "ignore", "pipe"],
|
|
24893
24891
|
timeout: 3e4
|
|
@@ -24943,13 +24941,13 @@ function portableInterfaceHash(directory) {
|
|
|
24943
24941
|
|
|
24944
24942
|
// src/prepared-native-inventory.ts
|
|
24945
24943
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
24946
|
-
var
|
|
24944
|
+
var import_node_child_process26 = require("node:child_process");
|
|
24947
24945
|
var import_node_crypto17 = require("node:crypto");
|
|
24948
24946
|
var import_node_fs43 = __toESM(require("node:fs"), 1);
|
|
24949
24947
|
var import_node_module2 = require("node:module");
|
|
24950
24948
|
var import_node_path41 = __toESM(require("node:path"), 1);
|
|
24951
24949
|
var import_promises4 = require("node:timers/promises");
|
|
24952
|
-
var
|
|
24950
|
+
var import_node_util9 = require("node:util");
|
|
24953
24951
|
async function preparedNativeInventory(app, selected, signal) {
|
|
24954
24952
|
const require2 = (0, import_node_module2.createRequire)(import_node_path41.default.join(app, "package.json"));
|
|
24955
24953
|
const linked = await iosAutolinkedDependencies(app, signal);
|
|
@@ -24959,7 +24957,7 @@ async function preparedNativeInventory(app, selected, signal) {
|
|
|
24959
24957
|
paths: [import_node_path41.default.dirname(require2.resolve("expo/package.json"))]
|
|
24960
24958
|
});
|
|
24961
24959
|
const cli = import_node_path41.default.join(import_node_path41.default.dirname(expo), "bin/expo-modules-autolinking.js");
|
|
24962
|
-
const searched = await (0,
|
|
24960
|
+
const searched = await (0, import_node_util9.promisify)(import_node_child_process26.execFile)(
|
|
24963
24961
|
"node",
|
|
24964
24962
|
[cli, "search", ...autolinkerAppleFlags(expo, app), "--json"],
|
|
24965
24963
|
{ cwd: app, signal, maxBuffer: 8 * 1024 * 1024 }
|
|
@@ -25196,7 +25194,7 @@ async function hashWorkspaceInputs(app, everyByte, signal, sourceOnly = false, p
|
|
|
25196
25194
|
const mac = process.platform === "darwin" ? {
|
|
25197
25195
|
podVersion: (() => {
|
|
25198
25196
|
try {
|
|
25199
|
-
return (0,
|
|
25197
|
+
return (0, import_node_child_process27.execFileSync)("pod", ["--version"], {
|
|
25200
25198
|
encoding: "utf8",
|
|
25201
25199
|
env: utf8Env
|
|
25202
25200
|
});
|
|
@@ -25207,7 +25205,7 @@ async function hashWorkspaceInputs(app, everyByte, signal, sourceOnly = false, p
|
|
|
25207
25205
|
}
|
|
25208
25206
|
})(),
|
|
25209
25207
|
// runner-toolchain-platform: darwin
|
|
25210
|
-
xcode: (0,
|
|
25208
|
+
xcode: (0, import_node_child_process27.execFileSync)("xcodebuild", ["-version"], {
|
|
25211
25209
|
encoding: "utf8",
|
|
25212
25210
|
env: utf8Env
|
|
25213
25211
|
})
|
|
@@ -25381,7 +25379,7 @@ async function copyInstalledWorkspace(root, destination, excluded) {
|
|
|
25381
25379
|
const clone = async () => {
|
|
25382
25380
|
const relative3 = entries.pop();
|
|
25383
25381
|
if (relative3 === void 0) return;
|
|
25384
|
-
await (0,
|
|
25382
|
+
await (0, import_node_util10.promisify)(import_node_child_process27.execFile)("cp", [
|
|
25385
25383
|
// -c clones on a Mac, as gnu cp already does where the filesystem can
|
|
25386
25384
|
...process.platform === "darwin" ? ["-c"] : [],
|
|
25387
25385
|
"-R",
|
|
@@ -25409,7 +25407,7 @@ function initializeWorkspaceGit(work) {
|
|
|
25409
25407
|
"prepared workspace"
|
|
25410
25408
|
]
|
|
25411
25409
|
])
|
|
25412
|
-
(0,
|
|
25410
|
+
(0, import_node_child_process27.execFileSync)("git", args, {
|
|
25413
25411
|
cwd: work,
|
|
25414
25412
|
env: { ...process.env, ...isolatedGitEnv },
|
|
25415
25413
|
timeout: 6e4
|
|
@@ -25459,7 +25457,7 @@ async function prepareWorkspace(app, stage, key2, podsEnvironment) {
|
|
|
25459
25457
|
}
|
|
25460
25458
|
const trustedConfigs = /* @__PURE__ */ new Set();
|
|
25461
25459
|
for (const cwd of [root, app]) {
|
|
25462
|
-
const result2 = (0,
|
|
25460
|
+
const result2 = (0, import_node_child_process27.spawnSync)("mise", ["config", "ls", "--json"], {
|
|
25463
25461
|
cwd,
|
|
25464
25462
|
encoding: "utf8"
|
|
25465
25463
|
});
|
|
@@ -25479,7 +25477,7 @@ async function prepareWorkspace(app, stage, key2, podsEnvironment) {
|
|
|
25479
25477
|
...trustedConfigs
|
|
25480
25478
|
].filter(Boolean).join(import_node_path44.default.delimiter)
|
|
25481
25479
|
};
|
|
25482
|
-
const
|
|
25480
|
+
const run8 = (command, args, cwd, env = {}) => runAdmitted(lease, command, args, cwd, { ...miseEnv, ...podsEnvironment, ...env });
|
|
25483
25481
|
const manager = workspacePackageManager(root, manifest.packageManager, excluded);
|
|
25484
25482
|
const nodeVersion = typeof manifest.engines?.node === "string" && /^\d+\.\d+\.\d+$/.test(manifest.engines.node) ? manifest.engines.node : null;
|
|
25485
25483
|
const prefix = nodeVersion ? ["mise", "exec", `node@${nodeVersion}`, "--"] : [];
|
|
@@ -25503,7 +25501,7 @@ async function prepareWorkspace(app, stage, key2, podsEnvironment) {
|
|
|
25503
25501
|
const installEnv = { npm_config_ignore_scripts: "false" };
|
|
25504
25502
|
const execute = async (args, cwd, env = {}) => {
|
|
25505
25503
|
const command = [...prefix, ...args];
|
|
25506
|
-
await
|
|
25504
|
+
await run8(command[0], command.slice(1), cwd, env);
|
|
25507
25505
|
};
|
|
25508
25506
|
if (!projectReady) {
|
|
25509
25507
|
if (manager.startsWith("bun@"))
|
|
@@ -25532,7 +25530,7 @@ async function prepareWorkspace(app, stage, key2, podsEnvironment) {
|
|
|
25532
25530
|
report("installed js dependencies");
|
|
25533
25531
|
}
|
|
25534
25532
|
if (!projectReady || stage === "workspace" && !import_node_fs46.default.existsSync(marker)) {
|
|
25535
|
-
await prepareNativeProject(preparedApp, appManifest, stage, execute,
|
|
25533
|
+
await prepareNativeProject(preparedApp, appManifest, stage, execute, run8, report);
|
|
25536
25534
|
import_node_fs46.default.writeFileSync(projectMarker, "complete\n");
|
|
25537
25535
|
if (stage === "workspace") import_node_fs46.default.writeFileSync(marker, "complete\n");
|
|
25538
25536
|
}
|
|
@@ -25544,7 +25542,7 @@ async function prepareWorkspace(app, stage, key2, podsEnvironment) {
|
|
|
25544
25542
|
current.set(key2, { watch, edits, result });
|
|
25545
25543
|
return result;
|
|
25546
25544
|
}
|
|
25547
|
-
async function prepareNativeProject(app, manifest, stage, execute,
|
|
25545
|
+
async function prepareNativeProject(app, manifest, stage, execute, run8, report) {
|
|
25548
25546
|
const appRequire = (0, import_node_module3.createRequire)(import_node_path44.default.join(app, "package.json"));
|
|
25549
25547
|
const sourcePodEnv = { EXPO_USE_PRECOMPILED_MODULES: "0", RCT_NEW_ARCH_ENABLED: "1" };
|
|
25550
25548
|
const declares = (name3) => Object.hasOwn(manifest.dependencies ?? {}, name3) || Object.hasOwn(manifest.devDependencies ?? {}, name3);
|
|
@@ -25569,9 +25567,9 @@ async function prepareNativeProject(app, manifest, stage, execute, run6, report)
|
|
|
25569
25567
|
};
|
|
25570
25568
|
await withCocoaPodsCacheLock(async () => {
|
|
25571
25569
|
if (bundled) {
|
|
25572
|
-
await
|
|
25573
|
-
await
|
|
25574
|
-
} else await
|
|
25570
|
+
await run8("bundle", ["install"], iosRoot, podEnv);
|
|
25571
|
+
await run8("bundle", ["exec", "pod", "install"], iosRoot, podEnv);
|
|
25572
|
+
} else await run8("pod", ["install"], iosRoot, podEnv);
|
|
25575
25573
|
});
|
|
25576
25574
|
report("pod install done");
|
|
25577
25575
|
}
|
|
@@ -26217,14 +26215,14 @@ var NativePreparationReceipts = class {
|
|
|
26217
26215
|
|
|
26218
26216
|
// src/native-static-libraries.ts
|
|
26219
26217
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
26220
|
-
var
|
|
26218
|
+
var import_node_child_process29 = require("node:child_process");
|
|
26221
26219
|
var import_node_crypto22 = require("node:crypto");
|
|
26222
26220
|
var import_node_fs50 = __toESM(require("node:fs"), 1);
|
|
26223
26221
|
var import_node_path48 = __toESM(require("node:path"), 1);
|
|
26224
26222
|
|
|
26225
26223
|
// src/native-prebuilt.ts
|
|
26226
26224
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
26227
|
-
var
|
|
26225
|
+
var import_node_child_process28 = require("node:child_process");
|
|
26228
26226
|
var import_node_crypto21 = require("node:crypto");
|
|
26229
26227
|
var import_node_fs48 = __toESM(require("node:fs"), 1);
|
|
26230
26228
|
var import_node_path46 = __toESM(require("node:path"), 1);
|
|
@@ -26237,7 +26235,7 @@ var nativeEntryPrefix = (kind, name3, key2) => `native/${kind}/${name3}/${key2}`
|
|
|
26237
26235
|
var entryCache = (kind, name3, key2) => import_node_path46.default.join(cacheDir(), "native-prebuilt", kind, name3, key2);
|
|
26238
26236
|
function download(url, to) {
|
|
26239
26237
|
try {
|
|
26240
|
-
(0,
|
|
26238
|
+
(0, import_node_child_process28.execFileSync)("curl", ["-fsS", "--max-time", "120", url, "-o", to], {
|
|
26241
26239
|
stdio: ["ignore", "ignore", "pipe"]
|
|
26242
26240
|
});
|
|
26243
26241
|
return true;
|
|
@@ -26554,7 +26552,7 @@ function combineNativeStaticLibraries(files2, moduleRoot) {
|
|
|
26554
26552
|
import_node_fs50.default.mkdirSync(directory, { recursive: true });
|
|
26555
26553
|
const temporary = import_node_path48.default.join(directory, `combined-${(0, import_node_crypto22.randomUUID)()}.a`);
|
|
26556
26554
|
try {
|
|
26557
|
-
(0,
|
|
26555
|
+
(0, import_node_child_process29.execFileSync)(import_node_path48.default.join(toolchain.toolchainBin, "llvm-ar"), [
|
|
26558
26556
|
"qcsDL",
|
|
26559
26557
|
temporary,
|
|
26560
26558
|
...files2
|
|
@@ -26577,7 +26575,7 @@ var import_node_path56 = __toESM(require("node:path"), 1);
|
|
|
26577
26575
|
|
|
26578
26576
|
// src/swift-objc-compile.ts
|
|
26579
26577
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
26580
|
-
var
|
|
26578
|
+
var import_node_child_process33 = require("node:child_process");
|
|
26581
26579
|
var import_node_crypto27 = require("node:crypto");
|
|
26582
26580
|
var import_node_fs58 = __toESM(require("node:fs"), 1);
|
|
26583
26581
|
var import_node_path55 = __toESM(require("node:path"), 1);
|
|
@@ -26606,12 +26604,12 @@ async function mapLimit(items2, limit, worker) {
|
|
|
26606
26604
|
|
|
26607
26605
|
// src/swift-packages.ts
|
|
26608
26606
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
26609
|
-
var
|
|
26607
|
+
var import_node_child_process30 = require("node:child_process");
|
|
26610
26608
|
var import_node_crypto24 = require("node:crypto");
|
|
26611
26609
|
var import_node_fs52 = __toESM(require("node:fs"), 1);
|
|
26612
26610
|
var import_node_path50 = __toESM(require("node:path"), 1);
|
|
26613
26611
|
var import_promises5 = require("node:timers/promises");
|
|
26614
|
-
var
|
|
26612
|
+
var import_node_util11 = require("node:util");
|
|
26615
26613
|
|
|
26616
26614
|
// src/numbered-lock.ts
|
|
26617
26615
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -26738,7 +26736,7 @@ function readPins(resolved) {
|
|
|
26738
26736
|
return out;
|
|
26739
26737
|
}
|
|
26740
26738
|
var verified = /* @__PURE__ */ new Set();
|
|
26741
|
-
var execFileAsync2 = (0,
|
|
26739
|
+
var execFileAsync2 = (0, import_node_util11.promisify)(import_node_child_process30.execFile);
|
|
26742
26740
|
async function resolvableSubmodulePaths(dir, git) {
|
|
26743
26741
|
if (!import_node_fs52.default.existsSync(import_node_path50.default.join(dir, ".gitmodules"))) return [];
|
|
26744
26742
|
let raw2;
|
|
@@ -27310,11 +27308,11 @@ function standinSourceDigest(srcDir = __sootsim_import_meta_dirname) {
|
|
|
27310
27308
|
}
|
|
27311
27309
|
return hash.digest("hex");
|
|
27312
27310
|
}
|
|
27313
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
27311
|
+
var STANDIN_SOURCE_DIGEST = true ? "c8920e83d2fb2b094c3317a9acc893f46346a4cce1cc4e0c11e5ace1015720a8" : standinSourceDigest();
|
|
27314
27312
|
|
|
27315
27313
|
// src/swift-standins.ts
|
|
27316
27314
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
27317
|
-
var
|
|
27315
|
+
var import_node_child_process32 = require("node:child_process");
|
|
27318
27316
|
var import_node_crypto26 = require("node:crypto");
|
|
27319
27317
|
var import_node_fs57 = __toESM(require("node:fs"), 1);
|
|
27320
27318
|
var import_node_path54 = __toESM(require("node:path"), 1);
|
|
@@ -27378,7 +27376,7 @@ function outputLockStdio(standard, env = process.env) {
|
|
|
27378
27376
|
|
|
27379
27377
|
// src/swift-cxx-standin.ts
|
|
27380
27378
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
27381
|
-
var
|
|
27379
|
+
var import_node_child_process31 = require("node:child_process");
|
|
27382
27380
|
var import_node_fs56 = __toESM(require("node:fs"), 1);
|
|
27383
27381
|
var import_node_path53 = __toESM(require("node:path"), 1);
|
|
27384
27382
|
|
|
@@ -27613,7 +27611,7 @@ async function emitCxxStandin(input) {
|
|
|
27613
27611
|
"-I",
|
|
27614
27612
|
input.headers
|
|
27615
27613
|
];
|
|
27616
|
-
const includes = (0,
|
|
27614
|
+
const includes = (0, import_node_child_process31.spawnSync)(input.clang, [...flags, "-M", "-MT", "peach", probe], {
|
|
27617
27615
|
encoding: "utf8",
|
|
27618
27616
|
env: swiftEnvironment(),
|
|
27619
27617
|
maxBuffer: 16 * 1024 * 1024
|
|
@@ -27633,7 +27631,7 @@ async function emitCxxStandin(input) {
|
|
|
27633
27631
|
const output2 = import_node_fs56.default.openSync(ast, "w");
|
|
27634
27632
|
let parsed;
|
|
27635
27633
|
try {
|
|
27636
|
-
parsed = (0,
|
|
27634
|
+
parsed = (0, import_node_child_process31.spawnSync)(
|
|
27637
27635
|
input.clang,
|
|
27638
27636
|
[...flags, "-fsyntax-only", "-Xclang", "-ast-dump=json", probe],
|
|
27639
27637
|
{ stdio: ["ignore", output2, "pipe"], encoding: "utf8", env: swiftEnvironment() }
|
|
@@ -27691,7 +27689,7 @@ async function emitCxxStandin(input) {
|
|
|
27691
27689
|
sourceFile,
|
|
27692
27690
|
[...prelude, ...live.map((item) => item.text)].join("\n") + "\n"
|
|
27693
27691
|
);
|
|
27694
|
-
const checked = (0,
|
|
27692
|
+
const checked = (0, import_node_child_process31.spawnSync)(
|
|
27695
27693
|
input.clang,
|
|
27696
27694
|
[
|
|
27697
27695
|
...flags,
|
|
@@ -27731,7 +27729,7 @@ var TRIPLE = "wasm32-unknown-wasip1";
|
|
|
27731
27729
|
var cacheDir4 = import_node_path54.default.join(cacheDir(), "swift-standins");
|
|
27732
27730
|
var SWIFT_STANDINS_DIR = "__standins__";
|
|
27733
27731
|
function exec(file, args, cwd) {
|
|
27734
|
-
return (0,
|
|
27732
|
+
return (0, import_node_child_process32.execFileSync)(file, args, {
|
|
27735
27733
|
cwd,
|
|
27736
27734
|
encoding: "utf8",
|
|
27737
27735
|
env: swiftEnvironment(),
|
|
@@ -28303,7 +28301,7 @@ function placeholderStandin(surface, binary2, toolchain, work, behavior, sibling
|
|
|
28303
28301
|
const out = import_node_path54.default.join(work, "graphs");
|
|
28304
28302
|
import_node_fs57.default.mkdirSync(import_node_path54.default.join(work, "interface"), { recursive: true });
|
|
28305
28303
|
import_node_fs57.default.mkdirSync(out, { recursive: true });
|
|
28306
|
-
const extracted = (0,
|
|
28304
|
+
const extracted = (0, import_node_child_process32.spawnSync)(
|
|
28307
28305
|
import_node_path54.default.join(toolchain.toolchainBin, "swiftc"),
|
|
28308
28306
|
[
|
|
28309
28307
|
"-emit-module",
|
|
@@ -28630,7 +28628,7 @@ function graphStandin(module2, graphs, values, wasm, binary2, toolchain, work, b
|
|
|
28630
28628
|
);
|
|
28631
28629
|
}
|
|
28632
28630
|
import_node_fs57.default.writeFileSync(file, source);
|
|
28633
|
-
const check = (0,
|
|
28631
|
+
const check = (0, import_node_child_process32.spawnSync)(
|
|
28634
28632
|
import_node_path54.default.join(toolchain.toolchainBin, "swiftc"),
|
|
28635
28633
|
// emitting the module runs the diagnostics a typecheck skips, such as
|
|
28636
28634
|
// literal overflow, which the app's build of the stand-in reaches
|
|
@@ -28969,7 +28967,7 @@ async function cxxStandin(surface, binary2, toolchain, work) {
|
|
|
28969
28967
|
roots.map((root) => `#include ${JSON.stringify(root)}
|
|
28970
28968
|
`).join("")
|
|
28971
28969
|
);
|
|
28972
|
-
const language = (0,
|
|
28970
|
+
const language = (0, import_node_child_process32.spawnSync)(
|
|
28973
28971
|
import_node_path54.default.join(toolchain.toolchainBin, "clang"),
|
|
28974
28972
|
[
|
|
28975
28973
|
"-target",
|
|
@@ -29165,7 +29163,7 @@ function standinLibrary(binary2, searchRoot, toolchain) {
|
|
|
29165
29163
|
}
|
|
29166
29164
|
function buildRustCrate(manifest, library, searchRoot) {
|
|
29167
29165
|
const crate = import_node_path54.default.relative(searchRoot, import_node_path54.default.dirname(manifest));
|
|
29168
|
-
const rustup = (0,
|
|
29166
|
+
const rustup = (0, import_node_child_process32.spawnSync)(
|
|
29169
29167
|
// runner-toolchain-platform: darwin
|
|
29170
29168
|
"rustup",
|
|
29171
29169
|
[
|
|
@@ -29184,7 +29182,7 @@ function buildRustCrate(manifest, library, searchRoot) {
|
|
|
29184
29182
|
throw new Error(
|
|
29185
29183
|
`rustup could not install Rust ${RUST_TOOLCHAIN} with ${RUST_TARGET} for ${crate}: ${failure(rustup)}`
|
|
29186
29184
|
);
|
|
29187
|
-
const result = (0,
|
|
29185
|
+
const result = (0, import_node_child_process32.spawnSync)(
|
|
29188
29186
|
// runner-toolchain-platform: darwin
|
|
29189
29187
|
"cargo",
|
|
29190
29188
|
[
|
|
@@ -29322,7 +29320,7 @@ async function sourceStandins(binaries, toolchain, provided, behavior) {
|
|
|
29322
29320
|
})
|
|
29323
29321
|
);
|
|
29324
29322
|
const build = await new Promise((resolve3) => {
|
|
29325
|
-
const child = (0,
|
|
29323
|
+
const child = (0, import_node_child_process32.spawn)(
|
|
29326
29324
|
"bun",
|
|
29327
29325
|
[
|
|
29328
29326
|
import_node_path54.default.join(repo, "scripts/build/swift-standins-submit.ts"),
|
|
@@ -30467,7 +30465,7 @@ function prepareXcodeSwiftProducts(app, binaries, moduleRoot) {
|
|
|
30467
30465
|
provided: [...providers.keys()]
|
|
30468
30466
|
};
|
|
30469
30467
|
try {
|
|
30470
|
-
const lock = (0,
|
|
30468
|
+
const lock = (0, import_node_child_process33.spawnSync)(
|
|
30471
30469
|
"perl",
|
|
30472
30470
|
["-e", 'open(my $f, ">&=", 3) or die $!; flock($f, 2) or die $!'],
|
|
30473
30471
|
{ stdio: ["ignore", "pipe", "pipe", descriptor], encoding: "utf8" }
|
|
@@ -30638,7 +30636,7 @@ function prepareXcodeSwiftProducts(app, binaries, moduleRoot) {
|
|
|
30638
30636
|
import_node_path55.default.join(work, `${target.moduleName}.o`)
|
|
30639
30637
|
]
|
|
30640
30638
|
];
|
|
30641
|
-
const result = (0,
|
|
30639
|
+
const result = (0, import_node_child_process33.spawnSync)(frontend, args, {
|
|
30642
30640
|
cwd: work,
|
|
30643
30641
|
encoding: "utf8",
|
|
30644
30642
|
env: swiftEnvironment(),
|
|
@@ -30758,7 +30756,7 @@ async function prepareXcodeObjCImplementations(app, binaries, moduleRoot) {
|
|
|
30758
30756
|
const work = import_node_path55.default.join(parent, key2);
|
|
30759
30757
|
const descriptor = import_node_fs58.default.openSync(`${work}.lock`, "a");
|
|
30760
30758
|
try {
|
|
30761
|
-
const locked = (0,
|
|
30759
|
+
const locked = (0, import_node_child_process33.spawnSync)(
|
|
30762
30760
|
"perl",
|
|
30763
30761
|
["-e", 'open(my $f, ">&=", 3) or die $!; flock($f, 2) or die $!'],
|
|
30764
30762
|
{ stdio: ["ignore", "pipe", "pipe", descriptor], encoding: "utf8" }
|
|
@@ -30979,7 +30977,6 @@ async function prepareXcodeObjCImplementations(app, binaries, moduleRoot) {
|
|
|
30979
30977
|
...objc ? [...swiftObjCRuntimeFlags, "-fobjc-exceptions"] : [],
|
|
30980
30978
|
...objcSdkIntakeFlags(headers, toolchain.toolchainBin, minimum),
|
|
30981
30979
|
...headerSearch.flags[index],
|
|
30982
|
-
...cxx ? fmtConstantInterpreterFlags([...flags, ...headerSearch.flags[index]]) : [],
|
|
30983
30980
|
...target.includes.flatMap((include) => ["-I", staged(include)]),
|
|
30984
30981
|
...target.frameworks.flatMap((framework) => ["-F", staged(framework)]),
|
|
30985
30982
|
...moduleMaps[index],
|
|
@@ -31007,7 +31004,7 @@ async function prepareXcodeObjCImplementations(app, binaries, moduleRoot) {
|
|
|
31007
31004
|
...dependencies ? ["-MD", "-MF", dependencies, "-H"] : []
|
|
31008
31005
|
];
|
|
31009
31006
|
const result = await new Promise((resolve3) => {
|
|
31010
|
-
const child = (0,
|
|
31007
|
+
const child = (0, import_node_child_process33.spawn)(
|
|
31011
31008
|
import_node_path55.default.join(toolchain.toolchainBin, cxx ? "clang++" : "clang"),
|
|
31012
31009
|
args,
|
|
31013
31010
|
{
|
|
@@ -31637,7 +31634,7 @@ public func ${register}() -> RCTModuleHost.Registration {
|
|
|
31637
31634
|
// src/swift-host.ts
|
|
31638
31635
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
31639
31636
|
var import_node_async_hooks = require("node:async_hooks");
|
|
31640
|
-
var
|
|
31637
|
+
var import_node_child_process36 = require("node:child_process");
|
|
31641
31638
|
var import_node_crypto30 = require("node:crypto");
|
|
31642
31639
|
var import_node_fs64 = __toESM(require("node:fs"), 1);
|
|
31643
31640
|
var import_node_os16 = __toESM(require("node:os"), 1);
|
|
@@ -33511,7 +33508,7 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
33511
33508
|
|
|
33512
33509
|
// src/swift-cxx-reachable.ts
|
|
33513
33510
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
33514
|
-
var
|
|
33511
|
+
var import_node_child_process34 = require("node:child_process");
|
|
33515
33512
|
var import_node_crypto28 = require("node:crypto");
|
|
33516
33513
|
var import_node_fs61 = __toESM(require("node:fs"), 1);
|
|
33517
33514
|
var import_node_path58 = __toESM(require("node:path"), 1);
|
|
@@ -33622,7 +33619,7 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
|
|
|
33622
33619
|
failed = captured.failed;
|
|
33623
33620
|
reached = captured.reached;
|
|
33624
33621
|
} else {
|
|
33625
|
-
const result2 = (0,
|
|
33622
|
+
const result2 = (0, import_node_child_process34.spawnSync)(clang, [...cleaned, "-M", "-MT", "peach", "-H"], {
|
|
33626
33623
|
cwd: work,
|
|
33627
33624
|
encoding: "utf8",
|
|
33628
33625
|
env: swiftEnvironment(),
|
|
@@ -33748,7 +33745,7 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
|
|
|
33748
33745
|
|
|
33749
33746
|
// src/swift-pdf-raster.ts
|
|
33750
33747
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
33751
|
-
var
|
|
33748
|
+
var import_node_child_process35 = require("node:child_process");
|
|
33752
33749
|
var import_node_crypto29 = require("node:crypto");
|
|
33753
33750
|
var import_node_fs63 = __toESM(require("node:fs"), 1);
|
|
33754
33751
|
var import_node_os15 = __toESM(require("node:os"), 1);
|
|
@@ -33845,7 +33842,7 @@ function rasterBinary() {
|
|
|
33845
33842
|
);
|
|
33846
33843
|
import_node_fs63.default.writeFileSync(source, RASTER_SWIFT);
|
|
33847
33844
|
try {
|
|
33848
|
-
(0,
|
|
33845
|
+
(0, import_node_child_process35.execFileSync)("xcrun", ["swiftc", "-o", binary2, source], { stdio: "pipe" });
|
|
33849
33846
|
} finally {
|
|
33850
33847
|
import_node_fs63.default.rmSync(import_node_path60.default.dirname(source), { recursive: true, force: true });
|
|
33851
33848
|
}
|
|
@@ -33870,10 +33867,10 @@ function rasterizePdfFile(diskPath, pdfSha256) {
|
|
|
33870
33867
|
);
|
|
33871
33868
|
try {
|
|
33872
33869
|
if (process.platform === "darwin") {
|
|
33873
|
-
(0,
|
|
33870
|
+
(0, import_node_child_process35.execFileSync)(rasterBinary(), [diskPath, "3", out], { stdio: "pipe" });
|
|
33874
33871
|
} else {
|
|
33875
33872
|
const { executable, prefixArgs } = rnxSelfInvocation();
|
|
33876
|
-
(0,
|
|
33873
|
+
(0, import_node_child_process35.execFileSync)(
|
|
33877
33874
|
executable,
|
|
33878
33875
|
[
|
|
33879
33876
|
...prefixArgs,
|
|
@@ -33968,7 +33965,7 @@ function projectFor(packagePath, hosted, signal) {
|
|
|
33968
33965
|
}
|
|
33969
33966
|
var sharedXcodeProjects = /* @__PURE__ */ new Map();
|
|
33970
33967
|
var xcodeProjects = () => projectScope.getStore()?.xcodeProjects ?? sharedXcodeProjects;
|
|
33971
|
-
function withXcodeProject(xcodeproj, options,
|
|
33968
|
+
function withXcodeProject(xcodeproj, options, run8) {
|
|
33972
33969
|
return projectScope.run(
|
|
33973
33970
|
{ projects: /* @__PURE__ */ new Map(), xcodeProjects: /* @__PURE__ */ new Map(), sourceEntries: /* @__PURE__ */ new Map() },
|
|
33974
33971
|
async () => {
|
|
@@ -33980,7 +33977,7 @@ function withXcodeProject(xcodeproj, options, run6) {
|
|
|
33980
33977
|
options.interfaceRoot,
|
|
33981
33978
|
options.nativeModules
|
|
33982
33979
|
);
|
|
33983
|
-
return
|
|
33980
|
+
return run8(root);
|
|
33984
33981
|
}
|
|
33985
33982
|
);
|
|
33986
33983
|
}
|
|
@@ -34181,11 +34178,11 @@ function xcodeInputKey(layout, file, relative3) {
|
|
|
34181
34178
|
) : relative3 === ".." || relative3.startsWith("../") ? import_node_path61.default.posix.join("external", file.split(import_node_path61.default.sep).join("/")) : relative3;
|
|
34182
34179
|
}
|
|
34183
34180
|
var layoutScope = new import_node_async_hooks.AsyncLocalStorage();
|
|
34184
|
-
async function withXcodeLayout(root,
|
|
34181
|
+
async function withXcodeLayout(root, run8) {
|
|
34185
34182
|
const scope2 = /* @__PURE__ */ new Map();
|
|
34186
34183
|
return layoutScope.run(scope2, async () => {
|
|
34187
34184
|
scope2.set(root, await buildXcodeLayout(root));
|
|
34188
|
-
return
|
|
34185
|
+
return run8();
|
|
34189
34186
|
});
|
|
34190
34187
|
}
|
|
34191
34188
|
function xcodeLayout(root) {
|
|
@@ -35130,7 +35127,7 @@ function buildSwiftBundleFiles(packagePath, hosted, inputs, resourceBundles) {
|
|
|
35130
35127
|
};
|
|
35131
35128
|
try {
|
|
35132
35129
|
const [shell, ...args] = phase.command;
|
|
35133
|
-
(0,
|
|
35130
|
+
(0, import_node_child_process36.execFileSync)(shell, args, {
|
|
35134
35131
|
cwd: phase.directory,
|
|
35135
35132
|
env,
|
|
35136
35133
|
stdio: ["ignore", "pipe", "pipe"],
|
|
@@ -35813,8 +35810,36 @@ function scopedArtifact(project, entry, moduleRoot, signal) {
|
|
|
35813
35810
|
return fresh;
|
|
35814
35811
|
}
|
|
35815
35812
|
|
|
35813
|
+
// src/turbo-source.ts
|
|
35814
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
35815
|
+
var import_node_child_process38 = require("node:child_process");
|
|
35816
|
+
var import_node_util13 = require("node:util");
|
|
35817
|
+
|
|
35818
|
+
// src/installed-native-libraries.ts
|
|
35819
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
35820
|
+
|
|
35821
|
+
// src/podspec-sources.ts
|
|
35822
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
35823
|
+
|
|
35824
|
+
// src/turbo-codegen-intake.ts
|
|
35825
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
35826
|
+
var import_node_child_process37 = require("node:child_process");
|
|
35827
|
+
var import_node_util12 = require("node:util");
|
|
35828
|
+
var run6 = (0, import_node_util12.promisify)(import_node_child_process37.execFile);
|
|
35829
|
+
|
|
35830
|
+
// src/turbo-source.ts
|
|
35831
|
+
var execFileAsync3 = (0, import_node_util13.promisify)(import_node_child_process38.execFile);
|
|
35832
|
+
var OBJC_BRIDGE = /\b(?:RCT_EXPORT_MODULE|RCT_EXPORT_MODULE_NO_LOAD)\s*\(/;
|
|
35833
|
+
function registersReactModule(source) {
|
|
35834
|
+
const stripped2 = stripComments2(source);
|
|
35835
|
+
return OBJC_BRIDGE.test(stripped2) && !/-Swift\.h\b/.test(stripped2);
|
|
35836
|
+
}
|
|
35837
|
+
function stripComments2(text5) {
|
|
35838
|
+
return text5.replace(/\/\*[\s\S]*?\*\//g, "").replace(/\/\/[^\n]*/g, "");
|
|
35839
|
+
}
|
|
35840
|
+
|
|
35816
35841
|
// src/expo-swift-host.ts
|
|
35817
|
-
var
|
|
35842
|
+
var run7 = (0, import_node_util14.promisify)(import_node_child_process39.execFile);
|
|
35818
35843
|
var scriptEnv = { ...process.env, [PEACH_FORKED_SCRIPT_ENV]: "1" };
|
|
35819
35844
|
var EXPO_SWIFT_ENTRY = "Sources/PeachExpoApp/PeachExpoEntry.swift";
|
|
35820
35845
|
var WITNESS_BATCH = 200;
|
|
@@ -36252,7 +36277,10 @@ function enrichInstalledUnits(units, installed, namespaceGroups, provided, modul
|
|
|
36252
36277
|
);
|
|
36253
36278
|
for (const [file, source] of Object.entries(input.files)) {
|
|
36254
36279
|
const owner = byPath.find((target2) => file.startsWith(`${target2.path}/`));
|
|
36255
|
-
if (owner && included.has(owner.name) && (file.endsWith(".swift") || isSwiftNativeTranslationUnit(file)) && !(bridge && /RCT_EXTERN_(?:REMAP_)?MODULE\s*\(/.test(source))
|
|
36280
|
+
if (owner && included.has(owner.name) && (file.endsWith(".swift") || isSwiftNativeTranslationUnit(file)) && !(bridge && /RCT_EXTERN_(?:REMAP_)?MODULE\s*\(/.test(source)) && // the turbo route compiles a pod's React-registering Objective-C
|
|
36281
|
+
// against the one TurboCore; the Expo graph carries no React-Core
|
|
36282
|
+
// originals to link it
|
|
36283
|
+
!(!file.endsWith(".swift") && registersReactModule(source)))
|
|
36256
36284
|
unit2.files[map2(file)] = bridge && owner.name === unit2.namespace && file.endsWith(".swift") ? `import Foundation
|
|
36257
36285
|
import UIKit
|
|
36258
36286
|
import React
|
|
@@ -36464,7 +36492,7 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
|
|
|
36464
36492
|
const childStart = performance.timeOrigin + performance.now();
|
|
36465
36493
|
const [searched, resolvedModules] = await Promise.allSettled(
|
|
36466
36494
|
["search", "resolve"].map(
|
|
36467
|
-
(command) =>
|
|
36495
|
+
(command) => run7("node", [cli, command, ...flags, "--json"], {
|
|
36468
36496
|
timeout: 12e4,
|
|
36469
36497
|
maxBuffer: 8 * 1024 * 1024,
|
|
36470
36498
|
env: scriptEnv,
|