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 __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;
|
package/dist-lib/cloud.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/cloud.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1965 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/config.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/config.mjs
CHANGED
package/dist-lib/detox/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;
|
|
@@ -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;
|
|
@@ -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
|
|
|
@@ -11101,6 +11101,9 @@ function processRuns(pid) {
|
|
|
11101
11101
|
return error instanceof Error && "code" in error && error.code === "EPERM";
|
|
11102
11102
|
}
|
|
11103
11103
|
}
|
|
11104
|
+
function withoutCoreDump(file, args) {
|
|
11105
|
+
return ["/bin/sh", ["-c", 'ulimit -c 0; exec "$@"', "sh", file, ...args]];
|
|
11106
|
+
}
|
|
11104
11107
|
function swiftEnvironment(base = process.env) {
|
|
11105
11108
|
return {
|
|
11106
11109
|
...base,
|
|
@@ -11952,7 +11955,12 @@ function splitTopLevel(text5, separator) {
|
|
|
11952
11955
|
function emitSwiftStandin(sourceGraphs, options) {
|
|
11953
11956
|
const imported = new Set(options.imports);
|
|
11954
11957
|
const importedTypeModules = options.importedTypeModules ?? /* @__PURE__ */ new Map();
|
|
11955
|
-
const
|
|
11958
|
+
const ownIds = new Set(
|
|
11959
|
+
sourceGraphs.flatMap(
|
|
11960
|
+
(graph) => graph.symbols.map((symbol2) => symbol2.identifier.precise)
|
|
11961
|
+
)
|
|
11962
|
+
);
|
|
11963
|
+
const graphs = [...sourceGraphs, ...options.dependencyGraphs ?? []].map(
|
|
11956
11964
|
(graph) => qualifyImportedTypes(graph, imported, importedTypeModules)
|
|
11957
11965
|
);
|
|
11958
11966
|
const nativeObjcProtocols = objcProtocolsInSwiftSignatures(graphs);
|
|
@@ -12536,7 +12544,8 @@ function emitSwiftStandin(sourceGraphs, options) {
|
|
|
12536
12544
|
)
|
|
12537
12545
|
].filter((name3, at, all2) => all2.indexOf(name3) === at);
|
|
12538
12546
|
const parentSymbol = superId.has(id) ? byId.get(superId.get(id)) : void 0;
|
|
12539
|
-
if (!parentSymbol
|
|
12547
|
+
if (!parentSymbol || !ownIds.has(parentSymbol.identifier.precise))
|
|
12548
|
+
list2.push(standinMarker);
|
|
12540
12549
|
const open = symbol2.accessLevel === "open" && (!parentSymbol || parentSymbol.accessLevel === "open");
|
|
12541
12550
|
const objcName = /^c:objc\(cs\)(\w+)$/.exec(id)?.[1];
|
|
12542
12551
|
emit(
|
|
@@ -12886,7 +12895,9 @@ function emitSwiftStandin(sourceGraphs, options) {
|
|
|
12886
12895
|
return match ? [`${match[1]}|${LEADING_ATTRS.exec(text(symbol2))[2]}`] : [];
|
|
12887
12896
|
})
|
|
12888
12897
|
);
|
|
12889
|
-
const roots = [...byId.values()].filter(
|
|
12898
|
+
const roots = [...byId.values()].filter(
|
|
12899
|
+
(symbol2) => ownIds.has(symbol2.identifier.precise) && !owner.has(symbol2.identifier.precise) && !unavailable(symbol2)
|
|
12900
|
+
).filter((symbol2) => {
|
|
12890
12901
|
const name3 = /^c:@M@[^@]+@F@([^@]+)$/.exec(symbol2.identifier.precise)?.[1];
|
|
12891
12902
|
return !name3 || !cExports.has(`${name3}|${text(symbol2)}`);
|
|
12892
12903
|
}).sort((a, b) => pathOf(a).localeCompare(pathOf(b)));
|
|
@@ -12898,6 +12909,7 @@ function emitSwiftStandin(sourceGraphs, options) {
|
|
|
12898
12909
|
for (const [name3, members2] of [...external].sort(([a], [b]) => a.localeCompare(b))) {
|
|
12899
12910
|
const seen = /* @__PURE__ */ new Set();
|
|
12900
12911
|
const kept = members2.filter((member) => {
|
|
12912
|
+
if (!ownIds.has(member.identifier.precise)) return false;
|
|
12901
12913
|
const key2 = `${member.kind.identifier}|${text(member)}`;
|
|
12902
12914
|
if (unavailable(member) || seen.has(key2)) return false;
|
|
12903
12915
|
seen.add(key2);
|
|
@@ -13502,8 +13514,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
|
|
|
13502
13514
|
import_node_fs26.default.rmSync(out, { recursive: true, force: true });
|
|
13503
13515
|
import_node_fs26.default.mkdirSync(out, { recursive: true });
|
|
13504
13516
|
const run8 = (0, import_node_child_process13.spawnSync)(
|
|
13505
|
-
import_node_path23.default.join(toolchainBin, "swift-symbolgraph-extract"),
|
|
13506
|
-
[
|
|
13517
|
+
...withoutCoreDump(import_node_path23.default.join(toolchainBin, "swift-symbolgraph-extract"), [
|
|
13507
13518
|
"-module-name",
|
|
13508
13519
|
surface.module,
|
|
13509
13520
|
"-target",
|
|
@@ -13523,7 +13534,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
|
|
|
13523
13534
|
"-omit-extension-block-symbols",
|
|
13524
13535
|
"-output-dir",
|
|
13525
13536
|
out
|
|
13526
|
-
],
|
|
13537
|
+
]),
|
|
13527
13538
|
{ encoding: "utf8", env: swiftEnvironment(), maxBuffer: 256 * 1024 * 1024 }
|
|
13528
13539
|
);
|
|
13529
13540
|
if (run8.error) throw run8.error;
|
|
@@ -22153,7 +22164,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
22153
22164
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
22154
22165
|
var MULTI_MANIFEST_VERSION = 66;
|
|
22155
22166
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
22156
|
-
var compilerSourceDigest = true ? "
|
|
22167
|
+
var compilerSourceDigest = true ? "777d4db5d7a8d74f3fc33c50d60c04b62ad2fdce4bce2e2eec8c4e358d61ce92" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
22157
22168
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
22158
22169
|
const hash = (0, import_node_crypto17.createHash)("sha256");
|
|
22159
22170
|
hash.update(`swift-compile
|
|
@@ -31083,7 +31094,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
31083
31094
|
return hash.digest("hex");
|
|
31084
31095
|
}
|
|
31085
31096
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
31086
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
31097
|
+
var STANDIN_SOURCE_DIGEST = true ? "a7e1ecaaff6c8861c337b5c6049d14450807f5be059d246ba06f5abd6384bfe7" : standinSourceDigest();
|
|
31087
31098
|
|
|
31088
31099
|
// src/expoSwiftContract.ts
|
|
31089
31100
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -31413,7 +31424,7 @@ async function packageTreeDigest(root) {
|
|
|
31413
31424
|
|
|
31414
31425
|
// src/expo-native-prebuilt.ts
|
|
31415
31426
|
var EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
31416
|
-
var EXPO_NATIVE_COMPILER_DIGEST = true ? "
|
|
31427
|
+
var EXPO_NATIVE_COMPILER_DIGEST = true ? "ab9c7903d2e3e389e43c53ecfe515193e8c405cf1fef52b82d78ff570dc3ea8e" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
31417
31428
|
var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
31418
31429
|
function readSources(value) {
|
|
31419
31430
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -32414,6 +32425,11 @@ function resolveSwiftPackages(options) {
|
|
|
32414
32425
|
if (claimed.has(key2)) return true;
|
|
32415
32426
|
const target = pkg.manifest.targets.get(name3);
|
|
32416
32427
|
if (!target || target.type !== "regular" || placeholderPackage(pkg)) return false;
|
|
32428
|
+
const files2 = swiftTargetFiles(pkg.manifest, target);
|
|
32429
|
+
if (files2.every(
|
|
32430
|
+
(file) => file.endsWith(".swift") && import_node_fs62.default.readFileSync(file, "utf8").trim() === ""
|
|
32431
|
+
))
|
|
32432
|
+
return false;
|
|
32417
32433
|
claimed.add(key2);
|
|
32418
32434
|
provided.delete(name3);
|
|
32419
32435
|
for (const dependency of target.dependencies) {
|
|
@@ -32521,7 +32537,7 @@ function resolveSwiftPackages(options) {
|
|
|
32521
32537
|
if (provided.has(name3) && placeholderPackage(pkg)) return;
|
|
32522
32538
|
for (const dependency of pkg.manifest.targets.get(name3)?.dependencies ?? []) {
|
|
32523
32539
|
if (dependency.kind === "target") visit3(pkg, dependency.name);
|
|
32524
|
-
else {
|
|
32540
|
+
else if (!provided.has(dependency.name)) {
|
|
32525
32541
|
const nested = dependencyPackage(pkg, dependency);
|
|
32526
32542
|
if (nested && typeof nested !== "string")
|
|
32527
32543
|
for (const root of nested.manifest.products.get(dependency.name)?.targets ?? [])
|
|
@@ -32530,6 +32546,7 @@ function resolveSwiftPackages(options) {
|
|
|
32530
32546
|
}
|
|
32531
32547
|
};
|
|
32532
32548
|
for (const { product, source } of listed) {
|
|
32549
|
+
if (provided.has(product)) continue;
|
|
32533
32550
|
const pkg = source.kind === "unnamed" ? unnamed(source, product) : packages.get(sourceKey(source));
|
|
32534
32551
|
if (!pkg || typeof pkg === "string") continue;
|
|
32535
32552
|
for (const root of pkg.manifest.products.get(product)?.targets ?? [])
|
|
@@ -33308,11 +33325,11 @@ ${uikit}${body}`
|
|
|
33308
33325
|
function binaryHeaderSearchPaths(binary2, root, declaredFrameworks) {
|
|
33309
33326
|
const artifact = xcframework(binary2);
|
|
33310
33327
|
const slice = simulatorSlice(artifact.dir);
|
|
33311
|
-
const found = surfaces(artifact.dir, slice);
|
|
33328
|
+
const found = surfaces(artifact.dir, binary2.target, slice);
|
|
33312
33329
|
const frameworks = [
|
|
33313
33330
|
...new Set(
|
|
33314
33331
|
found.flatMap(
|
|
33315
|
-
(surface) => "modulemap" in surface && import_node_path64.default.basename(import_node_path64.default.dirname(surface.modulemap)) === "Modules" ? [import_node_path64.default.dirname(
|
|
33332
|
+
(surface) => "modulemap" in surface && import_node_path64.default.basename(import_node_path64.default.dirname(surface.modulemap)) === "Modules" ? [import_node_path64.default.dirname(surface.headers)] : []
|
|
33316
33333
|
)
|
|
33317
33334
|
)
|
|
33318
33335
|
];
|
|
@@ -33377,8 +33394,21 @@ function binaryHeaderSearchPaths(binary2, root, declaredFrameworks) {
|
|
|
33377
33394
|
import_node_path64.default.join(pending, "frameworks", import_node_path64.default.basename(framework), part),
|
|
33378
33395
|
{ recursive: true, dereference: true }
|
|
33379
33396
|
);
|
|
33397
|
+
const surface = found.find(
|
|
33398
|
+
(item) => "headers" in item && import_node_path64.default.dirname(item.headers) === framework
|
|
33399
|
+
);
|
|
33400
|
+
if (surface && "modulemap" in surface) {
|
|
33401
|
+
const modules = import_node_path64.default.join(
|
|
33402
|
+
pending,
|
|
33403
|
+
"frameworks",
|
|
33404
|
+
import_node_path64.default.basename(framework),
|
|
33405
|
+
"Modules"
|
|
33406
|
+
);
|
|
33407
|
+
import_node_fs66.default.mkdirSync(modules, { recursive: true });
|
|
33408
|
+
import_node_fs66.default.copyFileSync(surface.modulemap, import_node_path64.default.join(modules, "module.modulemap"));
|
|
33409
|
+
}
|
|
33380
33410
|
}
|
|
33381
|
-
for (const [index, directory] of headers.entries())
|
|
33411
|
+
for (const [index, directory] of headers.entries()) {
|
|
33382
33412
|
import_node_fs66.default.cpSync(directory, import_node_path64.default.join(pending, "headers", String(index)), {
|
|
33383
33413
|
recursive: true,
|
|
33384
33414
|
dereference: true,
|
|
@@ -33386,6 +33416,15 @@ function binaryHeaderSearchPaths(binary2, root, declaredFrameworks) {
|
|
|
33386
33416
|
filter: (source) => import_node_fs66.default.statSync(source).isDirectory() ? import_node_path64.default.dirname(source) !== directory || !import_node_path64.default.basename(source).startsWith("ios-") : !isBinaryLibraryFile(source)
|
|
33387
33417
|
} : {}
|
|
33388
33418
|
});
|
|
33419
|
+
const surface = found.find(
|
|
33420
|
+
(item) => "headers" in item && item.headers === directory
|
|
33421
|
+
);
|
|
33422
|
+
if (surface && "modulemap" in surface)
|
|
33423
|
+
import_node_fs66.default.copyFileSync(
|
|
33424
|
+
surface.modulemap,
|
|
33425
|
+
import_node_path64.default.join(pending, "headers", String(index), "module.modulemap")
|
|
33426
|
+
);
|
|
33427
|
+
}
|
|
33389
33428
|
const contents = (0, import_node_crypto32.createHash)("sha256");
|
|
33390
33429
|
for (const relative3 of import_node_fs66.default.readdirSync(pending, { recursive: true, encoding: "utf8" }).sort()) {
|
|
33391
33430
|
const file = import_node_path64.default.join(pending, relative3);
|
|
@@ -33441,7 +33480,7 @@ function simulatorSlice(xcframeworkDir) {
|
|
|
33441
33480
|
const slice = import_node_fs66.default.readdirSync(xcframeworkDir).filter((name3) => /^ios-.+-simulator$/.test(name3)).sort()[0];
|
|
33442
33481
|
return slice ? import_node_path64.default.join(xcframeworkDir, slice) : null;
|
|
33443
33482
|
}
|
|
33444
|
-
function surfaces(xcframeworkDir, slice = simulatorSlice(xcframeworkDir)) {
|
|
33483
|
+
function surfaces(xcframeworkDir, target, slice = simulatorSlice(xcframeworkDir)) {
|
|
33445
33484
|
const standaloneMap = import_node_path64.default.join(xcframeworkDir, "module.modulemap");
|
|
33446
33485
|
if (import_node_fs66.default.existsSync(standaloneMap)) {
|
|
33447
33486
|
const module2 = moduleMapName(import_node_fs66.default.readFileSync(standaloneMap, "utf8"));
|
|
@@ -33462,7 +33501,16 @@ function surfaces(xcframeworkDir, slice = simulatorSlice(xcframeworkDir)) {
|
|
|
33462
33501
|
(name3) => name3.endsWith(".swiftinterface") && !name3.endsWith(".private.swiftinterface") && !name3.endsWith(".package.swiftinterface")
|
|
33463
33502
|
);
|
|
33464
33503
|
const chosen = interfaces.find((name3) => name3.startsWith("arm64-")) ?? interfaces[0] ?? null;
|
|
33465
|
-
|
|
33504
|
+
let modulemap = import_node_path64.default.join(framework, "Modules", "module.modulemap");
|
|
33505
|
+
const headers2 = import_node_path64.default.join(framework, "Headers");
|
|
33506
|
+
if (!import_node_fs66.default.existsSync(modulemap) && files(headers2, (name3) => name3.endsWith(".h")).length) {
|
|
33507
|
+
const umbrella = import_node_fs66.default.existsSync(import_node_path64.default.join(headers2, `${module2}.h`)) ? `umbrella header "${module2}.h"` : 'umbrella "Headers"';
|
|
33508
|
+
modulemap = generatedModuleMap(
|
|
33509
|
+
`framework module ${module2} { ${umbrella} export * module * { export * } }
|
|
33510
|
+
`,
|
|
33511
|
+
true
|
|
33512
|
+
);
|
|
33513
|
+
}
|
|
33466
33514
|
if (chosen) {
|
|
33467
33515
|
const privateInterface = import_node_path64.default.join(
|
|
33468
33516
|
swiftmodule,
|
|
@@ -33494,8 +33542,33 @@ function surfaces(xcframeworkDir, slice = simulatorSlice(xcframeworkDir)) {
|
|
|
33494
33542
|
const module2 = moduleMapName(import_node_fs66.default.readFileSync(modulemap, "utf8"));
|
|
33495
33543
|
if (module2) found.push(headerSurface(module2, modulemap, import_node_path64.default.dirname(modulemap)));
|
|
33496
33544
|
}
|
|
33545
|
+
if (found.length === 0 && files(headers, (name3) => name3.endsWith(".h")).length) {
|
|
33546
|
+
const module2 = swiftTargetModuleName(target);
|
|
33547
|
+
const modulemap = generatedModuleMap(
|
|
33548
|
+
`module ${module2} { umbrella "." export * }
|
|
33549
|
+
`,
|
|
33550
|
+
false
|
|
33551
|
+
);
|
|
33552
|
+
found.push(headerSurface(module2, modulemap, headers));
|
|
33553
|
+
}
|
|
33497
33554
|
return found;
|
|
33498
33555
|
}
|
|
33556
|
+
function generatedModuleMap(text5, framework) {
|
|
33557
|
+
const dir = import_node_path64.default.join(
|
|
33558
|
+
cacheDir4,
|
|
33559
|
+
"modulemaps",
|
|
33560
|
+
key(text5),
|
|
33561
|
+
framework ? "Modules" : "Headers"
|
|
33562
|
+
);
|
|
33563
|
+
import_node_fs66.default.mkdirSync(dir, { recursive: true });
|
|
33564
|
+
const file = import_node_path64.default.join(dir, "module.modulemap");
|
|
33565
|
+
if (!import_node_fs66.default.existsSync(file)) {
|
|
33566
|
+
const pending = `${file}.${process.pid}.tmp`;
|
|
33567
|
+
import_node_fs66.default.writeFileSync(pending, text5);
|
|
33568
|
+
import_node_fs66.default.renameSync(pending, file);
|
|
33569
|
+
}
|
|
33570
|
+
return file;
|
|
33571
|
+
}
|
|
33499
33572
|
function peachModuleDirs(toolchain, imports2, sdkIncludes) {
|
|
33500
33573
|
const { moduleRoot, toolchainBin } = toolchain;
|
|
33501
33574
|
if (swiftDistributionAt(moduleRoot)) return [import_node_path64.default.join(moduleRoot, "modules")];
|
|
@@ -33638,22 +33711,24 @@ function swiftStandin(surface, binary2, toolchain, work, behavior, siblings) {
|
|
|
33638
33711
|
symbolgraphWasm.push(wasm[index]);
|
|
33639
33712
|
}
|
|
33640
33713
|
symbolgraphWasm.push("-Xcc", "-Xclang", "-Xcc", "-fmodule-format=raw");
|
|
33641
|
-
exec(
|
|
33642
|
-
"-
|
|
33643
|
-
|
|
33644
|
-
|
|
33645
|
-
|
|
33646
|
-
|
|
33647
|
-
|
|
33648
|
-
|
|
33649
|
-
|
|
33650
|
-
|
|
33651
|
-
|
|
33652
|
-
|
|
33653
|
-
|
|
33654
|
-
|
|
33655
|
-
|
|
33656
|
-
|
|
33714
|
+
exec(
|
|
33715
|
+
...withoutCoreDump(import_node_path64.default.join(toolchain.toolchainBin, "swift-symbolgraph-extract"), [
|
|
33716
|
+
"-module-name",
|
|
33717
|
+
surface.module,
|
|
33718
|
+
...symbolgraphWasm,
|
|
33719
|
+
"-I",
|
|
33720
|
+
search,
|
|
33721
|
+
// at public the graph drops underscored public declarations, which other
|
|
33722
|
+
// public ones name; the emitter keeps only public and open symbols
|
|
33723
|
+
"-minimum-access-level",
|
|
33724
|
+
"internal",
|
|
33725
|
+
"-include-spi-symbols",
|
|
33726
|
+
"-skip-synthesized-members",
|
|
33727
|
+
"-omit-extension-block-symbols",
|
|
33728
|
+
"-output-dir",
|
|
33729
|
+
out
|
|
33730
|
+
])
|
|
33731
|
+
);
|
|
33657
33732
|
const graphs = import_node_fs66.default.readdirSync(out).filter((name3) => name3.endsWith(".symbols.json")).sort().map((name3) => JSON.parse(import_node_fs66.default.readFileSync(import_node_path64.default.join(out, name3), "utf8")));
|
|
33658
33733
|
const supplemented = synthesizedInterfaceEnums(text5, surface.module, graphs);
|
|
33659
33734
|
restoreSwiftInterfaceSPI(text5, surface.module, graphs);
|
|
@@ -33917,18 +33992,39 @@ function wasmFlags(toolchain, imports2) {
|
|
|
33917
33992
|
...toolchain.standinModules ? ["-I", toolchain.standinModules] : []
|
|
33918
33993
|
];
|
|
33919
33994
|
}
|
|
33920
|
-
function objcStandin(surface, binary2, toolchain, work, behavior) {
|
|
33995
|
+
function objcStandin(surface, binary2, toolchain, work, behavior, frameworks, siblings) {
|
|
33921
33996
|
const view = objcView(
|
|
33922
33997
|
surface,
|
|
33923
33998
|
toolchain.toolchainBin,
|
|
33924
33999
|
import_node_path64.default.join(toolchain.moduleRoot, "ios-simulator-stdlib"),
|
|
33925
34000
|
cacheDir4,
|
|
33926
|
-
import_node_path64.default.join(work, "objc")
|
|
34001
|
+
import_node_path64.default.join(work, "objc"),
|
|
34002
|
+
void 0,
|
|
34003
|
+
frameworks.dirs
|
|
33927
34004
|
);
|
|
33928
34005
|
const provided = new Set(swiftPeachModules(toolchain.moduleRoot));
|
|
33929
34006
|
const headerModules = view.imports.filter(
|
|
33930
|
-
(name3) => !STANDIN_IMPORTS.includes(name3) && provided.has(name3)
|
|
34007
|
+
(name3) => !STANDIN_IMPORTS.includes(name3) && (provided.has(name3) || siblings.has(name3))
|
|
33931
34008
|
);
|
|
34009
|
+
const dependencyGraphs = headerModules.flatMap((module2) => {
|
|
34010
|
+
const dependency = frameworks.surfaces.get(module2);
|
|
34011
|
+
if (!dependency || module2 === surface.module) return [];
|
|
34012
|
+
return objcView(
|
|
34013
|
+
{
|
|
34014
|
+
module: dependency.module,
|
|
34015
|
+
modulemap: dependency.modulemap,
|
|
34016
|
+
headers: dependency.headers
|
|
34017
|
+
},
|
|
34018
|
+
toolchain.toolchainBin,
|
|
34019
|
+
import_node_path64.default.join(toolchain.moduleRoot, "ios-simulator-stdlib"),
|
|
34020
|
+
cacheDir4,
|
|
34021
|
+
import_node_path64.default.join(work, "dependencies", module2),
|
|
34022
|
+
void 0,
|
|
34023
|
+
frameworks.dirs.filter(
|
|
34024
|
+
(dir) => !import_node_fs66.default.existsSync(import_node_path64.default.join(dir, `${module2}.framework`))
|
|
34025
|
+
)
|
|
34026
|
+
).graphs;
|
|
34027
|
+
});
|
|
33932
34028
|
return graphStandin(
|
|
33933
34029
|
surface.module,
|
|
33934
34030
|
view.graphs,
|
|
@@ -33945,12 +34041,18 @@ function objcStandin(surface, binary2, toolchain, work, behavior) {
|
|
|
33945
34041
|
(dependency) => swiftTargetModuleName(dependency.module)
|
|
33946
34042
|
) ?? []
|
|
33947
34043
|
])
|
|
33948
|
-
]
|
|
34044
|
+
],
|
|
34045
|
+
false,
|
|
34046
|
+
/* @__PURE__ */ new Map(),
|
|
34047
|
+
null,
|
|
34048
|
+
/* @__PURE__ */ new Map(),
|
|
34049
|
+
/* @__PURE__ */ new Map(),
|
|
34050
|
+
dependencyGraphs
|
|
33949
34051
|
);
|
|
33950
34052
|
}
|
|
33951
34053
|
var OBJC_UNREPRESENTABLE = "cannot be marked '@objc' because its type cannot be represented in Objective-C";
|
|
33952
34054
|
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/;
|
|
33953
|
-
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()) {
|
|
34055
|
+
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 = []) {
|
|
33954
34056
|
const paths = new Set(
|
|
33955
34057
|
graphs.flatMap(
|
|
33956
34058
|
(graph) => graph.symbols.map((symbol2) => symbol2.pathComponents.join("."))
|
|
@@ -34006,6 +34108,7 @@ function graphStandin(module2, graphs, values, wasm, binary2, toolchain, work, b
|
|
|
34006
34108
|
objcProperties,
|
|
34007
34109
|
inheritedConformances,
|
|
34008
34110
|
projections,
|
|
34111
|
+
dependencyGraphs,
|
|
34009
34112
|
...placeholder ? { exported: placeholder.exported, placeholder: binary2.placeholder.gap } : {}
|
|
34010
34113
|
});
|
|
34011
34114
|
for (const entry of skipped) {
|
|
@@ -34682,6 +34785,11 @@ async function sourceStandins(binaries, toolchain, provided, behavior) {
|
|
|
34682
34785
|
}))
|
|
34683
34786
|
});
|
|
34684
34787
|
} else {
|
|
34788
|
+
const absent = missingArtifactGap(binary2);
|
|
34789
|
+
if (absent !== null) {
|
|
34790
|
+
gaps.set(binary2.target, absent);
|
|
34791
|
+
continue;
|
|
34792
|
+
}
|
|
34685
34793
|
const resolved = xcframework(binary2);
|
|
34686
34794
|
const dir = import_node_path64.default.join(artifact, String(index), import_node_path64.default.basename(resolved.dir));
|
|
34687
34795
|
import_node_fs66.default.cpSync(resolved.dir, dir, { recursive: true, dereference: true });
|
|
@@ -34818,7 +34926,9 @@ function standinGenerationInputs(binaries, toolchain, behavior = {}, sourceDir)
|
|
|
34818
34926
|
const modules = new Set(
|
|
34819
34927
|
binaries.flatMap((binary2) => {
|
|
34820
34928
|
try {
|
|
34821
|
-
return binary2.publicHeaders !== void 0 || binary2.placeholder !== void 0 ? [swiftTargetModuleName(binary2.target)] : surfaces(xcframework(binary2).dir).map(
|
|
34929
|
+
return binary2.publicHeaders !== void 0 || binary2.placeholder !== void 0 ? [swiftTargetModuleName(binary2.target)] : surfaces(xcframework(binary2).dir, binary2.target).map(
|
|
34930
|
+
(surface) => surface.module
|
|
34931
|
+
);
|
|
34822
34932
|
} catch {
|
|
34823
34933
|
return [];
|
|
34824
34934
|
}
|
|
@@ -34851,7 +34961,9 @@ function standinGenerationInputs(binaries, toolchain, behavior = {}, sourceDir)
|
|
|
34851
34961
|
if (binary2.publicHeaders !== void 0 && swiftTargetModuleName(binary2.target) !== binary2.target)
|
|
34852
34962
|
parts.push(`module/${swiftTargetModuleName(binary2.target)}`);
|
|
34853
34963
|
try {
|
|
34854
|
-
if (binary2.publicHeaders === void 0 && surfaces(xcframework(binary2).dir).some(
|
|
34964
|
+
if (binary2.publicHeaders === void 0 && surfaces(xcframework(binary2).dir, binary2.target).some(
|
|
34965
|
+
(surface) => surface.kind === "swift"
|
|
34966
|
+
))
|
|
34855
34967
|
parts.push(`interface-emulation/${WASI_EMULATION.join(",")}`);
|
|
34856
34968
|
parts.push(
|
|
34857
34969
|
binary2.target,
|
|
@@ -34879,10 +34991,14 @@ function standinGenerationInputs(binaries, toolchain, behavior = {}, sourceDir)
|
|
|
34879
34991
|
}
|
|
34880
34992
|
return (0, import_node_crypto32.createHash)("sha256").update(parts.join("\0")).digest("hex");
|
|
34881
34993
|
}
|
|
34994
|
+
function missingArtifactGap(binary2) {
|
|
34995
|
+
if (swiftBinaryOnDisk(binary2)) return null;
|
|
34996
|
+
return `${import_node_path64.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`;
|
|
34997
|
+
}
|
|
34882
34998
|
async function binaryStandins(binary2, toolchain, provided, behavior, frameworks, siblings) {
|
|
34883
34999
|
if (provided.has(binary2.target)) return [];
|
|
34884
|
-
|
|
34885
|
-
|
|
35000
|
+
const absent = missingArtifactGap(binary2);
|
|
35001
|
+
if (absent !== null) return absent;
|
|
34886
35002
|
import_node_fs66.default.mkdirSync(cacheDir4, { recursive: true });
|
|
34887
35003
|
const work = import_node_fs66.default.mkdtempSync(import_node_path64.default.join(cacheDir4, "work-"));
|
|
34888
35004
|
let all;
|
|
@@ -34934,7 +35050,7 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
34934
35050
|
].join("\0");
|
|
34935
35051
|
} else {
|
|
34936
35052
|
const artifact = xcframework(binary2);
|
|
34937
|
-
all = surfaces(artifact.dir);
|
|
35053
|
+
all = surfaces(artifact.dir, binary2.target);
|
|
34938
35054
|
digest2 = artifact.digest;
|
|
34939
35055
|
}
|
|
34940
35056
|
} catch (error) {
|
|
@@ -34953,7 +35069,8 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
34953
35069
|
);
|
|
34954
35070
|
hash.update(digest2);
|
|
34955
35071
|
hash.update([...siblings].sort().join("\0"));
|
|
34956
|
-
if (found.some((surface) => surface.kind === "mixed"
|
|
35072
|
+
if (found.some((surface) => surface.kind === "mixed" || surface.kind === "objc"))
|
|
35073
|
+
hash.update(frameworks.digest);
|
|
34957
35074
|
for (const surface of found) {
|
|
34958
35075
|
hash.update(`${surface.kind}\0${surface.module}\0`);
|
|
34959
35076
|
for (const file of surface.kind === "swift" ? [surface.interface] : surface.kind === "source" ? surface.sources : [
|
|
@@ -35030,7 +35147,9 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
35030
35147
|
binary2,
|
|
35031
35148
|
toolchain,
|
|
35032
35149
|
dir,
|
|
35033
|
-
new Map(Object.entries(configured.get(surface.module) ?? {}))
|
|
35150
|
+
new Map(Object.entries(configured.get(surface.module) ?? {})),
|
|
35151
|
+
frameworks,
|
|
35152
|
+
siblings
|
|
35034
35153
|
) : binary2.cxxHeaders ? await cxxStandin(surface, binary2, toolchain, dir) : cStandin(surface, binary2, toolchain, dir)
|
|
35035
35154
|
);
|
|
35036
35155
|
} catch (error) {
|
|
@@ -35053,6 +35172,19 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
35053
35172
|
return settle(result);
|
|
35054
35173
|
}
|
|
35055
35174
|
async function swiftStandins(binaries, toolchain, provided = /* @__PURE__ */ new Set(), behavior = {}) {
|
|
35175
|
+
const built2 = await buildStandins(binaries, toolchain, provided, behavior);
|
|
35176
|
+
return {
|
|
35177
|
+
standins: built2.standins,
|
|
35178
|
+
gaps: new Map([...built2.gaps].map(([target, gap]) => [target, gapText(gap)]))
|
|
35179
|
+
};
|
|
35180
|
+
}
|
|
35181
|
+
function gapText(gap) {
|
|
35182
|
+
const lines = gap.split("\n").map((line) => line.trim()).filter((line) => line && !/^[{[\]}",]/.test(line) && !/"kind":/.test(line));
|
|
35183
|
+
const errors = lines.filter((line) => /\berror:/.test(line));
|
|
35184
|
+
const text5 = (errors.length > 0 ? errors : lines).slice(0, 4).join("; ");
|
|
35185
|
+
return text5.length > 600 ? `${text5.slice(0, 600)}\u2026` : text5;
|
|
35186
|
+
}
|
|
35187
|
+
async function buildStandins(binaries, toolchain, provided, behavior) {
|
|
35056
35188
|
const requested = binaries.filter((binary2) => !provided.has(binary2.target));
|
|
35057
35189
|
if (requested.length === 0) return { standins: [], gaps: /* @__PURE__ */ new Map() };
|
|
35058
35190
|
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))
|
|
@@ -35062,6 +35194,7 @@ async function swiftStandins(binaries, toolchain, provided = /* @__PURE__ */ new
|
|
|
35062
35194
|
import_node_fs66.default.mkdirSync(cacheDir4, { recursive: true });
|
|
35063
35195
|
const modules = import_node_fs66.default.mkdtempSync(import_node_path64.default.join(cacheDir4, "modules-"));
|
|
35064
35196
|
const frameworkDirs = /* @__PURE__ */ new Set();
|
|
35197
|
+
const frameworkSurfaces = /* @__PURE__ */ new Map();
|
|
35065
35198
|
const frameworkInputs = [];
|
|
35066
35199
|
const byModule = new Map(
|
|
35067
35200
|
binaries.map((binary2) => [swiftTargetModuleName(binary2.target), binary2])
|
|
@@ -35085,16 +35218,26 @@ async function swiftStandins(binaries, toolchain, provided = /* @__PURE__ */ new
|
|
|
35085
35218
|
frameworkInputs.push(`${binary2.target}\0${artifact.digest}`);
|
|
35086
35219
|
const imports2 = /* @__PURE__ */ new Set();
|
|
35087
35220
|
interfaceImports.set(binary2, imports2);
|
|
35088
|
-
for (const surface of surfaces(artifact.dir)) {
|
|
35221
|
+
for (const surface of surfaces(artifact.dir, binary2.target)) {
|
|
35089
35222
|
byModule.set(surface.module, binary2);
|
|
35090
35223
|
if (surface.kind === "swift" || surface.kind === "mixed")
|
|
35091
35224
|
for (const module2 of swiftImportNames(
|
|
35092
35225
|
import_node_fs66.default.readFileSync(surface.interface, "utf8")
|
|
35093
35226
|
))
|
|
35094
35227
|
imports2.add(module2);
|
|
35228
|
+
if (surface.kind === "objc" || surface.kind === "mixed")
|
|
35229
|
+
for (const file of files(surface.headers, (name3) => name3.endsWith(".h")))
|
|
35230
|
+
for (const module2 of clangImportNames(
|
|
35231
|
+
import_node_fs66.default.readFileSync(import_node_path64.default.join(surface.headers, file), "utf8")
|
|
35232
|
+
))
|
|
35233
|
+
imports2.add(module2);
|
|
35095
35234
|
if (surface.kind === "c") continue;
|
|
35235
|
+
if (surface.kind === "objc" || surface.kind === "mixed")
|
|
35236
|
+
frameworkSurfaces.set(surface.module, surface);
|
|
35237
|
+
if (surface.kind !== "swift" && import_node_path64.default.basename(import_node_path64.default.dirname(surface.modulemap)) !== "Modules")
|
|
35238
|
+
continue;
|
|
35096
35239
|
frameworkDirs.add(
|
|
35097
|
-
surface.kind === "swift" ? import_node_path64.default.resolve(surface.interface, "../../../..") : import_node_path64.default.resolve(surface.
|
|
35240
|
+
surface.kind === "swift" ? import_node_path64.default.resolve(surface.interface, "../../../..") : import_node_path64.default.resolve(surface.headers, "../..")
|
|
35098
35241
|
);
|
|
35099
35242
|
}
|
|
35100
35243
|
} catch {
|
|
@@ -35103,7 +35246,8 @@ async function swiftStandins(binaries, toolchain, provided = /* @__PURE__ */ new
|
|
|
35103
35246
|
const generatedToolchain = { ...toolchain, standinModules: modules };
|
|
35104
35247
|
const frameworks = {
|
|
35105
35248
|
dirs: [...frameworkDirs].sort(),
|
|
35106
|
-
digest: (0, import_node_crypto32.createHash)("sha256").update(frameworkInputs.sort().join("\0")).digest("hex")
|
|
35249
|
+
digest: (0, import_node_crypto32.createHash)("sha256").update(frameworkInputs.sort().join("\0")).digest("hex"),
|
|
35250
|
+
surfaces: frameworkSurfaces
|
|
35107
35251
|
};
|
|
35108
35252
|
const siblings = new Map(
|
|
35109
35253
|
binaries.map((binary2) => [
|
|
@@ -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/home-paths.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;
|