peachsim 0.1.2093 → 0.1.2095
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/detox/index.ts +15 -3
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +38 -25
- 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 +10 -4
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +26 -22
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +6 -1
- package/dist-lib/host/bridge-host.cjs +38 -25
- 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 +18 -17
- 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 +18 -17
- package/dist-lib/native-app-identity-project.cjs +17 -16
- package/dist-lib/native-app-identity-project.mjs +17 -16
- 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 +39 -25
- package/dist-lib/swift-compile.cjs +2 -2
- package/dist-lib/swift-compile.mjs +2 -2
- 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/UIPrintInfo.h +2 -19
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIRegion.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Headers/UIKitTypes.h +18 -0
- package/src/expo-swift-host.ts +8 -2
- package/src/home-paths.ts +5 -0
- package/src/swift-distribution.ts +2 -2
- package/src/turbo-bundle.ts +11 -2
- package/src/turbo-source.ts +1 -1
- package/src/xcode-project.ts +22 -16
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2095 | (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": "
|
|
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": "9cd3aeacc7a5e402ba34765397bc4e3c5dacf09ad10183ad95879d0485351406", "xcode-target-members.ts": "ad7589132bffab265e8a10b64e24484fe88b4a2b1cc0ee19a97f151a002eca77", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -28439,6 +28439,7 @@ __export(home_paths_exports, {
|
|
|
28439
28439
|
isDevWorkstation: () => isDevWorkstation,
|
|
28440
28440
|
isOnboardingComplete: () => isOnboardingComplete,
|
|
28441
28441
|
isSootsimDevCheckout: () => isSootsimDevCheckout,
|
|
28442
|
+
peachSwiftSdksDir: () => peachSwiftSdksDir,
|
|
28442
28443
|
playwrightCoreDir: () => playwrightCoreDir,
|
|
28443
28444
|
profilesDir: () => profilesDir,
|
|
28444
28445
|
readActiveRuntime: () => readActiveRuntime,
|
|
@@ -28474,6 +28475,9 @@ function rnxHomeDir() {
|
|
|
28474
28475
|
if (override && override.length > 0) return import_node_path2.default.resolve(override);
|
|
28475
28476
|
return ambientHomeDir();
|
|
28476
28477
|
}
|
|
28478
|
+
function peachSwiftSdksDir() {
|
|
28479
|
+
return process.env.PEACH_SWIFT_SDKS_PATH ?? import_node_path2.default.join(rnxHomeDir(), "swift", "sdks");
|
|
28480
|
+
}
|
|
28477
28481
|
function isSootsimDevCheckout() {
|
|
28478
28482
|
if (process.env.SOOTSIM_FORCE_DAEMON_INSTALL === "1") return false;
|
|
28479
28483
|
const env = process.env.SOOTSIM_DEV;
|
|
@@ -57663,7 +57667,7 @@ var init_swift_compile = __esm({
|
|
|
57663
57667
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
57664
57668
|
MULTI_MANIFEST_VERSION = 68;
|
|
57665
57669
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
57666
|
-
compilerSourceDigest = true ? "
|
|
57670
|
+
compilerSourceDigest = true ? "972d5f3a05ad26521ac0d87e4883cfe5044f0bf7488b9d2b309e178c417f16dd" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
57667
57671
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
57668
57672
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
57669
57673
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -58752,7 +58756,7 @@ async function swiftDistributionRoot(signal) {
|
|
|
58752
58756
|
}
|
|
58753
58757
|
}
|
|
58754
58758
|
async function installSwiftToolchain(release, sdk, signal, compilerOnly = false) {
|
|
58755
|
-
process.env.PEACH_SWIFT_SDKS_PATH
|
|
58759
|
+
process.env.PEACH_SWIFT_SDKS_PATH = peachSwiftSdksDir();
|
|
58756
58760
|
const root = import_node_path51.default.resolve(swiftToolchainBin(release), "../..");
|
|
58757
58761
|
const owned = process.platform === "darwin" ? import_node_path51.default.join(import_node_os13.default.homedir(), "Library/Developer/Toolchains", `${release}.xctoolchain`) : import_node_path51.default.join(rnxHomeDir(), "swift", "toolchains", release);
|
|
58758
58762
|
const selectedCompiler = process.platform === "darwin" && import_node_fs54.default.existsSync(import_node_path51.default.join(root, "usr/bin/swift"));
|
|
@@ -60339,7 +60343,7 @@ function shellAssetCatalogs(script, settings, projectDir) {
|
|
|
60339
60343
|
/\$\{([A-Za-z_][A-Za-z0-9_]*):-([^{}`]*)\}/g,
|
|
60340
60344
|
(_match, key2, fallback) => lookup4(key2) || fallback
|
|
60341
60345
|
);
|
|
60342
|
-
if (/\$\{[A-Za-z_][A-Za-z0-9_]*(
|
|
60346
|
+
if (/\$\{[A-Za-z_][A-Za-z0-9_]*(?::|[-+=?]|[#%/^,])/.test(shell)) return null;
|
|
60343
60347
|
const value = expand(shell, lookup4);
|
|
60344
60348
|
return /[$`]/.test(value) ? null : value;
|
|
60345
60349
|
};
|
|
@@ -60373,7 +60377,7 @@ function shellCopies(script, settings, projectDir) {
|
|
|
60373
60377
|
return value;
|
|
60374
60378
|
};
|
|
60375
60379
|
const word = (token2) => {
|
|
60376
|
-
if (/\$\{[A-Za-z_][A-Za-z0-9_]*(
|
|
60380
|
+
if (/\$\{[A-Za-z_][A-Za-z0-9_]*(?::|[-+=?]|[#%/^,])/.test(token2)) return null;
|
|
60377
60381
|
resolved = true;
|
|
60378
60382
|
const quote = token2[0];
|
|
60379
60383
|
const value = quote === "'" ? token2.slice(1, -1) : expand(quote === '"' ? token2.slice(1, -1) : token2, lookup4);
|
|
@@ -61707,17 +61711,6 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
61707
61711
|
}
|
|
61708
61712
|
const infoPlistFile = settings("INFOPLIST_FILE") ? import_node_path54.default.resolve(app.project.projectDir, settings("INFOPLIST_FILE")) : null;
|
|
61709
61713
|
const entitlementsFile = settings("CODE_SIGN_ENTITLEMENTS") ? import_node_path54.default.resolve(app.project.projectDir, settings("CODE_SIGN_ENTITLEMENTS")) : null;
|
|
61710
|
-
const keychainAccessGroups = entitlementsFile ? readKeychainAccessGroups(
|
|
61711
|
-
import_plist2.default.parse(import_node_fs56.default.readFileSync(entitlementsFile, "utf8")),
|
|
61712
|
-
(value) => expand(value, (key2) => {
|
|
61713
|
-
const resolved = settings(key2);
|
|
61714
|
-
if (!resolved)
|
|
61715
|
-
throw new Error(
|
|
61716
|
-
`${entitlementsFile} references $(${key2}), which ${module2.name}'s build settings do not define${key2 === "CFBundleIdentifier" ? " (set PRODUCT_BUNDLE_IDENTIFIER; Xcode supplies it as CFBundleIdentifier)" : ""}`
|
|
61717
|
-
);
|
|
61718
|
-
return resolved;
|
|
61719
|
-
})
|
|
61720
|
-
) : void 0;
|
|
61721
61714
|
const infoPlistPending = module2.generatedInfoPlist && !options.prepareGeneratedSources;
|
|
61722
61715
|
const sourceInfo = infoPlistFile && !infoPlistPending ? import_plist2.default.parse(import_node_fs56.default.readFileSync(infoPlistFile, "utf8")) : {};
|
|
61723
61716
|
if (!sourceInfo || typeof sourceInfo !== "object" || Array.isArray(sourceInfo) || sourceInfo instanceof Date || Buffer.isBuffer(sourceInfo)) {
|
|
@@ -61741,6 +61734,18 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
61741
61734
|
if (info[key2] === void 0 && value) info[key2] = value;
|
|
61742
61735
|
}
|
|
61743
61736
|
}
|
|
61737
|
+
const bundleIdentifier = settings("PRODUCT_BUNDLE_IDENTIFIER") || (typeof info.CFBundleIdentifier === "string" ? info.CFBundleIdentifier : "");
|
|
61738
|
+
const keychainAccessGroups = entitlementsFile ? readKeychainAccessGroups(
|
|
61739
|
+
import_plist2.default.parse(import_node_fs56.default.readFileSync(entitlementsFile, "utf8")),
|
|
61740
|
+
(value) => expand(value, (key2) => {
|
|
61741
|
+
const resolved = key2 === "CFBundleIdentifier" ? bundleIdentifier : settings(key2);
|
|
61742
|
+
if (!resolved)
|
|
61743
|
+
throw new Error(
|
|
61744
|
+
`${entitlementsFile} references $(${key2}), which ${module2.name}'s build settings do not define`
|
|
61745
|
+
);
|
|
61746
|
+
return resolved;
|
|
61747
|
+
})
|
|
61748
|
+
) : void 0;
|
|
61744
61749
|
const postBundleScripts = [];
|
|
61745
61750
|
for (const id of [...list(app.target.buildPhases)].reverse()) {
|
|
61746
61751
|
const phase = app.project.object(id);
|
|
@@ -64168,7 +64173,7 @@ var init_swift_standin_digest = __esm({
|
|
|
64168
64173
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
64169
64174
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
64170
64175
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
64171
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
64176
|
+
STANDIN_SOURCE_DIGEST = true ? "dfa809f23971d606abf197cb27eb3400aed018aa43e25abf064d7543ff0597c2" : standinSourceDigest();
|
|
64172
64177
|
}
|
|
64173
64178
|
});
|
|
64174
64179
|
|
|
@@ -64696,7 +64701,7 @@ var init_package_tree_digest = __esm({
|
|
|
64696
64701
|
|
|
64697
64702
|
// src/expo-native-prebuilt.ts
|
|
64698
64703
|
function expoNativeCompilerDigestValue() {
|
|
64699
|
-
return true ? "
|
|
64704
|
+
return true ? "391fdb2d75b92f58a16c6a59c67731be06a40a35091e983cd12d091ea8c64f77" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
64700
64705
|
}
|
|
64701
64706
|
function readSources(value) {
|
|
64702
64707
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -79405,7 +79410,7 @@ ${declared.map((symbol2) => `extern "C" void ${symbol2}();
|
|
|
79405
79410
|
}
|
|
79406
79411
|
}
|
|
79407
79412
|
if (fabric || legacyBridge) {
|
|
79408
|
-
if (
|
|
79413
|
+
if (legacyBridge) {
|
|
79409
79414
|
result.targets[0].cxxDefines = [...defines, "USE_HERMES=1"];
|
|
79410
79415
|
hermesHeaders = import_node_path86.default.join(
|
|
79411
79416
|
options.projectRoot,
|
|
@@ -81025,8 +81030,8 @@ import UIKit
|
|
|
81025
81030
|
import React
|
|
81026
81031
|
${source}` : source;
|
|
81027
81032
|
}
|
|
81028
|
-
if (Object.
|
|
81029
|
-
(source) => swiftImportNames(source).includes("React")
|
|
81033
|
+
if (Object.entries(unit2.files).some(
|
|
81034
|
+
([file, source]) => (file.endsWith(".swift") ? swiftImportNames(source) : isSwiftNativeTranslationUnit(file) ? clangImportNames(source) : []).includes("React")
|
|
81030
81035
|
))
|
|
81031
81036
|
unit2.reactNativeProvider = true;
|
|
81032
81037
|
if (bridge) {
|
|
@@ -84124,7 +84129,7 @@ var init_nitro_superset = __esm({
|
|
|
84124
84129
|
init_nitroContract();
|
|
84125
84130
|
init_swift_standin_digest();
|
|
84126
84131
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
84127
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
84132
|
+
NITRO_COMPILER_DIGEST = true ? "5d9c921862ed6f56f65d8daf3a4981a638db7f72b45b2fc32f900ca1bffc46a7" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
84128
84133
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
84129
84134
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
84130
84135
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -84941,6 +84946,15 @@ async function compiledTurboProviders(appRoot, projectRoot, iosTarget) {
|
|
|
84941
84946
|
...Object.keys(config?.nativeModules ?? {}),
|
|
84942
84947
|
...Object.keys(config?.nativeViews ?? {})
|
|
84943
84948
|
]);
|
|
84949
|
+
if (!projectRoot) {
|
|
84950
|
+
const candidates = await discoverTurboProviders(
|
|
84951
|
+
appRoot,
|
|
84952
|
+
void 0,
|
|
84953
|
+
iosTarget,
|
|
84954
|
+
answered2
|
|
84955
|
+
);
|
|
84956
|
+
if (candidates.length === 0) return [];
|
|
84957
|
+
}
|
|
84944
84958
|
return discoverTurboProviders(
|
|
84945
84959
|
appRoot,
|
|
84946
84960
|
projectRoot ?? await prepareNativeAppRoot(appRoot),
|
|
@@ -84951,9 +84965,9 @@ async function compiledTurboProviders(appRoot, projectRoot, iosTarget) {
|
|
|
84951
84965
|
async function compileTurboApp(appRoot, origin, moduleRoot, iosTarget) {
|
|
84952
84966
|
const prebuilt = moduleRoot ? null : await prebuiltExpoNative(appRoot, iosTarget);
|
|
84953
84967
|
if (prebuilt) return prebuilt.turbo && { metadata: prebuilt.turbo, artifact: null };
|
|
84954
|
-
const
|
|
84955
|
-
const providers = await compiledTurboProviders(appRoot, projectRoot, iosTarget);
|
|
84968
|
+
const providers = await compiledTurboProviders(appRoot, void 0, iosTarget);
|
|
84956
84969
|
if (providers.length === 0) return null;
|
|
84970
|
+
const projectRoot = await prepareNativeAppRoot(appRoot, void 0, iosTarget);
|
|
84957
84971
|
const module2 = moduleRoot ?? await swiftDistributionRoot();
|
|
84958
84972
|
const installed2 = installedXcodeWorkspace(projectRoot) ? installedNativeLibraries(providers, projectRoot, module2, iosTarget) : null;
|
|
84959
84973
|
const unavailable2 = [...installed2?.unavailable ?? []].map(([name3, diagnostic]) => ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2095 | (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;
|
|
@@ -12440,7 +12440,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12440
12440
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12441
12441
|
var MULTI_MANIFEST_VERSION = 68;
|
|
12442
12442
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12443
|
-
var compilerSourceDigest = true ? "
|
|
12443
|
+
var compilerSourceDigest = true ? "972d5f3a05ad26521ac0d87e4883cfe5044f0bf7488b9d2b309e178c417f16dd" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
12444
12444
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12445
12445
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
12446
12446
|
hash.update(`swift-compile
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2095 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-compile.ts
|
|
4
4
|
import {
|
|
@@ -12421,7 +12421,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12421
12421
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12422
12422
|
var MULTI_MANIFEST_VERSION = 68;
|
|
12423
12423
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12424
|
-
var compilerSourceDigest = true ? "
|
|
12424
|
+
var compilerSourceDigest = true ? "972d5f3a05ad26521ac0d87e4883cfe5044f0bf7488b9d2b309e178c417f16dd" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
12425
12425
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12426
12426
|
const hash = createHash13("sha256");
|
|
12427
12427
|
hash.update(`swift-compile
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2095 | (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.2095 | (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.2095 | (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.2095 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2095 | (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": "
|
|
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": "9cd3aeacc7a5e402ba34765397bc4e3c5dacf09ad10183ad95879d0485351406", "xcode-target-members.ts": "ad7589132bffab265e8a10b64e24484fe88b4a2b1cc0ee19a97f151a002eca77", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -14889,6 +14889,9 @@ function rnxHomeDir() {
|
|
|
14889
14889
|
if (override && override.length > 0) return import_node_path17.default.resolve(override);
|
|
14890
14890
|
return ambientHomeDir();
|
|
14891
14891
|
}
|
|
14892
|
+
function peachSwiftSdksDir() {
|
|
14893
|
+
return process.env.PEACH_SWIFT_SDKS_PATH ?? import_node_path17.default.join(rnxHomeDir(), "swift", "sdks");
|
|
14894
|
+
}
|
|
14892
14895
|
function runtimesDir() {
|
|
14893
14896
|
return import_node_path17.default.join(rnxHomeDir(), "runtimes");
|
|
14894
14897
|
}
|
|
@@ -17009,7 +17012,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
17009
17012
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
17010
17013
|
var MULTI_MANIFEST_VERSION = 68;
|
|
17011
17014
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
17012
|
-
var compilerSourceDigest = true ? "
|
|
17015
|
+
var compilerSourceDigest = true ? "972d5f3a05ad26521ac0d87e4883cfe5044f0bf7488b9d2b309e178c417f16dd" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
17013
17016
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
17014
17017
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
17015
17018
|
hash.update(`swift-compile
|
|
@@ -26127,7 +26130,7 @@ async function swiftDistributionRoot(signal) {
|
|
|
26127
26130
|
}
|
|
26128
26131
|
}
|
|
26129
26132
|
async function installSwiftToolchain(release, sdk, signal, compilerOnly = false) {
|
|
26130
|
-
process.env.PEACH_SWIFT_SDKS_PATH
|
|
26133
|
+
process.env.PEACH_SWIFT_SDKS_PATH = peachSwiftSdksDir();
|
|
26131
26134
|
const root = import_node_path35.default.resolve(swiftToolchainBin(release), "../..");
|
|
26132
26135
|
const owned = process.platform === "darwin" ? import_node_path35.default.join(import_node_os11.default.homedir(), "Library/Developer/Toolchains", `${release}.xctoolchain`) : import_node_path35.default.join(rnxHomeDir(), "swift", "toolchains", release);
|
|
26133
26136
|
const selectedCompiler = process.platform === "darwin" && import_node_fs35.default.existsSync(import_node_path35.default.join(root, "usr/bin/swift"));
|
|
@@ -27542,7 +27545,7 @@ function shellAssetCatalogs(script, settings, projectDir) {
|
|
|
27542
27545
|
/\$\{([A-Za-z_][A-Za-z0-9_]*):-([^{}`]*)\}/g,
|
|
27543
27546
|
(_match, key2, fallback) => lookup(key2) || fallback
|
|
27544
27547
|
);
|
|
27545
|
-
if (/\$\{[A-Za-z_][A-Za-z0-9_]*(
|
|
27548
|
+
if (/\$\{[A-Za-z_][A-Za-z0-9_]*(?::|[-+=?]|[#%/^,])/.test(shell)) return null;
|
|
27546
27549
|
const value = expand(shell, lookup);
|
|
27547
27550
|
return /[$`]/.test(value) ? null : value;
|
|
27548
27551
|
};
|
|
@@ -27576,7 +27579,7 @@ function shellCopies(script, settings, projectDir) {
|
|
|
27576
27579
|
return value;
|
|
27577
27580
|
};
|
|
27578
27581
|
const word = (token2) => {
|
|
27579
|
-
if (/\$\{[A-Za-z_][A-Za-z0-9_]*(
|
|
27582
|
+
if (/\$\{[A-Za-z_][A-Za-z0-9_]*(?::|[-+=?]|[#%/^,])/.test(token2)) return null;
|
|
27580
27583
|
resolved = true;
|
|
27581
27584
|
const quote = token2[0];
|
|
27582
27585
|
const value = quote === "'" ? token2.slice(1, -1) : expand(quote === '"' ? token2.slice(1, -1) : token2, lookup);
|
|
@@ -28724,17 +28727,6 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
28724
28727
|
}
|
|
28725
28728
|
const infoPlistFile = settings("INFOPLIST_FILE") ? import_node_path38.default.resolve(app.project.projectDir, settings("INFOPLIST_FILE")) : null;
|
|
28726
28729
|
const entitlementsFile = settings("CODE_SIGN_ENTITLEMENTS") ? import_node_path38.default.resolve(app.project.projectDir, settings("CODE_SIGN_ENTITLEMENTS")) : null;
|
|
28727
|
-
const keychainAccessGroups = entitlementsFile ? readKeychainAccessGroups(
|
|
28728
|
-
import_plist2.default.parse(import_node_fs37.default.readFileSync(entitlementsFile, "utf8")),
|
|
28729
|
-
(value) => expand(value, (key2) => {
|
|
28730
|
-
const resolved = settings(key2);
|
|
28731
|
-
if (!resolved)
|
|
28732
|
-
throw new Error(
|
|
28733
|
-
`${entitlementsFile} references $(${key2}), which ${module2.name}'s build settings do not define${key2 === "CFBundleIdentifier" ? " (set PRODUCT_BUNDLE_IDENTIFIER; Xcode supplies it as CFBundleIdentifier)" : ""}`
|
|
28734
|
-
);
|
|
28735
|
-
return resolved;
|
|
28736
|
-
})
|
|
28737
|
-
) : void 0;
|
|
28738
28730
|
const infoPlistPending = module2.generatedInfoPlist && !options.prepareGeneratedSources;
|
|
28739
28731
|
const sourceInfo = infoPlistFile && !infoPlistPending ? import_plist2.default.parse(import_node_fs37.default.readFileSync(infoPlistFile, "utf8")) : {};
|
|
28740
28732
|
if (!sourceInfo || typeof sourceInfo !== "object" || Array.isArray(sourceInfo) || sourceInfo instanceof Date || Buffer.isBuffer(sourceInfo)) {
|
|
@@ -28758,6 +28750,18 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
28758
28750
|
if (info[key2] === void 0 && value) info[key2] = value;
|
|
28759
28751
|
}
|
|
28760
28752
|
}
|
|
28753
|
+
const bundleIdentifier = settings("PRODUCT_BUNDLE_IDENTIFIER") || (typeof info.CFBundleIdentifier === "string" ? info.CFBundleIdentifier : "");
|
|
28754
|
+
const keychainAccessGroups = entitlementsFile ? readKeychainAccessGroups(
|
|
28755
|
+
import_plist2.default.parse(import_node_fs37.default.readFileSync(entitlementsFile, "utf8")),
|
|
28756
|
+
(value) => expand(value, (key2) => {
|
|
28757
|
+
const resolved = key2 === "CFBundleIdentifier" ? bundleIdentifier : settings(key2);
|
|
28758
|
+
if (!resolved)
|
|
28759
|
+
throw new Error(
|
|
28760
|
+
`${entitlementsFile} references $(${key2}), which ${module2.name}'s build settings do not define`
|
|
28761
|
+
);
|
|
28762
|
+
return resolved;
|
|
28763
|
+
})
|
|
28764
|
+
) : void 0;
|
|
28761
28765
|
const postBundleScripts = [];
|
|
28762
28766
|
for (const id of [...list(app.target.buildPhases)].reverse()) {
|
|
28763
28767
|
const phase = app.project.object(id);
|
|
@@ -30088,7 +30092,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
30088
30092
|
return hash.digest("hex");
|
|
30089
30093
|
}
|
|
30090
30094
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
30091
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
30095
|
+
var STANDIN_SOURCE_DIGEST = true ? "dfa809f23971d606abf197cb27eb3400aed018aa43e25abf064d7543ff0597c2" : standinSourceDigest();
|
|
30092
30096
|
|
|
30093
30097
|
// src/swift-standins.ts
|
|
30094
30098
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2095 | (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": "
|
|
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": "9cd3aeacc7a5e402ba34765397bc4e3c5dacf09ad10183ad95879d0485351406", "xcode-target-members.ts": "ad7589132bffab265e8a10b64e24484fe88b4a2b1cc0ee19a97f151a002eca77", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -1905,7 +1905,7 @@ function readIosSdkTree(root) {
|
|
|
1905
1905
|
|
|
1906
1906
|
// src/swift-standin-digest.ts
|
|
1907
1907
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1908
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
1908
|
+
var STANDIN_SOURCE_DIGEST = true ? "dfa809f23971d606abf197cb27eb3400aed018aa43e25abf064d7543ff0597c2" : standinSourceDigest();
|
|
1909
1909
|
|
|
1910
1910
|
// src/expo-native-workspace.ts
|
|
1911
1911
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -5403,7 +5403,7 @@ var FOUNDATION_IMPLICIT_MODULES = [
|
|
|
5403
5403
|
var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
5404
5404
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
5405
5405
|
).join("");
|
|
5406
|
-
var compilerSourceDigest = true ? "
|
|
5406
|
+
var compilerSourceDigest = true ? "972d5f3a05ad26521ac0d87e4883cfe5044f0bf7488b9d2b309e178c417f16dd" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
5407
5407
|
var CORE_FOUNDATION_HANDLE_IMPORTS = [
|
|
5408
5408
|
"CFAllocator",
|
|
5409
5409
|
"CFArray",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2095 | (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/package.json
CHANGED
|
@@ -6,32 +6,15 @@
|
|
|
6
6
|
// Copyright 2010-2018 Apple Inc. All rights reserved.
|
|
7
7
|
//
|
|
8
8
|
|
|
9
|
+
#import <UIKitTypes/UIKitTypes.h>
|
|
9
10
|
#import <Foundation/Foundation.h>
|
|
10
11
|
#import <CoreGraphics/CoreGraphics.h>
|
|
11
12
|
#import <UIKit/UIKitDefines.h>
|
|
12
13
|
|
|
13
14
|
NS_ASSUME_NONNULL_BEGIN
|
|
14
15
|
|
|
15
|
-
typedef NS_ENUM(NSInteger, UIPrintInfoOutputType) {
|
|
16
|
-
UIPrintInfoOutputGeneral, // B&W or color, normal quality output for mixed text, graphics, and images
|
|
17
|
-
UIPrintInfoOutputPhoto, // B&W or color, best quality output for images
|
|
18
|
-
UIPrintInfoOutputGrayscale, // B&W content only
|
|
19
|
-
UIPrintInfoOutputPhotoGrayscale API_AVAILABLE(ios(7.0)) API_UNAVAILABLE(watchos), // B&W only, best quality output for images
|
|
20
|
-
} API_AVAILABLE(ios(4.2)) API_UNAVAILABLE(tvos, watchos);
|
|
21
|
-
|
|
22
|
-
typedef NS_ENUM(NSInteger, UIPrintInfoOrientation) {
|
|
23
|
-
UIPrintInfoOrientationPortrait,
|
|
24
|
-
UIPrintInfoOrientationLandscape,
|
|
25
|
-
} API_AVAILABLE(ios(4.2)) API_UNAVAILABLE(tvos, watchos);
|
|
26
|
-
|
|
27
|
-
typedef NS_ENUM(NSInteger, UIPrintInfoDuplex) {
|
|
28
|
-
UIPrintInfoDuplexNone,
|
|
29
|
-
UIPrintInfoDuplexLongEdge, // flip back page along long edge (same orientation in portrait, flipped for landscape)
|
|
30
|
-
UIPrintInfoDuplexShortEdge, // flip back page along short edge (flipped orientation for portrait, same in landscape)
|
|
31
|
-
} API_AVAILABLE(ios(4.2)) API_UNAVAILABLE(tvos, watchos);
|
|
32
|
-
|
|
33
16
|
UIKIT_EXTERN API_AVAILABLE(ios(4.2)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
|
|
34
|
-
@interface UIPrintInfo : NSObject <NSCopying, NSCoding>
|
|
17
|
+
PEACH_SWIFT_CLASS(UIKitCore) @interface UIPrintInfo : NSObject <NSCopying, NSCoding>
|
|
35
18
|
|
|
36
19
|
- (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
|
|
37
20
|
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
NS_HEADER_AUDIT_BEGIN(nullability, sendability)
|
|
14
14
|
|
|
15
15
|
UIKIT_EXTERN API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
|
|
16
|
-
@interface UIRegion : NSObject <NSCopying, NSCoding>
|
|
16
|
+
PEACH_SWIFT_CLASS(UIKitCore) @interface UIRegion : NSObject <NSCopying, NSCoding>
|
|
17
17
|
|
|
18
18
|
/*! A shared infinite region
|
|
19
19
|
*/
|
|
@@ -2283,3 +2283,21 @@ typedef NS_ENUM(NSInteger, UISplitViewControllerLayoutEnvironment) {
|
|
|
2283
2283
|
/// Contained within a collapsed split view controller.
|
|
2284
2284
|
UISplitViewControllerLayoutEnvironmentCollapsed
|
|
2285
2285
|
} API_AVAILABLE(ios(26.0), tvos(26.0), visionos(26.0)) API_UNAVAILABLE(watchos);
|
|
2286
|
+
|
|
2287
|
+
typedef NS_ENUM(NSInteger, UIPrintInfoOutputType) {
|
|
2288
|
+
UIPrintInfoOutputGeneral, // B&W or color, normal quality output for mixed text, graphics, and images
|
|
2289
|
+
UIPrintInfoOutputPhoto, // B&W or color, best quality output for images
|
|
2290
|
+
UIPrintInfoOutputGrayscale, // B&W content only
|
|
2291
|
+
UIPrintInfoOutputPhotoGrayscale API_AVAILABLE(ios(7.0)) API_UNAVAILABLE(watchos), // B&W only, best quality output for images
|
|
2292
|
+
} API_AVAILABLE(ios(4.2)) API_UNAVAILABLE(tvos, watchos);
|
|
2293
|
+
|
|
2294
|
+
typedef NS_ENUM(NSInteger, UIPrintInfoOrientation) {
|
|
2295
|
+
UIPrintInfoOrientationPortrait,
|
|
2296
|
+
UIPrintInfoOrientationLandscape,
|
|
2297
|
+
} API_AVAILABLE(ios(4.2)) API_UNAVAILABLE(tvos, watchos);
|
|
2298
|
+
|
|
2299
|
+
typedef NS_ENUM(NSInteger, UIPrintInfoDuplex) {
|
|
2300
|
+
UIPrintInfoDuplexNone,
|
|
2301
|
+
UIPrintInfoDuplexLongEdge, // flip back page along long edge (same orientation in portrait, flipped for landscape)
|
|
2302
|
+
UIPrintInfoDuplexShortEdge, // flip back page along short edge (flipped orientation for portrait, same in landscape)
|
|
2303
|
+
} API_AVAILABLE(ios(4.2)) API_UNAVAILABLE(tvos, watchos);
|
package/src/expo-swift-host.ts
CHANGED
|
@@ -71,6 +71,7 @@ import {
|
|
|
71
71
|
} from './swift-host'
|
|
72
72
|
import { iosDeploymentMinimum } from './swift-objc-standin'
|
|
73
73
|
import {
|
|
74
|
+
clangImportNames,
|
|
74
75
|
isSwiftNativeTranslationUnit,
|
|
75
76
|
manifestCalls,
|
|
76
77
|
moduleMapName,
|
|
@@ -808,8 +809,13 @@ function enrichInstalledUnits(
|
|
|
808
809
|
: source
|
|
809
810
|
}
|
|
810
811
|
if (
|
|
811
|
-
Object.
|
|
812
|
-
|
|
812
|
+
Object.entries(unit.files).some(([file, source]) =>
|
|
813
|
+
(file.endsWith('.swift')
|
|
814
|
+
? swiftImportNames(source)
|
|
815
|
+
: isSwiftNativeTranslationUnit(file)
|
|
816
|
+
? clangImportNames(source)
|
|
817
|
+
: []
|
|
818
|
+
).includes('React'),
|
|
813
819
|
)
|
|
814
820
|
)
|
|
815
821
|
unit.reactNativeProvider = true
|
package/src/home-paths.ts
CHANGED
|
@@ -56,6 +56,11 @@ export function rnxHomeDir(): string {
|
|
|
56
56
|
return ambientHomeDir()
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
// where the pinned wasm SDK installs unless PEACH_SWIFT_SDKS_PATH names another
|
|
60
|
+
export function peachSwiftSdksDir(): string {
|
|
61
|
+
return process.env.PEACH_SWIFT_SDKS_PATH ?? path.join(rnxHomeDir(), 'swift', 'sdks')
|
|
62
|
+
}
|
|
63
|
+
|
|
59
64
|
// detect when peach is running from a source checkout (the Contrast monorepo)
|
|
60
65
|
// rather than a published npm install. used to skip auto-install of the
|
|
61
66
|
// persistent launchd / systemd agent: dev shells shouldn't register an agent
|
|
@@ -10,7 +10,7 @@ import os from 'node:os'
|
|
|
10
10
|
import path from 'node:path'
|
|
11
11
|
import { installVerifiedTarball } from '@contrast/runtime-delivery'
|
|
12
12
|
import { ensureLinuxBrowserLibraries } from '../cli/drivers/linux-browser-libs'
|
|
13
|
-
import { rnxHomeDir } from './home-paths'
|
|
13
|
+
import { peachSwiftSdksDir, rnxHomeDir } from './home-paths'
|
|
14
14
|
import { swiftDistributionAt, swiftModuleSdk } from './swift-compile'
|
|
15
15
|
import {
|
|
16
16
|
SWIFT_DISTRIBUTION_MANIFEST,
|
|
@@ -208,7 +208,7 @@ async function installSwiftToolchain(
|
|
|
208
208
|
signal?: AbortSignal,
|
|
209
209
|
compilerOnly = false,
|
|
210
210
|
): Promise<string> {
|
|
211
|
-
process.env.PEACH_SWIFT_SDKS_PATH
|
|
211
|
+
process.env.PEACH_SWIFT_SDKS_PATH = peachSwiftSdksDir()
|
|
212
212
|
const root = path.resolve(swiftToolchainBin(release), '../..')
|
|
213
213
|
// macOS installs where the locator looks first, the user's Toolchains
|
|
214
214
|
// directory, and only into a directory without a compiler; linux installs
|
package/src/turbo-bundle.ts
CHANGED
|
@@ -31,6 +31,15 @@ export async function compiledTurboProviders(
|
|
|
31
31
|
...Object.keys(config?.nativeModules ?? {}),
|
|
32
32
|
...Object.keys(config?.nativeViews ?? {}),
|
|
33
33
|
])
|
|
34
|
+
if (!projectRoot) {
|
|
35
|
+
const candidates = await discoverTurboProviders(
|
|
36
|
+
appRoot,
|
|
37
|
+
undefined,
|
|
38
|
+
iosTarget,
|
|
39
|
+
answered,
|
|
40
|
+
)
|
|
41
|
+
if (candidates.length === 0) return []
|
|
42
|
+
}
|
|
34
43
|
return discoverTurboProviders(
|
|
35
44
|
appRoot,
|
|
36
45
|
projectRoot ?? (await prepareNativeAppRoot(appRoot)),
|
|
@@ -54,9 +63,9 @@ export async function compileTurboApp(
|
|
|
54
63
|
if (prebuilt) return prebuilt.turbo && { metadata: prebuilt.turbo, artifact: null }
|
|
55
64
|
// the app's own committed ios directory has no installed pods: discovery and
|
|
56
65
|
// the compile read the prepared workspace, as the Nitro compile does
|
|
57
|
-
const
|
|
58
|
-
const providers = await compiledTurboProviders(appRoot, projectRoot, iosTarget)
|
|
66
|
+
const providers = await compiledTurboProviders(appRoot, undefined, iosTarget)
|
|
59
67
|
if (providers.length === 0) return null
|
|
68
|
+
const projectRoot = await prepareNativeAppRoot(appRoot, undefined, iosTarget)
|
|
60
69
|
// the runtime archive is built against the published distribution, as the
|
|
61
70
|
// Nitro adapter is
|
|
62
71
|
const module = moduleRoot ?? (await swiftDistributionRoot())
|
package/src/turbo-source.ts
CHANGED
|
@@ -2211,7 +2211,7 @@ export async function collectTurboSources(options: {
|
|
|
2211
2211
|
// destructors and the runtime factory. a bridgeless app never starts
|
|
2212
2212
|
// RCTCxxBridge, so no Hermes runtime is made; an app that starts the
|
|
2213
2213
|
// legacy bridge stops at this error.
|
|
2214
|
-
if (
|
|
2214
|
+
if (legacyBridge) {
|
|
2215
2215
|
result.targets[0]!.cxxDefines = [...defines, 'USE_HERMES=1']
|
|
2216
2216
|
hermesHeaders = path.join(
|
|
2217
2217
|
options.projectRoot,
|