peachsim 0.1.1963 → 0.1.1965
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +194 -49
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +192 -48
- 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 +193 -49
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +3 -3
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +3 -3
- package/dist-lib/native-app-identity-project.cjs +3 -3
- package/dist-lib/native-app-identity-project.mjs +3 -3
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -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 +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +194 -49
- package/dist-lib/swift-compile.cjs +2 -2
- package/dist-lib/swift-compile.mjs +2 -2
- 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 +6 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +191 -47
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/package.json +1 -1
- package/src/swift-objc-standin.ts +3 -4
- package/src/swift-packages.ts +13 -1
- package/src/swift-standin-emit.ts +16 -3
- package/src/swift-standins.ts +188 -33
- package/src/swift-toolchain.ts +6 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1965 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1965 | (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 __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1965 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1965 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1965 | (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 __defProp = Object.defineProperty;
|
package/dist-lib/beta.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1965 | (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 __defProp = Object.defineProperty;
|
package/dist-lib/beta.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1965 | (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 __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1965 | (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 __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1965 | (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 __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1965 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -39,7 +39,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
39
39
|
var define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
|
|
40
40
|
var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
|
|
41
41
|
"<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
|
|
42
|
-
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "0b82b3773f9c0b27636f277d9c123b3e631b9c9980995d67d67efa6b3176df4a", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "
|
|
42
|
+
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "0b82b3773f9c0b27636f277d9c123b3e631b9c9980995d67d67efa6b3176df4a", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "05c0959ec7458f26e96bb0a18e01dd196e19e087c1c71e031ce0707d2494287d", "home-paths.ts": "af600a7f017474946ede726320a133d830e77e4e287b043d4fea026a945ce748", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "c126efdce870c1953833ec9c32d66b15bbe422ab2a31b7531be3e278edbc9737", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -17440,6 +17440,9 @@ function processRuns(pid) {
|
|
|
17440
17440
|
return error instanceof Error && "code" in error && error.code === "EPERM";
|
|
17441
17441
|
}
|
|
17442
17442
|
}
|
|
17443
|
+
function withoutCoreDump(file, args) {
|
|
17444
|
+
return ["/bin/sh", ["-c", 'ulimit -c 0; exec "$@"', "sh", file, ...args]];
|
|
17445
|
+
}
|
|
17443
17446
|
function swiftEnvironment(base = process.env) {
|
|
17444
17447
|
return {
|
|
17445
17448
|
...base,
|
|
@@ -18479,7 +18482,12 @@ function splitTopLevel(text6, separator) {
|
|
|
18479
18482
|
function emitSwiftStandin(sourceGraphs, options) {
|
|
18480
18483
|
const imported = new Set(options.imports);
|
|
18481
18484
|
const importedTypeModules = options.importedTypeModules ?? /* @__PURE__ */ new Map();
|
|
18482
|
-
const
|
|
18485
|
+
const ownIds = new Set(
|
|
18486
|
+
sourceGraphs.flatMap(
|
|
18487
|
+
(graph) => graph.symbols.map((symbol2) => symbol2.identifier.precise)
|
|
18488
|
+
)
|
|
18489
|
+
);
|
|
18490
|
+
const graphs = [...sourceGraphs, ...options.dependencyGraphs ?? []].map(
|
|
18483
18491
|
(graph) => qualifyImportedTypes(graph, imported, importedTypeModules)
|
|
18484
18492
|
);
|
|
18485
18493
|
const nativeObjcProtocols = objcProtocolsInSwiftSignatures(graphs);
|
|
@@ -19063,7 +19071,8 @@ function emitSwiftStandin(sourceGraphs, options) {
|
|
|
19063
19071
|
)
|
|
19064
19072
|
].filter((name3, at, all2) => all2.indexOf(name3) === at);
|
|
19065
19073
|
const parentSymbol = superId.has(id) ? byId.get(superId.get(id)) : void 0;
|
|
19066
|
-
if (!parentSymbol
|
|
19074
|
+
if (!parentSymbol || !ownIds.has(parentSymbol.identifier.precise))
|
|
19075
|
+
list2.push(standinMarker);
|
|
19067
19076
|
const open = symbol2.accessLevel === "open" && (!parentSymbol || parentSymbol.accessLevel === "open");
|
|
19068
19077
|
const objcName = /^c:objc\(cs\)(\w+)$/.exec(id)?.[1];
|
|
19069
19078
|
emit(
|
|
@@ -19413,7 +19422,9 @@ function emitSwiftStandin(sourceGraphs, options) {
|
|
|
19413
19422
|
return match ? [`${match[1]}|${LEADING_ATTRS.exec(text(symbol2))[2]}`] : [];
|
|
19414
19423
|
})
|
|
19415
19424
|
);
|
|
19416
|
-
const roots = [...byId.values()].filter(
|
|
19425
|
+
const roots = [...byId.values()].filter(
|
|
19426
|
+
(symbol2) => ownIds.has(symbol2.identifier.precise) && !owner.has(symbol2.identifier.precise) && !unavailable(symbol2)
|
|
19427
|
+
).filter((symbol2) => {
|
|
19417
19428
|
const name3 = /^c:@M@[^@]+@F@([^@]+)$/.exec(symbol2.identifier.precise)?.[1];
|
|
19418
19429
|
return !name3 || !cExports.has(`${name3}|${text(symbol2)}`);
|
|
19419
19430
|
}).sort((a, b) => pathOf(a).localeCompare(pathOf(b)));
|
|
@@ -19425,6 +19436,7 @@ function emitSwiftStandin(sourceGraphs, options) {
|
|
|
19425
19436
|
for (const [name3, members2] of [...external].sort(([a], [b]) => a.localeCompare(b))) {
|
|
19426
19437
|
const seen = /* @__PURE__ */ new Set();
|
|
19427
19438
|
const kept = members2.filter((member) => {
|
|
19439
|
+
if (!ownIds.has(member.identifier.precise)) return false;
|
|
19428
19440
|
const key2 = `${member.kind.identifier}|${text(member)}`;
|
|
19429
19441
|
if (unavailable(member) || seen.has(key2)) return false;
|
|
19430
19442
|
seen.add(key2);
|
|
@@ -20070,8 +20082,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
|
|
|
20070
20082
|
import_node_fs29.default.rmSync(out, { recursive: true, force: true });
|
|
20071
20083
|
import_node_fs29.default.mkdirSync(out, { recursive: true });
|
|
20072
20084
|
const run11 = (0, import_node_child_process13.spawnSync)(
|
|
20073
|
-
import_node_path27.default.join(toolchainBin, "swift-symbolgraph-extract"),
|
|
20074
|
-
[
|
|
20085
|
+
...withoutCoreDump(import_node_path27.default.join(toolchainBin, "swift-symbolgraph-extract"), [
|
|
20075
20086
|
"-module-name",
|
|
20076
20087
|
surface.module,
|
|
20077
20088
|
"-target",
|
|
@@ -20091,7 +20102,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
|
|
|
20091
20102
|
"-omit-extension-block-symbols",
|
|
20092
20103
|
"-output-dir",
|
|
20093
20104
|
out
|
|
20094
|
-
],
|
|
20105
|
+
]),
|
|
20095
20106
|
{ encoding: "utf8", env: swiftEnvironment(), maxBuffer: 256 * 1024 * 1024 }
|
|
20096
20107
|
);
|
|
20097
20108
|
if (run11.error) throw run11.error;
|
|
@@ -32653,7 +32664,7 @@ var init_swift_compile = __esm({
|
|
|
32653
32664
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
32654
32665
|
MULTI_MANIFEST_VERSION = 66;
|
|
32655
32666
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
32656
|
-
compilerSourceDigest = true ? "
|
|
32667
|
+
compilerSourceDigest = true ? "777d4db5d7a8d74f3fc33c50d60c04b62ad2fdce4bce2e2eec8c4e358d61ce92" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
32657
32668
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
32658
32669
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
32659
32670
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -38440,7 +38451,7 @@ var init_swift_standin_digest = __esm({
|
|
|
38440
38451
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
38441
38452
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
38442
38453
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
38443
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
38454
|
+
STANDIN_SOURCE_DIGEST = true ? "a7e1ecaaff6c8861c337b5c6049d14450807f5be059d246ba06f5abd6384bfe7" : standinSourceDigest();
|
|
38444
38455
|
}
|
|
38445
38456
|
});
|
|
38446
38457
|
|
|
@@ -38930,7 +38941,7 @@ var init_expo_native_prebuilt = __esm({
|
|
|
38930
38941
|
init_swift_native_pin();
|
|
38931
38942
|
init_xcode_project();
|
|
38932
38943
|
EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
38933
|
-
EXPO_NATIVE_COMPILER_DIGEST = true ? "
|
|
38944
|
+
EXPO_NATIVE_COMPILER_DIGEST = true ? "ab9c7903d2e3e389e43c53ecfe515193e8c405cf1fef52b82d78ff570dc3ea8e" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
38934
38945
|
IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
38935
38946
|
expoNativeEntryUrl = (key2, file) => `${NATIVE_PREBUILT_ORIGIN}/${nativeEntryPrefix("expo", EXPO_NATIVE_ENTRY_NAME, key2)}/${file}`;
|
|
38936
38947
|
isStringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
@@ -39769,6 +39780,11 @@ function resolveSwiftPackages(options) {
|
|
|
39769
39780
|
if (claimed.has(key2)) return true;
|
|
39770
39781
|
const target = pkg.manifest.targets.get(name3);
|
|
39771
39782
|
if (!target || target.type !== "regular" || placeholderPackage(pkg)) return false;
|
|
39783
|
+
const files2 = swiftTargetFiles(pkg.manifest, target);
|
|
39784
|
+
if (files2.every(
|
|
39785
|
+
(file) => file.endsWith(".swift") && import_node_fs66.default.readFileSync(file, "utf8").trim() === ""
|
|
39786
|
+
))
|
|
39787
|
+
return false;
|
|
39772
39788
|
claimed.add(key2);
|
|
39773
39789
|
provided.delete(name3);
|
|
39774
39790
|
for (const dependency of target.dependencies) {
|
|
@@ -39876,7 +39892,7 @@ function resolveSwiftPackages(options) {
|
|
|
39876
39892
|
if (provided.has(name3) && placeholderPackage(pkg)) return;
|
|
39877
39893
|
for (const dependency of pkg.manifest.targets.get(name3)?.dependencies ?? []) {
|
|
39878
39894
|
if (dependency.kind === "target") visit3(pkg, dependency.name);
|
|
39879
|
-
else {
|
|
39895
|
+
else if (!provided.has(dependency.name)) {
|
|
39880
39896
|
const nested = dependencyPackage(pkg, dependency);
|
|
39881
39897
|
if (nested && typeof nested !== "string")
|
|
39882
39898
|
for (const root of nested.manifest.products.get(dependency.name)?.targets ?? [])
|
|
@@ -39885,6 +39901,7 @@ function resolveSwiftPackages(options) {
|
|
|
39885
39901
|
}
|
|
39886
39902
|
};
|
|
39887
39903
|
for (const { product, source } of listed) {
|
|
39904
|
+
if (provided.has(product)) continue;
|
|
39888
39905
|
const pkg = source.kind === "unnamed" ? unnamed(source, product) : packages.get(sourceKey(source));
|
|
39889
39906
|
if (!pkg || typeof pkg === "string") continue;
|
|
39890
39907
|
for (const root of pkg.manifest.products.get(product)?.targets ?? [])
|
|
@@ -40709,11 +40726,11 @@ ${uikit}${body}`
|
|
|
40709
40726
|
function binaryHeaderSearchPaths(binary2, root, declaredFrameworks) {
|
|
40710
40727
|
const artifact = xcframework(binary2);
|
|
40711
40728
|
const slice = simulatorSlice(artifact.dir);
|
|
40712
|
-
const found = surfaces(artifact.dir, slice);
|
|
40729
|
+
const found = surfaces(artifact.dir, binary2.target, slice);
|
|
40713
40730
|
const frameworks = [
|
|
40714
40731
|
...new Set(
|
|
40715
40732
|
found.flatMap(
|
|
40716
|
-
(surface) => "modulemap" in surface && import_node_path69.default.basename(import_node_path69.default.dirname(surface.modulemap)) === "Modules" ? [import_node_path69.default.dirname(
|
|
40733
|
+
(surface) => "modulemap" in surface && import_node_path69.default.basename(import_node_path69.default.dirname(surface.modulemap)) === "Modules" ? [import_node_path69.default.dirname(surface.headers)] : []
|
|
40717
40734
|
)
|
|
40718
40735
|
)
|
|
40719
40736
|
];
|
|
@@ -40778,8 +40795,21 @@ function binaryHeaderSearchPaths(binary2, root, declaredFrameworks) {
|
|
|
40778
40795
|
import_node_path69.default.join(pending, "frameworks", import_node_path69.default.basename(framework), part),
|
|
40779
40796
|
{ recursive: true, dereference: true }
|
|
40780
40797
|
);
|
|
40798
|
+
const surface = found.find(
|
|
40799
|
+
(item) => "headers" in item && import_node_path69.default.dirname(item.headers) === framework
|
|
40800
|
+
);
|
|
40801
|
+
if (surface && "modulemap" in surface) {
|
|
40802
|
+
const modules = import_node_path69.default.join(
|
|
40803
|
+
pending,
|
|
40804
|
+
"frameworks",
|
|
40805
|
+
import_node_path69.default.basename(framework),
|
|
40806
|
+
"Modules"
|
|
40807
|
+
);
|
|
40808
|
+
import_node_fs70.default.mkdirSync(modules, { recursive: true });
|
|
40809
|
+
import_node_fs70.default.copyFileSync(surface.modulemap, import_node_path69.default.join(modules, "module.modulemap"));
|
|
40810
|
+
}
|
|
40781
40811
|
}
|
|
40782
|
-
for (const [index, directory2] of headers.entries())
|
|
40812
|
+
for (const [index, directory2] of headers.entries()) {
|
|
40783
40813
|
import_node_fs70.default.cpSync(directory2, import_node_path69.default.join(pending, "headers", String(index)), {
|
|
40784
40814
|
recursive: true,
|
|
40785
40815
|
dereference: true,
|
|
@@ -40787,6 +40817,15 @@ function binaryHeaderSearchPaths(binary2, root, declaredFrameworks) {
|
|
|
40787
40817
|
filter: (source) => import_node_fs70.default.statSync(source).isDirectory() ? import_node_path69.default.dirname(source) !== directory2 || !import_node_path69.default.basename(source).startsWith("ios-") : !isBinaryLibraryFile(source)
|
|
40788
40818
|
} : {}
|
|
40789
40819
|
});
|
|
40820
|
+
const surface = found.find(
|
|
40821
|
+
(item) => "headers" in item && item.headers === directory2
|
|
40822
|
+
);
|
|
40823
|
+
if (surface && "modulemap" in surface)
|
|
40824
|
+
import_node_fs70.default.copyFileSync(
|
|
40825
|
+
surface.modulemap,
|
|
40826
|
+
import_node_path69.default.join(pending, "headers", String(index), "module.modulemap")
|
|
40827
|
+
);
|
|
40828
|
+
}
|
|
40790
40829
|
const contents = (0, import_node_crypto36.createHash)("sha256");
|
|
40791
40830
|
for (const relative4 of import_node_fs70.default.readdirSync(pending, { recursive: true, encoding: "utf8" }).sort()) {
|
|
40792
40831
|
const file = import_node_path69.default.join(pending, relative4);
|
|
@@ -40840,7 +40879,7 @@ function simulatorSlice(xcframeworkDir) {
|
|
|
40840
40879
|
const slice = import_node_fs70.default.readdirSync(xcframeworkDir).filter((name3) => /^ios-.+-simulator$/.test(name3)).sort()[0];
|
|
40841
40880
|
return slice ? import_node_path69.default.join(xcframeworkDir, slice) : null;
|
|
40842
40881
|
}
|
|
40843
|
-
function surfaces(xcframeworkDir, slice = simulatorSlice(xcframeworkDir)) {
|
|
40882
|
+
function surfaces(xcframeworkDir, target, slice = simulatorSlice(xcframeworkDir)) {
|
|
40844
40883
|
const standaloneMap = import_node_path69.default.join(xcframeworkDir, "module.modulemap");
|
|
40845
40884
|
if (import_node_fs70.default.existsSync(standaloneMap)) {
|
|
40846
40885
|
const module2 = moduleMapName(import_node_fs70.default.readFileSync(standaloneMap, "utf8"));
|
|
@@ -40861,7 +40900,16 @@ function surfaces(xcframeworkDir, slice = simulatorSlice(xcframeworkDir)) {
|
|
|
40861
40900
|
(name3) => name3.endsWith(".swiftinterface") && !name3.endsWith(".private.swiftinterface") && !name3.endsWith(".package.swiftinterface")
|
|
40862
40901
|
);
|
|
40863
40902
|
const chosen = interfaces.find((name3) => name3.startsWith("arm64-")) ?? interfaces[0] ?? null;
|
|
40864
|
-
|
|
40903
|
+
let modulemap = import_node_path69.default.join(framework, "Modules", "module.modulemap");
|
|
40904
|
+
const headers2 = import_node_path69.default.join(framework, "Headers");
|
|
40905
|
+
if (!import_node_fs70.default.existsSync(modulemap) && files(headers2, (name3) => name3.endsWith(".h")).length) {
|
|
40906
|
+
const umbrella = import_node_fs70.default.existsSync(import_node_path69.default.join(headers2, `${module2}.h`)) ? `umbrella header "${module2}.h"` : 'umbrella "Headers"';
|
|
40907
|
+
modulemap = generatedModuleMap(
|
|
40908
|
+
`framework module ${module2} { ${umbrella} export * module * { export * } }
|
|
40909
|
+
`,
|
|
40910
|
+
true
|
|
40911
|
+
);
|
|
40912
|
+
}
|
|
40865
40913
|
if (chosen) {
|
|
40866
40914
|
const privateInterface = import_node_path69.default.join(
|
|
40867
40915
|
swiftmodule,
|
|
@@ -40893,8 +40941,33 @@ function surfaces(xcframeworkDir, slice = simulatorSlice(xcframeworkDir)) {
|
|
|
40893
40941
|
const module2 = moduleMapName(import_node_fs70.default.readFileSync(modulemap, "utf8"));
|
|
40894
40942
|
if (module2) found.push(headerSurface(module2, modulemap, import_node_path69.default.dirname(modulemap)));
|
|
40895
40943
|
}
|
|
40944
|
+
if (found.length === 0 && files(headers, (name3) => name3.endsWith(".h")).length) {
|
|
40945
|
+
const module2 = swiftTargetModuleName(target);
|
|
40946
|
+
const modulemap = generatedModuleMap(
|
|
40947
|
+
`module ${module2} { umbrella "." export * }
|
|
40948
|
+
`,
|
|
40949
|
+
false
|
|
40950
|
+
);
|
|
40951
|
+
found.push(headerSurface(module2, modulemap, headers));
|
|
40952
|
+
}
|
|
40896
40953
|
return found;
|
|
40897
40954
|
}
|
|
40955
|
+
function generatedModuleMap(text6, framework) {
|
|
40956
|
+
const dir = import_node_path69.default.join(
|
|
40957
|
+
cacheDir4,
|
|
40958
|
+
"modulemaps",
|
|
40959
|
+
key(text6),
|
|
40960
|
+
framework ? "Modules" : "Headers"
|
|
40961
|
+
);
|
|
40962
|
+
import_node_fs70.default.mkdirSync(dir, { recursive: true });
|
|
40963
|
+
const file = import_node_path69.default.join(dir, "module.modulemap");
|
|
40964
|
+
if (!import_node_fs70.default.existsSync(file)) {
|
|
40965
|
+
const pending = `${file}.${process.pid}.tmp`;
|
|
40966
|
+
import_node_fs70.default.writeFileSync(pending, text6);
|
|
40967
|
+
import_node_fs70.default.renameSync(pending, file);
|
|
40968
|
+
}
|
|
40969
|
+
return file;
|
|
40970
|
+
}
|
|
40898
40971
|
function peachModuleDirs(toolchain, imports2, sdkIncludes) {
|
|
40899
40972
|
const { moduleRoot, toolchainBin } = toolchain;
|
|
40900
40973
|
if (swiftDistributionAt(moduleRoot)) return [import_node_path69.default.join(moduleRoot, "modules")];
|
|
@@ -41034,22 +41107,24 @@ function swiftStandin(surface, binary2, toolchain, work, behavior, siblings) {
|
|
|
41034
41107
|
symbolgraphWasm.push(wasm[index]);
|
|
41035
41108
|
}
|
|
41036
41109
|
symbolgraphWasm.push("-Xcc", "-Xclang", "-Xcc", "-fmodule-format=raw");
|
|
41037
|
-
exec(
|
|
41038
|
-
"-
|
|
41039
|
-
|
|
41040
|
-
|
|
41041
|
-
|
|
41042
|
-
|
|
41043
|
-
|
|
41044
|
-
|
|
41045
|
-
|
|
41046
|
-
|
|
41047
|
-
|
|
41048
|
-
|
|
41049
|
-
|
|
41050
|
-
|
|
41051
|
-
|
|
41052
|
-
|
|
41110
|
+
exec(
|
|
41111
|
+
...withoutCoreDump(import_node_path69.default.join(toolchain.toolchainBin, "swift-symbolgraph-extract"), [
|
|
41112
|
+
"-module-name",
|
|
41113
|
+
surface.module,
|
|
41114
|
+
...symbolgraphWasm,
|
|
41115
|
+
"-I",
|
|
41116
|
+
search,
|
|
41117
|
+
// at public the graph drops underscored public declarations, which other
|
|
41118
|
+
// public ones name; the emitter keeps only public and open symbols
|
|
41119
|
+
"-minimum-access-level",
|
|
41120
|
+
"internal",
|
|
41121
|
+
"-include-spi-symbols",
|
|
41122
|
+
"-skip-synthesized-members",
|
|
41123
|
+
"-omit-extension-block-symbols",
|
|
41124
|
+
"-output-dir",
|
|
41125
|
+
out
|
|
41126
|
+
])
|
|
41127
|
+
);
|
|
41053
41128
|
const graphs = import_node_fs70.default.readdirSync(out).filter((name3) => name3.endsWith(".symbols.json")).sort().map((name3) => JSON.parse(import_node_fs70.default.readFileSync(import_node_path69.default.join(out, name3), "utf8")));
|
|
41054
41129
|
const supplemented = synthesizedInterfaceEnums(text6, surface.module, graphs);
|
|
41055
41130
|
restoreSwiftInterfaceSPI(text6, surface.module, graphs);
|
|
@@ -41312,18 +41387,39 @@ function wasmFlags(toolchain, imports2) {
|
|
|
41312
41387
|
...toolchain.standinModules ? ["-I", toolchain.standinModules] : []
|
|
41313
41388
|
];
|
|
41314
41389
|
}
|
|
41315
|
-
function objcStandin(surface, binary2, toolchain, work, behavior) {
|
|
41390
|
+
function objcStandin(surface, binary2, toolchain, work, behavior, frameworks, siblings) {
|
|
41316
41391
|
const view = objcView(
|
|
41317
41392
|
surface,
|
|
41318
41393
|
toolchain.toolchainBin,
|
|
41319
41394
|
import_node_path69.default.join(toolchain.moduleRoot, "ios-simulator-stdlib"),
|
|
41320
41395
|
cacheDir4,
|
|
41321
|
-
import_node_path69.default.join(work, "objc")
|
|
41396
|
+
import_node_path69.default.join(work, "objc"),
|
|
41397
|
+
void 0,
|
|
41398
|
+
frameworks.dirs
|
|
41322
41399
|
);
|
|
41323
41400
|
const provided = new Set(swiftPeachModules(toolchain.moduleRoot));
|
|
41324
41401
|
const headerModules = view.imports.filter(
|
|
41325
|
-
(name3) => !STANDIN_IMPORTS.includes(name3) && provided.has(name3)
|
|
41402
|
+
(name3) => !STANDIN_IMPORTS.includes(name3) && (provided.has(name3) || siblings.has(name3))
|
|
41326
41403
|
);
|
|
41404
|
+
const dependencyGraphs = headerModules.flatMap((module2) => {
|
|
41405
|
+
const dependency = frameworks.surfaces.get(module2);
|
|
41406
|
+
if (!dependency || module2 === surface.module) return [];
|
|
41407
|
+
return objcView(
|
|
41408
|
+
{
|
|
41409
|
+
module: dependency.module,
|
|
41410
|
+
modulemap: dependency.modulemap,
|
|
41411
|
+
headers: dependency.headers
|
|
41412
|
+
},
|
|
41413
|
+
toolchain.toolchainBin,
|
|
41414
|
+
import_node_path69.default.join(toolchain.moduleRoot, "ios-simulator-stdlib"),
|
|
41415
|
+
cacheDir4,
|
|
41416
|
+
import_node_path69.default.join(work, "dependencies", module2),
|
|
41417
|
+
void 0,
|
|
41418
|
+
frameworks.dirs.filter(
|
|
41419
|
+
(dir) => !import_node_fs70.default.existsSync(import_node_path69.default.join(dir, `${module2}.framework`))
|
|
41420
|
+
)
|
|
41421
|
+
).graphs;
|
|
41422
|
+
});
|
|
41327
41423
|
return graphStandin(
|
|
41328
41424
|
surface.module,
|
|
41329
41425
|
view.graphs,
|
|
@@ -41340,10 +41436,16 @@ function objcStandin(surface, binary2, toolchain, work, behavior) {
|
|
|
41340
41436
|
(dependency) => swiftTargetModuleName(dependency.module)
|
|
41341
41437
|
) ?? []
|
|
41342
41438
|
])
|
|
41343
|
-
]
|
|
41439
|
+
],
|
|
41440
|
+
false,
|
|
41441
|
+
/* @__PURE__ */ new Map(),
|
|
41442
|
+
null,
|
|
41443
|
+
/* @__PURE__ */ new Map(),
|
|
41444
|
+
/* @__PURE__ */ new Map(),
|
|
41445
|
+
dependencyGraphs
|
|
41344
41446
|
);
|
|
41345
41447
|
}
|
|
41346
|
-
function graphStandin(module2, graphs, values, wasm, binary2, toolchain, work, behavior, imports2 = [], requireSwift = false, objcProperties = /* @__PURE__ */ new Map(), placeholder = null, inheritedConformances = /* @__PURE__ */ new Map(), projections = /* @__PURE__ */ new Map()) {
|
|
41448
|
+
function graphStandin(module2, graphs, values, wasm, binary2, toolchain, work, behavior, imports2 = [], requireSwift = false, objcProperties = /* @__PURE__ */ new Map(), placeholder = null, inheritedConformances = /* @__PURE__ */ new Map(), projections = /* @__PURE__ */ new Map(), dependencyGraphs = []) {
|
|
41347
41449
|
const paths = new Set(
|
|
41348
41450
|
graphs.flatMap(
|
|
41349
41451
|
(graph) => graph.symbols.map((symbol2) => symbol2.pathComponents.join("."))
|
|
@@ -41399,6 +41501,7 @@ function graphStandin(module2, graphs, values, wasm, binary2, toolchain, work, b
|
|
|
41399
41501
|
objcProperties,
|
|
41400
41502
|
inheritedConformances,
|
|
41401
41503
|
projections,
|
|
41504
|
+
dependencyGraphs,
|
|
41402
41505
|
...placeholder ? { exported: placeholder.exported, placeholder: binary2.placeholder.gap } : {}
|
|
41403
41506
|
});
|
|
41404
41507
|
for (const entry of skipped) {
|
|
@@ -42064,6 +42167,11 @@ async function sourceStandins(binaries, toolchain, provided, behavior) {
|
|
|
42064
42167
|
}))
|
|
42065
42168
|
});
|
|
42066
42169
|
} else {
|
|
42170
|
+
const absent = missingArtifactGap(binary2);
|
|
42171
|
+
if (absent !== null) {
|
|
42172
|
+
gaps.set(binary2.target, absent);
|
|
42173
|
+
continue;
|
|
42174
|
+
}
|
|
42067
42175
|
const resolved = xcframework(binary2);
|
|
42068
42176
|
const dir = import_node_path69.default.join(artifact, String(index), import_node_path69.default.basename(resolved.dir));
|
|
42069
42177
|
import_node_fs70.default.cpSync(resolved.dir, dir, { recursive: true, dereference: true });
|
|
@@ -42199,7 +42307,9 @@ function standinGenerationInputs(binaries, toolchain, behavior = {}, sourceDir)
|
|
|
42199
42307
|
const modules = new Set(
|
|
42200
42308
|
binaries.flatMap((binary2) => {
|
|
42201
42309
|
try {
|
|
42202
|
-
return binary2.publicHeaders !== void 0 || binary2.placeholder !== void 0 ? [swiftTargetModuleName(binary2.target)] : surfaces(xcframework(binary2).dir).map(
|
|
42310
|
+
return binary2.publicHeaders !== void 0 || binary2.placeholder !== void 0 ? [swiftTargetModuleName(binary2.target)] : surfaces(xcframework(binary2).dir, binary2.target).map(
|
|
42311
|
+
(surface) => surface.module
|
|
42312
|
+
);
|
|
42203
42313
|
} catch {
|
|
42204
42314
|
return [];
|
|
42205
42315
|
}
|
|
@@ -42232,7 +42342,9 @@ function standinGenerationInputs(binaries, toolchain, behavior = {}, sourceDir)
|
|
|
42232
42342
|
if (binary2.publicHeaders !== void 0 && swiftTargetModuleName(binary2.target) !== binary2.target)
|
|
42233
42343
|
parts.push(`module/${swiftTargetModuleName(binary2.target)}`);
|
|
42234
42344
|
try {
|
|
42235
|
-
if (binary2.publicHeaders === void 0 && surfaces(xcframework(binary2).dir).some(
|
|
42345
|
+
if (binary2.publicHeaders === void 0 && surfaces(xcframework(binary2).dir, binary2.target).some(
|
|
42346
|
+
(surface) => surface.kind === "swift"
|
|
42347
|
+
))
|
|
42236
42348
|
parts.push(`interface-emulation/${WASI_EMULATION.join(",")}`);
|
|
42237
42349
|
parts.push(
|
|
42238
42350
|
binary2.target,
|
|
@@ -42260,10 +42372,14 @@ function standinGenerationInputs(binaries, toolchain, behavior = {}, sourceDir)
|
|
|
42260
42372
|
}
|
|
42261
42373
|
return (0, import_node_crypto36.createHash)("sha256").update(parts.join("\0")).digest("hex");
|
|
42262
42374
|
}
|
|
42375
|
+
function missingArtifactGap(binary2) {
|
|
42376
|
+
if (swiftBinaryOnDisk(binary2)) return null;
|
|
42377
|
+
return `${import_node_path69.default.relative(process.cwd(), binary2.dir) || binary2.dir} is not on disk, and Xcode fails without it too; run the script that downloads or builds it, then run again`;
|
|
42378
|
+
}
|
|
42263
42379
|
async function binaryStandins(binary2, toolchain, provided, behavior, frameworks, siblings) {
|
|
42264
42380
|
if (provided.has(binary2.target)) return [];
|
|
42265
|
-
|
|
42266
|
-
|
|
42381
|
+
const absent = missingArtifactGap(binary2);
|
|
42382
|
+
if (absent !== null) return absent;
|
|
42267
42383
|
import_node_fs70.default.mkdirSync(cacheDir4, { recursive: true });
|
|
42268
42384
|
const work = import_node_fs70.default.mkdtempSync(import_node_path69.default.join(cacheDir4, "work-"));
|
|
42269
42385
|
let all;
|
|
@@ -42315,7 +42431,7 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
42315
42431
|
].join("\0");
|
|
42316
42432
|
} else {
|
|
42317
42433
|
const artifact = xcframework(binary2);
|
|
42318
|
-
all = surfaces(artifact.dir);
|
|
42434
|
+
all = surfaces(artifact.dir, binary2.target);
|
|
42319
42435
|
digest4 = artifact.digest;
|
|
42320
42436
|
}
|
|
42321
42437
|
} catch (error) {
|
|
@@ -42334,7 +42450,8 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
42334
42450
|
);
|
|
42335
42451
|
hash.update(digest4);
|
|
42336
42452
|
hash.update([...siblings].sort().join("\0"));
|
|
42337
|
-
if (found.some((surface) => surface.kind === "mixed"
|
|
42453
|
+
if (found.some((surface) => surface.kind === "mixed" || surface.kind === "objc"))
|
|
42454
|
+
hash.update(frameworks.digest);
|
|
42338
42455
|
for (const surface of found) {
|
|
42339
42456
|
hash.update(`${surface.kind}\0${surface.module}\0`);
|
|
42340
42457
|
for (const file of surface.kind === "swift" ? [surface.interface] : surface.kind === "source" ? surface.sources : [
|
|
@@ -42411,7 +42528,9 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
42411
42528
|
binary2,
|
|
42412
42529
|
toolchain,
|
|
42413
42530
|
dir,
|
|
42414
|
-
new Map(Object.entries(configured.get(surface.module) ?? {}))
|
|
42531
|
+
new Map(Object.entries(configured.get(surface.module) ?? {})),
|
|
42532
|
+
frameworks,
|
|
42533
|
+
siblings
|
|
42415
42534
|
) : binary2.cxxHeaders ? await cxxStandin(surface, binary2, toolchain, dir) : cStandin(surface, binary2, toolchain, dir)
|
|
42416
42535
|
);
|
|
42417
42536
|
} catch (error) {
|
|
@@ -42434,6 +42553,19 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
42434
42553
|
return settle(result);
|
|
42435
42554
|
}
|
|
42436
42555
|
async function swiftStandins(binaries, toolchain, provided = /* @__PURE__ */ new Set(), behavior = {}) {
|
|
42556
|
+
const built2 = await buildStandins(binaries, toolchain, provided, behavior);
|
|
42557
|
+
return {
|
|
42558
|
+
standins: built2.standins,
|
|
42559
|
+
gaps: new Map([...built2.gaps].map(([target, gap]) => [target, gapText(gap)]))
|
|
42560
|
+
};
|
|
42561
|
+
}
|
|
42562
|
+
function gapText(gap) {
|
|
42563
|
+
const lines = gap.split("\n").map((line) => line.trim()).filter((line) => line && !/^[{[\]}",]/.test(line) && !/"kind":/.test(line));
|
|
42564
|
+
const errors = lines.filter((line) => /\berror:/.test(line));
|
|
42565
|
+
const text6 = (errors.length > 0 ? errors : lines).slice(0, 4).join("; ");
|
|
42566
|
+
return text6.length > 600 ? `${text6.slice(0, 600)}\u2026` : text6;
|
|
42567
|
+
}
|
|
42568
|
+
async function buildStandins(binaries, toolchain, provided, behavior) {
|
|
42437
42569
|
const requested = binaries.filter((binary2) => !provided.has(binary2.target));
|
|
42438
42570
|
if (requested.length === 0) return { standins: [], gaps: /* @__PURE__ */ new Map() };
|
|
42439
42571
|
if (process.platform === "darwin" && process.env.TM_EXEC_BUILD_PLATFORM !== "mac" && process.env.TM_SESSION && process.env.CI !== "true" && toolchain.moduleRoot === sourceSwiftCheckout() && !swiftDistributionAt(toolchain.moduleRoot))
|
|
@@ -42443,6 +42575,7 @@ async function swiftStandins(binaries, toolchain, provided = /* @__PURE__ */ new
|
|
|
42443
42575
|
import_node_fs70.default.mkdirSync(cacheDir4, { recursive: true });
|
|
42444
42576
|
const modules = import_node_fs70.default.mkdtempSync(import_node_path69.default.join(cacheDir4, "modules-"));
|
|
42445
42577
|
const frameworkDirs = /* @__PURE__ */ new Set();
|
|
42578
|
+
const frameworkSurfaces = /* @__PURE__ */ new Map();
|
|
42446
42579
|
const frameworkInputs = [];
|
|
42447
42580
|
const byModule = new Map(
|
|
42448
42581
|
binaries.map((binary2) => [swiftTargetModuleName(binary2.target), binary2])
|
|
@@ -42466,16 +42599,26 @@ async function swiftStandins(binaries, toolchain, provided = /* @__PURE__ */ new
|
|
|
42466
42599
|
frameworkInputs.push(`${binary2.target}\0${artifact.digest}`);
|
|
42467
42600
|
const imports2 = /* @__PURE__ */ new Set();
|
|
42468
42601
|
interfaceImports.set(binary2, imports2);
|
|
42469
|
-
for (const surface of surfaces(artifact.dir)) {
|
|
42602
|
+
for (const surface of surfaces(artifact.dir, binary2.target)) {
|
|
42470
42603
|
byModule.set(surface.module, binary2);
|
|
42471
42604
|
if (surface.kind === "swift" || surface.kind === "mixed")
|
|
42472
42605
|
for (const module2 of swiftImportNames(
|
|
42473
42606
|
import_node_fs70.default.readFileSync(surface.interface, "utf8")
|
|
42474
42607
|
))
|
|
42475
42608
|
imports2.add(module2);
|
|
42609
|
+
if (surface.kind === "objc" || surface.kind === "mixed")
|
|
42610
|
+
for (const file of files(surface.headers, (name3) => name3.endsWith(".h")))
|
|
42611
|
+
for (const module2 of clangImportNames(
|
|
42612
|
+
import_node_fs70.default.readFileSync(import_node_path69.default.join(surface.headers, file), "utf8")
|
|
42613
|
+
))
|
|
42614
|
+
imports2.add(module2);
|
|
42476
42615
|
if (surface.kind === "c") continue;
|
|
42616
|
+
if (surface.kind === "objc" || surface.kind === "mixed")
|
|
42617
|
+
frameworkSurfaces.set(surface.module, surface);
|
|
42618
|
+
if (surface.kind !== "swift" && import_node_path69.default.basename(import_node_path69.default.dirname(surface.modulemap)) !== "Modules")
|
|
42619
|
+
continue;
|
|
42477
42620
|
frameworkDirs.add(
|
|
42478
|
-
surface.kind === "swift" ? import_node_path69.default.resolve(surface.interface, "../../../..") : import_node_path69.default.resolve(surface.
|
|
42621
|
+
surface.kind === "swift" ? import_node_path69.default.resolve(surface.interface, "../../../..") : import_node_path69.default.resolve(surface.headers, "../..")
|
|
42479
42622
|
);
|
|
42480
42623
|
}
|
|
42481
42624
|
} catch {
|
|
@@ -42484,7 +42627,8 @@ async function swiftStandins(binaries, toolchain, provided = /* @__PURE__ */ new
|
|
|
42484
42627
|
const generatedToolchain = { ...toolchain, standinModules: modules };
|
|
42485
42628
|
const frameworks = {
|
|
42486
42629
|
dirs: [...frameworkDirs].sort(),
|
|
42487
|
-
digest: (0, import_node_crypto36.createHash)("sha256").update(frameworkInputs.sort().join("\0")).digest("hex")
|
|
42630
|
+
digest: (0, import_node_crypto36.createHash)("sha256").update(frameworkInputs.sort().join("\0")).digest("hex"),
|
|
42631
|
+
surfaces: frameworkSurfaces
|
|
42488
42632
|
};
|
|
42489
42633
|
const siblings = new Map(
|
|
42490
42634
|
binaries.map((binary2) => [
|
|
@@ -42589,6 +42733,7 @@ var init_swift_standins = __esm({
|
|
|
42589
42733
|
init_swift_cxx_standin();
|
|
42590
42734
|
init_swift_objc_standin();
|
|
42591
42735
|
init_swift_package();
|
|
42736
|
+
init_swift_packages();
|
|
42592
42737
|
init_swift_shared_sdk();
|
|
42593
42738
|
init_swift_standin_digest();
|
|
42594
42739
|
init_swift_standin_emit();
|
|
@@ -56236,7 +56381,7 @@ var init_nitro_superset = __esm({
|
|
|
56236
56381
|
init_swift_standin_digest();
|
|
56237
56382
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
56238
56383
|
packageVersion = (root) => JSON.parse((0, import_node_fs86.readFileSync)((0, import_node_path85.join)(root, "package.json"), "utf8")).version;
|
|
56239
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
56384
|
+
NITRO_COMPILER_DIGEST = true ? "e08d3309819dfdf5f954d2989f492cc3d239958e8bcdbaad4bf0a6841a5b6b86" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
56240
56385
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
56241
56386
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
56242
56387
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1965 | (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 __defProp = Object.defineProperty;
|