peachsim 0.1.1954 → 0.1.1955
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +21 -5
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +2 -2
- 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 +36 -5
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +1 -1
- 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 +17 -2
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +37 -6
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- 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 +1 -1
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/animated.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/nativeAnimMirrorContract.d.ts +21 -0
- package/package.json +1 -1
- package/scripts/dev-server-scanner.ts +27 -2
- package/src/turbo-codegen-intake.ts +16 -2
- package/src/turbo-source.ts +12 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1955 | (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;
|
|
@@ -1447,13 +1447,28 @@ function resolveProcessCwd(pid) {
|
|
|
1447
1447
|
kickCwdFlush();
|
|
1448
1448
|
});
|
|
1449
1449
|
}
|
|
1450
|
+
function nativeBundleRoot(projectCwd) {
|
|
1451
|
+
const ios = projectCwd && (0, import_node_path3.join)(projectCwd, "ios");
|
|
1452
|
+
if (!ios || !(0, import_node_fs2.existsSync)(ios)) return "index";
|
|
1453
|
+
const delegates = [
|
|
1454
|
+
ios,
|
|
1455
|
+
...(0, import_node_fs2.readdirSync)(ios, { withFileTypes: true }).filter((entry) => entry.isDirectory() && entry.name !== "Pods").map((entry) => (0, import_node_path3.join)(ios, entry.name))
|
|
1456
|
+
].flatMap(
|
|
1457
|
+
(directory) => ["AppDelegate.swift", "AppDelegate.mm", "AppDelegate.m"].map((name) => (0, import_node_path3.join)(directory, name)).filter((file) => (0, import_node_fs2.existsSync)(file))
|
|
1458
|
+
);
|
|
1459
|
+
for (const file of delegates) {
|
|
1460
|
+
const root = /BundleRoot:\s*@?"([^"]+)"/.exec((0, import_node_fs2.readFileSync)(file, "utf8"))?.[1];
|
|
1461
|
+
if (root) return root;
|
|
1462
|
+
}
|
|
1463
|
+
return "index";
|
|
1464
|
+
}
|
|
1450
1465
|
function makeResult(hostname, port, framework, owner) {
|
|
1451
1466
|
return {
|
|
1452
1467
|
port,
|
|
1453
1468
|
framework,
|
|
1454
1469
|
bundleUrl: withRuntimeConfig(
|
|
1455
1470
|
port,
|
|
1456
|
-
`${buildLoopbackProbeBaseUrl("http:", hostname, port)}
|
|
1471
|
+
`${buildLoopbackProbeBaseUrl("http:", hostname, port)}/${nativeBundleRoot(owner.cwd)}.bundle?platform=ios&dev=true&hot=true&minify=false`,
|
|
1457
1472
|
owner.cwd
|
|
1458
1473
|
),
|
|
1459
1474
|
hmrUrl: `${buildLoopbackProbeBaseUrl("ws:", hostname, port)}/hot`,
|
package/dist-lib/sdk.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1955 | (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/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1955 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1955 | (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;
|
|
@@ -64161,7 +64161,7 @@ var init_expo_native_prebuilt = __esm({
|
|
|
64161
64161
|
init_swift_native_pin();
|
|
64162
64162
|
init_xcode_project();
|
|
64163
64163
|
EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
64164
|
-
EXPO_NATIVE_COMPILER_DIGEST = true ? "
|
|
64164
|
+
EXPO_NATIVE_COMPILER_DIGEST = true ? "1a922f660684f5811fa4afd5f027f538ae938274fb2ac67fdcef9be22941c31a" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
64165
64165
|
IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
64166
64166
|
expoNativeEntryUrl = (key2, file) => `${NATIVE_PREBUILT_ORIGIN}/${nativeEntryPrefix("expo", EXPO_NATIVE_ENTRY_NAME, key2)}/${file}`;
|
|
64167
64167
|
isStringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
@@ -76263,9 +76263,11 @@ function installedFabricSources(reactNativeRoot, { legacyBridge = false, bridgeO
|
|
|
76263
76263
|
withFileTypes: true
|
|
76264
76264
|
})
|
|
76265
76265
|
).filter(
|
|
76266
|
-
(entry) => entry.isFile() && (RENDERER_PODS.has(import_node_path80.default.basename(entry.name, ".podspec")) || RENDERER_PODS_VERSIONED.has(import_node_path80.default.basename(entry.name, ".podspec")) || bridgeOnly && LEGACY_BRIDGE_PODS.has(import_node_path80.default.basename(entry.name, ".podspec"))
|
|
76266
|
+
(entry) => entry.isFile() && (RENDERER_PODS.has(import_node_path80.default.basename(entry.name, ".podspec")) || RENDERER_PODS_VERSIONED.has(import_node_path80.default.basename(entry.name, ".podspec")) || bridgeOnly && (LEGACY_BRIDGE_PODS.has(import_node_path80.default.basename(entry.name, ".podspec")) || LEGACY_BRIDGE_PODS_VERSIONED.has(
|
|
76267
|
+
import_node_path80.default.basename(entry.name, ".podspec")
|
|
76268
|
+
))) && entry.name.endsWith(".podspec")
|
|
76267
76269
|
).map((entry) => import_node_path80.default.join(entry.parentPath, entry.name)).concat(import_node_path80.default.join(root, "React-Core.podspec")).filter(
|
|
76268
|
-
(file) => !bridgeOnly || LEGACY_BRIDGE_PODS.has(import_node_path80.default.basename(file, ".podspec"))
|
|
76270
|
+
(file) => !bridgeOnly || LEGACY_BRIDGE_PODS.has(import_node_path80.default.basename(file, ".podspec")) || LEGACY_BRIDGE_PODS_VERSIONED.has(import_node_path80.default.basename(file, ".podspec"))
|
|
76269
76271
|
).sort();
|
|
76270
76272
|
const required = specs.filter(
|
|
76271
76273
|
(file) => (bridgeOnly ? LEGACY_BRIDGE_PODS : RENDERER_PODS).has(
|
|
@@ -76359,7 +76361,7 @@ async function runInstalledTurboCodegen(appRoot, outDir, signal) {
|
|
|
76359
76361
|
files: hashTree(generatedRoot)
|
|
76360
76362
|
};
|
|
76361
76363
|
}
|
|
76362
|
-
var import_node_child_process44, import_node_crypto44, import_node_fs82, import_node_module10, import_node_path80, import_node_util13, run7, RENDERER_PODS, RENDERER_PODS_VERSIONED, COMPILED_SOURCE, LEGACY_BRIDGE_DEV_SUPPORT, LEGACY_BRIDGE_PODS;
|
|
76364
|
+
var import_node_child_process44, import_node_crypto44, import_node_fs82, import_node_module10, import_node_path80, import_node_util13, run7, RENDERER_PODS, RENDERER_PODS_VERSIONED, COMPILED_SOURCE, LEGACY_BRIDGE_DEV_SUPPORT, LEGACY_BRIDGE_PODS, LEGACY_BRIDGE_PODS_VERSIONED;
|
|
76363
76365
|
var init_turbo_codegen_intake = __esm({
|
|
76364
76366
|
"src/turbo-codegen-intake.ts"() {
|
|
76365
76367
|
"use strict";
|
|
@@ -76428,6 +76430,12 @@ var init_turbo_codegen_intake = __esm({
|
|
|
76428
76430
|
"React-jsiexecutor",
|
|
76429
76431
|
"Yoga"
|
|
76430
76432
|
]);
|
|
76433
|
+
LEGACY_BRIDGE_PODS_VERSIONED = /* @__PURE__ */ new Set([
|
|
76434
|
+
// split out of React-jsinspector in react-native 0.81
|
|
76435
|
+
"React-jsinspectorcdp",
|
|
76436
|
+
// missing in 0.78, present in 0.81
|
|
76437
|
+
"React-oscompat"
|
|
76438
|
+
]);
|
|
76431
76439
|
}
|
|
76432
76440
|
});
|
|
76433
76441
|
|
|
@@ -77924,6 +77932,9 @@ ${declared.map((symbol2) => `extern "C" void ${symbol2}();
|
|
|
77924
77932
|
throw new Error(
|
|
77925
77933
|
`the legacy bridge needs the installed hermes-engine headers in ${hermesHeaders}`
|
|
77926
77934
|
);
|
|
77935
|
+
const rootApi = /\bmakeHermesRootAPI\(\)/.test(
|
|
77936
|
+
import_node_fs83.default.readFileSync(import_node_path81.default.join(hermesHeaders, "hermes/hermes.h"), "utf8")
|
|
77937
|
+
);
|
|
77927
77938
|
const runtimeUnit = `${core}/PeachHermesRuntime.cpp`;
|
|
77928
77939
|
add2(
|
|
77929
77940
|
runtimeUnit,
|
|
@@ -77940,6 +77951,11 @@ ${declared.map((symbol2) => `extern "C" void ${symbol2}();
|
|
|
77940
77951
|
"std::unique_ptr<HermesRuntime> makeHermesRuntime(const ::hermes::vm::RuntimeConfig &) {",
|
|
77941
77952
|
' throw std::logic_error("no native Hermes runtime in Peach: this app started the legacy bridge");',
|
|
77942
77953
|
"}",
|
|
77954
|
+
...rootApi ? [
|
|
77955
|
+
"jsi::ICast *makeHermesRootAPI() {",
|
|
77956
|
+
' throw std::logic_error("no native Hermes runtime in Peach: this app started the legacy bridge");',
|
|
77957
|
+
"}"
|
|
77958
|
+
] : [],
|
|
77943
77959
|
"} // namespace facebook::hermes",
|
|
77944
77960
|
""
|
|
77945
77961
|
].join("\n")
|
|
@@ -84622,13 +84638,28 @@ function resolveProcessCwd(pid) {
|
|
|
84622
84638
|
kickCwdFlush();
|
|
84623
84639
|
});
|
|
84624
84640
|
}
|
|
84641
|
+
function nativeBundleRoot(projectCwd) {
|
|
84642
|
+
const ios = projectCwd && (0, import_node_path98.join)(projectCwd, "ios");
|
|
84643
|
+
if (!ios || !(0, import_node_fs97.existsSync)(ios)) return "index";
|
|
84644
|
+
const delegates = [
|
|
84645
|
+
ios,
|
|
84646
|
+
...(0, import_node_fs97.readdirSync)(ios, { withFileTypes: true }).filter((entry) => entry.isDirectory() && entry.name !== "Pods").map((entry) => (0, import_node_path98.join)(ios, entry.name))
|
|
84647
|
+
].flatMap(
|
|
84648
|
+
(directory2) => ["AppDelegate.swift", "AppDelegate.mm", "AppDelegate.m"].map((name3) => (0, import_node_path98.join)(directory2, name3)).filter((file) => (0, import_node_fs97.existsSync)(file))
|
|
84649
|
+
);
|
|
84650
|
+
for (const file of delegates) {
|
|
84651
|
+
const root = /BundleRoot:\s*@?"([^"]+)"/.exec((0, import_node_fs97.readFileSync)(file, "utf8"))?.[1];
|
|
84652
|
+
if (root) return root;
|
|
84653
|
+
}
|
|
84654
|
+
return "index";
|
|
84655
|
+
}
|
|
84625
84656
|
function makeResult(hostname, port, framework, owner) {
|
|
84626
84657
|
return {
|
|
84627
84658
|
port,
|
|
84628
84659
|
framework,
|
|
84629
84660
|
bundleUrl: withRuntimeConfig(
|
|
84630
84661
|
port,
|
|
84631
|
-
`${buildLoopbackProbeBaseUrl("http:", hostname, port)}
|
|
84662
|
+
`${buildLoopbackProbeBaseUrl("http:", hostname, port)}/${nativeBundleRoot(owner.cwd)}.bundle?platform=ios&dev=true&hot=true&minify=false`,
|
|
84632
84663
|
owner.cwd
|
|
84633
84664
|
),
|
|
84634
84665
|
hmrUrl: `${buildLoopbackProbeBaseUrl("ws:", hostname, port)}/hot`,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1955 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1955 | (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.1955 | (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.1955 | (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.1955 | (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.1955 | (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/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1955 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1955 | (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;
|
|
@@ -68,6 +68,7 @@ export declare class AnimatedValue {
|
|
|
68
68
|
_detachEngineAnimation(animation: Animation): void;
|
|
69
69
|
stopAnimation(): void;
|
|
70
70
|
private _setValue;
|
|
71
|
+
_setHeldValue(value: number): void;
|
|
71
72
|
setNativeDrivenValue(value: number): void;
|
|
72
73
|
getValue(): number;
|
|
73
74
|
setModelValue(value: number | null): void;
|
|
@@ -81,6 +81,20 @@ export type NativeAnimMirrorEnvelope = {
|
|
|
81
81
|
registrationId: number;
|
|
82
82
|
sourceSurfaceId: string;
|
|
83
83
|
sourceGeneration: number;
|
|
84
|
+
} | {
|
|
85
|
+
type: 'animatedNativeValueHold';
|
|
86
|
+
descriptor: AnimatedNativeValueHoldDescriptor;
|
|
87
|
+
} | {
|
|
88
|
+
type: 'animatedNativeValueSet';
|
|
89
|
+
holdId: number;
|
|
90
|
+
sourceSurfaceId: string;
|
|
91
|
+
sourceGeneration: number;
|
|
92
|
+
value: number;
|
|
93
|
+
} | {
|
|
94
|
+
type: 'animatedNativeValueRelease';
|
|
95
|
+
holdId: number;
|
|
96
|
+
sourceSurfaceId: string;
|
|
97
|
+
sourceGeneration: number;
|
|
84
98
|
} | {
|
|
85
99
|
type: 'lottieIntent';
|
|
86
100
|
intent: LottieIntent;
|
|
@@ -148,6 +162,13 @@ export interface AnimatedNativeEventDescriptor {
|
|
|
148
162
|
nativeEventPath: string[];
|
|
149
163
|
bindings: AnimatedNativeDriveDescriptor['bindings'];
|
|
150
164
|
}
|
|
165
|
+
export interface AnimatedNativeValueHoldDescriptor {
|
|
166
|
+
holdId: number;
|
|
167
|
+
sourceSurfaceId: string;
|
|
168
|
+
sourceGeneration: number;
|
|
169
|
+
value: number;
|
|
170
|
+
bindings: AnimatedNativeDriveDescriptor['bindings'];
|
|
171
|
+
}
|
|
151
172
|
export type AnimGraphSpring = NativeAnimationGraphSpring;
|
|
152
173
|
export type AnimGraphNode = NativeAnimationGraphNode;
|
|
153
174
|
export type AnimGraphBinding = AnimatedNativeDriveBinding;
|
package/package.json
CHANGED
|
@@ -6,7 +6,9 @@ import http from 'http'
|
|
|
6
6
|
import net from 'net'
|
|
7
7
|
import {
|
|
8
8
|
closeSync,
|
|
9
|
+
existsSync,
|
|
9
10
|
openSync,
|
|
11
|
+
readdirSync,
|
|
10
12
|
readFileSync,
|
|
11
13
|
realpathSync,
|
|
12
14
|
renameSync,
|
|
@@ -857,6 +859,29 @@ export function resolveProcessCwd(pid: number): Promise<string | null> {
|
|
|
857
859
|
|
|
858
860
|
// ── per-port probe orchestration ────────────────────────────────────────────
|
|
859
861
|
|
|
862
|
+
// a packager without a manifest serves the entry the app's own delegate asks
|
|
863
|
+
// for: RCTBundleURLProvider requests `<bundle root>.bundle`, and the react
|
|
864
|
+
// native template's root is `index`
|
|
865
|
+
function nativeBundleRoot(projectCwd: string | undefined): string {
|
|
866
|
+
const ios = projectCwd && join(projectCwd, 'ios')
|
|
867
|
+
if (!ios || !existsSync(ios)) return 'index'
|
|
868
|
+
const delegates = [
|
|
869
|
+
ios,
|
|
870
|
+
...readdirSync(ios, { withFileTypes: true })
|
|
871
|
+
.filter((entry) => entry.isDirectory() && entry.name !== 'Pods')
|
|
872
|
+
.map((entry) => join(ios, entry.name)),
|
|
873
|
+
].flatMap((directory) =>
|
|
874
|
+
['AppDelegate.swift', 'AppDelegate.mm', 'AppDelegate.m']
|
|
875
|
+
.map((name) => join(directory, name))
|
|
876
|
+
.filter((file) => existsSync(file)),
|
|
877
|
+
)
|
|
878
|
+
for (const file of delegates) {
|
|
879
|
+
const root = /BundleRoot:\s*@?"([^"]+)"/.exec(readFileSync(file, 'utf8'))?.[1]
|
|
880
|
+
if (root) return root
|
|
881
|
+
}
|
|
882
|
+
return 'index'
|
|
883
|
+
}
|
|
884
|
+
|
|
860
885
|
function makeResult(
|
|
861
886
|
hostname: string,
|
|
862
887
|
port: number,
|
|
@@ -868,7 +893,7 @@ function makeResult(
|
|
|
868
893
|
framework,
|
|
869
894
|
bundleUrl: withRuntimeConfig(
|
|
870
895
|
port,
|
|
871
|
-
`${buildLoopbackProbeBaseUrl('http:', hostname, port)}
|
|
896
|
+
`${buildLoopbackProbeBaseUrl('http:', hostname, port)}/${nativeBundleRoot(owner.cwd)}.bundle?platform=ios&dev=true&hot=true&minify=false`,
|
|
872
897
|
owner.cwd,
|
|
873
898
|
),
|
|
874
899
|
hmrUrl: `${buildLoopbackProbeBaseUrl('ws:', hostname, port)}/hot`,
|
|
@@ -1401,7 +1426,7 @@ export async function probePort(
|
|
|
1401
1426
|
// never fire the HEAD against them.
|
|
1402
1427
|
if (statusRes && statusRes.body.includes('packager-status:running')) {
|
|
1403
1428
|
knownNonPatched.add(port)
|
|
1404
|
-
// `makeResult` builds the
|
|
1429
|
+
// `makeResult` builds the entry the app's native delegate names. that is
|
|
1405
1430
|
// the RIGHT answer for a vanilla Metro or plain Expo packager, which is a
|
|
1406
1431
|
// server that ANSWERED `/` and had no manifest to give. it is a guess when
|
|
1407
1432
|
// the manifest simply never answered: this server may well be a One app
|
|
@@ -112,6 +112,14 @@ const LEGACY_BRIDGE_PODS = new Set([
|
|
|
112
112
|
'Yoga',
|
|
113
113
|
])
|
|
114
114
|
|
|
115
|
+
// legacy bridge pods added between releases; compile those installed
|
|
116
|
+
const LEGACY_BRIDGE_PODS_VERSIONED = new Set([
|
|
117
|
+
// split out of React-jsinspector in react-native 0.81
|
|
118
|
+
'React-jsinspectorcdp',
|
|
119
|
+
// missing in 0.78, present in 0.81
|
|
120
|
+
'React-oscompat',
|
|
121
|
+
])
|
|
122
|
+
|
|
115
123
|
/** the pod source membership of the installed renderer. `legacyBridge` adds
|
|
116
124
|
* the DevSupport units RCTBridge.mm reaches; `bridgeOnly` keeps just the pods
|
|
117
125
|
* a legacy RCTBridge needs, for an app that mounts no renderer. */
|
|
@@ -133,13 +141,19 @@ export function installedFabricSources(
|
|
|
133
141
|
(RENDERER_PODS.has(path.basename(entry.name, '.podspec')) ||
|
|
134
142
|
RENDERER_PODS_VERSIONED.has(path.basename(entry.name, '.podspec')) ||
|
|
135
143
|
(bridgeOnly &&
|
|
136
|
-
LEGACY_BRIDGE_PODS.has(path.basename(entry.name, '.podspec'))
|
|
144
|
+
(LEGACY_BRIDGE_PODS.has(path.basename(entry.name, '.podspec')) ||
|
|
145
|
+
LEGACY_BRIDGE_PODS_VERSIONED.has(
|
|
146
|
+
path.basename(entry.name, '.podspec'),
|
|
147
|
+
)))) &&
|
|
137
148
|
entry.name.endsWith('.podspec'),
|
|
138
149
|
)
|
|
139
150
|
.map((entry) => path.join(entry.parentPath, entry.name))
|
|
140
151
|
.concat(path.join(root, 'React-Core.podspec'))
|
|
141
152
|
.filter(
|
|
142
|
-
(file) =>
|
|
153
|
+
(file) =>
|
|
154
|
+
!bridgeOnly ||
|
|
155
|
+
LEGACY_BRIDGE_PODS.has(path.basename(file, '.podspec')) ||
|
|
156
|
+
LEGACY_BRIDGE_PODS_VERSIONED.has(path.basename(file, '.podspec')),
|
|
143
157
|
)
|
|
144
158
|
.sort()
|
|
145
159
|
const required = specs.filter((file) =>
|
package/src/turbo-source.ts
CHANGED
|
@@ -2167,6 +2167,11 @@ export async function collectTurboSources(options: {
|
|
|
2167
2167
|
throw new Error(
|
|
2168
2168
|
`the legacy bridge needs the installed hermes-engine headers in ${hermesHeaders}`,
|
|
2169
2169
|
)
|
|
2170
|
+
// hermes-engine 0.81 and later also export the root api the hermes
|
|
2171
|
+
// inspector delegates reach
|
|
2172
|
+
const rootApi = /\bmakeHermesRootAPI\(\)/.test(
|
|
2173
|
+
fs.readFileSync(path.join(hermesHeaders, 'hermes/hermes.h'), 'utf8'),
|
|
2174
|
+
)
|
|
2170
2175
|
const runtimeUnit = `${core}/PeachHermesRuntime.cpp`
|
|
2171
2176
|
add(
|
|
2172
2177
|
runtimeUnit,
|
|
@@ -2183,6 +2188,13 @@ export async function collectTurboSources(options: {
|
|
|
2183
2188
|
'std::unique_ptr<HermesRuntime> makeHermesRuntime(const ::hermes::vm::RuntimeConfig &) {',
|
|
2184
2189
|
' throw std::logic_error("no native Hermes runtime in Peach: this app started the legacy bridge");',
|
|
2185
2190
|
'}',
|
|
2191
|
+
...(rootApi
|
|
2192
|
+
? [
|
|
2193
|
+
'jsi::ICast *makeHermesRootAPI() {',
|
|
2194
|
+
' throw std::logic_error("no native Hermes runtime in Peach: this app started the legacy bridge");',
|
|
2195
|
+
'}',
|
|
2196
|
+
]
|
|
2197
|
+
: []),
|
|
2186
2198
|
'} // namespace facebook::hermes',
|
|
2187
2199
|
'',
|
|
2188
2200
|
].join('\n'),
|