peachsim 0.1.2299 → 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 +113 -39
- 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 +85 -32
- 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 +92 -38
- 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 +60 -30
- 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 +59 -29
- package/dist-lib/native-app-identity-project.cjs +43 -22
- package/dist-lib/native-app-identity-project.mjs +43 -22
- 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 +120 -54
- package/dist-lib/swift-compile.cjs +27 -3
- package/dist-lib/swift-compile.mjs +27 -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 +75 -30
- 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-kit/src/transitions/screen-transition-math.d.ts +2 -2
- 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/native-firebase-config.ts +14 -0
- package/src/swift-compile.ts +28 -1
- package/src/vite-plugin-one.ts +3 -3
- package/src/xcode-project.ts +45 -22
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
|
};
|
|
@@ -18306,7 +18306,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
18306
18306
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
18307
18307
|
var MULTI_MANIFEST_VERSION = 68;
|
|
18308
18308
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
18309
|
-
var compilerSourceDigest = true ? "
|
|
18309
|
+
var compilerSourceDigest = true ? "3c645ce8a5442f60dce1735912506ad6fa5d09cb92da26cff3950c374b371e2b" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
18310
18310
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
18311
18311
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
18312
18312
|
hash.update(`swift-compile
|
|
@@ -22535,6 +22535,28 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
22535
22535
|
(0, import_node_fs27.rmSync)(linked, { force: true });
|
|
22536
22536
|
report("compiling and linking Swift modules");
|
|
22537
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
|
+
}
|
|
22538
22560
|
const frameworkInterface = (name3) => {
|
|
22539
22561
|
if (frameworkInterfaces.has(name3)) return frameworkInterfaces.get(name3);
|
|
22540
22562
|
const source = distribution ? import_node_path27.default.join(frameworkRoot, "modules", `${name3}-Swift.h`) : import_node_path27.default.join(
|
|
@@ -22562,10 +22584,12 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
22562
22584
|
))
|
|
22563
22585
|
declared.add(name4);
|
|
22564
22586
|
}
|
|
22587
|
+
for (const declaration of nativeDeclarations.get(name3) ?? [])
|
|
22588
|
+
declared.add(declaration);
|
|
22565
22589
|
const own = withoutSwiftDeclarations(
|
|
22566
22590
|
clangInterfaceHeader((0, import_node_fs27.readFileSync)(source, "utf8")),
|
|
22567
22591
|
declared,
|
|
22568
|
-
`#import <${name3}/${name3}.h>`
|
|
22592
|
+
nativeDeclarations.has(name3) ? `@import ${name3};` : `#import <${name3}/${name3}.h>`
|
|
22569
22593
|
);
|
|
22570
22594
|
const owners = sdkObjCDeclarationOwners(import_node_path27.default.dirname(import_node_path27.default.dirname(headers)));
|
|
22571
22595
|
const foreign = /* @__PURE__ */ new Map();
|
|
@@ -25459,7 +25483,7 @@ var import_node_fs33 = require("node:fs");
|
|
|
25459
25483
|
var import_node_path33 = require("node:path");
|
|
25460
25484
|
|
|
25461
25485
|
// src/swift-coverage/provenance.ts
|
|
25462
|
-
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, ".."));
|
|
25463
25487
|
|
|
25464
25488
|
// src/swift-coverage/xcode-asset-symbols.ts
|
|
25465
25489
|
var import_node_fs32 = require("node:fs");
|
|
@@ -29622,6 +29646,17 @@ function loadProject(xcodeproj) {
|
|
|
29622
29646
|
loaded.set(projectFile, { digest, project: result });
|
|
29623
29647
|
return result;
|
|
29624
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
|
+
}
|
|
29625
29660
|
function defaultConfiguration(project) {
|
|
29626
29661
|
const configList = project.object(str(project.project.buildConfigurationList));
|
|
29627
29662
|
const names = list(configList?.buildConfigurations).flatMap(
|
|
@@ -29688,15 +29723,8 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
|
|
|
29688
29723
|
resolving.delete(marker);
|
|
29689
29724
|
return value;
|
|
29690
29725
|
};
|
|
29691
|
-
let developerDir;
|
|
29692
29726
|
const derivedSettings = {
|
|
29693
|
-
DEVELOPER_DIR: () => options.environment?.DEVELOPER_DIR ?? process.env.DEVELOPER_DIR ?? (
|
|
29694
|
-
// runner-toolchain-platform: darwin
|
|
29695
|
-
(0, import_node_child_process23.execFileSync)("xcode-select", ["-p"], {
|
|
29696
|
-
encoding: "utf8",
|
|
29697
|
-
stdio: ["ignore", "pipe", "pipe"]
|
|
29698
|
-
}).trim()
|
|
29699
|
-
) : ""),
|
|
29727
|
+
DEVELOPER_DIR: () => options.environment?.DEVELOPER_DIR ?? process.env.DEVELOPER_DIR ?? selectedDeveloperDir(),
|
|
29700
29728
|
PRODUCT_NAME: () => get("TARGET_NAME"),
|
|
29701
29729
|
PRODUCT_MODULE_NAME: () => applyOperator(get("PRODUCT_NAME"), "c99extidentifier"),
|
|
29702
29730
|
EXECUTABLE_NAME: () => get("PRODUCT_NAME"),
|
|
@@ -30425,7 +30453,16 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
30425
30453
|
order.push(ref);
|
|
30426
30454
|
};
|
|
30427
30455
|
visit(app);
|
|
30428
|
-
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) => {
|
|
30429
30466
|
const phase = ref.project.object(phaseId);
|
|
30430
30467
|
if (phase?.isa !== "PBXHeadersBuildPhase") return [];
|
|
30431
30468
|
return list(phase.files).flatMap((id) => {
|
|
@@ -30442,6 +30479,23 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
30442
30479
|
];
|
|
30443
30480
|
});
|
|
30444
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
|
+
};
|
|
30445
30499
|
const productNames = /* @__PURE__ */ new Map();
|
|
30446
30500
|
const productName = (ref) => {
|
|
30447
30501
|
const key2 = `${ref.project.xcodeproj}\0${ref.id}`;
|
|
@@ -30674,16 +30728,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
30674
30728
|
const qualified2 = `${product}/${name4}`;
|
|
30675
30729
|
if (!ownHeaders.has(qualified2)) ownHeaders.set(qualified2, file);
|
|
30676
30730
|
}
|
|
30677
|
-
const nonFrameworkHeaders =
|
|
30678
|
-
for (const other of projectTargets(ref.project)) {
|
|
30679
|
-
if (FRAMEWORK_PRODUCTS.has(str(other.target.productType) ?? "")) continue;
|
|
30680
|
-
const otherProduct = productName(other);
|
|
30681
|
-
for (const { file, visibility } of headerPhase(other)) {
|
|
30682
|
-
if (visibility === "Project") continue;
|
|
30683
|
-
const key2 = `${otherProduct}/${import_node_path39.default.basename(file)}`;
|
|
30684
|
-
if (!nonFrameworkHeaders.has(key2)) nonFrameworkHeaders.set(key2, file);
|
|
30685
|
-
}
|
|
30686
|
-
}
|
|
30731
|
+
const nonFrameworkHeaders = nonFrameworkHeadersOf(ref.project);
|
|
30687
30732
|
const wrapper = import_node_path39.default.join(settings2("BUILT_PRODUCTS_DIR"), `${product}.framework`);
|
|
30688
30733
|
const moduleMap = (settings2("DEFINES_MODULE") === "YES" || !framework) && settings2("MODULEMAP_FILE") ? absolute(settings2("MODULEMAP_FILE")) : null;
|
|
30689
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;
|
|
@@ -32492,7 +32537,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
32492
32537
|
return hash.digest("hex");
|
|
32493
32538
|
}
|
|
32494
32539
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
32495
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
32540
|
+
var STANDIN_SOURCE_DIGEST = true ? "8a800a5151c426f07ff690c34df9a6d538c005318051ef52635fc568c44736f6" : standinSourceDigest();
|
|
32496
32541
|
|
|
32497
32542
|
// src/swift-standins.ts
|
|
32498
32543
|
var import_node_child_process31 = require("node:child_process");
|
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;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import type { GestureArbitrationGraph, GestureSeamNativeRecognitionEvent } from './gesture-seam-protocol.d.ts';
|
|
2
|
+
type RecognitionEvent = GestureSeamNativeRecognitionEvent;
|
|
3
|
+
type Emit = (event: RecognitionEvent) => void;
|
|
4
|
+
type CancelNative = (event: RecognitionEvent, visible: boolean) => void;
|
|
5
|
+
export type GestureRecognizerLocation = {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
hitSlop: readonly number[] | null;
|
|
11
|
+
};
|
|
12
|
+
export type GestureRecognizerEvent = {
|
|
13
|
+
recognizer: number;
|
|
14
|
+
state: number;
|
|
15
|
+
oldState: number;
|
|
16
|
+
pointers: number;
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
absoluteX: number;
|
|
20
|
+
absoluteY: number;
|
|
21
|
+
duration: number;
|
|
22
|
+
};
|
|
23
|
+
export interface GestureRecognizerHost {
|
|
24
|
+
locate(tag: number, x: number, y: number): GestureRecognizerLocation | null;
|
|
25
|
+
publish(event: GestureRecognizerEvent): void;
|
|
26
|
+
emit: Emit;
|
|
27
|
+
cancelNative: CancelNative;
|
|
28
|
+
}
|
|
29
|
+
export type GestureRecognizerPointer = {
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
|
+
touches: ReadonlyArray<{
|
|
33
|
+
pageX: number;
|
|
34
|
+
pageY: number;
|
|
35
|
+
identifier: number;
|
|
36
|
+
}>;
|
|
37
|
+
};
|
|
38
|
+
declare const RECOGNIZER_PHASE: {
|
|
39
|
+
readonly down: 0;
|
|
40
|
+
readonly move: 1;
|
|
41
|
+
readonly up: 2;
|
|
42
|
+
};
|
|
43
|
+
interface GestureArbitrationNative {
|
|
44
|
+
readonly HEAPU8: Uint8Array;
|
|
45
|
+
peachArbitration?: (kind: number, id: number, tag: number, oldState: number, visible: number) => void;
|
|
46
|
+
peachGestureLocate?: (index: number, tag: number, x: number, y: number) => number;
|
|
47
|
+
peachGestureEvent?: (index: number) => void;
|
|
48
|
+
_peach_arbitration_buffer(size: number): number;
|
|
49
|
+
_peach_gesture_locate_buffer(): number;
|
|
50
|
+
_peach_gesture_event_buffer(): number;
|
|
51
|
+
_peach_gesture_add(index: number, tag: number, length: number): void;
|
|
52
|
+
_peach_gesture_update(index: number, tag: number, length: number): void;
|
|
53
|
+
_peach_gesture_remove(index: number, tag: number): void;
|
|
54
|
+
_peach_gesture_set_android(index: number, android: number): void;
|
|
55
|
+
_peach_gesture_feed(index: number, tag: number, phase: number, time: number, length: number): void;
|
|
56
|
+
_peach_gesture_advance(index: number, now: number): void;
|
|
57
|
+
_peach_gesture_next_deadline(index: number): number;
|
|
58
|
+
_peach_gesture_state(index: number, tag: number): number;
|
|
59
|
+
_peach_gesture_activations(index: number, tag: number): number;
|
|
60
|
+
_peach_gesture_set_state(index: number, tag: number, state: number, manualPointers: number): void;
|
|
61
|
+
_peach_gesture_cancel(index: number, tag: number): void;
|
|
62
|
+
_peach_gesture_reset_for_pointer(index: number, tag: number): void;
|
|
63
|
+
_peach_arbitration_create(): number;
|
|
64
|
+
_peach_arbitration_upsert(index: number, length: number): number;
|
|
65
|
+
_peach_arbitration_drop(index: number, tag: number): void;
|
|
66
|
+
_peach_arbitration_clear(index: number): void;
|
|
67
|
+
_peach_arbitration_clear_owner(index: number, peerEpoch: number, surface: number, generation: number): void;
|
|
68
|
+
_peach_arbitration_handle(index: number, id: number, tag: number, state: number, oldState: number): void;
|
|
69
|
+
_peach_arbitration_should_emit_update(index: number, tag: number): number;
|
|
70
|
+
_peach_arbitration_set_tracked_pointers(index: number, tag: number, count: number): void;
|
|
71
|
+
_peach_arbitration_tracked_pointers(index: number, tag: number): number;
|
|
72
|
+
_peach_arbitration_configure(index: number, tag: number, flags: number): void;
|
|
73
|
+
_peach_arbitration_allows_simultaneous(index: number, a: number, b: number): number;
|
|
74
|
+
_peach_arbitration_has_blocking_relation(index: number, a: number, b: number): number;
|
|
75
|
+
_peach_arbitration_set_coexists(index: number, tag: number, value: number): void;
|
|
76
|
+
_peach_arbitration_sizes(index: number): void;
|
|
77
|
+
_peach_arbitration_live_events(index: number): number;
|
|
78
|
+
}
|
|
79
|
+
export declare function isGestureArbitrationGraph(value: unknown): value is GestureArbitrationGraph;
|
|
80
|
+
export declare class GestureArbitrator {
|
|
81
|
+
private readonly events;
|
|
82
|
+
private nextEventId;
|
|
83
|
+
private depth;
|
|
84
|
+
private bound;
|
|
85
|
+
recognizerHost: GestureRecognizerHost | null;
|
|
86
|
+
private timer;
|
|
87
|
+
private timerAt;
|
|
88
|
+
get native(): GestureArbitrationNative;
|
|
89
|
+
private get index();
|
|
90
|
+
private core;
|
|
91
|
+
event(id: number): RecognitionEvent | undefined;
|
|
92
|
+
private call;
|
|
93
|
+
private armTimer;
|
|
94
|
+
private recognize;
|
|
95
|
+
setRecognizerHost(host: GestureRecognizerHost | null): void;
|
|
96
|
+
addRecognizer(tag: number, config: readonly number[]): void;
|
|
97
|
+
updateRecognizer(tag: number, config: readonly number[]): void;
|
|
98
|
+
removeRecognizer(tag: number): void;
|
|
99
|
+
feedRecognizer(tag: number, phase: keyof typeof RECOGNIZER_PHASE, event: GestureRecognizerPointer, time: number, android: boolean): void;
|
|
100
|
+
setRecognizerState(tag: number, state: number, manualPointers: number | null, android: boolean): void;
|
|
101
|
+
cancelRecognizer(tag: number): void;
|
|
102
|
+
resetRecognizerForPointer(tag: number): void;
|
|
103
|
+
recognizerState(tag: number): number;
|
|
104
|
+
recognizerActivations(tag: number): number;
|
|
105
|
+
private releaseEvents;
|
|
106
|
+
upsert(graph: GestureArbitrationGraph, cancelNative: CancelNative, emit: Emit): boolean;
|
|
107
|
+
drop(handlerTag: number, cancelNative: CancelNative, emit: Emit): void;
|
|
108
|
+
handle(event: RecognitionEvent, emit: Emit, cancelNative: CancelNative): void;
|
|
109
|
+
getDebugSizes(): {
|
|
110
|
+
graphs: number;
|
|
111
|
+
latestGenerations: number;
|
|
112
|
+
tags: number;
|
|
113
|
+
};
|
|
114
|
+
clear(): void;
|
|
115
|
+
clearOwner(peerEpoch: number, surfaceId: string, generation: number): void;
|
|
116
|
+
shouldEmitUpdate(handlerTag: number): boolean;
|
|
117
|
+
setTrackedPointers(handlerTag: number, pointerIds: readonly number[]): void;
|
|
118
|
+
getTrackedPointers(handlerTag: number): readonly number[];
|
|
119
|
+
configureHandler(handlerTag: number, handlerName: string, config: Record<string, unknown>): void;
|
|
120
|
+
allowsSimultaneous(a: number, b: number): boolean;
|
|
121
|
+
hasBlockingRelation(a: number, b: number): boolean;
|
|
122
|
+
setCoexistsWithNativeViews(handlerTag: number, value: boolean): void;
|
|
123
|
+
}
|
|
124
|
+
export {};
|
|
@@ -261,7 +261,7 @@ export declare function zoomFollowRelease(follow: ZoomFollow, gesture: ZoomFinge
|
|
|
261
261
|
x: number;
|
|
262
262
|
y: number;
|
|
263
263
|
}): ZoomRelease;
|
|
264
|
-
export declare const ZOOM_RELEASE_COMMIT_MS =
|
|
264
|
+
export declare const ZOOM_RELEASE_COMMIT_MS = 1130;
|
|
265
265
|
export declare const ZOOM_PULL_COMMIT_SCALE_SPRING: {
|
|
266
266
|
omega: number;
|
|
267
267
|
zeta: number;
|
|
@@ -270,7 +270,7 @@ export declare const ZOOM_EDGE_COMMIT_SCALE_SPRING: {
|
|
|
270
270
|
omega: number;
|
|
271
271
|
zeta: number;
|
|
272
272
|
};
|
|
273
|
-
export declare const ZOOM_RELEASE_CANCEL_MS =
|
|
273
|
+
export declare const ZOOM_RELEASE_CANCEL_MS = 610;
|
|
274
274
|
export declare const ZOOM_RELEASE_PRESENTATION_LEAD_MS: number;
|
|
275
275
|
export declare function zoomReleasePose(release: ZoomRelease, source: ZoomSourceRect, target: ZoomTargetRect, elapsedMs: number): ZoomInteraction;
|
|
276
276
|
export declare function zoomReleasePoseState<T>(math: TransitionScalarMath<T>, release: ZoomRelease, source: ZoomSourceRect, target: ZoomTargetRect, elapsedMs: T): ZoomInteraction<T>;
|
package/package.json
CHANGED
package/runtime-companion.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":1,"sha256":"
|
|
1
|
+
{"abi":1,"sha256":"60900a3af6e6213c855e6682baa0ebdb6a6865510e4e3a51a24d4c584b3fdec2","file":"node/cli-60900a3af6e6213c855e6682baa0ebdb6a6865510e4e3a51a24d4c584b3fdec2.cjs"}
|
package/src/bundle-channel.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { brotliCompressSync, constants as zlibConstants } from 'node:zlib'
|
|
|
7
7
|
import { isLoopbackHost } from './backend-origin'
|
|
8
8
|
import { resolveConnectionInput } from './dev-bundle-resolution'
|
|
9
9
|
import { cacheDir } from './home-paths'
|
|
10
|
-
import { getCliRuntime } from './cli-runtime'
|
|
10
|
+
import { getCliRuntime, loadCliRuntime } from './cli-runtime'
|
|
11
11
|
import { readInstalledNativePackageVersionsAsync } from './installed-package-versions'
|
|
12
12
|
import { buildNativeBundles, insertNativeBundleFooters } from './native-bundles'
|
|
13
13
|
import { nodeHttpFetch } from './node-http-fetch'
|
|
@@ -174,8 +174,9 @@ async function prepareChannel({
|
|
|
174
174
|
[...files.keys()].map((path) => path.slice(0, path.lastIndexOf('/'))),
|
|
175
175
|
)
|
|
176
176
|
let locations = 0
|
|
177
|
-
const { stripRolldownBundleInventoryFooter, attachRolldownBundleInventory } =
|
|
178
|
-
|
|
177
|
+
const { stripRolldownBundleInventoryFooter, attachRolldownBundleInventory } = (
|
|
178
|
+
await loadCliRuntime()
|
|
179
|
+
).rolldown_bundle_inventory
|
|
179
180
|
const detached = detachPackageVersionsFooter(
|
|
180
181
|
stripRolldownBundleInventoryFooter(
|
|
181
182
|
new TextDecoder('utf-8', { fatal: true }).decode(bundle),
|
package/src/cli-runtime.ts
CHANGED
|
@@ -66,6 +66,12 @@ export async function ensureCliCompanion(root: string): Promise<void> {
|
|
|
66
66
|
|
|
67
67
|
let loaded: { root: string; runtime: typeof CliRuntime } | undefined
|
|
68
68
|
|
|
69
|
+
// build plugins run on machines whose installed runtime may predate this package
|
|
70
|
+
export async function loadCliRuntime(): Promise<typeof CliRuntime> {
|
|
71
|
+
if (!loaded) await ensureCliCompanion(peachRuntimeRoot())
|
|
72
|
+
return getCliRuntime()
|
|
73
|
+
}
|
|
74
|
+
|
|
69
75
|
// select once per runtime, verify before evaluation, and retain the real functions
|
|
70
76
|
// so host serializers receive their implementation rather than a forwarding closure.
|
|
71
77
|
export function getCliRuntime(): typeof CliRuntime {
|
|
@@ -43,6 +43,20 @@ export function resolveExpoConfigModule(appDir: string) {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
function hasExpoConfig(projectRoot: string) {
|
|
46
|
+
const packagePath = path.join(projectRoot, 'package.json')
|
|
47
|
+
const manifest: unknown = fs.existsSync(packagePath)
|
|
48
|
+
? JSON.parse(fs.readFileSync(packagePath, 'utf8'))
|
|
49
|
+
: null
|
|
50
|
+
if (isRecord(manifest)) {
|
|
51
|
+
const dependencies = [manifest.dependencies, manifest.devDependencies].filter(
|
|
52
|
+
isRecord,
|
|
53
|
+
)
|
|
54
|
+
if (
|
|
55
|
+
dependencies.some((deps) => 'one' in deps) &&
|
|
56
|
+
!dependencies.some((deps) => 'expo' in deps)
|
|
57
|
+
)
|
|
58
|
+
return false
|
|
59
|
+
}
|
|
46
60
|
const appJsonPath = path.join(projectRoot, 'app.json')
|
|
47
61
|
const appJson: unknown = fs.existsSync(appJsonPath)
|
|
48
62
|
? JSON.parse(fs.readFileSync(appJsonPath, 'utf8'))
|
package/src/swift-compile.ts
CHANGED
|
@@ -7548,6 +7548,29 @@ function compileSwiftProjectOnce(
|
|
|
7548
7548
|
string,
|
|
7549
7549
|
{ file: string; header: string; module: boolean } | null
|
|
7550
7550
|
>()
|
|
7551
|
+
const nativeDeclarations = new Map<string, Set<string>>()
|
|
7552
|
+
for (const [file, contents] of Object.entries(input.files)) {
|
|
7553
|
+
if (!file.endsWith('.modulemap')) continue
|
|
7554
|
+
const name = moduleMapName(contents)
|
|
7555
|
+
const umbrella = /\bumbrella\s+header\s+"([^"]+)"/.exec(contents)?.[1]
|
|
7556
|
+
if (!name || !umbrella) continue
|
|
7557
|
+
const header =
|
|
7558
|
+
input.files[path.posix.join(path.posix.dirname(file), umbrella)]
|
|
7559
|
+
if (header === undefined) continue
|
|
7560
|
+
const included = new Set(
|
|
7561
|
+
[
|
|
7562
|
+
...header.matchAll(/^\s*#\s*(?:import|include)\s*[<"]([^">]+)[">]/gm),
|
|
7563
|
+
].map((match) => path.posix.basename(match[1]!)),
|
|
7564
|
+
)
|
|
7565
|
+
const declarations = nativeDeclarations.get(name) ?? new Set<string>()
|
|
7566
|
+
for (const declaration of swiftInterfaceDeclarations(header))
|
|
7567
|
+
declarations.add(declaration)
|
|
7568
|
+
for (const [candidate, source] of Object.entries(input.files))
|
|
7569
|
+
if (included.has(path.posix.basename(candidate)))
|
|
7570
|
+
for (const declaration of swiftInterfaceDeclarations(source))
|
|
7571
|
+
declarations.add(declaration)
|
|
7572
|
+
nativeDeclarations.set(name, declarations)
|
|
7573
|
+
}
|
|
7551
7574
|
const frameworkInterface = (
|
|
7552
7575
|
name: string,
|
|
7553
7576
|
): { file: string; header: string; module: boolean } | null => {
|
|
@@ -7578,10 +7601,14 @@ function compileSwiftProjectOnce(
|
|
|
7578
7601
|
readFileSync(path.join(headers, file), 'utf8'),
|
|
7579
7602
|
))
|
|
7580
7603
|
declared.add(name)
|
|
7604
|
+
for (const declaration of nativeDeclarations.get(name) ?? [])
|
|
7605
|
+
declared.add(declaration)
|
|
7581
7606
|
const own = withoutSwiftDeclarations(
|
|
7582
7607
|
clangInterfaceHeader(readFileSync(source, 'utf8')),
|
|
7583
7608
|
declared,
|
|
7584
|
-
|
|
7609
|
+
nativeDeclarations.has(name)
|
|
7610
|
+
? `@import ${name};`
|
|
7611
|
+
: `#import <${name}/${name}.h>`,
|
|
7585
7612
|
)
|
|
7586
7613
|
// the swift module also implements classes another framework's headers
|
|
7587
7614
|
// already define; clang takes those from the owning framework
|
package/src/vite-plugin-one.ts
CHANGED
|
@@ -21,7 +21,7 @@ import { WebSocket, WebSocketServer } from 'ws'
|
|
|
21
21
|
import { resolveAppProject } from '../cli/app-project'
|
|
22
22
|
import { loadRNXAppConfig } from './app-config'
|
|
23
23
|
import { DEFAULT_SOOTSIM_BRIDGE_PORT } from './bridge-constants'
|
|
24
|
-
import {
|
|
24
|
+
import { loadCliRuntime } from './cli-runtime'
|
|
25
25
|
import { matchConfigModule, PEACH_WORKSPACE_MODULE_MARKER } from './config'
|
|
26
26
|
import {
|
|
27
27
|
launchRnxDesktop,
|
|
@@ -164,8 +164,8 @@ export function peachPlugin(options: PeachPluginOptions = {}): Plugin {
|
|
|
164
164
|
async generateBundle(_options, bundle) {
|
|
165
165
|
if (options.enabled === false || dev) return
|
|
166
166
|
const versions = readInstalledNativePackageVersions(root)
|
|
167
|
-
const { attachRolldownBundleInventory } =
|
|
168
|
-
|
|
167
|
+
const { attachRolldownBundleInventory } = (await loadCliRuntime())
|
|
168
|
+
.rolldown_bundle_inventory
|
|
169
169
|
for (const output of Object.values(bundle)) {
|
|
170
170
|
if (output.type !== 'chunk') continue
|
|
171
171
|
output.code = await attachRolldownBundleInventory(
|