peachsim 0.1.2100 → 0.1.2104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/commands/detect.ts +26 -5
- package/cli/commands/shell-url.ts +41 -4
- 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 +33 -29
- 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 +17 -13
- 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 +32 -29
- package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
- 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 +6 -5
- 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 +6 -5
- package/dist-lib/native-app-identity-project.cjs +5 -3
- package/dist-lib/native-app-identity-project.mjs +5 -3
- 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 +88 -36
- package/dist-lib/swift-compile.cjs +9 -7
- package/dist-lib/swift-compile.mjs +6 -5
- 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 +22 -18
- package/dist-lib/vite.cjs +4 -4
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/package.json +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarButtonItemAppearance.h +4 -3
- package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Headers/UIKitTypes.h +2 -0
- package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Modules/module.modulemap +1 -0
- package/skills/peach-setup/SKILL.md +6 -0
- package/skills/peach-setup/references/native-config.md +7 -0
- package/src/expo-swift-host.ts +8 -4
- package/src/swift-root-lock.ts +7 -6
- package/src/turbo-bundle.ts +2 -10
- package/src/turbo-source.ts +22 -15
- package/src/xcode-project.ts +3 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2104 | (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.2104 | (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/sdk.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2104 | (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.2104 | (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.2104 | (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": "0b82b3773f9c0b27636f277d9c123b3e631b9c9980995d67d67efa6b3176df4a", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "65a0698bf022ace2f4254f3f891828dedf403d61c102238e242084a2279e04eb", "home-paths.ts": "783c20faf3235e3fc1846b056d788f29d9bfdfc946822b62acf722341b3a10fd", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.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": "0b82b3773f9c0b27636f277d9c123b3e631b9c9980995d67d67efa6b3176df4a", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "65a0698bf022ace2f4254f3f891828dedf403d61c102238e242084a2279e04eb", "home-paths.ts": "783c20faf3235e3fc1846b056d788f29d9bfdfc946822b62acf722341b3a10fd", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "5f41cd0bd86cb0cffbfb0047348b963f81d5e51cb0e8dd574c739b1a27aa56de", "xcode-target-members.ts": "ad7589132bffab265e8a10b64e24484fe88b4a2b1cc0ee19a97f151a002eca77", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -33578,6 +33578,24 @@ function evaluatePodfileNewArch(statements, properties) {
|
|
|
33578
33578
|
throw new Error("ios/Podfile: RCT_NEW_ARCH_ENABLED evaluation returned no value");
|
|
33579
33579
|
return enabled2;
|
|
33580
33580
|
}
|
|
33581
|
+
function readExpoNativeRenderer(config, platform2) {
|
|
33582
|
+
const values = [
|
|
33583
|
+
metadataValue(config, "newArchEnabled"),
|
|
33584
|
+
metadataValue(metadataValue(config, platform2), "newArchEnabled")
|
|
33585
|
+
];
|
|
33586
|
+
const plugins = metadataValue(config, "plugins");
|
|
33587
|
+
if (Array.isArray(plugins)) {
|
|
33588
|
+
for (const plugin of plugins)
|
|
33589
|
+
if (Array.isArray(plugin) && plugin[0] === "expo-build-properties")
|
|
33590
|
+
values.push(metadataValue(metadataValue(plugin[1], platform2), "newArchEnabled"));
|
|
33591
|
+
}
|
|
33592
|
+
const declared = values.filter((value) => value !== void 0);
|
|
33593
|
+
if (declared.some((value) => typeof value !== "boolean"))
|
|
33594
|
+
throw new Error("Expo newArchEnabled must be true or false");
|
|
33595
|
+
if (declared.some((value) => value !== declared[0]))
|
|
33596
|
+
throw new Error("contradictory Expo native renderer metadata");
|
|
33597
|
+
return declared.length === 0 ? void 0 : declared[0] ? "fabric" : "paper";
|
|
33598
|
+
}
|
|
33581
33599
|
function readNativeProjectRenderer(dir, platform2, files2 = nodeRepoFileReader, { appJson = true } = {}) {
|
|
33582
33600
|
const declarations = [];
|
|
33583
33601
|
const add2 = (value, source, strings6 = false) => {
|
|
@@ -33601,12 +33619,12 @@ function readNativeProjectRenderer(dir, platform2, files2 = nodeRepoFileReader,
|
|
|
33601
33619
|
}
|
|
33602
33620
|
};
|
|
33603
33621
|
if (appJson) {
|
|
33604
|
-
const
|
|
33605
|
-
|
|
33606
|
-
|
|
33607
|
-
metadataValue(metadataValue(expo, platform2), "newArchEnabled"),
|
|
33608
|
-
`app.json expo.${platform2}.newArchEnabled`
|
|
33622
|
+
const renderer = readExpoNativeRenderer(
|
|
33623
|
+
metadataValue(json("app.json"), "expo"),
|
|
33624
|
+
platform2
|
|
33609
33625
|
);
|
|
33626
|
+
if (renderer !== void 0)
|
|
33627
|
+
add2(renderer === "fabric", "app.json Expo new architecture");
|
|
33610
33628
|
}
|
|
33611
33629
|
if (platform2 === "ios") {
|
|
33612
33630
|
const podfileProperties = json("ios/Podfile.properties.json");
|
|
@@ -52773,6 +52791,9 @@ function groupAlive(table, leader) {
|
|
|
52773
52791
|
if (row && !sameProcess(row, leader)) return false;
|
|
52774
52792
|
return table.some((candidate) => candidate.pgid === leader.pid && !candidate.zombie);
|
|
52775
52793
|
}
|
|
52794
|
+
function swiftRootLocksDir() {
|
|
52795
|
+
return import_node_path45.default.join((0, import_node_os11.homedir)(), ".peach", "cache", "swift-root-locks");
|
|
52796
|
+
}
|
|
52776
52797
|
function withCocoaPodsCacheLock(work) {
|
|
52777
52798
|
return withSwiftRootLock(
|
|
52778
52799
|
process.env.CP_CACHE_DIR || import_node_path45.default.join((0, import_node_os11.homedir)(), "Library/Caches/CocoaPods"),
|
|
@@ -52781,9 +52802,7 @@ function withCocoaPodsCacheLock(work) {
|
|
|
52781
52802
|
}
|
|
52782
52803
|
async function withSwiftRootLock(root, work, signal, wait = true) {
|
|
52783
52804
|
const directory2 = import_node_path45.default.join(
|
|
52784
|
-
|
|
52785
|
-
"cache",
|
|
52786
|
-
"swift-root-locks",
|
|
52805
|
+
swiftRootLocksDir(),
|
|
52787
52806
|
(0, import_node_crypto22.createHash)("sha256").update(root).digest("hex").slice(0, 32)
|
|
52788
52807
|
);
|
|
52789
52808
|
(0, import_node_fs49.mkdirSync)(directory2, { recursive: true });
|
|
@@ -52890,7 +52909,6 @@ var init_swift_root_lock = __esm({
|
|
|
52890
52909
|
import_node_fs49 = require("node:fs");
|
|
52891
52910
|
import_node_os11 = require("node:os");
|
|
52892
52911
|
import_node_path45 = __toESM(require("node:path"), 1);
|
|
52893
|
-
init_home_paths();
|
|
52894
52912
|
init_process_group();
|
|
52895
52913
|
init_process_table();
|
|
52896
52914
|
POLL_MS = 250;
|
|
@@ -57670,7 +57688,7 @@ var init_swift_compile = __esm({
|
|
|
57670
57688
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
57671
57689
|
MULTI_MANIFEST_VERSION = 68;
|
|
57672
57690
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
57673
|
-
compilerSourceDigest = true ? "
|
|
57691
|
+
compilerSourceDigest = true ? "1b5136b40668d46c1507a6a9012dcfd7c42b63341814abe88d1d5a55825334f3" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
57674
57692
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
57675
57693
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
57676
57694
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -61741,6 +61759,8 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
61741
61759
|
const keychainAccessGroups = entitlementsFile ? readKeychainAccessGroups(
|
|
61742
61760
|
import_plist2.default.parse(import_node_fs56.default.readFileSync(entitlementsFile, "utf8")),
|
|
61743
61761
|
(value) => expand(value, (key2) => {
|
|
61762
|
+
if (key2 === "AppIdentifierPrefix") return "FAKETEAMID.";
|
|
61763
|
+
if (key2 === "TeamIdentifierPrefix") return "";
|
|
61744
61764
|
const resolved = key2 === "CFBundleIdentifier" ? bundleIdentifier : settings(key2);
|
|
61745
61765
|
if (!resolved)
|
|
61746
61766
|
throw new Error(
|
|
@@ -64176,7 +64196,7 @@ var init_swift_standin_digest = __esm({
|
|
|
64176
64196
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
64177
64197
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
64178
64198
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
64179
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
64199
|
+
STANDIN_SOURCE_DIGEST = true ? "ce10b199f6a4f24772a895c6eb490b0146425cec7e104de513c1a37b46e89bf8" : standinSourceDigest();
|
|
64180
64200
|
}
|
|
64181
64201
|
});
|
|
64182
64202
|
|
|
@@ -64704,7 +64724,7 @@ var init_package_tree_digest = __esm({
|
|
|
64704
64724
|
|
|
64705
64725
|
// src/expo-native-prebuilt.ts
|
|
64706
64726
|
function expoNativeCompilerDigestValue() {
|
|
64707
|
-
return true ? "
|
|
64727
|
+
return true ? "335c3127aaae4c6df3b8792a3f66011342c76f993f6870783b95b0a269de93b2" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
64708
64728
|
}
|
|
64709
64729
|
function readSources(value) {
|
|
64710
64730
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -78418,8 +78438,7 @@ function registers(root, files2, objc = true) {
|
|
|
78418
78438
|
}
|
|
78419
78439
|
return false;
|
|
78420
78440
|
}
|
|
78421
|
-
async function
|
|
78422
|
-
const providers = [];
|
|
78441
|
+
async function turboProviderCandidates(appRoot) {
|
|
78423
78442
|
const candidates = [];
|
|
78424
78443
|
const autolinked = await iosAutolinkedDependencies(appRoot);
|
|
78425
78444
|
const expoPods = (await expoAutolinkedPods(appRoot)).filter(
|
|
@@ -78429,14 +78448,23 @@ async function discoverTurboProviders(appRoot, projectRoot, iosTarget, answered2
|
|
|
78429
78448
|
if (peachAnsweredNativePackages().has(name3)) continue;
|
|
78430
78449
|
const fabric = fabricComponents(root);
|
|
78431
78450
|
if (!podspecPath) continue;
|
|
78432
|
-
candidates.push({
|
|
78451
|
+
candidates.push({
|
|
78452
|
+
provider: { name: name3, root, podspecPath },
|
|
78453
|
+
fabric,
|
|
78454
|
+
expo: expoPods.some((pod) => pod.root === root)
|
|
78455
|
+
});
|
|
78433
78456
|
}
|
|
78457
|
+
return candidates;
|
|
78458
|
+
}
|
|
78459
|
+
async function discoverTurboProviders(appRoot, projectRoot, iosTarget, answered2 = /* @__PURE__ */ new Set()) {
|
|
78460
|
+
const providers = [];
|
|
78461
|
+
const candidates = await turboProviderCandidates(appRoot);
|
|
78434
78462
|
const installed2 = projectRoot && installedXcodeWorkspace(projectRoot) ? installedNativeSources(
|
|
78435
78463
|
candidates.map(({ provider }) => provider),
|
|
78436
78464
|
projectRoot,
|
|
78437
78465
|
iosTarget
|
|
78438
78466
|
) : null;
|
|
78439
|
-
for (const { provider, fabric } of candidates) {
|
|
78467
|
+
for (const { provider, fabric, expo } of candidates) {
|
|
78440
78468
|
const pod = readPod(provider, appRoot);
|
|
78441
78469
|
const sources = installed2 ? installed2.get(provider.name) : { root: pod.root, files: fabric ? null : podGlobFiles(pod) };
|
|
78442
78470
|
if (!sources) continue;
|
|
@@ -78450,7 +78478,7 @@ async function discoverTurboProviders(appRoot, projectRoot, iosTarget, answered2
|
|
|
78450
78478
|
(dep) => resolveExternalTurboPod(dep.name, dep.requirements, dep.subspecs)
|
|
78451
78479
|
)
|
|
78452
78480
|
);
|
|
78453
|
-
const swiftPod =
|
|
78481
|
+
const swiftPod = expo && files2?.some((file) => file.endsWith(".swift"));
|
|
78454
78482
|
if (!swiftPod && !dependencies.some((dep) => dep?.files.some((file) => file.endsWith(".swift"))))
|
|
78455
78483
|
providers.push(provider);
|
|
78456
78484
|
else if (!fabric && files2?.some(
|
|
@@ -79474,7 +79502,7 @@ ${declared.map((symbol2) => `extern "C" void ${symbol2}();
|
|
|
79474
79502
|
reactNative.root,
|
|
79475
79503
|
(name3, relative5) => matchers.get(name3)?.some((pattern) => pattern.test(relative5)) ?? false
|
|
79476
79504
|
)) {
|
|
79477
|
-
const fmtUnit = unit2.name === "fmt"
|
|
79505
|
+
const fmtUnit = unit2.name === "fmt";
|
|
79478
79506
|
const unitTarget = fmtUnit ? TURBO_FMT_TARGET : TURBO_CORE_TARGET;
|
|
79479
79507
|
if (fmtUnit && !result.targets.some((t) => t.name === TURBO_FMT_TARGET)) {
|
|
79480
79508
|
result.targets.push({
|
|
@@ -80650,7 +80678,7 @@ function installSwiftInputTrace() {
|
|
|
80650
80678
|
const prefixes = [
|
|
80651
80679
|
import_node_path88.default.join(cacheDir(), "swift-builds"),
|
|
80652
80680
|
import_node_path88.default.join(swiftCacheDir(), "swift-builds"),
|
|
80653
|
-
|
|
80681
|
+
swiftRootLocksDir(),
|
|
80654
80682
|
import_node_path88.default.join(cacheDir(), "swift-tmp")
|
|
80655
80683
|
].filter((prefix, index, all) => all.indexOf(prefix) === index);
|
|
80656
80684
|
ignoredRoots = prefixes.flatMap((root) => {
|
|
@@ -82275,8 +82303,9 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
82275
82303
|
const module2 = await resolveSwiftModule({ signal });
|
|
82276
82304
|
signal.throwIfAborted();
|
|
82277
82305
|
const reactProvider = units.some((unit2) => unit2.reactNativeProvider) ? await (async () => {
|
|
82306
|
+
const projectRoot = options.installedWorkspace ? import_node_path88.default.dirname(import_node_path88.default.dirname(options.installedWorkspace)) : (await prepareExpoNativeWorkspace(root, signal, options.iosTarget)).app;
|
|
82278
82307
|
const reactNativeRoot = import_node_path88.default.dirname(
|
|
82279
|
-
(0, import_node_module13.createRequire)(import_node_path88.default.join(
|
|
82308
|
+
(0, import_node_module13.createRequire)(import_node_path88.default.join(projectRoot, "package.json")).resolve(
|
|
82280
82309
|
"react-native/package.json"
|
|
82281
82310
|
)
|
|
82282
82311
|
);
|
|
@@ -82286,8 +82315,8 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
82286
82315
|
import_node_path88.default.join(swiftCacheDir(), "expo-react-codegen-")
|
|
82287
82316
|
);
|
|
82288
82317
|
const collection = await collectTurboSources({
|
|
82289
|
-
appRoot:
|
|
82290
|
-
projectRoot
|
|
82318
|
+
appRoot: projectRoot,
|
|
82319
|
+
projectRoot,
|
|
82291
82320
|
reactNativeRoot,
|
|
82292
82321
|
providers: [],
|
|
82293
82322
|
codegenDir,
|
|
@@ -82767,6 +82796,7 @@ var init_expo_swift_host = __esm({
|
|
|
82767
82796
|
init_swift_host();
|
|
82768
82797
|
init_swift_objc_standin();
|
|
82769
82798
|
init_swift_package();
|
|
82799
|
+
init_swift_root_lock();
|
|
82770
82800
|
init_swift_standins();
|
|
82771
82801
|
init_swift_submit();
|
|
82772
82802
|
init_swift_toolchain();
|
|
@@ -84132,7 +84162,7 @@ var init_nitro_superset = __esm({
|
|
|
84132
84162
|
init_nitroContract();
|
|
84133
84163
|
init_swift_standin_digest();
|
|
84134
84164
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
84135
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
84165
|
+
NITRO_COMPILER_DIGEST = true ? "ec25647113136bce6e6a2ea018908be69823d9bfeb12f0ba455091ef8a2829b2" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
84136
84166
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
84137
84167
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
84138
84168
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -84949,15 +84979,7 @@ async function compiledTurboProviders(appRoot, projectRoot, iosTarget) {
|
|
|
84949
84979
|
...Object.keys(config?.nativeModules ?? {}),
|
|
84950
84980
|
...Object.keys(config?.nativeViews ?? {})
|
|
84951
84981
|
]);
|
|
84952
|
-
if (!projectRoot)
|
|
84953
|
-
const candidates = await discoverTurboProviders(
|
|
84954
|
-
appRoot,
|
|
84955
|
-
void 0,
|
|
84956
|
-
iosTarget,
|
|
84957
|
-
answered2
|
|
84958
|
-
);
|
|
84959
|
-
if (candidates.length === 0) return [];
|
|
84960
|
-
}
|
|
84982
|
+
if (!projectRoot && (await turboProviderCandidates(appRoot)).length === 0) return [];
|
|
84961
84983
|
return discoverTurboProviders(
|
|
84962
84984
|
appRoot,
|
|
84963
84985
|
projectRoot ?? await prepareNativeAppRoot(appRoot),
|
|
@@ -90772,6 +90794,18 @@ function* installedVersionsWalk(projectRoot, names, selectedPackages) {
|
|
|
90772
90794
|
}
|
|
90773
90795
|
return versions;
|
|
90774
90796
|
}
|
|
90797
|
+
function readInstalledPackageVersions(projectRoot, modulePaths) {
|
|
90798
|
+
const names = /* @__PURE__ */ new Set();
|
|
90799
|
+
for (const modulePath of modulePaths) {
|
|
90800
|
+
const name3 = extractPackageFromPath(modulePath.replaceAll(import_path2.default.sep, "/"));
|
|
90801
|
+
if (name3) names.add(name3);
|
|
90802
|
+
}
|
|
90803
|
+
const versions = runSync(installedVersionsWalk(projectRoot, names));
|
|
90804
|
+
const options = readInstalledNativeBuildOptions(projectRoot, versions);
|
|
90805
|
+
if (Object.keys(options).length)
|
|
90806
|
+
versions[NATIVE_BUILD_OPTIONS_KEY] = JSON.stringify(options);
|
|
90807
|
+
return versions;
|
|
90808
|
+
}
|
|
90775
90809
|
function* nativePackageVersionsWalk(projectRoot) {
|
|
90776
90810
|
const appRoot = yield* realpath(projectRoot);
|
|
90777
90811
|
const nativeNames = /* @__PURE__ */ new Set();
|
|
@@ -112262,6 +112296,26 @@ async function buildShellUrl(target, baseUrl = resolveDefaultShellBaseUrl(), opt
|
|
|
112262
112296
|
const nativeAssetOrigin = `http://127.0.0.1:${port.port}`;
|
|
112263
112297
|
const bundle = bundleUrlOf(resolved);
|
|
112264
112298
|
const platform2 = shellUrlPlatform(resolved, opts.device);
|
|
112299
|
+
const expoConfigRead = await takeExpoConfigRead(project2);
|
|
112300
|
+
const nativeRenderer = project2 ? readNativeProjectRenderer(project2.appDir, platform2, void 0, {
|
|
112301
|
+
appJson: !expoConfigRead || !("config" in expoConfigRead)
|
|
112302
|
+
}) : void 0;
|
|
112303
|
+
if (project2 && bundle) {
|
|
112304
|
+
const expoConfig = expoConfigRead && "config" in expoConfigRead ? expoConfigRead.config : void 0;
|
|
112305
|
+
const expoRenderer = readExpoNativeRenderer(expoConfig, platform2);
|
|
112306
|
+
const version2 = readInstalledPackageVersions(project2.appDir, [
|
|
112307
|
+
"node_modules/react-native"
|
|
112308
|
+
])["react-native"];
|
|
112309
|
+
const minor = version2 && /^0\.(\d+)\./.exec(version2)?.[1];
|
|
112310
|
+
const legacyDefault = nativeRenderer === void 0 && expoRenderer === void 0 && minor !== void 0 && Number(minor) < 76;
|
|
112311
|
+
const configuredRenderer = readPeachConfigFromSearchParams(
|
|
112312
|
+
new URL(resolved).searchParams
|
|
112313
|
+
)?.nativeRenderer;
|
|
112314
|
+
if (nativeRenderer === "paper" || expoRenderer === "paper" || legacyDefault || configuredRenderer === "paper")
|
|
112315
|
+
throw new Error(
|
|
112316
|
+
"unsupported-architecture: React Native apps require the new architecture. " + (legacyDefault ? "React Native " + version2 + " defaults to the legacy architecture. " : "This app disables the new architecture. ") + "Upgrade or explicitly enable the new architecture in the app before opening it."
|
|
112317
|
+
);
|
|
112318
|
+
}
|
|
112265
112319
|
const stamped = await stampAppCatalog(
|
|
112266
112320
|
await stampAppSplash(
|
|
112267
112321
|
stampAppFonts(resolved, platform2, nativeAssetOrigin, project2),
|
|
@@ -112276,7 +112330,6 @@ async function buildShellUrl(target, baseUrl = resolveDefaultShellBaseUrl(), opt
|
|
|
112276
112330
|
expoStamped.searchParams.delete(ANDROID_ROOT_MODULE_QUERY_PARAM);
|
|
112277
112331
|
expoStamped.searchParams.delete("appBundleResources");
|
|
112278
112332
|
if (project2) {
|
|
112279
|
-
const nativeRenderer = readNativeProjectRenderer(project2.appDir, platform2);
|
|
112280
112333
|
if (nativeRenderer !== void 0) {
|
|
112281
112334
|
const config = readPeachConfigFromSearchParams(expoStamped.searchParams);
|
|
112282
112335
|
if (config?.nativeRenderer !== void 0 && config.nativeRenderer !== nativeRenderer)
|
|
@@ -112311,7 +112364,6 @@ async function buildShellUrl(target, baseUrl = resolveDefaultShellBaseUrl(), opt
|
|
|
112311
112364
|
if (packageVersions) {
|
|
112312
112365
|
expoStamped.searchParams.set("packageVersions", JSON.stringify(packageVersions));
|
|
112313
112366
|
}
|
|
112314
|
-
const expoConfigRead = await takeExpoConfigRead(project2);
|
|
112315
112367
|
const stampedBundle = expoStamped.searchParams.get("bundle");
|
|
112316
112368
|
if (project2 && !expoConfigRead && stampedBundle) {
|
|
112317
112369
|
const nativeFirebase = nativeFirebaseFromExpoConfig(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2104 | (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;
|
|
@@ -95,7 +95,7 @@ module.exports = __toCommonJS(swift_compile_exports);
|
|
|
95
95
|
var import_node_child_process18 = require("node:child_process");
|
|
96
96
|
var import_node_crypto13 = require("node:crypto");
|
|
97
97
|
var import_node_fs25 = require("node:fs");
|
|
98
|
-
var
|
|
98
|
+
var import_node_os11 = __toESM(require("node:os"), 1);
|
|
99
99
|
var import_node_path27 = __toESM(require("node:path"), 1);
|
|
100
100
|
var v5 = __toESM(require("valibot"), 1);
|
|
101
101
|
|
|
@@ -11079,6 +11079,7 @@ function swiftReproducibleBuildFlags(roots) {
|
|
|
11079
11079
|
var import_node_child_process16 = require("node:child_process");
|
|
11080
11080
|
var import_node_crypto12 = require("node:crypto");
|
|
11081
11081
|
var import_node_fs22 = require("node:fs");
|
|
11082
|
+
var import_node_os10 = require("node:os");
|
|
11082
11083
|
var import_node_path23 = __toESM(require("node:path"), 1);
|
|
11083
11084
|
var POLL_MS = 250;
|
|
11084
11085
|
var START_TOLERANCE_MS = 2e3;
|
|
@@ -11153,11 +11154,12 @@ function groupAlive(table, leader) {
|
|
|
11153
11154
|
if (row && !sameProcess(row, leader)) return false;
|
|
11154
11155
|
return table.some((candidate) => candidate.pgid === leader.pid && !candidate.zombie);
|
|
11155
11156
|
}
|
|
11157
|
+
function swiftRootLocksDir() {
|
|
11158
|
+
return import_node_path23.default.join((0, import_node_os10.homedir)(), ".peach", "cache", "swift-root-locks");
|
|
11159
|
+
}
|
|
11156
11160
|
async function withSwiftRootLock(root, work, signal, wait = true) {
|
|
11157
11161
|
const directory = import_node_path23.default.join(
|
|
11158
|
-
|
|
11159
|
-
"cache",
|
|
11160
|
-
"swift-root-locks",
|
|
11162
|
+
swiftRootLocksDir(),
|
|
11161
11163
|
(0, import_node_crypto12.createHash)("sha256").update(root).digest("hex").slice(0, 32)
|
|
11162
11164
|
);
|
|
11163
11165
|
(0, import_node_fs22.mkdirSync)(directory, { recursive: true });
|
|
@@ -11644,7 +11646,7 @@ function swiftBuildJobs() {
|
|
|
11644
11646
|
const admittedCores = windowAdmission()?.cores ?? Number(process.env.TM_EXEC_CPU_CORES);
|
|
11645
11647
|
return Math.min(
|
|
11646
11648
|
process.platform === "darwin" ? Infinity : 4,
|
|
11647
|
-
Math.max(1, Math.floor(
|
|
11649
|
+
Math.max(1, Math.floor(import_node_os11.default.availableParallelism() / 2)),
|
|
11648
11650
|
Number.isInteger(admittedCores) && admittedCores > 0 ? admittedCores : 4
|
|
11649
11651
|
);
|
|
11650
11652
|
}
|
|
@@ -12440,7 +12442,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12440
12442
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12441
12443
|
var MULTI_MANIFEST_VERSION = 68;
|
|
12442
12444
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12443
|
-
var compilerSourceDigest = true ? "
|
|
12445
|
+
var compilerSourceDigest = true ? "1b5136b40668d46c1507a6a9012dcfd7c42b63341814abe88d1d5a55825334f3" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
12444
12446
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12445
12447
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
12446
12448
|
hash.update(`swift-compile
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2104 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-compile.ts
|
|
4
4
|
import {
|
|
@@ -11134,11 +11134,12 @@ function groupAlive(table, leader) {
|
|
|
11134
11134
|
if (row && !sameProcess(row, leader)) return false;
|
|
11135
11135
|
return table.some((candidate) => candidate.pgid === leader.pid && !candidate.zombie);
|
|
11136
11136
|
}
|
|
11137
|
+
function swiftRootLocksDir() {
|
|
11138
|
+
return path23.join(homedir2(), ".peach", "cache", "swift-root-locks");
|
|
11139
|
+
}
|
|
11137
11140
|
async function withSwiftRootLock(root, work, signal, wait = true) {
|
|
11138
11141
|
const directory = path23.join(
|
|
11139
|
-
|
|
11140
|
-
"cache",
|
|
11141
|
-
"swift-root-locks",
|
|
11142
|
+
swiftRootLocksDir(),
|
|
11142
11143
|
createHash12("sha256").update(root).digest("hex").slice(0, 32)
|
|
11143
11144
|
);
|
|
11144
11145
|
mkdirSync4(directory, { recursive: true });
|
|
@@ -12421,7 +12422,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12421
12422
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12422
12423
|
var MULTI_MANIFEST_VERSION = 68;
|
|
12423
12424
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12424
|
-
var compilerSourceDigest = true ? "
|
|
12425
|
+
var compilerSourceDigest = true ? "1b5136b40668d46c1507a6a9012dcfd7c42b63341814abe88d1d5a55825334f3" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
12425
12426
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12426
12427
|
const hash = createHash13("sha256");
|
|
12427
12428
|
hash.update(`swift-compile
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2104 | (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.2104 | (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.2104 | (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.2104 | (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;
|