peachsim 0.1.2298 → 0.1.2300
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/commands/serve.ts +12 -3
- 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 +196 -49
- 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 +2 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +167 -41
- 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 +184 -57
- package/dist-lib/host/fetch-proxy-handler.cjs +5 -9
- 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 +61 -31
- 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 +60 -30
- package/dist-lib/native-app-identity-project.cjs +44 -23
- package/dist-lib/native-app-identity-project.mjs +44 -23
- 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 +213 -74
- package/dist-lib/swift-compile.cjs +49 -3
- package/dist-lib/swift-compile.mjs +49 -3
- 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 +105 -35
- package/dist-lib/vite.cjs +11 -10
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-gesture-handler.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/render-worker/gesture-arbitration-native.d.ts +124 -0
- package/dist-types/packages/peach-engine/src/render-worker/nativeAnimMirrorContract.d.ts +2 -1
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +2 -2
- package/dist-types/packages/peach-kit/src/transitions/screen-transition-math.d.ts +25 -13
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/bundle-channel.mjs +4 -3
- package/src/cli-runtime.ts +6 -0
- package/src/expo-discovery-cache.ts +65 -4
- package/src/native-firebase-config.ts +14 -0
- package/src/native-swift-slices.ts +9 -2
- package/src/swift-compile.ts +28 -1
- package/src/swift-standins.ts +6 -3
- package/src/swift-wasm-prune.ts +29 -0
- package/src/vite-plugin-one.ts +3 -3
- package/src/xcode-project.ts +46 -23
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2300 | (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;
|
|
@@ -5537,6 +5537,28 @@ function parseWasmObjectBytes(file, buf, isDist, symbolFlagOffsets) {
|
|
|
5537
5537
|
dataRelocList.push({ ...r, segIdx: lo, offInSeg, ownerSymIdx });
|
|
5538
5538
|
}
|
|
5539
5539
|
}
|
|
5540
|
+
const relocatedWords = /* @__PURE__ */ new Map();
|
|
5541
|
+
for (const r of dataRelocList) {
|
|
5542
|
+
let words = relocatedWords.get(r.segIdx);
|
|
5543
|
+
if (!words) relocatedWords.set(r.segIdx, words = /* @__PURE__ */ new Set());
|
|
5544
|
+
words.add(r.offInSeg);
|
|
5545
|
+
}
|
|
5546
|
+
for (const [segIdx, tops] of segTopSyms) {
|
|
5547
|
+
const starts = new Map(tops.map((top) => [top.off, top.symIdx]));
|
|
5548
|
+
const relocated = relocatedWords.get(segIdx);
|
|
5549
|
+
const payload = dataStart + sPayloadStarts[segIdx];
|
|
5550
|
+
const view = new DataView(buf.buffer, buf.byteOffset + payload);
|
|
5551
|
+
for (const top of tops) {
|
|
5552
|
+
for (let at = top.off; at + 4 <= top.end; at += 4) {
|
|
5553
|
+
if (relocated?.has(at)) continue;
|
|
5554
|
+
const target = starts.get(at + (view.getInt32(at, true) & ~3));
|
|
5555
|
+
if (target === void 0 || target === top.symIdx) continue;
|
|
5556
|
+
let list = symDataRelocs.get(top.symIdx);
|
|
5557
|
+
if (!list) symDataRelocs.set(top.symIdx, list = []);
|
|
5558
|
+
list.push(target);
|
|
5559
|
+
}
|
|
5560
|
+
}
|
|
5561
|
+
}
|
|
5540
5562
|
const typePrefixesInObj = /* @__PURE__ */ new Set();
|
|
5541
5563
|
for (let i = 0; i < symKind.length; i++) {
|
|
5542
5564
|
if ((symFlags[i] & 16) === 0 && symNames[i].startsWith("$s") && symNames[i].endsWith("Mn")) {
|
|
@@ -13471,7 +13493,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
13471
13493
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
13472
13494
|
var MULTI_MANIFEST_VERSION = 68;
|
|
13473
13495
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
13474
|
-
var compilerSourceDigest = true ? "
|
|
13496
|
+
var compilerSourceDigest = true ? "3c645ce8a5442f60dce1735912506ad6fa5d09cb92da26cff3950c374b371e2b" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
13475
13497
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
13476
13498
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
13477
13499
|
hash.update(`swift-compile
|
|
@@ -17793,6 +17815,28 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
17793
17815
|
(0, import_node_fs24.rmSync)(linked, { force: true });
|
|
17794
17816
|
report("compiling and linking Swift modules");
|
|
17795
17817
|
const frameworkInterfaces = /* @__PURE__ */ new Map();
|
|
17818
|
+
const nativeDeclarations = /* @__PURE__ */ new Map();
|
|
17819
|
+
for (const [file, contents] of Object.entries(input.files)) {
|
|
17820
|
+
if (!file.endsWith(".modulemap")) continue;
|
|
17821
|
+
const name2 = moduleMapName(contents);
|
|
17822
|
+
const umbrella = /\bumbrella\s+header\s+"([^"]+)"/.exec(contents)?.[1];
|
|
17823
|
+
if (!name2 || !umbrella) continue;
|
|
17824
|
+
const header = input.files[import_node_path25.default.posix.join(import_node_path25.default.posix.dirname(file), umbrella)];
|
|
17825
|
+
if (header === void 0) continue;
|
|
17826
|
+
const included = new Set(
|
|
17827
|
+
[
|
|
17828
|
+
...header.matchAll(/^\s*#\s*(?:import|include)\s*[<"]([^">]+)[">]/gm)
|
|
17829
|
+
].map((match) => import_node_path25.default.posix.basename(match[1]))
|
|
17830
|
+
);
|
|
17831
|
+
const declarations = nativeDeclarations.get(name2) ?? /* @__PURE__ */ new Set();
|
|
17832
|
+
for (const declaration of swiftInterfaceDeclarations(header))
|
|
17833
|
+
declarations.add(declaration);
|
|
17834
|
+
for (const [candidate, source] of Object.entries(input.files))
|
|
17835
|
+
if (included.has(import_node_path25.default.posix.basename(candidate)))
|
|
17836
|
+
for (const declaration of swiftInterfaceDeclarations(source))
|
|
17837
|
+
declarations.add(declaration);
|
|
17838
|
+
nativeDeclarations.set(name2, declarations);
|
|
17839
|
+
}
|
|
17796
17840
|
const frameworkInterface = (name2) => {
|
|
17797
17841
|
if (frameworkInterfaces.has(name2)) return frameworkInterfaces.get(name2);
|
|
17798
17842
|
const source = distribution ? import_node_path25.default.join(frameworkRoot, "modules", `${name2}-Swift.h`) : import_node_path25.default.join(
|
|
@@ -17820,10 +17864,12 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
17820
17864
|
))
|
|
17821
17865
|
declared.add(name3);
|
|
17822
17866
|
}
|
|
17867
|
+
for (const declaration of nativeDeclarations.get(name2) ?? [])
|
|
17868
|
+
declared.add(declaration);
|
|
17823
17869
|
const own = withoutSwiftDeclarations(
|
|
17824
17870
|
clangInterfaceHeader((0, import_node_fs24.readFileSync)(source, "utf8")),
|
|
17825
17871
|
declared,
|
|
17826
|
-
`#import <${name2}/${name2}.h>`
|
|
17872
|
+
nativeDeclarations.has(name2) ? `@import ${name2};` : `#import <${name2}/${name2}.h>`
|
|
17827
17873
|
);
|
|
17828
17874
|
const owners = sdkObjCDeclarationOwners(import_node_path25.default.dirname(import_node_path25.default.dirname(headers)));
|
|
17829
17875
|
const foreign = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2300 | (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);
|
|
@@ -5490,6 +5490,28 @@ function parseWasmObjectBytes(file, buf, isDist, symbolFlagOffsets) {
|
|
|
5490
5490
|
dataRelocList.push({ ...r, segIdx: lo, offInSeg, ownerSymIdx });
|
|
5491
5491
|
}
|
|
5492
5492
|
}
|
|
5493
|
+
const relocatedWords = /* @__PURE__ */ new Map();
|
|
5494
|
+
for (const r of dataRelocList) {
|
|
5495
|
+
let words = relocatedWords.get(r.segIdx);
|
|
5496
|
+
if (!words) relocatedWords.set(r.segIdx, words = /* @__PURE__ */ new Set());
|
|
5497
|
+
words.add(r.offInSeg);
|
|
5498
|
+
}
|
|
5499
|
+
for (const [segIdx, tops] of segTopSyms) {
|
|
5500
|
+
const starts = new Map(tops.map((top) => [top.off, top.symIdx]));
|
|
5501
|
+
const relocated = relocatedWords.get(segIdx);
|
|
5502
|
+
const payload = dataStart + sPayloadStarts[segIdx];
|
|
5503
|
+
const view = new DataView(buf.buffer, buf.byteOffset + payload);
|
|
5504
|
+
for (const top of tops) {
|
|
5505
|
+
for (let at = top.off; at + 4 <= top.end; at += 4) {
|
|
5506
|
+
if (relocated?.has(at)) continue;
|
|
5507
|
+
const target = starts.get(at + (view.getInt32(at, true) & ~3));
|
|
5508
|
+
if (target === void 0 || target === top.symIdx) continue;
|
|
5509
|
+
let list = symDataRelocs.get(top.symIdx);
|
|
5510
|
+
if (!list) symDataRelocs.set(top.symIdx, list = []);
|
|
5511
|
+
list.push(target);
|
|
5512
|
+
}
|
|
5513
|
+
}
|
|
5514
|
+
}
|
|
5493
5515
|
const typePrefixesInObj = /* @__PURE__ */ new Set();
|
|
5494
5516
|
for (let i = 0; i < symKind.length; i++) {
|
|
5495
5517
|
if ((symFlags[i] & 16) === 0 && symNames[i].startsWith("$s") && symNames[i].endsWith("Mn")) {
|
|
@@ -13457,7 +13479,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
13457
13479
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
13458
13480
|
var MULTI_MANIFEST_VERSION = 68;
|
|
13459
13481
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
13460
|
-
var compilerSourceDigest = true ? "
|
|
13482
|
+
var compilerSourceDigest = true ? "3c645ce8a5442f60dce1735912506ad6fa5d09cb92da26cff3950c374b371e2b" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
13461
13483
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
13462
13484
|
const hash = createHash13("sha256");
|
|
13463
13485
|
hash.update(`swift-compile
|
|
@@ -17779,6 +17801,28 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
17779
17801
|
rmSync7(linked, { force: true });
|
|
17780
17802
|
report("compiling and linking Swift modules");
|
|
17781
17803
|
const frameworkInterfaces = /* @__PURE__ */ new Map();
|
|
17804
|
+
const nativeDeclarations = /* @__PURE__ */ new Map();
|
|
17805
|
+
for (const [file, contents] of Object.entries(input.files)) {
|
|
17806
|
+
if (!file.endsWith(".modulemap")) continue;
|
|
17807
|
+
const name2 = moduleMapName(contents);
|
|
17808
|
+
const umbrella = /\bumbrella\s+header\s+"([^"]+)"/.exec(contents)?.[1];
|
|
17809
|
+
if (!name2 || !umbrella) continue;
|
|
17810
|
+
const header = input.files[path27.posix.join(path27.posix.dirname(file), umbrella)];
|
|
17811
|
+
if (header === void 0) continue;
|
|
17812
|
+
const included = new Set(
|
|
17813
|
+
[
|
|
17814
|
+
...header.matchAll(/^\s*#\s*(?:import|include)\s*[<"]([^">]+)[">]/gm)
|
|
17815
|
+
].map((match) => path27.posix.basename(match[1]))
|
|
17816
|
+
);
|
|
17817
|
+
const declarations = nativeDeclarations.get(name2) ?? /* @__PURE__ */ new Set();
|
|
17818
|
+
for (const declaration of swiftInterfaceDeclarations(header))
|
|
17819
|
+
declarations.add(declaration);
|
|
17820
|
+
for (const [candidate, source] of Object.entries(input.files))
|
|
17821
|
+
if (included.has(path27.posix.basename(candidate)))
|
|
17822
|
+
for (const declaration of swiftInterfaceDeclarations(source))
|
|
17823
|
+
declarations.add(declaration);
|
|
17824
|
+
nativeDeclarations.set(name2, declarations);
|
|
17825
|
+
}
|
|
17782
17826
|
const frameworkInterface = (name2) => {
|
|
17783
17827
|
if (frameworkInterfaces.has(name2)) return frameworkInterfaces.get(name2);
|
|
17784
17828
|
const source = distribution ? path27.join(frameworkRoot, "modules", `${name2}-Swift.h`) : path27.join(
|
|
@@ -17806,10 +17850,12 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
17806
17850
|
))
|
|
17807
17851
|
declared.add(name3);
|
|
17808
17852
|
}
|
|
17853
|
+
for (const declaration of nativeDeclarations.get(name2) ?? [])
|
|
17854
|
+
declared.add(declaration);
|
|
17809
17855
|
const own = withoutSwiftDeclarations(
|
|
17810
17856
|
clangInterfaceHeader(readFileSync17(source, "utf8")),
|
|
17811
17857
|
declared,
|
|
17812
|
-
`#import <${name2}/${name2}.h>`
|
|
17858
|
+
nativeDeclarations.has(name2) ? `@import ${name2};` : `#import <${name2}/${name2}.h>`
|
|
17813
17859
|
);
|
|
17814
17860
|
const owners = sdkObjCDeclarationOwners(path27.dirname(path27.dirname(headers)));
|
|
17815
17861
|
const foreign = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2300 | (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.2300 | (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.2300 | (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.2300 | (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.2300 | (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;
|
|
@@ -7669,8 +7669,8 @@ function developerDirs() {
|
|
|
7669
7669
|
}
|
|
7670
7670
|
return found;
|
|
7671
7671
|
}
|
|
7672
|
-
function readNativeSdk(
|
|
7673
|
-
const env = { ...process.env, DEVELOPER_DIR:
|
|
7672
|
+
function readNativeSdk(developerDir2) {
|
|
7673
|
+
const env = { ...process.env, DEVELOPER_DIR: developerDir2 };
|
|
7674
7674
|
const xcrun = (args) => (
|
|
7675
7675
|
// runner-toolchain-platform: darwin
|
|
7676
7676
|
(0, import_node_child_process6.execFileSync)("xcrun", args, {
|
|
@@ -7709,19 +7709,19 @@ function nativeGraphMismatches(read) {
|
|
|
7709
7709
|
function pinnedNativeSdk() {
|
|
7710
7710
|
if (resolvedPinnedSdk) return resolvedPinnedSdk;
|
|
7711
7711
|
let mismatches;
|
|
7712
|
-
for (const
|
|
7712
|
+
for (const developerDir2 of developerDirs()) {
|
|
7713
7713
|
let read;
|
|
7714
7714
|
try {
|
|
7715
|
-
read = readNativeSdk(
|
|
7715
|
+
read = readNativeSdk(developerDir2);
|
|
7716
7716
|
} catch {
|
|
7717
7717
|
continue;
|
|
7718
7718
|
}
|
|
7719
7719
|
if (read.sdk !== NATIVE_GRAPH_SDK_VERSION) continue;
|
|
7720
7720
|
const differ = nativeGraphMismatches(read);
|
|
7721
7721
|
if (differ.length === 0) {
|
|
7722
|
-
process.env.DEVELOPER_DIR =
|
|
7722
|
+
process.env.DEVELOPER_DIR = developerDir2;
|
|
7723
7723
|
resolvedPinnedSdk = {
|
|
7724
|
-
developerDir,
|
|
7724
|
+
developerDir: developerDir2,
|
|
7725
7725
|
sdkPath: read.sdkPath,
|
|
7726
7726
|
compiler: read.compiler
|
|
7727
7727
|
};
|
|
@@ -10485,6 +10485,28 @@ function parseWasmObjectBytes(file, buf, isDist, symbolFlagOffsets) {
|
|
|
10485
10485
|
dataRelocList.push({ ...r, segIdx: lo, offInSeg, ownerSymIdx });
|
|
10486
10486
|
}
|
|
10487
10487
|
}
|
|
10488
|
+
const relocatedWords = /* @__PURE__ */ new Map();
|
|
10489
|
+
for (const r of dataRelocList) {
|
|
10490
|
+
let words2 = relocatedWords.get(r.segIdx);
|
|
10491
|
+
if (!words2) relocatedWords.set(r.segIdx, words2 = /* @__PURE__ */ new Set());
|
|
10492
|
+
words2.add(r.offInSeg);
|
|
10493
|
+
}
|
|
10494
|
+
for (const [segIdx, tops] of segTopSyms) {
|
|
10495
|
+
const starts = new Map(tops.map((top) => [top.off, top.symIdx]));
|
|
10496
|
+
const relocated = relocatedWords.get(segIdx);
|
|
10497
|
+
const payload = dataStart + sPayloadStarts[segIdx];
|
|
10498
|
+
const view = new DataView(buf.buffer, buf.byteOffset + payload);
|
|
10499
|
+
for (const top of tops) {
|
|
10500
|
+
for (let at = top.off; at + 4 <= top.end; at += 4) {
|
|
10501
|
+
if (relocated?.has(at)) continue;
|
|
10502
|
+
const target = starts.get(at + (view.getInt32(at, true) & ~3));
|
|
10503
|
+
if (target === void 0 || target === top.symIdx) continue;
|
|
10504
|
+
let list2 = symDataRelocs.get(top.symIdx);
|
|
10505
|
+
if (!list2) symDataRelocs.set(top.symIdx, list2 = []);
|
|
10506
|
+
list2.push(target);
|
|
10507
|
+
}
|
|
10508
|
+
}
|
|
10509
|
+
}
|
|
10488
10510
|
const typePrefixesInObj = /* @__PURE__ */ new Set();
|
|
10489
10511
|
for (let i = 0; i < symKind.length; i++) {
|
|
10490
10512
|
if ((symFlags[i] & 16) === 0 && symNames[i].startsWith("$s") && symNames[i].endsWith("Mn")) {
|
|
@@ -18284,7 +18306,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
18284
18306
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
18285
18307
|
var MULTI_MANIFEST_VERSION = 68;
|
|
18286
18308
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
18287
|
-
var compilerSourceDigest = true ? "
|
|
18309
|
+
var compilerSourceDigest = true ? "3c645ce8a5442f60dce1735912506ad6fa5d09cb92da26cff3950c374b371e2b" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
18288
18310
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
18289
18311
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
18290
18312
|
hash.update(`swift-compile
|
|
@@ -22513,6 +22535,28 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
22513
22535
|
(0, import_node_fs27.rmSync)(linked, { force: true });
|
|
22514
22536
|
report("compiling and linking Swift modules");
|
|
22515
22537
|
const frameworkInterfaces = /* @__PURE__ */ new Map();
|
|
22538
|
+
const nativeDeclarations = /* @__PURE__ */ new Map();
|
|
22539
|
+
for (const [file, contents] of Object.entries(input.files)) {
|
|
22540
|
+
if (!file.endsWith(".modulemap")) continue;
|
|
22541
|
+
const name3 = moduleMapName(contents);
|
|
22542
|
+
const umbrella = /\bumbrella\s+header\s+"([^"]+)"/.exec(contents)?.[1];
|
|
22543
|
+
if (!name3 || !umbrella) continue;
|
|
22544
|
+
const header = input.files[import_node_path27.default.posix.join(import_node_path27.default.posix.dirname(file), umbrella)];
|
|
22545
|
+
if (header === void 0) continue;
|
|
22546
|
+
const included = new Set(
|
|
22547
|
+
[
|
|
22548
|
+
...header.matchAll(/^\s*#\s*(?:import|include)\s*[<"]([^">]+)[">]/gm)
|
|
22549
|
+
].map((match) => import_node_path27.default.posix.basename(match[1]))
|
|
22550
|
+
);
|
|
22551
|
+
const declarations = nativeDeclarations.get(name3) ?? /* @__PURE__ */ new Set();
|
|
22552
|
+
for (const declaration of swiftInterfaceDeclarations(header))
|
|
22553
|
+
declarations.add(declaration);
|
|
22554
|
+
for (const [candidate, source] of Object.entries(input.files))
|
|
22555
|
+
if (included.has(import_node_path27.default.posix.basename(candidate)))
|
|
22556
|
+
for (const declaration of swiftInterfaceDeclarations(source))
|
|
22557
|
+
declarations.add(declaration);
|
|
22558
|
+
nativeDeclarations.set(name3, declarations);
|
|
22559
|
+
}
|
|
22516
22560
|
const frameworkInterface = (name3) => {
|
|
22517
22561
|
if (frameworkInterfaces.has(name3)) return frameworkInterfaces.get(name3);
|
|
22518
22562
|
const source = distribution ? import_node_path27.default.join(frameworkRoot, "modules", `${name3}-Swift.h`) : import_node_path27.default.join(
|
|
@@ -22540,10 +22584,12 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
22540
22584
|
))
|
|
22541
22585
|
declared.add(name4);
|
|
22542
22586
|
}
|
|
22587
|
+
for (const declaration of nativeDeclarations.get(name3) ?? [])
|
|
22588
|
+
declared.add(declaration);
|
|
22543
22589
|
const own = withoutSwiftDeclarations(
|
|
22544
22590
|
clangInterfaceHeader((0, import_node_fs27.readFileSync)(source, "utf8")),
|
|
22545
22591
|
declared,
|
|
22546
|
-
`#import <${name3}/${name3}.h>`
|
|
22592
|
+
nativeDeclarations.has(name3) ? `@import ${name3};` : `#import <${name3}/${name3}.h>`
|
|
22547
22593
|
);
|
|
22548
22594
|
const owners = sdkObjCDeclarationOwners(import_node_path27.default.dirname(import_node_path27.default.dirname(headers)));
|
|
22549
22595
|
const foreign = /* @__PURE__ */ new Map();
|
|
@@ -25437,7 +25483,7 @@ var import_node_fs33 = require("node:fs");
|
|
|
25437
25483
|
var import_node_path33 = require("node:path");
|
|
25438
25484
|
|
|
25439
25485
|
// src/swift-coverage/provenance.ts
|
|
25440
|
-
var swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"bfde06f157f52d3dd76577b3c6059c95c0393180b054ced773624ea89558992b","swift-package.ts":"338cfef9a34a930206ac2e1a8a90b85c8d61f776d9a41e6445dc18e0c5385cdb","swift-source-file.ts":"93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94","swift-toolchain.ts":"b60efa4eb7516378344cb7c48216aea5fa36590ace91a698655b48cfd0db96fe","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1","xcode-project.ts":"
|
|
25486
|
+
var swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"bfde06f157f52d3dd76577b3c6059c95c0393180b054ced773624ea89558992b","swift-package.ts":"338cfef9a34a930206ac2e1a8a90b85c8d61f776d9a41e6445dc18e0c5385cdb","swift-source-file.ts":"93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94","swift-toolchain.ts":"b60efa4eb7516378344cb7c48216aea5fa36590ace91a698655b48cfd0db96fe","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1","xcode-project.ts":"96a57d4b999e75658683d635d3522d6c7ae30b4c8bc38a8114af353bce5162ff","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
|
|
25441
25487
|
|
|
25442
25488
|
// src/swift-coverage/xcode-asset-symbols.ts
|
|
25443
25489
|
var import_node_fs32 = require("node:fs");
|
|
@@ -29600,6 +29646,17 @@ function loadProject(xcodeproj) {
|
|
|
29600
29646
|
loaded.set(projectFile, { digest, project: result });
|
|
29601
29647
|
return result;
|
|
29602
29648
|
}
|
|
29649
|
+
var developerDir;
|
|
29650
|
+
function selectedDeveloperDir() {
|
|
29651
|
+
developerDir ??= process.platform === "darwin" ? (
|
|
29652
|
+
// runner-toolchain-platform: darwin
|
|
29653
|
+
(0, import_node_child_process23.execFileSync)("xcode-select", ["-p"], {
|
|
29654
|
+
encoding: "utf8",
|
|
29655
|
+
stdio: ["ignore", "pipe", "pipe"]
|
|
29656
|
+
}).trim()
|
|
29657
|
+
) : "";
|
|
29658
|
+
return developerDir;
|
|
29659
|
+
}
|
|
29603
29660
|
function defaultConfiguration(project) {
|
|
29604
29661
|
const configList = project.object(str(project.project.buildConfigurationList));
|
|
29605
29662
|
const names = list(configList?.buildConfigurations).flatMap(
|
|
@@ -29666,15 +29723,8 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
|
|
|
29666
29723
|
resolving.delete(marker);
|
|
29667
29724
|
return value;
|
|
29668
29725
|
};
|
|
29669
|
-
let developerDir;
|
|
29670
29726
|
const derivedSettings = {
|
|
29671
|
-
DEVELOPER_DIR: () => options.environment?.DEVELOPER_DIR ?? process.env.DEVELOPER_DIR ?? (
|
|
29672
|
-
// runner-toolchain-platform: darwin
|
|
29673
|
-
(0, import_node_child_process23.execFileSync)("xcode-select", ["-p"], {
|
|
29674
|
-
encoding: "utf8",
|
|
29675
|
-
stdio: ["ignore", "pipe", "pipe"]
|
|
29676
|
-
}).trim()
|
|
29677
|
-
) : ""),
|
|
29727
|
+
DEVELOPER_DIR: () => options.environment?.DEVELOPER_DIR ?? process.env.DEVELOPER_DIR ?? selectedDeveloperDir(),
|
|
29678
29728
|
PRODUCT_NAME: () => get("TARGET_NAME"),
|
|
29679
29729
|
PRODUCT_MODULE_NAME: () => applyOperator(get("PRODUCT_NAME"), "c99extidentifier"),
|
|
29680
29730
|
EXECUTABLE_NAME: () => get("PRODUCT_NAME"),
|
|
@@ -30403,7 +30453,16 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
30403
30453
|
order.push(ref);
|
|
30404
30454
|
};
|
|
30405
30455
|
visit(app);
|
|
30406
|
-
const
|
|
30456
|
+
const headerPhases = /* @__PURE__ */ new Map();
|
|
30457
|
+
const headerPhase = (ref) => {
|
|
30458
|
+
const key2 = `${ref.project.xcodeproj}\0${ref.id}`;
|
|
30459
|
+
const cached = headerPhases.get(key2);
|
|
30460
|
+
if (cached) return cached;
|
|
30461
|
+
const files2 = readHeaderPhase(ref);
|
|
30462
|
+
headerPhases.set(key2, files2);
|
|
30463
|
+
return files2;
|
|
30464
|
+
};
|
|
30465
|
+
const readHeaderPhase = (ref) => list(ref.target.buildPhases).flatMap((phaseId) => {
|
|
30407
30466
|
const phase = ref.project.object(phaseId);
|
|
30408
30467
|
if (phase?.isa !== "PBXHeadersBuildPhase") return [];
|
|
30409
30468
|
return list(phase.files).flatMap((id) => {
|
|
@@ -30420,6 +30479,23 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
30420
30479
|
];
|
|
30421
30480
|
});
|
|
30422
30481
|
});
|
|
30482
|
+
const projectNonFrameworkHeaders = /* @__PURE__ */ new Map();
|
|
30483
|
+
const nonFrameworkHeadersOf = (project) => {
|
|
30484
|
+
const cached = projectNonFrameworkHeaders.get(project);
|
|
30485
|
+
if (cached) return cached;
|
|
30486
|
+
const headers = /* @__PURE__ */ new Map();
|
|
30487
|
+
for (const other of projectTargets(project)) {
|
|
30488
|
+
if (FRAMEWORK_PRODUCTS.has(str(other.target.productType) ?? "")) continue;
|
|
30489
|
+
const otherProduct = productName(other);
|
|
30490
|
+
for (const { file, visibility } of headerPhase(other)) {
|
|
30491
|
+
if (visibility === "Project") continue;
|
|
30492
|
+
const key2 = `${otherProduct}/${import_node_path39.default.basename(file)}`;
|
|
30493
|
+
if (!headers.has(key2)) headers.set(key2, file);
|
|
30494
|
+
}
|
|
30495
|
+
}
|
|
30496
|
+
projectNonFrameworkHeaders.set(project, headers);
|
|
30497
|
+
return headers;
|
|
30498
|
+
};
|
|
30423
30499
|
const productNames = /* @__PURE__ */ new Map();
|
|
30424
30500
|
const productName = (ref) => {
|
|
30425
30501
|
const key2 = `${ref.project.xcodeproj}\0${ref.id}`;
|
|
@@ -30652,16 +30728,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
30652
30728
|
const qualified2 = `${product}/${name4}`;
|
|
30653
30729
|
if (!ownHeaders.has(qualified2)) ownHeaders.set(qualified2, file);
|
|
30654
30730
|
}
|
|
30655
|
-
const nonFrameworkHeaders =
|
|
30656
|
-
for (const other of projectTargets(ref.project)) {
|
|
30657
|
-
if (FRAMEWORK_PRODUCTS.has(str(other.target.productType) ?? "")) continue;
|
|
30658
|
-
const otherProduct = productName(other);
|
|
30659
|
-
for (const { file, visibility } of headerPhase(other)) {
|
|
30660
|
-
if (visibility === "Project") continue;
|
|
30661
|
-
const key2 = `${otherProduct}/${import_node_path39.default.basename(file)}`;
|
|
30662
|
-
if (!nonFrameworkHeaders.has(key2)) nonFrameworkHeaders.set(key2, file);
|
|
30663
|
-
}
|
|
30664
|
-
}
|
|
30731
|
+
const nonFrameworkHeaders = nonFrameworkHeadersOf(ref.project);
|
|
30665
30732
|
const wrapper = import_node_path39.default.join(settings2("BUILT_PRODUCTS_DIR"), `${product}.framework`);
|
|
30666
30733
|
const moduleMap = (settings2("DEFINES_MODULE") === "YES" || !framework) && settings2("MODULEMAP_FILE") ? absolute(settings2("MODULEMAP_FILE")) : null;
|
|
30667
30734
|
const frameworkUmbrella = !compatibility && framework && members2.sources.length > 0 && moduleMap ? import_node_path39.default.join(import_node_path39.default.dirname(moduleMap), `${moduleName}-umbrella.h`) : null;
|
|
@@ -30883,7 +30950,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
30883
30950
|
nativeTargets.add(ref);
|
|
30884
30951
|
for (const dependency of dependenciesOf(ref)) includeNativeTarget(dependency);
|
|
30885
30952
|
};
|
|
30886
|
-
for (const { ref, module: module3 } of builtTargets)
|
|
30953
|
+
for (const { ref, module: module3 } of builtTargets.slice(0, -1))
|
|
30887
30954
|
if (options.nativeModules?.some(
|
|
30888
30955
|
(name3) => name3 === module3.moduleName || name3 === module3.name
|
|
30889
30956
|
))
|
|
@@ -32470,7 +32537,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
32470
32537
|
return hash.digest("hex");
|
|
32471
32538
|
}
|
|
32472
32539
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
32473
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
32540
|
+
var STANDIN_SOURCE_DIGEST = true ? "8a800a5151c426f07ff690c34df9a6d538c005318051ef52635fc568c44736f6" : standinSourceDigest();
|
|
32474
32541
|
|
|
32475
32542
|
// src/swift-standins.ts
|
|
32476
32543
|
var import_node_child_process31 = require("node:child_process");
|
|
@@ -32979,7 +33046,10 @@ function nativeSwiftSlice(standin, moduleRoot, generator, configured, artifact)
|
|
|
32979
33046
|
`${standin.module}: configured binary behavior cannot replace a compiled native slice`
|
|
32980
33047
|
);
|
|
32981
33048
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
32982
|
-
if (!distribution)
|
|
33049
|
+
if (!distribution)
|
|
33050
|
+
throw new Error(
|
|
33051
|
+
`${standin.module}'s native Swift slice needs a compiled distribution; a source checkout names one with ${SWIFT_PRIVATE_DISTRIBUTION_ENV}`
|
|
33052
|
+
);
|
|
32983
33053
|
const entry = nativeSwiftSliceEntry(distribution, generator);
|
|
32984
33054
|
const directory = fetchNativeEntry("slice", entry.name, entry.key) ?? privateSentrySlice(entry, moduleRoot);
|
|
32985
33055
|
if (!directory)
|
|
@@ -33805,10 +33875,10 @@ function binaryHeaderSearchPaths(binary, root, declaredFrameworks) {
|
|
|
33805
33875
|
const name3 = import_node_path50.default.basename(framework, ".framework");
|
|
33806
33876
|
if (!declaredFrameworks) continue;
|
|
33807
33877
|
const imports2 = declaredFrameworks.imports.get(name3);
|
|
33808
|
-
const swift = imports2 && swiftModuleInterface(declaredFrameworks.moduleRoot, name3);
|
|
33878
|
+
const swift = !REACH_STAGED_FRAMEWORKS.has(name3) && imports2 && swiftModuleInterface(declaredFrameworks.moduleRoot, name3);
|
|
33809
33879
|
const compiled = declaredFrameworks.compiledImports.get(name3);
|
|
33810
33880
|
if (swift) declared.set(framework, { ...swift, imports: imports2, sdkHeader: null });
|
|
33811
|
-
else if (compiled && REACH_STAGED_FRAMEWORKS.has(name3)) {
|
|
33881
|
+
else if ((compiled || imports2) && REACH_STAGED_FRAMEWORKS.has(name3)) {
|
|
33812
33882
|
const sdkHeader = import_node_path50.default.join(
|
|
33813
33883
|
swiftSharedSdkRoot(
|
|
33814
33884
|
declaredFrameworks.moduleRoot,
|
|
@@ -33820,7 +33890,7 @@ function binaryHeaderSearchPaths(binary, root, declaredFrameworks) {
|
|
|
33820
33890
|
declared.set(framework, {
|
|
33821
33891
|
declared: null,
|
|
33822
33892
|
header: null,
|
|
33823
|
-
imports: compiled,
|
|
33893
|
+
imports: compiled ?? /* @__PURE__ */ new Set(),
|
|
33824
33894
|
sdkHeader: import_node_fs50.default.readFileSync(sdkHeader, "utf8")
|
|
33825
33895
|
});
|
|
33826
33896
|
}
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2300 | (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;
|
|
@@ -2742,7 +2742,7 @@ var init_src = __esm({
|
|
|
2742
2742
|
var runtime_companion_default;
|
|
2743
2743
|
var init_runtime_companion = __esm({
|
|
2744
2744
|
"runtime-companion.json"() {
|
|
2745
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
2745
|
+
runtime_companion_default = { abi: 1, sha256: "60900a3af6e6213c855e6682baa0ebdb6a6865510e4e3a51a24d4c584b3fdec2", file: "node/cli-60900a3af6e6213c855e6682baa0ebdb6a6865510e4e3a51a24d4c584b3fdec2.cjs" };
|
|
2746
2746
|
}
|
|
2747
2747
|
});
|
|
2748
2748
|
|
|
@@ -2983,6 +2983,7 @@ __export(cli_runtime_exports, {
|
|
|
2983
2983
|
cliCompanionPath: () => cliCompanionPath,
|
|
2984
2984
|
ensureCliCompanion: () => ensureCliCompanion,
|
|
2985
2985
|
getCliRuntime: () => getCliRuntime,
|
|
2986
|
+
loadCliRuntime: () => loadCliRuntime,
|
|
2986
2987
|
verifyCliCompanion: () => verifyCliCompanion
|
|
2987
2988
|
});
|
|
2988
2989
|
function cliCompanionPath() {
|
|
@@ -3030,6 +3031,10 @@ async function ensureCliCompanion(root) {
|
|
|
3030
3031
|
(0, import_node_fs13.rmSync)(staged, { force: true });
|
|
3031
3032
|
}
|
|
3032
3033
|
}
|
|
3034
|
+
async function loadCliRuntime() {
|
|
3035
|
+
if (!loaded) await ensureCliCompanion(peachRuntimeRoot());
|
|
3036
|
+
return getCliRuntime();
|
|
3037
|
+
}
|
|
3033
3038
|
function getCliRuntime() {
|
|
3034
3039
|
if (loaded) return loaded.runtime;
|
|
3035
3040
|
const root = peachRuntimeRoot();
|
|
@@ -3100,7 +3105,7 @@ var STANDIN_SOURCE_DIGEST;
|
|
|
3100
3105
|
var init_swift_standin_digest = __esm({
|
|
3101
3106
|
"src/swift-standin-digest.ts"() {
|
|
3102
3107
|
"use strict";
|
|
3103
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
3108
|
+
STANDIN_SOURCE_DIGEST = true ? "8a800a5151c426f07ff690c34df9a6d538c005318051ef52635fc568c44736f6" : standinSourceDigest();
|
|
3104
3109
|
}
|
|
3105
3110
|
});
|
|
3106
3111
|
|
|
@@ -3547,7 +3552,7 @@ var swiftCoverageProvenance;
|
|
|
3547
3552
|
var init_provenance = __esm({
|
|
3548
3553
|
"src/swift-coverage/provenance.ts"() {
|
|
3549
3554
|
"use strict";
|
|
3550
|
-
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"bfde06f157f52d3dd76577b3c6059c95c0393180b054ced773624ea89558992b","swift-package.ts":"338cfef9a34a930206ac2e1a8a90b85c8d61f776d9a41e6445dc18e0c5385cdb","swift-source-file.ts":"93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94","swift-toolchain.ts":"b60efa4eb7516378344cb7c48216aea5fa36590ace91a698655b48cfd0db96fe","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1","xcode-project.ts":"
|
|
3555
|
+
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"bfde06f157f52d3dd76577b3c6059c95c0393180b054ced773624ea89558992b","swift-package.ts":"338cfef9a34a930206ac2e1a8a90b85c8d61f776d9a41e6445dc18e0c5385cdb","swift-source-file.ts":"93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94","swift-toolchain.ts":"b60efa4eb7516378344cb7c48216aea5fa36590ace91a698655b48cfd0db96fe","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1","xcode-project.ts":"96a57d4b999e75658683d635d3522d6c7ae30b4c8bc38a8114af353bce5162ff","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
|
|
3551
3556
|
}
|
|
3552
3557
|
});
|
|
3553
3558
|
|
|
@@ -4753,7 +4758,7 @@ var init_swift_compile = __esm({
|
|
|
4753
4758
|
FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
4754
4759
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
4755
4760
|
).join("");
|
|
4756
|
-
compilerSourceDigest = true ? "
|
|
4761
|
+
compilerSourceDigest = true ? "3c645ce8a5442f60dce1735912506ad6fa5d09cb92da26cff3950c374b371e2b" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
4757
4762
|
CORE_FOUNDATION_HANDLE_IMPORTS = [
|
|
4758
4763
|
"CFAllocator",
|
|
4759
4764
|
"CFArray",
|
|
@@ -11599,7 +11604,6 @@ var NATIVE_RUNTIME_PACKAGE_NAMES = [
|
|
|
11599
11604
|
|
|
11600
11605
|
// ../peach-globals/src/guest-modules/lazy-stub-patterns.ts
|
|
11601
11606
|
var LAZY_STUB_PATTERNS = [
|
|
11602
|
-
"@10play/tentap-editor",
|
|
11603
11607
|
"@adobe/react-native-aepcore",
|
|
11604
11608
|
"@azesmway/react-native-unity",
|
|
11605
11609
|
"@azzapp/react-native-skia-video",
|
|
@@ -11672,8 +11676,6 @@ var LAZY_STUB_PATTERNS = [
|
|
|
11672
11676
|
"react-native-agora",
|
|
11673
11677
|
"react-native-android-location-enabler",
|
|
11674
11678
|
"react-native-animateable-text",
|
|
11675
|
-
"react-native-app-clip",
|
|
11676
|
-
"react-native-avoid-softinput",
|
|
11677
11679
|
"react-native-azure-auth",
|
|
11678
11680
|
"react-native-bare-kit",
|
|
11679
11681
|
"react-native-bluetooth-classic",
|
|
@@ -11688,7 +11690,6 @@ var LAZY_STUB_PATTERNS = [
|
|
|
11688
11690
|
"react-native-extra-dimensions-android",
|
|
11689
11691
|
"react-native-fast-opencv",
|
|
11690
11692
|
"react-native-fast-shadow",
|
|
11691
|
-
"react-native-fast-squircle",
|
|
11692
11693
|
"react-native-fast-tflite",
|
|
11693
11694
|
"react-native-file-viewer-turbo",
|
|
11694
11695
|
"react-native-floating-label-input",
|
|
@@ -15132,7 +15133,7 @@ globalThis.${PEACH_WORKSPACE_MODULE_MARKER}=[${JSON.stringify(match.pattern)},{$
|
|
|
15132
15133
|
async generateBundle(_options, bundle) {
|
|
15133
15134
|
if (options.enabled === false || dev) return;
|
|
15134
15135
|
const versions = readInstalledNativePackageVersions(root);
|
|
15135
|
-
const { attachRolldownBundleInventory } =
|
|
15136
|
+
const { attachRolldownBundleInventory } = (await loadCliRuntime()).rolldown_bundle_inventory;
|
|
15136
15137
|
for (const output of Object.values(bundle)) {
|
|
15137
15138
|
if (output.type !== "chunk") continue;
|
|
15138
15139
|
output.code = await attachRolldownBundleInventory(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2300 | (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-types/packages/peach-compat/src/stubs/native-seams/react-native-gesture-handler.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { GestureArbitrator } from '../../../../peach-engine/src/render-worker/gesture-arbitration-native.d.ts';
|
|
1
2
|
declare const State: {
|
|
2
3
|
readonly UNDETERMINED: 0;
|
|
3
4
|
readonly FAILED: 1;
|
|
@@ -37,6 +38,7 @@ type LastPointer = {
|
|
|
37
38
|
interface HandlerEntry {
|
|
38
39
|
tag: number;
|
|
39
40
|
name: string;
|
|
41
|
+
core: boolean;
|
|
40
42
|
config: Record<string, unknown>;
|
|
41
43
|
viewTag: number | null;
|
|
42
44
|
viewIsUIControl: boolean;
|
|
@@ -108,6 +110,7 @@ export declare function estimatePanVelocity(samples: PanRecognizerState['velocit
|
|
|
108
110
|
x: number;
|
|
109
111
|
y: number;
|
|
110
112
|
};
|
|
113
|
+
export declare function setGestureRecognizerCore(core: GestureArbitrator | null): void;
|
|
111
114
|
declare const RNGestureHandlerModule: {
|
|
112
115
|
handleSetJSResponder: (_tag: number, _blockNativeResponder: boolean) => void;
|
|
113
116
|
handleClearJSResponder: () => void;
|