peachsim 0.1.1900 → 0.1.1902
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 +128 -58
- 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 +49 -33
- 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 +135 -66
- 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 +31 -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 +29 -28
- package/dist-lib/native-app-identity-project.cjs +21 -20
- package/dist-lib/native-app-identity-project.mjs +21 -20
- 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 +152 -82
- package/dist-lib/swift-compile.cjs +25 -9
- package/dist-lib/swift-compile.mjs +25 -9
- 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 +3 -3
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +35 -19
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/package.json +1 -1
- package/src/swift-compile.ts +20 -1
- package/src/swift-guest-compile.ts +7 -1
- package/src/swift-guest-link.ts +3 -2
- package/src/swift-toolchain.ts +2 -1
- package/src/turbo-codegen-intake.ts +3 -0
- package/src/turbo-compile.ts +1 -0
- package/src/turbo-source.ts +62 -2
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1902 | (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;
|
|
@@ -39,7 +39,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
39
39
|
var define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
|
|
40
40
|
var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
|
|
41
41
|
"<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
|
|
42
|
-
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "e66452b430a7dc749e0db64e21a2f3cd969ba48fa1ae31cd5de5c366c3783bf7", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "
|
|
42
|
+
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "e66452b430a7dc749e0db64e21a2f3cd969ba48fa1ae31cd5de5c366c3783bf7", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "450ee02b48bcdbbacbb4e94cd161308f1dac1bdb540ed5033c2433f717f738d2", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "0669e4cca53dc8db00059018d7f93ff9139915fc0f4fb0c82a938febb7862dfe", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -21308,7 +21308,7 @@ var init_applyReviver = __esm({
|
|
|
21308
21308
|
// ../../node_modules/yaml/browser/dist/nodes/toJS.js
|
|
21309
21309
|
function toJS(value, arg, ctx) {
|
|
21310
21310
|
if (Array.isArray(value))
|
|
21311
|
-
return value.map((
|
|
21311
|
+
return value.map((v6, i) => toJS(v6, String(i), ctx));
|
|
21312
21312
|
if (value && typeof value.toJSON === "function") {
|
|
21313
21313
|
if (!ctx || !hasAnchor(value))
|
|
21314
21314
|
return value.toJSON(arg, ctx);
|
|
@@ -21597,18 +21597,18 @@ var init_createNode = __esm({
|
|
|
21597
21597
|
|
|
21598
21598
|
// ../../node_modules/yaml/browser/dist/nodes/Collection.js
|
|
21599
21599
|
function collectionFromPath(schema4, path124, value) {
|
|
21600
|
-
let
|
|
21600
|
+
let v6 = value;
|
|
21601
21601
|
for (let i = path124.length - 1; i >= 0; --i) {
|
|
21602
21602
|
const k = path124[i];
|
|
21603
21603
|
if (typeof k === "number" && Number.isInteger(k) && k >= 0) {
|
|
21604
21604
|
const a = [];
|
|
21605
|
-
a[k] =
|
|
21606
|
-
|
|
21605
|
+
a[k] = v6;
|
|
21606
|
+
v6 = a;
|
|
21607
21607
|
} else {
|
|
21608
|
-
|
|
21608
|
+
v6 = /* @__PURE__ */ new Map([[k, v6]]);
|
|
21609
21609
|
}
|
|
21610
21610
|
}
|
|
21611
|
-
return createNode(
|
|
21611
|
+
return createNode(v6, void 0, {
|
|
21612
21612
|
aliasDuplicateObjects: false,
|
|
21613
21613
|
keepUndefined: false,
|
|
21614
21614
|
onAnchor: () => {
|
|
@@ -22556,8 +22556,8 @@ var init_addPairToJSMap = __esm({
|
|
|
22556
22556
|
// ../../node_modules/yaml/browser/dist/nodes/Pair.js
|
|
22557
22557
|
function createPair(key2, value, ctx) {
|
|
22558
22558
|
const k = createNode(key2, void 0, ctx);
|
|
22559
|
-
const
|
|
22560
|
-
return new Pair(k,
|
|
22559
|
+
const v6 = createNode(value, void 0, ctx);
|
|
22560
|
+
return new Pair(k, v6);
|
|
22561
22561
|
}
|
|
22562
22562
|
var Pair;
|
|
22563
22563
|
var init_Pair = __esm({
|
|
@@ -24215,7 +24215,7 @@ var init_Document = __esm({
|
|
|
24215
24215
|
value = replacer.call({ "": value }, "", value);
|
|
24216
24216
|
_replacer = replacer;
|
|
24217
24217
|
} else if (Array.isArray(replacer)) {
|
|
24218
|
-
const keyToStr = (
|
|
24218
|
+
const keyToStr = (v6) => typeof v6 === "number" || v6 instanceof String || v6 instanceof Number;
|
|
24219
24219
|
const asStr = replacer.filter(keyToStr).map(String);
|
|
24220
24220
|
if (asStr.length > 0)
|
|
24221
24221
|
replacer = replacer.concat(asStr);
|
|
@@ -24251,8 +24251,8 @@ var init_Document = __esm({
|
|
|
24251
24251
|
*/
|
|
24252
24252
|
createPair(key2, value, options = {}) {
|
|
24253
24253
|
const k = this.createNode(key2, null, options);
|
|
24254
|
-
const
|
|
24255
|
-
return new Pair(k,
|
|
24254
|
+
const v6 = this.createNode(value, null, options);
|
|
24255
|
+
return new Pair(k, v6);
|
|
24256
24256
|
}
|
|
24257
24257
|
/**
|
|
24258
24258
|
* Removes a value from the document.
|
|
@@ -29071,16 +29071,16 @@ function runtimeTarballCacheName(product, version2) {
|
|
|
29071
29071
|
return import_node_path4.default.posix.basename(product.tarballPath(version2));
|
|
29072
29072
|
}
|
|
29073
29073
|
function compareSemver(a, b) {
|
|
29074
|
-
const
|
|
29075
|
-
const hyphen =
|
|
29076
|
-
const core = hyphen >= 0 ?
|
|
29077
|
-
const pre = hyphen >= 0 ?
|
|
29074
|
+
const parse13 = (v6) => {
|
|
29075
|
+
const hyphen = v6.indexOf("-");
|
|
29076
|
+
const core = hyphen >= 0 ? v6.slice(0, hyphen) : v6;
|
|
29077
|
+
const pre = hyphen >= 0 ? v6.slice(hyphen + 1) : "";
|
|
29078
29078
|
const parts = core.split(".").map((n) => Number.parseInt(n, 10));
|
|
29079
|
-
if (parts.some((n) => !Number.isFinite(n))) return [[Number.POSITIVE_INFINITY],
|
|
29079
|
+
if (parts.some((n) => !Number.isFinite(n))) return [[Number.POSITIVE_INFINITY], v6];
|
|
29080
29080
|
return [parts, pre];
|
|
29081
29081
|
};
|
|
29082
|
-
const [an, ap] =
|
|
29083
|
-
const [bn, bp] =
|
|
29082
|
+
const [an, ap] = parse13(a);
|
|
29083
|
+
const [bn, bp] = parse13(b);
|
|
29084
29084
|
for (let i = 0; i < Math.max(an.length, bn.length); i++) {
|
|
29085
29085
|
const av = an[i] ?? 0;
|
|
29086
29086
|
const bv = bn[i] ?? 0;
|
|
@@ -32256,7 +32256,7 @@ var require_parse = __commonJS({
|
|
|
32256
32256
|
var token;
|
|
32257
32257
|
var key2;
|
|
32258
32258
|
var root;
|
|
32259
|
-
module2.exports = function
|
|
32259
|
+
module2.exports = function parse13(text6, reviver) {
|
|
32260
32260
|
source = String(text6);
|
|
32261
32261
|
parseState = "start";
|
|
32262
32262
|
stack = [];
|
|
@@ -33111,12 +33111,12 @@ var require_stringify = __commonJS({
|
|
|
33111
33111
|
replacerFunc = replacer;
|
|
33112
33112
|
} else if (Array.isArray(replacer)) {
|
|
33113
33113
|
propertyList = [];
|
|
33114
|
-
for (const
|
|
33114
|
+
for (const v6 of replacer) {
|
|
33115
33115
|
let item;
|
|
33116
|
-
if (typeof
|
|
33117
|
-
item =
|
|
33118
|
-
} else if (typeof
|
|
33119
|
-
item = String(
|
|
33116
|
+
if (typeof v6 === "string") {
|
|
33117
|
+
item = v6;
|
|
33118
|
+
} else if (typeof v6 === "number" || v6 instanceof String || v6 instanceof Number) {
|
|
33119
|
+
item = String(v6);
|
|
33120
33120
|
}
|
|
33121
33121
|
if (item !== void 0 && propertyList.indexOf(item) < 0) {
|
|
33122
33122
|
propertyList.push(item);
|
|
@@ -33314,10 +33314,10 @@ var require_stringify = __commonJS({
|
|
|
33314
33314
|
var require_lib = __commonJS({
|
|
33315
33315
|
"../../node_modules/json5/lib/index.js"(exports2, module2) {
|
|
33316
33316
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
33317
|
-
var
|
|
33317
|
+
var parse13 = require_parse();
|
|
33318
33318
|
var stringify4 = require_stringify();
|
|
33319
33319
|
var JSON53 = {
|
|
33320
|
-
parse:
|
|
33320
|
+
parse: parse13,
|
|
33321
33321
|
stringify: stringify4
|
|
33322
33322
|
};
|
|
33323
33323
|
module2.exports = JSON53;
|
|
@@ -35605,8 +35605,8 @@ function nativeAppIdentityFromIos(files2, parseInfoPlist, iosTarget, resourceUri
|
|
|
35605
35605
|
if (typeof configId === "string") {
|
|
35606
35606
|
const configObj = objects[configId];
|
|
35607
35607
|
if (isRecord(configObj) && configObj.name === "Release" && isRecord(configObj.buildSettings)) {
|
|
35608
|
-
for (const [k,
|
|
35609
|
-
if (typeof
|
|
35608
|
+
for (const [k, v6] of Object.entries(configObj.buildSettings)) {
|
|
35609
|
+
if (typeof v6 === "string") settings[k] = v6;
|
|
35610
35610
|
}
|
|
35611
35611
|
}
|
|
35612
35612
|
}
|
|
@@ -35621,8 +35621,8 @@ function nativeAppIdentityFromIos(files2, parseInfoPlist, iosTarget, resourceUri
|
|
|
35621
35621
|
if (typeof configId === "string") {
|
|
35622
35622
|
const configObj = objects[configId];
|
|
35623
35623
|
if (isRecord(configObj) && configObj.name === "Release" && isRecord(configObj.buildSettings)) {
|
|
35624
|
-
for (const [k,
|
|
35625
|
-
if (typeof
|
|
35624
|
+
for (const [k, v6] of Object.entries(configObj.buildSettings)) {
|
|
35625
|
+
if (typeof v6 === "string") settings[k] = v6;
|
|
35626
35626
|
}
|
|
35627
35627
|
}
|
|
35628
35628
|
}
|
|
@@ -41738,7 +41738,7 @@ function swiftToolchainBin(release) {
|
|
|
41738
41738
|
return import_node_path26.default.join(peachHome(), "swift", "toolchains", release, "usr/bin");
|
|
41739
41739
|
return (process.env.PATH ?? "").split(import_node_path26.default.delimiter).find((dir) => dir && import_node_fs31.default.existsSync(import_node_path26.default.join(dir, "swift"))) ?? image;
|
|
41740
41740
|
}
|
|
41741
|
-
function writeSwiftAutolinkLinker(directory2, toolchainBin) {
|
|
41741
|
+
function writeSwiftAutolinkLinker(directory2, toolchainBin, omitLibraries = []) {
|
|
41742
41742
|
const linker = import_node_path26.default.join(directory2, SWIFT_AUTOLINK_LINKER);
|
|
41743
41743
|
const script = `#!/bin/sh
|
|
41744
41744
|
set -eu
|
|
@@ -41746,7 +41746,7 @@ for arg in "$@"; do
|
|
|
41746
41746
|
case $arg in
|
|
41747
41747
|
@*)
|
|
41748
41748
|
rsp=\${arg#@}
|
|
41749
|
-
awk 'BEGIN { RS = " "; ORS = " " } /^"-l/ { if (seen[$0]++) next } { print }' "$rsp" > "$rsp.dedup"
|
|
41749
|
+
awk 'BEGIN { RS = " "; ORS = " " } /^"-l/ { if (seen[$0]++) next }${omitLibraries.map((name3) => ` $0 == "\\"-l${name3}\\"" { next }`).join("")} { print }' "$rsp" > "$rsp.dedup"
|
|
41750
41750
|
mv "$rsp.dedup" "$rsp"
|
|
41751
41751
|
if [ "\${PEACH_DEFER_WASM_LINK:-}" = "1" ] && grep -q '"--start-lib"' "$rsp"; then
|
|
41752
41752
|
cp "$rsp" ${JSON.stringify(import_node_path26.default.join(directory2, ".peach-link.rsp"))}
|
|
@@ -48813,7 +48813,7 @@ function emitGuestImageProjection(images) {
|
|
|
48813
48813
|
lines.push("const struct peach_guest_image __peach_guest_images[] = {");
|
|
48814
48814
|
for (const [i, image] of images.entries()) {
|
|
48815
48815
|
const uuid = image.uuid.match(/../g).map((byte) => `0x${byte}`).join(", ");
|
|
48816
|
-
const version2 = (
|
|
48816
|
+
const version2 = (v6) => (v6.major * 65536 + v6.minor * 256 + v6.patch).toString();
|
|
48817
48817
|
lines.push(
|
|
48818
48818
|
` {${cString(image.installName)}, ${image.fileType === "executable" ? 2 : 6}u, {${uuid}}, ${image.buildVersion.platform}u, ${version2(image.buildVersion.minimum)}u, ${version2(image.buildVersion.sdk)}u, ${image.regions.length}u, ${image.regions.length ? `regions_${i}` : "0"}},`
|
|
48819
48819
|
);
|
|
@@ -50559,8 +50559,8 @@ function verifyGuestSymbolScopes(options) {
|
|
|
50559
50559
|
providers: /* @__PURE__ */ new Map(),
|
|
50560
50560
|
physicalModule: false
|
|
50561
50561
|
};
|
|
50562
|
-
if (object6 === "<internal>"
|
|
50563
|
-
record3.physicalModule = true;
|
|
50562
|
+
if (object6 === "<internal>") {
|
|
50563
|
+
if (kind === "definition of") record3.physicalModule = true;
|
|
50564
50564
|
} else {
|
|
50565
50565
|
const image = options.owners.get(object6);
|
|
50566
50566
|
if (image === void 0)
|
|
@@ -51535,9 +51535,14 @@ async function compileGuestLink(options) {
|
|
|
51535
51535
|
systemProviders,
|
|
51536
51536
|
hostImports: scope2.hostImports
|
|
51537
51537
|
});
|
|
51538
|
+
const wrapped = new Set(
|
|
51539
|
+
prepared.args.flatMap(
|
|
51540
|
+
(arg) => arg.startsWith("--wrap=") ? [arg.slice(7), `__wrap_${arg.slice(7)}`] : []
|
|
51541
|
+
)
|
|
51542
|
+
);
|
|
51538
51543
|
return {
|
|
51539
51544
|
...plan,
|
|
51540
|
-
symbols: scope2.definitions,
|
|
51545
|
+
symbols: scope2.definitions.filter((symbol2) => !wrapped.has(symbol2)),
|
|
51541
51546
|
directBindings: verified2.directBindings
|
|
51542
51547
|
};
|
|
51543
51548
|
}
|
|
@@ -56569,7 +56574,17 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
56569
56574
|
report("framework revision changed; rebuilding the app link");
|
|
56570
56575
|
const nativeToolset = needsNativeToolset(input, prebuilt);
|
|
56571
56576
|
const preparation = writeSwiftProject(layout2, input, frameworkRoot, prebuilt);
|
|
56572
|
-
|
|
56577
|
+
const productFile = import_node_path46.default.join(frameworkRoot, SWIFT_FRAMEWORK_PRODUCT_FILE);
|
|
56578
|
+
writeSwiftAutolinkLinker(
|
|
56579
|
+
root,
|
|
56580
|
+
options.toolchainBin,
|
|
56581
|
+
(0, import_node_fs49.existsSync)(productFile) ? [
|
|
56582
|
+
v5.parse(
|
|
56583
|
+
swiftFrameworkProductSchema,
|
|
56584
|
+
JSON.parse((0, import_node_fs49.readFileSync)(productFile, "utf8"))
|
|
56585
|
+
).product.name
|
|
56586
|
+
] : []
|
|
56587
|
+
);
|
|
56573
56588
|
const projectProcess = options.project ? prepareSwiftProjectProcess(root, options.project) : void 0;
|
|
56574
56589
|
const appOptions = projectProcess ? {
|
|
56575
56590
|
...buildOptions,
|
|
@@ -56795,7 +56810,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
56795
56810
|
options.signal
|
|
56796
56811
|
);
|
|
56797
56812
|
}
|
|
56798
|
-
var import_node_child_process30, import_node_crypto23, import_node_fs49, import_node_os12, import_node_path46, WASM_TRIPLE, SWIFTPM_PROGRESS, SWIFTPM_NOISE, admittedCores, SWIFT_BUILD_JOBS, BUILD_JOBS, SWIFT_BUILDER_TRANSPORT_MARGIN_MS, SWIFT_BUILDER_DEFAULT_COMPILE_MS, clangInterfaceHeader, swiftInterfaceDeclarations, linkedModuleDigests, SYSTEM_MODULE_LIBRARIES, SYSTEM_MODULE_IMPORT, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, SWIFT_IMPORT, kleeneNot, kleeneAnd, kleeneOr, sdkPaths, availableModules, sdkOverlayFrameworks, ONE_PRODUCT, SPRITEKIT_PRODUCT, importsSpriteKit, FOUNDATION_IMPLICIT_MODULES, FOUNDATION_IMPLICIT_FLAGS, ONE_IMPLICIT_FLAGS, executableLinkFlags, darwinRecordsRegion, REACTOR_FLAG, MULTI_MANIFEST_VERSION, SWIFT_HEADER_PRODUCTS_TARGET, compilerSourceDigest, nativeCxxCompilerFlags, cFlagArray, cxxFlagArray, DIRECTIVE, OS_IOS, DELEGATE_CLASS, REUSABLE_INIT, REUSABLE_VIEW_BASES, CLASS_BASE, FRAME_INIT, FOUNDATION_NETWORKING_TYPES, FOUNDATION_OVERLAY_TYPES, FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_GEOMETRY_TYPES, CORE_FOUNDATION_GRAPHICS_TYPES, CORE_FOUNDATION_HANDLE_IMPORTS, emptyMacroEnvironment, cPredefineTable, cPredefineCache, HIDDEN_UNITS, LIBXML_REFERENCE, LIBXML_SOURCE, ROOT_LOCKS, host, rootLocks, SHARED_ARTIFACT_BUDGET_BYTES, SHARED_ARTIFACT_GRACE_MS, RETIRED_PREFIX, retainedArtifacts, FRAMEWORK_LINK_TARGET, SWIFT_LINK_STAMP, SWIFT_FRAMEWORK_SLOTS, SWIFT_FRAMEWORK_SLOT_KEY;
|
|
56813
|
+
var import_node_child_process30, import_node_crypto23, import_node_fs49, import_node_os12, import_node_path46, v5, WASM_TRIPLE, SWIFTPM_PROGRESS, SWIFTPM_NOISE, admittedCores, SWIFT_BUILD_JOBS, BUILD_JOBS, SWIFT_BUILDER_TRANSPORT_MARGIN_MS, SWIFT_BUILDER_DEFAULT_COMPILE_MS, clangInterfaceHeader, swiftInterfaceDeclarations, linkedModuleDigests, SYSTEM_MODULE_LIBRARIES, SYSTEM_MODULE_IMPORT, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, SWIFT_IMPORT, kleeneNot, kleeneAnd, kleeneOr, sdkPaths, availableModules, sdkOverlayFrameworks, ONE_PRODUCT, SPRITEKIT_PRODUCT, importsSpriteKit, FOUNDATION_IMPLICIT_MODULES, FOUNDATION_IMPLICIT_FLAGS, ONE_IMPLICIT_FLAGS, executableLinkFlags, darwinRecordsRegion, REACTOR_FLAG, MULTI_MANIFEST_VERSION, SWIFT_HEADER_PRODUCTS_TARGET, compilerSourceDigest, nativeCxxCompilerFlags, cFlagArray, cxxFlagArray, DIRECTIVE, OS_IOS, DELEGATE_CLASS, REUSABLE_INIT, REUSABLE_VIEW_BASES, CLASS_BASE, FRAME_INIT, FOUNDATION_NETWORKING_TYPES, FOUNDATION_OVERLAY_TYPES, FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_GEOMETRY_TYPES, CORE_FOUNDATION_GRAPHICS_TYPES, CORE_FOUNDATION_HANDLE_IMPORTS, emptyMacroEnvironment, cPredefineTable, cPredefineCache, HIDDEN_UNITS, LIBXML_REFERENCE, LIBXML_SOURCE, ROOT_LOCKS, host, rootLocks, SHARED_ARTIFACT_BUDGET_BYTES, SHARED_ARTIFACT_GRACE_MS, RETIRED_PREFIX, retainedArtifacts, FRAMEWORK_LINK_TARGET, SWIFT_LINK_STAMP, SWIFT_FRAMEWORK_SLOTS, SWIFT_FRAMEWORK_SLOT_KEY;
|
|
56799
56814
|
var init_swift_compile = __esm({
|
|
56800
56815
|
"src/swift-compile.ts"() {
|
|
56801
56816
|
"use strict";
|
|
@@ -56805,6 +56820,7 @@ var init_swift_compile = __esm({
|
|
|
56805
56820
|
import_node_fs49 = require("node:fs");
|
|
56806
56821
|
import_node_os12 = __toESM(require("node:os"), 1);
|
|
56807
56822
|
import_node_path46 = __toESM(require("node:path"), 1);
|
|
56823
|
+
v5 = __toESM(require("valibot"), 1);
|
|
56808
56824
|
init_admitted_mac_build();
|
|
56809
56825
|
init_swift_c_predefines();
|
|
56810
56826
|
init_process_group();
|
|
@@ -56829,6 +56845,7 @@ var init_swift_compile = __esm({
|
|
|
56829
56845
|
init_swift_uniform_type_constants();
|
|
56830
56846
|
init_swift_wasm_prune();
|
|
56831
56847
|
init_swiftContract();
|
|
56848
|
+
init_swiftRuntimeProductContract();
|
|
56832
56849
|
init_wasm_optimize();
|
|
56833
56850
|
init_write_build_file();
|
|
56834
56851
|
init_xcode_header_search();
|
|
@@ -56966,7 +56983,7 @@ var init_swift_compile = __esm({
|
|
|
56966
56983
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
56967
56984
|
MULTI_MANIFEST_VERSION = 66;
|
|
56968
56985
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
56969
|
-
compilerSourceDigest = true ? "
|
|
56986
|
+
compilerSourceDigest = true ? "8768dadacf2e909cf808df3a31fe261832d51fb29d48f2b45bd4df5c117c6f69" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
56970
56987
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
56971
56988
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
56972
56989
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -63241,7 +63258,7 @@ var init_swift_standin_digest = __esm({
|
|
|
63241
63258
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
63242
63259
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
63243
63260
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
63244
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
63261
|
+
STANDIN_SOURCE_DIGEST = true ? "ae26db314b6d3703c6fc172d019e3cb0fe28a018e5f614bb804fae720ab78ff8" : standinSourceDigest();
|
|
63245
63262
|
}
|
|
63246
63263
|
});
|
|
63247
63264
|
|
|
@@ -63356,14 +63373,14 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
63356
63373
|
const querySchemes = dictionary2.LSApplicationQueriesSchemes;
|
|
63357
63374
|
const urlQuerySchemes = Array.isArray(querySchemes) ? querySchemes : [];
|
|
63358
63375
|
const intentIds = dictionary2.OneAppIntentIdentifiers;
|
|
63359
|
-
const appIntentIdentifiers = Array.isArray(intentIds) && intentIds.every((
|
|
63376
|
+
const appIntentIdentifiers = Array.isArray(intentIds) && intentIds.every((v6) => typeof v6 === "string") ? intentIds : [];
|
|
63360
63377
|
const backgroundIds = dictionary2.BGTaskSchedulerPermittedIdentifiers;
|
|
63361
|
-
const backgroundTaskIdentifiers = Array.isArray(backgroundIds) && backgroundIds.every((
|
|
63378
|
+
const backgroundTaskIdentifiers = Array.isArray(backgroundIds) && backgroundIds.every((v6) => typeof v6 === "string") ? backgroundIds : [];
|
|
63362
63379
|
const declaredModes = dictionary2.UIBackgroundModes;
|
|
63363
|
-
const backgroundModes = Array.isArray(declaredModes) && declaredModes.every((
|
|
63364
|
-
const supportedInterfaceOrientations = Array.isArray(dictionary2.UISupportedInterfaceOrientations) && dictionary2.UISupportedInterfaceOrientations.every((
|
|
63380
|
+
const backgroundModes = Array.isArray(declaredModes) && declaredModes.every((v6) => typeof v6 === "string") ? declaredModes : [];
|
|
63381
|
+
const supportedInterfaceOrientations = Array.isArray(dictionary2.UISupportedInterfaceOrientations) && dictionary2.UISupportedInterfaceOrientations.every((v6) => typeof v6 === "string") ? dictionary2.UISupportedInterfaceOrientations : [];
|
|
63365
63382
|
const ipadSupportedInterfaceOrientations = Array.isArray(dictionary2["UISupportedInterfaceOrientations~ipad"]) && dictionary2["UISupportedInterfaceOrientations~ipad"].every(
|
|
63366
|
-
(
|
|
63383
|
+
(v6) => typeof v6 === "string"
|
|
63367
63384
|
) ? dictionary2["UISupportedInterfaceOrientations~ipad"] : [];
|
|
63368
63385
|
const defaultScreenOrientationMask = nonEmptyString2(
|
|
63369
63386
|
dictionary2.EXDefaultScreenOrientationMask
|
|
@@ -63971,7 +63988,7 @@ var init_expo_native_prebuilt = __esm({
|
|
|
63971
63988
|
init_swift_native_pin();
|
|
63972
63989
|
init_xcode_project();
|
|
63973
63990
|
EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
63974
|
-
EXPO_NATIVE_COMPILER_DIGEST = true ? "
|
|
63991
|
+
EXPO_NATIVE_COMPILER_DIGEST = true ? "29a14998cfeca34c65cb911c55de6c6ef5be82e64eaba75effc6a290999cc322" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
63975
63992
|
IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
63976
63993
|
expoNativeEntryUrl = (key2, file) => `${NATIVE_PREBUILT_ORIGIN}/${nativeEntryPrefix("expo", EXPO_NATIVE_ENTRY_NAME, key2)}/${file}`;
|
|
63977
63994
|
isStringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
@@ -74399,7 +74416,7 @@ function tokenize2(src, file) {
|
|
|
74399
74416
|
const fail = (message) => {
|
|
74400
74417
|
throw new UnsupportedPodspec(`${file}:${line}: ${message}`);
|
|
74401
74418
|
};
|
|
74402
|
-
const push = (t,
|
|
74419
|
+
const push = (t, v6) => toks.push({ t, v: v6, line });
|
|
74403
74420
|
while (i < src.length) {
|
|
74404
74421
|
const c = src[i];
|
|
74405
74422
|
if (c === "\n") {
|
|
@@ -74525,7 +74542,7 @@ function tokenize2(src, file) {
|
|
|
74525
74542
|
}
|
|
74526
74543
|
return toks;
|
|
74527
74544
|
}
|
|
74528
|
-
function
|
|
74545
|
+
function parse7(src, file) {
|
|
74529
74546
|
const parser = new Parser2(tokenize2(src, file), file);
|
|
74530
74547
|
const body = parser.body();
|
|
74531
74548
|
if (parser.i < parser.toks.length) parser.fail(`unexpected ${parser.toks[parser.i].v}`);
|
|
@@ -74575,7 +74592,7 @@ function loadPodspec(file, appRoot = null) {
|
|
|
74575
74592
|
])
|
|
74576
74593
|
);
|
|
74577
74594
|
global.vars.set("__dir__", import_node_path78.default.dirname(import_node_path78.default.resolve(file)));
|
|
74578
|
-
evaluator.run(global,
|
|
74595
|
+
evaluator.run(global, parse7(import_node_fs81.default.readFileSync(file, "utf8"), file));
|
|
74579
74596
|
if (evaluator.roots.length !== 1)
|
|
74580
74597
|
throw new UnsupportedPodspec(
|
|
74581
74598
|
`${file}: expected one Pod::Spec, found ${evaluator.roots.length}`
|
|
@@ -74792,9 +74809,9 @@ var init_podspec_sources = __esm({
|
|
|
74792
74809
|
`${this.file}:${this.toks[this.i]?.line ?? "end"}: ${message}`
|
|
74793
74810
|
);
|
|
74794
74811
|
}
|
|
74795
|
-
at(
|
|
74812
|
+
at(v6) {
|
|
74796
74813
|
const tok = this.toks[this.i];
|
|
74797
|
-
return tok?.t === "id" && tok.v ===
|
|
74814
|
+
return tok?.t === "id" && tok.v === v6;
|
|
74798
74815
|
}
|
|
74799
74816
|
body() {
|
|
74800
74817
|
const out = [];
|
|
@@ -74989,12 +75006,12 @@ var init_podspec_sources = __esm({
|
|
|
74989
75006
|
while (this.depth > 0 && this.toks[this.i]?.t === "nl") this.i++;
|
|
74990
75007
|
return this.toks[this.i];
|
|
74991
75008
|
}
|
|
74992
|
-
isOp(
|
|
75009
|
+
isOp(v6) {
|
|
74993
75010
|
const tok = this.peek();
|
|
74994
|
-
return tok?.t === "op" && tok.v ===
|
|
75011
|
+
return tok?.t === "op" && tok.v === v6;
|
|
74995
75012
|
}
|
|
74996
|
-
eatOp(
|
|
74997
|
-
if (!this.isOp(
|
|
75013
|
+
eatOp(v6) {
|
|
75014
|
+
if (!this.isOp(v6)) return false;
|
|
74998
75015
|
this.i++;
|
|
74999
75016
|
return true;
|
|
75000
75017
|
}
|
|
@@ -75006,8 +75023,8 @@ var init_podspec_sources = __esm({
|
|
|
75006
75023
|
`${this.file}:${this.toks[this.i]?.line ?? "end"}: ${why}`
|
|
75007
75024
|
);
|
|
75008
75025
|
}
|
|
75009
|
-
expect(
|
|
75010
|
-
if (!this.eatOp(
|
|
75026
|
+
expect(v6) {
|
|
75027
|
+
if (!this.eatOp(v6)) this.fail(`expected ${v6}`);
|
|
75011
75028
|
}
|
|
75012
75029
|
done() {
|
|
75013
75030
|
this.skipNl();
|
|
@@ -75409,8 +75426,8 @@ var init_podspec_sources = __esm({
|
|
|
75409
75426
|
const l = this.ev(scope2, node.l);
|
|
75410
75427
|
const r = this.ev(scope2, node.r);
|
|
75411
75428
|
if (node.op === "==" || node.op === "!=") {
|
|
75412
|
-
if (Array.isArray(l) && Array.isArray(r) && [...l, ...r].every((
|
|
75413
|
-
return (l.length === r.length && l.every((
|
|
75429
|
+
if (Array.isArray(l) && Array.isArray(r) && [...l, ...r].every((v6) => typeof v6 === "string"))
|
|
75430
|
+
return (l.length === r.length && l.every((v6, index) => v6 === r[index])) === (node.op === "==");
|
|
75414
75431
|
if (typeof l === "object" && l !== null) this.fail("object comparison");
|
|
75415
75432
|
return l === r === (node.op === "==");
|
|
75416
75433
|
}
|
|
@@ -75512,7 +75529,7 @@ var init_podspec_sources = __esm({
|
|
|
75512
75529
|
return value;
|
|
75513
75530
|
if (Array.isArray(value)) return value.map(json);
|
|
75514
75531
|
if (typeof value !== "object") return new Opaque("a JSON number");
|
|
75515
|
-
return new Map(Object.entries(value).map(([k,
|
|
75532
|
+
return new Map(Object.entries(value).map(([k, v6]) => [k, json(v6)]));
|
|
75516
75533
|
};
|
|
75517
75534
|
let parsed;
|
|
75518
75535
|
try {
|
|
@@ -75592,7 +75609,7 @@ var init_podspec_sources = __esm({
|
|
|
75592
75609
|
if (name3 === "select" && block2)
|
|
75593
75610
|
return new Map(
|
|
75594
75611
|
[...recv.entries()].filter(
|
|
75595
|
-
([k,
|
|
75612
|
+
([k, v6]) => truthy(this.yieldBlock(scope2, block2, [k, v6]))
|
|
75596
75613
|
)
|
|
75597
75614
|
);
|
|
75598
75615
|
return void 0;
|
|
@@ -75750,7 +75767,7 @@ var init_podspec_sources = __esm({
|
|
|
75750
75767
|
const outer = this.current;
|
|
75751
75768
|
this.current = file;
|
|
75752
75769
|
try {
|
|
75753
|
-
this.exec(new Scope(this.constants),
|
|
75770
|
+
this.exec(new Scope(this.constants), parse7(import_node_fs81.default.readFileSync(file, "utf8"), file));
|
|
75754
75771
|
} finally {
|
|
75755
75772
|
this.current = outer;
|
|
75756
75773
|
}
|
|
@@ -76173,6 +76190,9 @@ var init_turbo_codegen_intake = __esm({
|
|
|
76173
76190
|
];
|
|
76174
76191
|
LEGACY_BRIDGE_PODS = /* @__PURE__ */ new Set([
|
|
76175
76192
|
"React-Core",
|
|
76193
|
+
"React-hermes",
|
|
76194
|
+
"React-jsi",
|
|
76195
|
+
"React-logger",
|
|
76176
76196
|
"React-cxxreact",
|
|
76177
76197
|
"React-jsinspector",
|
|
76178
76198
|
"React-jsinspectortracing",
|
|
@@ -77037,6 +77057,13 @@ async function collectTurboSources(options) {
|
|
|
77037
77057
|
);
|
|
77038
77058
|
return;
|
|
77039
77059
|
}
|
|
77060
|
+
if (hermesHeaders && include.startsWith("hermes/") && import_node_fs83.default.existsSync(import_node_path80.default.join(hermesHeaders, include))) {
|
|
77061
|
+
alias(
|
|
77062
|
+
`${core}/include/${include}`,
|
|
77063
|
+
original(TURBO_CORE_TARGET, "hermes-engine", hermesHeaders, include, false)
|
|
77064
|
+
);
|
|
77065
|
+
return;
|
|
77066
|
+
}
|
|
77040
77067
|
const nativeReactMaps = pod?.reactHeaderMaps ?? [];
|
|
77041
77068
|
const mappedReact = (quoted ? [
|
|
77042
77069
|
...nativeReactMaps.filter(({ flag }) => flag === "-iquote"),
|
|
@@ -77181,6 +77208,7 @@ async function collectTurboSources(options) {
|
|
|
77181
77208
|
let objc = false;
|
|
77182
77209
|
let fabric = false;
|
|
77183
77210
|
let legacyBridge = false;
|
|
77211
|
+
let hermesHeaders = null;
|
|
77184
77212
|
const objcClasses = /* @__PURE__ */ new Set();
|
|
77185
77213
|
const unregisteredObjcClasses = /* @__PURE__ */ new Set();
|
|
77186
77214
|
const deferredDepUnits = [];
|
|
@@ -77658,7 +77686,47 @@ ${declared.map((symbol2) => `extern "C" void ${symbol2}();
|
|
|
77658
77686
|
}
|
|
77659
77687
|
}
|
|
77660
77688
|
if (fabric || legacyBridge) {
|
|
77661
|
-
if (!fabric)
|
|
77689
|
+
if (!fabric) {
|
|
77690
|
+
result.targets[0].cxxDefines = [...defines, "USE_HERMES=1"];
|
|
77691
|
+
hermesHeaders = import_node_path80.default.join(
|
|
77692
|
+
options.projectRoot,
|
|
77693
|
+
"ios/Pods/hermes-engine/destroot/include"
|
|
77694
|
+
);
|
|
77695
|
+
if (!import_node_fs83.default.existsSync(import_node_path80.default.join(hermesHeaders, "hermes/hermes.h")))
|
|
77696
|
+
throw new Error(
|
|
77697
|
+
`the legacy bridge needs the installed hermes-engine headers in ${hermesHeaders}`
|
|
77698
|
+
);
|
|
77699
|
+
const runtimeUnit = `${core}/PeachHermesRuntime.cpp`;
|
|
77700
|
+
add2(
|
|
77701
|
+
runtimeUnit,
|
|
77702
|
+
[
|
|
77703
|
+
"#include <hermes/hermes.h>",
|
|
77704
|
+
"#include <stdexcept>",
|
|
77705
|
+
"",
|
|
77706
|
+
"namespace hermes::vm {",
|
|
77707
|
+
"CrashManager::~CrashManager() = default;",
|
|
77708
|
+
"NopCrashManager::~NopCrashManager() = default;",
|
|
77709
|
+
"} // namespace hermes::vm",
|
|
77710
|
+
"",
|
|
77711
|
+
"namespace facebook::hermes {",
|
|
77712
|
+
"std::unique_ptr<HermesRuntime> makeHermesRuntime(const ::hermes::vm::RuntimeConfig &) {",
|
|
77713
|
+
' throw std::logic_error("no native Hermes runtime in Peach: this app started the legacy bridge");',
|
|
77714
|
+
"}",
|
|
77715
|
+
"} // namespace facebook::hermes",
|
|
77716
|
+
""
|
|
77717
|
+
].join("\n")
|
|
77718
|
+
);
|
|
77719
|
+
scanText(
|
|
77720
|
+
{
|
|
77721
|
+
key: runtimeUnit,
|
|
77722
|
+
targetName: TURBO_CORE_TARGET,
|
|
77723
|
+
label: "peach",
|
|
77724
|
+
root: reactNative.root,
|
|
77725
|
+
relative: "PeachHermesRuntime.cpp"
|
|
77726
|
+
},
|
|
77727
|
+
result.files[runtimeUnit]
|
|
77728
|
+
);
|
|
77729
|
+
}
|
|
77662
77730
|
addPodSources(
|
|
77663
77731
|
installedFabricSources(reactNative.root, { legacyBridge, bridgeOnly: !fabric })
|
|
77664
77732
|
);
|
|
@@ -78314,6 +78382,7 @@ var init_turbo_source = __esm({
|
|
|
78314
78382
|
{ from: "Libraries/TypeSafety", to: "RCTTypeSafety" },
|
|
78315
78383
|
{ from: "Libraries/FBLazyVector/FBLazyVector", to: "FBLazyVector" },
|
|
78316
78384
|
{ from: "ReactApple/RCTSwiftUIWrapper", to: "RCTSwiftUIWrapper" },
|
|
78385
|
+
{ from: "ReactCommon/hermes/executor", to: "reacthermes" },
|
|
78317
78386
|
{
|
|
78318
78387
|
from: "ReactApple/Libraries/RCTFoundation/RCTDeprecation/Exported",
|
|
78319
78388
|
to: "RCTDeprecation"
|
|
@@ -81964,7 +82033,7 @@ var init_nitro_superset = __esm({
|
|
|
81964
82033
|
init_swift_standin_digest();
|
|
81965
82034
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
81966
82035
|
packageVersion = (root) => JSON.parse((0, import_node_fs92.readFileSync)((0, import_node_path89.join)(root, "package.json"), "utf8")).version;
|
|
81967
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
82036
|
+
NITRO_COMPILER_DIGEST = true ? "dfa17c6e2cbecb906db123df784c6bf7a048b88c14fb188da27719440bbe221c" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
81968
82037
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
81969
82038
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
81970
82039
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -82456,7 +82525,8 @@ async function compileTurboModule(options) {
|
|
|
82456
82525
|
reactNativeRoot: options.reactNativeRoot,
|
|
82457
82526
|
providers: options.providers,
|
|
82458
82527
|
codegenDir: import_node_path93.default.join(scratch2, "codegen"),
|
|
82459
|
-
installedPods: options.installedPods
|
|
82528
|
+
installedPods: options.installedPods,
|
|
82529
|
+
projectRoot: options.projectRoot
|
|
82460
82530
|
});
|
|
82461
82531
|
const swiftTargets = collection.targets.filter(
|
|
82462
82532
|
(target) => Object.keys(collection.files).some(
|
|
@@ -84865,8 +84935,8 @@ var init_dev_server_scanner = __esm({
|
|
|
84865
84935
|
// src/agent-events.ts
|
|
84866
84936
|
function isAgentEvent(value) {
|
|
84867
84937
|
if (!value || typeof value !== "object") return false;
|
|
84868
|
-
const
|
|
84869
|
-
return typeof
|
|
84938
|
+
const v6 = value;
|
|
84939
|
+
return typeof v6.type === "string" && typeof v6.ts === "number";
|
|
84870
84940
|
}
|
|
84871
84941
|
function parseAgentEventLine(line) {
|
|
84872
84942
|
const trimmed = line.trim();
|
|
@@ -92213,7 +92283,7 @@ function readExpoTypes(output2) {
|
|
|
92213
92283
|
};
|
|
92214
92284
|
});
|
|
92215
92285
|
}
|
|
92216
|
-
async function scanSources(tool,
|
|
92286
|
+
async function scanSources(tool, parse13, toolchain, moduleRoot, files2) {
|
|
92217
92287
|
const digest3 = (0, import_node_crypto59.createHash)("sha256").update(JSON.stringify(toolchain.compiler));
|
|
92218
92288
|
const sdk = await loadKotlinSdk(moduleRoot, toolchain);
|
|
92219
92289
|
digest3.update(import_node_fs111.default.readFileSync(import_node_path112.default.join(moduleRoot, "sdk.tar.gz")));
|
|
@@ -92244,7 +92314,7 @@ async function scanSources(tool, parse12, toolchain, moduleRoot, files2) {
|
|
|
92244
92314
|
});
|
|
92245
92315
|
toolScans.set(key2, scan2);
|
|
92246
92316
|
}
|
|
92247
|
-
return
|
|
92317
|
+
return parse13(await scan2);
|
|
92248
92318
|
}
|
|
92249
92319
|
async function scanExpoTypes(toolchain, moduleRoot, sources) {
|
|
92250
92320
|
const candidates = sources.filter(
|
|
@@ -100936,9 +101006,9 @@ function createBridge(wsPort, opts = {}) {
|
|
|
100936
101006
|
lineageBySimId.get(payload.simId)?.hostPid
|
|
100937
101007
|
);
|
|
100938
101008
|
pending.set(id, {
|
|
100939
|
-
resolve: (
|
|
101009
|
+
resolve: (v6) => {
|
|
100940
101010
|
clearTimeoutFn();
|
|
100941
|
-
resolve13(
|
|
101011
|
+
resolve13(v6);
|
|
100942
101012
|
},
|
|
100943
101013
|
reject: (e) => {
|
|
100944
101014
|
clearTimeoutFn();
|
|
@@ -104347,8 +104417,8 @@ function option(flag, description, hidden) {
|
|
|
104347
104417
|
function example(command, description, hidden) {
|
|
104348
104418
|
return hidden ? { command, description, hidden } : { command, description };
|
|
104349
104419
|
}
|
|
104350
|
-
function verb(
|
|
104351
|
-
return { verb:
|
|
104420
|
+
function verb(v6, description, usage, examples, notes, extras) {
|
|
104421
|
+
return { verb: v6, description, usage, examples, notes, ...extras };
|
|
104352
104422
|
}
|
|
104353
104423
|
function inspectVerbPathKey(group, verb2) {
|
|
104354
104424
|
return `${group ?? ""}:${verb2}`;
|
|
@@ -110517,9 +110587,9 @@ async function runtimeList(_args) {
|
|
|
110517
110587
|
if (installed2.length === 0) {
|
|
110518
110588
|
console.log(` (none)`);
|
|
110519
110589
|
} else {
|
|
110520
|
-
for (const
|
|
110521
|
-
const marker =
|
|
110522
|
-
console.log(` ${marker} ${
|
|
110590
|
+
for (const v6 of installed2) {
|
|
110591
|
+
const marker = v6 === active ? "*" : " ";
|
|
110592
|
+
console.log(` ${marker} ${v6}`);
|
|
110523
110593
|
}
|
|
110524
110594
|
}
|
|
110525
110595
|
try {
|
|
@@ -110531,7 +110601,7 @@ async function runtimeList(_args) {
|
|
|
110531
110601
|
const hosted = Object.keys(manifest.versions).sort(compareSemver).reverse();
|
|
110532
110602
|
if (hosted.length > 1) {
|
|
110533
110603
|
console.log(`hosted versions:`);
|
|
110534
|
-
for (const
|
|
110604
|
+
for (const v6 of hosted) console.log(` ${v6}`);
|
|
110535
110605
|
}
|
|
110536
110606
|
} catch (err) {
|
|
110537
110607
|
console.log(`available: (could not fetch manifest: ${describeError(err)})`);
|
|
@@ -122701,7 +122771,7 @@ var init_maestro_js = __esm({
|
|
|
122701
122771
|
const previous = this.envScopeStack.pop();
|
|
122702
122772
|
if (previous) {
|
|
122703
122773
|
this.envBinding.clear();
|
|
122704
|
-
for (const [k,
|
|
122774
|
+
for (const [k, v6] of previous) this.envBinding.set(k, v6);
|
|
122705
122775
|
}
|
|
122706
122776
|
}
|
|
122707
122777
|
// evaluate a JS snippet in the shared context. mirrors upstream
|
|
@@ -122713,7 +122783,7 @@ var init_maestro_js = __esm({
|
|
|
122713
122783
|
if (env && Object.keys(env).length > 0) {
|
|
122714
122784
|
this.enterEnvScope();
|
|
122715
122785
|
try {
|
|
122716
|
-
for (const [k,
|
|
122786
|
+
for (const [k, v6] of Object.entries(env)) this.envBinding.set(k, v6);
|
|
122717
122787
|
return this.evalRaw(script);
|
|
122718
122788
|
} finally {
|
|
122719
122789
|
this.leaveEnvScope();
|
|
@@ -125690,7 +125760,7 @@ var init_bridge_flow_runner = __esm({
|
|
|
125690
125760
|
this.js.enterEnvScope();
|
|
125691
125761
|
try {
|
|
125692
125762
|
if (env) {
|
|
125693
|
-
for (const [k,
|
|
125763
|
+
for (const [k, v6] of Object.entries(env)) this.js.putEnv(k, v6);
|
|
125694
125764
|
}
|
|
125695
125765
|
if (file) {
|
|
125696
125766
|
const flowPath = path122.resolve(this.opts.flowDir, file);
|