peachsim 0.1.2587 → 0.1.2589
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 +2 -2
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +5 -5
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +3 -3
- package/dist-lib/bundle-channel.cjs +63 -47
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +3 -3
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -2
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +7 -7
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +5 -5
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-YIT53CUW.mjs → acorn-6FUOY6FX.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-W7KT52XE.mjs → chunk-33SCXU3Y.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-PDSHFDO2.mjs → chunk-3VNUC4DT.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MKUJNT6M.mjs → chunk-464CBA5U.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-7UTPX7DP.mjs → chunk-47K4QPVA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-Q7MIJAYP.mjs → chunk-57FFWABF.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-TOK4D3JW.mjs → chunk-5EFD2VBY.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-WQB3O2KB.mjs → chunk-5QWQDXXD.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YQETPIM2.mjs → chunk-BSAAJR25.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-TI62KNSX.mjs → chunk-CRIYVOMB.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-WIS3FIS4.mjs → chunk-EAIFG4MQ.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-VZ2SRV3L.mjs → chunk-FMWEI6OI.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-EINVPQJH.mjs → chunk-FQQ2DMXS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QRBN2H6X.mjs → chunk-I22LAVD5.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LBJDNPVZ.mjs → chunk-JLOJZF2Y.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-33X4F77A.mjs → chunk-KFHCRS5K.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-MHQ3V3HA.mjs → chunk-L3OSVIGA.mjs} +65 -55
- package/dist-lib/esm-chunks/{chunk-KIM7TUG6.mjs → chunk-M4KUWGU3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-SES3L2SB.mjs → chunk-MKSOJCRT.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MCQPJCCL.mjs → chunk-PUBH3EXI.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BZY37WHL.mjs → chunk-WQ73RKJY.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-DS7BSRKS.mjs → chunk-XTKKROVU.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HH6E35Z7.mjs → chunk-Y4PV4HZB.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-IGRR2DCH.mjs → metro-layout-parser-T5QIJTEV.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-B2NMSGIS.mjs → swift-package-prebuilt-AWTZHPDM.mjs} +10 -10
- package/dist-lib/esm-chunks/{swift-sdk-app-module-FYORV7GD.mjs → swift-sdk-app-module-MGTJTVKU.mjs} +14 -14
- package/dist-lib/esm-chunks/{swift-sdk-image-BQ4UZV7O.mjs → swift-sdk-image-JABGF3ZR.mjs} +14 -14
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-ESIHEVXH.mjs → swift-sdk-image-producer-RJRJ3EFU.mjs} +4 -4
- package/dist-lib/expo-swift-bundle.cjs +62 -46
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +7 -7
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +233 -130
- package/dist-lib/host/fetch-proxy-handler.cjs +12 -4
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +4 -4
- package/dist-lib/native-app-identity-project.cjs +10 -2
- package/dist-lib/native-app-identity-project.mjs +16 -16
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +82 -81
- package/dist-lib/public-origins-lib.json +76 -69
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- 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 +8 -8
- package/dist-lib/skills.cjs +241 -132
- package/dist-lib/swift-compile.cjs +60 -44
- package/dist-lib/swift-compile.mjs +10 -10
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +6 -6
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/@xmldom/xmldom.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/bplist-parser.cjs +1 -1
- package/dist-lib/vendor/ignore.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/plist.cjs +1 -1
- package/dist-lib/vendor/smol-toml.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +1 -1
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +1 -1
- package/package.json +1 -1
- package/src/one-native-controls-package.ts +125 -81
- package/src/swift-compile.ts +2 -44
- package/src/swift-shared-sdk.ts +8 -4
- package/src/swift-source-closure.ts +59 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2589 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SWIFT_AUTOLINK_LINKER,
|
|
4
4
|
SWIFT_CACHE_HOLD_MARKER,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
windowAdmission,
|
|
19
19
|
withSwiftRootLock,
|
|
20
20
|
writeSwiftAutolinkLinker
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-5EFD2VBY.mjs";
|
|
22
22
|
import {
|
|
23
23
|
SWIFT_BINARY_TREES_DIR,
|
|
24
24
|
SWIFT_NATIVE_INPUT_ROOT,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
isSwiftResourcePath,
|
|
34
34
|
isSwiftSourceLinkGraph,
|
|
35
35
|
swiftProjectFilesProblems
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-5QWQDXXD.mjs";
|
|
37
37
|
import {
|
|
38
38
|
OBJC_RESOURCE_ACCESSOR_BODY,
|
|
39
39
|
OBJC_RESOURCE_ACCESSOR_HEADER,
|
|
@@ -57,16 +57,16 @@ import {
|
|
|
57
57
|
swiftPackagePartition,
|
|
58
58
|
swiftTargetModuleName,
|
|
59
59
|
withoutGlogModuleMap
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-I22LAVD5.mjs";
|
|
61
61
|
import {
|
|
62
62
|
rnxPublicBrand
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-JLOJZF2Y.mjs";
|
|
64
64
|
import {
|
|
65
65
|
isRecord
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-MKSOJCRT.mjs";
|
|
67
67
|
import {
|
|
68
68
|
__publicField
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-33SCXU3Y.mjs";
|
|
70
70
|
|
|
71
71
|
// src/swift-compile.ts
|
|
72
72
|
import {
|
|
@@ -3200,6 +3200,7 @@ function stageOverlaySlot(realRoot, stagingRoot, relPath) {
|
|
|
3200
3200
|
const segment = segments[i];
|
|
3201
3201
|
for (const entry of readdirSync2(real)) {
|
|
3202
3202
|
if (entry === segment || i === 0 && entry === SWIFT_CACHE_HOLD_MARKER) continue;
|
|
3203
|
+
if (mirror === stagingRoot && entry === "configuration") continue;
|
|
3203
3204
|
const dest = path9.join(mirror, entry);
|
|
3204
3205
|
if (!fs3.lstatSync(dest, { throwIfNoEntry: false })) {
|
|
3205
3206
|
fs3.symlinkSync(path9.join(real, entry), dest);
|
|
@@ -3235,7 +3236,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
|
|
|
3235
3236
|
const stdint = path9.join(overlay, "include/stdint.h");
|
|
3236
3237
|
const key = JSON.stringify([
|
|
3237
3238
|
// bump the recipe when the transformation changes; bundling changes function text.
|
|
3238
|
-
"
|
|
3239
|
+
"v39",
|
|
3239
3240
|
[...WEAKEN_FOUNDATION_SYMS],
|
|
3240
3241
|
toolchainBin,
|
|
3241
3242
|
sdk,
|
|
@@ -13486,7 +13487,7 @@ async function compileGuestLink(options) {
|
|
|
13486
13487
|
};
|
|
13487
13488
|
const sdk = options.sdkImage;
|
|
13488
13489
|
const sdkCallers = sdk?.sdkInterface.guestCallers;
|
|
13489
|
-
const sdkObjects = sdk ? (await import("./swift-sdk-image-
|
|
13490
|
+
const sdkObjects = sdk ? (await import("./swift-sdk-image-JABGF3ZR.mjs")).readSwiftSdkManifestIndex(sdk).guestObjects : void 0;
|
|
13490
13491
|
if (sdk && (!sdkCallers || !sdkObjects))
|
|
13491
13492
|
throw new Error("the SDK image has no guest link manifest");
|
|
13492
13493
|
const result = linkPrunedGuestImages({
|
|
@@ -13773,7 +13774,7 @@ async function compileGuestLink(options) {
|
|
|
13773
13774
|
finishSwiftAppModule,
|
|
13774
13775
|
linkSwiftAppModule,
|
|
13775
13776
|
readSwiftSdkUsage
|
|
13776
|
-
} = await import("./swift-sdk-app-module-
|
|
13777
|
+
} = await import("./swift-sdk-app-module-MGTJTVKU.mjs");
|
|
13777
13778
|
const project = options.project;
|
|
13778
13779
|
const work = project ? mkdtempSync2(path24.join(directory, "app-module-")) : path24.join(directory, "app-module");
|
|
13779
13780
|
if (project) chownSync(work, project.uid, project.gid);
|
|
@@ -14895,6 +14896,55 @@ function swiftReproducibleBuildFlags(roots) {
|
|
|
14895
14896
|
]);
|
|
14896
14897
|
}
|
|
14897
14898
|
|
|
14899
|
+
// src/swift-source-closure.ts
|
|
14900
|
+
function collectSwiftSourceClosure(files, roots, swiftCodeMask2, extensionMembersOnly) {
|
|
14901
|
+
const sources = /* @__PURE__ */ new Map();
|
|
14902
|
+
const owners = /* @__PURE__ */ new Map();
|
|
14903
|
+
for (const [file, source] of Object.entries(files)) {
|
|
14904
|
+
if (!file.endsWith(".swift")) continue;
|
|
14905
|
+
const code = swiftCodeMask2(source);
|
|
14906
|
+
const references = new Set(code.match(/[A-Za-z_]\w*/g) ?? []);
|
|
14907
|
+
const pattern = /[{}]|\b(class|struct|enum|protocol|actor|typealias|func|var|let|extension)\s+([A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*)|\b(?:init|subscript)(?=\s*[?(])/g;
|
|
14908
|
+
let depth = 0;
|
|
14909
|
+
let memberExtension;
|
|
14910
|
+
for (const match of code.matchAll(pattern)) {
|
|
14911
|
+
if (match[0] === "{") {
|
|
14912
|
+
depth++;
|
|
14913
|
+
continue;
|
|
14914
|
+
}
|
|
14915
|
+
if (match[0] === "}") {
|
|
14916
|
+
if (--depth === 0) memberExtension = void 0;
|
|
14917
|
+
continue;
|
|
14918
|
+
}
|
|
14919
|
+
if (depth !== 0 && !(depth === 1 && memberExtension)) continue;
|
|
14920
|
+
const name = match[2]?.split(".").pop() ?? memberExtension;
|
|
14921
|
+
if (!name) continue;
|
|
14922
|
+
if (match[1] === "extension" && extensionMembersOnly?.has(name) && /^\s*\{/.test(code.slice(match.index + match[0].length))) {
|
|
14923
|
+
memberExtension = name;
|
|
14924
|
+
continue;
|
|
14925
|
+
}
|
|
14926
|
+
const set = owners.get(name) ?? /* @__PURE__ */ new Set();
|
|
14927
|
+
set.add(file);
|
|
14928
|
+
owners.set(name, set);
|
|
14929
|
+
}
|
|
14930
|
+
sources.set(file, references);
|
|
14931
|
+
}
|
|
14932
|
+
const included = /* @__PURE__ */ new Set();
|
|
14933
|
+
const pending = [...roots];
|
|
14934
|
+
const seen = /* @__PURE__ */ new Set();
|
|
14935
|
+
while (pending.length) {
|
|
14936
|
+
const name = pending.pop();
|
|
14937
|
+
if (seen.has(name)) continue;
|
|
14938
|
+
seen.add(name);
|
|
14939
|
+
for (const file of owners.get(name) ?? []) {
|
|
14940
|
+
if (included.has(file)) continue;
|
|
14941
|
+
included.add(file);
|
|
14942
|
+
for (const reference of sources.get(file)) pending.push(reference);
|
|
14943
|
+
}
|
|
14944
|
+
}
|
|
14945
|
+
return Object.fromEntries(Object.entries(files).filter(([file]) => included.has(file)));
|
|
14946
|
+
}
|
|
14947
|
+
|
|
14898
14948
|
// src/swift-uniform-type-constants.ts
|
|
14899
14949
|
import { execFileSync as execFileSync12 } from "node:child_process";
|
|
14900
14950
|
import path30 from "node:path";
|
|
@@ -16284,7 +16334,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
16284
16334
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
16285
16335
|
var MULTI_MANIFEST_VERSION = 76;
|
|
16286
16336
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
16287
|
-
var compilerSourceDigest = true ? "
|
|
16337
|
+
var compilerSourceDigest = true ? "80c152de0e5f41327f3fe7c71ce7df4cd206c0ba2bb0373f71654a0661829c6e" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
16288
16338
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
16289
16339
|
return swiftCompileInputHash(input, release).update(swiftModuleDigest(moduleRoot)).digest("hex");
|
|
16290
16340
|
}
|
|
@@ -17637,47 +17687,7 @@ function swiftSourceAsIOS(source, overlayFrameworks, swiftPackage, arm64 = true)
|
|
|
17637
17687
|
return lowerAVAssetURLCluster(out + conditioned.slice(copied));
|
|
17638
17688
|
}
|
|
17639
17689
|
function swiftSourceClosure(files, roots) {
|
|
17640
|
-
|
|
17641
|
-
const owners = /* @__PURE__ */ new Map();
|
|
17642
|
-
const extensions = /* @__PURE__ */ new Map();
|
|
17643
|
-
for (const [file, source] of Object.entries(files)) {
|
|
17644
|
-
if (!file.endsWith(".swift")) continue;
|
|
17645
|
-
const code = swiftCodeMask(source);
|
|
17646
|
-
const references = new Set(code.match(/[A-Za-z_]\w*/g) ?? []);
|
|
17647
|
-
const pattern = /[{}]|\b(class|struct|enum|protocol|actor|typealias|func|var|let|extension)\s+([A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*)/g;
|
|
17648
|
-
let depth = 0;
|
|
17649
|
-
for (const match of code.matchAll(pattern)) {
|
|
17650
|
-
if (match[0] === "{") {
|
|
17651
|
-
depth++;
|
|
17652
|
-
continue;
|
|
17653
|
-
}
|
|
17654
|
-
if (match[0] === "}") {
|
|
17655
|
-
depth--;
|
|
17656
|
-
continue;
|
|
17657
|
-
}
|
|
17658
|
-
if (depth !== 0 || !match[2]) continue;
|
|
17659
|
-
const name = match[2].split(".").pop();
|
|
17660
|
-
const index = match[1] === "extension" ? extensions : owners;
|
|
17661
|
-
const set = index.get(name) ?? /* @__PURE__ */ new Set();
|
|
17662
|
-
set.add(file);
|
|
17663
|
-
index.set(name, set);
|
|
17664
|
-
}
|
|
17665
|
-
sources.set(file, references);
|
|
17666
|
-
}
|
|
17667
|
-
const included = /* @__PURE__ */ new Set();
|
|
17668
|
-
const pending = [...roots];
|
|
17669
|
-
const seen = /* @__PURE__ */ new Set();
|
|
17670
|
-
while (pending.length) {
|
|
17671
|
-
const name = pending.pop();
|
|
17672
|
-
if (seen.has(name)) continue;
|
|
17673
|
-
seen.add(name);
|
|
17674
|
-
for (const file of [...owners.get(name) ?? [], ...extensions.get(name) ?? []]) {
|
|
17675
|
-
if (included.has(file)) continue;
|
|
17676
|
-
included.add(file);
|
|
17677
|
-
for (const reference of sources.get(file)) pending.push(reference);
|
|
17678
|
-
}
|
|
17679
|
-
}
|
|
17680
|
-
return Object.fromEntries(Object.entries(files).filter(([file]) => included.has(file)));
|
|
17690
|
+
return collectSwiftSourceClosure(files, roots, swiftCodeMask);
|
|
17681
17691
|
}
|
|
17682
17692
|
function swiftApplicationEntry(file, source) {
|
|
17683
17693
|
const code = [...swiftConditionalLines(swiftCodeMask(source))].map(({ line, active }) => active === false ? " ".repeat(line.length) : line).join("\n");
|
|
@@ -20925,7 +20935,7 @@ async function compileSwiftProjectOnce(sources, options) {
|
|
|
20925
20935
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
20926
20936
|
const mirrorDistribution = options.linkOnly || options.project ? null : distribution;
|
|
20927
20937
|
if (distribution) refreshSwiftCacheHold(moduleRoot);
|
|
20928
|
-
const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-
|
|
20938
|
+
const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-AWTZHPDM.mjs")).useSwiftPackagePrebuilts(
|
|
20929
20939
|
sources,
|
|
20930
20940
|
moduleRoot,
|
|
20931
20941
|
options.toolchainBin
|
|
@@ -20939,7 +20949,7 @@ async function compileSwiftProjectOnce(sources, options) {
|
|
|
20939
20949
|
multi: compileTargets(input).length > 0
|
|
20940
20950
|
};
|
|
20941
20951
|
const sdkModule = options.sdkModule && !options.linkOnly;
|
|
20942
|
-
const sdkImage = sdkModule ? await (await import("./swift-sdk-image-
|
|
20952
|
+
const sdkImage = sdkModule ? await (await import("./swift-sdk-image-JABGF3ZR.mjs")).buildSwiftSdkImage(
|
|
20943
20953
|
moduleRoot,
|
|
20944
20954
|
!!guestGraph,
|
|
20945
20955
|
distribution ? [] : linkedFrameworkTargets(moduleRoot, input).imports,
|
|
@@ -21596,7 +21606,7 @@ ${cap}` : "";
|
|
|
21596
21606
|
if (sdkImage && binding)
|
|
21597
21607
|
sdkAsset = { key: sdkImage.key, sha256: sdkImage.sha256, binding };
|
|
21598
21608
|
} else if (sdkImage) {
|
|
21599
|
-
const { buildSwiftAppModule } = await import("./swift-sdk-app-module-
|
|
21609
|
+
const { buildSwiftAppModule } = await import("./swift-sdk-app-module-MGTJTVKU.mjs");
|
|
21600
21610
|
const binding = await buildSwiftAppModule({
|
|
21601
21611
|
buildRoot: root,
|
|
21602
21612
|
toolchainBin: options.toolchainBin,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2589 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// ../../node_modules/acorn/dist/acorn.mjs
|
|
4
4
|
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 78, 5, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 199, 7, 137, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 55, 9, 266, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 233, 0, 3, 0, 8, 1, 6, 0, 475, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2589 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
swiftModuleToolchain
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-57FFWABF.mjs";
|
|
5
5
|
import {
|
|
6
6
|
DARWIN_RECORDS_PREFIX,
|
|
7
7
|
KEEP_WASM_NAMES,
|
|
@@ -31,13 +31,13 @@ import {
|
|
|
31
31
|
swiftSdkPaths,
|
|
32
32
|
unslottedFunctions,
|
|
33
33
|
wasmSections
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-L3OSVIGA.mjs";
|
|
35
35
|
import {
|
|
36
36
|
SWIFT_WASM_TRIPLE,
|
|
37
37
|
sourceSwiftCheckout,
|
|
38
38
|
swiftCacheDir,
|
|
39
39
|
withSwiftRootLock
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-5EFD2VBY.mjs";
|
|
41
41
|
|
|
42
42
|
// src/swift-sdk-image.ts
|
|
43
43
|
import { execFile } from "node:child_process";
|
|
@@ -192,7 +192,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
|
|
|
192
192
|
const existing = cached(directory, key);
|
|
193
193
|
if (existing) return existing;
|
|
194
194
|
if (!options?.producer && !swiftDistributionAt(moduleRoot) && path.resolve(moduleRoot) === sourceSwiftCheckout() && process.platform === "linux" && process.env.TM_SESSION) {
|
|
195
|
-
const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-
|
|
195
|
+
const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-RJRJ3EFU.mjs");
|
|
196
196
|
await produceSwiftSdkImage({
|
|
197
197
|
moduleRoot,
|
|
198
198
|
key,
|
package/dist-lib/esm-chunks/{metro-layout-parser-IGRR2DCH.mjs → metro-layout-parser-T5QIJTEV.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
import "./chunk-
|
|
1
|
+
/*! peach v0.1.2589 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "./chunk-33SCXU3Y.mjs";
|
|
3
3
|
|
|
4
4
|
// src/metro-layout-parser.ts
|
|
5
5
|
var whitespace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/y;
|
|
@@ -8,7 +8,7 @@ var lineBreak = /[\r\n\u2028\u2029]/;
|
|
|
8
8
|
var metroLayoutParser;
|
|
9
9
|
async function loadMetroLayoutParser() {
|
|
10
10
|
if (metroLayoutParser) return metroLayoutParser;
|
|
11
|
-
const { Parser } = await import("./acorn-
|
|
11
|
+
const { Parser } = await import("./acorn-6FUOY6FX.mjs");
|
|
12
12
|
metroLayoutParser = Parser.extend(
|
|
13
13
|
(Base) => {
|
|
14
14
|
const parseFunctionBody = Reflect.get(Base.prototype, "parseFunctionBody");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2589 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
compileTargets,
|
|
4
4
|
fetchNativeEntry,
|
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
swiftAvailableModules,
|
|
7
7
|
swiftDistributionAt,
|
|
8
8
|
swiftImportNames
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-L3OSVIGA.mjs";
|
|
10
|
+
import "./chunk-5EFD2VBY.mjs";
|
|
11
11
|
import {
|
|
12
12
|
SWIFT_REMOTE_PACKAGES_DIR
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5QWQDXXD.mjs";
|
|
14
14
|
import {
|
|
15
15
|
manifestCalls
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-I22LAVD5.mjs";
|
|
17
|
+
import "./chunk-464CBA5U.mjs";
|
|
18
|
+
import "./chunk-JLOJZF2Y.mjs";
|
|
19
|
+
import "./chunk-XTKKROVU.mjs";
|
|
20
|
+
import "./chunk-MKSOJCRT.mjs";
|
|
21
|
+
import "./chunk-33SCXU3Y.mjs";
|
|
22
22
|
|
|
23
23
|
// src/swift-package-prebuilt.ts
|
|
24
24
|
import { createHash } from "node:crypto";
|
package/dist-lib/esm-chunks/{swift-sdk-app-module-FYORV7GD.mjs → swift-sdk-app-module-MGTJTVKU.mjs}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2589 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
4
4
|
SWIFT_SDK_APP_TABLE_BASE,
|
|
5
5
|
SWIFT_SDK_MEMORY_BASE,
|
|
6
6
|
SWIFT_SDK_PIECE_FIELDS,
|
|
7
7
|
readSwiftSdkManifest
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-WQ73RKJY.mjs";
|
|
9
|
+
import "./chunk-57FFWABF.mjs";
|
|
10
|
+
import "./chunk-Y4PV4HZB.mjs";
|
|
11
|
+
import "./chunk-3VNUC4DT.mjs";
|
|
12
12
|
import {
|
|
13
13
|
ADDEND_RELOCATIONS,
|
|
14
14
|
KEEP_WASM_NAMES,
|
|
@@ -36,17 +36,17 @@ import {
|
|
|
36
36
|
wasmReader,
|
|
37
37
|
wasmSections,
|
|
38
38
|
writeWasmCustomSection
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-L3OSVIGA.mjs";
|
|
40
40
|
import {
|
|
41
41
|
SWIFT_WASM_TRIPLE
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
42
|
+
} from "./chunk-5EFD2VBY.mjs";
|
|
43
|
+
import "./chunk-5QWQDXXD.mjs";
|
|
44
|
+
import "./chunk-I22LAVD5.mjs";
|
|
45
|
+
import "./chunk-464CBA5U.mjs";
|
|
46
|
+
import "./chunk-JLOJZF2Y.mjs";
|
|
47
|
+
import "./chunk-XTKKROVU.mjs";
|
|
48
|
+
import "./chunk-MKSOJCRT.mjs";
|
|
49
|
+
import "./chunk-33SCXU3Y.mjs";
|
|
50
50
|
|
|
51
51
|
// src/swift-sdk-app-module.ts
|
|
52
52
|
import { execFile } from "node:child_process";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2589 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
4
4
|
SWIFT_SDK_APP_TABLE_BASE,
|
|
@@ -15,19 +15,19 @@ import {
|
|
|
15
15
|
swiftSdkImageFile,
|
|
16
16
|
swiftSdkImageKey,
|
|
17
17
|
swiftSdkImageProducts
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-WQ73RKJY.mjs";
|
|
19
|
+
import "./chunk-57FFWABF.mjs";
|
|
20
|
+
import "./chunk-Y4PV4HZB.mjs";
|
|
21
|
+
import "./chunk-3VNUC4DT.mjs";
|
|
22
|
+
import "./chunk-L3OSVIGA.mjs";
|
|
23
|
+
import "./chunk-5EFD2VBY.mjs";
|
|
24
|
+
import "./chunk-5QWQDXXD.mjs";
|
|
25
|
+
import "./chunk-I22LAVD5.mjs";
|
|
26
|
+
import "./chunk-464CBA5U.mjs";
|
|
27
|
+
import "./chunk-JLOJZF2Y.mjs";
|
|
28
|
+
import "./chunk-XTKKROVU.mjs";
|
|
29
|
+
import "./chunk-MKSOJCRT.mjs";
|
|
30
|
+
import "./chunk-33SCXU3Y.mjs";
|
|
31
31
|
export {
|
|
32
32
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
33
33
|
SWIFT_SDK_APP_TABLE_BASE,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2589 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
swiftCacheDir,
|
|
4
4
|
windowAdmission,
|
|
5
5
|
withSwiftRootLock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5EFD2VBY.mjs";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-MKSOJCRT.mjs";
|
|
10
|
+
import "./chunk-33SCXU3Y.mjs";
|
|
11
11
|
|
|
12
12
|
// src/swift-sdk-image-producer.ts
|
|
13
13
|
import { execFile, execFileSync } from "node:child_process";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2589 | (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;
|
|
@@ -26243,13 +26243,13 @@ var init_swift_standin_digest = __esm({
|
|
|
26243
26243
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
26244
26244
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
26245
26245
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
26246
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
26246
|
+
STANDIN_SOURCE_DIGEST = true ? "b4ec01293af51e43890fb5aa52c9dc6d240c73b8fe722cdaff952457b08d94ff" : standinSourceDigest();
|
|
26247
26247
|
}
|
|
26248
26248
|
});
|
|
26249
26249
|
|
|
26250
26250
|
// src/expo-native-compiler-digest.ts
|
|
26251
26251
|
function expoNativeCompilerDigestValue() {
|
|
26252
|
-
return true ? "
|
|
26252
|
+
return true ? "bc9bf63858735336bd46e9b34db5ced39d682f7200bbbc3eafbf5470dae0018f" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
26253
26253
|
}
|
|
26254
26254
|
var import_node_crypto17;
|
|
26255
26255
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -29448,6 +29448,7 @@ function stageOverlaySlot(realRoot, stagingRoot, relPath) {
|
|
|
29448
29448
|
const segment2 = segments[i];
|
|
29449
29449
|
for (const entry of (0, import_node_fs39.readdirSync)(real)) {
|
|
29450
29450
|
if (entry === segment2 || i === 0 && entry === SWIFT_CACHE_HOLD_MARKER) continue;
|
|
29451
|
+
if (mirror === stagingRoot && entry === "configuration") continue;
|
|
29451
29452
|
const dest = import_node_path37.default.join(mirror, entry);
|
|
29452
29453
|
if (!import_node_fs39.default.lstatSync(dest, { throwIfNoEntry: false })) {
|
|
29453
29454
|
import_node_fs39.default.symlinkSync(import_node_path37.default.join(real, entry), dest);
|
|
@@ -29482,7 +29483,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk2)
|
|
|
29482
29483
|
const stdint = import_node_path37.default.join(overlay, "include/stdint.h");
|
|
29483
29484
|
const key2 = JSON.stringify([
|
|
29484
29485
|
// bump the recipe when the transformation changes; bundling changes function text.
|
|
29485
|
-
"
|
|
29486
|
+
"v39",
|
|
29486
29487
|
[...WEAKEN_FOUNDATION_SYMS],
|
|
29487
29488
|
toolchainBin,
|
|
29488
29489
|
sdk2,
|
|
@@ -45905,6 +45906,60 @@ var init_swift_reproducible = __esm({
|
|
|
45905
45906
|
}
|
|
45906
45907
|
});
|
|
45907
45908
|
|
|
45909
|
+
// src/swift-source-closure.ts
|
|
45910
|
+
function collectSwiftSourceClosure(files2, roots, swiftCodeMask2, extensionMembersOnly) {
|
|
45911
|
+
const sources = /* @__PURE__ */ new Map();
|
|
45912
|
+
const owners = /* @__PURE__ */ new Map();
|
|
45913
|
+
for (const [file, source] of Object.entries(files2)) {
|
|
45914
|
+
if (!file.endsWith(".swift")) continue;
|
|
45915
|
+
const code = swiftCodeMask2(source);
|
|
45916
|
+
const references = new Set(code.match(/[A-Za-z_]\w*/g) ?? []);
|
|
45917
|
+
const pattern = /[{}]|\b(class|struct|enum|protocol|actor|typealias|func|var|let|extension)\s+([A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*)|\b(?:init|subscript)(?=\s*[?(])/g;
|
|
45918
|
+
let depth = 0;
|
|
45919
|
+
let memberExtension;
|
|
45920
|
+
for (const match of code.matchAll(pattern)) {
|
|
45921
|
+
if (match[0] === "{") {
|
|
45922
|
+
depth++;
|
|
45923
|
+
continue;
|
|
45924
|
+
}
|
|
45925
|
+
if (match[0] === "}") {
|
|
45926
|
+
if (--depth === 0) memberExtension = void 0;
|
|
45927
|
+
continue;
|
|
45928
|
+
}
|
|
45929
|
+
if (depth !== 0 && !(depth === 1 && memberExtension)) continue;
|
|
45930
|
+
const name3 = match[2]?.split(".").pop() ?? memberExtension;
|
|
45931
|
+
if (!name3) continue;
|
|
45932
|
+
if (match[1] === "extension" && extensionMembersOnly?.has(name3) && /^\s*\{/.test(code.slice(match.index + match[0].length))) {
|
|
45933
|
+
memberExtension = name3;
|
|
45934
|
+
continue;
|
|
45935
|
+
}
|
|
45936
|
+
const set2 = owners.get(name3) ?? /* @__PURE__ */ new Set();
|
|
45937
|
+
set2.add(file);
|
|
45938
|
+
owners.set(name3, set2);
|
|
45939
|
+
}
|
|
45940
|
+
sources.set(file, references);
|
|
45941
|
+
}
|
|
45942
|
+
const included = /* @__PURE__ */ new Set();
|
|
45943
|
+
const pending = [...roots];
|
|
45944
|
+
const seen = /* @__PURE__ */ new Set();
|
|
45945
|
+
while (pending.length) {
|
|
45946
|
+
const name3 = pending.pop();
|
|
45947
|
+
if (seen.has(name3)) continue;
|
|
45948
|
+
seen.add(name3);
|
|
45949
|
+
for (const file of owners.get(name3) ?? []) {
|
|
45950
|
+
if (included.has(file)) continue;
|
|
45951
|
+
included.add(file);
|
|
45952
|
+
for (const reference of sources.get(file)) pending.push(reference);
|
|
45953
|
+
}
|
|
45954
|
+
}
|
|
45955
|
+
return Object.fromEntries(Object.entries(files2).filter(([file]) => included.has(file)));
|
|
45956
|
+
}
|
|
45957
|
+
var init_swift_source_closure = __esm({
|
|
45958
|
+
"src/swift-source-closure.ts"() {
|
|
45959
|
+
"use strict";
|
|
45960
|
+
}
|
|
45961
|
+
});
|
|
45962
|
+
|
|
45908
45963
|
// src/swift-uniform-type-constants.ts
|
|
45909
45964
|
function compileUniformTypeConstants(args) {
|
|
45910
45965
|
const source = import_node_path64.default.join(args.packageRoot, "runtime/UniformTypeIdentifiersConstants.m");
|
|
@@ -48244,47 +48299,7 @@ function swiftSourceAsIOS(source, overlayFrameworks, swiftPackage, arm64 = true)
|
|
|
48244
48299
|
return lowerAVAssetURLCluster(out + conditioned.slice(copied));
|
|
48245
48300
|
}
|
|
48246
48301
|
function swiftSourceClosure(files2, roots) {
|
|
48247
|
-
|
|
48248
|
-
const owners = /* @__PURE__ */ new Map();
|
|
48249
|
-
const extensions = /* @__PURE__ */ new Map();
|
|
48250
|
-
for (const [file, source] of Object.entries(files2)) {
|
|
48251
|
-
if (!file.endsWith(".swift")) continue;
|
|
48252
|
-
const code = swiftCodeMask(source);
|
|
48253
|
-
const references = new Set(code.match(/[A-Za-z_]\w*/g) ?? []);
|
|
48254
|
-
const pattern = /[{}]|\b(class|struct|enum|protocol|actor|typealias|func|var|let|extension)\s+([A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*)/g;
|
|
48255
|
-
let depth = 0;
|
|
48256
|
-
for (const match of code.matchAll(pattern)) {
|
|
48257
|
-
if (match[0] === "{") {
|
|
48258
|
-
depth++;
|
|
48259
|
-
continue;
|
|
48260
|
-
}
|
|
48261
|
-
if (match[0] === "}") {
|
|
48262
|
-
depth--;
|
|
48263
|
-
continue;
|
|
48264
|
-
}
|
|
48265
|
-
if (depth !== 0 || !match[2]) continue;
|
|
48266
|
-
const name3 = match[2].split(".").pop();
|
|
48267
|
-
const index = match[1] === "extension" ? extensions : owners;
|
|
48268
|
-
const set2 = index.get(name3) ?? /* @__PURE__ */ new Set();
|
|
48269
|
-
set2.add(file);
|
|
48270
|
-
index.set(name3, set2);
|
|
48271
|
-
}
|
|
48272
|
-
sources.set(file, references);
|
|
48273
|
-
}
|
|
48274
|
-
const included = /* @__PURE__ */ new Set();
|
|
48275
|
-
const pending = [...roots];
|
|
48276
|
-
const seen = /* @__PURE__ */ new Set();
|
|
48277
|
-
while (pending.length) {
|
|
48278
|
-
const name3 = pending.pop();
|
|
48279
|
-
if (seen.has(name3)) continue;
|
|
48280
|
-
seen.add(name3);
|
|
48281
|
-
for (const file of [...owners.get(name3) ?? [], ...extensions.get(name3) ?? []]) {
|
|
48282
|
-
if (included.has(file)) continue;
|
|
48283
|
-
included.add(file);
|
|
48284
|
-
for (const reference of sources.get(file)) pending.push(reference);
|
|
48285
|
-
}
|
|
48286
|
-
}
|
|
48287
|
-
return Object.fromEntries(Object.entries(files2).filter(([file]) => included.has(file)));
|
|
48302
|
+
return collectSwiftSourceClosure(files2, roots, swiftCodeMask);
|
|
48288
48303
|
}
|
|
48289
48304
|
function swiftApplicationEntry(file, source) {
|
|
48290
48305
|
const code = [...swiftConditionalLines(swiftCodeMask(source))].map(({ line, active }) => active === false ? " ".repeat(line.length) : line).join("\n");
|
|
@@ -52171,6 +52186,7 @@ var init_swift_compile = __esm({
|
|
|
52171
52186
|
init_swift_root_lock();
|
|
52172
52187
|
init_swift_sdk_image_wasm();
|
|
52173
52188
|
init_swift_shared_sdk();
|
|
52189
|
+
init_swift_source_closure();
|
|
52174
52190
|
init_swift_toolchain();
|
|
52175
52191
|
init_swift_uniform_type_constants();
|
|
52176
52192
|
init_swift_wasm_prune();
|
|
@@ -52378,7 +52394,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
|
|
|
52378
52394
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
52379
52395
|
MULTI_MANIFEST_VERSION = 76;
|
|
52380
52396
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
52381
|
-
compilerSourceDigest = true ? "
|
|
52397
|
+
compilerSourceDigest = true ? "80c152de0e5f41327f3fe7c71ce7df4cd206c0ba2bb0373f71654a0661829c6e" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
52382
52398
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
52383
52399
|
MODULE_MAP_RESPONSE_FILE_RUN = 16;
|
|
52384
52400
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2589 | (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,19 +1,19 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2589 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
isSwiftResourcePath
|
|
4
|
-
} from "./esm-chunks/chunk-
|
|
4
|
+
} from "./esm-chunks/chunk-5QWQDXXD.mjs";
|
|
5
5
|
import {
|
|
6
6
|
isNativeAppIdentity
|
|
7
|
-
} from "./esm-chunks/chunk-
|
|
8
|
-
import "./esm-chunks/chunk-
|
|
7
|
+
} from "./esm-chunks/chunk-FMWEI6OI.mjs";
|
|
8
|
+
import "./esm-chunks/chunk-464CBA5U.mjs";
|
|
9
9
|
import {
|
|
10
10
|
insertBundleGlobalFooter,
|
|
11
11
|
readBundleGlobalFooter
|
|
12
|
-
} from "./esm-chunks/chunk-
|
|
12
|
+
} from "./esm-chunks/chunk-FQQ2DMXS.mjs";
|
|
13
13
|
import {
|
|
14
14
|
isRecord
|
|
15
|
-
} from "./esm-chunks/chunk-
|
|
16
|
-
import "./esm-chunks/chunk-
|
|
15
|
+
} from "./esm-chunks/chunk-MKSOJCRT.mjs";
|
|
16
|
+
import "./esm-chunks/chunk-33SCXU3Y.mjs";
|
|
17
17
|
|
|
18
18
|
// src/expoSwiftContract.ts
|
|
19
19
|
function strings(value) {
|
package/dist-lib/home-paths.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2589 | (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;
|