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
|
@@ -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;
|
|
@@ -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 __defProp = Object.defineProperty;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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 __defProp = Object.defineProperty;
|
package/dist-lib/beta.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 __defProp = Object.defineProperty;
|
package/dist-lib/beta.mjs
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 __defProp = Object.defineProperty;
|
|
@@ -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 __defProp = Object.defineProperty;
|
|
@@ -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 __defProp = Object.defineProperty;
|
|
@@ -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
|
|
|
@@ -3466,7 +3466,7 @@ var require_parse = __commonJS({
|
|
|
3466
3466
|
var token;
|
|
3467
3467
|
var key2;
|
|
3468
3468
|
var root;
|
|
3469
|
-
module2.exports = function
|
|
3469
|
+
module2.exports = function parse12(text6, reviver) {
|
|
3470
3470
|
source = String(text6);
|
|
3471
3471
|
parseState = "start";
|
|
3472
3472
|
stack = [];
|
|
@@ -4321,12 +4321,12 @@ var require_stringify = __commonJS({
|
|
|
4321
4321
|
replacerFunc = replacer;
|
|
4322
4322
|
} else if (Array.isArray(replacer)) {
|
|
4323
4323
|
propertyList = [];
|
|
4324
|
-
for (const
|
|
4324
|
+
for (const v6 of replacer) {
|
|
4325
4325
|
let item;
|
|
4326
|
-
if (typeof
|
|
4327
|
-
item =
|
|
4328
|
-
} else if (typeof
|
|
4329
|
-
item = String(
|
|
4326
|
+
if (typeof v6 === "string") {
|
|
4327
|
+
item = v6;
|
|
4328
|
+
} else if (typeof v6 === "number" || v6 instanceof String || v6 instanceof Number) {
|
|
4329
|
+
item = String(v6);
|
|
4330
4330
|
}
|
|
4331
4331
|
if (item !== void 0 && propertyList.indexOf(item) < 0) {
|
|
4332
4332
|
propertyList.push(item);
|
|
@@ -4524,10 +4524,10 @@ var require_stringify = __commonJS({
|
|
|
4524
4524
|
var require_lib = __commonJS({
|
|
4525
4525
|
"../../node_modules/json5/lib/index.js"(exports2, module2) {
|
|
4526
4526
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4527
|
-
var
|
|
4527
|
+
var parse12 = require_parse();
|
|
4528
4528
|
var stringify4 = require_stringify();
|
|
4529
4529
|
var JSON53 = {
|
|
4530
|
-
parse:
|
|
4530
|
+
parse: parse12,
|
|
4531
4531
|
stringify: stringify4
|
|
4532
4532
|
};
|
|
4533
4533
|
module2.exports = JSON53;
|
|
@@ -5022,7 +5022,7 @@ var init_applyReviver = __esm({
|
|
|
5022
5022
|
// ../../node_modules/yaml/browser/dist/nodes/toJS.js
|
|
5023
5023
|
function toJS(value, arg, ctx) {
|
|
5024
5024
|
if (Array.isArray(value))
|
|
5025
|
-
return value.map((
|
|
5025
|
+
return value.map((v6, i) => toJS(v6, String(i), ctx));
|
|
5026
5026
|
if (value && typeof value.toJSON === "function") {
|
|
5027
5027
|
if (!ctx || !hasAnchor(value))
|
|
5028
5028
|
return value.toJSON(arg, ctx);
|
|
@@ -5311,18 +5311,18 @@ var init_createNode = __esm({
|
|
|
5311
5311
|
|
|
5312
5312
|
// ../../node_modules/yaml/browser/dist/nodes/Collection.js
|
|
5313
5313
|
function collectionFromPath(schema4, path86, value) {
|
|
5314
|
-
let
|
|
5314
|
+
let v6 = value;
|
|
5315
5315
|
for (let i = path86.length - 1; i >= 0; --i) {
|
|
5316
5316
|
const k = path86[i];
|
|
5317
5317
|
if (typeof k === "number" && Number.isInteger(k) && k >= 0) {
|
|
5318
5318
|
const a = [];
|
|
5319
|
-
a[k] =
|
|
5320
|
-
|
|
5319
|
+
a[k] = v6;
|
|
5320
|
+
v6 = a;
|
|
5321
5321
|
} else {
|
|
5322
|
-
|
|
5322
|
+
v6 = /* @__PURE__ */ new Map([[k, v6]]);
|
|
5323
5323
|
}
|
|
5324
5324
|
}
|
|
5325
|
-
return createNode(
|
|
5325
|
+
return createNode(v6, void 0, {
|
|
5326
5326
|
aliasDuplicateObjects: false,
|
|
5327
5327
|
keepUndefined: false,
|
|
5328
5328
|
onAnchor: () => {
|
|
@@ -6270,8 +6270,8 @@ var init_addPairToJSMap = __esm({
|
|
|
6270
6270
|
// ../../node_modules/yaml/browser/dist/nodes/Pair.js
|
|
6271
6271
|
function createPair(key2, value, ctx) {
|
|
6272
6272
|
const k = createNode(key2, void 0, ctx);
|
|
6273
|
-
const
|
|
6274
|
-
return new Pair(k,
|
|
6273
|
+
const v6 = createNode(value, void 0, ctx);
|
|
6274
|
+
return new Pair(k, v6);
|
|
6275
6275
|
}
|
|
6276
6276
|
var Pair;
|
|
6277
6277
|
var init_Pair = __esm({
|
|
@@ -7929,7 +7929,7 @@ var init_Document = __esm({
|
|
|
7929
7929
|
value = replacer.call({ "": value }, "", value);
|
|
7930
7930
|
_replacer = replacer;
|
|
7931
7931
|
} else if (Array.isArray(replacer)) {
|
|
7932
|
-
const keyToStr = (
|
|
7932
|
+
const keyToStr = (v6) => typeof v6 === "number" || v6 instanceof String || v6 instanceof Number;
|
|
7933
7933
|
const asStr = replacer.filter(keyToStr).map(String);
|
|
7934
7934
|
if (asStr.length > 0)
|
|
7935
7935
|
replacer = replacer.concat(asStr);
|
|
@@ -7965,8 +7965,8 @@ var init_Document = __esm({
|
|
|
7965
7965
|
*/
|
|
7966
7966
|
createPair(key2, value, options = {}) {
|
|
7967
7967
|
const k = this.createNode(key2, null, options);
|
|
7968
|
-
const
|
|
7969
|
-
return new Pair(k,
|
|
7968
|
+
const v6 = this.createNode(value, null, options);
|
|
7969
|
+
return new Pair(k, v6);
|
|
7970
7970
|
}
|
|
7971
7971
|
/**
|
|
7972
7972
|
* Removes a value from the document.
|
|
@@ -17351,7 +17351,7 @@ function swiftToolchainBin(release) {
|
|
|
17351
17351
|
return import_node_path24.default.join(peachHome(), "swift", "toolchains", release, "usr/bin");
|
|
17352
17352
|
return (process.env.PATH ?? "").split(import_node_path24.default.delimiter).find((dir) => dir && import_node_fs28.default.existsSync(import_node_path24.default.join(dir, "swift"))) ?? image;
|
|
17353
17353
|
}
|
|
17354
|
-
function writeSwiftAutolinkLinker(directory2, toolchainBin) {
|
|
17354
|
+
function writeSwiftAutolinkLinker(directory2, toolchainBin, omitLibraries = []) {
|
|
17355
17355
|
const linker = import_node_path24.default.join(directory2, SWIFT_AUTOLINK_LINKER);
|
|
17356
17356
|
const script = `#!/bin/sh
|
|
17357
17357
|
set -eu
|
|
@@ -17359,7 +17359,7 @@ for arg in "$@"; do
|
|
|
17359
17359
|
case $arg in
|
|
17360
17360
|
@*)
|
|
17361
17361
|
rsp=\${arg#@}
|
|
17362
|
-
awk 'BEGIN { RS = " "; ORS = " " } /^"-l/ { if (seen[$0]++) next } { print }' "$rsp" > "$rsp.dedup"
|
|
17362
|
+
awk 'BEGIN { RS = " "; ORS = " " } /^"-l/ { if (seen[$0]++) next }${omitLibraries.map((name3) => ` $0 == "\\"-l${name3}\\"" { next }`).join("")} { print }' "$rsp" > "$rsp.dedup"
|
|
17363
17363
|
mv "$rsp.dedup" "$rsp"
|
|
17364
17364
|
if [ "\${PEACH_DEFER_WASM_LINK:-}" = "1" ] && grep -q '"--start-lib"' "$rsp"; then
|
|
17365
17365
|
cp "$rsp" ${JSON.stringify(import_node_path24.default.join(directory2, ".peach-link.rsp"))}
|
|
@@ -24426,7 +24426,7 @@ function emitGuestImageProjection(images) {
|
|
|
24426
24426
|
lines.push("const struct peach_guest_image __peach_guest_images[] = {");
|
|
24427
24427
|
for (const [i, image] of images.entries()) {
|
|
24428
24428
|
const uuid = image.uuid.match(/../g).map((byte) => `0x${byte}`).join(", ");
|
|
24429
|
-
const version2 = (
|
|
24429
|
+
const version2 = (v6) => (v6.major * 65536 + v6.minor * 256 + v6.patch).toString();
|
|
24430
24430
|
lines.push(
|
|
24431
24431
|
` {${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"}},`
|
|
24432
24432
|
);
|
|
@@ -26172,8 +26172,8 @@ function verifyGuestSymbolScopes(options) {
|
|
|
26172
26172
|
providers: /* @__PURE__ */ new Map(),
|
|
26173
26173
|
physicalModule: false
|
|
26174
26174
|
};
|
|
26175
|
-
if (object6 === "<internal>"
|
|
26176
|
-
record3.physicalModule = true;
|
|
26175
|
+
if (object6 === "<internal>") {
|
|
26176
|
+
if (kind === "definition of") record3.physicalModule = true;
|
|
26177
26177
|
} else {
|
|
26178
26178
|
const image = options.owners.get(object6);
|
|
26179
26179
|
if (image === void 0)
|
|
@@ -27148,9 +27148,14 @@ async function compileGuestLink(options) {
|
|
|
27148
27148
|
systemProviders,
|
|
27149
27149
|
hostImports: scope2.hostImports
|
|
27150
27150
|
});
|
|
27151
|
+
const wrapped = new Set(
|
|
27152
|
+
prepared.args.flatMap(
|
|
27153
|
+
(arg) => arg.startsWith("--wrap=") ? [arg.slice(7), `__wrap_${arg.slice(7)}`] : []
|
|
27154
|
+
)
|
|
27155
|
+
);
|
|
27151
27156
|
return {
|
|
27152
27157
|
...plan,
|
|
27153
|
-
symbols: scope2.definitions,
|
|
27158
|
+
symbols: scope2.definitions.filter((symbol2) => !wrapped.has(symbol2)),
|
|
27154
27159
|
directBindings: verified2.directBindings
|
|
27155
27160
|
};
|
|
27156
27161
|
}
|
|
@@ -32132,7 +32137,17 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
32132
32137
|
report("framework revision changed; rebuilding the app link");
|
|
32133
32138
|
const nativeToolset = needsNativeToolset(input, prebuilt);
|
|
32134
32139
|
const preparation = writeSwiftProject(layout2, input, frameworkRoot, prebuilt);
|
|
32135
|
-
|
|
32140
|
+
const productFile = import_node_path44.default.join(frameworkRoot, SWIFT_FRAMEWORK_PRODUCT_FILE);
|
|
32141
|
+
writeSwiftAutolinkLinker(
|
|
32142
|
+
root,
|
|
32143
|
+
options.toolchainBin,
|
|
32144
|
+
(0, import_node_fs46.existsSync)(productFile) ? [
|
|
32145
|
+
v5.parse(
|
|
32146
|
+
swiftFrameworkProductSchema,
|
|
32147
|
+
JSON.parse((0, import_node_fs46.readFileSync)(productFile, "utf8"))
|
|
32148
|
+
).product.name
|
|
32149
|
+
] : []
|
|
32150
|
+
);
|
|
32136
32151
|
const projectProcess = options.project ? prepareSwiftProjectProcess(root, options.project) : void 0;
|
|
32137
32152
|
const appOptions = projectProcess ? {
|
|
32138
32153
|
...buildOptions,
|
|
@@ -32358,7 +32373,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
32358
32373
|
options.signal
|
|
32359
32374
|
);
|
|
32360
32375
|
}
|
|
32361
|
-
var import_node_child_process26, import_node_crypto20, import_node_fs46, import_node_os11, import_node_path44, 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, 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;
|
|
32376
|
+
var import_node_child_process26, import_node_crypto20, import_node_fs46, import_node_os11, import_node_path44, 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, 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;
|
|
32362
32377
|
var init_swift_compile = __esm({
|
|
32363
32378
|
"src/swift-compile.ts"() {
|
|
32364
32379
|
"use strict";
|
|
@@ -32368,6 +32383,7 @@ var init_swift_compile = __esm({
|
|
|
32368
32383
|
import_node_fs46 = require("node:fs");
|
|
32369
32384
|
import_node_os11 = __toESM(require("node:os"), 1);
|
|
32370
32385
|
import_node_path44 = __toESM(require("node:path"), 1);
|
|
32386
|
+
v5 = __toESM(require("valibot"), 1);
|
|
32371
32387
|
init_admitted_mac_build();
|
|
32372
32388
|
init_process_group();
|
|
32373
32389
|
init_retired_cache_directory();
|
|
@@ -32391,6 +32407,7 @@ var init_swift_compile = __esm({
|
|
|
32391
32407
|
init_swift_uniform_type_constants();
|
|
32392
32408
|
init_swift_wasm_prune();
|
|
32393
32409
|
init_swiftContract();
|
|
32410
|
+
init_swiftRuntimeProductContract();
|
|
32394
32411
|
init_wasm_optimize();
|
|
32395
32412
|
init_write_build_file();
|
|
32396
32413
|
init_xcode_header_search();
|
|
@@ -32528,7 +32545,7 @@ var init_swift_compile = __esm({
|
|
|
32528
32545
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
32529
32546
|
MULTI_MANIFEST_VERSION = 66;
|
|
32530
32547
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
32531
|
-
compilerSourceDigest = true ? "
|
|
32548
|
+
compilerSourceDigest = true ? "8768dadacf2e909cf808df3a31fe261832d51fb29d48f2b45bd4df5c117c6f69" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
32532
32549
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
32533
32550
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
32534
32551
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -38254,7 +38271,7 @@ var init_swift_standin_digest = __esm({
|
|
|
38254
38271
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
38255
38272
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
38256
38273
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
38257
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
38274
|
+
STANDIN_SOURCE_DIGEST = true ? "ae26db314b6d3703c6fc172d019e3cb0fe28a018e5f614bb804fae720ab78ff8" : standinSourceDigest();
|
|
38258
38275
|
}
|
|
38259
38276
|
});
|
|
38260
38277
|
|
|
@@ -38333,14 +38350,14 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
38333
38350
|
const querySchemes = dictionary2.LSApplicationQueriesSchemes;
|
|
38334
38351
|
const urlQuerySchemes = Array.isArray(querySchemes) ? querySchemes : [];
|
|
38335
38352
|
const intentIds = dictionary2.OneAppIntentIdentifiers;
|
|
38336
|
-
const appIntentIdentifiers = Array.isArray(intentIds) && intentIds.every((
|
|
38353
|
+
const appIntentIdentifiers = Array.isArray(intentIds) && intentIds.every((v6) => typeof v6 === "string") ? intentIds : [];
|
|
38337
38354
|
const backgroundIds = dictionary2.BGTaskSchedulerPermittedIdentifiers;
|
|
38338
|
-
const backgroundTaskIdentifiers = Array.isArray(backgroundIds) && backgroundIds.every((
|
|
38355
|
+
const backgroundTaskIdentifiers = Array.isArray(backgroundIds) && backgroundIds.every((v6) => typeof v6 === "string") ? backgroundIds : [];
|
|
38339
38356
|
const declaredModes = dictionary2.UIBackgroundModes;
|
|
38340
|
-
const backgroundModes = Array.isArray(declaredModes) && declaredModes.every((
|
|
38341
|
-
const supportedInterfaceOrientations = Array.isArray(dictionary2.UISupportedInterfaceOrientations) && dictionary2.UISupportedInterfaceOrientations.every((
|
|
38357
|
+
const backgroundModes = Array.isArray(declaredModes) && declaredModes.every((v6) => typeof v6 === "string") ? declaredModes : [];
|
|
38358
|
+
const supportedInterfaceOrientations = Array.isArray(dictionary2.UISupportedInterfaceOrientations) && dictionary2.UISupportedInterfaceOrientations.every((v6) => typeof v6 === "string") ? dictionary2.UISupportedInterfaceOrientations : [];
|
|
38342
38359
|
const ipadSupportedInterfaceOrientations = Array.isArray(dictionary2["UISupportedInterfaceOrientations~ipad"]) && dictionary2["UISupportedInterfaceOrientations~ipad"].every(
|
|
38343
|
-
(
|
|
38360
|
+
(v6) => typeof v6 === "string"
|
|
38344
38361
|
) ? dictionary2["UISupportedInterfaceOrientations~ipad"] : [];
|
|
38345
38362
|
const defaultScreenOrientationMask = nonEmptyString2(
|
|
38346
38363
|
dictionary2.EXDefaultScreenOrientationMask
|
|
@@ -38744,7 +38761,7 @@ var init_expo_native_prebuilt = __esm({
|
|
|
38744
38761
|
init_swift_native_pin();
|
|
38745
38762
|
init_xcode_project();
|
|
38746
38763
|
EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
38747
|
-
EXPO_NATIVE_COMPILER_DIGEST = true ? "
|
|
38764
|
+
EXPO_NATIVE_COMPILER_DIGEST = true ? "29a14998cfeca34c65cb911c55de6c6ef5be82e64eaba75effc6a290999cc322" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
38748
38765
|
IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
38749
38766
|
expoNativeEntryUrl = (key2, file) => `${NATIVE_PREBUILT_ORIGIN}/${nativeEntryPrefix("expo", EXPO_NATIVE_ENTRY_NAME, key2)}/${file}`;
|
|
38750
38767
|
isStringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
@@ -48832,7 +48849,7 @@ function tokenize2(src, file) {
|
|
|
48832
48849
|
const fail = (message) => {
|
|
48833
48850
|
throw new UnsupportedPodspec(`${file}:${line}: ${message}`);
|
|
48834
48851
|
};
|
|
48835
|
-
const push = (t,
|
|
48852
|
+
const push = (t, v6) => toks.push({ t, v: v6, line });
|
|
48836
48853
|
while (i < src.length) {
|
|
48837
48854
|
const c = src[i];
|
|
48838
48855
|
if (c === "\n") {
|
|
@@ -48958,7 +48975,7 @@ function tokenize2(src, file) {
|
|
|
48958
48975
|
}
|
|
48959
48976
|
return toks;
|
|
48960
48977
|
}
|
|
48961
|
-
function
|
|
48978
|
+
function parse7(src, file) {
|
|
48962
48979
|
const parser = new Parser2(tokenize2(src, file), file);
|
|
48963
48980
|
const body = parser.body();
|
|
48964
48981
|
if (parser.i < parser.toks.length) parser.fail(`unexpected ${parser.toks[parser.i].v}`);
|
|
@@ -49008,7 +49025,7 @@ function loadPodspec(file, appRoot = null) {
|
|
|
49008
49025
|
])
|
|
49009
49026
|
);
|
|
49010
49027
|
global.vars.set("__dir__", import_node_path76.default.dirname(import_node_path76.default.resolve(file)));
|
|
49011
|
-
evaluator.run(global,
|
|
49028
|
+
evaluator.run(global, parse7(import_node_fs78.default.readFileSync(file, "utf8"), file));
|
|
49012
49029
|
if (evaluator.roots.length !== 1)
|
|
49013
49030
|
throw new UnsupportedPodspec(
|
|
49014
49031
|
`${file}: expected one Pod::Spec, found ${evaluator.roots.length}`
|
|
@@ -49225,9 +49242,9 @@ var init_podspec_sources = __esm({
|
|
|
49225
49242
|
`${this.file}:${this.toks[this.i]?.line ?? "end"}: ${message}`
|
|
49226
49243
|
);
|
|
49227
49244
|
}
|
|
49228
|
-
at(
|
|
49245
|
+
at(v6) {
|
|
49229
49246
|
const tok = this.toks[this.i];
|
|
49230
|
-
return tok?.t === "id" && tok.v ===
|
|
49247
|
+
return tok?.t === "id" && tok.v === v6;
|
|
49231
49248
|
}
|
|
49232
49249
|
body() {
|
|
49233
49250
|
const out = [];
|
|
@@ -49422,12 +49439,12 @@ var init_podspec_sources = __esm({
|
|
|
49422
49439
|
while (this.depth > 0 && this.toks[this.i]?.t === "nl") this.i++;
|
|
49423
49440
|
return this.toks[this.i];
|
|
49424
49441
|
}
|
|
49425
|
-
isOp(
|
|
49442
|
+
isOp(v6) {
|
|
49426
49443
|
const tok = this.peek();
|
|
49427
|
-
return tok?.t === "op" && tok.v ===
|
|
49444
|
+
return tok?.t === "op" && tok.v === v6;
|
|
49428
49445
|
}
|
|
49429
|
-
eatOp(
|
|
49430
|
-
if (!this.isOp(
|
|
49446
|
+
eatOp(v6) {
|
|
49447
|
+
if (!this.isOp(v6)) return false;
|
|
49431
49448
|
this.i++;
|
|
49432
49449
|
return true;
|
|
49433
49450
|
}
|
|
@@ -49439,8 +49456,8 @@ var init_podspec_sources = __esm({
|
|
|
49439
49456
|
`${this.file}:${this.toks[this.i]?.line ?? "end"}: ${why}`
|
|
49440
49457
|
);
|
|
49441
49458
|
}
|
|
49442
|
-
expect(
|
|
49443
|
-
if (!this.eatOp(
|
|
49459
|
+
expect(v6) {
|
|
49460
|
+
if (!this.eatOp(v6)) this.fail(`expected ${v6}`);
|
|
49444
49461
|
}
|
|
49445
49462
|
done() {
|
|
49446
49463
|
this.skipNl();
|
|
@@ -49842,8 +49859,8 @@ var init_podspec_sources = __esm({
|
|
|
49842
49859
|
const l = this.ev(scope2, node.l);
|
|
49843
49860
|
const r = this.ev(scope2, node.r);
|
|
49844
49861
|
if (node.op === "==" || node.op === "!=") {
|
|
49845
|
-
if (Array.isArray(l) && Array.isArray(r) && [...l, ...r].every((
|
|
49846
|
-
return (l.length === r.length && l.every((
|
|
49862
|
+
if (Array.isArray(l) && Array.isArray(r) && [...l, ...r].every((v6) => typeof v6 === "string"))
|
|
49863
|
+
return (l.length === r.length && l.every((v6, index) => v6 === r[index])) === (node.op === "==");
|
|
49847
49864
|
if (typeof l === "object" && l !== null) this.fail("object comparison");
|
|
49848
49865
|
return l === r === (node.op === "==");
|
|
49849
49866
|
}
|
|
@@ -49945,7 +49962,7 @@ var init_podspec_sources = __esm({
|
|
|
49945
49962
|
return value;
|
|
49946
49963
|
if (Array.isArray(value)) return value.map(json);
|
|
49947
49964
|
if (typeof value !== "object") return new Opaque("a JSON number");
|
|
49948
|
-
return new Map(Object.entries(value).map(([k,
|
|
49965
|
+
return new Map(Object.entries(value).map(([k, v6]) => [k, json(v6)]));
|
|
49949
49966
|
};
|
|
49950
49967
|
let parsed;
|
|
49951
49968
|
try {
|
|
@@ -50025,7 +50042,7 @@ var init_podspec_sources = __esm({
|
|
|
50025
50042
|
if (name3 === "select" && block2)
|
|
50026
50043
|
return new Map(
|
|
50027
50044
|
[...recv.entries()].filter(
|
|
50028
|
-
([k,
|
|
50045
|
+
([k, v6]) => truthy(this.yieldBlock(scope2, block2, [k, v6]))
|
|
50029
50046
|
)
|
|
50030
50047
|
);
|
|
50031
50048
|
return void 0;
|
|
@@ -50183,7 +50200,7 @@ var init_podspec_sources = __esm({
|
|
|
50183
50200
|
const outer = this.current;
|
|
50184
50201
|
this.current = file;
|
|
50185
50202
|
try {
|
|
50186
|
-
this.exec(new Scope(this.constants),
|
|
50203
|
+
this.exec(new Scope(this.constants), parse7(import_node_fs78.default.readFileSync(file, "utf8"), file));
|
|
50187
50204
|
} finally {
|
|
50188
50205
|
this.current = outer;
|
|
50189
50206
|
}
|
|
@@ -50606,6 +50623,9 @@ var init_turbo_codegen_intake = __esm({
|
|
|
50606
50623
|
];
|
|
50607
50624
|
LEGACY_BRIDGE_PODS = /* @__PURE__ */ new Set([
|
|
50608
50625
|
"React-Core",
|
|
50626
|
+
"React-hermes",
|
|
50627
|
+
"React-jsi",
|
|
50628
|
+
"React-logger",
|
|
50609
50629
|
"React-cxxreact",
|
|
50610
50630
|
"React-jsinspector",
|
|
50611
50631
|
"React-jsinspectortracing",
|
|
@@ -51470,6 +51490,13 @@ async function collectTurboSources(options) {
|
|
|
51470
51490
|
);
|
|
51471
51491
|
return;
|
|
51472
51492
|
}
|
|
51493
|
+
if (hermesHeaders && include.startsWith("hermes/") && import_node_fs80.default.existsSync(import_node_path78.default.join(hermesHeaders, include))) {
|
|
51494
|
+
alias(
|
|
51495
|
+
`${core}/include/${include}`,
|
|
51496
|
+
original(TURBO_CORE_TARGET, "hermes-engine", hermesHeaders, include, false)
|
|
51497
|
+
);
|
|
51498
|
+
return;
|
|
51499
|
+
}
|
|
51473
51500
|
const nativeReactMaps = pod?.reactHeaderMaps ?? [];
|
|
51474
51501
|
const mappedReact = (quoted ? [
|
|
51475
51502
|
...nativeReactMaps.filter(({ flag }) => flag === "-iquote"),
|
|
@@ -51614,6 +51641,7 @@ async function collectTurboSources(options) {
|
|
|
51614
51641
|
let objc = false;
|
|
51615
51642
|
let fabric = false;
|
|
51616
51643
|
let legacyBridge = false;
|
|
51644
|
+
let hermesHeaders = null;
|
|
51617
51645
|
const objcClasses = /* @__PURE__ */ new Set();
|
|
51618
51646
|
const unregisteredObjcClasses = /* @__PURE__ */ new Set();
|
|
51619
51647
|
const deferredDepUnits = [];
|
|
@@ -52091,7 +52119,47 @@ ${declared.map((symbol2) => `extern "C" void ${symbol2}();
|
|
|
52091
52119
|
}
|
|
52092
52120
|
}
|
|
52093
52121
|
if (fabric || legacyBridge) {
|
|
52094
|
-
if (!fabric)
|
|
52122
|
+
if (!fabric) {
|
|
52123
|
+
result.targets[0].cxxDefines = [...defines, "USE_HERMES=1"];
|
|
52124
|
+
hermesHeaders = import_node_path78.default.join(
|
|
52125
|
+
options.projectRoot,
|
|
52126
|
+
"ios/Pods/hermes-engine/destroot/include"
|
|
52127
|
+
);
|
|
52128
|
+
if (!import_node_fs80.default.existsSync(import_node_path78.default.join(hermesHeaders, "hermes/hermes.h")))
|
|
52129
|
+
throw new Error(
|
|
52130
|
+
`the legacy bridge needs the installed hermes-engine headers in ${hermesHeaders}`
|
|
52131
|
+
);
|
|
52132
|
+
const runtimeUnit = `${core}/PeachHermesRuntime.cpp`;
|
|
52133
|
+
add(
|
|
52134
|
+
runtimeUnit,
|
|
52135
|
+
[
|
|
52136
|
+
"#include <hermes/hermes.h>",
|
|
52137
|
+
"#include <stdexcept>",
|
|
52138
|
+
"",
|
|
52139
|
+
"namespace hermes::vm {",
|
|
52140
|
+
"CrashManager::~CrashManager() = default;",
|
|
52141
|
+
"NopCrashManager::~NopCrashManager() = default;",
|
|
52142
|
+
"} // namespace hermes::vm",
|
|
52143
|
+
"",
|
|
52144
|
+
"namespace facebook::hermes {",
|
|
52145
|
+
"std::unique_ptr<HermesRuntime> makeHermesRuntime(const ::hermes::vm::RuntimeConfig &) {",
|
|
52146
|
+
' throw std::logic_error("no native Hermes runtime in Peach: this app started the legacy bridge");',
|
|
52147
|
+
"}",
|
|
52148
|
+
"} // namespace facebook::hermes",
|
|
52149
|
+
""
|
|
52150
|
+
].join("\n")
|
|
52151
|
+
);
|
|
52152
|
+
scanText(
|
|
52153
|
+
{
|
|
52154
|
+
key: runtimeUnit,
|
|
52155
|
+
targetName: TURBO_CORE_TARGET,
|
|
52156
|
+
label: "peach",
|
|
52157
|
+
root: reactNative.root,
|
|
52158
|
+
relative: "PeachHermesRuntime.cpp"
|
|
52159
|
+
},
|
|
52160
|
+
result.files[runtimeUnit]
|
|
52161
|
+
);
|
|
52162
|
+
}
|
|
52095
52163
|
addPodSources(
|
|
52096
52164
|
installedFabricSources(reactNative.root, { legacyBridge, bridgeOnly: !fabric })
|
|
52097
52165
|
);
|
|
@@ -52747,6 +52815,7 @@ var init_turbo_source = __esm({
|
|
|
52747
52815
|
{ from: "Libraries/TypeSafety", to: "RCTTypeSafety" },
|
|
52748
52816
|
{ from: "Libraries/FBLazyVector/FBLazyVector", to: "FBLazyVector" },
|
|
52749
52817
|
{ from: "ReactApple/RCTSwiftUIWrapper", to: "RCTSwiftUIWrapper" },
|
|
52818
|
+
{ from: "ReactCommon/hermes/executor", to: "reacthermes" },
|
|
52750
52819
|
{
|
|
52751
52820
|
from: "ReactApple/Libraries/RCTFoundation/RCTDeprecation/Exported",
|
|
52752
52821
|
to: "RCTDeprecation"
|
|
@@ -55849,7 +55918,7 @@ var init_nitro_superset = __esm({
|
|
|
55849
55918
|
init_swift_standin_digest();
|
|
55850
55919
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
55851
55920
|
packageVersion = (root) => JSON.parse((0, import_node_fs86.readFileSync)((0, import_node_path84.join)(root, "package.json"), "utf8")).version;
|
|
55852
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
55921
|
+
NITRO_COMPILER_DIGEST = true ? "dfa17c6e2cbecb906db123df784c6bf7a048b88c14fb188da27719440bbe221c" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
55853
55922
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
55854
55923
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
55855
55924
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -56191,7 +56260,8 @@ async function compileTurboModule(options) {
|
|
|
56191
56260
|
reactNativeRoot: options.reactNativeRoot,
|
|
56192
56261
|
providers: options.providers,
|
|
56193
56262
|
codegenDir: import_node_path86.default.join(scratch2, "codegen"),
|
|
56194
|
-
installedPods: options.installedPods
|
|
56263
|
+
installedPods: options.installedPods,
|
|
56264
|
+
projectRoot: options.projectRoot
|
|
56195
56265
|
});
|
|
56196
56266
|
const swiftTargets = collection.targets.filter(
|
|
56197
56267
|
(target) => Object.keys(collection.files).some(
|
|
@@ -57329,7 +57399,7 @@ function readExpoTypes(output2) {
|
|
|
57329
57399
|
};
|
|
57330
57400
|
});
|
|
57331
57401
|
}
|
|
57332
|
-
async function scanSources(tool,
|
|
57402
|
+
async function scanSources(tool, parse12, toolchain, moduleRoot, files2) {
|
|
57333
57403
|
const digest4 = (0, import_node_crypto49.createHash)("sha256").update(JSON.stringify(toolchain.compiler));
|
|
57334
57404
|
const sdk = await loadKotlinSdk(moduleRoot, toolchain);
|
|
57335
57405
|
digest4.update(import_node_fs93.default.readFileSync(import_node_path92.default.join(moduleRoot, "sdk.tar.gz")));
|
|
@@ -57360,7 +57430,7 @@ async function scanSources(tool, parse11, toolchain, moduleRoot, files2) {
|
|
|
57360
57430
|
});
|
|
57361
57431
|
toolScans.set(key2, scan2);
|
|
57362
57432
|
}
|
|
57363
|
-
return
|
|
57433
|
+
return parse12(await scan2);
|
|
57364
57434
|
}
|
|
57365
57435
|
async function scanExpoTypes(toolchain, moduleRoot, sources) {
|
|
57366
57436
|
const candidates = sources.filter(
|
|
@@ -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 __defProp = Object.defineProperty;
|
|
@@ -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 __defProp = Object.defineProperty;
|
|
@@ -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 __defProp = Object.defineProperty;
|
package/dist-lib/cloud.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 __defProp = Object.defineProperty;
|