peachsim 0.1.2108 → 0.1.2110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +44 -24
- 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 +39 -19
- 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 +44 -24
- 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 +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +3 -3
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +3 -3
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +2 -2
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +44 -24
- package/dist-lib/swift-compile.cjs +26 -8
- package/dist-lib/swift-compile.mjs +26 -8
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +27 -9
- package/dist-lib/vite.cjs +3 -3
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/settings/duo-fold-bus.d.ts +1 -0
- package/package.json +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewCell.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILayoutGuide.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINavigationItem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINib.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStoryboard.h +1 -1
- package/src/nitro-adapter.lock.json +245 -245
- package/src/nitro-superset.lock.json +4 -4
- package/src/podspec-sources.ts +13 -11
- package/src/swift-compile.ts +6 -0
- package/src/swift-distribution.lock.json +11 -11
- package/src/swift-guest-compile.ts +2 -0
- package/src/swift-guest-link.ts +2 -0
- package/src/swift-wasm-prune.ts +16 -3
- package/src/turbo-runtime.lock.json +22 -22
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2110 | (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;
|
|
@@ -5729,7 +5729,7 @@ function getModulePrefix(file) {
|
|
|
5729
5729
|
const dash = base.indexOf("-");
|
|
5730
5730
|
return dash > 0 ? base.slice(0, dash) : base;
|
|
5731
5731
|
}
|
|
5732
|
-
function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTargets = [], owner, link) {
|
|
5732
|
+
function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTargets = [], owner, link, resourceReferences = []) {
|
|
5733
5733
|
const rspPath = import_node_path10.default.join(directory, ".peach-link.rsp");
|
|
5734
5734
|
if (!import_node_fs9.default.existsSync(rspPath)) return;
|
|
5735
5735
|
const origRsp = import_node_fs9.default.readFileSync(rspPath, "utf8");
|
|
@@ -5914,7 +5914,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
5914
5914
|
for (const t of o.typePrefixesInObj) knownTypes.add(t);
|
|
5915
5915
|
const globalLiveTypes = /* @__PURE__ */ new Set();
|
|
5916
5916
|
const pendingConformances = /* @__PURE__ */ new Map();
|
|
5917
|
-
const
|
|
5917
|
+
const eagerDynamicObjects = /* @__PURE__ */ new Set();
|
|
5918
5918
|
const conformingType = (name2) => {
|
|
5919
5919
|
for (let n = name2.length - 1; n > 2; n--) {
|
|
5920
5920
|
const prefix = name2.slice(0, n);
|
|
@@ -5931,7 +5931,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
5931
5931
|
if (waiting) {
|
|
5932
5932
|
pendingConformances.delete(pref);
|
|
5933
5933
|
for (const w of waiting) {
|
|
5934
|
-
|
|
5934
|
+
eagerDynamicObjects.add(w.obj);
|
|
5935
5935
|
extractObject(w.obj);
|
|
5936
5936
|
activateSymbolInObj(w.obj, w.symIdx);
|
|
5937
5937
|
}
|
|
@@ -6135,6 +6135,16 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6135
6135
|
}
|
|
6136
6136
|
}
|
|
6137
6137
|
}
|
|
6138
|
+
for (const [name2, providers] of lazyProviders) {
|
|
6139
|
+
if (!name2.startsWith("._OBJC_CLASS_")) continue;
|
|
6140
|
+
const className = name2.slice("._OBJC_CLASS_".length);
|
|
6141
|
+
if (!resourceReferences.some((bytes) => bytes.includes(className))) continue;
|
|
6142
|
+
for (const provider of providers) {
|
|
6143
|
+
eagerDynamicObjects.add(provider);
|
|
6144
|
+
extractObject(provider);
|
|
6145
|
+
activateSymbolInObj(provider, provider.symNames.indexOf(name2));
|
|
6146
|
+
}
|
|
6147
|
+
}
|
|
6138
6148
|
const eagerSdkCategoryFiles = [];
|
|
6139
6149
|
if (hasClangObjCEager) {
|
|
6140
6150
|
for (const name2 of foundationCategoryObjects.map(
|
|
@@ -6536,7 +6546,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6536
6546
|
emittedPruned.add(ef);
|
|
6537
6547
|
}
|
|
6538
6548
|
}
|
|
6539
|
-
for (const obj of
|
|
6549
|
+
for (const obj of eagerDynamicObjects) {
|
|
6540
6550
|
if (!emittedPruned.has(obj.file) && prunedMap.has(obj.file)) {
|
|
6541
6551
|
outTokens.push(prunedMap.get(obj.file));
|
|
6542
6552
|
emittedPruned.add(obj.file);
|
|
@@ -9626,7 +9636,8 @@ function linkPrunedGuestImages(options) {
|
|
|
9626
9636
|
mapPath: options.mapPath,
|
|
9627
9637
|
generatedLedgerObject: import_node_path14.default.join(options.linkDirectory, "ledger.o")
|
|
9628
9638
|
};
|
|
9629
|
-
}
|
|
9639
|
+
},
|
|
9640
|
+
options.resourceReferences
|
|
9630
9641
|
);
|
|
9631
9642
|
if (!result) throw new Error("guest link did not receive pruned inputs");
|
|
9632
9643
|
return result;
|
|
@@ -10350,6 +10361,7 @@ async function compileGuestLink(options) {
|
|
|
10350
10361
|
toolchainBin: options.toolchainBin,
|
|
10351
10362
|
moduleRoot: options.moduleRoot,
|
|
10352
10363
|
staticClangTargets: options.staticClangTargets,
|
|
10364
|
+
resourceReferences: options.resourceReferences,
|
|
10353
10365
|
linkDirectory: directory,
|
|
10354
10366
|
mapPath: import_node_path19.default.join(directory, "guest.map"),
|
|
10355
10367
|
ledgerDataImage: 0,
|
|
@@ -12442,7 +12454,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12442
12454
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12443
12455
|
var MULTI_MANIFEST_VERSION = 68;
|
|
12444
12456
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12445
|
-
var compilerSourceDigest = true ? "
|
|
12457
|
+
var compilerSourceDigest = true ? "2785fbd24d382cf03125cf053e28d3c4016317441246689f1d4b4c15c2a677b0" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
12446
12458
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12447
12459
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
12448
12460
|
hash.update(`swift-compile
|
|
@@ -16790,13 +16802,18 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
16790
16802
|
);
|
|
16791
16803
|
}
|
|
16792
16804
|
if (options.project) removeProjectLinks(root);
|
|
16805
|
+
const resourceReferences = Object.values(input.resources ?? {}).map(
|
|
16806
|
+
(value) => Buffer.from(value, "base64")
|
|
16807
|
+
);
|
|
16793
16808
|
if (!guestGraph)
|
|
16794
16809
|
pruneSwiftWasmLink(
|
|
16795
16810
|
root,
|
|
16796
16811
|
options.toolchainBin,
|
|
16797
16812
|
frameworkRoot,
|
|
16798
16813
|
input.staticClangTargets,
|
|
16799
|
-
options.project
|
|
16814
|
+
options.project,
|
|
16815
|
+
void 0,
|
|
16816
|
+
resourceReferences
|
|
16800
16817
|
);
|
|
16801
16818
|
const output = options.project ? projectOutputFile(root, linked, options.project) : linked;
|
|
16802
16819
|
const optimized = `${output}.optimized`;
|
|
@@ -16810,6 +16827,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
16810
16827
|
sysroot: swiftSdkPaths(frameworkRoot, options.toolchainBin).sysroot,
|
|
16811
16828
|
sdk: swiftModuleSdk(frameworkRoot),
|
|
16812
16829
|
staticClangTargets: input.staticClangTargets ?? [],
|
|
16830
|
+
resourceReferences,
|
|
16813
16831
|
generatedOwners: preparation.generatedOwners,
|
|
16814
16832
|
output,
|
|
16815
16833
|
optimized
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2110 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-compile.ts
|
|
4
4
|
import {
|
|
@@ -5676,7 +5676,7 @@ function getModulePrefix(file) {
|
|
|
5676
5676
|
const dash = base.indexOf("-");
|
|
5677
5677
|
return dash > 0 ? base.slice(0, dash) : base;
|
|
5678
5678
|
}
|
|
5679
|
-
function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTargets = [], owner, link) {
|
|
5679
|
+
function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTargets = [], owner, link, resourceReferences = []) {
|
|
5680
5680
|
const rspPath = path10.join(directory, ".peach-link.rsp");
|
|
5681
5681
|
if (!fs4.existsSync(rspPath)) return;
|
|
5682
5682
|
const origRsp = fs4.readFileSync(rspPath, "utf8");
|
|
@@ -5861,7 +5861,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
5861
5861
|
for (const t of o.typePrefixesInObj) knownTypes.add(t);
|
|
5862
5862
|
const globalLiveTypes = /* @__PURE__ */ new Set();
|
|
5863
5863
|
const pendingConformances = /* @__PURE__ */ new Map();
|
|
5864
|
-
const
|
|
5864
|
+
const eagerDynamicObjects = /* @__PURE__ */ new Set();
|
|
5865
5865
|
const conformingType = (name2) => {
|
|
5866
5866
|
for (let n = name2.length - 1; n > 2; n--) {
|
|
5867
5867
|
const prefix = name2.slice(0, n);
|
|
@@ -5878,7 +5878,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
5878
5878
|
if (waiting) {
|
|
5879
5879
|
pendingConformances.delete(pref);
|
|
5880
5880
|
for (const w of waiting) {
|
|
5881
|
-
|
|
5881
|
+
eagerDynamicObjects.add(w.obj);
|
|
5882
5882
|
extractObject(w.obj);
|
|
5883
5883
|
activateSymbolInObj(w.obj, w.symIdx);
|
|
5884
5884
|
}
|
|
@@ -6082,6 +6082,16 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6082
6082
|
}
|
|
6083
6083
|
}
|
|
6084
6084
|
}
|
|
6085
|
+
for (const [name2, providers] of lazyProviders) {
|
|
6086
|
+
if (!name2.startsWith("._OBJC_CLASS_")) continue;
|
|
6087
|
+
const className = name2.slice("._OBJC_CLASS_".length);
|
|
6088
|
+
if (!resourceReferences.some((bytes) => bytes.includes(className))) continue;
|
|
6089
|
+
for (const provider of providers) {
|
|
6090
|
+
eagerDynamicObjects.add(provider);
|
|
6091
|
+
extractObject(provider);
|
|
6092
|
+
activateSymbolInObj(provider, provider.symNames.indexOf(name2));
|
|
6093
|
+
}
|
|
6094
|
+
}
|
|
6085
6095
|
const eagerSdkCategoryFiles = [];
|
|
6086
6096
|
if (hasClangObjCEager) {
|
|
6087
6097
|
for (const name2 of foundationCategoryObjects.map(
|
|
@@ -6483,7 +6493,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6483
6493
|
emittedPruned.add(ef);
|
|
6484
6494
|
}
|
|
6485
6495
|
}
|
|
6486
|
-
for (const obj of
|
|
6496
|
+
for (const obj of eagerDynamicObjects) {
|
|
6487
6497
|
if (!emittedPruned.has(obj.file) && prunedMap.has(obj.file)) {
|
|
6488
6498
|
outTokens.push(prunedMap.get(obj.file));
|
|
6489
6499
|
emittedPruned.add(obj.file);
|
|
@@ -9574,7 +9584,8 @@ function linkPrunedGuestImages(options) {
|
|
|
9574
9584
|
mapPath: options.mapPath,
|
|
9575
9585
|
generatedLedgerObject: path14.join(options.linkDirectory, "ledger.o")
|
|
9576
9586
|
};
|
|
9577
|
-
}
|
|
9587
|
+
},
|
|
9588
|
+
options.resourceReferences
|
|
9578
9589
|
);
|
|
9579
9590
|
if (!result) throw new Error("guest link did not receive pruned inputs");
|
|
9580
9591
|
return result;
|
|
@@ -10306,6 +10317,7 @@ async function compileGuestLink(options) {
|
|
|
10306
10317
|
toolchainBin: options.toolchainBin,
|
|
10307
10318
|
moduleRoot: options.moduleRoot,
|
|
10308
10319
|
staticClangTargets: options.staticClangTargets,
|
|
10320
|
+
resourceReferences: options.resourceReferences,
|
|
10309
10321
|
linkDirectory: directory,
|
|
10310
10322
|
mapPath: path19.join(directory, "guest.map"),
|
|
10311
10323
|
ledgerDataImage: 0,
|
|
@@ -12422,7 +12434,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12422
12434
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12423
12435
|
var MULTI_MANIFEST_VERSION = 68;
|
|
12424
12436
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12425
|
-
var compilerSourceDigest = true ? "
|
|
12437
|
+
var compilerSourceDigest = true ? "2785fbd24d382cf03125cf053e28d3c4016317441246689f1d4b4c15c2a677b0" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
12426
12438
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12427
12439
|
const hash = createHash13("sha256");
|
|
12428
12440
|
hash.update(`swift-compile
|
|
@@ -16770,13 +16782,18 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
16770
16782
|
);
|
|
16771
16783
|
}
|
|
16772
16784
|
if (options.project) removeProjectLinks(root);
|
|
16785
|
+
const resourceReferences = Object.values(input.resources ?? {}).map(
|
|
16786
|
+
(value) => Buffer.from(value, "base64")
|
|
16787
|
+
);
|
|
16773
16788
|
if (!guestGraph)
|
|
16774
16789
|
pruneSwiftWasmLink(
|
|
16775
16790
|
root,
|
|
16776
16791
|
options.toolchainBin,
|
|
16777
16792
|
frameworkRoot,
|
|
16778
16793
|
input.staticClangTargets,
|
|
16779
|
-
options.project
|
|
16794
|
+
options.project,
|
|
16795
|
+
void 0,
|
|
16796
|
+
resourceReferences
|
|
16780
16797
|
);
|
|
16781
16798
|
const output = options.project ? projectOutputFile(root, linked, options.project) : linked;
|
|
16782
16799
|
const optimized = `${output}.optimized`;
|
|
@@ -16790,6 +16807,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
16790
16807
|
sysroot: swiftSdkPaths(frameworkRoot, options.toolchainBin).sysroot,
|
|
16791
16808
|
sdk: swiftModuleSdk(frameworkRoot),
|
|
16792
16809
|
staticClangTargets: input.staticClangTargets ?? [],
|
|
16810
|
+
resourceReferences,
|
|
16793
16811
|
generatedOwners: preparation.generatedOwners,
|
|
16794
16812
|
output,
|
|
16795
16813
|
optimized
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2110 | (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.2110 | (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.2110 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2110 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2110 | (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;
|
|
@@ -10408,7 +10408,7 @@ function getModulePrefix(file) {
|
|
|
10408
10408
|
const dash = base.indexOf("-");
|
|
10409
10409
|
return dash > 0 ? base.slice(0, dash) : base;
|
|
10410
10410
|
}
|
|
10411
|
-
function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTargets = [], owner, link) {
|
|
10411
|
+
function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTargets = [], owner, link, resourceReferences = []) {
|
|
10412
10412
|
const rspPath = import_node_path10.default.join(directory, ".peach-link.rsp");
|
|
10413
10413
|
if (!import_node_fs10.default.existsSync(rspPath)) return;
|
|
10414
10414
|
const origRsp = import_node_fs10.default.readFileSync(rspPath, "utf8");
|
|
@@ -10593,7 +10593,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
10593
10593
|
for (const t of o.typePrefixesInObj) knownTypes2.add(t);
|
|
10594
10594
|
const globalLiveTypes = /* @__PURE__ */ new Set();
|
|
10595
10595
|
const pendingConformances = /* @__PURE__ */ new Map();
|
|
10596
|
-
const
|
|
10596
|
+
const eagerDynamicObjects = /* @__PURE__ */ new Set();
|
|
10597
10597
|
const conformingType = (name3) => {
|
|
10598
10598
|
for (let n = name3.length - 1; n > 2; n--) {
|
|
10599
10599
|
const prefix = name3.slice(0, n);
|
|
@@ -10610,7 +10610,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
10610
10610
|
if (waiting) {
|
|
10611
10611
|
pendingConformances.delete(pref);
|
|
10612
10612
|
for (const w of waiting) {
|
|
10613
|
-
|
|
10613
|
+
eagerDynamicObjects.add(w.obj);
|
|
10614
10614
|
extractObject(w.obj);
|
|
10615
10615
|
activateSymbolInObj(w.obj, w.symIdx);
|
|
10616
10616
|
}
|
|
@@ -10814,6 +10814,16 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
10814
10814
|
}
|
|
10815
10815
|
}
|
|
10816
10816
|
}
|
|
10817
|
+
for (const [name3, providers] of lazyProviders) {
|
|
10818
|
+
if (!name3.startsWith("._OBJC_CLASS_")) continue;
|
|
10819
|
+
const className = name3.slice("._OBJC_CLASS_".length);
|
|
10820
|
+
if (!resourceReferences.some((bytes) => bytes.includes(className))) continue;
|
|
10821
|
+
for (const provider of providers) {
|
|
10822
|
+
eagerDynamicObjects.add(provider);
|
|
10823
|
+
extractObject(provider);
|
|
10824
|
+
activateSymbolInObj(provider, provider.symNames.indexOf(name3));
|
|
10825
|
+
}
|
|
10826
|
+
}
|
|
10817
10827
|
const eagerSdkCategoryFiles = [];
|
|
10818
10828
|
if (hasClangObjCEager) {
|
|
10819
10829
|
for (const name3 of foundationCategoryObjects.map(
|
|
@@ -11215,7 +11225,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
11215
11225
|
emittedPruned.add(ef);
|
|
11216
11226
|
}
|
|
11217
11227
|
}
|
|
11218
|
-
for (const obj of
|
|
11228
|
+
for (const obj of eagerDynamicObjects) {
|
|
11219
11229
|
if (!emittedPruned.has(obj.file) && prunedMap.has(obj.file)) {
|
|
11220
11230
|
outTokens.push(prunedMap.get(obj.file));
|
|
11221
11231
|
emittedPruned.add(obj.file);
|
|
@@ -14320,7 +14330,8 @@ function linkPrunedGuestImages(options) {
|
|
|
14320
14330
|
mapPath: options.mapPath,
|
|
14321
14331
|
generatedLedgerObject: import_node_path14.default.join(options.linkDirectory, "ledger.o")
|
|
14322
14332
|
};
|
|
14323
|
-
}
|
|
14333
|
+
},
|
|
14334
|
+
options.resourceReferences
|
|
14324
14335
|
);
|
|
14325
14336
|
if (!result) throw new Error("guest link did not receive pruned inputs");
|
|
14326
14337
|
return result;
|
|
@@ -15081,6 +15092,7 @@ async function compileGuestLink(options) {
|
|
|
15081
15092
|
toolchainBin: options.toolchainBin,
|
|
15082
15093
|
moduleRoot: options.moduleRoot,
|
|
15083
15094
|
staticClangTargets: options.staticClangTargets,
|
|
15095
|
+
resourceReferences: options.resourceReferences,
|
|
15084
15096
|
linkDirectory: directory,
|
|
15085
15097
|
mapPath: import_node_path19.default.join(directory, "guest.map"),
|
|
15086
15098
|
ledgerDataImage: 0,
|
|
@@ -17014,7 +17026,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
17014
17026
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
17015
17027
|
var MULTI_MANIFEST_VERSION = 68;
|
|
17016
17028
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
17017
|
-
var compilerSourceDigest = true ? "
|
|
17029
|
+
var compilerSourceDigest = true ? "2785fbd24d382cf03125cf053e28d3c4016317441246689f1d4b4c15c2a677b0" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
17018
17030
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
17019
17031
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
17020
17032
|
hash.update(`swift-compile
|
|
@@ -21269,13 +21281,18 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
21269
21281
|
);
|
|
21270
21282
|
}
|
|
21271
21283
|
if (options.project) removeProjectLinks(root);
|
|
21284
|
+
const resourceReferences = Object.values(input.resources ?? {}).map(
|
|
21285
|
+
(value) => Buffer.from(value, "base64")
|
|
21286
|
+
);
|
|
21272
21287
|
if (!guestGraph)
|
|
21273
21288
|
pruneSwiftWasmLink(
|
|
21274
21289
|
root,
|
|
21275
21290
|
options.toolchainBin,
|
|
21276
21291
|
frameworkRoot,
|
|
21277
21292
|
input.staticClangTargets,
|
|
21278
|
-
options.project
|
|
21293
|
+
options.project,
|
|
21294
|
+
void 0,
|
|
21295
|
+
resourceReferences
|
|
21279
21296
|
);
|
|
21280
21297
|
const output2 = options.project ? projectOutputFile(root, linked, options.project) : linked;
|
|
21281
21298
|
const optimized = `${output2}.optimized`;
|
|
@@ -21289,6 +21306,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
21289
21306
|
sysroot: swiftSdkPaths(frameworkRoot, options.toolchainBin).sysroot,
|
|
21290
21307
|
sdk: swiftModuleSdk(frameworkRoot),
|
|
21291
21308
|
staticClangTargets: input.staticClangTargets ?? [],
|
|
21309
|
+
resourceReferences,
|
|
21292
21310
|
generatedOwners: preparation.generatedOwners,
|
|
21293
21311
|
output: output2,
|
|
21294
21312
|
optimized
|
|
@@ -30099,7 +30117,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
30099
30117
|
return hash.digest("hex");
|
|
30100
30118
|
}
|
|
30101
30119
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
30102
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
30120
|
+
var STANDIN_SOURCE_DIGEST = true ? "cbb876500807e740488df66df89d211f035352e1d674ba8214e4685063308cc7" : standinSourceDigest();
|
|
30103
30121
|
|
|
30104
30122
|
// src/swift-standins.ts
|
|
30105
30123
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2110 | (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;
|
|
@@ -1905,7 +1905,7 @@ function readIosSdkTree(root) {
|
|
|
1905
1905
|
|
|
1906
1906
|
// src/swift-standin-digest.ts
|
|
1907
1907
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1908
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
1908
|
+
var STANDIN_SOURCE_DIGEST = true ? "cbb876500807e740488df66df89d211f035352e1d674ba8214e4685063308cc7" : standinSourceDigest();
|
|
1909
1909
|
|
|
1910
1910
|
// src/expo-native-workspace.ts
|
|
1911
1911
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -5403,7 +5403,7 @@ var FOUNDATION_IMPLICIT_MODULES = [
|
|
|
5403
5403
|
var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
5404
5404
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
5405
5405
|
).join("");
|
|
5406
|
-
var compilerSourceDigest = true ? "
|
|
5406
|
+
var compilerSourceDigest = true ? "2785fbd24d382cf03125cf053e28d3c4016317441246689f1d4b4c15c2a677b0" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
5407
5407
|
var CORE_FOUNDATION_HANDLE_IMPORTS = [
|
|
5408
5408
|
"CFAllocator",
|
|
5409
5409
|
"CFArray",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2110 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/package.json
CHANGED
|
@@ -348,7 +348,7 @@ API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
|
|
|
348
348
|
@end
|
|
349
349
|
|
|
350
350
|
UIKIT_EXTERN API_AVAILABLE(ios(6.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
|
|
351
|
-
@interface UICollectionView : UIScrollView <UIDataSourceTranslating>
|
|
351
|
+
PEACH_SWIFT_CLASS(UIKitCore) @interface UICollectionView : UIScrollView <UIDataSourceTranslating>
|
|
352
352
|
|
|
353
353
|
- (instancetype)initWithFrame:(CGRect)frame collectionViewLayout:(UICollectionViewLayout *)layout NS_DESIGNATED_INITIALIZER;
|
|
354
354
|
- (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
|
|
@@ -25,7 +25,7 @@ NS_HEADER_AUDIT_BEGIN(nullability, sendability)
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
UIKIT_EXTERN API_AVAILABLE(ios(6.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
|
|
28
|
-
@interface UICollectionReusableView : UIView
|
|
28
|
+
PEACH_SWIFT_CLASS(UIKitCore) @interface UICollectionReusableView : UIView
|
|
29
29
|
|
|
30
30
|
@property (nonatomic, readonly, copy, nullable) NSString *reuseIdentifier;
|
|
31
31
|
|
|
@@ -52,7 +52,7 @@ UIKIT_EXTERN API_AVAILABLE(ios(6.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
|
|
|
52
52
|
typedef void (^UICollectionViewCellConfigurationUpdateHandler)(__kindof UICollectionViewCell *cell, UICellConfigurationState *state) API_AVAILABLE(ios(15.0), tvos(15.0)) API_UNAVAILABLE(watchos);
|
|
53
53
|
|
|
54
54
|
UIKIT_EXTERN API_AVAILABLE(ios(6.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
|
|
55
|
-
@interface UICollectionViewCell : UICollectionReusableView
|
|
55
|
+
PEACH_SWIFT_CLASS(UIKitCore) @interface UICollectionViewCell : UICollectionReusableView
|
|
56
56
|
|
|
57
57
|
/// Returns the current configuration state for the cell.
|
|
58
58
|
/// To add your own custom state(s), override the getter and call super to obtain an instance with the
|
|
@@ -21,7 +21,7 @@ NS_HEADER_AUDIT_BEGIN(nullability, sendability)
|
|
|
21
21
|
before using it in a constraint.
|
|
22
22
|
*/
|
|
23
23
|
UIKIT_EXTERN API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
|
|
24
|
-
@interface UILayoutGuide : NSObject <NSCoding>
|
|
24
|
+
PEACH_SWIFT_CLASS(UIKitCore) @interface UILayoutGuide : NSObject <NSCoding>
|
|
25
25
|
|
|
26
26
|
/* The frame of the UILayoutGuide in its owningView's coordinate system.
|
|
27
27
|
Valid by the time the owningView receives -layoutSubviews.
|
|
@@ -56,7 +56,7 @@ UIKIT_EXTERN API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI
|
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
|
|
59
|
-
@interface UINavigationItem : NSObject <NSCoding>
|
|
59
|
+
PEACH_SWIFT_CLASS(UIKitCore) @interface UINavigationItem : NSObject <NSCoding>
|
|
60
60
|
|
|
61
61
|
- (instancetype)initWithTitle:(NSString *)title NS_DESIGNATED_INITIALIZER;
|
|
62
62
|
- (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
NS_HEADER_AUDIT_BEGIN(nullability, sendability)
|
|
14
14
|
|
|
15
15
|
UIKIT_EXTERN API_AVAILABLE(ios(4.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR API_DEPRECATED("Loading Interface Builder products will not be supported in a future version of visionOS.", visionos(1.0, 1.0))
|
|
16
|
-
@interface UINib : NSObject
|
|
16
|
+
PEACH_SWIFT_CLASS(UIKitCore) @interface UINib : NSObject
|
|
17
17
|
|
|
18
18
|
// If the bundle parameter is nil, the main bundle is used.
|
|
19
19
|
// Releases resources in response to memory pressure (e.g. memory warning), reloading from the bundle when necessary.
|
|
@@ -16,7 +16,7 @@ NS_HEADER_AUDIT_BEGIN(nullability, sendability)
|
|
|
16
16
|
typedef __kindof UIViewController *_Nullable (^UIStoryboardViewControllerCreator)(NSCoder *coder) API_UNAVAILABLE(watchos);
|
|
17
17
|
|
|
18
18
|
UIKIT_EXTERN API_AVAILABLE(ios(5.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR API_DEPRECATED("Loading Interface Builder products will not be supported in a future version of visionOS.", visionos(1.0, 1.0))
|
|
19
|
-
@interface UIStoryboard : NSObject {
|
|
19
|
+
PEACH_SWIFT_CLASS(UIKitCore) @interface UIStoryboard : NSObject {
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
+ (UIStoryboard *)storyboardWithName:(NSString *)name bundle:(nullable NSBundle *)storyboardBundleOrNil;
|