peachsim 0.1.2300 → 0.1.2302
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/control.ts +1 -0
- package/cli/commands/inspect.ts +2 -1
- package/cli/commands/shell-url.ts +5 -0
- 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 +677 -355
- 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 +3 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +628 -306
- 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 +2889 -354
- package/dist-lib/host/fetch-proxy-handler.cjs +6 -6
- 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 +14 -9
- 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 +13 -9
- package/dist-lib/native-app-identity-project.cjs +9 -5
- package/dist-lib/native-app-identity-project.mjs +9 -5
- 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 +56 -53
- 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 +2 -1
- package/dist-lib/sdk.mjs +2 -1
- package/dist-lib/skills.cjs +788 -415
- package/dist-lib/swift-compile.cjs +15 -7
- package/dist-lib/swift-compile.mjs +15 -7
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- 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 +23 -11
- package/dist-lib/vite.cjs +6 -6
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/components/native-ui/webview-frame-bridge.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/activitykit-activityContract.d.ts +17 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +3 -1
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +4 -0
- package/java-platform/licenses/fdlibm.txt +3 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/expo-discovery-cache.ts +6 -6
- package/src/expo-native-workspace.ts +85 -37
- package/src/expo-swift-host.ts +19 -4
- package/src/host/bridge-host.ts +9 -0
- package/src/launchMetadataContract.ts +1 -0
- package/src/one-sdk-preparation.ts +61 -5
- package/src/swift-guest-compile.ts +19 -3
- package/src/swift-guest-source-plan.ts +7 -2
- package/src/swiftContract.ts +3 -0
- package/src/turbo-compile.ts +60 -4
- package/src/turbo-source.ts +239 -35
- package/src/widget-extension-bundle.ts +48 -0
- package/src/xcode-project.ts +22 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2302 | (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;
|
|
@@ -5129,7 +5129,7 @@ var swiftCoverageProvenance;
|
|
|
5129
5129
|
var init_provenance = __esm({
|
|
5130
5130
|
"src/swift-coverage/provenance.ts"() {
|
|
5131
5131
|
"use strict";
|
|
5132
|
-
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"bfde06f157f52d3dd76577b3c6059c95c0393180b054ced773624ea89558992b","swift-package.ts":"338cfef9a34a930206ac2e1a8a90b85c8d61f776d9a41e6445dc18e0c5385cdb","swift-source-file.ts":"93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94","swift-toolchain.ts":"b60efa4eb7516378344cb7c48216aea5fa36590ace91a698655b48cfd0db96fe","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1","xcode-project.ts":"
|
|
5132
|
+
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"bfde06f157f52d3dd76577b3c6059c95c0393180b054ced773624ea89558992b","swift-package.ts":"338cfef9a34a930206ac2e1a8a90b85c8d61f776d9a41e6445dc18e0c5385cdb","swift-source-file.ts":"93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94","swift-toolchain.ts":"b60efa4eb7516378344cb7c48216aea5fa36590ace91a698655b48cfd0db96fe","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1","xcode-project.ts":"f0e86caccf203fa58395cbac9fed64577bb98a061efdf24f85a289c4e5996db9","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
|
|
5133
5133
|
}
|
|
5134
5134
|
});
|
|
5135
5135
|
|
|
@@ -7703,7 +7703,7 @@ function linuxBrowserLibsKey(id, arch) {
|
|
|
7703
7703
|
return `linux-libs/${id}/${arch}.tar.gz`;
|
|
7704
7704
|
}
|
|
7705
7705
|
function missingLibraries(executablePath, libraryPath) {
|
|
7706
|
-
const ldd = (0,
|
|
7706
|
+
const ldd = (0, import_node_child_process13.spawnSync)("ldd", [executablePath], {
|
|
7707
7707
|
encoding: "utf8",
|
|
7708
7708
|
timeout: 3e4,
|
|
7709
7709
|
env: libraryPath ? {
|
|
@@ -7766,11 +7766,11 @@ async function ensureLinuxBrowserLibraries(executablePath, browser) {
|
|
|
7766
7766
|
}
|
|
7767
7767
|
return { ok: true, libraryPath };
|
|
7768
7768
|
}
|
|
7769
|
-
var
|
|
7769
|
+
var import_node_child_process13, import_node_fs26, import_node_path22, LINUX_BROWSER_LIBS_ARCHES, LINUX_BROWSER_LIBS_MARKER;
|
|
7770
7770
|
var init_linux_browser_libs = __esm({
|
|
7771
7771
|
"cli/drivers/linux-browser-libs.ts"() {
|
|
7772
7772
|
"use strict";
|
|
7773
|
-
|
|
7773
|
+
import_node_child_process13 = require("node:child_process");
|
|
7774
7774
|
import_node_fs26 = require("node:fs");
|
|
7775
7775
|
import_node_path22 = require("node:path");
|
|
7776
7776
|
init_src();
|
|
@@ -7938,7 +7938,7 @@ function ensureSwiftLinuxRuntime(release) {
|
|
|
7938
7938
|
`);
|
|
7939
7939
|
const download2 = `${plan.dest}.${process.pid}.tmp`;
|
|
7940
7940
|
try {
|
|
7941
|
-
(0,
|
|
7941
|
+
(0, import_node_child_process14.execFileSync)(
|
|
7942
7942
|
"curl",
|
|
7943
7943
|
[
|
|
7944
7944
|
"-fsSL",
|
|
@@ -8005,7 +8005,7 @@ function swiftCompilerRelease(release) {
|
|
|
8005
8005
|
}
|
|
8006
8006
|
function swiftToolchainBin(release) {
|
|
8007
8007
|
if (process.platform === "darwin") {
|
|
8008
|
-
const dirs = [
|
|
8008
|
+
const dirs = [import_node_os6.default.homedir(), "/"].map(
|
|
8009
8009
|
(base) => import_node_path25.default.join(base, `Library/Developer/Toolchains/${release}.xctoolchain/usr/bin`)
|
|
8010
8010
|
);
|
|
8011
8011
|
return dirs.find((dir) => import_node_fs30.default.existsSync(import_node_path25.default.join(dir, "swift"))) ?? dirs[0];
|
|
@@ -8051,7 +8051,7 @@ exec ${JSON.stringify(import_node_path25.default.join(toolchainBin, "wasm-ld"))}
|
|
|
8051
8051
|
}
|
|
8052
8052
|
function peachHome() {
|
|
8053
8053
|
const override = process.env.PEACH_HOME;
|
|
8054
|
-
return override ? import_node_path25.default.resolve(override) : import_node_path25.default.join(
|
|
8054
|
+
return override ? import_node_path25.default.resolve(override) : import_node_path25.default.join(import_node_os6.default.homedir(), ".peach");
|
|
8055
8055
|
}
|
|
8056
8056
|
function peachSwiftSdksDir() {
|
|
8057
8057
|
return process.env.PEACH_SWIFT_SDKS_PATH ?? import_node_path25.default.join(peachHome(), "swift", "sdks");
|
|
@@ -8060,7 +8060,7 @@ function agentSharedCacheRoot() {
|
|
|
8060
8060
|
if (process.platform !== "darwin" || !process.env.TM_SESSION) return null;
|
|
8061
8061
|
if (agentBuildersRoot) return agentBuildersRoot;
|
|
8062
8062
|
const policy = JSON.parse(
|
|
8063
|
-
(0,
|
|
8063
|
+
(0, import_node_child_process14.execFileSync)("tm", ["machine", "policy", "--json"], {
|
|
8064
8064
|
encoding: "utf8",
|
|
8065
8065
|
timeout: 3e4
|
|
8066
8066
|
})
|
|
@@ -8068,7 +8068,7 @@ function agentSharedCacheRoot() {
|
|
|
8068
8068
|
const mounts = policy.storage_mounts ?? [];
|
|
8069
8069
|
if (!Array.isArray(mounts)) throw new Error("storage_mounts must be a list");
|
|
8070
8070
|
const isMount = (directory2) => {
|
|
8071
|
-
const lines = (0,
|
|
8071
|
+
const lines = (0, import_node_child_process14.execFileSync)("/bin/df", ["-P", directory2], {
|
|
8072
8072
|
encoding: "utf8",
|
|
8073
8073
|
timeout: 3e4
|
|
8074
8074
|
}).trim().split("\n");
|
|
@@ -8083,13 +8083,13 @@ function agentSharedCacheRoot() {
|
|
|
8083
8083
|
throw new Error(`configured storage is not mounted: ${mount}`);
|
|
8084
8084
|
}
|
|
8085
8085
|
const heavy = policy.heavy_data_dir;
|
|
8086
|
-
if (heavy == null) return agentBuildersRoot = import_node_path25.default.join(
|
|
8086
|
+
if (heavy == null) return agentBuildersRoot = import_node_path25.default.join(import_node_os6.default.homedir(), "builders");
|
|
8087
8087
|
if (typeof heavy !== "string" || !import_node_path25.default.isAbsolute(heavy) || !import_node_fs30.default.statSync(heavy).isDirectory())
|
|
8088
8088
|
throw new Error(`configured heavy_data_dir is unavailable: ${heavy}`);
|
|
8089
8089
|
const mounted = isMount(heavy);
|
|
8090
8090
|
if (import_node_path25.default.dirname(heavy) === "/Volumes" && !mounted)
|
|
8091
8091
|
throw new Error(`configured storage is not mounted: ${heavy}`);
|
|
8092
|
-
return agentBuildersRoot = mounted && import_node_fs30.default.statSync(heavy).dev === import_node_fs30.default.statSync(
|
|
8092
|
+
return agentBuildersRoot = mounted && import_node_fs30.default.statSync(heavy).dev === import_node_fs30.default.statSync(import_node_os6.default.homedir()).dev ? import_node_path25.default.join(import_node_os6.default.homedir(), "builders") : import_node_path25.default.join(heavy, "builders");
|
|
8093
8093
|
}
|
|
8094
8094
|
function buildersRootEnv() {
|
|
8095
8095
|
const root = process.env[BUILDERS_ROOT_ENV]?.trim();
|
|
@@ -8187,7 +8187,7 @@ ${swiftInstallSteps(release, sdk2)}`
|
|
|
8187
8187
|
const swift = import_node_path25.default.join(bin, "swift");
|
|
8188
8188
|
const listed = [swift, sdk2.wasmSdkId, ...swiftSdkOptions()].join("\0");
|
|
8189
8189
|
if (!listedSdks.has(listed)) {
|
|
8190
|
-
const sdks = (0,
|
|
8190
|
+
const sdks = (0, import_node_child_process14.execFileSync)(swift, ["sdk", "list", ...swiftSdkOptions()], {
|
|
8191
8191
|
encoding: "utf8",
|
|
8192
8192
|
env: swiftEnvironment(),
|
|
8193
8193
|
stdio: ["ignore", "pipe", "pipe"]
|
|
@@ -8217,7 +8217,7 @@ function swiftSdkBundle(swift, id, options) {
|
|
|
8217
8217
|
const key2 = [swift, id, ...options].join("\0");
|
|
8218
8218
|
const known = sdkBundles.get(key2);
|
|
8219
8219
|
if (known && import_node_fs30.default.existsSync(known)) return known;
|
|
8220
|
-
const configuration = (0,
|
|
8220
|
+
const configuration = (0, import_node_child_process14.execFileSync)(
|
|
8221
8221
|
swift,
|
|
8222
8222
|
["sdk", "configure", ...options, "--show-configuration", id, "wasm64-unknown-wasip1"],
|
|
8223
8223
|
{ encoding: "utf8", env: swiftEnvironment(), stdio: ["ignore", "pipe", "pipe"] }
|
|
@@ -8319,7 +8319,7 @@ function installSwiftSdkArchive(swift, sdk2, archive) {
|
|
|
8319
8319
|
throw new Error("declared Swift SDK archive checksum mismatch");
|
|
8320
8320
|
const store = import_node_path25.default.join(staging, "sdks");
|
|
8321
8321
|
import_node_fs30.default.mkdirSync(store);
|
|
8322
|
-
(0,
|
|
8322
|
+
(0, import_node_child_process14.execFileSync)(
|
|
8323
8323
|
swift,
|
|
8324
8324
|
[
|
|
8325
8325
|
"sdk",
|
|
@@ -8339,7 +8339,7 @@ function installSwiftSdkArchive(swift, sdk2, archive) {
|
|
|
8339
8339
|
const expected = swiftSdkPayloadChecksum(stagedBundle);
|
|
8340
8340
|
const locks = import_node_path25.default.join(import_node_path25.default.resolve(peachSwiftSdksDir()), ".peach-locks");
|
|
8341
8341
|
import_node_fs30.default.mkdirSync(locks, { recursive: true });
|
|
8342
|
-
(0,
|
|
8342
|
+
(0, import_node_child_process14.execFileSync)(
|
|
8343
8343
|
"perl",
|
|
8344
8344
|
[
|
|
8345
8345
|
"-e",
|
|
@@ -8380,7 +8380,7 @@ function installSwiftSdkArchive(swift, sdk2, archive) {
|
|
|
8380
8380
|
}
|
|
8381
8381
|
}
|
|
8382
8382
|
function swiftSdkStagingDirectory(prefix) {
|
|
8383
|
-
const parent = scratch?.directory ??
|
|
8383
|
+
const parent = scratch?.directory ?? import_node_os6.default.tmpdir();
|
|
8384
8384
|
if (!import_node_fs30.default.existsSync(parent)) throw new Error(`Swift SDK install is missing ${parent}`);
|
|
8385
8385
|
return import_node_fs30.default.mkdtempSync(import_node_path25.default.join(parent, prefix));
|
|
8386
8386
|
}
|
|
@@ -8399,7 +8399,7 @@ function installSwiftWasmSdk(release, sdk2) {
|
|
|
8399
8399
|
if (sdk2.wasmSdkUrl.startsWith("file:"))
|
|
8400
8400
|
import_node_fs30.default.copyFileSync((0, import_node_url3.fileURLToPath)(sdk2.wasmSdkUrl), archive);
|
|
8401
8401
|
else
|
|
8402
|
-
(0,
|
|
8402
|
+
(0, import_node_child_process14.execFileSync)(
|
|
8403
8403
|
"curl",
|
|
8404
8404
|
[
|
|
8405
8405
|
"-fsSL",
|
|
@@ -8486,7 +8486,7 @@ async function swiftCompilerAsync(release, signal) {
|
|
|
8486
8486
|
throw new Error(`Swift compiler binary mismatch: ${relative3}`);
|
|
8487
8487
|
}
|
|
8488
8488
|
}
|
|
8489
|
-
const { stdout } = await (0, import_node_util6.promisify)(
|
|
8489
|
+
const { stdout } = await (0, import_node_util6.promisify)(import_node_child_process14.execFile)(binary2, ["--version"], {
|
|
8490
8490
|
encoding: "utf8",
|
|
8491
8491
|
env: swiftEnvironment(),
|
|
8492
8492
|
signal
|
|
@@ -8505,7 +8505,7 @@ function swiftCompiler(release) {
|
|
|
8505
8505
|
throw new Error(`Swift compiler ${release} is missing ${binary2}`);
|
|
8506
8506
|
if (release.includes("-custom-"))
|
|
8507
8507
|
verifySwiftHostCompiler(release, import_node_path25.default.resolve(bin, "../.."));
|
|
8508
|
-
const version2 = (0,
|
|
8508
|
+
const version2 = (0, import_node_child_process14.execFileSync)(binary2, ["--version"], {
|
|
8509
8509
|
encoding: "utf8",
|
|
8510
8510
|
env: swiftEnvironment(),
|
|
8511
8511
|
stdio: ["ignore", "pipe", "pipe"]
|
|
@@ -8576,14 +8576,14 @@ function swiftCompilerInstall(release) {
|
|
|
8576
8576
|
]
|
|
8577
8577
|
};
|
|
8578
8578
|
}
|
|
8579
|
-
var
|
|
8579
|
+
var import_node_child_process14, import_node_crypto10, import_node_fs30, import_node_os6, import_node_path25, import_node_url3, import_node_util6, SWIFT_HOST_COMPILER_RELEASE, SWIFT_HOST_COMPILER_ID, compilerArchives, linuxRuntimeLibs, SWIFT_PRIVATE_DISTRIBUTION_ENV, SWIFT_AUTOLINK_LINKER, BUILDERS_ROOT_ENV, agentBuildersRoot, scratch, linuxLibraryPath, linuxHostSdkRoot, listedSdks, sdkBundles, sdkFileHashes, sdkFilesHashed, loadedSdkHashFiles, verifiedCompilers;
|
|
8580
8580
|
var init_swift_toolchain = __esm({
|
|
8581
8581
|
"src/swift-toolchain.ts"() {
|
|
8582
8582
|
"use strict";
|
|
8583
|
-
|
|
8583
|
+
import_node_child_process14 = require("node:child_process");
|
|
8584
8584
|
import_node_crypto10 = require("node:crypto");
|
|
8585
8585
|
import_node_fs30 = __toESM(require("node:fs"), 1);
|
|
8586
|
-
|
|
8586
|
+
import_node_os6 = __toESM(require("node:os"), 1);
|
|
8587
8587
|
import_node_path25 = __toESM(require("node:path"), 1);
|
|
8588
8588
|
import_node_url3 = require("node:url");
|
|
8589
8589
|
import_node_util6 = require("node:util");
|
|
@@ -8875,7 +8875,7 @@ function swiftObjCPlatformFlags(toolchainBin, minimum) {
|
|
|
8875
8875
|
Math.floor(minimum % 1e4 / 100),
|
|
8876
8876
|
minimum % 100
|
|
8877
8877
|
].join(".");
|
|
8878
|
-
const result = (0,
|
|
8878
|
+
const result = (0, import_node_child_process15.spawnSync)(
|
|
8879
8879
|
import_node_path26.default.join(toolchainBin, "clang"),
|
|
8880
8880
|
[
|
|
8881
8881
|
"-target",
|
|
@@ -8908,11 +8908,11 @@ function swiftObjCPlatformFlags(toolchainBin, minimum) {
|
|
|
8908
8908
|
platforms.set(key2, flags);
|
|
8909
8909
|
return flags;
|
|
8910
8910
|
}
|
|
8911
|
-
var
|
|
8911
|
+
var import_node_child_process15, import_node_path26, platforms;
|
|
8912
8912
|
var init_swift_objc_platform = __esm({
|
|
8913
8913
|
"src/swift-objc-platform.ts"() {
|
|
8914
8914
|
"use strict";
|
|
8915
|
-
|
|
8915
|
+
import_node_child_process15 = require("node:child_process");
|
|
8916
8916
|
import_node_path26 = __toESM(require("node:path"), 1);
|
|
8917
8917
|
init_swift_toolchain();
|
|
8918
8918
|
platforms = /* @__PURE__ */ new Map();
|
|
@@ -10648,7 +10648,7 @@ function developerDirs() {
|
|
|
10648
10648
|
try {
|
|
10649
10649
|
add(
|
|
10650
10650
|
// runner-toolchain-platform: darwin
|
|
10651
|
-
(0,
|
|
10651
|
+
(0, import_node_child_process16.execFileSync)("xcode-select", ["-p"], {
|
|
10652
10652
|
encoding: "utf8",
|
|
10653
10653
|
stdio: ["ignore", "pipe", "pipe"]
|
|
10654
10654
|
}).trim()
|
|
@@ -10667,7 +10667,7 @@ function readNativeSdk(developerDir2) {
|
|
|
10667
10667
|
const env = { ...process.env, DEVELOPER_DIR: developerDir2 };
|
|
10668
10668
|
const xcrun = (args) => (
|
|
10669
10669
|
// runner-toolchain-platform: darwin
|
|
10670
|
-
(0,
|
|
10670
|
+
(0, import_node_child_process16.execFileSync)("xcrun", args, {
|
|
10671
10671
|
encoding: "utf8",
|
|
10672
10672
|
env,
|
|
10673
10673
|
stdio: ["ignore", "pipe", "pipe"]
|
|
@@ -10682,7 +10682,7 @@ function readNativeSdk(developerDir2) {
|
|
|
10682
10682
|
sdk: xcrun(["--sdk", "iphonesimulator", "--show-sdk-version"]),
|
|
10683
10683
|
settings: digest3("SDKSettings.json"),
|
|
10684
10684
|
build: digest3("System/Library/CoreServices/SystemVersion.plist"),
|
|
10685
|
-
compilerVersion: (0,
|
|
10685
|
+
compilerVersion: (0, import_node_child_process16.execFileSync)(compiler, ["--version"], {
|
|
10686
10686
|
encoding: "utf8",
|
|
10687
10687
|
env,
|
|
10688
10688
|
stdio: ["ignore", "pipe", "pipe"]
|
|
@@ -11152,7 +11152,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
|
|
|
11152
11152
|
for (let round = 0; ; round++) {
|
|
11153
11153
|
import_node_fs31.default.rmSync(out, { recursive: true, force: true });
|
|
11154
11154
|
import_node_fs31.default.mkdirSync(out, { recursive: true });
|
|
11155
|
-
const run8 = (0,
|
|
11155
|
+
const run8 = (0, import_node_child_process16.spawnSync)(
|
|
11156
11156
|
...withoutCoreDump(import_node_path28.default.join(toolchainBin, "swift-symbolgraph-extract"), [
|
|
11157
11157
|
"-module-name",
|
|
11158
11158
|
surface.module,
|
|
@@ -11337,7 +11337,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
|
|
|
11337
11337
|
)
|
|
11338
11338
|
].join("\n")
|
|
11339
11339
|
);
|
|
11340
|
-
const run8 = (0,
|
|
11340
|
+
const run8 = (0, import_node_child_process16.spawnSync)(
|
|
11341
11341
|
import_node_path28.default.join(toolchainBin, "swift-frontend"),
|
|
11342
11342
|
[
|
|
11343
11343
|
"-typecheck",
|
|
@@ -11465,7 +11465,7 @@ function inheritedDefaultInits(surface, graphs, toolchainBin, search, moduleCach
|
|
|
11465
11465
|
)
|
|
11466
11466
|
].join("\n")
|
|
11467
11467
|
);
|
|
11468
|
-
const run8 = (0,
|
|
11468
|
+
const run8 = (0, import_node_child_process16.spawnSync)(
|
|
11469
11469
|
import_node_path28.default.join(toolchainBin, "swift-frontend"),
|
|
11470
11470
|
[
|
|
11471
11471
|
"-dump-ast",
|
|
@@ -11538,7 +11538,7 @@ function requiredInits(surface, graphs, toolchainBin, search, moduleCache, work)
|
|
|
11538
11538
|
)
|
|
11539
11539
|
].join("\n")
|
|
11540
11540
|
);
|
|
11541
|
-
const run8 = (0,
|
|
11541
|
+
const run8 = (0, import_node_child_process16.spawnSync)(
|
|
11542
11542
|
import_node_path28.default.join(toolchainBin, "swift-frontend"),
|
|
11543
11543
|
[
|
|
11544
11544
|
"-typecheck",
|
|
@@ -11597,7 +11597,7 @@ function protocolProperties(surface, headersDir, graphs, toolchainBin, search, w
|
|
|
11597
11597
|
].map((file) => `#import ${JSON.stringify(file)}
|
|
11598
11598
|
`).join("")
|
|
11599
11599
|
);
|
|
11600
|
-
const run8 = (0,
|
|
11600
|
+
const run8 = (0, import_node_child_process16.spawnSync)(
|
|
11601
11601
|
import_node_path28.default.join(toolchainBin, "clang"),
|
|
11602
11602
|
[
|
|
11603
11603
|
"-x",
|
|
@@ -11680,7 +11680,7 @@ function objcDeclarationAST(surface, framework, toolchainBin, search, work, orig
|
|
|
11680
11680
|
"-ast-dump-all=json"
|
|
11681
11681
|
];
|
|
11682
11682
|
const dump2 = (filter) => {
|
|
11683
|
-
const run8 = (0,
|
|
11683
|
+
const run8 = (0, import_node_child_process16.spawnSync)(
|
|
11684
11684
|
import_node_path28.default.join(toolchainBin, "clang"),
|
|
11685
11685
|
[
|
|
11686
11686
|
...args,
|
|
@@ -11762,7 +11762,7 @@ function enumValues(graphs, surface, framework, toolchainBin, search, work, orig
|
|
|
11762
11762
|
if (flag === "-sdk") flags.push("-isysroot", dir);
|
|
11763
11763
|
else flags.push(flag, dir);
|
|
11764
11764
|
}
|
|
11765
|
-
const run8 = (0,
|
|
11765
|
+
const run8 = (0, import_node_child_process16.spawnSync)(
|
|
11766
11766
|
import_node_path28.default.join(toolchainBin, "clang"),
|
|
11767
11767
|
[
|
|
11768
11768
|
"-x",
|
|
@@ -11837,11 +11837,11 @@ function constantValue(node) {
|
|
|
11837
11837
|
}
|
|
11838
11838
|
return null;
|
|
11839
11839
|
}
|
|
11840
|
-
var
|
|
11840
|
+
var import_node_child_process16, import_node_crypto11, import_node_fs31, import_node_path28, REFINED_CONSTANT_TYPES, NATIVE_GRAPH_SDK_VERSION, WASI_EMULATION, WASI_EMULATION_FLAGS, NATIVE_GRAPH_INPUTS, NATIVE_GRAPH_ID, resolvedPinnedSdk, ROUNDS, sdkId, headerFiles, MISSING_IMPORT, FRAMEWORK_HEADER, FRAMEWORK_MODULEMAP, sdkDeclarations;
|
|
11841
11841
|
var init_swift_objc_standin = __esm({
|
|
11842
11842
|
"src/swift-objc-standin.ts"() {
|
|
11843
11843
|
"use strict";
|
|
11844
|
-
|
|
11844
|
+
import_node_child_process16 = require("node:child_process");
|
|
11845
11845
|
import_node_crypto11 = require("node:crypto");
|
|
11846
11846
|
import_node_fs31 = __toESM(require("node:fs"), 1);
|
|
11847
11847
|
import_node_path28 = __toESM(require("node:path"), 1);
|
|
@@ -12102,7 +12102,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk2)
|
|
|
12102
12102
|
]);
|
|
12103
12103
|
const cached2 = sdkViews.get(key2);
|
|
12104
12104
|
if (cached2 && import_node_fs32.default.existsSync(cached2.manifest)) return touchSdkView(cached2.options);
|
|
12105
|
-
const configuration = (0,
|
|
12105
|
+
const configuration = (0, import_node_child_process17.execFileSync)(
|
|
12106
12106
|
import_node_path29.default.join(toolchainBin, "swift"),
|
|
12107
12107
|
[
|
|
12108
12108
|
"sdk",
|
|
@@ -12231,11 +12231,11 @@ function swiftSharedSdkInputFiles(moduleRoot) {
|
|
|
12231
12231
|
const root = swiftSharedSdkRoot(moduleRoot, false);
|
|
12232
12232
|
return (0, import_node_fs32.readdirSync)(root, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => import_node_path29.default.relative(moduleRoot, import_node_path29.default.join(entry.parentPath, entry.name))).sort();
|
|
12233
12233
|
}
|
|
12234
|
-
var
|
|
12234
|
+
var import_node_child_process17, import_node_crypto12, import_node_fs32, import_node_path29, distributionHeaderRoots, WEAKEN_FOUNDATION_SYMS, sdkViews;
|
|
12235
12235
|
var init_swift_shared_sdk = __esm({
|
|
12236
12236
|
"src/swift-shared-sdk.ts"() {
|
|
12237
12237
|
"use strict";
|
|
12238
|
-
|
|
12238
|
+
import_node_child_process17 = require("node:child_process");
|
|
12239
12239
|
import_node_crypto12 = require("node:crypto");
|
|
12240
12240
|
import_node_fs32 = __toESM(require("node:fs"), 1);
|
|
12241
12241
|
import_node_path29 = __toESM(require("node:path"), 1);
|
|
@@ -12258,14 +12258,14 @@ var init_swift_shared_sdk = __esm({
|
|
|
12258
12258
|
// src/swift-darwin-records.ts
|
|
12259
12259
|
function compileDarwinRecords(args) {
|
|
12260
12260
|
const records = import_node_path30.default.join(args.packageRoot, "Sources/DarwinRecords");
|
|
12261
|
-
const runtime = (0, import_node_fs33.mkdtempSync)(import_node_path30.default.join((0,
|
|
12261
|
+
const runtime = (0, import_node_fs33.mkdtempSync)(import_node_path30.default.join((0, import_node_os7.tmpdir)(), "peach-objc-runtime-"));
|
|
12262
12262
|
(0, import_node_fs33.symlinkSync)(import_node_path30.default.join(args.darwin, "usr/include/objc"), import_node_path30.default.join(runtime, "objc"));
|
|
12263
12263
|
const objects = (0, import_node_fs33.readdirSync)(records).filter((file) => file.endsWith(".c") || file.endsWith(".m")).sort((a, b) => a < b ? -1 : a > b ? 1 : 0).map((file) => {
|
|
12264
12264
|
const object6 = import_node_path30.default.join(
|
|
12265
12265
|
args.out,
|
|
12266
12266
|
`${DARWIN_RECORDS_PREFIX}${file.replace(/\.[cm]$/, ".o")}`
|
|
12267
12267
|
);
|
|
12268
|
-
(0,
|
|
12268
|
+
(0, import_node_child_process18.execFileSync)(
|
|
12269
12269
|
import_node_path30.default.join(args.bin, "clang"),
|
|
12270
12270
|
[
|
|
12271
12271
|
"--target=wasm64-unknown-wasip1",
|
|
@@ -12300,13 +12300,13 @@ function compileDarwinRecords(args) {
|
|
|
12300
12300
|
(0, import_node_fs33.rmSync)(runtime, { recursive: true });
|
|
12301
12301
|
return objects;
|
|
12302
12302
|
}
|
|
12303
|
-
var
|
|
12303
|
+
var import_node_child_process18, import_node_fs33, import_node_os7, import_node_path30, DARWIN_RECORDS_PREFIX, darwinRecordsMinimum;
|
|
12304
12304
|
var init_swift_darwin_records = __esm({
|
|
12305
12305
|
"src/swift-darwin-records.ts"() {
|
|
12306
12306
|
"use strict";
|
|
12307
|
-
|
|
12307
|
+
import_node_child_process18 = require("node:child_process");
|
|
12308
12308
|
import_node_fs33 = require("node:fs");
|
|
12309
|
-
|
|
12309
|
+
import_node_os7 = require("node:os");
|
|
12310
12310
|
import_node_path30 = __toESM(require("node:path"), 1);
|
|
12311
12311
|
init_swift_objc_platform();
|
|
12312
12312
|
init_swift_objc_runtime();
|
|
@@ -14936,18 +14936,18 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
14936
14936
|
transformations
|
|
14937
14937
|
});
|
|
14938
14938
|
} else
|
|
14939
|
-
(0,
|
|
14939
|
+
(0, import_node_child_process19.execFileSync)(import_node_path31.default.join(toolchainBin, "wasm-ld"), [`@${prunedRspPath}`], {
|
|
14940
14940
|
stdio: "pipe",
|
|
14941
14941
|
maxBuffer: Infinity,
|
|
14942
14942
|
...owner
|
|
14943
14943
|
});
|
|
14944
14944
|
import_node_fs34.default.rmSync(rspPath, { force: true });
|
|
14945
14945
|
}
|
|
14946
|
-
var
|
|
14946
|
+
var import_node_child_process19, import_node_crypto13, import_node_fs34, import_node_path31, v2, HAS_ADDEND, WIDE_DATA_RELOCS, ROOT_SEG_PREFIXES, RECORD_SEGS, PARTITIONED_SEGS, PRUNED_SDK_ARCHIVES, OMIT_SDK_LIB_FLAGS, NEUTRALIZED_SWIFTRT_SECTIONS, parsedObjectCache, SWIFTUI_WRAPPER_HOST_PROTOCOLS;
|
|
14947
14947
|
var init_swift_wasm_prune = __esm({
|
|
14948
14948
|
"src/swift-wasm-prune.ts"() {
|
|
14949
14949
|
"use strict";
|
|
14950
|
-
|
|
14950
|
+
import_node_child_process19 = require("node:child_process");
|
|
14951
14951
|
import_node_crypto13 = require("node:crypto");
|
|
14952
14952
|
import_node_fs34 = __toESM(require("node:fs"), 1);
|
|
14953
14953
|
import_node_path31 = __toESM(require("node:path"), 1);
|
|
@@ -15038,7 +15038,7 @@ var init_swift_wasm_prune = __esm({
|
|
|
15038
15038
|
// src/swift-guest-archive.ts
|
|
15039
15039
|
function aliasGuestArchive(options) {
|
|
15040
15040
|
const original = readArMembers((0, import_node_fs35.readFileSync)(options.archive));
|
|
15041
|
-
const listed = (0,
|
|
15041
|
+
const listed = (0, import_node_child_process20.execFileSync)(options.llvmAr, ["t", options.archive], {
|
|
15042
15042
|
encoding: "utf8"
|
|
15043
15043
|
}).trimEnd().split("\n");
|
|
15044
15044
|
if (!original.length || listed.length !== original.length || original.some((member, index) => member.name !== listed[index]))
|
|
@@ -15064,7 +15064,7 @@ function aliasGuestArchive(options) {
|
|
|
15064
15064
|
);
|
|
15065
15065
|
const archive = import_node_path32.default.join(options.directory, "archive.a");
|
|
15066
15066
|
(0, import_node_fs35.rmSync)(archive, { force: true });
|
|
15067
|
-
(0,
|
|
15067
|
+
(0, import_node_child_process20.execFileSync)(options.llvmAr, ["rcsD", archive, `@${response}`], { stdio: "pipe" });
|
|
15068
15068
|
const rewritten = readArMembers((0, import_node_fs35.readFileSync)(archive));
|
|
15069
15069
|
if (rewritten.length !== members2.length || rewritten.some(
|
|
15070
15070
|
(member, index) => member.name !== members2[index].alias || (0, import_node_crypto14.createHash)("sha256").update(member.bytes).digest("hex") !== members2[index].sha256
|
|
@@ -15099,11 +15099,11 @@ function aliasGuestLinkIdentities(identities, archives) {
|
|
|
15099
15099
|
}
|
|
15100
15100
|
return result;
|
|
15101
15101
|
}
|
|
15102
|
-
var
|
|
15102
|
+
var import_node_child_process20, import_node_crypto14, import_node_fs35, import_node_path32;
|
|
15103
15103
|
var init_swift_guest_archive = __esm({
|
|
15104
15104
|
"src/swift-guest-archive.ts"() {
|
|
15105
15105
|
"use strict";
|
|
15106
|
-
|
|
15106
|
+
import_node_child_process20 = require("node:child_process");
|
|
15107
15107
|
import_node_crypto14 = require("node:crypto");
|
|
15108
15108
|
import_node_fs35 = require("node:fs");
|
|
15109
15109
|
import_node_path32 = __toESM(require("node:path"), 1);
|
|
@@ -16477,8 +16477,8 @@ function swiftPackageLinkage(target) {
|
|
|
16477
16477
|
function guestSourceImages(graph) {
|
|
16478
16478
|
const targets = new Map(graph.targets.map((target) => [target.id, target]));
|
|
16479
16479
|
const entry = targets.get(graph.entry);
|
|
16480
|
-
if (!entry || entry.productType !== "com.apple.product-type.application")
|
|
16481
|
-
throw new Error("source graph has no application entry");
|
|
16480
|
+
if (!entry || entry.productType !== "com.apple.product-type.application" && entry.productType !== "com.apple.product-type.app-extension")
|
|
16481
|
+
throw new Error("source graph has no application or app extension entry");
|
|
16482
16482
|
const images = [
|
|
16483
16483
|
{ id: 0, owner: entry.id, members: [] }
|
|
16484
16484
|
];
|
|
@@ -17442,7 +17442,7 @@ function linkGuestImages(options) {
|
|
|
17442
17442
|
);
|
|
17443
17443
|
const output2 = import_node_fs38.default.openSync(trace, "w");
|
|
17444
17444
|
try {
|
|
17445
|
-
(0,
|
|
17445
|
+
(0, import_node_child_process21.execFileSync)(wasmLd, [`@${response}`], { stdio: ["ignore", output2, "pipe"] });
|
|
17446
17446
|
} finally {
|
|
17447
17447
|
import_node_fs38.default.closeSync(output2);
|
|
17448
17448
|
}
|
|
@@ -17456,7 +17456,7 @@ function linkGuestImages(options) {
|
|
|
17456
17456
|
source,
|
|
17457
17457
|
'#include "guest-image-projection.h"\nconst struct peach_guest_image __peach_guest_images[] = {{0}};\nconst uint32_t __peach_guest_image_count = 0;\n'
|
|
17458
17458
|
);
|
|
17459
|
-
(0,
|
|
17459
|
+
(0, import_node_child_process21.execFileSync)(
|
|
17460
17460
|
clang,
|
|
17461
17461
|
[...options.projection.clangOptions, "-c", source, "-o", discoveryProjection],
|
|
17462
17462
|
{ stdio: "pipe" }
|
|
@@ -17570,7 +17570,7 @@ function linkGuestImages(options) {
|
|
|
17570
17570
|
}
|
|
17571
17571
|
const members2 = archives.get(artifact.path);
|
|
17572
17572
|
if (!members2) continue;
|
|
17573
|
-
const listed = (0,
|
|
17573
|
+
const listed = (0, import_node_child_process21.execFileSync)(llvmAr, ["t", artifact.path], { encoding: "utf8" }).trimEnd().split("\n");
|
|
17574
17574
|
if (listed.length !== members2.length || new Set(listed).size !== listed.length || members2.some(
|
|
17575
17575
|
(member, i) => listed[i] !== member.name || import_node_path35.default.basename(member.name) !== member.name
|
|
17576
17576
|
))
|
|
@@ -17593,13 +17593,13 @@ function linkGuestImages(options) {
|
|
|
17593
17593
|
import_node_fs38.default.rmSync(output2, { force: true });
|
|
17594
17594
|
const response = import_node_path35.default.join(memberDir, "members.rsp");
|
|
17595
17595
|
import_node_fs38.default.writeFileSync(response, inputs.map((input) => JSON.stringify(input)).join(" "));
|
|
17596
|
-
(0,
|
|
17596
|
+
(0, import_node_child_process21.execFileSync)(llvmAr, ["rcs", output2, `@${response}`], { stdio: "pipe" });
|
|
17597
17597
|
replacements.set(artifact.path, output2);
|
|
17598
17598
|
}
|
|
17599
17599
|
const irPath = import_node_path35.default.join(directory2, "ledger.ll");
|
|
17600
17600
|
const ledgerObject = import_node_path35.default.join(directory2, "ledger.o");
|
|
17601
17601
|
import_node_fs38.default.writeFileSync(irPath, ledger.llvmIR);
|
|
17602
|
-
(0,
|
|
17602
|
+
(0, import_node_child_process21.execFileSync)(
|
|
17603
17603
|
clang,
|
|
17604
17604
|
["--target=wasm64-unknown-wasip1", "-c", irPath, "-o", ledgerObject],
|
|
17605
17605
|
{ stdio: "pipe" }
|
|
@@ -17641,7 +17641,7 @@ function linkGuestImages(options) {
|
|
|
17641
17641
|
const projectionSource = import_node_path35.default.join(directory2, "projection.c");
|
|
17642
17642
|
projectionObject = import_node_path35.default.join(directory2, "projection.o");
|
|
17643
17643
|
import_node_fs38.default.writeFileSync(projectionSource, projectionStorage.source);
|
|
17644
|
-
(0,
|
|
17644
|
+
(0, import_node_child_process21.execFileSync)(
|
|
17645
17645
|
clang,
|
|
17646
17646
|
[...projection.clangOptions, "-c", projectionSource, "-o", projectionObject],
|
|
17647
17647
|
{
|
|
@@ -17818,7 +17818,7 @@ function discoverGuestLinkInputs(options) {
|
|
|
17818
17818
|
const trace = import_node_path35.default.join(options.directory, "preselection-inputs.txt");
|
|
17819
17819
|
const traceOutput = import_node_fs38.default.openSync(trace, "w");
|
|
17820
17820
|
try {
|
|
17821
|
-
(0,
|
|
17821
|
+
(0, import_node_child_process21.execFileSync)(options.wasmLd, [`@${response}`], {
|
|
17822
17822
|
stdio: ["ignore", traceOutput, "pipe"]
|
|
17823
17823
|
});
|
|
17824
17824
|
} finally {
|
|
@@ -17976,7 +17976,7 @@ function verifyGuestSymbolScopes(options) {
|
|
|
17976
17976
|
const tracePath = import_node_path35.default.join(options.directory, "scope-trace.txt");
|
|
17977
17977
|
const traceOutput = import_node_fs38.default.openSync(tracePath, "w");
|
|
17978
17978
|
try {
|
|
17979
|
-
(0,
|
|
17979
|
+
(0, import_node_child_process21.execFileSync)(options.wasmLd, [`@${response}`], {
|
|
17980
17980
|
stdio: ["ignore", traceOutput, "pipe"]
|
|
17981
17981
|
});
|
|
17982
17982
|
} finally {
|
|
@@ -18242,11 +18242,11 @@ function linkPrunedGuestImages(options) {
|
|
|
18242
18242
|
if (!result) throw new Error("guest link did not receive pruned inputs");
|
|
18243
18243
|
return result;
|
|
18244
18244
|
}
|
|
18245
|
-
var
|
|
18245
|
+
var import_node_child_process21, import_node_fs38, import_node_path35, import_node_string_decoder;
|
|
18246
18246
|
var init_swift_guest_link = __esm({
|
|
18247
18247
|
"src/swift-guest-link.ts"() {
|
|
18248
18248
|
"use strict";
|
|
18249
|
-
|
|
18249
|
+
import_node_child_process21 = require("node:child_process");
|
|
18250
18250
|
import_node_fs38 = __toESM(require("node:fs"), 1);
|
|
18251
18251
|
import_node_path35 = __toESM(require("node:path"), 1);
|
|
18252
18252
|
import_node_string_decoder = require("node:string_decoder");
|
|
@@ -18350,7 +18350,7 @@ function sourceGuestClangLinkOptions(options) {
|
|
|
18350
18350
|
throw new Error(`missing clang ${flag} for ${file}`);
|
|
18351
18351
|
args[index2 + 1] = flag === "-o" ? output2 : `${output2}.d`;
|
|
18352
18352
|
}
|
|
18353
|
-
(0,
|
|
18353
|
+
(0, import_node_child_process22.execFileSync)(command.args[0], [...args, "-S", "-emit-llvm"], { stdio: "inherit" });
|
|
18354
18354
|
const flags = clangIrLinkOptions((0, import_node_fs39.readFileSync)(output2, "utf8"));
|
|
18355
18355
|
for (let index2 = 0; index2 < flags.length; index2++) {
|
|
18356
18356
|
const flag = flags[index2];
|
|
@@ -18488,7 +18488,7 @@ function sourceGuestRuntimeLinks(options) {
|
|
|
18488
18488
|
response,
|
|
18489
18489
|
image.objects.map((file) => JSON.stringify(file)).join("\n") + "\n"
|
|
18490
18490
|
);
|
|
18491
|
-
const autolink = image.objects.length ? (0,
|
|
18491
|
+
const autolink = image.objects.length ? (0, import_node_child_process22.execFileSync)(
|
|
18492
18492
|
import_node_path36.default.join(options.toolchainBin, "swift-autolink-extract"),
|
|
18493
18493
|
[`@${response}`, "-o", "-"],
|
|
18494
18494
|
{ encoding: "utf8" }
|
|
@@ -18581,11 +18581,11 @@ function logicalGuestLinkOptions(args, identities, roots) {
|
|
|
18581
18581
|
}
|
|
18582
18582
|
return output2;
|
|
18583
18583
|
}
|
|
18584
|
-
var
|
|
18584
|
+
var import_node_child_process22, import_node_crypto17, import_node_fs39, import_node_path36, CLANG_TARGET_MODULE_WRAPPER;
|
|
18585
18585
|
var init_swift_guest_source_inputs = __esm({
|
|
18586
18586
|
"src/swift-guest-source-inputs.ts"() {
|
|
18587
18587
|
"use strict";
|
|
18588
|
-
|
|
18588
|
+
import_node_child_process22 = require("node:child_process");
|
|
18589
18589
|
import_node_crypto17 = require("node:crypto");
|
|
18590
18590
|
import_node_fs39 = require("node:fs");
|
|
18591
18591
|
import_node_path36 = __toESM(require("node:path"), 1);
|
|
@@ -18854,7 +18854,7 @@ async function runWasmOpt(file, output2, optimize, skipPasses, binary2) {
|
|
|
18854
18854
|
const thunks = `${output2}.thunks.wat`;
|
|
18855
18855
|
(0, import_node_fs40.writeFileSync)(guest, narrowed.module);
|
|
18856
18856
|
(0, import_node_fs40.writeFileSync)(thunks, narrowed.thunks);
|
|
18857
|
-
await (0, import_node_util7.promisify)(
|
|
18857
|
+
await (0, import_node_util7.promisify)(import_node_child_process23.execFile)((0, import_node_path37.join)((0, import_node_path37.dirname)(binary2), "wasm-merge"), [
|
|
18858
18858
|
...features,
|
|
18859
18859
|
...names,
|
|
18860
18860
|
guest,
|
|
@@ -18913,11 +18913,11 @@ async function lowerWasm(file, output2, options) {
|
|
|
18913
18913
|
await installWasmOpt()
|
|
18914
18914
|
);
|
|
18915
18915
|
}
|
|
18916
|
-
var
|
|
18916
|
+
var import_node_child_process23, import_node_fs40, import_node_path37, import_node_util7, import_wasm_opt, FEATURES, KEEP_WASM_NAMES, LOWERING, WASM_LOWER_IDENTITY, PINNED_BINARYEN_VERSION, BINARYEN_RELEASES;
|
|
18917
18917
|
var init_wasm_optimize = __esm({
|
|
18918
18918
|
"src/wasm-optimize.ts"() {
|
|
18919
18919
|
"use strict";
|
|
18920
|
-
|
|
18920
|
+
import_node_child_process23 = require("node:child_process");
|
|
18921
18921
|
import_node_fs40 = require("node:fs");
|
|
18922
18922
|
import_node_path37 = require("node:path");
|
|
18923
18923
|
import_node_util7 = require("node:util");
|
|
@@ -18991,6 +18991,12 @@ async function compileGuestLink(options) {
|
|
|
18991
18991
|
(target) => target.productName.endsWith(".framework") ? [target.productName.slice(0, -10)] : []
|
|
18992
18992
|
)
|
|
18993
18993
|
);
|
|
18994
|
+
const sourceLibraries = new Set(
|
|
18995
|
+
options.graph.targets.flatMap((target) => {
|
|
18996
|
+
const library = /^lib(.+)\.(?:a|dylib)$/.exec(target.productName);
|
|
18997
|
+
return library ? [library[1]] : [];
|
|
18998
|
+
})
|
|
18999
|
+
);
|
|
18994
19000
|
const entry = targets.get(options.graph.entry);
|
|
18995
19001
|
if (!entry) throw new Error("guest source graph has no entry");
|
|
18996
19002
|
const imageBuildVersion = (value) => {
|
|
@@ -19010,7 +19016,7 @@ async function compileGuestLink(options) {
|
|
|
19010
19016
|
stubSource,
|
|
19011
19017
|
'#include "guest-image-projection.h"\nconst struct peach_guest_image __peach_guest_images[] = {{0}};\nconst uint32_t __peach_guest_image_count = 0;\n'
|
|
19012
19018
|
);
|
|
19013
|
-
(0,
|
|
19019
|
+
(0, import_node_child_process24.execFileSync)(
|
|
19014
19020
|
import_node_path38.default.join(options.toolchainBin, "clang"),
|
|
19015
19021
|
[...clangOptions, "-c", stubSource, "-o", stub],
|
|
19016
19022
|
{ stdio: "pipe" }
|
|
@@ -19160,10 +19166,12 @@ async function compileGuestLink(options) {
|
|
|
19160
19166
|
images: sourceImages.map((image) => ({
|
|
19161
19167
|
id: image.id,
|
|
19162
19168
|
objects: selectedSource.filter((artifact) => artifact.image === image.id).map((artifact) => artifact.path),
|
|
19163
|
-
// a `-framework Name` for a
|
|
19164
|
-
// that
|
|
19169
|
+
// a `-framework Name` or `-lname` for a product the source graph
|
|
19170
|
+
// builds links that product's own target, which the plan already holds
|
|
19165
19171
|
linkerFlags: image.members.flatMap((id) => targets.get(id).linkerFlags).filter(
|
|
19166
|
-
(flag, index, flags) => !sourceFrameworks.has(flags[index - 1] === "-framework" ? flag : "") && !(flag === "-framework" && sourceFrameworks.has(flags[index + 1] ?? ""))
|
|
19172
|
+
(flag, index, flags) => !sourceFrameworks.has(flags[index - 1] === "-framework" ? flag : "") && !(flag === "-framework" && sourceFrameworks.has(flags[index + 1] ?? "")) && !sourceLibraries.has(
|
|
19173
|
+
flag.startsWith("-l") && flag.length > 2 ? flag.slice(2) : flags[index - 1] === "-l" ? flag : ""
|
|
19174
|
+
) && !(flag === "-l" && sourceLibraries.has(flags[index + 1] ?? ""))
|
|
19167
19175
|
),
|
|
19168
19176
|
clangLinkOptions: selectedSource.filter((artifact) => artifact.image === image.id).map((artifact) => ({
|
|
19169
19177
|
object: import_node_path38.default.resolve(rewritten.get(artifact.path) ?? artifact.path),
|
|
@@ -19325,11 +19333,11 @@ async function compileGuestLink(options) {
|
|
|
19325
19333
|
});
|
|
19326
19334
|
(0, import_node_fs41.writeFileSync)(options.optimized, finalized.wasm);
|
|
19327
19335
|
}
|
|
19328
|
-
var
|
|
19336
|
+
var import_node_child_process24, import_node_fs41, import_node_path38;
|
|
19329
19337
|
var init_swift_guest_compile = __esm({
|
|
19330
19338
|
"src/swift-guest-compile.ts"() {
|
|
19331
19339
|
"use strict";
|
|
19332
|
-
|
|
19340
|
+
import_node_child_process24 = require("node:child_process");
|
|
19333
19341
|
import_node_fs41 = require("node:fs");
|
|
19334
19342
|
import_node_path38 = __toESM(require("node:path"), 1);
|
|
19335
19343
|
init_swift_guest_archive();
|
|
@@ -19520,7 +19528,7 @@ function swiftIcuAddress(icu) {
|
|
|
19520
19528
|
function swiftIcuPacked(icu) {
|
|
19521
19529
|
return memo(packedFiles, icu.sha256, async () => {
|
|
19522
19530
|
const file = import_node_path39.default.join(
|
|
19523
|
-
|
|
19531
|
+
import_node_os8.default.homedir(),
|
|
19524
19532
|
".peach",
|
|
19525
19533
|
"cache",
|
|
19526
19534
|
"swift-brotli",
|
|
@@ -19547,21 +19555,21 @@ async function swiftIcuBundleAsset(icu) {
|
|
|
19547
19555
|
contentType: "application/octet-stream"
|
|
19548
19556
|
};
|
|
19549
19557
|
}
|
|
19550
|
-
var
|
|
19558
|
+
var import_node_child_process25, import_node_crypto18, import_node_fs42, import_promises4, import_node_os8, import_node_path39, import_node_util8, import_node_zlib2, run5, deflate, compressBrotli, inflateGzip, ARCHIVE, MEMBER, raw, assets, packedFiles;
|
|
19551
19559
|
var init_swift_icu = __esm({
|
|
19552
19560
|
"src/swift-icu.ts"() {
|
|
19553
19561
|
"use strict";
|
|
19554
|
-
|
|
19562
|
+
import_node_child_process25 = require("node:child_process");
|
|
19555
19563
|
import_node_crypto18 = require("node:crypto");
|
|
19556
19564
|
import_node_fs42 = require("node:fs");
|
|
19557
19565
|
import_promises4 = require("node:fs/promises");
|
|
19558
|
-
|
|
19566
|
+
import_node_os8 = __toESM(require("node:os"), 1);
|
|
19559
19567
|
import_node_path39 = __toESM(require("node:path"), 1);
|
|
19560
19568
|
import_node_util8 = require("node:util");
|
|
19561
19569
|
import_node_zlib2 = require("node:zlib");
|
|
19562
19570
|
init_icuData();
|
|
19563
19571
|
init_swift_toolchain();
|
|
19564
|
-
run5 = (0, import_node_util8.promisify)(
|
|
19572
|
+
run5 = (0, import_node_util8.promisify)(import_node_child_process25.execFile);
|
|
19565
19573
|
deflate = (0, import_node_util8.promisify)(import_node_zlib2.gzip);
|
|
19566
19574
|
compressBrotli = (0, import_node_util8.promisify)(import_node_zlib2.brotliCompress);
|
|
19567
19575
|
inflateGzip = (0, import_node_util8.promisify)(import_node_zlib2.gunzip);
|
|
@@ -19744,7 +19752,7 @@ function prepareSwiftProjectProcess(root, user) {
|
|
|
19744
19752
|
(0, import_node_fs44.mkdirSync)(tmp, { recursive: true });
|
|
19745
19753
|
const caches = ["cache", "config", "security"].map((name3) => import_node_path41.default.join(swiftpm, name3));
|
|
19746
19754
|
for (const directory2 of caches) (0, import_node_fs44.mkdirSync)(directory2, { recursive: true });
|
|
19747
|
-
(0,
|
|
19755
|
+
(0, import_node_child_process26.execFileSync)("chown", ["-R", "-P", `${user.uid}:${user.gid}`, root, home]);
|
|
19748
19756
|
(0, import_node_fs44.chmodSync)(root, 448);
|
|
19749
19757
|
(0, import_node_fs44.chmodSync)(home, 448);
|
|
19750
19758
|
return {
|
|
@@ -19767,7 +19775,7 @@ function prepareSwiftProjectProcess(root, user) {
|
|
|
19767
19775
|
};
|
|
19768
19776
|
}
|
|
19769
19777
|
function endSwiftProjectProcesses(user) {
|
|
19770
|
-
(0,
|
|
19778
|
+
(0, import_node_child_process26.execFileSync)("sh", ["-c", "kill -s KILL -- -1 2>/dev/null || true"], {
|
|
19771
19779
|
uid: user.uid,
|
|
19772
19780
|
gid: user.gid
|
|
19773
19781
|
});
|
|
@@ -19794,11 +19802,11 @@ function removeProjectLinks(root) {
|
|
|
19794
19802
|
}
|
|
19795
19803
|
}
|
|
19796
19804
|
}
|
|
19797
|
-
var
|
|
19805
|
+
var import_node_child_process26, import_node_fs44, import_node_path41;
|
|
19798
19806
|
var init_swift_project_user = __esm({
|
|
19799
19807
|
"src/swift-project-user.ts"() {
|
|
19800
19808
|
"use strict";
|
|
19801
|
-
|
|
19809
|
+
import_node_child_process26 = require("node:child_process");
|
|
19802
19810
|
import_node_fs44 = require("node:fs");
|
|
19803
19811
|
import_node_path41 = __toESM(require("node:path"), 1);
|
|
19804
19812
|
}
|
|
@@ -19806,7 +19814,7 @@ var init_swift_project_user = __esm({
|
|
|
19806
19814
|
|
|
19807
19815
|
// src/swift-reproducible.ts
|
|
19808
19816
|
function swiftReproducibleBuildFlags(roots) {
|
|
19809
|
-
return [[
|
|
19817
|
+
return [[import_node_os9.default.homedir(), "home"], ...roots].flatMap(
|
|
19810
19818
|
([root, name3]) => [.../* @__PURE__ */ new Set([root, (0, import_node_fs45.realpathSync)(root)])].map((from) => `${from}=/peach/${name3}`)
|
|
19811
19819
|
).flatMap((map2) => [
|
|
19812
19820
|
"-Xswiftc",
|
|
@@ -19819,12 +19827,12 @@ function swiftReproducibleBuildFlags(roots) {
|
|
|
19819
19827
|
`-ffile-prefix-map=${map2}`
|
|
19820
19828
|
]);
|
|
19821
19829
|
}
|
|
19822
|
-
var import_node_fs45,
|
|
19830
|
+
var import_node_fs45, import_node_os9;
|
|
19823
19831
|
var init_swift_reproducible = __esm({
|
|
19824
19832
|
"src/swift-reproducible.ts"() {
|
|
19825
19833
|
"use strict";
|
|
19826
19834
|
import_node_fs45 = require("node:fs");
|
|
19827
|
-
|
|
19835
|
+
import_node_os9 = __toESM(require("node:os"), 1);
|
|
19828
19836
|
}
|
|
19829
19837
|
});
|
|
19830
19838
|
|
|
@@ -19911,11 +19919,11 @@ function groupAlive(table, leader) {
|
|
|
19911
19919
|
return table.some((candidate) => candidate.pgid === leader.pid && !candidate.zombie);
|
|
19912
19920
|
}
|
|
19913
19921
|
function swiftRootLocksDir() {
|
|
19914
|
-
return import_node_path42.default.join((0,
|
|
19922
|
+
return import_node_path42.default.join((0, import_node_os10.homedir)(), ".peach", "cache", "swift-root-locks");
|
|
19915
19923
|
}
|
|
19916
19924
|
function withCocoaPodsCacheLock(work) {
|
|
19917
19925
|
return withSwiftRootLock(
|
|
19918
|
-
process.env.CP_CACHE_DIR || import_node_path42.default.join((0,
|
|
19926
|
+
process.env.CP_CACHE_DIR || import_node_path42.default.join((0, import_node_os10.homedir)(), "Library/Caches/CocoaPods"),
|
|
19919
19927
|
work
|
|
19920
19928
|
);
|
|
19921
19929
|
}
|
|
@@ -19992,7 +20000,7 @@ async function withSwiftRootLock(root, work, signal, wait = true) {
|
|
|
19992
20000
|
}
|
|
19993
20001
|
},
|
|
19994
20002
|
spawn(command, args, options, companion) {
|
|
19995
|
-
const child = (0,
|
|
20003
|
+
const child = (0, import_node_child_process27.spawn)(
|
|
19996
20004
|
"/bin/sh",
|
|
19997
20005
|
["-c", 'IFS= read -r go || exit 1; exec "$@" </dev/null', "sh", command, ...args],
|
|
19998
20006
|
{ ...options, detached: true, stdio: ["pipe", "pipe", "pipe"] }
|
|
@@ -20022,14 +20030,14 @@ async function withSwiftRootLock(root, work, signal, wait = true) {
|
|
|
20022
20030
|
(0, import_node_fs46.writeFileSync)(import_node_path42.default.join(directory2, name2(held, "released")), "");
|
|
20023
20031
|
}
|
|
20024
20032
|
}
|
|
20025
|
-
var
|
|
20033
|
+
var import_node_child_process27, import_node_crypto19, import_node_fs46, import_node_os10, import_node_path42, POLL_MS, INSPECT_ATTEMPTS, START_TOLERANCE_MS, name2;
|
|
20026
20034
|
var init_swift_root_lock = __esm({
|
|
20027
20035
|
"src/swift-root-lock.ts"() {
|
|
20028
20036
|
"use strict";
|
|
20029
|
-
|
|
20037
|
+
import_node_child_process27 = require("node:child_process");
|
|
20030
20038
|
import_node_crypto19 = require("node:crypto");
|
|
20031
20039
|
import_node_fs46 = require("node:fs");
|
|
20032
|
-
|
|
20040
|
+
import_node_os10 = require("node:os");
|
|
20033
20041
|
import_node_path42 = __toESM(require("node:path"), 1);
|
|
20034
20042
|
init_process_group();
|
|
20035
20043
|
init_process_table();
|
|
@@ -20044,7 +20052,7 @@ var init_swift_root_lock = __esm({
|
|
|
20044
20052
|
function compileUniformTypeConstants(args) {
|
|
20045
20053
|
const source = import_node_path43.default.join(args.packageRoot, "runtime/UniformTypeIdentifiersConstants.m");
|
|
20046
20054
|
const object6 = import_node_path43.default.join(args.out, "UniformTypeIdentifiers-NativeConstants.o");
|
|
20047
|
-
(0,
|
|
20055
|
+
(0, import_node_child_process28.execFileSync)(
|
|
20048
20056
|
import_node_path43.default.join(args.bin, "clang"),
|
|
20049
20057
|
[
|
|
20050
20058
|
"--target=wasm64-unknown-wasip1",
|
|
@@ -20065,11 +20073,11 @@ function compileUniformTypeConstants(args) {
|
|
|
20065
20073
|
);
|
|
20066
20074
|
return object6;
|
|
20067
20075
|
}
|
|
20068
|
-
var
|
|
20076
|
+
var import_node_child_process28, import_node_path43;
|
|
20069
20077
|
var init_swift_uniform_type_constants = __esm({
|
|
20070
20078
|
"src/swift-uniform-type-constants.ts"() {
|
|
20071
20079
|
"use strict";
|
|
20072
|
-
|
|
20080
|
+
import_node_child_process28 = require("node:child_process");
|
|
20073
20081
|
import_node_path43 = __toESM(require("node:path"), 1);
|
|
20074
20082
|
init_swift_objc_runtime();
|
|
20075
20083
|
init_swift_objc_standin();
|
|
@@ -20209,7 +20217,7 @@ async function runCompiler(command, args, options, stream = false, quiet) {
|
|
|
20209
20217
|
detached: true,
|
|
20210
20218
|
stdio: ["ignore", "pipe", "pipe"]
|
|
20211
20219
|
};
|
|
20212
|
-
const child = options.lease ? options.lease.spawn(command, args, launch, options.frameworkLease) : (0,
|
|
20220
|
+
const child = options.lease ? options.lease.spawn(command, args, launch, options.frameworkLease) : (0, import_node_child_process29.spawn)(command, args, launch);
|
|
20213
20221
|
let stopping;
|
|
20214
20222
|
try {
|
|
20215
20223
|
return await new Promise((resolve3, reject) => {
|
|
@@ -20287,7 +20295,7 @@ function swiftBuildJobs() {
|
|
|
20287
20295
|
const admittedCores = windowAdmission()?.cores ?? Number(process.env.TM_EXEC_CPU_CORES);
|
|
20288
20296
|
return Math.min(
|
|
20289
20297
|
process.platform === "darwin" ? Infinity : 4,
|
|
20290
|
-
Math.max(1, Math.floor(
|
|
20298
|
+
Math.max(1, Math.floor(import_node_os11.default.availableParallelism() / 2)),
|
|
20291
20299
|
Number.isInteger(admittedCores) && admittedCores > 0 ? admittedCores : 4
|
|
20292
20300
|
);
|
|
20293
20301
|
}
|
|
@@ -20741,7 +20749,7 @@ function swiftSdkPaths(moduleRoot, toolchainBin) {
|
|
|
20741
20749
|
const key2 = JSON.stringify([toolchainBin, sdk2, options]);
|
|
20742
20750
|
const cached2 = sdkPaths.get(key2);
|
|
20743
20751
|
if (cached2) return cached2;
|
|
20744
|
-
const configuration = (0,
|
|
20752
|
+
const configuration = (0, import_node_child_process29.execFileSync)(
|
|
20745
20753
|
import_node_path46.default.join(toolchainBin, "swift"),
|
|
20746
20754
|
[
|
|
20747
20755
|
"sdk",
|
|
@@ -25025,14 +25033,14 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
25025
25033
|
options.signal
|
|
25026
25034
|
);
|
|
25027
25035
|
}
|
|
25028
|
-
var
|
|
25036
|
+
var import_node_child_process29, import_node_crypto20, import_node_fs49, import_node_os11, import_node_path46, v5, WASM_TRIPLE, SWIFTPM_PROGRESS, SWIFTPM_NOISE, SWIFT_BUILDER_TRANSPORT_MARGIN_MS, SWIFT_BUILDER_DEFAULT_COMPILE_MS, clangInterfaceHeader, objcEnumerations, sdkDeclarationOwners, swiftInterfaceDeclarations, linkedModuleDigests, SYSTEM_MODULE_LIBRARIES, SYSTEM_MODULE_IMPORT, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, SWIFT_IMPORT, kleeneNot, kleeneAnd, kleeneOr, sdkPaths, availableModules, sdkOverlayFrameworks, DISTRIBUTION_CLANG_MODULES, ONE_PRODUCT, GAME_FAMILY, gameProducts, gameProduct, GAME_REACH, FOUNDATION_IMPLICIT_MODULES, PRECONCURRENCY_FOUNDATION_IMPORT, FOUNDATION_IMPLICIT_FLAGS, ONE_IMPLICIT_FLAGS, executableLinkFlags, darwinRecordsRegion, REACTOR_FLAG, MULTI_MANIFEST_VERSION, SWIFT_HEADER_PRODUCTS_TARGET, compilerSourceDigest, nativeCxxCompilerFlags, cFlagArray, cxxFlagArray, SWIFTPM_DEFAULT_IOS_DEPLOYMENT_TARGET, DIRECTIVE, OS_IOS, ARCH_ARM64, NOT_ON_IOS, DELEGATE_CLASS, FOUNDATION_NETWORKING_TYPES, FOUNDATION_OVERLAY_TYPES, FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_GEOMETRY_TYPES, CORE_FOUNDATION_GRAPHICS_TYPES, CORE_FOUNDATION_HANDLE_IMPORTS, emptyMacroEnvironment, wasmMacroEnvironment, HIDDEN_UNITS, LIBXML_REFERENCE, LIBXML_SOURCE, ROOT_LOCKS, host, rootLocks, SHARED_ARTIFACT_BUDGET_BYTES, SHARED_ARTIFACT_GRACE_MS, RETIRED_PREFIX, retainedArtifacts, FRAMEWORK_LINK_TARGET, SWIFT_LINK_STAMP, SWIFT_FRAMEWORK_SLOTS, SWIFT_FRAMEWORK_SLOT_KEY, SWIFT_FRAMEWORK_SLOT_ORIGIN;
|
|
25029
25037
|
var init_swift_compile = __esm({
|
|
25030
25038
|
"src/swift-compile.ts"() {
|
|
25031
25039
|
"use strict";
|
|
25032
|
-
|
|
25040
|
+
import_node_child_process29 = require("node:child_process");
|
|
25033
25041
|
import_node_crypto20 = require("node:crypto");
|
|
25034
25042
|
import_node_fs49 = require("node:fs");
|
|
25035
|
-
|
|
25043
|
+
import_node_os11 = __toESM(require("node:os"), 1);
|
|
25036
25044
|
import_node_path46 = __toESM(require("node:path"), 1);
|
|
25037
25045
|
v5 = __toESM(require("valibot"), 1);
|
|
25038
25046
|
init_admitted_mac_build();
|
|
@@ -25262,7 +25270,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
25262
25270
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
25263
25271
|
MULTI_MANIFEST_VERSION = 68;
|
|
25264
25272
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
25265
|
-
compilerSourceDigest = true ? "
|
|
25273
|
+
compilerSourceDigest = true ? "ad311d7f868d4920f32f2ed00502f49f84fb83ae19817180a70ef5f799334169" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
25266
25274
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
25267
25275
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
25268
25276
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -26098,7 +26106,7 @@ async function swiftDistributionRoot(signal) {
|
|
|
26098
26106
|
}
|
|
26099
26107
|
async function installSwiftToolchain(release, sdk2, signal, compilerOnly = false) {
|
|
26100
26108
|
const root = import_node_path47.default.resolve(swiftToolchainBin(release), "../..");
|
|
26101
|
-
const owned = process.platform === "darwin" ? import_node_path47.default.join(
|
|
26109
|
+
const owned = process.platform === "darwin" ? import_node_path47.default.join(import_node_os12.default.homedir(), "Library/Developer/Toolchains", `${release}.xctoolchain`) : import_node_path47.default.join(rnxHomeDir(), "swift", "toolchains", release);
|
|
26102
26110
|
const selectedCompiler = process.platform === "darwin" && import_node_fs50.default.existsSync(import_node_path47.default.join(root, "usr/bin/swift"));
|
|
26103
26111
|
if (release.includes("-custom-") && root === owned && !selectedCompiler && !swiftCompilerReady(release)) {
|
|
26104
26112
|
const archive = swiftHostCompilerArchive(release);
|
|
@@ -26201,12 +26209,12 @@ function swiftModuleToolchain(root) {
|
|
|
26201
26209
|
const { release } = swiftModuleCompiler(root);
|
|
26202
26210
|
return { release, toolchainBin: swiftToolchain(release, swiftModuleSdk(root)) };
|
|
26203
26211
|
}
|
|
26204
|
-
var import_node_fs50,
|
|
26212
|
+
var import_node_fs50, import_node_os12, import_node_path47, SWIFT_ENDPOINT_ENV, DEFAULT_SWIFT_ENDPOINT, installs, staleWarned;
|
|
26205
26213
|
var init_swift_distribution = __esm({
|
|
26206
26214
|
"src/swift-distribution.ts"() {
|
|
26207
26215
|
"use strict";
|
|
26208
26216
|
import_node_fs50 = __toESM(require("node:fs"), 1);
|
|
26209
|
-
|
|
26217
|
+
import_node_os12 = __toESM(require("node:os"), 1);
|
|
26210
26218
|
import_node_path47 = __toESM(require("node:path"), 1);
|
|
26211
26219
|
init_src();
|
|
26212
26220
|
init_linux_browser_libs();
|
|
@@ -26297,7 +26305,7 @@ function dumpInputs(dir) {
|
|
|
26297
26305
|
path: command,
|
|
26298
26306
|
realpath: import_node_fs51.default.realpathSync(command),
|
|
26299
26307
|
sha256: (0, import_node_crypto21.createHash)("sha256").update(import_node_fs51.default.readFileSync(command)).digest("hex"),
|
|
26300
|
-
version: (0,
|
|
26308
|
+
version: (0, import_node_child_process30.execFileSync)(command, ["--version"], {
|
|
26301
26309
|
encoding: "utf8",
|
|
26302
26310
|
env: swiftEnvironment(),
|
|
26303
26311
|
stdio: ["ignore", "pipe", "pipe"]
|
|
@@ -26360,7 +26368,7 @@ function dump(dir, requirePrepared = false) {
|
|
|
26360
26368
|
if (requirePrepared) throw new SwiftManifestPreparationRequired(dir);
|
|
26361
26369
|
let output2;
|
|
26362
26370
|
try {
|
|
26363
|
-
output2 = (0,
|
|
26371
|
+
output2 = (0, import_node_child_process30.execFileSync)(
|
|
26364
26372
|
command,
|
|
26365
26373
|
[
|
|
26366
26374
|
"package",
|
|
@@ -26700,7 +26708,7 @@ let package = Package(
|
|
|
26700
26708
|
]
|
|
26701
26709
|
)
|
|
26702
26710
|
`;
|
|
26703
|
-
const dir = import_node_fs51.default.mkdtempSync(import_node_path48.default.join(
|
|
26711
|
+
const dir = import_node_fs51.default.mkdtempSync(import_node_path48.default.join(import_node_os13.default.tmpdir(), "peach-resolve-"));
|
|
26704
26712
|
import_node_fs51.default.writeFileSync(import_node_path48.default.join(dir, "Package.swift"), manifest);
|
|
26705
26713
|
const args = [
|
|
26706
26714
|
"package",
|
|
@@ -26740,7 +26748,7 @@ async function resolveSwiftPackageRequirementsAsync(requirements, destination, s
|
|
|
26740
26748
|
const { dir, args, options, failed, publish } = resolveRequest(requirements);
|
|
26741
26749
|
try {
|
|
26742
26750
|
try {
|
|
26743
|
-
await (0, import_node_util9.promisify)(
|
|
26751
|
+
await (0, import_node_util9.promisify)(import_node_child_process30.execFile)(swiftCommand(), args, { ...options, signal });
|
|
26744
26752
|
} catch (error) {
|
|
26745
26753
|
throw failed(error);
|
|
26746
26754
|
}
|
|
@@ -26781,14 +26789,14 @@ function swiftTargetFiles(manifest, target) {
|
|
|
26781
26789
|
}
|
|
26782
26790
|
return [...new Set(files2)].sort();
|
|
26783
26791
|
}
|
|
26784
|
-
var
|
|
26792
|
+
var import_node_child_process30, import_node_crypto21, import_node_fs51, import_node_os13, import_node_path48, import_node_util9, TARGET_TYPES, targetRelative, isTargetType, record, array3, string4, cacheDir3, evaluated, execFileAsync, cachedToolchain, SwiftManifestPreparationRequired, manifestPreparations, GUEST_PLATFORMS, within, requirementClause;
|
|
26785
26793
|
var init_swift_package_manifest = __esm({
|
|
26786
26794
|
"src/swift-package-manifest.ts"() {
|
|
26787
26795
|
"use strict";
|
|
26788
|
-
|
|
26796
|
+
import_node_child_process30 = require("node:child_process");
|
|
26789
26797
|
import_node_crypto21 = require("node:crypto");
|
|
26790
26798
|
import_node_fs51 = __toESM(require("node:fs"), 1);
|
|
26791
|
-
|
|
26799
|
+
import_node_os13 = __toESM(require("node:os"), 1);
|
|
26792
26800
|
import_node_path48 = __toESM(require("node:path"), 1);
|
|
26793
26801
|
import_node_util9 = require("node:util");
|
|
26794
26802
|
init_home_paths();
|
|
@@ -26812,7 +26820,7 @@ var init_swift_package_manifest = __esm({
|
|
|
26812
26820
|
string4 = (value) => typeof value === "string" ? value : void 0;
|
|
26813
26821
|
cacheDir3 = import_node_path48.default.join(cacheDir(), "swift-manifests");
|
|
26814
26822
|
evaluated = /* @__PURE__ */ new Map();
|
|
26815
|
-
execFileAsync = (0, import_node_util9.promisify)(
|
|
26823
|
+
execFileAsync = (0, import_node_util9.promisify)(import_node_child_process30.execFile);
|
|
26816
26824
|
SwiftManifestPreparationRequired = class extends Error {
|
|
26817
26825
|
constructor(dir) {
|
|
26818
26826
|
super(`swift package manifest requires preparation: ${dir}`);
|
|
@@ -27489,7 +27497,7 @@ function loadProject(xcodeproj) {
|
|
|
27489
27497
|
function selectedDeveloperDir() {
|
|
27490
27498
|
developerDir ??= process.platform === "darwin" ? (
|
|
27491
27499
|
// runner-toolchain-platform: darwin
|
|
27492
|
-
(0,
|
|
27500
|
+
(0, import_node_child_process31.execFileSync)("xcode-select", ["-p"], {
|
|
27493
27501
|
encoding: "utf8",
|
|
27494
27502
|
stdio: ["ignore", "pipe", "pipe"]
|
|
27495
27503
|
}).trim()
|
|
@@ -27893,7 +27901,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
27893
27901
|
str(phase.shellPath) ?? "/bin/sh",
|
|
27894
27902
|
str(phase.shellScript) ?? ""
|
|
27895
27903
|
);
|
|
27896
|
-
(0,
|
|
27904
|
+
(0, import_node_child_process31.execFileSync)(shell, args, {
|
|
27897
27905
|
cwd: project.projectDir,
|
|
27898
27906
|
env,
|
|
27899
27907
|
stdio: ["ignore", "pipe", "pipe"],
|
|
@@ -28001,7 +28009,7 @@ ${output2}`
|
|
|
28001
28009
|
const families = settings("TARGETED_DEVICE_FAMILY").split(",").map((value) => value.trim());
|
|
28002
28010
|
if (families.includes("1")) args.push("--target-device", "iphone");
|
|
28003
28011
|
if (families.includes("2")) args.push("--target-device", "ipad");
|
|
28004
|
-
(0,
|
|
28012
|
+
(0, import_node_child_process31.execFileSync)("xcrun", args, {
|
|
28005
28013
|
cwd: project.projectDir,
|
|
28006
28014
|
stdio: ["ignore", "pipe", "pipe"],
|
|
28007
28015
|
timeout: runScriptTimeoutMs
|
|
@@ -28046,7 +28054,7 @@ ${output2}`
|
|
|
28046
28054
|
args.push("-swiftVersion", settings("SWIFT_VERSION") || "5.0");
|
|
28047
28055
|
if (settings("DEFINES_MODULE") === "YES")
|
|
28048
28056
|
args.push("-moduleName", settings("PRODUCT_MODULE_NAME"));
|
|
28049
|
-
(0,
|
|
28057
|
+
(0, import_node_child_process31.execFileSync)("xcrun", args, {
|
|
28050
28058
|
cwd: project.projectDir,
|
|
28051
28059
|
stdio: ["ignore", "pipe", "pipe"],
|
|
28052
28060
|
timeout: runScriptTimeoutMs
|
|
@@ -28202,7 +28210,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
28202
28210
|
options.installedPods
|
|
28203
28211
|
);
|
|
28204
28212
|
const allTargets = projects2.flatMap(projectTargets);
|
|
28205
|
-
const appTargets = allTargets.filter(
|
|
28213
|
+
const appTargets = allTargets.filter(
|
|
28214
|
+
(ref) => isIosAppTarget(ref, options) || targetName !== void 0 && ref.target.name === targetName && ref.target.productType === APP_EXTENSION
|
|
28215
|
+
);
|
|
28206
28216
|
const appTargetNames = appTargets.map((ref) => str(ref.target.name) ?? ref.id);
|
|
28207
28217
|
const container = import_node_path50.default.basename(xcodeprojOrWorkspace);
|
|
28208
28218
|
const named = targetName ? appTargets.filter((ref) => ref.target.name === targetName) : appTargets;
|
|
@@ -28266,7 +28276,8 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
28266
28276
|
const words2 = settingList(flags);
|
|
28267
28277
|
const linked = new Set(linkedTargets(ref).map((link) => link.target));
|
|
28268
28278
|
return words2.flatMap((word, index) => {
|
|
28269
|
-
const
|
|
28279
|
+
const library = word.startsWith("-l") && word.length > 2 ? word.slice(2) : words2[index - 1] === "-l" ? word : void 0;
|
|
28280
|
+
const target = words2[index - 1] === "-framework" ? byProduct.get(`${word}.framework`) : library ? byProduct.get(`lib${library}.a`) ?? byProduct.get(`lib${library}.dylib`) : void 0;
|
|
28270
28281
|
if (!target || target === ref || linked.has(target)) return [];
|
|
28271
28282
|
linked.add(target);
|
|
28272
28283
|
return [{ target, attributes: [] }];
|
|
@@ -29268,11 +29279,11 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
29268
29279
|
cocoapods
|
|
29269
29280
|
};
|
|
29270
29281
|
}
|
|
29271
|
-
var
|
|
29282
|
+
var import_node_child_process31, import_node_crypto22, import_node_fs52, import_node_path50, import_plist2, XCODE_DEFAULT_IOS_DEPLOYMENT_TARGET, runScriptTimeoutMs, CXX_STANDARD_ALIASES, PRE_CXX20_STANDARDS, APPLICATION, APP_EXTENSION, RESOURCE_BUNDLE, PRODUCT_MACH_O_TYPES, FRAMEWORK_PRODUCTS, HEADER_FILE, MODULE_PRODUCTS, CONDITIONS, isDirectory, loaded, developerDir, preparedSourcePhases, isPodsProject, targetRefs, workspaceResolvedFile, SwiftPackageResolutionRequired;
|
|
29272
29283
|
var init_xcode_project = __esm({
|
|
29273
29284
|
"src/xcode-project.ts"() {
|
|
29274
29285
|
"use strict";
|
|
29275
|
-
|
|
29286
|
+
import_node_child_process31 = require("node:child_process");
|
|
29276
29287
|
import_node_crypto22 = require("node:crypto");
|
|
29277
29288
|
import_node_fs52 = __toESM(require("node:fs"), 1);
|
|
29278
29289
|
import_node_path50 = __toESM(require("node:path"), 1);
|
|
@@ -29307,6 +29318,7 @@ var init_xcode_project = __esm({
|
|
|
29307
29318
|
"compiler-default"
|
|
29308
29319
|
]);
|
|
29309
29320
|
APPLICATION = "com.apple.product-type.application";
|
|
29321
|
+
APP_EXTENSION = "com.apple.product-type.app-extension";
|
|
29310
29322
|
RESOURCE_BUNDLE = "com.apple.product-type.bundle";
|
|
29311
29323
|
PRODUCT_MACH_O_TYPES = {
|
|
29312
29324
|
"com.apple.product-type.application": "mh_execute",
|
|
@@ -29369,12 +29381,12 @@ function compiledSwiftHelper(swift, name3) {
|
|
|
29369
29381
|
try {
|
|
29370
29382
|
import_node_fs57.default.mkdirSync(cacheDir(), { recursive: true });
|
|
29371
29383
|
const source = import_node_path55.default.join(
|
|
29372
|
-
import_node_fs57.default.mkdtempSync(import_node_path55.default.join(
|
|
29384
|
+
import_node_fs57.default.mkdtempSync(import_node_path55.default.join(import_node_os15.default.tmpdir(), `${name3}-`)),
|
|
29373
29385
|
"main.swift"
|
|
29374
29386
|
);
|
|
29375
29387
|
import_node_fs57.default.writeFileSync(source, swift);
|
|
29376
29388
|
try {
|
|
29377
|
-
(0,
|
|
29389
|
+
(0, import_node_child_process34.execFileSync)("xcrun", ["swiftc", "-o", binary2, source], { stdio: "pipe" });
|
|
29378
29390
|
} finally {
|
|
29379
29391
|
import_node_fs57.default.rmSync(import_node_path55.default.dirname(source), { recursive: true, force: true });
|
|
29380
29392
|
}
|
|
@@ -29386,14 +29398,14 @@ function compiledSwiftHelper(swift, name3) {
|
|
|
29386
29398
|
);
|
|
29387
29399
|
}
|
|
29388
29400
|
}
|
|
29389
|
-
var
|
|
29401
|
+
var import_node_child_process34, import_node_crypto26, import_node_fs57, import_node_os15, import_node_path55;
|
|
29390
29402
|
var init_swift_helper = __esm({
|
|
29391
29403
|
"src/swift-helper.ts"() {
|
|
29392
29404
|
"use strict";
|
|
29393
|
-
|
|
29405
|
+
import_node_child_process34 = require("node:child_process");
|
|
29394
29406
|
import_node_crypto26 = require("node:crypto");
|
|
29395
29407
|
import_node_fs57 = __toESM(require("node:fs"), 1);
|
|
29396
|
-
|
|
29408
|
+
import_node_os15 = __toESM(require("node:os"), 1);
|
|
29397
29409
|
import_node_path55 = __toESM(require("node:path"), 1);
|
|
29398
29410
|
init_home_paths();
|
|
29399
29411
|
}
|
|
@@ -29459,7 +29471,7 @@ var init_swift_standin_digest = __esm({
|
|
|
29459
29471
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
29460
29472
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
29461
29473
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
29462
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
29474
|
+
STANDIN_SOURCE_DIGEST = true ? "7dd2fef3ceef6be07d22cfa2f397bda7721d34bc2ef8764f78e05b9637849f09" : standinSourceDigest();
|
|
29463
29475
|
}
|
|
29464
29476
|
});
|
|
29465
29477
|
|
|
@@ -29907,12 +29919,12 @@ function rustStaticLibrary(file, moduleRoot) {
|
|
|
29907
29919
|
const flags = ["--no-sort", "--extern-only", "--defined-only", "--format=just-symbols"];
|
|
29908
29920
|
const options = { encoding: "utf8", maxBuffer: 64 * 1024 * 1024 };
|
|
29909
29921
|
const symbols = (input) => {
|
|
29910
|
-
const raw2 = (0,
|
|
29922
|
+
const raw2 = (0, import_node_child_process36.execFileSync)(
|
|
29911
29923
|
import_node_path64.default.join(toolchain.toolchainBin, "llvm-nm"),
|
|
29912
29924
|
[...flags, input],
|
|
29913
29925
|
options
|
|
29914
29926
|
).trim().split("\n");
|
|
29915
|
-
const demangled = (0,
|
|
29927
|
+
const demangled = (0, import_node_child_process36.execFileSync)(
|
|
29916
29928
|
import_node_path64.default.join(toolchain.toolchainBin, "llvm-nm"),
|
|
29917
29929
|
[...flags, "--demangle", input],
|
|
29918
29930
|
options
|
|
@@ -29927,7 +29939,7 @@ function rustStaticLibrary(file, moduleRoot) {
|
|
|
29927
29939
|
const stage = import_node_fs66.default.mkdtempSync(import_node_path64.default.join(directory2, "build-"));
|
|
29928
29940
|
try {
|
|
29929
29941
|
const object6 = import_node_path64.default.join(stage, "library.o");
|
|
29930
|
-
(0,
|
|
29942
|
+
(0, import_node_child_process36.execFileSync)(import_node_path64.default.join(toolchain.toolchainBin, "wasm-ld"), [
|
|
29931
29943
|
"-mwasm64",
|
|
29932
29944
|
"-r",
|
|
29933
29945
|
"--whole-archive",
|
|
@@ -29943,7 +29955,7 @@ function rustStaticLibrary(file, moduleRoot) {
|
|
|
29943
29955
|
);
|
|
29944
29956
|
import_node_fs66.default.writeFileSync(object6, localizeDefinedWasmSymbols(import_node_fs66.default.readFileSync(object6), names));
|
|
29945
29957
|
const output2 = import_node_path64.default.join(stage, "library.a");
|
|
29946
|
-
(0,
|
|
29958
|
+
(0, import_node_child_process36.execFileSync)(import_node_path64.default.join(toolchain.toolchainBin, "llvm-ar"), ["rcsD", output2, object6]);
|
|
29947
29959
|
import_node_fs66.default.renameSync(output2, archive);
|
|
29948
29960
|
} finally {
|
|
29949
29961
|
import_node_fs66.default.rmSync(stage, { recursive: true, force: true });
|
|
@@ -29962,7 +29974,7 @@ function combineNativeStaticLibraries(files2, moduleRoot) {
|
|
|
29962
29974
|
import_node_fs66.default.mkdirSync(directory2, { recursive: true });
|
|
29963
29975
|
const temporary = import_node_path64.default.join(directory2, `combined-${(0, import_node_crypto32.randomUUID)()}.a`);
|
|
29964
29976
|
try {
|
|
29965
|
-
(0,
|
|
29977
|
+
(0, import_node_child_process36.execFileSync)(import_node_path64.default.join(toolchain.toolchainBin, "llvm-ar"), [
|
|
29966
29978
|
"qcsDL",
|
|
29967
29979
|
temporary,
|
|
29968
29980
|
...files2
|
|
@@ -29973,11 +29985,11 @@ function combineNativeStaticLibraries(files2, moduleRoot) {
|
|
|
29973
29985
|
}
|
|
29974
29986
|
return archive;
|
|
29975
29987
|
}
|
|
29976
|
-
var
|
|
29988
|
+
var import_node_child_process36, import_node_crypto32, import_node_fs66, import_node_path64, NATIVE_STATIC_LIBRARY_RECIPES;
|
|
29977
29989
|
var init_native_static_libraries = __esm({
|
|
29978
29990
|
"src/native-static-libraries.ts"() {
|
|
29979
29991
|
"use strict";
|
|
29980
|
-
|
|
29992
|
+
import_node_child_process36 = require("node:child_process");
|
|
29981
29993
|
import_node_crypto32 = require("node:crypto");
|
|
29982
29994
|
import_node_fs66 = __toESM(require("node:fs"), 1);
|
|
29983
29995
|
import_node_path64 = __toESM(require("node:path"), 1);
|
|
@@ -31010,11 +31022,11 @@ function resolveSwiftPackages(options) {
|
|
|
31010
31022
|
result.nativeProducts.push({ name: name3, packageDir: manifest.dir, source });
|
|
31011
31023
|
return result;
|
|
31012
31024
|
}
|
|
31013
|
-
var
|
|
31025
|
+
var import_node_child_process37, import_node_crypto34, import_node_fs68, import_node_path66, import_promises7, import_node_util13, swiftBinaryOnDisk, SWIFT_PLACEHOLDER_PACKAGES, placeholderPackage, UNSUPPORTED_NATIVE, BINARY, blockers, verified, execFileAsync2, checkoutKey;
|
|
31014
31026
|
var init_swift_packages = __esm({
|
|
31015
31027
|
"src/swift-packages.ts"() {
|
|
31016
31028
|
"use strict";
|
|
31017
|
-
|
|
31029
|
+
import_node_child_process37 = require("node:child_process");
|
|
31018
31030
|
import_node_crypto34 = require("node:crypto");
|
|
31019
31031
|
import_node_fs68 = __toESM(require("node:fs"), 1);
|
|
31020
31032
|
import_node_path66 = __toESM(require("node:path"), 1);
|
|
@@ -31035,7 +31047,7 @@ var init_swift_packages = __esm({
|
|
|
31035
31047
|
BINARY = "is a binary framework";
|
|
31036
31048
|
blockers = (reasons) => [...new Set(reasons.flat())];
|
|
31037
31049
|
verified = /* @__PURE__ */ new Set();
|
|
31038
|
-
execFileAsync2 = (0, import_node_util13.promisify)(
|
|
31050
|
+
execFileAsync2 = (0, import_node_util13.promisify)(import_node_child_process37.execFile);
|
|
31039
31051
|
checkoutKey = (dir, pin2) => `${dir}\0${pin2.revision}`;
|
|
31040
31052
|
}
|
|
31041
31053
|
});
|
|
@@ -31102,10 +31114,10 @@ function privateSentrySlice(entry, moduleRoot) {
|
|
|
31102
31114
|
throw new Error(
|
|
31103
31115
|
"the Sentry slice for a private Swift distribution builds from a Contrast source checkout"
|
|
31104
31116
|
);
|
|
31105
|
-
const staging = import_node_fs69.default.mkdtempSync(import_node_path67.default.join(import_node_fs69.default.realpathSync(
|
|
31117
|
+
const staging = import_node_fs69.default.mkdtempSync(import_node_path67.default.join(import_node_fs69.default.realpathSync(import_node_os16.default.tmpdir()), "sentry-slice-"));
|
|
31106
31118
|
try {
|
|
31107
31119
|
process.stderr.write("peach: building the Sentry slice for a private distribution\u2026\n");
|
|
31108
|
-
(0,
|
|
31120
|
+
(0, import_node_child_process38.execFileSync)("bun", [script, "--output", staging, "--module-root", moduleRoot], {
|
|
31109
31121
|
cwd: import_node_path67.default.resolve(sourceSwiftCheckout(), "../.."),
|
|
31110
31122
|
stdio: ["ignore", 2, 2]
|
|
31111
31123
|
});
|
|
@@ -31180,14 +31192,14 @@ function nativeSwiftSlice(standin, moduleRoot, generator, configured, artifact)
|
|
|
31180
31192
|
}
|
|
31181
31193
|
};
|
|
31182
31194
|
}
|
|
31183
|
-
var
|
|
31195
|
+
var import_node_child_process38, import_node_crypto35, import_node_fs69, import_node_os16, import_node_path67, SENTRY_SWIFT_SLICE;
|
|
31184
31196
|
var init_native_swift_slices = __esm({
|
|
31185
31197
|
"src/native-swift-slices.ts"() {
|
|
31186
31198
|
"use strict";
|
|
31187
|
-
|
|
31199
|
+
import_node_child_process38 = require("node:child_process");
|
|
31188
31200
|
import_node_crypto35 = require("node:crypto");
|
|
31189
31201
|
import_node_fs69 = __toESM(require("node:fs"), 1);
|
|
31190
|
-
|
|
31202
|
+
import_node_os16 = __toESM(require("node:os"), 1);
|
|
31191
31203
|
import_node_path67 = __toESM(require("node:path"), 1);
|
|
31192
31204
|
init_native_prebuilt();
|
|
31193
31205
|
init_swift_compile();
|
|
@@ -31475,7 +31487,7 @@ async function emitCxxStandin(input) {
|
|
|
31475
31487
|
"-I",
|
|
31476
31488
|
input.headers
|
|
31477
31489
|
];
|
|
31478
|
-
const includes = (0,
|
|
31490
|
+
const includes = (0, import_node_child_process39.spawnSync)(input.clang, [...flags, "-M", "-MT", "peach", probe], {
|
|
31479
31491
|
encoding: "utf8",
|
|
31480
31492
|
env: swiftEnvironment(),
|
|
31481
31493
|
maxBuffer: 16 * 1024 * 1024
|
|
@@ -31495,7 +31507,7 @@ async function emitCxxStandin(input) {
|
|
|
31495
31507
|
const output2 = import_node_fs72.default.openSync(ast, "w");
|
|
31496
31508
|
let parsed;
|
|
31497
31509
|
try {
|
|
31498
|
-
parsed = (0,
|
|
31510
|
+
parsed = (0, import_node_child_process39.spawnSync)(
|
|
31499
31511
|
input.clang,
|
|
31500
31512
|
[...flags, "-fsyntax-only", "-Xclang", "-ast-dump=json", probe],
|
|
31501
31513
|
{ stdio: ["ignore", output2, "pipe"], encoding: "utf8", env: swiftEnvironment() }
|
|
@@ -31553,7 +31565,7 @@ async function emitCxxStandin(input) {
|
|
|
31553
31565
|
sourceFile,
|
|
31554
31566
|
[...prelude, ...live.map((item) => item.text)].join("\n") + "\n"
|
|
31555
31567
|
);
|
|
31556
|
-
const checked = (0,
|
|
31568
|
+
const checked = (0, import_node_child_process39.spawnSync)(
|
|
31557
31569
|
input.clang,
|
|
31558
31570
|
[
|
|
31559
31571
|
...flags,
|
|
@@ -31587,11 +31599,11 @@ async function emitCxxStandin(input) {
|
|
|
31587
31599
|
excluded
|
|
31588
31600
|
};
|
|
31589
31601
|
}
|
|
31590
|
-
var
|
|
31602
|
+
var import_node_child_process39, import_node_fs72, import_node_path69, QUALIFIERS, UNNAMEABLE;
|
|
31591
31603
|
var init_swift_cxx_standin = __esm({
|
|
31592
31604
|
"src/swift-cxx-standin.ts"() {
|
|
31593
31605
|
"use strict";
|
|
31594
|
-
|
|
31606
|
+
import_node_child_process39 = require("node:child_process");
|
|
31595
31607
|
import_node_fs72 = __toESM(require("node:fs"), 1);
|
|
31596
31608
|
import_node_path69 = __toESM(require("node:path"), 1);
|
|
31597
31609
|
init_swift_cxx_declarations();
|
|
@@ -31843,7 +31855,7 @@ var init_swift_standin_builtin_behavior = __esm({
|
|
|
31843
31855
|
|
|
31844
31856
|
// src/swift-standins.ts
|
|
31845
31857
|
function exec(file, args, cwd) {
|
|
31846
|
-
return (0,
|
|
31858
|
+
return (0, import_node_child_process40.execFileSync)(file, args, {
|
|
31847
31859
|
cwd,
|
|
31848
31860
|
encoding: "utf8",
|
|
31849
31861
|
env: swiftEnvironment(),
|
|
@@ -32529,7 +32541,7 @@ function placeholderStandin(surface, binary2, toolchain, work, behavior, sibling
|
|
|
32529
32541
|
const out = import_node_path70.default.join(work, "graphs");
|
|
32530
32542
|
import_node_fs73.default.mkdirSync(import_node_path70.default.join(work, "interface"), { recursive: true });
|
|
32531
32543
|
import_node_fs73.default.mkdirSync(out, { recursive: true });
|
|
32532
|
-
const extracted = (0,
|
|
32544
|
+
const extracted = (0, import_node_child_process40.spawnSync)(
|
|
32533
32545
|
import_node_path70.default.join(toolchain.toolchainBin, "swiftc"),
|
|
32534
32546
|
[
|
|
32535
32547
|
"-emit-module",
|
|
@@ -32930,7 +32942,7 @@ function graphStandin(module2, graphs, values, wasm, binary2, toolchain, work, r
|
|
|
32930
32942
|
);
|
|
32931
32943
|
}
|
|
32932
32944
|
import_node_fs73.default.writeFileSync(file, source + trailer);
|
|
32933
|
-
const check2 = (0,
|
|
32945
|
+
const check2 = (0, import_node_child_process40.spawnSync)(
|
|
32934
32946
|
import_node_path70.default.join(toolchain.toolchainBin, "swiftc"),
|
|
32935
32947
|
// emitting the module runs the diagnostics a typecheck skips, such as
|
|
32936
32948
|
// literal overflow, which the app's build of the stand-in reaches
|
|
@@ -33298,7 +33310,7 @@ async function cxxStandin(surface, binary2, toolchain, work) {
|
|
|
33298
33310
|
roots.map((root) => `#include ${JSON.stringify(root)}
|
|
33299
33311
|
`).join("")
|
|
33300
33312
|
);
|
|
33301
|
-
const language = (0,
|
|
33313
|
+
const language = (0, import_node_child_process40.spawnSync)(
|
|
33302
33314
|
import_node_path70.default.join(toolchain.toolchainBin, "clang"),
|
|
33303
33315
|
[
|
|
33304
33316
|
"-target",
|
|
@@ -33519,7 +33531,7 @@ function buildRustCrate(manifest, library, searchRoot, moduleRoot, entry = rustC
|
|
|
33519
33531
|
import_node_path70.default.relative(common2, crateWorkspace(manifest)),
|
|
33520
33532
|
"Cargo.lock"
|
|
33521
33533
|
);
|
|
33522
|
-
const result = (0,
|
|
33534
|
+
const result = (0, import_node_child_process40.spawnSync)(
|
|
33523
33535
|
process.execPath,
|
|
33524
33536
|
[
|
|
33525
33537
|
runner,
|
|
@@ -33667,7 +33679,7 @@ async function sourceStandins(binaries, toolchain, provided, behavior) {
|
|
|
33667
33679
|
})
|
|
33668
33680
|
);
|
|
33669
33681
|
const build = await new Promise((resolve3) => {
|
|
33670
|
-
const child = (0,
|
|
33682
|
+
const child = (0, import_node_child_process40.spawn)(
|
|
33671
33683
|
"bun",
|
|
33672
33684
|
[
|
|
33673
33685
|
import_node_path70.default.join(repo, "scripts/build/swift-standins-submit.ts"),
|
|
@@ -34196,11 +34208,11 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
|
|
|
34196
34208
|
import_node_fs73.default.rmSync(modules, { recursive: true, force: true });
|
|
34197
34209
|
}
|
|
34198
34210
|
}
|
|
34199
|
-
var
|
|
34211
|
+
var import_node_child_process40, import_node_crypto36, import_node_fs73, import_node_path70, TRIPLE, cacheDir4, key, digests, isBinaryLibraryFile, REACH_STAGED_FRAMEWORKS, OBJC_IMPORT, files, OBJC, OBJC_ATTRIBUTE, TYPE_DECLARATION, OPTIONAL_REQUIREMENT, WASM_EH_FLAGS, OBJC_UNREPRESENTABLE, INERT_VALUE, identChar, RUST_TARGET, UNSEARCHED, RUST_TOOLCHAIN, built;
|
|
34200
34212
|
var init_swift_standins = __esm({
|
|
34201
34213
|
"src/swift-standins.ts"() {
|
|
34202
34214
|
"use strict";
|
|
34203
|
-
|
|
34215
|
+
import_node_child_process40 = require("node:child_process");
|
|
34204
34216
|
import_node_crypto36 = require("node:crypto");
|
|
34205
34217
|
import_node_fs73 = __toESM(require("node:fs"), 1);
|
|
34206
34218
|
import_node_path70 = __toESM(require("node:path"), 1);
|
|
@@ -34925,7 +34937,7 @@ function prepareXcodeSwiftProducts(app, binaries, moduleRoot) {
|
|
|
34925
34937
|
provided: [...providers.keys()]
|
|
34926
34938
|
};
|
|
34927
34939
|
try {
|
|
34928
|
-
const lock = (0,
|
|
34940
|
+
const lock = (0, import_node_child_process41.spawnSync)(
|
|
34929
34941
|
"perl",
|
|
34930
34942
|
["-e", 'open(my $f, ">&=", 3) or die $!; flock($f, 2) or die $!'],
|
|
34931
34943
|
{ stdio: ["ignore", "pipe", "pipe", descriptor], encoding: "utf8" }
|
|
@@ -35096,7 +35108,7 @@ function prepareXcodeSwiftProducts(app, binaries, moduleRoot) {
|
|
|
35096
35108
|
import_node_path71.default.join(work, `${target.moduleName}.o`)
|
|
35097
35109
|
]
|
|
35098
35110
|
];
|
|
35099
|
-
const result = (0,
|
|
35111
|
+
const result = (0, import_node_child_process41.spawnSync)(frontend, args, {
|
|
35100
35112
|
cwd: work,
|
|
35101
35113
|
encoding: "utf8",
|
|
35102
35114
|
env: swiftEnvironment(),
|
|
@@ -35216,7 +35228,7 @@ async function prepareXcodeObjCImplementations(app, binaries, moduleRoot) {
|
|
|
35216
35228
|
const work = import_node_path71.default.join(parent, key2);
|
|
35217
35229
|
const descriptor = import_node_fs74.default.openSync(`${work}.lock`, "a");
|
|
35218
35230
|
try {
|
|
35219
|
-
const locked = (0,
|
|
35231
|
+
const locked = (0, import_node_child_process41.spawnSync)(
|
|
35220
35232
|
"perl",
|
|
35221
35233
|
["-e", 'open(my $f, ">&=", 3) or die $!; flock($f, 2) or die $!'],
|
|
35222
35234
|
{ stdio: ["ignore", "pipe", "pipe", descriptor], encoding: "utf8" }
|
|
@@ -35464,7 +35476,7 @@ async function prepareXcodeObjCImplementations(app, binaries, moduleRoot) {
|
|
|
35464
35476
|
...dependencies ? ["-MD", "-MF", dependencies, "-H"] : []
|
|
35465
35477
|
];
|
|
35466
35478
|
const result = await new Promise((resolve3) => {
|
|
35467
|
-
const child = (0,
|
|
35479
|
+
const child = (0, import_node_child_process41.spawn)(
|
|
35468
35480
|
import_node_path71.default.join(toolchain.toolchainBin, cxx ? "clang++" : "clang"),
|
|
35469
35481
|
args,
|
|
35470
35482
|
{
|
|
@@ -35545,11 +35557,11 @@ ${reported.trimEnd() || `Clang exited with status ${result.status}`}`;
|
|
|
35545
35557
|
import_node_fs74.default.closeSync(descriptor);
|
|
35546
35558
|
}
|
|
35547
35559
|
}
|
|
35548
|
-
var
|
|
35560
|
+
var import_node_child_process41, import_node_crypto37, import_node_fs74, import_node_path71, SwiftObjCCompilationError, isDirectory2, isSdkInclude, FRAMEWORK_IMPORT, OWN_IMPORT;
|
|
35549
35561
|
var init_swift_objc_compile = __esm({
|
|
35550
35562
|
"src/swift-objc-compile.ts"() {
|
|
35551
35563
|
"use strict";
|
|
35552
|
-
|
|
35564
|
+
import_node_child_process41 = require("node:child_process");
|
|
35553
35565
|
import_node_crypto37 = require("node:crypto");
|
|
35554
35566
|
import_node_fs74 = __toESM(require("node:fs"), 1);
|
|
35555
35567
|
import_node_path71 = __toESM(require("node:path"), 1);
|
|
@@ -37953,7 +37965,7 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
|
|
|
37953
37965
|
failed = captured.failed;
|
|
37954
37966
|
reached = captured.reached;
|
|
37955
37967
|
} else {
|
|
37956
|
-
const result2 = (0,
|
|
37968
|
+
const result2 = (0, import_node_child_process42.spawnSync)(clang, [...cleaned, "-M", "-MT", "peach", "-H"], {
|
|
37957
37969
|
cwd: work,
|
|
37958
37970
|
encoding: "utf8",
|
|
37959
37971
|
env: swiftEnvironment(),
|
|
@@ -38076,11 +38088,11 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
|
|
|
38076
38088
|
);
|
|
38077
38089
|
return result;
|
|
38078
38090
|
}
|
|
38079
|
-
var
|
|
38091
|
+
var import_node_child_process42, import_node_crypto39, import_node_fs78, import_node_path75, cachedInputs;
|
|
38080
38092
|
var init_swift_cxx_reachable = __esm({
|
|
38081
38093
|
"src/swift-cxx-reachable.ts"() {
|
|
38082
38094
|
"use strict";
|
|
38083
|
-
|
|
38095
|
+
import_node_child_process42 = require("node:child_process");
|
|
38084
38096
|
import_node_crypto39 = require("node:crypto");
|
|
38085
38097
|
import_node_fs78 = __toESM(require("node:fs"), 1);
|
|
38086
38098
|
import_node_path75 = __toESM(require("node:path"), 1);
|
|
@@ -38169,19 +38181,19 @@ function rasterizePdfFile(diskPath, pdfSha256) {
|
|
|
38169
38181
|
} catch {
|
|
38170
38182
|
}
|
|
38171
38183
|
const out = import_node_path77.default.join(
|
|
38172
|
-
import_node_fs80.default.mkdtempSync(import_node_path77.default.join(
|
|
38184
|
+
import_node_fs80.default.mkdtempSync(import_node_path77.default.join(import_node_os17.default.tmpdir(), "swift-pdf-png-")),
|
|
38173
38185
|
"out.png"
|
|
38174
38186
|
);
|
|
38175
38187
|
try {
|
|
38176
38188
|
if (process.platform === "darwin") {
|
|
38177
|
-
(0,
|
|
38189
|
+
(0, import_node_child_process43.execFileSync)(
|
|
38178
38190
|
compiledSwiftHelper(RASTER_SWIFT, "swift-pdf-raster"),
|
|
38179
38191
|
[diskPath, "3", out],
|
|
38180
38192
|
{ stdio: "pipe" }
|
|
38181
38193
|
);
|
|
38182
38194
|
} else {
|
|
38183
38195
|
const { executable, prefixArgs } = rnxSelfInvocation();
|
|
38184
|
-
(0,
|
|
38196
|
+
(0, import_node_child_process43.execFileSync)(
|
|
38185
38197
|
executable,
|
|
38186
38198
|
[
|
|
38187
38199
|
...prefixArgs,
|
|
@@ -38216,11 +38228,11 @@ function rasterizeSvgFile(diskPath, svgSha256) {
|
|
|
38216
38228
|
const cached2 = import_node_path77.default.join(cacheDir(), `swift-svg-png-${tag}-${svgSha256}.png`);
|
|
38217
38229
|
if (import_node_fs80.default.existsSync(cached2)) return { bytes: import_node_fs80.default.readFileSync(cached2) };
|
|
38218
38230
|
const out = import_node_path77.default.join(
|
|
38219
|
-
import_node_fs80.default.mkdtempSync(import_node_path77.default.join(
|
|
38231
|
+
import_node_fs80.default.mkdtempSync(import_node_path77.default.join(import_node_os17.default.tmpdir(), "swift-svg-png-")),
|
|
38220
38232
|
"out.png"
|
|
38221
38233
|
);
|
|
38222
38234
|
try {
|
|
38223
|
-
(0,
|
|
38235
|
+
(0, import_node_child_process43.execFileSync)(binary2, [diskPath, "3", out], { stdio: "pipe" });
|
|
38224
38236
|
const bytes = import_node_fs80.default.readFileSync(out);
|
|
38225
38237
|
import_node_fs80.default.mkdirSync(cacheDir(), { recursive: true });
|
|
38226
38238
|
import_node_fs80.default.copyFileSync(out, cached2);
|
|
@@ -38233,14 +38245,14 @@ function rasterizeSvgFile(diskPath, svgSha256) {
|
|
|
38233
38245
|
import_node_fs80.default.rmSync(import_node_path77.default.dirname(out), { recursive: true, force: true });
|
|
38234
38246
|
}
|
|
38235
38247
|
}
|
|
38236
|
-
var
|
|
38248
|
+
var import_node_child_process43, import_node_crypto40, import_node_fs80, import_node_os17, import_node_path77, RASTER_SWIFT, RASTER_SVG_SWIFT;
|
|
38237
38249
|
var init_swift_pdf_raster = __esm({
|
|
38238
38250
|
"src/swift-pdf-raster.ts"() {
|
|
38239
38251
|
"use strict";
|
|
38240
|
-
|
|
38252
|
+
import_node_child_process43 = require("node:child_process");
|
|
38241
38253
|
import_node_crypto40 = require("node:crypto");
|
|
38242
38254
|
import_node_fs80 = __toESM(require("node:fs"), 1);
|
|
38243
|
-
|
|
38255
|
+
import_node_os17 = __toESM(require("node:os"), 1);
|
|
38244
38256
|
import_node_path77 = __toESM(require("node:path"), 1);
|
|
38245
38257
|
init_internal_child_contract();
|
|
38246
38258
|
init_self_invocation();
|
|
@@ -38457,7 +38469,7 @@ async function wasmPortableAssembly(binaries, toolchainBin, moduleRoot) {
|
|
|
38457
38469
|
const known = emptyWasmAssembly.get(key2);
|
|
38458
38470
|
if (known) return known;
|
|
38459
38471
|
const result = new Promise(
|
|
38460
|
-
(resolve3) => (0,
|
|
38472
|
+
(resolve3) => (0, import_node_child_process44.execFile)(
|
|
38461
38473
|
clang,
|
|
38462
38474
|
[
|
|
38463
38475
|
"-target",
|
|
@@ -39701,7 +39713,7 @@ function buildSwiftBundleFiles(packagePath, hosted, inputs, resourceBundles) {
|
|
|
39701
39713
|
}
|
|
39702
39714
|
}
|
|
39703
39715
|
if (xcode?.app.postBundleScripts.length) {
|
|
39704
|
-
const dir = import_node_fs81.default.mkdtempSync(import_node_path78.default.join(
|
|
39716
|
+
const dir = import_node_fs81.default.mkdtempSync(import_node_path78.default.join(import_node_os18.default.tmpdir(), "peach-xcode-bundle-"));
|
|
39705
39717
|
const wrapper = import_node_path78.default.basename(xcode.app.settings("UNLOCALIZED_RESOURCES_FOLDER_PATH")) || `${xcode.app.name}.app`;
|
|
39706
39718
|
const bundle = import_node_path78.default.join(dir, wrapper);
|
|
39707
39719
|
try {
|
|
@@ -39752,7 +39764,7 @@ function buildSwiftBundleFiles(packagePath, hosted, inputs, resourceBundles) {
|
|
|
39752
39764
|
});
|
|
39753
39765
|
try {
|
|
39754
39766
|
const [shell, ...args] = phase.command;
|
|
39755
|
-
(0,
|
|
39767
|
+
(0, import_node_child_process44.execFileSync)(shell, args, {
|
|
39756
39768
|
cwd: phase.directory,
|
|
39757
39769
|
env,
|
|
39758
39770
|
stdio: ["ignore", "pipe", "pipe"],
|
|
@@ -40432,15 +40444,15 @@ function scopedArtifact(project, entry, moduleRoot, signal) {
|
|
|
40432
40444
|
project.building = { stamp, promise: fresh, signal };
|
|
40433
40445
|
return fresh;
|
|
40434
40446
|
}
|
|
40435
|
-
var import_node_async_hooks2,
|
|
40447
|
+
var import_node_async_hooks2, import_node_child_process44, import_node_crypto41, import_node_fs81, import_node_os18, import_node_path78, 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;
|
|
40436
40448
|
var init_swift_host = __esm({
|
|
40437
40449
|
"src/swift-host.ts"() {
|
|
40438
40450
|
"use strict";
|
|
40439
40451
|
import_node_async_hooks2 = require("node:async_hooks");
|
|
40440
|
-
|
|
40452
|
+
import_node_child_process44 = require("node:child_process");
|
|
40441
40453
|
import_node_crypto41 = require("node:crypto");
|
|
40442
40454
|
import_node_fs81 = __toESM(require("node:fs"), 1);
|
|
40443
|
-
|
|
40455
|
+
import_node_os18 = __toESM(require("node:os"), 1);
|
|
40444
40456
|
import_node_path78 = __toESM(require("node:path"), 1);
|
|
40445
40457
|
init_bundleAssets();
|
|
40446
40458
|
init_stringCatalog();
|
|
@@ -42321,11 +42333,11 @@ async function runInstalledTurboCodegen(appRoot, outDir, signal) {
|
|
|
42321
42333
|
files: hashTree(generatedRoot)
|
|
42322
42334
|
};
|
|
42323
42335
|
}
|
|
42324
|
-
var
|
|
42336
|
+
var import_node_child_process45, import_node_crypto42, import_node_fs83, import_node_module7, import_node_path80, import_node_util14, run6, RENDERER_PODS, RENDERER_PODS_VERSIONED, COMPILED_SOURCE, LEGACY_BRIDGE_DEV_SUPPORT, LEGACY_BRIDGE_PODS, LEGACY_BRIDGE_PODS_VERSIONED;
|
|
42325
42337
|
var init_turbo_codegen_intake = __esm({
|
|
42326
42338
|
"src/turbo-codegen-intake.ts"() {
|
|
42327
42339
|
"use strict";
|
|
42328
|
-
|
|
42340
|
+
import_node_child_process45 = require("node:child_process");
|
|
42329
42341
|
import_node_crypto42 = require("node:crypto");
|
|
42330
42342
|
import_node_fs83 = __toESM(require("node:fs"), 1);
|
|
42331
42343
|
import_node_module7 = require("node:module");
|
|
@@ -42335,7 +42347,7 @@ var init_turbo_codegen_intake = __esm({
|
|
|
42335
42347
|
init_is_record();
|
|
42336
42348
|
init_nitro_source();
|
|
42337
42349
|
init_podspec_sources();
|
|
42338
|
-
run6 = (0, import_node_util14.promisify)(
|
|
42350
|
+
run6 = (0, import_node_util14.promisify)(import_node_child_process45.execFile);
|
|
42339
42351
|
RENDERER_PODS = /* @__PURE__ */ new Set([
|
|
42340
42352
|
"React-Fabric",
|
|
42341
42353
|
"React-FabricComponents",
|
|
@@ -42981,7 +42993,8 @@ async function collectTurboSources(options) {
|
|
|
42981
42993
|
reactNative,
|
|
42982
42994
|
sources: [],
|
|
42983
42995
|
externalPodSources: [],
|
|
42984
|
-
rendererSwiftTargets: []
|
|
42996
|
+
rendererSwiftTargets: [],
|
|
42997
|
+
fabricComponents: []
|
|
42985
42998
|
};
|
|
42986
42999
|
const sharedLibrary = [...options.installedPods?.values() ?? []].find(
|
|
42987
43000
|
(pod) => pod.sharedLibrary
|
|
@@ -43428,6 +43441,9 @@ async function collectTurboSources(options) {
|
|
|
43428
43441
|
};
|
|
43429
43442
|
let objc = Boolean(options.reactNativeProvider);
|
|
43430
43443
|
let fabric = Boolean(options.reactNativeProvider);
|
|
43444
|
+
const fabricPackages = /* @__PURE__ */ new Set();
|
|
43445
|
+
const fabricViews = [];
|
|
43446
|
+
let fabricTarget = null;
|
|
43431
43447
|
let legacyBridge = false;
|
|
43432
43448
|
let hermesHeaders = null;
|
|
43433
43449
|
const objcClasses = /* @__PURE__ */ new Set();
|
|
@@ -43451,7 +43467,11 @@ async function collectTurboSources(options) {
|
|
|
43451
43467
|
{ tool: "cxx", flags: pod.installed.preprocessorFlags.cxx }
|
|
43452
43468
|
];
|
|
43453
43469
|
const root = pod.root;
|
|
43454
|
-
|
|
43470
|
+
if (fabricComponents(provider.root)) {
|
|
43471
|
+
fabric = true;
|
|
43472
|
+
fabricPackages.add(provider.name);
|
|
43473
|
+
fabricTarget ??= { targetName, label, root: provider.root };
|
|
43474
|
+
}
|
|
43455
43475
|
if (pod.installed?.library) {
|
|
43456
43476
|
result.libraries ??= {};
|
|
43457
43477
|
result.libraries[targetName] = import_node_fs84.default.readFileSync(pod.installed.library).toString("base64");
|
|
@@ -43724,6 +43744,17 @@ async function collectTurboSources(options) {
|
|
|
43724
43744
|
const owned = /* @__PURE__ */ new Set();
|
|
43725
43745
|
walkFiles2(generated, "", owned);
|
|
43726
43746
|
const spec = codegenConfig.name;
|
|
43747
|
+
let definedComponentNames;
|
|
43748
|
+
const getDefinedComponentNames = () => {
|
|
43749
|
+
if (definedComponentNames) return definedComponentNames;
|
|
43750
|
+
definedComponentNames = /* @__PURE__ */ new Set();
|
|
43751
|
+
const pattern = /\b(?:const\s+char|char\s+const)\s+(\w+ComponentName)\s*\[\s*\]\s*=/g;
|
|
43752
|
+
for (const sourceFile of sources) {
|
|
43753
|
+
const text6 = readPackageFile(root, import_node_path81.default.join(root, sourceFile), Infinity).toString("utf8").replace(/\/\/[^\n]*/g, "");
|
|
43754
|
+
for (const match of text6.matchAll(pattern)) definedComponentNames.add(match[1]);
|
|
43755
|
+
}
|
|
43756
|
+
return definedComponentNames;
|
|
43757
|
+
};
|
|
43727
43758
|
for (const file of [...owned].sort()) {
|
|
43728
43759
|
const base = import_node_path81.default.posix.basename(file);
|
|
43729
43760
|
const objcSpec = providerObjC && file.startsWith(`${spec}/`);
|
|
@@ -43745,7 +43776,32 @@ async function collectTurboSources(options) {
|
|
|
43745
43776
|
relative: file
|
|
43746
43777
|
}
|
|
43747
43778
|
);
|
|
43748
|
-
else
|
|
43779
|
+
else {
|
|
43780
|
+
if (component && base === "ShadowNodes.cpp") {
|
|
43781
|
+
const defined = getDefinedComponentNames();
|
|
43782
|
+
if (defined.size) {
|
|
43783
|
+
const source = readPackageFile(
|
|
43784
|
+
generated,
|
|
43785
|
+
import_node_path81.default.join(generated, file),
|
|
43786
|
+
Infinity
|
|
43787
|
+
).toString("utf8");
|
|
43788
|
+
const filtered = source.replace(
|
|
43789
|
+
/^[ \t]*(?:extern[ \t]+)?(?:const[ \t]+char|char[ \t]+const)[ \t]+(\w+ComponentName)[ \t]*\[[ \t]*\][ \t]*=[^;]*;[ \t]*\r?\n?/gm,
|
|
43790
|
+
(line, name3) => defined.has(name3) ? "" : line
|
|
43791
|
+
);
|
|
43792
|
+
if (filtered !== source) {
|
|
43793
|
+
if (!/\b(?:const\s+char|char\s+const)\s+\w+ComponentName\s*\[\s*\]\s*=/.test(
|
|
43794
|
+
filtered
|
|
43795
|
+
))
|
|
43796
|
+
continue;
|
|
43797
|
+
const key2 = original(targetName, "ReactCodegen", generated, file);
|
|
43798
|
+
result.files[key2] = filtered;
|
|
43799
|
+
continue;
|
|
43800
|
+
}
|
|
43801
|
+
}
|
|
43802
|
+
}
|
|
43803
|
+
original(targetName, "ReactCodegen", generated, file);
|
|
43804
|
+
}
|
|
43749
43805
|
}
|
|
43750
43806
|
}
|
|
43751
43807
|
for (const file of sources) original(targetName, label, root, file);
|
|
@@ -43806,7 +43862,7 @@ ${declared.map((symbol2) => `extern "C" void ${symbol2}();
|
|
|
43806
43862
|
add(`${core}/include/PeachJsiRuntime.hpp`, TURBO_RUNTIME_HEADER);
|
|
43807
43863
|
add(
|
|
43808
43864
|
`${core}/${TURBO_CORE_PUBLIC_HEADERS}/${TURBO_ENTRY_HEADER}`,
|
|
43809
|
-
'#pragma once\nextern "C" void peachTurboInitialize();\n'
|
|
43865
|
+
'#pragma once\nextern "C" void peachTurboInitialize();\n// the +1 Fabric component view a root of the process shows, in an app with one\nextern "C" void *peach_fabric_view_content(int tag);\n'
|
|
43810
43866
|
);
|
|
43811
43867
|
add(
|
|
43812
43868
|
`${core}/${TURBO_CORE_PUBLIC_HEADERS}/module.modulemap`,
|
|
@@ -43932,6 +43988,21 @@ ${declared.map((symbol2) => `extern "C" void ${symbol2}();
|
|
|
43932
43988
|
original(TURBO_CORE_TARGET, "ReactCodegen", generated, "RCTModuleProviders.h")
|
|
43933
43989
|
);
|
|
43934
43990
|
}
|
|
43991
|
+
const thirdParty = import_node_path81.default.join(generated, "RCTThirdPartyComponentsProvider.mm");
|
|
43992
|
+
if (fabricPackages.size > 0 && import_node_fs84.default.existsSync(thirdParty)) {
|
|
43993
|
+
for (const [, name3, className2, owner] of import_node_fs84.default.readFileSync(thirdParty, "utf8").matchAll(/@"([^"]+)": NSClassFromString\(@"([^"]+)"\), \/\/ (\S+)/g))
|
|
43994
|
+
if (fabricPackages.has(owner))
|
|
43995
|
+
fabricViews.push({ name: name3, className: className2 });
|
|
43996
|
+
}
|
|
43997
|
+
if (fabricViews.length > 0 && fabricTarget) {
|
|
43998
|
+
result.fabricComponents = fabricViews.map(({ name: name3 }) => name3);
|
|
43999
|
+
const unit2 = `${targetPath(fabricTarget.targetName)}/PeachFabricHost.mm`;
|
|
44000
|
+
add(unit2, fabricHostSource(fabricViews));
|
|
44001
|
+
scanText(
|
|
44002
|
+
{ key: unit2, ...fabricTarget, relative: "PeachFabricHost.mm" },
|
|
44003
|
+
result.files[unit2]
|
|
44004
|
+
);
|
|
44005
|
+
}
|
|
43935
44006
|
}
|
|
43936
44007
|
if (fabric || legacyBridge) {
|
|
43937
44008
|
if (legacyBridge) {
|
|
@@ -44275,38 +44346,6 @@ void dispatchToJSThread(dispatch_block_t block) {
|
|
|
44275
44346
|
}
|
|
44276
44347
|
} // namespace
|
|
44277
44348
|
|
|
44278
|
-
static CGFloat peachScreenBrightness = 0.5;
|
|
44279
|
-
|
|
44280
|
-
@implementation UIScreen (PeachTurboRuntime)
|
|
44281
|
-
+ (UIScreen *)mainScreen {
|
|
44282
|
-
static UIScreen *screen = nil;
|
|
44283
|
-
if (!screen) screen = [[UIScreen alloc] init];
|
|
44284
|
-
return screen;
|
|
44285
|
-
}
|
|
44286
|
-
- (CGFloat)brightness {
|
|
44287
|
-
return peachScreenBrightness;
|
|
44288
|
-
}
|
|
44289
|
-
- (void)setBrightness:(CGFloat)value {
|
|
44290
|
-
peachScreenBrightness = value;
|
|
44291
|
-
}
|
|
44292
|
-
@end
|
|
44293
|
-
|
|
44294
|
-
static BOOL peachIdleTimerDisabled = NO;
|
|
44295
|
-
|
|
44296
|
-
@implementation UIApplication (PeachTurboRuntime)
|
|
44297
|
-
+ (UIApplication *)sharedApplication {
|
|
44298
|
-
static UIApplication *app = nil;
|
|
44299
|
-
if (!app) app = [[UIApplication alloc] init];
|
|
44300
|
-
return app;
|
|
44301
|
-
}
|
|
44302
|
-
- (BOOL)isIdleTimerDisabled {
|
|
44303
|
-
return peachIdleTimerDisabled;
|
|
44304
|
-
}
|
|
44305
|
-
- (void)setIdleTimerDisabled:(BOOL)disabled {
|
|
44306
|
-
peachIdleTimerDisabled = disabled;
|
|
44307
|
-
}
|
|
44308
|
-
@end
|
|
44309
|
-
|
|
44310
44349
|
// React Native's own modules register before any provider's, and RCTBridge.mm
|
|
44311
44350
|
// creates the registry's queue in the first RCTRegisterModule. the engine
|
|
44312
44351
|
// supplies those modules, so a process whose providers register none (codegen
|
|
@@ -44423,6 +44462,12 @@ ${moduleProviders ? `- (id<RCTModuleProvider>)getModuleProvider:(const char *)na
|
|
|
44423
44462
|
|
|
44424
44463
|
@end
|
|
44425
44464
|
|
|
44465
|
+
// an app's Fabric component views, which its own Fabric host defines
|
|
44466
|
+
extern "C" void peachInstallFabricViews(facebook::jsi::Runtime &runtime) __attribute__((weak));
|
|
44467
|
+
|
|
44468
|
+
// UIKitCore: the key window and root view controller an app delegate makes at launch
|
|
44469
|
+
extern "C" void PeachLaunchReactNativeWindow(void);
|
|
44470
|
+
|
|
44426
44471
|
extern "C" void peachTurboInitialize() {
|
|
44427
44472
|
objc_create_block_classes_as_subclasses_of([NSObject class]);
|
|
44428
44473
|
if (Class blockClass = NSClassFromString(@"_NSBlock")) {
|
|
@@ -44436,6 +44481,7 @@ extern "C" void peachTurboInitialize() {
|
|
|
44436
44481
|
static_cast<uint32_t *>((__bridge void *)mainQueueClass)[4] &= ~2048u;
|
|
44437
44482
|
*reinterpret_cast<void **>(&_dispatch_main_q) = (__bridge void *)mainQueueClass;
|
|
44438
44483
|
}
|
|
44484
|
+
PeachLaunchReactNativeWindow();
|
|
44439
44485
|
auto& runtime = peach::jsi_runtime::create(
|
|
44440
44486
|
[] { invoker->drain(); },
|
|
44441
44487
|
[] {
|
|
@@ -44496,6 +44542,7 @@ ${bridgeProxy ? ` // as RCTInstance does: the proxy modules reach as their brid
|
|
|
44496
44542
|
}];
|
|
44497
44543
|
[decorator.moduleRegistry setTurboModuleRegistry:manager];
|
|
44498
44544
|
[manager installJSBindings:runtime];
|
|
44545
|
+
if (peachInstallFabricViews) peachInstallFabricViews(runtime);
|
|
44499
44546
|
}
|
|
44500
44547
|
|
|
44501
44548
|
// the screenshot the device took, as UIKit posts it to every observer in the
|
|
@@ -44541,11 +44588,133 @@ ${moduleProviders ? " [found addObjectsFromArray:RCTModuleProviders.moduleProvi
|
|
|
44541
44588
|
}
|
|
44542
44589
|
`;
|
|
44543
44590
|
}
|
|
44544
|
-
|
|
44591
|
+
function fabricHostSource(views) {
|
|
44592
|
+
const entries = views.map(
|
|
44593
|
+
({ name: name3, className: className2 }) => `@${JSON.stringify(name3)}: NSClassFromString(@${JSON.stringify(className2)})`
|
|
44594
|
+
).join(", ");
|
|
44595
|
+
return `${FABRIC_HOST_INCLUDES}
|
|
44596
|
+
@interface PeachFabricComponents : NSObject <RCTComponentViewFactoryComponentProvider>
|
|
44597
|
+
@end
|
|
44598
|
+
|
|
44599
|
+
@implementation PeachFabricComponents
|
|
44600
|
+
- (NSDictionary<NSString *, Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents
|
|
44601
|
+
{
|
|
44602
|
+
return @{${entries}};
|
|
44603
|
+
}
|
|
44604
|
+
@end
|
|
44605
|
+
|
|
44606
|
+
namespace {
|
|
44607
|
+
struct PeachFabricView {
|
|
44608
|
+
react::ComponentHandle handle;
|
|
44609
|
+
const react::ComponentDescriptor *descriptor;
|
|
44610
|
+
react::Props::Shared props;
|
|
44611
|
+
react::LayoutMetrics layoutMetrics;
|
|
44612
|
+
};
|
|
44613
|
+
PeachFabricComponents *fabricComponents;
|
|
44614
|
+
RCTComponentViewRegistry *fabricRegistry;
|
|
44615
|
+
std::shared_ptr<const react::ContextContainer> fabricContext;
|
|
44616
|
+
react::ComponentDescriptorRegistry::Shared fabricDescriptors;
|
|
44617
|
+
std::unordered_map<int, PeachFabricView> fabricViews;
|
|
44618
|
+
int nextFabricView = 1;
|
|
44619
|
+
std::string fabricNames = ${JSON.stringify(views.map(({ name: name3 }) => name3).join("\n"))};
|
|
44620
|
+
|
|
44621
|
+
PeachFabricView &fabricView(int tag) {
|
|
44622
|
+
auto found = fabricViews.find(tag);
|
|
44623
|
+
if (found == fabricViews.end()) {
|
|
44624
|
+
std::fprintf(stderr, "no mounted Fabric view %d\\n", tag);
|
|
44625
|
+
std::abort();
|
|
44626
|
+
}
|
|
44627
|
+
return found->second;
|
|
44628
|
+
}
|
|
44629
|
+
|
|
44630
|
+
react::Props::Shared fabricCloneProps(jsi::Runtime &rt, const PeachFabricView &view, const jsi::Value &props) {
|
|
44631
|
+
react::PropsParserContext context{-1, *fabricContext};
|
|
44632
|
+
return view.descriptor->cloneProps(context, view.props, react::RawProps(rt, props));
|
|
44633
|
+
}
|
|
44634
|
+
|
|
44635
|
+
} // namespace
|
|
44636
|
+
|
|
44637
|
+
extern "C" void peachInstallFabricViews(jsi::Runtime &rt) {
|
|
44638
|
+
fabricComponents = [PeachFabricComponents new];
|
|
44639
|
+
RCTComponentViewFactory *factory = [RCTComponentViewFactory currentComponentViewFactory];
|
|
44640
|
+
factory.thirdPartyFabricComponentsProvider = fabricComponents;
|
|
44641
|
+
fabricRegistry = [RCTComponentViewRegistry new];
|
|
44642
|
+
fabricContext = std::make_shared<const react::ContextContainer>();
|
|
44643
|
+
react::ComponentDescriptorParameters parameters{{}, fabricContext, nullptr};
|
|
44644
|
+
fabricDescriptors = [factory createComponentDescriptorRegistryWithParameters:parameters];
|
|
44645
|
+
auto views = jsi::Object(rt);
|
|
44646
|
+
auto method = [&](const char *name, unsigned count, jsi::HostFunctionType body) {
|
|
44647
|
+
views.setProperty(rt, name, jsi::Function::createFromHostFunction(rt, jsi::PropNameID::forAscii(rt, name), count, std::move(body)));
|
|
44648
|
+
};
|
|
44649
|
+
// Create then Insert: the first props, no event emitter or state, and the
|
|
44650
|
+
// layout the view has before the engine measures it
|
|
44651
|
+
method("create", 2, [](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
44652
|
+
const auto &descriptor = fabricDescriptors->at(args[0].asString(rt).utf8(rt));
|
|
44653
|
+
int tag = nextFabricView++;
|
|
44654
|
+
auto &view = fabricViews.emplace(tag, PeachFabricView{descriptor.getComponentHandle(), &descriptor, nullptr, {}}).first->second;
|
|
44655
|
+
view.props = fabricCloneProps(rt, view, args[1]);
|
|
44656
|
+
UIView<RCTComponentViewProtocol> *componentView =
|
|
44657
|
+
[fabricRegistry dequeueComponentViewWithComponentHandle:view.handle tag:tag].view;
|
|
44658
|
+
[componentView updateProps:view.props oldProps:nullptr];
|
|
44659
|
+
[componentView updateEventEmitter:nullptr];
|
|
44660
|
+
[componentView updateState:nullptr oldState:nullptr];
|
|
44661
|
+
[componentView updateLayoutMetrics:view.layoutMetrics oldLayoutMetrics:react::EmptyLayoutMetrics];
|
|
44662
|
+
[componentView finalizeUpdates:RNComponentViewUpdateMaskAll];
|
|
44663
|
+
return jsi::Value(tag);
|
|
44664
|
+
});
|
|
44665
|
+
// Update with the props React changed since the last commit
|
|
44666
|
+
method("update", 2, [](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
44667
|
+
int tag = static_cast<int>(args[0].asNumber());
|
|
44668
|
+
auto &view = fabricView(tag);
|
|
44669
|
+
auto oldProps = view.props;
|
|
44670
|
+
view.props = fabricCloneProps(rt, view, args[1]);
|
|
44671
|
+
UIView<RCTComponentViewProtocol> *componentView = [fabricRegistry componentViewDescriptorWithTag:tag].view;
|
|
44672
|
+
[componentView updateProps:view.props oldProps:oldProps];
|
|
44673
|
+
[componentView finalizeUpdates:RNComponentViewUpdateMaskProps];
|
|
44674
|
+
return jsi::Value::undefined();
|
|
44675
|
+
});
|
|
44676
|
+
// Update with the size and scale the engine laid the view out at
|
|
44677
|
+
method("layout", 4, [](jsi::Runtime &, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
44678
|
+
int tag = static_cast<int>(args[0].asNumber());
|
|
44679
|
+
auto &view = fabricView(tag);
|
|
44680
|
+
auto metrics = view.layoutMetrics;
|
|
44681
|
+
metrics.frame = react::Rect{{0, 0}, {static_cast<react::Float>(args[1].asNumber()), static_cast<react::Float>(args[2].asNumber())}};
|
|
44682
|
+
metrics.pointScaleFactor = static_cast<react::Float>(args[3].asNumber());
|
|
44683
|
+
if (metrics == view.layoutMetrics) return jsi::Value::undefined();
|
|
44684
|
+
UIView<RCTComponentViewProtocol> *componentView = [fabricRegistry componentViewDescriptorWithTag:tag].view;
|
|
44685
|
+
[componentView updateLayoutMetrics:metrics oldLayoutMetrics:view.layoutMetrics];
|
|
44686
|
+
view.layoutMetrics = metrics;
|
|
44687
|
+
[componentView finalizeUpdates:RNComponentViewUpdateMaskLayoutMetrics];
|
|
44688
|
+
return jsi::Value::undefined();
|
|
44689
|
+
});
|
|
44690
|
+
// Remove then Delete: the registry recycles the view
|
|
44691
|
+
method("drop", 1, [](jsi::Runtime &, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
44692
|
+
int tag = static_cast<int>(args[0].asNumber());
|
|
44693
|
+
auto &view = fabricView(tag);
|
|
44694
|
+
RCTComponentViewDescriptor descriptor = [fabricRegistry componentViewDescriptorWithTag:tag];
|
|
44695
|
+
[descriptor.view removeFromSuperview];
|
|
44696
|
+
[fabricRegistry enqueueComponentViewWithComponentHandle:view.handle tag:tag componentViewDescriptor:descriptor];
|
|
44697
|
+
fabricViews.erase(tag);
|
|
44698
|
+
return jsi::Value::undefined();
|
|
44699
|
+
});
|
|
44700
|
+
rt.global().setProperty(rt, "peachFabricViews", std::move(views));
|
|
44701
|
+
}
|
|
44702
|
+
|
|
44703
|
+
extern "C" void *peach_fabric_view_content(int tag) {
|
|
44704
|
+
return (__bridge_retained void *)[fabricRegistry componentViewDescriptorWithTag:tag].view;
|
|
44705
|
+
}
|
|
44706
|
+
|
|
44707
|
+
// the component names the host registers as views, newline separated
|
|
44708
|
+
extern "C" __attribute__((export_name("peach_fabric_component_names"))) const char *peachFabricComponentNames() {
|
|
44709
|
+
return fabricNames.c_str();
|
|
44710
|
+
}
|
|
44711
|
+
`;
|
|
44712
|
+
}
|
|
44713
|
+
var import_node_child_process46, import_node_crypto43, import_node_fs84, import_node_path81, import_node_util15, execFileAsync3, TURBO_CORE_TARGET, TURBO_FMT_TARGET, TURBO_ENTRY_HEADER, TURBO_CORE_PUBLIC_HEADERS, REGISTRATION, CODEGEN_OBJC, UNIT, HEADER3, 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, versionParts, iosOf, JS_CALL_INVOKER, FABRIC_HOST_INCLUDES;
|
|
44545
44714
|
var init_turbo_source = __esm({
|
|
44546
44715
|
"src/turbo-source.ts"() {
|
|
44547
44716
|
"use strict";
|
|
44548
|
-
|
|
44717
|
+
import_node_child_process46 = require("node:child_process");
|
|
44549
44718
|
import_node_crypto43 = require("node:crypto");
|
|
44550
44719
|
import_node_fs84 = __toESM(require("node:fs"), 1);
|
|
44551
44720
|
import_node_path81 = __toESM(require("node:path"), 1);
|
|
@@ -44562,7 +44731,7 @@ var init_turbo_source = __esm({
|
|
|
44562
44731
|
init_swift_submit();
|
|
44563
44732
|
init_turbo_codegen_intake();
|
|
44564
44733
|
init_xcode_project();
|
|
44565
|
-
execFileAsync3 = (0, import_node_util15.promisify)(
|
|
44734
|
+
execFileAsync3 = (0, import_node_util15.promisify)(import_node_child_process46.execFile);
|
|
44566
44735
|
TURBO_CORE_TARGET = "TurboCore";
|
|
44567
44736
|
TURBO_FMT_TARGET = "TurboFmt";
|
|
44568
44737
|
TURBO_ENTRY_HEADER = "PeachTurboEntry.hpp";
|
|
@@ -44702,6 +44871,22 @@ class JsCallInvoker final : public react::CallInvoker {
|
|
|
44702
44871
|
std::deque<react::CallFunc> pending;
|
|
44703
44872
|
};
|
|
44704
44873
|
|
|
44874
|
+
`;
|
|
44875
|
+
FABRIC_HOST_INCLUDES = `#import <Foundation/Foundation.h>
|
|
44876
|
+
#import <React/RCTComponentViewFactory.h>
|
|
44877
|
+
#import <React/RCTComponentViewProtocol.h>
|
|
44878
|
+
#import <React/RCTComponentViewRegistry.h>
|
|
44879
|
+
#include <react/renderer/componentregistry/ComponentDescriptorRegistry.h>
|
|
44880
|
+
#include <react/renderer/core/LayoutMetrics.h>
|
|
44881
|
+
#include <react/renderer/core/PropsParserContext.h>
|
|
44882
|
+
#include <react/renderer/core/RawProps.h>
|
|
44883
|
+
#include <react/utils/ContextContainer.h>
|
|
44884
|
+
#include <cstdio>
|
|
44885
|
+
#include <cstdlib>
|
|
44886
|
+
#include <unordered_map>
|
|
44887
|
+
#include <jsi/jsi.h>
|
|
44888
|
+
|
|
44889
|
+
using namespace facebook;
|
|
44705
44890
|
`;
|
|
44706
44891
|
}
|
|
44707
44892
|
});
|
|
@@ -44757,7 +44942,7 @@ function collectTurboCompileInput(collection, runtime, iosDeploymentTarget, depe
|
|
|
44757
44942
|
dependencyTargets = dependencyTargets.filter(
|
|
44758
44943
|
(_, index) => !providerNames.has(parsedTargets[index].name)
|
|
44759
44944
|
);
|
|
44760
|
-
const swift = Object.keys(files2).some((file) => file.endsWith(".swift"));
|
|
44945
|
+
const swift = collection.coreMode === "turbo" || Object.keys(files2).some((file) => file.endsWith(".swift"));
|
|
44761
44946
|
const entry = `Sources/PeachTurboApp/main.${swift ? "swift" : "cpp"}`;
|
|
44762
44947
|
const targetNames = targets.map(({ name: name3 }) => name3);
|
|
44763
44948
|
const loadTargetNames = new Set(collection.loads.map(({ target }) => target));
|
|
@@ -44766,10 +44951,56 @@ function collectTurboCompileInput(collection, runtime, iosDeploymentTarget, depe
|
|
|
44766
44951
|
(file) => file.startsWith(`${target.path}/`) && file.endsWith(".swift")
|
|
44767
44952
|
)
|
|
44768
44953
|
).map(({ name: name3 }) => name3);
|
|
44769
|
-
|
|
44770
|
-
|
|
44771
|
-
|
|
44772
|
-
|
|
44954
|
+
const initialize = [
|
|
44955
|
+
"_PeachReactNativeWindow.launch()",
|
|
44956
|
+
...collection.loads.map(({ symbol: symbol2 }) => `${symbol2}()`),
|
|
44957
|
+
...runtime ? ["peachTurboInitialize()"] : []
|
|
44958
|
+
];
|
|
44959
|
+
const fabric = collection.fabricComponents.length > 0;
|
|
44960
|
+
files2[entry] = swift ? [
|
|
44961
|
+
"import SwiftUI",
|
|
44962
|
+
"import UIKit",
|
|
44963
|
+
"import PeachJSON",
|
|
44964
|
+
...swiftImportedTargetNames.map((target) => `import ${target}`),
|
|
44965
|
+
"",
|
|
44966
|
+
"@main struct PeachTurboApp: PeachPackage {",
|
|
44967
|
+
` init() { ${initialize.join("; ")} }`,
|
|
44968
|
+
...fabric ? [
|
|
44969
|
+
" func view(props: JSON) -> PeachTurboRoot { PeachTurboRoot(props: props) }",
|
|
44970
|
+
"}",
|
|
44971
|
+
"",
|
|
44972
|
+
"struct PeachTurboRoot: View {",
|
|
44973
|
+
" let fabric: Int32?",
|
|
44974
|
+
"",
|
|
44975
|
+
" init(props: JSON) {",
|
|
44976
|
+
' guard case .object(let fields) = props, let field = fields.first(where: { $0.0 == "fabric" }), case .number(let tag) = field.1 else {',
|
|
44977
|
+
" fabric = nil",
|
|
44978
|
+
" return",
|
|
44979
|
+
" }",
|
|
44980
|
+
" fabric = Int32(tag)",
|
|
44981
|
+
" }",
|
|
44982
|
+
"",
|
|
44983
|
+
" var body: some View {",
|
|
44984
|
+
" if let fabric { PeachFabricComponent(tag: fabric) } else { _PeachReactNativeWindow() }",
|
|
44985
|
+
" }",
|
|
44986
|
+
"}",
|
|
44987
|
+
"",
|
|
44988
|
+
"struct PeachFabricComponent: UIViewRepresentable {",
|
|
44989
|
+
" let tag: Int32",
|
|
44990
|
+
"",
|
|
44991
|
+
" func makeUIView(context: Context) -> UIView {",
|
|
44992
|
+
' guard let view = peach_fabric_view_content(tag) else { fatalError("Fabric view \\(tag) is not mounted") }',
|
|
44993
|
+
" return Unmanaged<UIView>.fromOpaque(view).takeRetainedValue()",
|
|
44994
|
+
" }",
|
|
44995
|
+
"",
|
|
44996
|
+
" func updateUIView(_ view: UIView, context: Context) {}",
|
|
44997
|
+
"}"
|
|
44998
|
+
] : [
|
|
44999
|
+
" func view(props: JSON) -> _PeachReactNativeWindow { _PeachReactNativeWindow() }",
|
|
45000
|
+
"}"
|
|
45001
|
+
],
|
|
45002
|
+
""
|
|
45003
|
+
].join("\n") : [
|
|
44773
45004
|
'extern "C" void peachTurboInitialize();',
|
|
44774
45005
|
...collection.loads.map(({ symbol: symbol2 }) => `extern "C" void ${symbol2}();`),
|
|
44775
45006
|
"int main(int argc, char **argv) {",
|
|
@@ -44935,7 +45166,7 @@ async function buildReactNativeCore(project, reactNativeRoot, mode, moduleRoot)
|
|
|
44935
45166
|
import_node_fs85.default.mkdirSync(members2, { recursive: true });
|
|
44936
45167
|
const stripped2 = objects.map((file, index) => {
|
|
44937
45168
|
const output2 = import_node_path83.default.join(members2, `${index}-${import_node_path83.default.basename(file)}`);
|
|
44938
|
-
(0,
|
|
45169
|
+
(0, import_node_child_process47.execFileSync)(import_node_path83.default.join(module2.toolchainBin, "llvm-objcopy"), [
|
|
44939
45170
|
"--strip-debug",
|
|
44940
45171
|
file,
|
|
44941
45172
|
output2
|
|
@@ -44944,7 +45175,7 @@ async function buildReactNativeCore(project, reactNativeRoot, mode, moduleRoot)
|
|
|
44944
45175
|
});
|
|
44945
45176
|
const archive = import_node_path83.default.join(work, `lib${target.name}.a`);
|
|
44946
45177
|
import_node_fs85.default.rmSync(archive, { force: true });
|
|
44947
|
-
(0,
|
|
45178
|
+
(0, import_node_child_process47.execFileSync)(import_node_path83.default.join(module2.toolchainBin, "llvm-ar"), [
|
|
44948
45179
|
"rcsD",
|
|
44949
45180
|
archive,
|
|
44950
45181
|
...stripped2
|
|
@@ -44997,11 +45228,11 @@ async function buildReactNativeCore(project, reactNativeRoot, mode, moduleRoot)
|
|
|
44997
45228
|
return directory2;
|
|
44998
45229
|
});
|
|
44999
45230
|
}
|
|
45000
|
-
var
|
|
45231
|
+
var import_node_child_process47, import_node_fs85, import_node_path83;
|
|
45001
45232
|
var init_react_native_core_build = __esm({
|
|
45002
45233
|
"src/react-native-core-build.ts"() {
|
|
45003
45234
|
"use strict";
|
|
45004
|
-
|
|
45235
|
+
import_node_child_process47 = require("node:child_process");
|
|
45005
45236
|
import_node_fs85 = __toESM(require("node:fs"), 1);
|
|
45006
45237
|
import_node_path83 = __toESM(require("node:path"), 1);
|
|
45007
45238
|
init_home_paths();
|
|
@@ -45135,7 +45366,7 @@ var init_react_native_core = __esm({
|
|
|
45135
45366
|
init_swift_distribution();
|
|
45136
45367
|
init_swift_package();
|
|
45137
45368
|
init_swiftContract();
|
|
45138
|
-
recipe = true ? "
|
|
45369
|
+
recipe = true ? "96416de7238919b274266f095ef4213211a2a26c133d0df7ab5e0459ded52ef1" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
45139
45370
|
strings4 = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
45140
45371
|
building = /* @__PURE__ */ new Map();
|
|
45141
45372
|
}
|
|
@@ -45150,11 +45381,11 @@ module.exports = __toCommonJS(expo_swift_bundle_exports);
|
|
|
45150
45381
|
|
|
45151
45382
|
// src/expo-swift-host.ts
|
|
45152
45383
|
var import_node_async_hooks3 = require("node:async_hooks");
|
|
45153
|
-
var
|
|
45384
|
+
var import_node_child_process48 = require("node:child_process");
|
|
45154
45385
|
var import_node_crypto45 = require("node:crypto");
|
|
45155
45386
|
var import_node_fs87 = __toESM(require("node:fs"), 1);
|
|
45156
45387
|
var import_node_module9 = require("node:module");
|
|
45157
|
-
var
|
|
45388
|
+
var import_node_os19 = __toESM(require("node:os"), 1);
|
|
45158
45389
|
var import_node_path85 = __toESM(require("node:path"), 1);
|
|
45159
45390
|
var import_node_url6 = require("node:url");
|
|
45160
45391
|
var import_node_util17 = require("node:util");
|
|
@@ -48810,7 +49041,7 @@ function getCliVersion() {
|
|
|
48810
49041
|
}
|
|
48811
49042
|
|
|
48812
49043
|
// src/expo-native-workspace.ts
|
|
48813
|
-
var
|
|
49044
|
+
var import_node_child_process35 = require("node:child_process");
|
|
48814
49045
|
var import_node_crypto27 = require("node:crypto");
|
|
48815
49046
|
var import_node_fs59 = __toESM(require("node:fs"), 1);
|
|
48816
49047
|
var import_node_module4 = require("node:module");
|
|
@@ -48913,9 +49144,11 @@ function failedOutputLine(command, cwd, output2) {
|
|
|
48913
49144
|
init_native_git();
|
|
48914
49145
|
|
|
48915
49146
|
// src/one-sdk-preparation.ts
|
|
49147
|
+
var import_node_child_process12 = require("node:child_process");
|
|
48916
49148
|
var import_node_crypto5 = require("node:crypto");
|
|
48917
49149
|
var import_node_fs21 = __toESM(require("node:fs"), 1);
|
|
48918
49150
|
var import_node_module2 = require("node:module");
|
|
49151
|
+
var import_node_os5 = __toESM(require("node:os"), 1);
|
|
48919
49152
|
var import_node_path17 = __toESM(require("node:path"), 1);
|
|
48920
49153
|
var import_node_url2 = require("node:url");
|
|
48921
49154
|
init_native_prebuilt();
|
|
@@ -48936,6 +49169,53 @@ function readOneSDKSourceManifest(value) {
|
|
|
48936
49169
|
}
|
|
48937
49170
|
|
|
48938
49171
|
// src/one-sdk-preparation.ts
|
|
49172
|
+
var GENERATE_SCRIPT = `
|
|
49173
|
+
import { writeFileSync } from 'node:fs'
|
|
49174
|
+
import { pathToFileURL } from 'node:url'
|
|
49175
|
+
const [generatorFile, resultFile, frameworks] = process.argv.slice(1)
|
|
49176
|
+
const generator = await import(pathToFileURL(generatorFile).href)
|
|
49177
|
+
const { files, generation } = await generator.generateAppSdk(JSON.parse(frameworks))
|
|
49178
|
+
writeFileSync(resultFile, JSON.stringify({ generation, files: [...files] }))
|
|
49179
|
+
`;
|
|
49180
|
+
async function generateAppSdkInChild(generatorFile, frameworks) {
|
|
49181
|
+
const directory2 = import_node_fs21.default.mkdtempSync(import_node_path17.default.join(import_node_os5.default.tmpdir(), "peach-one-sdk-"));
|
|
49182
|
+
const resultFile = import_node_path17.default.join(directory2, "result.json");
|
|
49183
|
+
try {
|
|
49184
|
+
const child = (0, import_node_child_process12.spawn)(
|
|
49185
|
+
"node",
|
|
49186
|
+
[
|
|
49187
|
+
"--input-type=module",
|
|
49188
|
+
"-e",
|
|
49189
|
+
GENERATE_SCRIPT,
|
|
49190
|
+
generatorFile,
|
|
49191
|
+
resultFile,
|
|
49192
|
+
JSON.stringify(frameworks)
|
|
49193
|
+
],
|
|
49194
|
+
{ stdio: ["ignore", "ignore", "pipe"] }
|
|
49195
|
+
);
|
|
49196
|
+
let stderr = "";
|
|
49197
|
+
child.stderr.setEncoding("utf8");
|
|
49198
|
+
child.stderr.on("data", (chunk) => {
|
|
49199
|
+
stderr += chunk;
|
|
49200
|
+
});
|
|
49201
|
+
const [status, signal] = await new Promise(
|
|
49202
|
+
(resolve3, reject) => {
|
|
49203
|
+
child.once("error", reject);
|
|
49204
|
+
child.once("close", (code, closeSignal) => resolve3([code, closeSignal]));
|
|
49205
|
+
}
|
|
49206
|
+
);
|
|
49207
|
+
if (status !== 0)
|
|
49208
|
+
throw new Error(
|
|
49209
|
+
`One SDK source generation failed (${signal ?? `exit ${status}`})${stderr ? `: ${stderr.trim().slice(-2e3)}` : ""}`
|
|
49210
|
+
);
|
|
49211
|
+
const result = JSON.parse(
|
|
49212
|
+
import_node_fs21.default.readFileSync(resultFile, "utf8")
|
|
49213
|
+
);
|
|
49214
|
+
return { generation: result.generation, files: new Map(result.files) };
|
|
49215
|
+
} finally {
|
|
49216
|
+
import_node_fs21.default.rmSync(directory2, { recursive: true, force: true });
|
|
49217
|
+
}
|
|
49218
|
+
}
|
|
48939
49219
|
async function selectOneSDK(appRoot) {
|
|
48940
49220
|
const require2 = (0, import_node_module2.createRequire)(import_node_path17.default.join(appRoot, "package.json"));
|
|
48941
49221
|
let onePackage;
|
|
@@ -48992,7 +49272,10 @@ async function prepareOneSDKSources(appRoot, output2) {
|
|
|
48992
49272
|
import_node_fs21.default.copyFileSync(import_node_path17.default.join(published2, name3), import_node_path17.default.join(directory2, name3));
|
|
48993
49273
|
return;
|
|
48994
49274
|
}
|
|
48995
|
-
const generated = await
|
|
49275
|
+
const generated = await generateAppSdkInChild(
|
|
49276
|
+
import_node_path17.default.join(selected.one, "dist/sdk/app.mjs"),
|
|
49277
|
+
selected.frameworks
|
|
49278
|
+
);
|
|
48996
49279
|
if (generated.generation !== generation)
|
|
48997
49280
|
throw new Error("One SDK source generation differs from the installed facades");
|
|
48998
49281
|
import_node_fs21.default.rmSync(directory2, { recursive: true, force: true });
|
|
@@ -49014,9 +49297,9 @@ var import_node_path54 = __toESM(require("node:path"), 1);
|
|
|
49014
49297
|
init_is_record();
|
|
49015
49298
|
|
|
49016
49299
|
// src/native-firebase-config.ts
|
|
49017
|
-
var
|
|
49300
|
+
var import_node_child_process32 = require("node:child_process");
|
|
49018
49301
|
var import_node_fs53 = __toESM(require("node:fs"), 1);
|
|
49019
|
-
var
|
|
49302
|
+
var import_node_os14 = __toESM(require("node:os"), 1);
|
|
49020
49303
|
var import_node_path51 = __toESM(require("node:path"), 1);
|
|
49021
49304
|
init_is_record();
|
|
49022
49305
|
init_plist();
|
|
@@ -49079,13 +49362,13 @@ function readExpoConfigResult(resultPath, status, signal, stderr) {
|
|
|
49079
49362
|
if (!isRecord(resolved)) throw new Error("Expo native configuration is unavailable.");
|
|
49080
49363
|
return resolved;
|
|
49081
49364
|
}
|
|
49082
|
-
var resultDirectory = () => import_node_fs53.default.mkdtempSync(import_node_path51.default.join(
|
|
49365
|
+
var resultDirectory = () => import_node_fs53.default.mkdtempSync(import_node_path51.default.join(import_node_os14.default.tmpdir(), "peach-expo-config-"));
|
|
49083
49366
|
async function readExpoConfigAsync(projectRoot) {
|
|
49084
49367
|
if (!hasExpoConfig(projectRoot)) return {};
|
|
49085
49368
|
const directory2 = resultDirectory();
|
|
49086
49369
|
const resultPath = import_node_path51.default.join(directory2, "config.json");
|
|
49087
49370
|
try {
|
|
49088
|
-
const child = (0,
|
|
49371
|
+
const child = (0, import_node_child_process32.spawn)("node", expoConfigArgs(projectRoot, resultPath), {
|
|
49089
49372
|
cwd: projectRoot,
|
|
49090
49373
|
stdio: ["ignore", "ignore", "pipe"],
|
|
49091
49374
|
timeout: EXPO_CONFIG_TIMEOUT_MS
|
|
@@ -49142,7 +49425,7 @@ function portableInterfaceHash(directory2) {
|
|
|
49142
49425
|
}
|
|
49143
49426
|
|
|
49144
49427
|
// src/prepared-native-inventory.ts
|
|
49145
|
-
var
|
|
49428
|
+
var import_node_child_process33 = require("node:child_process");
|
|
49146
49429
|
var import_node_crypto24 = require("node:crypto");
|
|
49147
49430
|
var import_node_fs55 = __toESM(require("node:fs"), 1);
|
|
49148
49431
|
var import_node_module3 = require("node:module");
|
|
@@ -49162,7 +49445,7 @@ async function preparedNativeInventory(app, selected, signal) {
|
|
|
49162
49445
|
paths: [import_node_path53.default.dirname(require2.resolve("expo/package.json"))]
|
|
49163
49446
|
});
|
|
49164
49447
|
const cli = import_node_path53.default.join(import_node_path53.default.dirname(expo), "bin/expo-modules-autolinking.js");
|
|
49165
|
-
const searched = await (0, import_node_util10.promisify)(
|
|
49448
|
+
const searched = await (0, import_node_util10.promisify)(import_node_child_process33.execFile)(
|
|
49166
49449
|
process.execPath,
|
|
49167
49450
|
[cli, "search", ...autolinkerAppleFlags(expo, app), "--json"],
|
|
49168
49451
|
{
|
|
@@ -49359,6 +49642,7 @@ function workspacePackageManager(root, declared, excluded) {
|
|
|
49359
49642
|
}
|
|
49360
49643
|
var NATIVE_CONFIG_FILE = /(^|\/)(package\.json|bun\.lockb?|package-lock\.json|pnpm-lock\.yaml|pnpm-workspace\.yaml|yarn\.lock|\.yarnrc\.yml|\.npmrc|app\.json|app\.config\.[cm]?[jt]s|Podfile(\.lock|\.properties)?|expo-module\.config\.json|react-native\.config\.[cm]?[jt]s|\.nvmrc|\.tool-versions|\.?mise(?:\.[^/]+)?\.toml)$|\.(podspec|patch|plist|entitlements|xcconfig|pbxproj|storyboard|xib|gradle|rb)$|(^|\/)(plugins|patches)\//;
|
|
49361
49644
|
var NATIVE_SOURCE_FILE2 = /\.(swift|mm?|hpp?|c|cc|cpp|kt|java)$/;
|
|
49645
|
+
var fileDigests = /* @__PURE__ */ new Map();
|
|
49362
49646
|
var NATIVE_PACKAGE_ENTRY = /^(ios|android|.*\.podspec|expo-module\.config\.json|react-native\.config\.[cm]?[jt]s|app\.plugin\.[cm]?js)$/;
|
|
49363
49647
|
async function hashExpoWorkspace(app, signal) {
|
|
49364
49648
|
if (process.platform !== "darwin") {
|
|
@@ -49460,40 +49744,67 @@ async function hashWorkspaceInputs(app, everyByte, signal, sourceOnly = false, p
|
|
|
49460
49744
|
const steersNative = (relative3) => !relative3.includes(import_node_path57.default.sep) || relative3.startsWith(`patches${import_node_path57.default.sep}`) || nativeDirectories.some(
|
|
49461
49745
|
(directory2) => directory2 === "" || relative3 === directory2 || relative3.startsWith(directory2 + import_node_path57.default.sep)
|
|
49462
49746
|
);
|
|
49463
|
-
const
|
|
49464
|
-
|
|
49465
|
-
|
|
49747
|
+
const steps = [];
|
|
49748
|
+
const unread = [];
|
|
49749
|
+
const walk3 = (directory2) => {
|
|
49750
|
+
const entries = import_node_fs59.default.readdirSync(directory2, { withFileTypes: true }).sort((a, b) => a.name.localeCompare(b.name));
|
|
49751
|
+
for (const entry of entries) {
|
|
49466
49752
|
signal?.throwIfAborted();
|
|
49467
49753
|
const file = import_node_path57.default.join(directory2, entry.name);
|
|
49468
49754
|
const relative3 = import_node_path57.default.relative(root, file);
|
|
49469
49755
|
if (excluded(relative3, entry.isDirectory())) continue;
|
|
49470
|
-
hash.update(`${relative3}\0`);
|
|
49756
|
+
steps.push(() => hash.update(`${relative3}\0`));
|
|
49471
49757
|
if (entry.isSymbolicLink()) {
|
|
49472
|
-
const link = `link\0${
|
|
49473
|
-
|
|
49474
|
-
|
|
49758
|
+
const link = `link\0${import_node_fs59.default.readlinkSync(file)}\0`;
|
|
49759
|
+
steps.push(() => {
|
|
49760
|
+
hash.update(link);
|
|
49761
|
+
if (steersNative(relative3)) native.update(`${relative3}\0${link}`);
|
|
49762
|
+
});
|
|
49475
49763
|
} else if (entry.isDirectory()) {
|
|
49476
|
-
hash.update("directory\0");
|
|
49477
|
-
|
|
49764
|
+
steps.push(() => hash.update("directory\0"));
|
|
49765
|
+
walk3(file);
|
|
49478
49766
|
} else if (entry.isFile()) {
|
|
49479
49767
|
const posix = relative3.split(import_node_path57.default.sep).join("/");
|
|
49480
49768
|
if (NATIVE_CONFIG_FILE.test(posix)) {
|
|
49481
|
-
const bytes =
|
|
49482
|
-
|
|
49483
|
-
|
|
49484
|
-
|
|
49485
|
-
|
|
49486
|
-
|
|
49487
|
-
|
|
49488
|
-
hash.update(`file\0${bytes.length}\0`).update(bytes);
|
|
49489
|
-
}
|
|
49490
|
-
if (NATIVE_SOURCE_FILE2.test(posix) && steersNative(relative3))
|
|
49491
|
-
native.update(`${posix}\0`);
|
|
49769
|
+
const bytes = import_node_fs59.default.readFileSync(file);
|
|
49770
|
+
steps.push(() => {
|
|
49771
|
+
if (everyByte) hash.update(`file\0${bytes.length}\0`).update(bytes);
|
|
49772
|
+
if (steersNative(relative3))
|
|
49773
|
+
native.update(`${posix}\0`).update(nativeConfigBytes(posix, bytes));
|
|
49774
|
+
});
|
|
49775
|
+
continue;
|
|
49492
49776
|
}
|
|
49777
|
+
if (everyByte) {
|
|
49778
|
+
const stat = import_node_fs59.default.statSync(file);
|
|
49779
|
+
const known = fileDigests.get(file);
|
|
49780
|
+
const content = known?.ino === stat.ino && known.size === stat.size && known.mtimeMs === stat.mtimeMs && known.ctimeMs === stat.ctimeMs ? known : {
|
|
49781
|
+
ino: stat.ino,
|
|
49782
|
+
size: stat.size,
|
|
49783
|
+
mtimeMs: stat.mtimeMs,
|
|
49784
|
+
ctimeMs: stat.ctimeMs,
|
|
49785
|
+
digest: ""
|
|
49786
|
+
};
|
|
49787
|
+
if (content !== known) unread.push({ file, content });
|
|
49788
|
+
steps.push(() => hash.update(`file\0${content.size}\0${content.digest}`));
|
|
49789
|
+
}
|
|
49790
|
+
if (NATIVE_SOURCE_FILE2.test(posix) && steersNative(relative3))
|
|
49791
|
+
steps.push(() => native.update(`${posix}\0`));
|
|
49493
49792
|
}
|
|
49494
49793
|
}
|
|
49495
49794
|
};
|
|
49496
|
-
|
|
49795
|
+
walk3(root);
|
|
49796
|
+
for (let start = 0; start < unread.length; start += 32) {
|
|
49797
|
+
signal?.throwIfAborted();
|
|
49798
|
+
await Promise.all(
|
|
49799
|
+
unread.slice(start, start + 32).map(async ({ file, content }) => {
|
|
49800
|
+
const bytes = await import_node_fs59.default.promises.readFile(file);
|
|
49801
|
+
content.size = bytes.length;
|
|
49802
|
+
content.digest = (0, import_node_crypto27.createHash)("sha256").update(bytes).digest("hex");
|
|
49803
|
+
fileDigests.set(file, content);
|
|
49804
|
+
})
|
|
49805
|
+
);
|
|
49806
|
+
}
|
|
49807
|
+
for (const step of steps) step();
|
|
49497
49808
|
if (sourceOnly) {
|
|
49498
49809
|
hash.update(`\0${appRelative}\0`);
|
|
49499
49810
|
return {
|
|
@@ -49504,29 +49815,32 @@ async function hashWorkspaceInputs(app, everyByte, signal, sourceOnly = false, p
|
|
|
49504
49815
|
excluded
|
|
49505
49816
|
};
|
|
49506
49817
|
}
|
|
49507
|
-
const execFileAsync4 = (0, import_node_util11.promisify)(
|
|
49508
|
-
const mac = process.platform === "darwin" ? await Promise.all([
|
|
49509
|
-
// runner-toolchain-platform: darwin
|
|
49510
|
-
execFileAsync4("pod", ["--version"], { env: utf8Env, signal }).catch(
|
|
49511
|
-
(cause) => {
|
|
49512
|
-
throw new Error("CocoaPods is required to install source dependencies", {
|
|
49513
|
-
cause
|
|
49514
|
-
});
|
|
49515
|
-
}
|
|
49516
|
-
),
|
|
49517
|
-
// runner-toolchain-platform: darwin
|
|
49518
|
-
execFileAsync4("xcodebuild", ["-version"], { env: utf8Env, signal })
|
|
49519
|
-
]).then(([pod, xcode]) => ({ podVersion: pod.stdout, xcode: xcode.stdout })) : {};
|
|
49818
|
+
const execFileAsync4 = (0, import_node_util11.promisify)(import_node_child_process35.execFile);
|
|
49520
49819
|
const pinnedNode = typeof manifest.engines?.node === "string" && /^\d+(\.\d+){0,2}$/.test(manifest.engines.node) ? `node@${manifest.engines.node}` : null;
|
|
49820
|
+
const [mac, node] = await Promise.all([
|
|
49821
|
+
process.platform === "darwin" ? Promise.all([
|
|
49822
|
+
// runner-toolchain-platform: darwin
|
|
49823
|
+
execFileAsync4("pod", ["--version"], { env: utf8Env, signal }).catch(
|
|
49824
|
+
(cause) => {
|
|
49825
|
+
throw new Error("CocoaPods is required to install source dependencies", {
|
|
49826
|
+
cause
|
|
49827
|
+
});
|
|
49828
|
+
}
|
|
49829
|
+
),
|
|
49830
|
+
// runner-toolchain-platform: darwin
|
|
49831
|
+
execFileAsync4("xcodebuild", ["-version"], { env: utf8Env, signal })
|
|
49832
|
+
]).then(([pod, xcode]) => ({ podVersion: pod.stdout, xcode: xcode.stdout })) : {},
|
|
49833
|
+
execFileAsync4(
|
|
49834
|
+
pinnedNode ? "mise" : "node",
|
|
49835
|
+
pinnedNode ? ["exec", pinnedNode, "--", "node", "--version"] : ["--version"],
|
|
49836
|
+
{ cwd: root, signal }
|
|
49837
|
+
)
|
|
49838
|
+
]);
|
|
49521
49839
|
const toolchain = JSON.stringify({
|
|
49522
49840
|
preparation: 7,
|
|
49523
49841
|
appRelative,
|
|
49524
49842
|
...mac,
|
|
49525
|
-
node: (
|
|
49526
|
-
pinnedNode ? "mise" : "node",
|
|
49527
|
-
pinnedNode ? ["exec", pinnedNode, "--", "node", "--version"] : ["--version"],
|
|
49528
|
-
{ cwd: root, signal }
|
|
49529
|
-
)).stdout.trim(),
|
|
49843
|
+
node: node.stdout.trim(),
|
|
49530
49844
|
packageManager: workspacePackageManager(root, manifest.packageManager, excluded),
|
|
49531
49845
|
podsEnvironment
|
|
49532
49846
|
});
|
|
@@ -49720,7 +50034,7 @@ async function copyInstalledWorkspace(root, destination, excluded) {
|
|
|
49720
50034
|
});
|
|
49721
50035
|
if (process.platform === "darwin") {
|
|
49722
50036
|
await new Promise((resolve3, reject) => {
|
|
49723
|
-
const child = (0,
|
|
50037
|
+
const child = (0, import_node_child_process35.execFile)(
|
|
49724
50038
|
compiledSwiftHelper(CLONE_SWIFT, "peach-clone-entries"),
|
|
49725
50039
|
(error) => error ? reject(error) : resolve3()
|
|
49726
50040
|
);
|
|
@@ -49736,7 +50050,7 @@ async function copyInstalledWorkspace(root, destination, excluded) {
|
|
|
49736
50050
|
const clone = async () => {
|
|
49737
50051
|
const relative3 = entries.pop();
|
|
49738
50052
|
if (relative3 === void 0) return;
|
|
49739
|
-
await (0, import_node_util11.promisify)(
|
|
50053
|
+
await (0, import_node_util11.promisify)(import_node_child_process35.execFile)("cp", [
|
|
49740
50054
|
"-R",
|
|
49741
50055
|
"-p",
|
|
49742
50056
|
import_node_path57.default.join(root, relative3),
|
|
@@ -49760,7 +50074,7 @@ function nativeWorkspacesDir(root) {
|
|
|
49760
50074
|
return import_node_path57.default.join(mount, ".peach-cache", "expo-native-workspaces");
|
|
49761
50075
|
}
|
|
49762
50076
|
function trackedSourceEntries(root, work) {
|
|
49763
|
-
const listed = (0,
|
|
50077
|
+
const listed = (0, import_node_child_process35.spawnSync)("git", ["ls-files", "--stage", "-z"], {
|
|
49764
50078
|
cwd: root,
|
|
49765
50079
|
env: { ...process.env, ...isolatedGitEnv },
|
|
49766
50080
|
maxBuffer: 256 * 1024 * 1024
|
|
@@ -49774,8 +50088,8 @@ function trackedSourceEntries(root, work) {
|
|
|
49774
50088
|
function initializeWorkspaceGit(root, work) {
|
|
49775
50089
|
requireNativeGit();
|
|
49776
50090
|
const env = { ...process.env, ...isolatedGitEnv };
|
|
49777
|
-
(0,
|
|
49778
|
-
(0,
|
|
50091
|
+
(0, import_node_child_process35.execFileSync)("git", ["init", "--quiet"], { cwd: work, env });
|
|
50092
|
+
(0, import_node_child_process35.execFileSync)(
|
|
49779
50093
|
"git",
|
|
49780
50094
|
[
|
|
49781
50095
|
"-c",
|
|
@@ -49795,7 +50109,7 @@ function initializeWorkspaceGit(root, work) {
|
|
|
49795
50109
|
);
|
|
49796
50110
|
const tracked = trackedSourceEntries(root, work);
|
|
49797
50111
|
if (tracked.length > 0)
|
|
49798
|
-
(0,
|
|
50112
|
+
(0, import_node_child_process35.execFileSync)("git", ["update-index", "-z", "--index-info"], {
|
|
49799
50113
|
cwd: work,
|
|
49800
50114
|
env,
|
|
49801
50115
|
input: tracked.join("\0")
|
|
@@ -49851,7 +50165,7 @@ async function prepareWorkspace(app, stage, key2, podsEnvironment) {
|
|
|
49851
50165
|
}
|
|
49852
50166
|
const trustedConfigs = /* @__PURE__ */ new Set();
|
|
49853
50167
|
for (const cwd of [root, app]) {
|
|
49854
|
-
const result2 = (0,
|
|
50168
|
+
const result2 = (0, import_node_child_process35.spawnSync)("mise", ["config", "ls", "--json"], {
|
|
49855
50169
|
cwd,
|
|
49856
50170
|
encoding: "utf8"
|
|
49857
50171
|
});
|
|
@@ -49894,7 +50208,7 @@ async function prepareWorkspace(app, stage, key2, podsEnvironment) {
|
|
|
49894
50208
|
const command = [...prefix, ...args];
|
|
49895
50209
|
await run8(command[0], command.slice(1), cwd, env);
|
|
49896
50210
|
};
|
|
49897
|
-
const installedBun = manager.startsWith("bun@") ? (0,
|
|
50211
|
+
const installedBun = manager.startsWith("bun@") ? (0, import_node_child_process35.spawnSync)(bunExecutable, ["--version"], { encoding: "utf8" }) : null;
|
|
49898
50212
|
if (manager.startsWith("bun@") && (installedBun?.status !== 0 || installedBun.stdout.trim() !== manager.slice(4)))
|
|
49899
50213
|
await execute(
|
|
49900
50214
|
[
|
|
@@ -50013,7 +50327,7 @@ function stageCachedQuickCryptoOpenSsl(app) {
|
|
|
50013
50327
|
return;
|
|
50014
50328
|
import_node_fs59.default.rmSync(opensslDir, { recursive: true, force: true });
|
|
50015
50329
|
import_node_fs59.default.mkdirSync(opensslDir, { recursive: true });
|
|
50016
|
-
(0,
|
|
50330
|
+
(0, import_node_child_process35.execFileSync)("unzip", ["-q", "-o", archive, "-d", opensslDir]);
|
|
50017
50331
|
}
|
|
50018
50332
|
async function runAdmitted(lease, command, args, cwd, extraEnv) {
|
|
50019
50333
|
const admitted = teamMachineInstalled();
|
|
@@ -50111,7 +50425,7 @@ async function expoDiscoveryKey(options) {
|
|
|
50111
50425
|
const key2 = (0, import_node_crypto28.createHash)("sha256").update(`${peachPin()}\0${hash}\0`).update(`${stable2(JSON.parse(options.searchText))}\0`).update(`${stable2(options.configuration)}\0`).update(stable2(JSON.parse(options.resolveText))).digest("hex");
|
|
50112
50426
|
return { key: key2, root };
|
|
50113
50427
|
}
|
|
50114
|
-
function
|
|
50428
|
+
function expoDiscoveryCacheDir() {
|
|
50115
50429
|
return import_node_path58.default.join(sharedCacheDir(import_node_path58.default.join(ambientHomeDir(), "cache")), "expo-discovery");
|
|
50116
50430
|
}
|
|
50117
50431
|
var EXPIRY_MS = 7 * 24 * 36e5;
|
|
@@ -50154,7 +50468,7 @@ function isStoredUnit(value) {
|
|
|
50154
50468
|
}
|
|
50155
50469
|
function readExpoDiscovery(key2) {
|
|
50156
50470
|
let parsed;
|
|
50157
|
-
const record2 = import_node_path58.default.join(
|
|
50471
|
+
const record2 = import_node_path58.default.join(expoDiscoveryCacheDir(), `${key2}.json`);
|
|
50158
50472
|
try {
|
|
50159
50473
|
parsed = JSON.parse(import_node_fs60.default.readFileSync(record2, "utf8"));
|
|
50160
50474
|
} catch {
|
|
@@ -50183,7 +50497,7 @@ function readExpoDiscovery(key2) {
|
|
|
50183
50497
|
const read = (digest3) => {
|
|
50184
50498
|
const known = blobs.get(digest3);
|
|
50185
50499
|
if (known !== void 0) return known;
|
|
50186
|
-
const blob = import_node_path58.default.join(
|
|
50500
|
+
const blob = import_node_path58.default.join(expoDiscoveryCacheDir(), "blobs", digest3);
|
|
50187
50501
|
const body = import_node_fs60.default.readFileSync(blob, "utf8");
|
|
50188
50502
|
if ((0, import_node_crypto28.createHash)("sha256").update(body).digest("hex") !== digest3)
|
|
50189
50503
|
throw new Error("discovery blob differs from its digest");
|
|
@@ -50231,7 +50545,7 @@ var fileHashes = /* @__PURE__ */ new Map();
|
|
|
50231
50545
|
var fileHashesLoaded = false;
|
|
50232
50546
|
var fileHashesChanged = false;
|
|
50233
50547
|
function fileHashesPath() {
|
|
50234
|
-
return import_node_path58.default.join(
|
|
50548
|
+
return import_node_path58.default.join(expoDiscoveryCacheDir(), "framework-file-hashes.json");
|
|
50235
50549
|
}
|
|
50236
50550
|
function stampedFileHash(file) {
|
|
50237
50551
|
if (!fileHashesLoaded) {
|
|
@@ -50410,7 +50724,7 @@ function rewritePreparedPaths(options) {
|
|
|
50410
50724
|
frameworkDependencies[sourceDir] = sourceDigest;
|
|
50411
50725
|
let portableDir = sourceDir;
|
|
50412
50726
|
if (preparedDigest !== sourceDigest) {
|
|
50413
|
-
const parent = import_node_path58.default.join(
|
|
50727
|
+
const parent = import_node_path58.default.join(expoDiscoveryCacheDir(), "frameworks", preparedDigest);
|
|
50414
50728
|
portableDir = import_node_path58.default.join(parent, import_node_path58.default.basename(dir));
|
|
50415
50729
|
if (!import_node_fs60.default.existsSync(portableDir)) {
|
|
50416
50730
|
import_node_fs60.default.mkdirSync(parent, { recursive: true });
|
|
@@ -50441,7 +50755,7 @@ function rewritePreparedPaths(options) {
|
|
|
50441
50755
|
}
|
|
50442
50756
|
function writeExpoDiscovery(options) {
|
|
50443
50757
|
try {
|
|
50444
|
-
const dir =
|
|
50758
|
+
const dir = expoDiscoveryCacheDir();
|
|
50445
50759
|
import_node_fs60.default.mkdirSync(dir, { recursive: true });
|
|
50446
50760
|
const tmp = import_node_path58.default.join(dir, `.${options.key}.${process.pid}.${(0, import_node_crypto28.randomUUID)()}.tmp`);
|
|
50447
50761
|
if (options.units === null) {
|
|
@@ -50615,7 +50929,7 @@ init_swift_native_pin();
|
|
|
50615
50929
|
init_xcode_project();
|
|
50616
50930
|
var EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
50617
50931
|
function expoNativeCompilerDigestValue() {
|
|
50618
|
-
return true ? "
|
|
50932
|
+
return true ? "2a7438510b7fddb608c748003fbaa32b5c765b3782603cb2e309e2729ddbb4aa" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
50619
50933
|
}
|
|
50620
50934
|
var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
50621
50935
|
function readSources(value) {
|
|
@@ -51427,7 +51741,7 @@ init_swift_standins();
|
|
|
51427
51741
|
init_swift_submit();
|
|
51428
51742
|
init_swift_toolchain();
|
|
51429
51743
|
init_turbo_source();
|
|
51430
|
-
var run7 = (0, import_node_util17.promisify)(
|
|
51744
|
+
var run7 = (0, import_node_util17.promisify)(import_node_child_process48.execFile);
|
|
51431
51745
|
var scriptEnv = { ...process.env, [PEACH_FORKED_SCRIPT_ENV]: "1" };
|
|
51432
51746
|
var EXPO_SWIFT_ENTRY = "Sources/PeachExpoApp/PeachExpoEntry.swift";
|
|
51433
51747
|
var WITNESS_BATCH = 200;
|
|
@@ -51563,7 +51877,9 @@ function installSwiftInputTrace() {
|
|
|
51563
51877
|
import_node_path85.default.join(swiftCacheDir(), "swift-builds"),
|
|
51564
51878
|
import_node_path85.default.join(swiftCacheDir(), "swift-sdk-views"),
|
|
51565
51879
|
swiftRootLocksDir(),
|
|
51566
|
-
import_node_path85.default.join(cacheDir(), "swift-tmp")
|
|
51880
|
+
import_node_path85.default.join(cacheDir(), "swift-tmp"),
|
|
51881
|
+
// content-addressed records whose reads renew their timestamps for expiry.
|
|
51882
|
+
expoDiscoveryCacheDir()
|
|
51567
51883
|
].filter((prefix, index, all) => all.indexOf(prefix) === index);
|
|
51568
51884
|
ignoredRoots = prefixes.flatMap((root) => {
|
|
51569
51885
|
try {
|
|
@@ -51669,11 +51985,13 @@ async function witnessMatches(witness) {
|
|
|
51669
51985
|
return true;
|
|
51670
51986
|
}
|
|
51671
51987
|
async function discoveryKey(root, installedWorkspace, prepareNative, iosTarget, moduleRoot) {
|
|
51672
|
-
const
|
|
51988
|
+
const preparesWorkspace = prepareNative && !installedWorkspace && nativeWorkspaceAvailable();
|
|
51989
|
+
const [config, expoConfig, workspace] = await Promise.all([
|
|
51673
51990
|
loadRNXAppConfig(resolveAppProject(root)),
|
|
51674
|
-
readExpoConfigAsync(root)
|
|
51991
|
+
readExpoConfigAsync(root),
|
|
51992
|
+
preparesWorkspace ? traceStore.exit(() => hashExpoWorkspace(root)) : null
|
|
51675
51993
|
]);
|
|
51676
|
-
return `${import_node_fs87.default.realpathSync(root)}\0${installedWorkspace ?? ""}\0${iosTarget ?? ""}\0${moduleRoot ?? ""}\0${prepareNative ? "1" : "0"}\0${JSON.stringify(config)}\0${JSON.stringify(expoConfig)}`;
|
|
51994
|
+
return `${import_node_fs87.default.realpathSync(root)}\0${installedWorkspace ?? ""}\0${iosTarget ?? ""}\0${moduleRoot ?? ""}\0${prepareNative ? "1" : "0"}\0${JSON.stringify(config)}\0${JSON.stringify(expoConfig)}\0${workspace?.hash ?? ""}`;
|
|
51677
51995
|
}
|
|
51678
51996
|
function cloneNativeTarget(target) {
|
|
51679
51997
|
return {
|
|
@@ -52956,7 +53274,11 @@ function expoEntry(units, oneSDK = false) {
|
|
|
52956
53274
|
(unit2) => Object.keys(unit2.files).some((file) => file.startsWith(`Sources/${namespace}/`))
|
|
52957
53275
|
)
|
|
52958
53276
|
);
|
|
52959
|
-
const bridgeModules = units.flatMap(
|
|
53277
|
+
const bridgeModules = units.flatMap(
|
|
53278
|
+
(unit2) => unit2.bridgeModules.map(
|
|
53279
|
+
(registration) => registration === `${unit2.namespace}.__peachReactModule_${unit2.namespace}()` ? registration.slice(unit2.namespace.length + 1) : registration
|
|
53280
|
+
)
|
|
53281
|
+
);
|
|
52960
53282
|
const subscribers = units.flatMap((unit2) => unit2.appDelegateSubscribers);
|
|
52961
53283
|
const handlers = units.flatMap((unit2) => unit2.reactDelegateHandlers);
|
|
52962
53284
|
const delegates = subscribers.length + handlers.length > 0 ? `; PeachExpoRuntime.registerDelegates(subscribers: [${subscribers.join(", ")}], handlers: [${handlers.join(", ")}])` : "";
|
|
@@ -53023,7 +53345,7 @@ function expoUnitAppPaths(unit2) {
|
|
|
53023
53345
|
});
|
|
53024
53346
|
}
|
|
53025
53347
|
function expoSwiftPackage(appKey, name3) {
|
|
53026
|
-
return import_node_path85.default.join(
|
|
53348
|
+
return import_node_path85.default.join(import_node_os19.default.tmpdir(), "peach-expo-swift", appKey, `p${process.pid}`, name3);
|
|
53027
53349
|
}
|
|
53028
53350
|
var ExpoSwiftLinkRefusal = class extends Error {
|
|
53029
53351
|
};
|