peachsim 0.1.2742 → 0.1.2743
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 +119 -100
- 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-I6YLE7RH.mjs → acorn-4LW63VJO.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-2SC45KUK.mjs → chunk-23OQSLRP.mjs} +128 -109
- package/dist-lib/esm-chunks/{chunk-RC3JQV7D.mjs → chunk-2HP5FPCA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GMFZTGVJ.mjs → chunk-6FHNPTCA.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-4CNYVYQW.mjs → chunk-7NBU6OXB.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-ZRA35GYC.mjs → chunk-B3F4HKM6.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-FKC5RBXR.mjs → chunk-BJSA6VP6.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-OXFGIZC4.mjs → chunk-BNJ5YG7V.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-VH5KY2GM.mjs → chunk-BQUYNIMY.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-G44GUBAL.mjs → chunk-BW3KZJV5.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YQSNOLNM.mjs → chunk-EAAYQS4L.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HJBL2ND3.mjs → chunk-EES2SLJK.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-Y4Q3W36I.mjs → chunk-GIZQHA6L.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-QDTQYGJB.mjs → chunk-HOUFNDEV.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CFPPESX7.mjs → chunk-JHOZWSFF.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-6QTRZNLH.mjs → chunk-LVCSLWR2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-U262IRGM.mjs → chunk-OEQBNK6V.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-NWGCI4JC.mjs → chunk-SG7MN2KW.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-PLXC42XF.mjs → chunk-THJMTM3L.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-6LMI5DE3.mjs → chunk-THSR72MV.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MHRTZ6I7.mjs → chunk-V3SRJIBE.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VWRLBFID.mjs → chunk-VJKLZAU2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-IVVVYJKG.mjs → chunk-WKGJ6LAU.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MXADGMSE.mjs → chunk-XP5F6PNN.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GPVGYC45.mjs → chunk-ZLQX4SVV.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-QGTUKU6T.mjs → metro-layout-parser-L57PU3TD.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-M2IXDM7B.mjs → swift-package-prebuilt-UNXWJN7B.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-4KYBNEBW.mjs → swift-sdk-app-module-DZV3XYCP.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-Z37PPINV.mjs → swift-sdk-image-WRYMP64Z.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-7KFCU6Y6.mjs → swift-sdk-image-producer-D6DOCCCR.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +119 -100
- 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 +119 -100
- package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
- 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 +1 -1
- package/dist-lib/native-app-identity-project.mjs +15 -15
- 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 +85 -85
- package/dist-lib/public-origins-lib.json +64 -64
- 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 +119 -100
- package/dist-lib/swift-compile.cjs +115 -96
- package/dist-lib/swift-compile.mjs +12 -12
- 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/acorn.cjs +1 -1
- package/dist-lib/vendor/magic-string.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/engine/native-font-dataContract.d.ts +1 -0
- package/dist-types/packages/peach-kit/src/ui/hosting-safe-area.d.ts +17 -1
- package/package.json +1 -1
- package/src/swift-compile.ts +145 -120
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
acquireSwiftRootReadHold,
|
|
4
4
|
hasLiveSwiftRootReaders,
|
|
5
5
|
retainSwiftRootReadHold,
|
|
6
6
|
withSwiftRootLock
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BNJ5YG7V.mjs";
|
|
8
8
|
import {
|
|
9
9
|
CORE_FOUNDATION_OVERLAY_GLOBALS,
|
|
10
10
|
NATIVE_GRAPH_SDK_VERSION,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
withoutImportedSdkEnumForwards,
|
|
56
56
|
withoutSwiftDeclarations,
|
|
57
57
|
writeBuildFile
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-GIZQHA6L.mjs";
|
|
59
59
|
import {
|
|
60
60
|
SWIFT_AUTOLINK_LINKER,
|
|
61
61
|
SWIFT_CACHE_HOLD_MARKER,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
wasmThreadLinkFlags,
|
|
73
73
|
windowAdmission,
|
|
74
74
|
writeSwiftAutolinkLinker
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-VJKLZAU2.mjs";
|
|
76
76
|
import {
|
|
77
77
|
SWIFT_BINARY_TREES_DIR,
|
|
78
78
|
SWIFT_NATIVE_INPUT_ROOT,
|
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
isSwiftResourcePath,
|
|
88
88
|
isSwiftSourceLinkGraph,
|
|
89
89
|
swiftProjectFilesProblems
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-WKGJ6LAU.mjs";
|
|
91
91
|
import {
|
|
92
92
|
OBJC_RESOURCE_ACCESSOR_BODY,
|
|
93
93
|
OBJC_RESOURCE_ACCESSOR_HEADER,
|
|
@@ -110,16 +110,16 @@ import {
|
|
|
110
110
|
swiftPackagePartition,
|
|
111
111
|
swiftTargetModuleName,
|
|
112
112
|
withoutGlogModuleMap
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-OEQBNK6V.mjs";
|
|
114
114
|
import {
|
|
115
115
|
rnxPublicBrand
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-JHOZWSFF.mjs";
|
|
117
117
|
import {
|
|
118
118
|
isRecord
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-2HP5FPCA.mjs";
|
|
120
120
|
import {
|
|
121
121
|
__publicField
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-LVCSLWR2.mjs";
|
|
123
123
|
|
|
124
124
|
// src/swift-compile.ts
|
|
125
125
|
import {
|
|
@@ -14469,7 +14469,7 @@ async function compileGuestLink(options) {
|
|
|
14469
14469
|
};
|
|
14470
14470
|
const sdk = options.sdkImage;
|
|
14471
14471
|
const sdkCallers = sdk.sdkInterface.guestCallers;
|
|
14472
|
-
const sdkObjects = (await import("./swift-sdk-image-
|
|
14472
|
+
const sdkObjects = (await import("./swift-sdk-image-WRYMP64Z.mjs")).readSwiftSdkManifestIndex(
|
|
14473
14473
|
sdk
|
|
14474
14474
|
).guestObjects;
|
|
14475
14475
|
if (!sdkCallers || !sdkObjects)
|
|
@@ -14769,7 +14769,7 @@ async function compileGuestLink(options) {
|
|
|
14769
14769
|
swiftAppModuleThunkSection,
|
|
14770
14770
|
swiftSdkProjectionSpans,
|
|
14771
14771
|
writeSwiftSdkAppLink
|
|
14772
|
-
} = await import("./swift-sdk-app-module-
|
|
14772
|
+
} = await import("./swift-sdk-app-module-DZV3XYCP.mjs");
|
|
14773
14773
|
const project = options.project;
|
|
14774
14774
|
const work = project ? mkdtempSync2(path14.join(directory, "app-module-")) : path14.join(directory, "app-module");
|
|
14775
14775
|
if (project) chownSync(work, project.uid, project.gid);
|
|
@@ -16742,7 +16742,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
16742
16742
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
16743
16743
|
var MULTI_MANIFEST_VERSION = 76;
|
|
16744
16744
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
16745
|
-
var compilerSourceDigest = true ? "
|
|
16745
|
+
var compilerSourceDigest = true ? "c83dc1b17f6e7fc01d5217313795b0276b66d9f33db641855c80c055d7d77edd" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
16746
16746
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
16747
16747
|
return swiftCompileInputHash(input, release).update(swiftModuleDigest(moduleRoot)).digest("hex");
|
|
16748
16748
|
}
|
|
@@ -17534,7 +17534,7 @@ function findTargetForFile(file, byDir, predicate) {
|
|
|
17534
17534
|
}
|
|
17535
17535
|
return void 0;
|
|
17536
17536
|
}
|
|
17537
|
-
function compiledSwiftSources(files, targets, overlayFrameworks, headers
|
|
17537
|
+
function compiledSwiftSources(files, targets, overlayFrameworks, headers) {
|
|
17538
17538
|
const ordered = [...targets].sort((a, b) => b.path.length - a.path.length);
|
|
17539
17539
|
const byDir = indexTargetsByDirectory(ordered);
|
|
17540
17540
|
const excludeSets = /* @__PURE__ */ new Map();
|
|
@@ -17560,7 +17560,7 @@ function compiledSwiftSources(files, targets, overlayFrameworks, headers, native
|
|
|
17560
17560
|
const { onWasm, withoutWasm } = swiftTargetArchitectures(targets, swiftSources, headers);
|
|
17561
17561
|
return new Map(
|
|
17562
17562
|
[...owners].map(([file, { source, owner }]) => {
|
|
17563
|
-
if (
|
|
17563
|
+
if (path23.posix.basename(file) === "OneNativeSource.generated.swift")
|
|
17564
17564
|
return [file, source];
|
|
17565
17565
|
const manifest = /(?:^|\/)Package(?:@swift-[\d.]+)?\.swift$/.test(file);
|
|
17566
17566
|
if (manifest && (!owner || /^Package(?:@swift-[\d.]+)?\.swift$/.test(file)))
|
|
@@ -19202,8 +19202,7 @@ module ${moduleName}.Swift {
|
|
|
19202
19202
|
([file]) => /\.(?:h|hh|hpp)$/.test(file)
|
|
19203
19203
|
));
|
|
19204
19204
|
return headerFiles.filter(([file]) => file.startsWith(`${directory}/`)).map(([, contents]) => contents);
|
|
19205
|
-
}
|
|
19206
|
-
input.oneModule
|
|
19205
|
+
}
|
|
19207
19206
|
);
|
|
19208
19207
|
const libraryEntryFiles = /* @__PURE__ */ new Map();
|
|
19209
19208
|
for (const target of [...targets]) {
|
|
@@ -20476,9 +20475,10 @@ var frameworkProductsReceiptSchema = object({
|
|
|
20476
20475
|
objcHeaders: array(tuple([string(), string()])),
|
|
20477
20476
|
archived: array(tuple([string(), string()]))
|
|
20478
20477
|
});
|
|
20479
|
-
function readFrameworkProductsReceipt(scratch, receiptKey) {
|
|
20478
|
+
function readFrameworkProductsReceipt(scratch, receiptKey, planChangedAt = 0n) {
|
|
20480
20479
|
const receiptFile = path23.join(scratch, "products-ready", `${receiptKey}.json`);
|
|
20481
|
-
|
|
20480
|
+
const receiptStat = statSync4(receiptFile, { bigint: true, throwIfNoEntry: false });
|
|
20481
|
+
if (!receiptStat || receiptStat.mtimeNs < planChangedAt) return null;
|
|
20482
20482
|
let parsed;
|
|
20483
20483
|
try {
|
|
20484
20484
|
parsed = parse(
|
|
@@ -20602,117 +20602,136 @@ async function buildFrameworkProducts(scratch, args, allowWrite) {
|
|
|
20602
20602
|
const unoptimized = args.input.unoptimized === true;
|
|
20603
20603
|
const sdkOptions = swiftCompileSdkOptions(args.moduleRoot, args.toolchainBin);
|
|
20604
20604
|
const selectorOptions = swiftObjCSelectorOptions(args.moduleRoot);
|
|
20605
|
-
const
|
|
20605
|
+
const receiptKeyFor = (products) => createHash16("sha256").update(
|
|
20606
20606
|
JSON.stringify([
|
|
20607
20607
|
"framework-products/v2",
|
|
20608
20608
|
args.frameworkKey,
|
|
20609
20609
|
unoptimized,
|
|
20610
20610
|
args.sdk,
|
|
20611
20611
|
args.toolchainBin,
|
|
20612
|
-
[...
|
|
20612
|
+
[...products].sort(),
|
|
20613
20613
|
darwinRecordsMinimum(),
|
|
20614
20614
|
args.plugins,
|
|
20615
20615
|
sdkOptions,
|
|
20616
20616
|
selectorOptions
|
|
20617
20617
|
])
|
|
20618
20618
|
).digest("hex").slice(0, 32);
|
|
20619
|
+
const receiptKey = receiptKeyFor(linkedTargets.products);
|
|
20619
20620
|
const ready = readFrameworkProductsReceipt(scratch, receiptKey);
|
|
20620
20621
|
if (ready) return ready;
|
|
20621
20622
|
if (!allowWrite) return;
|
|
20622
20623
|
const linkRoot = path23.join(scratch, "link");
|
|
20623
|
-
|
|
20624
|
-
const
|
|
20625
|
-
|
|
20626
|
-
|
|
20627
|
-
|
|
20628
|
-
|
|
20629
|
-
const
|
|
20624
|
+
const manifest = path23.join(linkRoot, "Package.swift");
|
|
20625
|
+
const manifestStat = statSync4(manifest, { bigint: true, throwIfNoEntry: false });
|
|
20626
|
+
const planStat = statSync4(path23.join(scratch, "release.yaml"), {
|
|
20627
|
+
bigint: true,
|
|
20628
|
+
throwIfNoEntry: false
|
|
20629
|
+
});
|
|
20630
|
+
const builtProducts = manifestStat && planStat ? [
|
|
20631
|
+
...readFileSync13(manifest, "utf8").matchAll(
|
|
20632
|
+
/^\s*\.product\(name: "([^"]+)", package:/gm
|
|
20633
|
+
)
|
|
20634
|
+
].map((match) => match[1]) : [];
|
|
20635
|
+
const reusePlan = manifestStat && planStat && linkedTargets.products.every((product) => builtProducts.includes(product)) && readFrameworkProductsReceipt(
|
|
20630
20636
|
scratch,
|
|
20631
|
-
|
|
20632
|
-
|
|
20633
|
-
sdkOptions,
|
|
20634
|
-
linkedTargets.products
|
|
20637
|
+
receiptKeyFor(builtProducts),
|
|
20638
|
+
manifestStat.ctimeNs > planStat.ctimeNs ? manifestStat.ctimeNs : planStat.ctimeNs
|
|
20635
20639
|
);
|
|
20636
|
-
|
|
20637
|
-
args.
|
|
20638
|
-
|
|
20639
|
-
|
|
20640
|
-
|
|
20641
|
-
|
|
20642
|
-
|
|
20643
|
-
|
|
20644
|
-
String(targetJobs),
|
|
20645
|
-
"--package-path",
|
|
20646
|
-
linkRoot,
|
|
20647
|
-
"--scratch-path",
|
|
20640
|
+
if (!reusePlan) {
|
|
20641
|
+
writeFrameworkLinkPackage(linkRoot, args.moduleRoot, linkedTargets.products);
|
|
20642
|
+
const frameworkTmp = path23.join(scratch, "peach-compiler-tmp");
|
|
20643
|
+
mkdirSync7(frameworkTmp, { recursive: true });
|
|
20644
|
+
const jobs = swiftCompilerJobs();
|
|
20645
|
+
const targetJobs = jobs >= 4 ? 2 : 1;
|
|
20646
|
+
const driverJobs = Math.max(1, Math.floor(jobs / targetJobs));
|
|
20647
|
+
const cache = unoptimized ? null : prepareFrameworkCompileCache(
|
|
20648
20648
|
scratch,
|
|
20649
|
-
|
|
20650
|
-
|
|
20651
|
-
|
|
20652
|
-
|
|
20653
|
-
|
|
20654
|
-
|
|
20655
|
-
|
|
20656
|
-
|
|
20657
|
-
|
|
20658
|
-
|
|
20659
|
-
|
|
20660
|
-
|
|
20661
|
-
|
|
20662
|
-
|
|
20663
|
-
|
|
20664
|
-
|
|
20665
|
-
|
|
20666
|
-
|
|
20667
|
-
|
|
20668
|
-
|
|
20669
|
-
|
|
20670
|
-
|
|
20671
|
-
|
|
20672
|
-
|
|
20673
|
-
|
|
20674
|
-
|
|
20675
|
-
|
|
20676
|
-
"-g0",
|
|
20677
|
-
"-Xcxx",
|
|
20678
|
-
"-g0",
|
|
20679
|
-
"-Xswiftc",
|
|
20680
|
-
"-num-threads",
|
|
20681
|
-
"-Xswiftc",
|
|
20682
|
-
"1",
|
|
20683
|
-
...swiftReproducibleBuildFlags([
|
|
20684
|
-
[path23.dirname(args.toolchainBin), "toolchain"],
|
|
20685
|
-
[args.moduleRoot, "framework"],
|
|
20686
|
-
[scratch, "framework-scratch"]
|
|
20687
|
-
]),
|
|
20688
|
-
...args.plugins.libraries.flatMap((plugin) => [
|
|
20649
|
+
args.moduleRoot,
|
|
20650
|
+
args.toolchainBin,
|
|
20651
|
+
sdkOptions,
|
|
20652
|
+
linkedTargets.products
|
|
20653
|
+
);
|
|
20654
|
+
await runCompiler(
|
|
20655
|
+
args.swift,
|
|
20656
|
+
[
|
|
20657
|
+
"build",
|
|
20658
|
+
...swiftPackageCacheOptions(),
|
|
20659
|
+
"--build-system",
|
|
20660
|
+
"native",
|
|
20661
|
+
"-j",
|
|
20662
|
+
String(targetJobs),
|
|
20663
|
+
"--package-path",
|
|
20664
|
+
linkRoot,
|
|
20665
|
+
"--scratch-path",
|
|
20666
|
+
scratch,
|
|
20667
|
+
"--target",
|
|
20668
|
+
FRAMEWORK_LINK_TARGET,
|
|
20669
|
+
...sdkOptions,
|
|
20670
|
+
...selectorOptions,
|
|
20671
|
+
"--swift-sdk",
|
|
20672
|
+
args.sdk,
|
|
20673
|
+
"-c",
|
|
20674
|
+
"release",
|
|
20675
|
+
...cache ? ["-Xswiftc", "-driver-use-frontend-path", "-Xswiftc", cache.wrapper] : [],
|
|
20689
20676
|
"-Xswiftc",
|
|
20690
|
-
"-
|
|
20677
|
+
unoptimized ? "-Onone" : "-Osize",
|
|
20691
20678
|
"-Xswiftc",
|
|
20692
|
-
|
|
20693
|
-
|
|
20694
|
-
|
|
20679
|
+
"-no-whole-module-optimization",
|
|
20680
|
+
// optimized batches can move specialized definitions between object files.
|
|
20681
|
+
...unoptimized ? ["-Xswiftc", "-incremental"] : [],
|
|
20695
20682
|
"-Xswiftc",
|
|
20696
|
-
"-
|
|
20683
|
+
"-enable-batch-mode",
|
|
20684
|
+
// each batch repeats the same framework diagnostics.
|
|
20685
|
+
...unoptimized ? [] : ["-Xswiftc", "-suppress-warnings"],
|
|
20697
20686
|
"-Xswiftc",
|
|
20698
|
-
|
|
20699
|
-
|
|
20700
|
-
|
|
20701
|
-
|
|
20702
|
-
|
|
20703
|
-
|
|
20704
|
-
|
|
20705
|
-
|
|
20706
|
-
|
|
20707
|
-
|
|
20708
|
-
|
|
20709
|
-
|
|
20710
|
-
|
|
20711
|
-
|
|
20712
|
-
|
|
20713
|
-
|
|
20714
|
-
|
|
20715
|
-
|
|
20687
|
+
"-j",
|
|
20688
|
+
"-Xswiftc",
|
|
20689
|
+
String(driverJobs),
|
|
20690
|
+
// the release link strips all debug info, so none is generated.
|
|
20691
|
+
"-Xswiftc",
|
|
20692
|
+
"-gnone",
|
|
20693
|
+
"-Xcc",
|
|
20694
|
+
"-g0",
|
|
20695
|
+
"-Xcxx",
|
|
20696
|
+
"-g0",
|
|
20697
|
+
"-Xswiftc",
|
|
20698
|
+
"-num-threads",
|
|
20699
|
+
"-Xswiftc",
|
|
20700
|
+
"1",
|
|
20701
|
+
...swiftReproducibleBuildFlags([
|
|
20702
|
+
[path23.dirname(args.toolchainBin), "toolchain"],
|
|
20703
|
+
[args.moduleRoot, "framework"],
|
|
20704
|
+
[scratch, "framework-scratch"]
|
|
20705
|
+
]),
|
|
20706
|
+
...args.plugins.libraries.flatMap((plugin) => [
|
|
20707
|
+
"-Xswiftc",
|
|
20708
|
+
"-load-plugin-library",
|
|
20709
|
+
"-Xswiftc",
|
|
20710
|
+
plugin
|
|
20711
|
+
]),
|
|
20712
|
+
...args.plugins.executables.flatMap((plugin) => [
|
|
20713
|
+
"-Xswiftc",
|
|
20714
|
+
"-load-plugin-executable",
|
|
20715
|
+
"-Xswiftc",
|
|
20716
|
+
`${plugin}#ExpoModulesMacros`
|
|
20717
|
+
])
|
|
20718
|
+
],
|
|
20719
|
+
// swiftpm hashes TMPDIR into its plan; keep one stable compiler scratch inside the locked slot.
|
|
20720
|
+
// the framework build's warnings alone pass the default 1 MiB cap, which kills
|
|
20721
|
+
// the build one step from the end.
|
|
20722
|
+
{
|
|
20723
|
+
...args.buildOptions,
|
|
20724
|
+
temporaryDirectory: frameworkTmp,
|
|
20725
|
+
maxBuffer: 64 * 1024 * 1024
|
|
20726
|
+
},
|
|
20727
|
+
SWIFTPM_PROGRESS,
|
|
20728
|
+
SWIFTPM_NOISE
|
|
20729
|
+
).catch((error) => {
|
|
20730
|
+
throw new Error(outputOf(error), { cause: error });
|
|
20731
|
+
}).finally(() => {
|
|
20732
|
+
if (cache) reportFrameworkCompileCacheStats(scratch, cache.statsFile);
|
|
20733
|
+
});
|
|
20734
|
+
}
|
|
20716
20735
|
const release = path23.join(scratch, WASM_TRIPLE, "release");
|
|
20717
20736
|
const linked = frameworkLinkClosure(scratch, linkedTargets.targets);
|
|
20718
20737
|
const objects = linked.objects;
|
|
@@ -21256,7 +21275,7 @@ async function compileSwiftProjectOnce(sources, options) {
|
|
|
21256
21275
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
21257
21276
|
const mirrorDistribution = options.linkOnly || options.project ? null : distribution;
|
|
21258
21277
|
if (distribution) refreshSwiftCacheHold(moduleRoot);
|
|
21259
|
-
const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-
|
|
21278
|
+
const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-UNXWJN7B.mjs")).useSwiftPackagePrebuilts(
|
|
21260
21279
|
sources,
|
|
21261
21280
|
moduleRoot,
|
|
21262
21281
|
options.toolchainBin
|
|
@@ -21269,7 +21288,7 @@ async function compileSwiftProjectOnce(sources, options) {
|
|
|
21269
21288
|
sources: path23.join(root, "Sources", "App"),
|
|
21270
21289
|
multi: compileTargets(input).length > 0
|
|
21271
21290
|
};
|
|
21272
|
-
const sdkImage = options.linkOnly ? void 0 : await (await import("./swift-sdk-image-
|
|
21291
|
+
const sdkImage = options.linkOnly ? void 0 : await (await import("./swift-sdk-image-WRYMP64Z.mjs")).buildSwiftSdkImage(
|
|
21273
21292
|
moduleRoot,
|
|
21274
21293
|
!!guestGraph,
|
|
21275
21294
|
distribution ? [] : linkedFrameworkTargets(moduleRoot, input).imports,
|
|
@@ -21988,7 +22007,7 @@ ${compatShape}` : "";
|
|
|
21988
22007
|
});
|
|
21989
22008
|
sdkAsset = { key: sdkImage.key, sha256: sdkImage.sha256, binding };
|
|
21990
22009
|
} else {
|
|
21991
|
-
const { buildSwiftAppModule } = await import("./swift-sdk-app-module-
|
|
22010
|
+
const { buildSwiftAppModule } = await import("./swift-sdk-app-module-DZV3XYCP.mjs");
|
|
21992
22011
|
const binding = await buildSwiftAppModule({
|
|
21993
22012
|
buildRoot: root2,
|
|
21994
22013
|
toolchainBin: options.toolchainBin,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
DARWIN_RECORDS_PREFIX,
|
|
4
4
|
KEEP_WASM_NAMES,
|
|
@@ -31,22 +31,22 @@ import {
|
|
|
31
31
|
swiftSdkImageScope,
|
|
32
32
|
unslottedFunctions,
|
|
33
33
|
wasmSections
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-23OQSLRP.mjs";
|
|
35
35
|
import {
|
|
36
36
|
withSwiftRootLock,
|
|
37
37
|
withSwiftRootReadHolds
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-BNJ5YG7V.mjs";
|
|
39
39
|
import {
|
|
40
40
|
swiftDistributionAt,
|
|
41
41
|
swiftModuleDigest,
|
|
42
42
|
swiftModuleToolchain,
|
|
43
43
|
swiftSdkPaths
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-GIZQHA6L.mjs";
|
|
45
45
|
import {
|
|
46
46
|
SWIFT_WASM_TRIPLE,
|
|
47
47
|
sourceSwiftCheckout,
|
|
48
48
|
swiftCacheDir
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-VJKLZAU2.mjs";
|
|
50
50
|
|
|
51
51
|
// src/swift-sdk-image.ts
|
|
52
52
|
import { execFile } from "node:child_process";
|
|
@@ -225,7 +225,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
|
|
|
225
225
|
const existing = cached(directory, key);
|
|
226
226
|
if (existing) return existing;
|
|
227
227
|
if (!options?.producer && !swiftDistributionAt(moduleRoot) && path.resolve(moduleRoot) === sourceSwiftCheckout() && process.platform === "linux" && process.env.TM_SESSION) {
|
|
228
|
-
const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-
|
|
228
|
+
const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-D6DOCCCR.mjs");
|
|
229
229
|
await produceSwiftSdkImage({
|
|
230
230
|
moduleRoot,
|
|
231
231
|
key,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
isSwiftImageVariants
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BQUYNIMY.mjs";
|
|
5
5
|
import {
|
|
6
6
|
findBundleFooter
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EES2SLJK.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isRecord
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2HP5FPCA.mjs";
|
|
11
11
|
|
|
12
12
|
// src/android-string-value.ts
|
|
13
13
|
function compileAndroidStringValue(text, where) {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
LAUNCH_METADATA_KEYS,
|
|
4
4
|
LAUNCH_METADATA_KEYS_PATH
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-THJMTM3L.mjs";
|
|
6
6
|
import {
|
|
7
7
|
cacheDir,
|
|
8
8
|
parseSwiftDistributionLock,
|
|
9
9
|
readActiveRuntime,
|
|
10
10
|
runtimeDir
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GIZQHA6L.mjs";
|
|
12
12
|
import {
|
|
13
13
|
SWIFT_WASM_TRIPLE,
|
|
14
14
|
registerSwiftHostCompiler
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VJKLZAU2.mjs";
|
|
16
16
|
import {
|
|
17
17
|
isRecord
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2HP5FPCA.mjs";
|
|
19
19
|
|
|
20
20
|
// src/swift-distribution.ts
|
|
21
21
|
import { execFile as execFile2 } from "node:child_process";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
killOrphanedProcessGroup,
|
|
4
4
|
readProcessTable,
|
|
5
5
|
terminateProcessGroup
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VJKLZAU2.mjs";
|
|
7
7
|
|
|
8
8
|
// src/swift-root-lock.ts
|
|
9
9
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SWIFT_CACHE_HOLD_MARKER,
|
|
4
4
|
SWIFT_WASM_TRIPLE,
|
|
@@ -12,19 +12,19 @@ import {
|
|
|
12
12
|
terminateProcessGroup,
|
|
13
13
|
wasmThreadFlags,
|
|
14
14
|
windowAdmission
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VJKLZAU2.mjs";
|
|
16
16
|
import {
|
|
17
17
|
isSwiftResourcePath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-WKGJ6LAU.mjs";
|
|
19
19
|
import {
|
|
20
20
|
swiftManifestDeclarations
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-OEQBNK6V.mjs";
|
|
22
22
|
import {
|
|
23
23
|
isRecord
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-2HP5FPCA.mjs";
|
|
25
25
|
import {
|
|
26
26
|
__publicField
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-LVCSLWR2.mjs";
|
|
28
28
|
|
|
29
29
|
// src/write-build-file.ts
|
|
30
30
|
import { mkdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SIM_LONG_PRESS_MAX_MS
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZLQX4SVV.mjs";
|
|
5
5
|
import {
|
|
6
6
|
isRecord
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2HP5FPCA.mjs";
|
|
8
8
|
|
|
9
9
|
// ../peach-globals/src/globalsContract.ts
|
|
10
10
|
var LEGACY_ALIAS_MARKER = Symbol.for("sootsim.legacy-aliases-installed");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2743 | (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];
|