peachsim 0.1.2182 → 0.1.2185
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/outbound-endpoints.ts +11 -1
- 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 +321 -31
- 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 +288 -26
- 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 +314 -31
- package/dist-lib/host/fetch-proxy-handler.cjs +7 -4
- 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 +7 -4
- 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 +7 -4
- package/dist-lib/native-app-identity-project.cjs +6 -3
- package/dist-lib/native-app-identity-project.mjs +6 -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 +25 -24
- package/dist-lib/public-origins-lib.json +63 -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 +321 -31
- package/dist-lib/swift-compile.cjs +2 -2
- package/dist-lib/swift-compile.mjs +2 -2
- package/dist-lib/swift-package.cjs +26 -1
- package/dist-lib/swift-package.mjs +25 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +286 -24
- package/dist-lib/vite.cjs +7 -4
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/package.json +1 -1
- package/sdk/ios/System/Library/Frameworks/ActivityKit.framework/Headers/ActivityKit.h +1 -0
- package/sdk/ios/System/Library/Frameworks/ActivityKit.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/usr/lib/swift/ActivityKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +14 -0
- package/sdk/ios/usr/lib/swift/CoreGraphics.swiftmodule/arm64-apple-ios-simulator.swiftinterface +14 -0
- package/sdk/ios/usr/lib/swift/Dispatch.swiftmodule/arm64-apple-ios-simulator.swiftinterface +3 -0
- package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface +147 -16
- package/sdk/ios/usr/lib/swift/UIKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +5 -0
- package/src/expo-native-workspace.ts +2 -1
- package/src/swift-interface-bodies.ts +165 -0
- package/src/swift-objc-standin.ts +73 -13
- package/src/swift-package.ts +26 -0
- package/src/swift-source-pods.ts +27 -4
- package/src/swift-standin-emit.ts +30 -3
- package/src/swift-standins.ts +75 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2185 | (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": "bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1", "swift-coverage/source.ts": "c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee", "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": "
|
|
42
|
+
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1", "swift-coverage/source.ts": "c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "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": "338cfef9a34a930206ac2e1a8a90b85c8d61f776d9a41e6445dc18e0c5385cdb", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "65a0698bf022ace2f4254f3f891828dedf403d61c102238e242084a2279e04eb", "home-paths.ts": "f5583b61f8bdd81823b3b29ff519a48daf9993719f194ddb7de22218472e90f9", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "5f41cd0bd86cb0cffbfb0047348b963f81d5e51cb0e8dd574c739b1a27aa56de", "xcode-target-members.ts": "ad7589132bffab265e8a10b64e24484fe88b4a2b1cc0ee19a97f151a002eca77", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -12080,7 +12080,7 @@ var init_swift_standin_digest = __esm({
|
|
|
12080
12080
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
12081
12081
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
12082
12082
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
12083
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
12083
|
+
STANDIN_SOURCE_DIGEST = true ? "0981767eef4ad46fe5cb602ee15f1de9ea06dac3a2edb4dab0f6d5279b018a3b" : standinSourceDigest();
|
|
12084
12084
|
}
|
|
12085
12085
|
});
|
|
12086
12086
|
|
|
@@ -12362,7 +12362,7 @@ var init_nitro_superset = __esm({
|
|
|
12362
12362
|
init_nitroContract();
|
|
12363
12363
|
init_swift_standin_digest();
|
|
12364
12364
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
12365
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
12365
|
+
NITRO_COMPILER_DIGEST = true ? "f02c3ec3fd9a77d144224ecf36dbf177c3878f12158689dcd8dcd6347e72ca55" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
12366
12366
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
12367
12367
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
12368
12368
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -22132,6 +22132,29 @@ function moduleMapName(text6) {
|
|
|
22132
22132
|
);
|
|
22133
22133
|
return index < 0 ? void 0 : tokens2[index + 1];
|
|
22134
22134
|
}
|
|
22135
|
+
function moduleMapModules(text6) {
|
|
22136
|
+
const modules = [];
|
|
22137
|
+
const token = /\/\*[\s\S]*?\*\/|\/\/[^\n]*|"[^"]*"|\{|\}|\bmodule\s+([\w.]+)/g;
|
|
22138
|
+
let depth = 0;
|
|
22139
|
+
let start = -1;
|
|
22140
|
+
let name3 = "";
|
|
22141
|
+
for (const match of text6.matchAll(token)) {
|
|
22142
|
+
if (match[0] === "{") depth++;
|
|
22143
|
+
else if (match[0] === "}") {
|
|
22144
|
+
depth--;
|
|
22145
|
+
if (depth === 0 && start >= 0) {
|
|
22146
|
+
modules.push({ name: name3, text: text6.slice(start, match.index + 1) });
|
|
22147
|
+
start = -1;
|
|
22148
|
+
}
|
|
22149
|
+
} else if (match[1] !== void 0 && depth === 0) {
|
|
22150
|
+
const before = text6.slice(0, match.index).trimEnd();
|
|
22151
|
+
if (/\bextern$/.test(before)) continue;
|
|
22152
|
+
start = match.index;
|
|
22153
|
+
name3 = match[1];
|
|
22154
|
+
}
|
|
22155
|
+
}
|
|
22156
|
+
return modules;
|
|
22157
|
+
}
|
|
22135
22158
|
function swiftTargetModuleName(name3) {
|
|
22136
22159
|
return name3.replace(/[^A-Za-z0-9_]/g, "_").replace(/^[0-9]/, "_");
|
|
22137
22160
|
}
|
|
@@ -25460,6 +25483,137 @@ var import_node_fs34 = __toESM(require("node:fs"), 1);
|
|
|
25460
25483
|
var import_node_path32 = __toESM(require("node:path"), 1);
|
|
25461
25484
|
init_is_record();
|
|
25462
25485
|
|
|
25486
|
+
// src/swift-interface-bodies.ts
|
|
25487
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
25488
|
+
var INLINE_ATTRIBUTE = /@(?:inlinable|_alwaysEmitIntoClient|_transparent|inline\(__always\)|_effects\([^()]*\)|_specialize\((?:[^()]|\([^()]*\))*\))\s*/g;
|
|
25489
|
+
var ACCESSOR = /^(?:mutating|nonmutating|async|throws|rethrows|get|set|_modify|_read)$/;
|
|
25490
|
+
function declarationKind(head) {
|
|
25491
|
+
const words2 = head.replace(/@\w+(?:\((?:[^()]|\([^()]*\))*\))?/g, " ").match(/[A-Za-z_]\w*/g);
|
|
25492
|
+
for (const word of words2 ?? []) {
|
|
25493
|
+
if (word === "func" || word === "init" || word === "deinit") return "function";
|
|
25494
|
+
if (word === "var" || word === "let" || word === "subscript") return "property";
|
|
25495
|
+
if (word === "struct" || word === "class" || word === "enum" || word === "protocol" || word === "extension" || word === "actor" || word === "precedencegroup")
|
|
25496
|
+
return "container";
|
|
25497
|
+
}
|
|
25498
|
+
return "container";
|
|
25499
|
+
}
|
|
25500
|
+
function skipLiteral(text6, i) {
|
|
25501
|
+
if (text6.startsWith("//", i)) {
|
|
25502
|
+
const end = text6.indexOf("\n", i);
|
|
25503
|
+
return end < 0 ? text6.length : end;
|
|
25504
|
+
}
|
|
25505
|
+
if (text6.startsWith("/*", i)) {
|
|
25506
|
+
const end = text6.indexOf("*/", i + 2);
|
|
25507
|
+
return end < 0 ? text6.length : end + 2;
|
|
25508
|
+
}
|
|
25509
|
+
if (text6[i] !== '"' && text6[i] !== "#") return i;
|
|
25510
|
+
let hashes = 0;
|
|
25511
|
+
let j = i;
|
|
25512
|
+
while (text6[j] === "#") {
|
|
25513
|
+
hashes++;
|
|
25514
|
+
j++;
|
|
25515
|
+
}
|
|
25516
|
+
if (text6[j] !== '"') return i;
|
|
25517
|
+
const multiline = text6.startsWith('"""', j);
|
|
25518
|
+
const open = multiline ? '"""' : '"';
|
|
25519
|
+
j += open.length;
|
|
25520
|
+
const close = `${open}${"#".repeat(hashes)}`;
|
|
25521
|
+
const escape2 = `\\${"#".repeat(hashes)}`;
|
|
25522
|
+
while (j < text6.length) {
|
|
25523
|
+
if (text6.startsWith(escape2, j)) j += escape2.length + 1;
|
|
25524
|
+
else if (text6.startsWith(close, j)) return j + close.length;
|
|
25525
|
+
else j++;
|
|
25526
|
+
}
|
|
25527
|
+
return text6.length;
|
|
25528
|
+
}
|
|
25529
|
+
function skipBlock(text6, open) {
|
|
25530
|
+
let depth = 0;
|
|
25531
|
+
for (let i = open; i < text6.length; ) {
|
|
25532
|
+
const after = skipLiteral(text6, i);
|
|
25533
|
+
if (after !== i) {
|
|
25534
|
+
i = after;
|
|
25535
|
+
continue;
|
|
25536
|
+
}
|
|
25537
|
+
if (text6[i] === "{") depth++;
|
|
25538
|
+
else if (text6[i] === "}" && --depth === 0) return i + 1;
|
|
25539
|
+
i++;
|
|
25540
|
+
}
|
|
25541
|
+
return text6.length;
|
|
25542
|
+
}
|
|
25543
|
+
function skipExpression(text6, start) {
|
|
25544
|
+
let depth = 0;
|
|
25545
|
+
for (let i = start; i < text6.length; ) {
|
|
25546
|
+
const after = skipLiteral(text6, i);
|
|
25547
|
+
if (after !== i) {
|
|
25548
|
+
i = after;
|
|
25549
|
+
continue;
|
|
25550
|
+
}
|
|
25551
|
+
const char = text6[i];
|
|
25552
|
+
if (char === "(" || char === "[" || char === "{" || char === "<") depth++;
|
|
25553
|
+
else if (char === ">" && text6[i - 1] !== "-") depth--;
|
|
25554
|
+
else if (char === ")" || char === "]" || char === "}") {
|
|
25555
|
+
if (depth === 0) return i;
|
|
25556
|
+
depth--;
|
|
25557
|
+
} else if (char === "," && depth === 0) return i;
|
|
25558
|
+
i++;
|
|
25559
|
+
}
|
|
25560
|
+
return text6.length;
|
|
25561
|
+
}
|
|
25562
|
+
function swiftInterfaceWithoutBodies(text6, keepDefaults = false) {
|
|
25563
|
+
let out = "";
|
|
25564
|
+
const frames = [];
|
|
25565
|
+
let parens = 0;
|
|
25566
|
+
let lineStart = 0;
|
|
25567
|
+
for (let i = 0; i < text6.length; ) {
|
|
25568
|
+
const after = skipLiteral(text6, i);
|
|
25569
|
+
if (after !== i) {
|
|
25570
|
+
out += text6.slice(i, after);
|
|
25571
|
+
i = after;
|
|
25572
|
+
continue;
|
|
25573
|
+
}
|
|
25574
|
+
const char = text6[i];
|
|
25575
|
+
if (char === "=" && parens > 0 && text6[i - 1] === " " && text6[i + 1] === " ") {
|
|
25576
|
+
out = out.trimEnd();
|
|
25577
|
+
i = skipExpression(text6, i + 1);
|
|
25578
|
+
continue;
|
|
25579
|
+
}
|
|
25580
|
+
if (char === "\n") lineStart = out.length + 1;
|
|
25581
|
+
else if (char === "(") parens++;
|
|
25582
|
+
else if (char === ")") parens--;
|
|
25583
|
+
else if (char === "}") {
|
|
25584
|
+
frames.pop();
|
|
25585
|
+
} else if (char === "{") {
|
|
25586
|
+
const parent = frames.at(-1);
|
|
25587
|
+
const head = out.slice(lineStart);
|
|
25588
|
+
if (parens > 0 || parent === "expression") frames.push("expression");
|
|
25589
|
+
else if (parent === "accessors") {
|
|
25590
|
+
out = `${out.slice(0, lineStart)}${head.replace(INLINE_ATTRIBUTE, "")}`.trimEnd();
|
|
25591
|
+
i = skipBlock(text6, i);
|
|
25592
|
+
continue;
|
|
25593
|
+
} else {
|
|
25594
|
+
const kind = declarationKind(head);
|
|
25595
|
+
const body = text6.slice(i + 1, skipBlock(text6, i) - 1);
|
|
25596
|
+
if (kind === "function") {
|
|
25597
|
+
out = `${out.slice(0, lineStart)}${head.replace(INLINE_ATTRIBUTE, "")}`.trimEnd();
|
|
25598
|
+
i = skipBlock(text6, i);
|
|
25599
|
+
continue;
|
|
25600
|
+
}
|
|
25601
|
+
const bare = body.split(/\s+/).every((word) => word === "" || ACCESSOR.test(word));
|
|
25602
|
+
frames.push(kind === "property" && !bare ? "accessors" : "container");
|
|
25603
|
+
if (kind === "property" && bare) {
|
|
25604
|
+
out += `{${body}}`;
|
|
25605
|
+
i = skipBlock(text6, i);
|
|
25606
|
+
frames.pop();
|
|
25607
|
+
continue;
|
|
25608
|
+
}
|
|
25609
|
+
}
|
|
25610
|
+
}
|
|
25611
|
+
out += char;
|
|
25612
|
+
i++;
|
|
25613
|
+
}
|
|
25614
|
+
return out.replace(INLINE_ATTRIBUTE, "");
|
|
25615
|
+
}
|
|
25616
|
+
|
|
25463
25617
|
// src/swift-objc-sdk.ts
|
|
25464
25618
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
25465
25619
|
var import_node_path31 = __toESM(require("node:path"), 1);
|
|
@@ -25500,7 +25654,7 @@ function restoreSwiftInterfaceSPI(interfaceText, module2, graphs) {
|
|
|
25500
25654
|
let depth = 0;
|
|
25501
25655
|
for (const line of interfaceText.split("\n")) {
|
|
25502
25656
|
const enclosing = scopes.at(-1)?.path ?? [];
|
|
25503
|
-
const declaration = /^\s*(?:@[\w.]+(?:\([^)]*\))?\s+|\w+\s+)*?(class(?!\s+(?:func|var|subscript)\b)|struct|enum|protocol|actor|extension|func|var|let|init|subscript|typealias|case)\b\s*([\w.`]*)/.exec(
|
|
25657
|
+
const declaration = /^\s*(?:@[\w.]+(?:\([^)]*\))?\s+|\w+\s+)*?(class(?!\s+(?:func|var|subscript)\b)|struct|enum|protocol|actor|extension|func|var|let|init|subscript|typealias|case)\b\s*([/=\-+!*%<>&|^~?]+|[\w.`]*)/.exec(
|
|
25504
25658
|
line.replace(/::/g, ".")
|
|
25505
25659
|
);
|
|
25506
25660
|
if (declaration) {
|
|
@@ -25598,7 +25752,26 @@ var KEEP_EXTERNAL = /* @__PURE__ */ new Map([
|
|
|
25598
25752
|
["s:SE", "Encodable"],
|
|
25599
25753
|
["s:Se", "Decodable"],
|
|
25600
25754
|
["s:s23CustomStringConvertibleP", "CustomStringConvertible"],
|
|
25601
|
-
["s:s9CodingKeyP", "CodingKey"]
|
|
25755
|
+
["s:s9CodingKeyP", "CodingKey"],
|
|
25756
|
+
["s:SL", "Comparable"],
|
|
25757
|
+
["s:ST", "Sequence"],
|
|
25758
|
+
["s:St", "IteratorProtocol"],
|
|
25759
|
+
["s:Sl", "Collection"],
|
|
25760
|
+
["s:SK", "BidirectionalCollection"],
|
|
25761
|
+
["s:Sk", "RandomAccessCollection"],
|
|
25762
|
+
["s:SM", "MutableCollection"],
|
|
25763
|
+
["s:Sm", "RangeReplaceableCollection"],
|
|
25764
|
+
["s:s28CustomDebugStringConvertibleP", "CustomDebugStringConvertible"],
|
|
25765
|
+
["s:s25LosslessStringConvertibleP", "LosslessStringConvertible"],
|
|
25766
|
+
["s:s20TextOutputStreamableP", "TextOutputStreamable"],
|
|
25767
|
+
["s:Sx", "Strideable"],
|
|
25768
|
+
["s:s18AdditiveArithmeticP", "AdditiveArithmetic"],
|
|
25769
|
+
["s:s25ExpressibleByArrayLiteralP", "ExpressibleByArrayLiteral"],
|
|
25770
|
+
["s:s30ExpressibleByDictionaryLiteralP", "ExpressibleByDictionaryLiteral"],
|
|
25771
|
+
["s:s26ExpressibleByStringLiteralP", "ExpressibleByStringLiteral"],
|
|
25772
|
+
["s:s27ExpressibleByIntegerLiteralP", "ExpressibleByIntegerLiteral"],
|
|
25773
|
+
["s:s25ExpressibleByFloatLiteralP", "ExpressibleByFloatLiteral"],
|
|
25774
|
+
["s:s27ExpressibleByBooleanLiteralP", "ExpressibleByBooleanLiteral"]
|
|
25602
25775
|
]);
|
|
25603
25776
|
var LEADING_ATTRS = /^((?:@\w+(?:\([^)]*\))?\s*|nonisolated\s+)*)(.*)$/s;
|
|
25604
25777
|
var OBJC_ONLY = /@(?:objcMembers|objc|IBOutlet|IBInspectable|IBAction|IBSegueAction|GKInspectable|nonobjc|NSCopying|NSManaged)(?:\([^)]*\))?\s*|\bdynamic\s+/g;
|
|
@@ -26479,7 +26652,12 @@ function emitSwiftStandin(sourceGraphs, options) {
|
|
|
26479
26652
|
const list2 = [
|
|
26480
26653
|
...parent ? [parent] : [],
|
|
26481
26654
|
...(conforms.get(id) ?? []).filter(
|
|
26482
|
-
(name3) => !ancestors.has(name3) && !inherited.has(conformanceTargets.get(id).get(name3)) && !(parent && objectConformers.has(id) && [
|
|
26655
|
+
(name3) => !ancestors.has(name3) && !inherited.has(conformanceTargets.get(id).get(name3)) && !(parent && objectConformers.has(id) && [
|
|
26656
|
+
"Hashable",
|
|
26657
|
+
"Equatable",
|
|
26658
|
+
"CustomStringConvertible",
|
|
26659
|
+
"CustomDebugStringConvertible"
|
|
26660
|
+
].includes(name3)) && !(name3 === nsObjectProtocol && externalRoot(id) === nsObject) && !options.unconformed?.get(path106)?.has(name3)
|
|
26483
26661
|
)
|
|
26484
26662
|
].filter((name3, at, all2) => all2.indexOf(name3) === at);
|
|
26485
26663
|
const parentSymbol = superId.has(id) ? byId.get(superId.get(id)) : void 0;
|
|
@@ -27269,6 +27447,43 @@ function sdkDeclaration(name3) {
|
|
|
27269
27447
|
}
|
|
27270
27448
|
return sdkDeclarations.get(name3) ?? null;
|
|
27271
27449
|
}
|
|
27450
|
+
function intakeInterface(text6, keepDefaults = false) {
|
|
27451
|
+
return swiftInterfaceWithoutBodies(text6, keepDefaults).replace(/^((?:@_exported[ \t]+)?import[ \t]+)(\w+)\.[\w.]+[ \t]*$/gm, "$1$2").replace(/\bCoreFoundation\.(?=CG)/g, "CoreGraphics.").replace(/\bCoreFoundation\.(?=\w)/g, "Foundation.").replace(/\bDarwin\.OSStatus\b/g, "Swift.Int32").replace(
|
|
27452
|
+
/\bFoundation\.Data\.(?=Base64(?:En|De)codingOptions\b)/g,
|
|
27453
|
+
"Foundation.NSData."
|
|
27454
|
+
);
|
|
27455
|
+
}
|
|
27456
|
+
function stageVendorFrameworks(dir, stage) {
|
|
27457
|
+
import_node_fs34.default.mkdirSync(stage, { recursive: true });
|
|
27458
|
+
for (const entry of import_node_fs34.default.readdirSync(dir)) {
|
|
27459
|
+
if (!entry.endsWith(".framework")) continue;
|
|
27460
|
+
const source = import_node_path32.default.join(dir, entry);
|
|
27461
|
+
const target = import_node_path32.default.join(stage, entry);
|
|
27462
|
+
import_node_fs34.default.mkdirSync(target, { recursive: true });
|
|
27463
|
+
for (const child of import_node_fs34.default.readdirSync(source)) {
|
|
27464
|
+
if (child !== "Modules") {
|
|
27465
|
+
import_node_fs34.default.symlinkSync(import_node_path32.default.join(source, child), import_node_path32.default.join(target, child));
|
|
27466
|
+
continue;
|
|
27467
|
+
}
|
|
27468
|
+
for (const file of import_node_fs34.default.readdirSync(import_node_path32.default.join(source, child), {
|
|
27469
|
+
recursive: true,
|
|
27470
|
+
encoding: "utf8"
|
|
27471
|
+
})) {
|
|
27472
|
+
const from = import_node_path32.default.join(source, child, file);
|
|
27473
|
+
const to = import_node_path32.default.join(target, child, file);
|
|
27474
|
+
if (import_node_fs34.default.statSync(from).isDirectory()) {
|
|
27475
|
+
import_node_fs34.default.mkdirSync(to, { recursive: true });
|
|
27476
|
+
continue;
|
|
27477
|
+
}
|
|
27478
|
+
import_node_fs34.default.mkdirSync(import_node_path32.default.dirname(to), { recursive: true });
|
|
27479
|
+
if (file.endsWith(".swiftinterface"))
|
|
27480
|
+
import_node_fs34.default.writeFileSync(to, intakeInterface(import_node_fs34.default.readFileSync(from, "utf8")));
|
|
27481
|
+
else import_node_fs34.default.copyFileSync(from, to);
|
|
27482
|
+
}
|
|
27483
|
+
}
|
|
27484
|
+
}
|
|
27485
|
+
return stage;
|
|
27486
|
+
}
|
|
27272
27487
|
function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vendorFrameworks = []) {
|
|
27273
27488
|
if (!import_node_fs34.default.existsSync(stdlib))
|
|
27274
27489
|
throw new Error(
|
|
@@ -27296,6 +27511,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
|
|
|
27296
27511
|
import_node_fs34.default.writeFileSync(file, text6);
|
|
27297
27512
|
}
|
|
27298
27513
|
const interfaceCopies = [];
|
|
27514
|
+
let keepDefaults = true;
|
|
27299
27515
|
if (framework) {
|
|
27300
27516
|
import_node_fs34.default.mkdirSync(import_node_path32.default.join(frameworks, `${surface.module}.framework`, "Modules"), {
|
|
27301
27517
|
recursive: true
|
|
@@ -27322,10 +27538,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
|
|
|
27322
27538
|
interfaceCopies.push(import_node_path32.default.join(to, name3));
|
|
27323
27539
|
import_node_fs34.default.writeFileSync(
|
|
27324
27540
|
import_node_path32.default.join(to, name3),
|
|
27325
|
-
import_node_fs34.default.readFileSync(import_node_path32.default.join(from, name3), "utf8")
|
|
27326
|
-
/\bFoundation\.Data\.(?=Base64(?:En|De)codingOptions\b)/g,
|
|
27327
|
-
"Foundation.NSData."
|
|
27328
|
-
)
|
|
27541
|
+
intakeInterface(import_node_fs34.default.readFileSync(import_node_path32.default.join(from, name3), "utf8"), true)
|
|
27329
27542
|
);
|
|
27330
27543
|
}
|
|
27331
27544
|
}
|
|
@@ -27387,7 +27600,10 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
|
|
|
27387
27600
|
stubs,
|
|
27388
27601
|
"-I",
|
|
27389
27602
|
stubIncludes,
|
|
27390
|
-
...vendorFrameworks.flatMap((dir) => [
|
|
27603
|
+
...vendorFrameworks.flatMap((dir, index) => [
|
|
27604
|
+
"-F",
|
|
27605
|
+
stageVendorFrameworks(dir, import_node_path32.default.join(work, "vendor-frameworks", String(index)))
|
|
27606
|
+
])
|
|
27391
27607
|
];
|
|
27392
27608
|
const missing2 = /* @__PURE__ */ new Map();
|
|
27393
27609
|
const stubbed = /* @__PURE__ */ new Set();
|
|
@@ -27593,6 +27809,13 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
|
|
|
27593
27809
|
);
|
|
27594
27810
|
}
|
|
27595
27811
|
}
|
|
27812
|
+
if ((!progress || round === ROUNDS) && keepDefaults && interfaceCopies.length > 0) {
|
|
27813
|
+
keepDefaults = false;
|
|
27814
|
+
for (const file of interfaceCopies)
|
|
27815
|
+
import_node_fs34.default.writeFileSync(file, swiftInterfaceWithoutBodies(import_node_fs34.default.readFileSync(file, "utf8")));
|
|
27816
|
+
writeHeaders();
|
|
27817
|
+
continue;
|
|
27818
|
+
}
|
|
27596
27819
|
if (!progress || round === ROUNDS)
|
|
27597
27820
|
throw new Error(
|
|
27598
27821
|
`its headers do not import as Swift: ${errors.length > 0 ? [...new Set(errors.map((match) => match[4]))].slice(0, 10).join("; ") : `swift-symbolgraph-extract ${run11.signal ?? `exit ${run11.status}`}: ${(run11.stderr.trim() || run11.stdout.trim() || "no diagnostic").slice(0, 4e3)}`}`
|
|
@@ -36342,7 +36565,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
36342
36565
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
36343
36566
|
var MULTI_MANIFEST_VERSION = 68;
|
|
36344
36567
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
36345
|
-
var compilerSourceDigest = true ? "
|
|
36568
|
+
var compilerSourceDigest = true ? "e48d05f659c020e9d4ddc0f6a17da7924aae807faacd6bef7cbed911c43d08cc" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
36346
36569
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
36347
36570
|
const hash = (0, import_node_crypto23.createHash)("sha256");
|
|
36348
36571
|
hash.update(`swift-compile
|
|
@@ -44924,7 +45147,7 @@ function initializeWorkspaceGit(root, work) {
|
|
|
44924
45147
|
});
|
|
44925
45148
|
const tracked = trackedSourceFiles(root, work);
|
|
44926
45149
|
if (tracked.length > 0)
|
|
44927
|
-
(0, import_node_child_process33.execFileSync)("git", ["
|
|
45150
|
+
(0, import_node_child_process33.execFileSync)("git", ["update-index", "--add", "-z", "--stdin"], {
|
|
44928
45151
|
cwd: work,
|
|
44929
45152
|
env: { ...process.env, ...isolatedGitEnv },
|
|
44930
45153
|
input: tracked.join("\0"),
|
|
@@ -45833,7 +46056,7 @@ init_package_tree_digest();
|
|
|
45833
46056
|
init_swift_native_pin();
|
|
45834
46057
|
var EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
45835
46058
|
function expoNativeCompilerDigestValue() {
|
|
45836
|
-
return true ? "
|
|
46059
|
+
return true ? "5096ba1e78a0087b6e56f15c4b37fcbd9bcabb2acde17a257d8add357efd462c" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
45837
46060
|
}
|
|
45838
46061
|
var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
45839
46062
|
function readSources(value) {
|
|
@@ -48053,6 +48276,19 @@ function cxxOnly(surface) {
|
|
|
48053
48276
|
return false;
|
|
48054
48277
|
});
|
|
48055
48278
|
}
|
|
48279
|
+
function mapSurfaces(modulemap) {
|
|
48280
|
+
const text6 = import_node_fs76.default.readFileSync(modulemap, "utf8");
|
|
48281
|
+
const headers = import_node_path74.default.dirname(modulemap);
|
|
48282
|
+
const modules = moduleMapModules(text6);
|
|
48283
|
+
if (modules.length <= 1) {
|
|
48284
|
+
const module2 = moduleMapName(text6);
|
|
48285
|
+
return module2 ? [headerSurface(module2, modulemap, headers)] : [];
|
|
48286
|
+
}
|
|
48287
|
+
return modules.map(
|
|
48288
|
+
(module2) => headerSurface(module2.name, generatedModuleMap(`${module2.text}
|
|
48289
|
+
`, false), headers)
|
|
48290
|
+
);
|
|
48291
|
+
}
|
|
48056
48292
|
function simulatorSlice(xcframeworkDir) {
|
|
48057
48293
|
const slice = import_node_fs76.default.readdirSync(xcframeworkDir).filter((name3) => /^ios-.+-simulator$/.test(name3)).sort()[0];
|
|
48058
48294
|
return slice ? import_node_path74.default.join(xcframeworkDir, slice) : null;
|
|
@@ -48116,8 +48352,7 @@ function surfaces(xcframeworkDir, target, slice = simulatorSlice(xcframeworkDir)
|
|
|
48116
48352
|
const headers = import_node_path74.default.join(root, "Headers");
|
|
48117
48353
|
for (const map2 of files(headers, (name3) => name3 === "module.modulemap")) {
|
|
48118
48354
|
const modulemap = import_node_path74.default.join(headers, map2);
|
|
48119
|
-
|
|
48120
|
-
if (module2) found.push(headerSurface(module2, modulemap, import_node_path74.default.dirname(modulemap)));
|
|
48355
|
+
found.push(...mapSurfaces(modulemap));
|
|
48121
48356
|
}
|
|
48122
48357
|
if (found.length === 0 && files(headers, (name3) => name3.endsWith(".h")).length) {
|
|
48123
48358
|
const module2 = swiftTargetModuleName(target);
|
|
@@ -48254,9 +48489,13 @@ function swiftInterfaceForWasm(text6, cFlags) {
|
|
|
48254
48489
|
]);
|
|
48255
48490
|
return `${interop} ${xcc.join(" ")}`;
|
|
48256
48491
|
});
|
|
48257
|
-
|
|
48258
|
-
|
|
48259
|
-
|
|
48492
|
+
const lines = retargeted.split("\n");
|
|
48493
|
+
const required = lines.filter((line) => OPTIONAL_REQUIREMENT.test(line)).join("\n");
|
|
48494
|
+
return lines.map((line) => {
|
|
48495
|
+
if (/\benum\s/.test(line) && TYPE_DECLARATION.test(line)) {
|
|
48496
|
+
const name3 = /\benum\s+(\w+)/.exec(line)?.[1];
|
|
48497
|
+
return name3 && new RegExp(`\\b${name3}\\b`).test(required) && !/\bSwift\.Error\b/.test(line) ? line : line.replace(/@objc(?:\s*\([^()]*\))?\s+/g, "");
|
|
48498
|
+
}
|
|
48260
48499
|
if (TYPE_DECLARATION.test(line)) return line.replace(/@objcMembers\b/g, "");
|
|
48261
48500
|
if (OPTIONAL_REQUIREMENT.test(line)) return line;
|
|
48262
48501
|
return line.replace(OBJC_ATTRIBUTE, "");
|
|
@@ -48677,6 +48916,14 @@ function graphStandin(module2, graphs, values, wasm, binary2, toolchain, work, r
|
|
|
48677
48916
|
const plain = /* @__PURE__ */ new Set();
|
|
48678
48917
|
const unobjc = /* @__PURE__ */ new Set();
|
|
48679
48918
|
const trapped = /* @__PURE__ */ new Set();
|
|
48919
|
+
const unconformed = /* @__PURE__ */ new Map();
|
|
48920
|
+
const objcProtocols = new Set(
|
|
48921
|
+
graphs.flatMap(
|
|
48922
|
+
(graph) => graph.symbols.filter(
|
|
48923
|
+
(symbol2) => symbol2.kind.identifier === "swift.protocol" && symbol2.identifier.precise.startsWith("c:")
|
|
48924
|
+
).map((symbol2) => symbol2.pathComponents.join("."))
|
|
48925
|
+
)
|
|
48926
|
+
);
|
|
48680
48927
|
const file = import_node_path74.default.join(work, `${module2}.swift`);
|
|
48681
48928
|
const inert = binary2.placeholder !== void 0 || binary2.publicHeaders !== void 0 && binary2.assemblySources === void 0;
|
|
48682
48929
|
for (; ; ) {
|
|
@@ -48689,6 +48936,7 @@ function graphStandin(module2, graphs, values, wasm, binary2, toolchain, work, r
|
|
|
48689
48936
|
omit,
|
|
48690
48937
|
plain,
|
|
48691
48938
|
unobjc,
|
|
48939
|
+
unconformed,
|
|
48692
48940
|
trapped,
|
|
48693
48941
|
inert,
|
|
48694
48942
|
imports: [...placeholder?.peachImports ?? [], ...imports2],
|
|
@@ -48736,7 +48984,7 @@ function graphStandin(module2, graphs, values, wasm, binary2, toolchain, work, r
|
|
|
48736
48984
|
files: { [`${module2}.swift`]: source },
|
|
48737
48985
|
...imports2.length ? { dependencies: imports2 } : {}
|
|
48738
48986
|
};
|
|
48739
|
-
const before = omit.size + plain.size + unobjc.size + trapped.size;
|
|
48987
|
+
const before = omit.size + plain.size + unobjc.size + trapped.size + unconformed.size;
|
|
48740
48988
|
const elsewhere = [];
|
|
48741
48989
|
for (const match of check2.stderr.matchAll(/^(\S+?):(\d+):\d+: error: (.*)$/gm)) {
|
|
48742
48990
|
const owner = match[1] === file ? owners[Number(match[2]) - 1] : void 0;
|
|
@@ -48744,6 +48992,13 @@ function graphStandin(module2, graphs, values, wasm, binary2, toolchain, work, r
|
|
|
48744
48992
|
unobjc.add(owner);
|
|
48745
48993
|
continue;
|
|
48746
48994
|
}
|
|
48995
|
+
const conformance = /^type '\w+' does not conform to protocol '(\w+)'$/.exec(
|
|
48996
|
+
match[3]
|
|
48997
|
+
)?.[1];
|
|
48998
|
+
if (owner && conformance && objcProtocols.has(conformance)) {
|
|
48999
|
+
unconformed.set(owner, /* @__PURE__ */ new Set([...unconformed.get(owner) ?? [], conformance]));
|
|
49000
|
+
continue;
|
|
49001
|
+
}
|
|
48747
49002
|
if (owner && swiftPaths.has(owner))
|
|
48748
49003
|
throw new Error(
|
|
48749
49004
|
`Swift declaration ${module2}.${owner} does not typecheck: ${match[3]}`
|
|
@@ -48759,7 +49014,7 @@ function graphStandin(module2, graphs, values, wasm, binary2, toolchain, work, r
|
|
|
48759
49014
|
else if (owner) omit.set(owner, `rejected by swiftc: ${match[3]}`);
|
|
48760
49015
|
else elsewhere.push(match[3]);
|
|
48761
49016
|
}
|
|
48762
|
-
if (omit.size + plain.size + unobjc.size + trapped.size === before)
|
|
49017
|
+
if (omit.size + plain.size + unobjc.size + trapped.size + unconformed.size === before)
|
|
48763
49018
|
throw new Error(
|
|
48764
49019
|
`its generated source does not typecheck: ${elsewhere.slice(0, 3).join("; ") || check2.stderr.trim().slice(0, 400)}`
|
|
48765
49020
|
);
|
|
@@ -48885,7 +49140,16 @@ function splitDeclarators(statement, names) {
|
|
|
48885
49140
|
);
|
|
48886
49141
|
}
|
|
48887
49142
|
function cStandin(surface, binary2, toolchain, work) {
|
|
48888
|
-
const
|
|
49143
|
+
const everyHeader = files(surface.headers, (name3) => name3.endsWith(".h"));
|
|
49144
|
+
const moduleRoots = moduleMapHeaders(surface.modulemap, everyHeader);
|
|
49145
|
+
const headers = [...moduleRoots];
|
|
49146
|
+
for (let at = 0; at < headers.length; at++)
|
|
49147
|
+
for (const [, local] of import_node_fs76.default.readFileSync(import_node_path74.default.join(surface.headers, headers[at]), "utf8").matchAll(/^\s*#\s*(?:include|import)\s*["<]([^">]+)[">]/gm)) {
|
|
49148
|
+
const file = import_node_path74.default.posix.normalize(
|
|
49149
|
+
import_node_path74.default.posix.join(import_node_path74.default.posix.dirname(headers[at]), local)
|
|
49150
|
+
);
|
|
49151
|
+
if (everyHeader.includes(file) && !headers.includes(file)) headers.push(file);
|
|
49152
|
+
}
|
|
48889
49153
|
const framework = import_node_path74.default.basename(import_node_path74.default.dirname(surface.modulemap)) === "Modules";
|
|
48890
49154
|
const headerDirectory = framework ? `${surface.module}.framework/Headers` : ".";
|
|
48891
49155
|
const texts = new Map(
|
|
@@ -48900,9 +49164,7 @@ function cStandin(surface, binary2, toolchain, work) {
|
|
|
48900
49164
|
import_node_fs76.default.mkdirSync(import_node_path74.default.dirname(import_node_path74.default.join(include, file)), { recursive: true });
|
|
48901
49165
|
import_node_fs76.default.writeFileSync(import_node_path74.default.join(include, file), text6);
|
|
48902
49166
|
}
|
|
48903
|
-
const roots =
|
|
48904
|
-
(file) => import_node_path74.default.posix.join(headerDirectory, file)
|
|
48905
|
-
);
|
|
49167
|
+
const roots = moduleRoots.map((file) => import_node_path74.default.posix.join(headerDirectory, file));
|
|
48906
49168
|
const frameworkMap = `${surface.module}.framework/Modules/module.modulemap`;
|
|
48907
49169
|
const modulemap = `module ${surface.module} {
|
|
48908
49170
|
${roots.map((file) => ` header "${file}"
|
|
@@ -49647,7 +49909,7 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
49647
49909
|
return error instanceof Error ? error.message : String(error);
|
|
49648
49910
|
}
|
|
49649
49911
|
const found = all.filter(
|
|
49650
|
-
(surface) => !provided.has(surface.module) && !(binary2.cxxHeaders === void 0 && cxxOnly(surface))
|
|
49912
|
+
(surface) => !provided.has(surface.module) && (surface.kind === "swift" || surface.kind === "mixed" || surface.kind === "source" || files(surface.headers, (name3) => name3.endsWith(".h")).length > 0) && !(binary2.cxxHeaders === void 0 && cxxOnly(surface))
|
|
49651
49913
|
);
|
|
49652
49914
|
if (found.length === 0) {
|
|
49653
49915
|
import_node_fs76.default.rmSync(work, { recursive: true, force: true });
|
|
@@ -63946,20 +64208,41 @@ async function trunkSpecification(lockFile, root, version2, checksum) {
|
|
|
63946
64208
|
"specifications",
|
|
63947
64209
|
`${checksum}.json`
|
|
63948
64210
|
);
|
|
64211
|
+
const sha1 = (value) => (0, import_node_crypto50.createHash)("sha1").update(value).digest("hex");
|
|
63949
64212
|
let text6;
|
|
63950
64213
|
if (import_node_fs94.default.existsSync(file)) text6 = import_node_fs94.default.readFileSync(file, "utf8");
|
|
63951
64214
|
else {
|
|
63952
64215
|
const shard = (0, import_node_crypto50.createHash)("md5").update(root).digest("hex").slice(0, 3).split("").join("/");
|
|
63953
|
-
const
|
|
63954
|
-
|
|
63955
|
-
);
|
|
64216
|
+
const specPath = `Specs/${shard}/${root}/${version2}/${root}.podspec.json`;
|
|
64217
|
+
const response = await fetch(`https://cdn.cocoapods.org/${specPath}`);
|
|
63956
64218
|
if (!response.ok)
|
|
63957
64219
|
throw new Error(
|
|
63958
64220
|
`CocoaPods specification ${root} ${version2}: HTTP ${response.status}`
|
|
63959
64221
|
);
|
|
63960
64222
|
text6 = await response.text();
|
|
64223
|
+
if (sha1(text6) !== checksum) {
|
|
64224
|
+
const history = await fetch(
|
|
64225
|
+
`https://api.github.com/repos/CocoaPods/Specs/commits?path=${specPath}&per_page=100`
|
|
64226
|
+
);
|
|
64227
|
+
if (!history.ok)
|
|
64228
|
+
throw new Error(`CocoaPods specification ${root} history: HTTP ${history.status}`);
|
|
64229
|
+
const commits = await history.json();
|
|
64230
|
+
for (const commit of Array.isArray(commits) ? commits : []) {
|
|
64231
|
+
const sha = record2(commit) ? commit.sha : void 0;
|
|
64232
|
+
if (typeof sha !== "string") continue;
|
|
64233
|
+
const revision = await fetch(
|
|
64234
|
+
`https://raw.githubusercontent.com/CocoaPods/Specs/${sha}/${specPath}`
|
|
64235
|
+
);
|
|
64236
|
+
if (!revision.ok) continue;
|
|
64237
|
+
const revisionText = await revision.text();
|
|
64238
|
+
if (sha1(revisionText) === checksum) {
|
|
64239
|
+
text6 = revisionText;
|
|
64240
|
+
break;
|
|
64241
|
+
}
|
|
64242
|
+
}
|
|
64243
|
+
}
|
|
63961
64244
|
}
|
|
63962
|
-
if (
|
|
64245
|
+
if (sha1(text6) !== checksum)
|
|
63963
64246
|
throw new Error(`${root} podspec checksum differs from ${lockFile}`);
|
|
63964
64247
|
const spec = JSON.parse(text6);
|
|
63965
64248
|
if (!record2(spec) || spec.name !== root || spec.version !== version2)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2185 | (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": "bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1", "swift-coverage/source.ts": "c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee", "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": "
|
|
42
|
+
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1", "swift-coverage/source.ts": "c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "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": "338cfef9a34a930206ac2e1a8a90b85c8d61f776d9a41e6445dc18e0c5385cdb", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "65a0698bf022ace2f4254f3f891828dedf403d61c102238e242084a2279e04eb", "home-paths.ts": "f5583b61f8bdd81823b3b29ff519a48daf9993719f194ddb7de22218472e90f9", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "5f41cd0bd86cb0cffbfb0047348b963f81d5e51cb0e8dd574c739b1a27aa56de", "xcode-target-members.ts": "ad7589132bffab265e8a10b64e24484fe88b4a2b1cc0ee19a97f151a002eca77", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -1498,7 +1498,7 @@ function readIosSdkTree(root) {
|
|
|
1498
1498
|
|
|
1499
1499
|
// src/swift-standin-digest.ts
|
|
1500
1500
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1501
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
1501
|
+
var STANDIN_SOURCE_DIGEST = true ? "0981767eef4ad46fe5cb602ee15f1de9ea06dac3a2edb4dab0f6d5279b018a3b" : standinSourceDigest();
|
|
1502
1502
|
|
|
1503
1503
|
// src/expo-native-workspace.ts
|
|
1504
1504
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -4580,6 +4580,9 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
|
4580
4580
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4581
4581
|
var import_node_crypto2 = require("node:crypto");
|
|
4582
4582
|
|
|
4583
|
+
// src/swift-interface-bodies.ts
|
|
4584
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4585
|
+
|
|
4583
4586
|
// src/swift-objc-sdk.ts
|
|
4584
4587
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4585
4588
|
var import_node_path6 = __toESM(require("node:path"), 1);
|
|
@@ -4974,7 +4977,7 @@ var FOUNDATION_IMPLICIT_MODULES = [
|
|
|
4974
4977
|
var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
4975
4978
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
4976
4979
|
).join("");
|
|
4977
|
-
var compilerSourceDigest = true ? "
|
|
4980
|
+
var compilerSourceDigest = true ? "e48d05f659c020e9d4ddc0f6a17da7924aae807faacd6bef7cbed911c43d08cc" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
4978
4981
|
var CORE_FOUNDATION_HANDLE_IMPORTS = [
|
|
4979
4982
|
"CFAllocator",
|
|
4980
4983
|
"CFArray",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2185 | (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.2185 | (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.2185 | (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;
|