peachsim 0.1.2233 → 0.1.2234
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 +21 -29
- 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 +20 -28
- 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 +21 -29
- 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 +21 -29
- package/dist-lib/swift-compile.cjs +13 -21
- package/dist-lib/swift-compile.mjs +13 -21
- 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 +14 -22
- 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/engine/native-layout.d.ts +2 -1
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/src/expo-swift-host.ts +2 -2
- package/src/react-native-bridge-modules.ts +6 -6
- package/src/swift-guest-runtime-plan.ts +2 -2
- package/src/swift-shared-sdk.ts +7 -10
- package/src/swift-wasm-prune.ts +3 -8
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2234 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2234 | (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;
|
|
@@ -46447,7 +46447,7 @@ function readULEB(b, o) {
|
|
|
46447
46447
|
}
|
|
46448
46448
|
return [res, p];
|
|
46449
46449
|
}
|
|
46450
|
-
function
|
|
46450
|
+
function weakenFoundationSymbolsInWasmObj(buf) {
|
|
46451
46451
|
let pos = 8;
|
|
46452
46452
|
while (pos < buf.length) {
|
|
46453
46453
|
const id = buf[pos++];
|
|
@@ -46478,7 +46478,7 @@ function weakenBundleSymbolsInWasmObj(buf) {
|
|
|
46478
46478
|
if (!isUndef || isExplicitName) {
|
|
46479
46479
|
const [sLen, c4] = readULEB(buf, cur);
|
|
46480
46480
|
const sName = Buffer.from(buf.subarray(c4, c4 + sLen)).toString("utf8");
|
|
46481
|
-
if (!isUndef && kind === 0 &&
|
|
46481
|
+
if (!isUndef && kind === 0 && WEAKEN_FOUNDATION_SYMS.has(sName)) {
|
|
46482
46482
|
buf[flOffset] = buf[flOffset] & ~3 | 1;
|
|
46483
46483
|
}
|
|
46484
46484
|
cur = c4 + sLen;
|
|
@@ -46505,7 +46505,7 @@ function weakenBundleSymbolsInWasmObj(buf) {
|
|
|
46505
46505
|
pos = end;
|
|
46506
46506
|
}
|
|
46507
46507
|
}
|
|
46508
|
-
function
|
|
46508
|
+
function weakenFoundationOverridesInArchive(arBuf) {
|
|
46509
46509
|
let gnuNames = null;
|
|
46510
46510
|
let pos = 8;
|
|
46511
46511
|
while (pos + 60 <= arBuf.length) {
|
|
@@ -46543,8 +46543,8 @@ function weakenBundleInArchive(arBuf) {
|
|
|
46543
46543
|
} else if (name3.endsWith("/")) {
|
|
46544
46544
|
name3 = name3.slice(0, -1);
|
|
46545
46545
|
}
|
|
46546
|
-
if (name3.endsWith("
|
|
46547
|
-
|
|
46546
|
+
if (name3.endsWith("NSSortDescriptor.o")) {
|
|
46547
|
+
weakenFoundationSymbolsInWasmObj(arBuf.subarray(bodyStart, bodyEnd));
|
|
46548
46548
|
}
|
|
46549
46549
|
pos = bodyEnd + (size & 1);
|
|
46550
46550
|
}
|
|
@@ -46710,7 +46710,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
|
|
|
46710
46710
|
import_node_path34.default.relative(realRoot, foundationArchive)
|
|
46711
46711
|
);
|
|
46712
46712
|
const arBuf = new Uint8Array(import_node_fs37.default.readFileSync(foundationArchive));
|
|
46713
|
-
|
|
46713
|
+
weakenFoundationOverridesInArchive(arBuf);
|
|
46714
46714
|
import_node_fs37.default.writeFileSync(foundationSlot, arBuf);
|
|
46715
46715
|
}
|
|
46716
46716
|
try {
|
|
@@ -46733,7 +46733,7 @@ function swiftSharedSdkInputFiles(moduleRoot) {
|
|
|
46733
46733
|
const root = swiftSharedSdkRoot(moduleRoot, false);
|
|
46734
46734
|
return (0, import_node_fs37.readdirSync)(root, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => import_node_path34.default.relative(moduleRoot, import_node_path34.default.join(entry.parentPath, entry.name))).sort();
|
|
46735
46735
|
}
|
|
46736
|
-
var import_node_child_process20, import_node_crypto17, import_node_fs37, import_node_path34, distributionHeaderRoots,
|
|
46736
|
+
var import_node_child_process20, import_node_crypto17, import_node_fs37, import_node_path34, distributionHeaderRoots, WEAKEN_FOUNDATION_SYMS, sdkViews;
|
|
46737
46737
|
var init_swift_shared_sdk = __esm({
|
|
46738
46738
|
"src/swift-shared-sdk.ts"() {
|
|
46739
46739
|
"use strict";
|
|
@@ -46744,10 +46744,7 @@ var init_swift_shared_sdk = __esm({
|
|
|
46744
46744
|
import_node_path34 = __toESM(require("node:path"), 1);
|
|
46745
46745
|
init_swift_toolchain();
|
|
46746
46746
|
distributionHeaderRoots = /* @__PURE__ */ new Map();
|
|
46747
|
-
|
|
46748
|
-
"$s10Foundation6BundleC22preferredLocalizations4from14forPreferencesSaySSGAG_AGSgtFZ",
|
|
46749
|
-
"$s10Foundation6BundleC22preferredLocalizations4fromSaySSGAF_tFZ",
|
|
46750
|
-
"$s10Foundation6BundleC22preferredLocalizationsSaySSGvg",
|
|
46747
|
+
WEAKEN_FOUNDATION_SYMS = /* @__PURE__ */ new Set([
|
|
46751
46748
|
"$s10Foundation16NSSortDescriptorC3key9ascendingACSSSg_SbtcfC",
|
|
46752
46749
|
"$s10Foundation16NSSortDescriptorC3key9ascendingACSSSg_Sbtcfc",
|
|
46753
46750
|
"$s10Foundation16NSSortDescriptorC3keySSSgvg",
|
|
@@ -48695,12 +48692,7 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
48695
48692
|
const def = definedGlobalSyms.get(symName);
|
|
48696
48693
|
if (def) activateSymbolInObj(def.obj, def.symIdx);
|
|
48697
48694
|
}
|
|
48698
|
-
const
|
|
48699
|
-
"$s10Foundation6BundleC22preferredLocalizations4from14forPreferencesSaySSGAG_AGSgtFZ",
|
|
48700
|
-
"$s10Foundation6BundleC22preferredLocalizations4fromSaySSGAF_tFZ",
|
|
48701
|
-
"$s10Foundation6BundleC22preferredLocalizationsSaySSGvg",
|
|
48702
|
-
"$s10Foundation6BundleC22preferredLocalizations4from14forPreferencesSaySSGAG_AGSgtFZTf4nnd_n",
|
|
48703
|
-
"$s10Foundation6BundleC22preferredLocalizations4fromSaySSGAF_tFZTf4nd_n",
|
|
48695
|
+
const WEAKEN_SDK_FOUNDATION_SYMS = /* @__PURE__ */ new Set([
|
|
48704
48696
|
"$s10Foundation16NSSortDescriptorC3key9ascendingACSSSg_SbtcfC",
|
|
48705
48697
|
"$s10Foundation16NSSortDescriptorC3key9ascendingACSSSg_Sbtcfc",
|
|
48706
48698
|
"$s10Foundation16NSSortDescriptorC3keySSSgvg",
|
|
@@ -48733,7 +48725,7 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
48733
48725
|
} else {
|
|
48734
48726
|
const name3 = obj.symNames[symIdx];
|
|
48735
48727
|
if (!name3) continue;
|
|
48736
|
-
if (
|
|
48728
|
+
if (WEAKEN_SDK_FOUNDATION_SYMS.has(name3)) {
|
|
48737
48729
|
const overrideCand = lazyProviders.get(name3)?.find((c) => !c.file.startsWith(sdkObjsDir));
|
|
48738
48730
|
if (overrideCand) extractObject(overrideCand);
|
|
48739
48731
|
}
|
|
@@ -48951,7 +48943,7 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
48951
48943
|
newFl = (fl & ~3 | 1) & 127;
|
|
48952
48944
|
} else if (!isUndef && kind === 0 && obj.symElemIdx[i] >= obj.numImportFuncs && fLive[obj.symElemIdx[i] - obj.numImportFuncs] === 0) {
|
|
48953
48945
|
newFl = fl & 64 | 2;
|
|
48954
|
-
} else if (!isUndef && kind === 0 && obj.file.startsWith(sdkObjsDir) &&
|
|
48946
|
+
} else if (!isUndef && kind === 0 && obj.file.startsWith(sdkObjsDir) && WEAKEN_SDK_FOUNDATION_SYMS.has(obj.symNames[i])) {
|
|
48955
48947
|
newFl = (fl & ~3 | 1) & 127;
|
|
48956
48948
|
}
|
|
48957
48949
|
if (flLen === 1) {
|
|
@@ -50863,7 +50855,7 @@ function sdkArtifactBytes(root, artifact) {
|
|
|
50863
50855
|
if (hash(source) !== artifact.sha256)
|
|
50864
50856
|
throw new Error(`SDK product artifact changed ${file}`);
|
|
50865
50857
|
const transformed = Uint8Array.from(source);
|
|
50866
|
-
|
|
50858
|
+
weakenFoundationOverridesInArchive(transformed);
|
|
50867
50859
|
if (!linked.equals(transformed))
|
|
50868
50860
|
throw new Error(`SDK view transformation changed ${file}`);
|
|
50869
50861
|
return { source, linked };
|
|
@@ -59332,7 +59324,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
59332
59324
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
59333
59325
|
MULTI_MANIFEST_VERSION = 68;
|
|
59334
59326
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
59335
|
-
compilerSourceDigest = true ? "
|
|
59327
|
+
compilerSourceDigest = true ? "7c1188b9ba2b81e03391ec670b3e984dbb3a70fccecf681beaa2b8c7a7c36a5c" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
59336
59328
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
59337
59329
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
59338
59330
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -65820,7 +65812,7 @@ var init_swift_standin_digest = __esm({
|
|
|
65820
65812
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
65821
65813
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
65822
65814
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
65823
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
65815
|
+
STANDIN_SOURCE_DIGEST = true ? "ae88f21106ce704b52a260a8c3d5bc2c1576fc0beef490d84ca792d99bcedc3f" : standinSourceDigest();
|
|
65824
65816
|
}
|
|
65825
65817
|
});
|
|
65826
65818
|
|
|
@@ -66281,7 +66273,7 @@ var init_package_tree_digest = __esm({
|
|
|
66281
66273
|
|
|
66282
66274
|
// src/expo-native-prebuilt.ts
|
|
66283
66275
|
function expoNativeCompilerDigestValue() {
|
|
66284
|
-
return true ? "
|
|
66276
|
+
return true ? "ae652ddab2a93afd43fe0616f2b3d99467fb76d418b77ac5a3506e3871817a39" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
66285
66277
|
}
|
|
66286
66278
|
function readSources(value) {
|
|
66287
66279
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -72531,7 +72523,7 @@ function swiftClassFor(objcName, files2) {
|
|
|
72531
72523
|
}
|
|
72532
72524
|
return fallback;
|
|
72533
72525
|
}
|
|
72534
|
-
function collectBridgeModuleSources(appRoot, signal, installedWorkspace) {
|
|
72526
|
+
async function collectBridgeModuleSources(appRoot, signal, installedWorkspace) {
|
|
72535
72527
|
signal?.throwIfAborted();
|
|
72536
72528
|
const units = [];
|
|
72537
72529
|
const failures = [];
|
|
@@ -72633,7 +72625,7 @@ ${import_node_fs80.default.readFileSync(file, "utf8")}`;
|
|
|
72633
72625
|
if (swiftClass) {
|
|
72634
72626
|
const bridgingHeader = target.objc?.bridgingHeader;
|
|
72635
72627
|
if (bridgingHeader && target.objc && app) {
|
|
72636
|
-
nativeInputs ??=
|
|
72628
|
+
nativeInputs ??= await xcodeObjCInputsAsync(
|
|
72637
72629
|
app,
|
|
72638
72630
|
[],
|
|
72639
72631
|
null,
|
|
@@ -85023,12 +85015,12 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
85023
85015
|
})
|
|
85024
85016
|
))
|
|
85025
85017
|
await ensureSwiftToolchain(signal);
|
|
85026
|
-
let bridge = options.only ? null : collectBridgeModuleSources(import_node_fs95.default.realpathSync(root), signal);
|
|
85018
|
+
let bridge = options.only ? null : await collectBridgeModuleSources(import_node_fs95.default.realpathSync(root), signal);
|
|
85027
85019
|
if (nativeWorkspaceAvailable() && import_node_fs95.default.existsSync(import_node_path92.default.join(root, "ios", "Podfile")) && bridge?.units.some(
|
|
85028
85020
|
(unit2) => unit2.nativeTargets?.some((target) => target.bridgingHeader)
|
|
85029
85021
|
)) {
|
|
85030
85022
|
const prepared = await prepareExpoNativeWorkspace(root, signal, options.iosTarget);
|
|
85031
|
-
bridge = collectBridgeModuleSources(
|
|
85023
|
+
bridge = await collectBridgeModuleSources(
|
|
85032
85024
|
import_node_fs95.default.realpathSync(prepared.app),
|
|
85033
85025
|
signal,
|
|
85034
85026
|
options.installedWorkspace ?? prepared.workspace
|
|
@@ -87016,7 +87008,7 @@ var init_nitro_superset = __esm({
|
|
|
87016
87008
|
init_nitroContract();
|
|
87017
87009
|
init_swift_standin_digest();
|
|
87018
87010
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
87019
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
87011
|
+
NITRO_COMPILER_DIGEST = true ? "85867fe5010d91bb78b12116a24244f4b6e9d31e12d4f28552c8c425fde75d58" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
87020
87012
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
87021
87013
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
87022
87014
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2234 | (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;
|
|
@@ -4024,17 +4024,14 @@ function readULEB(b, o) {
|
|
|
4024
4024
|
}
|
|
4025
4025
|
return [res, p];
|
|
4026
4026
|
}
|
|
4027
|
-
var
|
|
4028
|
-
"$s10Foundation6BundleC22preferredLocalizations4from14forPreferencesSaySSGAG_AGSgtFZ",
|
|
4029
|
-
"$s10Foundation6BundleC22preferredLocalizations4fromSaySSGAF_tFZ",
|
|
4030
|
-
"$s10Foundation6BundleC22preferredLocalizationsSaySSGvg",
|
|
4027
|
+
var WEAKEN_FOUNDATION_SYMS = /* @__PURE__ */ new Set([
|
|
4031
4028
|
"$s10Foundation16NSSortDescriptorC3key9ascendingACSSSg_SbtcfC",
|
|
4032
4029
|
"$s10Foundation16NSSortDescriptorC3key9ascendingACSSSg_Sbtcfc",
|
|
4033
4030
|
"$s10Foundation16NSSortDescriptorC3keySSSgvg",
|
|
4034
4031
|
"$s10Foundation16NSSortDescriptorC7keyPath9ascendingACs03KeyE0Cyxq_G_SbtcSLR_r0_lufC",
|
|
4035
4032
|
"$s10Foundation16NSSortDescriptorC7keyPath9ascendingACs03KeyE0Cyxq_G_SbtcSLR_r0_lufc"
|
|
4036
4033
|
]);
|
|
4037
|
-
function
|
|
4034
|
+
function weakenFoundationSymbolsInWasmObj(buf) {
|
|
4038
4035
|
let pos = 8;
|
|
4039
4036
|
while (pos < buf.length) {
|
|
4040
4037
|
const id = buf[pos++];
|
|
@@ -4065,7 +4062,7 @@ function weakenBundleSymbolsInWasmObj(buf) {
|
|
|
4065
4062
|
if (!isUndef || isExplicitName) {
|
|
4066
4063
|
const [sLen, c4] = readULEB(buf, cur);
|
|
4067
4064
|
const sName = Buffer.from(buf.subarray(c4, c4 + sLen)).toString("utf8");
|
|
4068
|
-
if (!isUndef && kind === 0 &&
|
|
4065
|
+
if (!isUndef && kind === 0 && WEAKEN_FOUNDATION_SYMS.has(sName)) {
|
|
4069
4066
|
buf[flOffset] = buf[flOffset] & ~3 | 1;
|
|
4070
4067
|
}
|
|
4071
4068
|
cur = c4 + sLen;
|
|
@@ -4092,7 +4089,7 @@ function weakenBundleSymbolsInWasmObj(buf) {
|
|
|
4092
4089
|
pos = end;
|
|
4093
4090
|
}
|
|
4094
4091
|
}
|
|
4095
|
-
function
|
|
4092
|
+
function weakenFoundationOverridesInArchive(arBuf) {
|
|
4096
4093
|
let gnuNames = null;
|
|
4097
4094
|
let pos = 8;
|
|
4098
4095
|
while (pos + 60 <= arBuf.length) {
|
|
@@ -4130,8 +4127,8 @@ function weakenBundleInArchive(arBuf) {
|
|
|
4130
4127
|
} else if (name2.endsWith("/")) {
|
|
4131
4128
|
name2 = name2.slice(0, -1);
|
|
4132
4129
|
}
|
|
4133
|
-
if (name2.endsWith("
|
|
4134
|
-
|
|
4130
|
+
if (name2.endsWith("NSSortDescriptor.o")) {
|
|
4131
|
+
weakenFoundationSymbolsInWasmObj(arBuf.subarray(bodyStart, bodyEnd));
|
|
4135
4132
|
}
|
|
4136
4133
|
pos = bodyEnd + (size & 1);
|
|
4137
4134
|
}
|
|
@@ -4298,7 +4295,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
|
|
|
4298
4295
|
import_node_path8.default.relative(realRoot, foundationArchive)
|
|
4299
4296
|
);
|
|
4300
4297
|
const arBuf = new Uint8Array(import_node_fs7.default.readFileSync(foundationArchive));
|
|
4301
|
-
|
|
4298
|
+
weakenFoundationOverridesInArchive(arBuf);
|
|
4302
4299
|
import_node_fs7.default.writeFileSync(foundationSlot, arBuf);
|
|
4303
4300
|
}
|
|
4304
4301
|
try {
|
|
@@ -6242,12 +6239,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6242
6239
|
const def = definedGlobalSyms.get(symName);
|
|
6243
6240
|
if (def) activateSymbolInObj(def.obj, def.symIdx);
|
|
6244
6241
|
}
|
|
6245
|
-
const
|
|
6246
|
-
"$s10Foundation6BundleC22preferredLocalizations4from14forPreferencesSaySSGAG_AGSgtFZ",
|
|
6247
|
-
"$s10Foundation6BundleC22preferredLocalizations4fromSaySSGAF_tFZ",
|
|
6248
|
-
"$s10Foundation6BundleC22preferredLocalizationsSaySSGvg",
|
|
6249
|
-
"$s10Foundation6BundleC22preferredLocalizations4from14forPreferencesSaySSGAG_AGSgtFZTf4nnd_n",
|
|
6250
|
-
"$s10Foundation6BundleC22preferredLocalizations4fromSaySSGAF_tFZTf4nd_n",
|
|
6242
|
+
const WEAKEN_SDK_FOUNDATION_SYMS = /* @__PURE__ */ new Set([
|
|
6251
6243
|
"$s10Foundation16NSSortDescriptorC3key9ascendingACSSSg_SbtcfC",
|
|
6252
6244
|
"$s10Foundation16NSSortDescriptorC3key9ascendingACSSSg_Sbtcfc",
|
|
6253
6245
|
"$s10Foundation16NSSortDescriptorC3keySSSgvg",
|
|
@@ -6280,7 +6272,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6280
6272
|
} else {
|
|
6281
6273
|
const name2 = obj.symNames[symIdx];
|
|
6282
6274
|
if (!name2) continue;
|
|
6283
|
-
if (
|
|
6275
|
+
if (WEAKEN_SDK_FOUNDATION_SYMS.has(name2)) {
|
|
6284
6276
|
const overrideCand = lazyProviders.get(name2)?.find((c) => !c.file.startsWith(sdkObjsDir));
|
|
6285
6277
|
if (overrideCand) extractObject(overrideCand);
|
|
6286
6278
|
}
|
|
@@ -6498,7 +6490,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6498
6490
|
newFl = (fl & ~3 | 1) & 127;
|
|
6499
6491
|
} else if (!isUndef && kind === 0 && obj.symElemIdx[i] >= obj.numImportFuncs && fLive[obj.symElemIdx[i] - obj.numImportFuncs] === 0) {
|
|
6500
6492
|
newFl = fl & 64 | 2;
|
|
6501
|
-
} else if (!isUndef && kind === 0 && obj.file.startsWith(sdkObjsDir) &&
|
|
6493
|
+
} else if (!isUndef && kind === 0 && obj.file.startsWith(sdkObjsDir) && WEAKEN_SDK_FOUNDATION_SYMS.has(obj.symNames[i])) {
|
|
6502
6494
|
newFl = (fl & ~3 | 1) & 127;
|
|
6503
6495
|
}
|
|
6504
6496
|
if (flLen === 1) {
|
|
@@ -8248,7 +8240,7 @@ function sdkArtifactBytes(root, artifact) {
|
|
|
8248
8240
|
if (hash(source) !== artifact.sha256)
|
|
8249
8241
|
throw new Error(`SDK product artifact changed ${file}`);
|
|
8250
8242
|
const transformed = Uint8Array.from(source);
|
|
8251
|
-
|
|
8243
|
+
weakenFoundationOverridesInArchive(transformed);
|
|
8252
8244
|
if (!linked.equals(transformed))
|
|
8253
8245
|
throw new Error(`SDK view transformation changed ${file}`);
|
|
8254
8246
|
return { source, linked };
|
|
@@ -12978,7 +12970,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
12978
12970
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12979
12971
|
var MULTI_MANIFEST_VERSION = 68;
|
|
12980
12972
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12981
|
-
var compilerSourceDigest = true ? "
|
|
12973
|
+
var compilerSourceDigest = true ? "7c1188b9ba2b81e03391ec670b3e984dbb3a70fccecf681beaa2b8c7a7c36a5c" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
12982
12974
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12983
12975
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
12984
12976
|
hash.update(`swift-compile
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2234 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-compile.ts
|
|
4
4
|
import {
|
|
@@ -3969,17 +3969,14 @@ function readULEB(b, o) {
|
|
|
3969
3969
|
}
|
|
3970
3970
|
return [res, p];
|
|
3971
3971
|
}
|
|
3972
|
-
var
|
|
3973
|
-
"$s10Foundation6BundleC22preferredLocalizations4from14forPreferencesSaySSGAG_AGSgtFZ",
|
|
3974
|
-
"$s10Foundation6BundleC22preferredLocalizations4fromSaySSGAF_tFZ",
|
|
3975
|
-
"$s10Foundation6BundleC22preferredLocalizationsSaySSGvg",
|
|
3972
|
+
var WEAKEN_FOUNDATION_SYMS = /* @__PURE__ */ new Set([
|
|
3976
3973
|
"$s10Foundation16NSSortDescriptorC3key9ascendingACSSSg_SbtcfC",
|
|
3977
3974
|
"$s10Foundation16NSSortDescriptorC3key9ascendingACSSSg_Sbtcfc",
|
|
3978
3975
|
"$s10Foundation16NSSortDescriptorC3keySSSgvg",
|
|
3979
3976
|
"$s10Foundation16NSSortDescriptorC7keyPath9ascendingACs03KeyE0Cyxq_G_SbtcSLR_r0_lufC",
|
|
3980
3977
|
"$s10Foundation16NSSortDescriptorC7keyPath9ascendingACs03KeyE0Cyxq_G_SbtcSLR_r0_lufc"
|
|
3981
3978
|
]);
|
|
3982
|
-
function
|
|
3979
|
+
function weakenFoundationSymbolsInWasmObj(buf) {
|
|
3983
3980
|
let pos = 8;
|
|
3984
3981
|
while (pos < buf.length) {
|
|
3985
3982
|
const id = buf[pos++];
|
|
@@ -4010,7 +4007,7 @@ function weakenBundleSymbolsInWasmObj(buf) {
|
|
|
4010
4007
|
if (!isUndef || isExplicitName) {
|
|
4011
4008
|
const [sLen, c4] = readULEB(buf, cur);
|
|
4012
4009
|
const sName = Buffer.from(buf.subarray(c4, c4 + sLen)).toString("utf8");
|
|
4013
|
-
if (!isUndef && kind === 0 &&
|
|
4010
|
+
if (!isUndef && kind === 0 && WEAKEN_FOUNDATION_SYMS.has(sName)) {
|
|
4014
4011
|
buf[flOffset] = buf[flOffset] & ~3 | 1;
|
|
4015
4012
|
}
|
|
4016
4013
|
cur = c4 + sLen;
|
|
@@ -4037,7 +4034,7 @@ function weakenBundleSymbolsInWasmObj(buf) {
|
|
|
4037
4034
|
pos = end;
|
|
4038
4035
|
}
|
|
4039
4036
|
}
|
|
4040
|
-
function
|
|
4037
|
+
function weakenFoundationOverridesInArchive(arBuf) {
|
|
4041
4038
|
let gnuNames = null;
|
|
4042
4039
|
let pos = 8;
|
|
4043
4040
|
while (pos + 60 <= arBuf.length) {
|
|
@@ -4075,8 +4072,8 @@ function weakenBundleInArchive(arBuf) {
|
|
|
4075
4072
|
} else if (name2.endsWith("/")) {
|
|
4076
4073
|
name2 = name2.slice(0, -1);
|
|
4077
4074
|
}
|
|
4078
|
-
if (name2.endsWith("
|
|
4079
|
-
|
|
4075
|
+
if (name2.endsWith("NSSortDescriptor.o")) {
|
|
4076
|
+
weakenFoundationSymbolsInWasmObj(arBuf.subarray(bodyStart, bodyEnd));
|
|
4080
4077
|
}
|
|
4081
4078
|
pos = bodyEnd + (size & 1);
|
|
4082
4079
|
}
|
|
@@ -4243,7 +4240,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
|
|
|
4243
4240
|
path8.relative(realRoot, foundationArchive)
|
|
4244
4241
|
);
|
|
4245
4242
|
const arBuf = new Uint8Array(fs3.readFileSync(foundationArchive));
|
|
4246
|
-
|
|
4243
|
+
weakenFoundationOverridesInArchive(arBuf);
|
|
4247
4244
|
fs3.writeFileSync(foundationSlot, arBuf);
|
|
4248
4245
|
}
|
|
4249
4246
|
try {
|
|
@@ -6187,12 +6184,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6187
6184
|
const def = definedGlobalSyms.get(symName);
|
|
6188
6185
|
if (def) activateSymbolInObj(def.obj, def.symIdx);
|
|
6189
6186
|
}
|
|
6190
|
-
const
|
|
6191
|
-
"$s10Foundation6BundleC22preferredLocalizations4from14forPreferencesSaySSGAG_AGSgtFZ",
|
|
6192
|
-
"$s10Foundation6BundleC22preferredLocalizations4fromSaySSGAF_tFZ",
|
|
6193
|
-
"$s10Foundation6BundleC22preferredLocalizationsSaySSGvg",
|
|
6194
|
-
"$s10Foundation6BundleC22preferredLocalizations4from14forPreferencesSaySSGAG_AGSgtFZTf4nnd_n",
|
|
6195
|
-
"$s10Foundation6BundleC22preferredLocalizations4fromSaySSGAF_tFZTf4nd_n",
|
|
6187
|
+
const WEAKEN_SDK_FOUNDATION_SYMS = /* @__PURE__ */ new Set([
|
|
6196
6188
|
"$s10Foundation16NSSortDescriptorC3key9ascendingACSSSg_SbtcfC",
|
|
6197
6189
|
"$s10Foundation16NSSortDescriptorC3key9ascendingACSSSg_Sbtcfc",
|
|
6198
6190
|
"$s10Foundation16NSSortDescriptorC3keySSSgvg",
|
|
@@ -6225,7 +6217,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6225
6217
|
} else {
|
|
6226
6218
|
const name2 = obj.symNames[symIdx];
|
|
6227
6219
|
if (!name2) continue;
|
|
6228
|
-
if (
|
|
6220
|
+
if (WEAKEN_SDK_FOUNDATION_SYMS.has(name2)) {
|
|
6229
6221
|
const overrideCand = lazyProviders.get(name2)?.find((c) => !c.file.startsWith(sdkObjsDir));
|
|
6230
6222
|
if (overrideCand) extractObject(overrideCand);
|
|
6231
6223
|
}
|
|
@@ -6443,7 +6435,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6443
6435
|
newFl = (fl & ~3 | 1) & 127;
|
|
6444
6436
|
} else if (!isUndef && kind === 0 && obj.symElemIdx[i] >= obj.numImportFuncs && fLive[obj.symElemIdx[i] - obj.numImportFuncs] === 0) {
|
|
6445
6437
|
newFl = fl & 64 | 2;
|
|
6446
|
-
} else if (!isUndef && kind === 0 && obj.file.startsWith(sdkObjsDir) &&
|
|
6438
|
+
} else if (!isUndef && kind === 0 && obj.file.startsWith(sdkObjsDir) && WEAKEN_SDK_FOUNDATION_SYMS.has(obj.symNames[i])) {
|
|
6447
6439
|
newFl = (fl & ~3 | 1) & 127;
|
|
6448
6440
|
}
|
|
6449
6441
|
if (flLen === 1) {
|
|
@@ -8194,7 +8186,7 @@ function sdkArtifactBytes(root, artifact) {
|
|
|
8194
8186
|
if (hash(source) !== artifact.sha256)
|
|
8195
8187
|
throw new Error(`SDK product artifact changed ${file}`);
|
|
8196
8188
|
const transformed = Uint8Array.from(source);
|
|
8197
|
-
|
|
8189
|
+
weakenFoundationOverridesInArchive(transformed);
|
|
8198
8190
|
if (!linked.equals(transformed))
|
|
8199
8191
|
throw new Error(`SDK view transformation changed ${file}`);
|
|
8200
8192
|
return { source, linked };
|
|
@@ -12956,7 +12948,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
12956
12948
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12957
12949
|
var MULTI_MANIFEST_VERSION = 68;
|
|
12958
12950
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12959
|
-
var compilerSourceDigest = true ? "
|
|
12951
|
+
var compilerSourceDigest = true ? "7c1188b9ba2b81e03391ec670b3e984dbb3a70fccecf681beaa2b8c7a7c36a5c" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
12960
12952
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12961
12953
|
const hash = createHash13("sha256");
|
|
12962
12954
|
hash.update(`swift-compile
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2234 | (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.2234 | (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.2234 | (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.2234 | (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.2234 | (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;
|
|
@@ -8903,17 +8903,14 @@ function readULEB(b, o) {
|
|
|
8903
8903
|
}
|
|
8904
8904
|
return [res, p];
|
|
8905
8905
|
}
|
|
8906
|
-
var
|
|
8907
|
-
"$s10Foundation6BundleC22preferredLocalizations4from14forPreferencesSaySSGAG_AGSgtFZ",
|
|
8908
|
-
"$s10Foundation6BundleC22preferredLocalizations4fromSaySSGAF_tFZ",
|
|
8909
|
-
"$s10Foundation6BundleC22preferredLocalizationsSaySSGvg",
|
|
8906
|
+
var WEAKEN_FOUNDATION_SYMS = /* @__PURE__ */ new Set([
|
|
8910
8907
|
"$s10Foundation16NSSortDescriptorC3key9ascendingACSSSg_SbtcfC",
|
|
8911
8908
|
"$s10Foundation16NSSortDescriptorC3key9ascendingACSSSg_Sbtcfc",
|
|
8912
8909
|
"$s10Foundation16NSSortDescriptorC3keySSSgvg",
|
|
8913
8910
|
"$s10Foundation16NSSortDescriptorC7keyPath9ascendingACs03KeyE0Cyxq_G_SbtcSLR_r0_lufC",
|
|
8914
8911
|
"$s10Foundation16NSSortDescriptorC7keyPath9ascendingACs03KeyE0Cyxq_G_SbtcSLR_r0_lufc"
|
|
8915
8912
|
]);
|
|
8916
|
-
function
|
|
8913
|
+
function weakenFoundationSymbolsInWasmObj(buf) {
|
|
8917
8914
|
let pos = 8;
|
|
8918
8915
|
while (pos < buf.length) {
|
|
8919
8916
|
const id = buf[pos++];
|
|
@@ -8944,7 +8941,7 @@ function weakenBundleSymbolsInWasmObj(buf) {
|
|
|
8944
8941
|
if (!isUndef || isExplicitName) {
|
|
8945
8942
|
const [sLen, c4] = readULEB(buf, cur);
|
|
8946
8943
|
const sName = Buffer.from(buf.subarray(c4, c4 + sLen)).toString("utf8");
|
|
8947
|
-
if (!isUndef && kind === 0 &&
|
|
8944
|
+
if (!isUndef && kind === 0 && WEAKEN_FOUNDATION_SYMS.has(sName)) {
|
|
8948
8945
|
buf[flOffset] = buf[flOffset] & ~3 | 1;
|
|
8949
8946
|
}
|
|
8950
8947
|
cur = c4 + sLen;
|
|
@@ -8971,7 +8968,7 @@ function weakenBundleSymbolsInWasmObj(buf) {
|
|
|
8971
8968
|
pos = end;
|
|
8972
8969
|
}
|
|
8973
8970
|
}
|
|
8974
|
-
function
|
|
8971
|
+
function weakenFoundationOverridesInArchive(arBuf) {
|
|
8975
8972
|
let gnuNames = null;
|
|
8976
8973
|
let pos = 8;
|
|
8977
8974
|
while (pos + 60 <= arBuf.length) {
|
|
@@ -9009,8 +9006,8 @@ function weakenBundleInArchive(arBuf) {
|
|
|
9009
9006
|
} else if (name3.endsWith("/")) {
|
|
9010
9007
|
name3 = name3.slice(0, -1);
|
|
9011
9008
|
}
|
|
9012
|
-
if (name3.endsWith("
|
|
9013
|
-
|
|
9009
|
+
if (name3.endsWith("NSSortDescriptor.o")) {
|
|
9010
|
+
weakenFoundationSymbolsInWasmObj(arBuf.subarray(bodyStart, bodyEnd));
|
|
9014
9011
|
}
|
|
9015
9012
|
pos = bodyEnd + (size & 1);
|
|
9016
9013
|
}
|
|
@@ -9177,7 +9174,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
|
|
|
9177
9174
|
import_node_path8.default.relative(realRoot, foundationArchive)
|
|
9178
9175
|
);
|
|
9179
9176
|
const arBuf = new Uint8Array(import_node_fs8.default.readFileSync(foundationArchive));
|
|
9180
|
-
|
|
9177
|
+
weakenFoundationOverridesInArchive(arBuf);
|
|
9181
9178
|
import_node_fs8.default.writeFileSync(foundationSlot, arBuf);
|
|
9182
9179
|
}
|
|
9183
9180
|
try {
|
|
@@ -11198,12 +11195,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
11198
11195
|
const def = definedGlobalSyms.get(symName);
|
|
11199
11196
|
if (def) activateSymbolInObj(def.obj, def.symIdx);
|
|
11200
11197
|
}
|
|
11201
|
-
const
|
|
11202
|
-
"$s10Foundation6BundleC22preferredLocalizations4from14forPreferencesSaySSGAG_AGSgtFZ",
|
|
11203
|
-
"$s10Foundation6BundleC22preferredLocalizations4fromSaySSGAF_tFZ",
|
|
11204
|
-
"$s10Foundation6BundleC22preferredLocalizationsSaySSGvg",
|
|
11205
|
-
"$s10Foundation6BundleC22preferredLocalizations4from14forPreferencesSaySSGAG_AGSgtFZTf4nnd_n",
|
|
11206
|
-
"$s10Foundation6BundleC22preferredLocalizations4fromSaySSGAF_tFZTf4nd_n",
|
|
11198
|
+
const WEAKEN_SDK_FOUNDATION_SYMS = /* @__PURE__ */ new Set([
|
|
11207
11199
|
"$s10Foundation16NSSortDescriptorC3key9ascendingACSSSg_SbtcfC",
|
|
11208
11200
|
"$s10Foundation16NSSortDescriptorC3key9ascendingACSSSg_Sbtcfc",
|
|
11209
11201
|
"$s10Foundation16NSSortDescriptorC3keySSSgvg",
|
|
@@ -11236,7 +11228,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
11236
11228
|
} else {
|
|
11237
11229
|
const name3 = obj.symNames[symIdx];
|
|
11238
11230
|
if (!name3) continue;
|
|
11239
|
-
if (
|
|
11231
|
+
if (WEAKEN_SDK_FOUNDATION_SYMS.has(name3)) {
|
|
11240
11232
|
const overrideCand = lazyProviders.get(name3)?.find((c) => !c.file.startsWith(sdkObjsDir));
|
|
11241
11233
|
if (overrideCand) extractObject(overrideCand);
|
|
11242
11234
|
}
|
|
@@ -11454,7 +11446,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
11454
11446
|
newFl = (fl & ~3 | 1) & 127;
|
|
11455
11447
|
} else if (!isUndef && kind === 0 && obj.symElemIdx[i] >= obj.numImportFuncs && fLive[obj.symElemIdx[i] - obj.numImportFuncs] === 0) {
|
|
11456
11448
|
newFl = fl & 64 | 2;
|
|
11457
|
-
} else if (!isUndef && kind === 0 && obj.file.startsWith(sdkObjsDir) &&
|
|
11449
|
+
} else if (!isUndef && kind === 0 && obj.file.startsWith(sdkObjsDir) && WEAKEN_SDK_FOUNDATION_SYMS.has(obj.symNames[i])) {
|
|
11458
11450
|
newFl = (fl & ~3 | 1) & 127;
|
|
11459
11451
|
}
|
|
11460
11452
|
if (flLen === 1) {
|
|
@@ -13219,7 +13211,7 @@ function sdkArtifactBytes(root, artifact) {
|
|
|
13219
13211
|
if (hash(source) !== artifact.sha256)
|
|
13220
13212
|
throw new Error(`SDK product artifact changed ${file}`);
|
|
13221
13213
|
const transformed = Uint8Array.from(source);
|
|
13222
|
-
|
|
13214
|
+
weakenFoundationOverridesInArchive(transformed);
|
|
13223
13215
|
if (!linked.equals(transformed))
|
|
13224
13216
|
throw new Error(`SDK view transformation changed ${file}`);
|
|
13225
13217
|
return { source, linked };
|
|
@@ -17828,7 +17820,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
17828
17820
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
17829
17821
|
var MULTI_MANIFEST_VERSION = 68;
|
|
17830
17822
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
17831
|
-
var compilerSourceDigest = true ? "
|
|
17823
|
+
var compilerSourceDigest = true ? "7c1188b9ba2b81e03391ec670b3e984dbb3a70fccecf681beaa2b8c7a7c36a5c" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
17832
17824
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
17833
17825
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
17834
17826
|
hash.update(`swift-compile
|
|
@@ -31442,7 +31434,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
31442
31434
|
return hash.digest("hex");
|
|
31443
31435
|
}
|
|
31444
31436
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
31445
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
31437
|
+
var STANDIN_SOURCE_DIGEST = true ? "ae88f21106ce704b52a260a8c3d5bc2c1576fc0beef490d84ca792d99bcedc3f" : standinSourceDigest();
|
|
31446
31438
|
|
|
31447
31439
|
// src/swift-standins.ts
|
|
31448
31440
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2234 | (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;
|
|
@@ -3228,7 +3228,7 @@ function readIosSdkTree(root) {
|
|
|
3228
3228
|
|
|
3229
3229
|
// src/swift-standin-digest.ts
|
|
3230
3230
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3231
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
3231
|
+
var STANDIN_SOURCE_DIGEST = true ? "ae88f21106ce704b52a260a8c3d5bc2c1576fc0beef490d84ca792d99bcedc3f" : standinSourceDigest();
|
|
3232
3232
|
|
|
3233
3233
|
// src/expo-native-workspace.ts
|
|
3234
3234
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -6790,7 +6790,7 @@ var FOUNDATION_IMPLICIT_MODULES = [
|
|
|
6790
6790
|
var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
6791
6791
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
6792
6792
|
).join("");
|
|
6793
|
-
var compilerSourceDigest = true ? "
|
|
6793
|
+
var compilerSourceDigest = true ? "7c1188b9ba2b81e03391ec670b3e984dbb3a70fccecf681beaa2b8c7a7c36a5c" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
6794
6794
|
var CORE_FOUNDATION_HANDLE_IMPORTS = [
|
|
6795
6795
|
"CFAllocator",
|
|
6796
6796
|
"CFArray",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2234 | (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/kotlin/sdk.tar.gz
CHANGED
|
Binary file
|