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;
|
|
@@ -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
|
|
|
@@ -23921,6 +23921,9 @@ function processRuns(pid) {
|
|
|
23921
23921
|
return error instanceof Error && "code" in error && error.code === "EPERM";
|
|
23922
23922
|
}
|
|
23923
23923
|
}
|
|
23924
|
+
function withoutCoreDump(file, args) {
|
|
23925
|
+
return ["/bin/sh", ["-c", 'ulimit -c 0; exec "$@"', "sh", file, ...args]];
|
|
23926
|
+
}
|
|
23924
23927
|
function swiftEnvironment(base = process.env) {
|
|
23925
23928
|
return {
|
|
23926
23929
|
...base,
|
|
@@ -24773,7 +24776,12 @@ function splitTopLevel(text6, separator) {
|
|
|
24773
24776
|
function emitSwiftStandin(sourceGraphs, options) {
|
|
24774
24777
|
const imported = new Set(options.imports);
|
|
24775
24778
|
const importedTypeModules = options.importedTypeModules ?? /* @__PURE__ */ new Map();
|
|
24776
|
-
const
|
|
24779
|
+
const ownIds = new Set(
|
|
24780
|
+
sourceGraphs.flatMap(
|
|
24781
|
+
(graph) => graph.symbols.map((symbol2) => symbol2.identifier.precise)
|
|
24782
|
+
)
|
|
24783
|
+
);
|
|
24784
|
+
const graphs = [...sourceGraphs, ...options.dependencyGraphs ?? []].map(
|
|
24777
24785
|
(graph) => qualifyImportedTypes(graph, imported, importedTypeModules)
|
|
24778
24786
|
);
|
|
24779
24787
|
const nativeObjcProtocols = objcProtocolsInSwiftSignatures(graphs);
|
|
@@ -25357,7 +25365,8 @@ function emitSwiftStandin(sourceGraphs, options) {
|
|
|
25357
25365
|
)
|
|
25358
25366
|
].filter((name3, at, all2) => all2.indexOf(name3) === at);
|
|
25359
25367
|
const parentSymbol = superId.has(id) ? byId.get(superId.get(id)) : void 0;
|
|
25360
|
-
if (!parentSymbol
|
|
25368
|
+
if (!parentSymbol || !ownIds.has(parentSymbol.identifier.precise))
|
|
25369
|
+
list2.push(standinMarker);
|
|
25361
25370
|
const open = symbol2.accessLevel === "open" && (!parentSymbol || parentSymbol.accessLevel === "open");
|
|
25362
25371
|
const objcName = /^c:objc\(cs\)(\w+)$/.exec(id)?.[1];
|
|
25363
25372
|
emit(
|
|
@@ -25707,7 +25716,9 @@ function emitSwiftStandin(sourceGraphs, options) {
|
|
|
25707
25716
|
return match ? [`${match[1]}|${LEADING_ATTRS.exec(text(symbol2))[2]}`] : [];
|
|
25708
25717
|
})
|
|
25709
25718
|
);
|
|
25710
|
-
const roots = [...byId.values()].filter(
|
|
25719
|
+
const roots = [...byId.values()].filter(
|
|
25720
|
+
(symbol2) => ownIds.has(symbol2.identifier.precise) && !owner.has(symbol2.identifier.precise) && !unavailable(symbol2)
|
|
25721
|
+
).filter((symbol2) => {
|
|
25711
25722
|
const name3 = /^c:@M@[^@]+@F@([^@]+)$/.exec(symbol2.identifier.precise)?.[1];
|
|
25712
25723
|
return !name3 || !cExports.has(`${name3}|${text(symbol2)}`);
|
|
25713
25724
|
}).sort((a, b) => pathOf(a).localeCompare(pathOf(b)));
|
|
@@ -25719,6 +25730,7 @@ function emitSwiftStandin(sourceGraphs, options) {
|
|
|
25719
25730
|
for (const [name3, members2] of [...external].sort(([a], [b]) => a.localeCompare(b))) {
|
|
25720
25731
|
const seen = /* @__PURE__ */ new Set();
|
|
25721
25732
|
const kept = members2.filter((member) => {
|
|
25733
|
+
if (!ownIds.has(member.identifier.precise)) return false;
|
|
25722
25734
|
const key2 = `${member.kind.identifier}|${text(member)}`;
|
|
25723
25735
|
if (unavailable(member) || seen.has(key2)) return false;
|
|
25724
25736
|
seen.add(key2);
|
|
@@ -26323,8 +26335,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
|
|
|
26323
26335
|
import_node_fs31.default.rmSync(out, { recursive: true, force: true });
|
|
26324
26336
|
import_node_fs31.default.mkdirSync(out, { recursive: true });
|
|
26325
26337
|
const run11 = (0, import_node_child_process14.spawnSync)(
|
|
26326
|
-
import_node_path29.default.join(toolchainBin, "swift-symbolgraph-extract"),
|
|
26327
|
-
[
|
|
26338
|
+
...withoutCoreDump(import_node_path29.default.join(toolchainBin, "swift-symbolgraph-extract"), [
|
|
26328
26339
|
"-module-name",
|
|
26329
26340
|
surface.module,
|
|
26330
26341
|
"-target",
|
|
@@ -26344,7 +26355,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
|
|
|
26344
26355
|
"-omit-extension-block-symbols",
|
|
26345
26356
|
"-output-dir",
|
|
26346
26357
|
out
|
|
26347
|
-
],
|
|
26358
|
+
]),
|
|
26348
26359
|
{ encoding: "utf8", env: swiftEnvironment(), maxBuffer: 256 * 1024 * 1024 }
|
|
26349
26360
|
);
|
|
26350
26361
|
if (run11.error) throw run11.error;
|
|
@@ -35007,7 +35018,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
35007
35018
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
35008
35019
|
var MULTI_MANIFEST_VERSION = 66;
|
|
35009
35020
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
35010
|
-
var compilerSourceDigest = true ? "
|
|
35021
|
+
var compilerSourceDigest = true ? "777d4db5d7a8d74f3fc33c50d60c04b62ad2fdce4bce2e2eec8c4e358d61ce92" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
35011
35022
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
35012
35023
|
const hash = (0, import_node_crypto21.createHash)("sha256");
|
|
35013
35024
|
hash.update(`swift-compile
|
|
@@ -44289,7 +44300,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
44289
44300
|
return hash.digest("hex");
|
|
44290
44301
|
}
|
|
44291
44302
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
44292
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
44303
|
+
var STANDIN_SOURCE_DIGEST = true ? "a7e1ecaaff6c8861c337b5c6049d14450807f5be059d246ba06f5abd6384bfe7" : standinSourceDigest();
|
|
44293
44304
|
|
|
44294
44305
|
// src/expoSwiftContract.ts
|
|
44295
44306
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -44656,7 +44667,7 @@ async function packageTreeDigest(root) {
|
|
|
44656
44667
|
|
|
44657
44668
|
// src/expo-native-prebuilt.ts
|
|
44658
44669
|
var EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
44659
|
-
var EXPO_NATIVE_COMPILER_DIGEST = true ? "
|
|
44670
|
+
var EXPO_NATIVE_COMPILER_DIGEST = true ? "ab9c7903d2e3e389e43c53ecfe515193e8c405cf1fef52b82d78ff570dc3ea8e" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
44660
44671
|
var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
44661
44672
|
function readSources(value) {
|
|
44662
44673
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -45672,6 +45683,11 @@ function resolveSwiftPackages(options) {
|
|
|
45672
45683
|
if (claimed.has(key2)) return true;
|
|
45673
45684
|
const target = pkg.manifest.targets.get(name3);
|
|
45674
45685
|
if (!target || target.type !== "regular" || placeholderPackage(pkg)) return false;
|
|
45686
|
+
const files2 = swiftTargetFiles(pkg.manifest, target);
|
|
45687
|
+
if (files2.every(
|
|
45688
|
+
(file) => file.endsWith(".swift") && import_node_fs68.default.readFileSync(file, "utf8").trim() === ""
|
|
45689
|
+
))
|
|
45690
|
+
return false;
|
|
45675
45691
|
claimed.add(key2);
|
|
45676
45692
|
provided.delete(name3);
|
|
45677
45693
|
for (const dependency of target.dependencies) {
|
|
@@ -45779,7 +45795,7 @@ function resolveSwiftPackages(options) {
|
|
|
45779
45795
|
if (provided.has(name3) && placeholderPackage(pkg)) return;
|
|
45780
45796
|
for (const dependency of pkg.manifest.targets.get(name3)?.dependencies ?? []) {
|
|
45781
45797
|
if (dependency.kind === "target") visit3(pkg, dependency.name);
|
|
45782
|
-
else {
|
|
45798
|
+
else if (!provided.has(dependency.name)) {
|
|
45783
45799
|
const nested = dependencyPackage(pkg, dependency);
|
|
45784
45800
|
if (nested && typeof nested !== "string")
|
|
45785
45801
|
for (const root of nested.manifest.products.get(dependency.name)?.targets ?? [])
|
|
@@ -45788,6 +45804,7 @@ function resolveSwiftPackages(options) {
|
|
|
45788
45804
|
}
|
|
45789
45805
|
};
|
|
45790
45806
|
for (const { product, source } of listed) {
|
|
45807
|
+
if (provided.has(product)) continue;
|
|
45791
45808
|
const pkg = source.kind === "unnamed" ? unnamed(source, product) : packages.get(sourceKey(source));
|
|
45792
45809
|
if (!pkg || typeof pkg === "string") continue;
|
|
45793
45810
|
for (const root of pkg.manifest.products.get(product)?.targets ?? [])
|
|
@@ -46568,11 +46585,11 @@ ${uikit}${body}`
|
|
|
46568
46585
|
function binaryHeaderSearchPaths(binary2, root, declaredFrameworks) {
|
|
46569
46586
|
const artifact = xcframework(binary2);
|
|
46570
46587
|
const slice = simulatorSlice(artifact.dir);
|
|
46571
|
-
const found = surfaces(artifact.dir, slice);
|
|
46588
|
+
const found = surfaces(artifact.dir, binary2.target, slice);
|
|
46572
46589
|
const frameworks = [
|
|
46573
46590
|
...new Set(
|
|
46574
46591
|
found.flatMap(
|
|
46575
|
-
(surface) => "modulemap" in surface && import_node_path71.default.basename(import_node_path71.default.dirname(surface.modulemap)) === "Modules" ? [import_node_path71.default.dirname(
|
|
46592
|
+
(surface) => "modulemap" in surface && import_node_path71.default.basename(import_node_path71.default.dirname(surface.modulemap)) === "Modules" ? [import_node_path71.default.dirname(surface.headers)] : []
|
|
46576
46593
|
)
|
|
46577
46594
|
)
|
|
46578
46595
|
];
|
|
@@ -46637,8 +46654,21 @@ function binaryHeaderSearchPaths(binary2, root, declaredFrameworks) {
|
|
|
46637
46654
|
import_node_path71.default.join(pending, "frameworks", import_node_path71.default.basename(framework), part),
|
|
46638
46655
|
{ recursive: true, dereference: true }
|
|
46639
46656
|
);
|
|
46657
|
+
const surface = found.find(
|
|
46658
|
+
(item) => "headers" in item && import_node_path71.default.dirname(item.headers) === framework
|
|
46659
|
+
);
|
|
46660
|
+
if (surface && "modulemap" in surface) {
|
|
46661
|
+
const modules = import_node_path71.default.join(
|
|
46662
|
+
pending,
|
|
46663
|
+
"frameworks",
|
|
46664
|
+
import_node_path71.default.basename(framework),
|
|
46665
|
+
"Modules"
|
|
46666
|
+
);
|
|
46667
|
+
import_node_fs72.default.mkdirSync(modules, { recursive: true });
|
|
46668
|
+
import_node_fs72.default.copyFileSync(surface.modulemap, import_node_path71.default.join(modules, "module.modulemap"));
|
|
46669
|
+
}
|
|
46640
46670
|
}
|
|
46641
|
-
for (const [index, directory2] of headers.entries())
|
|
46671
|
+
for (const [index, directory2] of headers.entries()) {
|
|
46642
46672
|
import_node_fs72.default.cpSync(directory2, import_node_path71.default.join(pending, "headers", String(index)), {
|
|
46643
46673
|
recursive: true,
|
|
46644
46674
|
dereference: true,
|
|
@@ -46646,6 +46676,15 @@ function binaryHeaderSearchPaths(binary2, root, declaredFrameworks) {
|
|
|
46646
46676
|
filter: (source) => import_node_fs72.default.statSync(source).isDirectory() ? import_node_path71.default.dirname(source) !== directory2 || !import_node_path71.default.basename(source).startsWith("ios-") : !isBinaryLibraryFile(source)
|
|
46647
46677
|
} : {}
|
|
46648
46678
|
});
|
|
46679
|
+
const surface = found.find(
|
|
46680
|
+
(item) => "headers" in item && item.headers === directory2
|
|
46681
|
+
);
|
|
46682
|
+
if (surface && "modulemap" in surface)
|
|
46683
|
+
import_node_fs72.default.copyFileSync(
|
|
46684
|
+
surface.modulemap,
|
|
46685
|
+
import_node_path71.default.join(pending, "headers", String(index), "module.modulemap")
|
|
46686
|
+
);
|
|
46687
|
+
}
|
|
46649
46688
|
const contents = (0, import_node_crypto37.createHash)("sha256");
|
|
46650
46689
|
for (const relative4 of import_node_fs72.default.readdirSync(pending, { recursive: true, encoding: "utf8" }).sort()) {
|
|
46651
46690
|
const file = import_node_path71.default.join(pending, relative4);
|
|
@@ -46701,7 +46740,7 @@ function simulatorSlice(xcframeworkDir) {
|
|
|
46701
46740
|
const slice = import_node_fs72.default.readdirSync(xcframeworkDir).filter((name3) => /^ios-.+-simulator$/.test(name3)).sort()[0];
|
|
46702
46741
|
return slice ? import_node_path71.default.join(xcframeworkDir, slice) : null;
|
|
46703
46742
|
}
|
|
46704
|
-
function surfaces(xcframeworkDir, slice = simulatorSlice(xcframeworkDir)) {
|
|
46743
|
+
function surfaces(xcframeworkDir, target, slice = simulatorSlice(xcframeworkDir)) {
|
|
46705
46744
|
const standaloneMap = import_node_path71.default.join(xcframeworkDir, "module.modulemap");
|
|
46706
46745
|
if (import_node_fs72.default.existsSync(standaloneMap)) {
|
|
46707
46746
|
const module2 = moduleMapName(import_node_fs72.default.readFileSync(standaloneMap, "utf8"));
|
|
@@ -46722,7 +46761,16 @@ function surfaces(xcframeworkDir, slice = simulatorSlice(xcframeworkDir)) {
|
|
|
46722
46761
|
(name3) => name3.endsWith(".swiftinterface") && !name3.endsWith(".private.swiftinterface") && !name3.endsWith(".package.swiftinterface")
|
|
46723
46762
|
);
|
|
46724
46763
|
const chosen = interfaces.find((name3) => name3.startsWith("arm64-")) ?? interfaces[0] ?? null;
|
|
46725
|
-
|
|
46764
|
+
let modulemap = import_node_path71.default.join(framework, "Modules", "module.modulemap");
|
|
46765
|
+
const headers2 = import_node_path71.default.join(framework, "Headers");
|
|
46766
|
+
if (!import_node_fs72.default.existsSync(modulemap) && files(headers2, (name3) => name3.endsWith(".h")).length) {
|
|
46767
|
+
const umbrella = import_node_fs72.default.existsSync(import_node_path71.default.join(headers2, `${module2}.h`)) ? `umbrella header "${module2}.h"` : 'umbrella "Headers"';
|
|
46768
|
+
modulemap = generatedModuleMap(
|
|
46769
|
+
`framework module ${module2} { ${umbrella} export * module * { export * } }
|
|
46770
|
+
`,
|
|
46771
|
+
true
|
|
46772
|
+
);
|
|
46773
|
+
}
|
|
46726
46774
|
if (chosen) {
|
|
46727
46775
|
const privateInterface = import_node_path71.default.join(
|
|
46728
46776
|
swiftmodule,
|
|
@@ -46754,8 +46802,33 @@ function surfaces(xcframeworkDir, slice = simulatorSlice(xcframeworkDir)) {
|
|
|
46754
46802
|
const module2 = moduleMapName(import_node_fs72.default.readFileSync(modulemap, "utf8"));
|
|
46755
46803
|
if (module2) found.push(headerSurface(module2, modulemap, import_node_path71.default.dirname(modulemap)));
|
|
46756
46804
|
}
|
|
46805
|
+
if (found.length === 0 && files(headers, (name3) => name3.endsWith(".h")).length) {
|
|
46806
|
+
const module2 = swiftTargetModuleName(target);
|
|
46807
|
+
const modulemap = generatedModuleMap(
|
|
46808
|
+
`module ${module2} { umbrella "." export * }
|
|
46809
|
+
`,
|
|
46810
|
+
false
|
|
46811
|
+
);
|
|
46812
|
+
found.push(headerSurface(module2, modulemap, headers));
|
|
46813
|
+
}
|
|
46757
46814
|
return found;
|
|
46758
46815
|
}
|
|
46816
|
+
function generatedModuleMap(text6, framework) {
|
|
46817
|
+
const dir = import_node_path71.default.join(
|
|
46818
|
+
cacheDir4,
|
|
46819
|
+
"modulemaps",
|
|
46820
|
+
key(text6),
|
|
46821
|
+
framework ? "Modules" : "Headers"
|
|
46822
|
+
);
|
|
46823
|
+
import_node_fs72.default.mkdirSync(dir, { recursive: true });
|
|
46824
|
+
const file = import_node_path71.default.join(dir, "module.modulemap");
|
|
46825
|
+
if (!import_node_fs72.default.existsSync(file)) {
|
|
46826
|
+
const pending = `${file}.${process.pid}.tmp`;
|
|
46827
|
+
import_node_fs72.default.writeFileSync(pending, text6);
|
|
46828
|
+
import_node_fs72.default.renameSync(pending, file);
|
|
46829
|
+
}
|
|
46830
|
+
return file;
|
|
46831
|
+
}
|
|
46759
46832
|
function peachModuleDirs(toolchain, imports2, sdkIncludes) {
|
|
46760
46833
|
const { moduleRoot, toolchainBin } = toolchain;
|
|
46761
46834
|
if (swiftDistributionAt(moduleRoot)) return [import_node_path71.default.join(moduleRoot, "modules")];
|
|
@@ -46898,22 +46971,24 @@ function swiftStandin(surface, binary2, toolchain, work, behavior, siblings) {
|
|
|
46898
46971
|
symbolgraphWasm.push(wasm[index]);
|
|
46899
46972
|
}
|
|
46900
46973
|
symbolgraphWasm.push("-Xcc", "-Xclang", "-Xcc", "-fmodule-format=raw");
|
|
46901
|
-
exec(
|
|
46902
|
-
"-
|
|
46903
|
-
|
|
46904
|
-
|
|
46905
|
-
|
|
46906
|
-
|
|
46907
|
-
|
|
46908
|
-
|
|
46909
|
-
|
|
46910
|
-
|
|
46911
|
-
|
|
46912
|
-
|
|
46913
|
-
|
|
46914
|
-
|
|
46915
|
-
|
|
46916
|
-
|
|
46974
|
+
exec(
|
|
46975
|
+
...withoutCoreDump(import_node_path71.default.join(toolchain.toolchainBin, "swift-symbolgraph-extract"), [
|
|
46976
|
+
"-module-name",
|
|
46977
|
+
surface.module,
|
|
46978
|
+
...symbolgraphWasm,
|
|
46979
|
+
"-I",
|
|
46980
|
+
search,
|
|
46981
|
+
// at public the graph drops underscored public declarations, which other
|
|
46982
|
+
// public ones name; the emitter keeps only public and open symbols
|
|
46983
|
+
"-minimum-access-level",
|
|
46984
|
+
"internal",
|
|
46985
|
+
"-include-spi-symbols",
|
|
46986
|
+
"-skip-synthesized-members",
|
|
46987
|
+
"-omit-extension-block-symbols",
|
|
46988
|
+
"-output-dir",
|
|
46989
|
+
out
|
|
46990
|
+
])
|
|
46991
|
+
);
|
|
46917
46992
|
const graphs = import_node_fs72.default.readdirSync(out).filter((name3) => name3.endsWith(".symbols.json")).sort().map((name3) => JSON.parse(import_node_fs72.default.readFileSync(import_node_path71.default.join(out, name3), "utf8")));
|
|
46918
46993
|
const supplemented = synthesizedInterfaceEnums(text6, surface.module, graphs);
|
|
46919
46994
|
restoreSwiftInterfaceSPI(text6, surface.module, graphs);
|
|
@@ -47177,18 +47252,39 @@ function wasmFlags(toolchain, imports2) {
|
|
|
47177
47252
|
...toolchain.standinModules ? ["-I", toolchain.standinModules] : []
|
|
47178
47253
|
];
|
|
47179
47254
|
}
|
|
47180
|
-
function objcStandin(surface, binary2, toolchain, work, behavior) {
|
|
47255
|
+
function objcStandin(surface, binary2, toolchain, work, behavior, frameworks, siblings) {
|
|
47181
47256
|
const view = objcView(
|
|
47182
47257
|
surface,
|
|
47183
47258
|
toolchain.toolchainBin,
|
|
47184
47259
|
import_node_path71.default.join(toolchain.moduleRoot, "ios-simulator-stdlib"),
|
|
47185
47260
|
cacheDir4,
|
|
47186
|
-
import_node_path71.default.join(work, "objc")
|
|
47261
|
+
import_node_path71.default.join(work, "objc"),
|
|
47262
|
+
void 0,
|
|
47263
|
+
frameworks.dirs
|
|
47187
47264
|
);
|
|
47188
47265
|
const provided = new Set(swiftPeachModules(toolchain.moduleRoot));
|
|
47189
47266
|
const headerModules = view.imports.filter(
|
|
47190
|
-
(name3) => !STANDIN_IMPORTS.includes(name3) && provided.has(name3)
|
|
47267
|
+
(name3) => !STANDIN_IMPORTS.includes(name3) && (provided.has(name3) || siblings.has(name3))
|
|
47191
47268
|
);
|
|
47269
|
+
const dependencyGraphs = headerModules.flatMap((module2) => {
|
|
47270
|
+
const dependency = frameworks.surfaces.get(module2);
|
|
47271
|
+
if (!dependency || module2 === surface.module) return [];
|
|
47272
|
+
return objcView(
|
|
47273
|
+
{
|
|
47274
|
+
module: dependency.module,
|
|
47275
|
+
modulemap: dependency.modulemap,
|
|
47276
|
+
headers: dependency.headers
|
|
47277
|
+
},
|
|
47278
|
+
toolchain.toolchainBin,
|
|
47279
|
+
import_node_path71.default.join(toolchain.moduleRoot, "ios-simulator-stdlib"),
|
|
47280
|
+
cacheDir4,
|
|
47281
|
+
import_node_path71.default.join(work, "dependencies", module2),
|
|
47282
|
+
void 0,
|
|
47283
|
+
frameworks.dirs.filter(
|
|
47284
|
+
(dir) => !import_node_fs72.default.existsSync(import_node_path71.default.join(dir, `${module2}.framework`))
|
|
47285
|
+
)
|
|
47286
|
+
).graphs;
|
|
47287
|
+
});
|
|
47192
47288
|
return graphStandin(
|
|
47193
47289
|
surface.module,
|
|
47194
47290
|
view.graphs,
|
|
@@ -47205,12 +47301,18 @@ function objcStandin(surface, binary2, toolchain, work, behavior) {
|
|
|
47205
47301
|
(dependency) => swiftTargetModuleName(dependency.module)
|
|
47206
47302
|
) ?? []
|
|
47207
47303
|
])
|
|
47208
|
-
]
|
|
47304
|
+
],
|
|
47305
|
+
false,
|
|
47306
|
+
/* @__PURE__ */ new Map(),
|
|
47307
|
+
null,
|
|
47308
|
+
/* @__PURE__ */ new Map(),
|
|
47309
|
+
/* @__PURE__ */ new Map(),
|
|
47310
|
+
dependencyGraphs
|
|
47209
47311
|
);
|
|
47210
47312
|
}
|
|
47211
47313
|
var OBJC_UNREPRESENTABLE = "cannot be marked '@objc' because its type cannot be represented in Objective-C";
|
|
47212
47314
|
var INERT_VALUE = /missing argument|cannot be constructed|has no member 'init'|no exact matches in call to initializer|cannot convert return expression|does not conform to '|extra argument|takes no arguments|could not be inferred|cannot infer/;
|
|
47213
|
-
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()) {
|
|
47315
|
+
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 = []) {
|
|
47214
47316
|
const paths = new Set(
|
|
47215
47317
|
graphs.flatMap(
|
|
47216
47318
|
(graph) => graph.symbols.map((symbol2) => symbol2.pathComponents.join("."))
|
|
@@ -47266,6 +47368,7 @@ function graphStandin(module2, graphs, values, wasm, binary2, toolchain, work, b
|
|
|
47266
47368
|
objcProperties,
|
|
47267
47369
|
inheritedConformances,
|
|
47268
47370
|
projections,
|
|
47371
|
+
dependencyGraphs,
|
|
47269
47372
|
...placeholder ? { exported: placeholder.exported, placeholder: binary2.placeholder.gap } : {}
|
|
47270
47373
|
});
|
|
47271
47374
|
for (const entry of skipped) {
|
|
@@ -47942,6 +48045,11 @@ async function sourceStandins(binaries, toolchain, provided, behavior) {
|
|
|
47942
48045
|
}))
|
|
47943
48046
|
});
|
|
47944
48047
|
} else {
|
|
48048
|
+
const absent = missingArtifactGap(binary2);
|
|
48049
|
+
if (absent !== null) {
|
|
48050
|
+
gaps.set(binary2.target, absent);
|
|
48051
|
+
continue;
|
|
48052
|
+
}
|
|
47945
48053
|
const resolved = xcframework(binary2);
|
|
47946
48054
|
const dir = import_node_path71.default.join(artifact, String(index), import_node_path71.default.basename(resolved.dir));
|
|
47947
48055
|
import_node_fs72.default.cpSync(resolved.dir, dir, { recursive: true, dereference: true });
|
|
@@ -48078,7 +48186,9 @@ function standinGenerationInputs(binaries, toolchain, behavior = {}, sourceDir)
|
|
|
48078
48186
|
const modules = new Set(
|
|
48079
48187
|
binaries.flatMap((binary2) => {
|
|
48080
48188
|
try {
|
|
48081
|
-
return binary2.publicHeaders !== void 0 || binary2.placeholder !== void 0 ? [swiftTargetModuleName(binary2.target)] : surfaces(xcframework(binary2).dir).map(
|
|
48189
|
+
return binary2.publicHeaders !== void 0 || binary2.placeholder !== void 0 ? [swiftTargetModuleName(binary2.target)] : surfaces(xcframework(binary2).dir, binary2.target).map(
|
|
48190
|
+
(surface) => surface.module
|
|
48191
|
+
);
|
|
48082
48192
|
} catch {
|
|
48083
48193
|
return [];
|
|
48084
48194
|
}
|
|
@@ -48111,7 +48221,9 @@ function standinGenerationInputs(binaries, toolchain, behavior = {}, sourceDir)
|
|
|
48111
48221
|
if (binary2.publicHeaders !== void 0 && swiftTargetModuleName(binary2.target) !== binary2.target)
|
|
48112
48222
|
parts.push(`module/${swiftTargetModuleName(binary2.target)}`);
|
|
48113
48223
|
try {
|
|
48114
|
-
if (binary2.publicHeaders === void 0 && surfaces(xcframework(binary2).dir).some(
|
|
48224
|
+
if (binary2.publicHeaders === void 0 && surfaces(xcframework(binary2).dir, binary2.target).some(
|
|
48225
|
+
(surface) => surface.kind === "swift"
|
|
48226
|
+
))
|
|
48115
48227
|
parts.push(`interface-emulation/${WASI_EMULATION.join(",")}`);
|
|
48116
48228
|
parts.push(
|
|
48117
48229
|
binary2.target,
|
|
@@ -48139,10 +48251,14 @@ function standinGenerationInputs(binaries, toolchain, behavior = {}, sourceDir)
|
|
|
48139
48251
|
}
|
|
48140
48252
|
return (0, import_node_crypto37.createHash)("sha256").update(parts.join("\0")).digest("hex");
|
|
48141
48253
|
}
|
|
48254
|
+
function missingArtifactGap(binary2) {
|
|
48255
|
+
if (swiftBinaryOnDisk(binary2)) return null;
|
|
48256
|
+
return `${import_node_path71.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`;
|
|
48257
|
+
}
|
|
48142
48258
|
async function binaryStandins(binary2, toolchain, provided, behavior, frameworks, siblings) {
|
|
48143
48259
|
if (provided.has(binary2.target)) return [];
|
|
48144
|
-
|
|
48145
|
-
|
|
48260
|
+
const absent = missingArtifactGap(binary2);
|
|
48261
|
+
if (absent !== null) return absent;
|
|
48146
48262
|
import_node_fs72.default.mkdirSync(cacheDir4, { recursive: true });
|
|
48147
48263
|
const work = import_node_fs72.default.mkdtempSync(import_node_path71.default.join(cacheDir4, "work-"));
|
|
48148
48264
|
let all;
|
|
@@ -48194,7 +48310,7 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
48194
48310
|
].join("\0");
|
|
48195
48311
|
} else {
|
|
48196
48312
|
const artifact = xcframework(binary2);
|
|
48197
|
-
all = surfaces(artifact.dir);
|
|
48313
|
+
all = surfaces(artifact.dir, binary2.target);
|
|
48198
48314
|
digest3 = artifact.digest;
|
|
48199
48315
|
}
|
|
48200
48316
|
} catch (error) {
|
|
@@ -48213,7 +48329,8 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
48213
48329
|
);
|
|
48214
48330
|
hash.update(digest3);
|
|
48215
48331
|
hash.update([...siblings].sort().join("\0"));
|
|
48216
|
-
if (found.some((surface) => surface.kind === "mixed"
|
|
48332
|
+
if (found.some((surface) => surface.kind === "mixed" || surface.kind === "objc"))
|
|
48333
|
+
hash.update(frameworks.digest);
|
|
48217
48334
|
for (const surface of found) {
|
|
48218
48335
|
hash.update(`${surface.kind}\0${surface.module}\0`);
|
|
48219
48336
|
for (const file of surface.kind === "swift" ? [surface.interface] : surface.kind === "source" ? surface.sources : [
|
|
@@ -48290,7 +48407,9 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
48290
48407
|
binary2,
|
|
48291
48408
|
toolchain,
|
|
48292
48409
|
dir,
|
|
48293
|
-
new Map(Object.entries(configured.get(surface.module) ?? {}))
|
|
48410
|
+
new Map(Object.entries(configured.get(surface.module) ?? {})),
|
|
48411
|
+
frameworks,
|
|
48412
|
+
siblings
|
|
48294
48413
|
) : binary2.cxxHeaders ? await cxxStandin(surface, binary2, toolchain, dir) : cStandin(surface, binary2, toolchain, dir)
|
|
48295
48414
|
);
|
|
48296
48415
|
} catch (error) {
|
|
@@ -48313,6 +48432,19 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
48313
48432
|
return settle(result);
|
|
48314
48433
|
}
|
|
48315
48434
|
async function swiftStandins(binaries, toolchain, provided = /* @__PURE__ */ new Set(), behavior = {}) {
|
|
48435
|
+
const built2 = await buildStandins(binaries, toolchain, provided, behavior);
|
|
48436
|
+
return {
|
|
48437
|
+
standins: built2.standins,
|
|
48438
|
+
gaps: new Map([...built2.gaps].map(([target, gap]) => [target, gapText(gap)]))
|
|
48439
|
+
};
|
|
48440
|
+
}
|
|
48441
|
+
function gapText(gap) {
|
|
48442
|
+
const lines = gap.split("\n").map((line) => line.trim()).filter((line) => line && !/^[{[\]}",]/.test(line) && !/"kind":/.test(line));
|
|
48443
|
+
const errors = lines.filter((line) => /\berror:/.test(line));
|
|
48444
|
+
const text6 = (errors.length > 0 ? errors : lines).slice(0, 4).join("; ");
|
|
48445
|
+
return text6.length > 600 ? `${text6.slice(0, 600)}\u2026` : text6;
|
|
48446
|
+
}
|
|
48447
|
+
async function buildStandins(binaries, toolchain, provided, behavior) {
|
|
48316
48448
|
const requested = binaries.filter((binary2) => !provided.has(binary2.target));
|
|
48317
48449
|
if (requested.length === 0) return { standins: [], gaps: /* @__PURE__ */ new Map() };
|
|
48318
48450
|
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))
|
|
@@ -48322,6 +48454,7 @@ async function swiftStandins(binaries, toolchain, provided = /* @__PURE__ */ new
|
|
|
48322
48454
|
import_node_fs72.default.mkdirSync(cacheDir4, { recursive: true });
|
|
48323
48455
|
const modules = import_node_fs72.default.mkdtempSync(import_node_path71.default.join(cacheDir4, "modules-"));
|
|
48324
48456
|
const frameworkDirs = /* @__PURE__ */ new Set();
|
|
48457
|
+
const frameworkSurfaces = /* @__PURE__ */ new Map();
|
|
48325
48458
|
const frameworkInputs = [];
|
|
48326
48459
|
const byModule = new Map(
|
|
48327
48460
|
binaries.map((binary2) => [swiftTargetModuleName(binary2.target), binary2])
|
|
@@ -48345,16 +48478,26 @@ async function swiftStandins(binaries, toolchain, provided = /* @__PURE__ */ new
|
|
|
48345
48478
|
frameworkInputs.push(`${binary2.target}\0${artifact.digest}`);
|
|
48346
48479
|
const imports2 = /* @__PURE__ */ new Set();
|
|
48347
48480
|
interfaceImports.set(binary2, imports2);
|
|
48348
|
-
for (const surface of surfaces(artifact.dir)) {
|
|
48481
|
+
for (const surface of surfaces(artifact.dir, binary2.target)) {
|
|
48349
48482
|
byModule.set(surface.module, binary2);
|
|
48350
48483
|
if (surface.kind === "swift" || surface.kind === "mixed")
|
|
48351
48484
|
for (const module2 of swiftImportNames(
|
|
48352
48485
|
import_node_fs72.default.readFileSync(surface.interface, "utf8")
|
|
48353
48486
|
))
|
|
48354
48487
|
imports2.add(module2);
|
|
48488
|
+
if (surface.kind === "objc" || surface.kind === "mixed")
|
|
48489
|
+
for (const file of files(surface.headers, (name3) => name3.endsWith(".h")))
|
|
48490
|
+
for (const module2 of clangImportNames(
|
|
48491
|
+
import_node_fs72.default.readFileSync(import_node_path71.default.join(surface.headers, file), "utf8")
|
|
48492
|
+
))
|
|
48493
|
+
imports2.add(module2);
|
|
48355
48494
|
if (surface.kind === "c") continue;
|
|
48495
|
+
if (surface.kind === "objc" || surface.kind === "mixed")
|
|
48496
|
+
frameworkSurfaces.set(surface.module, surface);
|
|
48497
|
+
if (surface.kind !== "swift" && import_node_path71.default.basename(import_node_path71.default.dirname(surface.modulemap)) !== "Modules")
|
|
48498
|
+
continue;
|
|
48356
48499
|
frameworkDirs.add(
|
|
48357
|
-
surface.kind === "swift" ? import_node_path71.default.resolve(surface.interface, "../../../..") : import_node_path71.default.resolve(surface.
|
|
48500
|
+
surface.kind === "swift" ? import_node_path71.default.resolve(surface.interface, "../../../..") : import_node_path71.default.resolve(surface.headers, "../..")
|
|
48358
48501
|
);
|
|
48359
48502
|
}
|
|
48360
48503
|
} catch {
|
|
@@ -48363,7 +48506,8 @@ async function swiftStandins(binaries, toolchain, provided = /* @__PURE__ */ new
|
|
|
48363
48506
|
const generatedToolchain = { ...toolchain, standinModules: modules };
|
|
48364
48507
|
const frameworks = {
|
|
48365
48508
|
dirs: [...frameworkDirs].sort(),
|
|
48366
|
-
digest: (0, import_node_crypto37.createHash)("sha256").update(frameworkInputs.sort().join("\0")).digest("hex")
|
|
48509
|
+
digest: (0, import_node_crypto37.createHash)("sha256").update(frameworkInputs.sort().join("\0")).digest("hex"),
|
|
48510
|
+
surfaces: frameworkSurfaces
|
|
48367
48511
|
};
|
|
48368
48512
|
const siblings = new Map(
|
|
48369
48513
|
binaries.map((binary2) => [
|
|
@@ -62178,7 +62322,7 @@ async function nitroSupersetInputs(options) {
|
|
|
62178
62322
|
inputs[`provider:${name3}`] = `${packageVersion(root)}\0${await packageTreeDigest(root)}`;
|
|
62179
62323
|
return inputs;
|
|
62180
62324
|
}
|
|
62181
|
-
var NITRO_COMPILER_DIGEST = true ? "
|
|
62325
|
+
var NITRO_COMPILER_DIGEST = true ? "e08d3309819dfdf5f954d2989f492cc3d239958e8bcdbaad4bf0a6841a5b6b86" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
62182
62326
|
function readInputs(value) {
|
|
62183
62327
|
if (!isRecord(value)) return null;
|
|
62184
62328
|
const inputs = {};
|
|
@@ -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 __defProp = Object.defineProperty;
|
package/dist-lib/index.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 __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
|
|
|
@@ -19632,7 +19632,7 @@ var FOUNDATION_IMPLICIT_MODULES = [
|
|
|
19632
19632
|
var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
19633
19633
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
19634
19634
|
).join("");
|
|
19635
|
-
var compilerSourceDigest = true ? "
|
|
19635
|
+
var compilerSourceDigest = true ? "777d4db5d7a8d74f3fc33c50d60c04b62ad2fdce4bce2e2eec8c4e358d61ce92" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
19636
19636
|
var CORE_FOUNDATION_HANDLE_IMPORTS = [
|
|
19637
19637
|
"CFAllocator",
|
|
19638
19638
|
"CFArray",
|
|
@@ -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;
|
package/dist-lib/kotlin-host.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 __create = Object.create;
|
package/dist-lib/menu.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/menu.mjs
CHANGED