peachsim 0.1.2023 → 0.1.2025
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 +121 -40
- 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 +36 -18
- 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 +118 -39
- 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 +33 -8
- 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 +33 -8
- package/dist-lib/native-app-identity-project.cjs +33 -8
- package/dist-lib/native-app-identity-project.mjs +33 -8
- 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 +121 -40
- package/dist-lib/swift-compile.cjs +18 -5
- package/dist-lib/swift-compile.mjs +18 -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 +21 -11
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +35 -17
- 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-toolchain.ts +21 -10
- package/src/swift-wasm-prune.ts +12 -4
- package/src/turbo-bundle.ts +8 -0
- package/src/turbo-source.ts +60 -18
- package/src/xcode-project.ts +30 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2025 | (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": "
|
|
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": "1e190da48e39a8b58a4f784208c965177b09b9535a77e3455a1bab0b62d07783", "home-paths.ts": "af600a7f017474946ede726320a133d830e77e4e287b043d4fea026a945ce748", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "3dea1482aa4180b576e9151c1a687590d4b43261cadf7657788febb480a640d9", "xcode-target-members.ts": "ad7589132bffab265e8a10b64e24484fe88b4a2b1cc0ee19a97f151a002eca77", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -11317,11 +11317,7 @@ function verifySwiftSdk(swift, sdk) {
|
|
|
11317
11317
|
}
|
|
11318
11318
|
function installSwiftSdkArchive(swift, sdk, archive) {
|
|
11319
11319
|
validateSwiftSdkIdentity(sdk);
|
|
11320
|
-
const staging = import_node_fs26.default.realpathSync(
|
|
11321
|
-
import_node_fs26.default.mkdtempSync(
|
|
11322
|
-
import_node_path21.default.join(scratch?.directory ?? import_node_os5.default.tmpdir(), "peach-sdk-verification-")
|
|
11323
|
-
)
|
|
11324
|
-
);
|
|
11320
|
+
const staging = import_node_fs26.default.realpathSync(swiftSdkStagingDirectory("peach-sdk-verification-"));
|
|
11325
11321
|
try {
|
|
11326
11322
|
if (swiftFileChecksum(archive) !== sdk.wasmSdkChecksum)
|
|
11327
11323
|
throw new Error("declared Swift SDK archive checksum mismatch");
|
|
@@ -11388,6 +11384,11 @@ function installSwiftSdkArchive(swift, sdk, archive) {
|
|
|
11388
11384
|
if (file.startsWith(staging + import_node_path21.default.sep)) sdkFileHashes.delete(file);
|
|
11389
11385
|
}
|
|
11390
11386
|
}
|
|
11387
|
+
function swiftSdkStagingDirectory(prefix) {
|
|
11388
|
+
const parent = scratch?.directory ?? import_node_os5.default.tmpdir();
|
|
11389
|
+
if (!import_node_fs26.default.existsSync(parent)) throw new Error(`Swift SDK install is missing ${parent}`);
|
|
11390
|
+
return import_node_fs26.default.mkdtempSync(import_node_path21.default.join(parent, prefix));
|
|
11391
|
+
}
|
|
11391
11392
|
function installSwiftWasmSdk(release, sdk) {
|
|
11392
11393
|
validateSwiftSdkIdentity(sdk);
|
|
11393
11394
|
ensureSwiftLinuxRuntime(release);
|
|
@@ -11397,9 +11398,7 @@ function installSwiftWasmSdk(release, sdk) {
|
|
|
11397
11398
|
} catch {
|
|
11398
11399
|
}
|
|
11399
11400
|
const swift = import_node_path21.default.join(swiftCompiler(release), "swift");
|
|
11400
|
-
const staging =
|
|
11401
|
-
import_node_path21.default.join(scratch?.directory ?? import_node_os5.default.tmpdir(), "builder-swift-sdk-")
|
|
11402
|
-
);
|
|
11401
|
+
const staging = swiftSdkStagingDirectory("builder-swift-sdk-");
|
|
11403
11402
|
const archive = import_node_path21.default.join(staging, "sdk.artifactbundle.tar.gz");
|
|
11404
11403
|
try {
|
|
11405
11404
|
if (sdk.wasmSdkUrl.startsWith("file:"))
|
|
@@ -11431,6 +11430,8 @@ function swiftFileChecksum(file) {
|
|
|
11431
11430
|
}
|
|
11432
11431
|
function swiftHostCompilerFiles(release, root) {
|
|
11433
11432
|
const file = import_node_path21.default.join(root, "compiler.json");
|
|
11433
|
+
if (!import_node_fs26.default.existsSync(file))
|
|
11434
|
+
throw new Error(`Swift compiler ${release} is missing ${file}`);
|
|
11434
11435
|
const pin2 = release === privateSwiftRelease() ? {
|
|
11435
11436
|
identity: release.replace(/^.*-custom-/, ""),
|
|
11436
11437
|
manifest: swiftFileChecksum(file)
|
|
@@ -11446,6 +11447,9 @@ function swiftHostCompilerFiles(release, root) {
|
|
|
11446
11447
|
return files2.map(([relative3, checksum]) => {
|
|
11447
11448
|
if (relative3.startsWith("/") || relative3.split("/").includes("..") || typeof checksum !== "string")
|
|
11448
11449
|
throw new Error(`Swift compiler binary mismatch: ${relative3}`);
|
|
11450
|
+
const binary2 = import_node_path21.default.join(root, relative3);
|
|
11451
|
+
if (!import_node_fs26.default.existsSync(binary2))
|
|
11452
|
+
throw new Error(`Swift compiler ${release} is missing ${binary2}`);
|
|
11449
11453
|
return [relative3, checksum];
|
|
11450
11454
|
});
|
|
11451
11455
|
}
|
|
@@ -11460,6 +11464,9 @@ async function swiftCompilerAsync(release, signal) {
|
|
|
11460
11464
|
const cached2 = verifiedCompilers.get(release);
|
|
11461
11465
|
if (cached2) return cached2;
|
|
11462
11466
|
const bin = swiftToolchainBin(release);
|
|
11467
|
+
const binary2 = import_node_path21.default.join(bin, "swift");
|
|
11468
|
+
if (!import_node_fs26.default.existsSync(binary2))
|
|
11469
|
+
throw new Error(`Swift compiler ${release} is missing ${binary2}`);
|
|
11463
11470
|
if (release.includes("-custom-")) {
|
|
11464
11471
|
const root = import_node_path21.default.resolve(bin, "../..");
|
|
11465
11472
|
for (const [relative3, checksum] of swiftHostCompilerFiles(release, root)) {
|
|
@@ -11472,7 +11479,7 @@ async function swiftCompilerAsync(release, signal) {
|
|
|
11472
11479
|
throw new Error(`Swift compiler binary mismatch: ${relative3}`);
|
|
11473
11480
|
}
|
|
11474
11481
|
}
|
|
11475
|
-
const { stdout } = await (0, import_node_util6.promisify)(import_node_child_process11.execFile)(
|
|
11482
|
+
const { stdout } = await (0, import_node_util6.promisify)(import_node_child_process11.execFile)(binary2, ["--version"], {
|
|
11476
11483
|
encoding: "utf8",
|
|
11477
11484
|
env: swiftEnvironment(),
|
|
11478
11485
|
signal
|
|
@@ -11486,9 +11493,12 @@ function swiftCompiler(release) {
|
|
|
11486
11493
|
const cached2 = verifiedCompilers.get(release);
|
|
11487
11494
|
if (cached2) return cached2;
|
|
11488
11495
|
const bin = swiftToolchainBin(release);
|
|
11496
|
+
const binary2 = import_node_path21.default.join(bin, "swift");
|
|
11497
|
+
if (!import_node_fs26.default.existsSync(binary2))
|
|
11498
|
+
throw new Error(`Swift compiler ${release} is missing ${binary2}`);
|
|
11489
11499
|
if (release.includes("-custom-"))
|
|
11490
11500
|
verifySwiftHostCompiler(release, import_node_path21.default.resolve(bin, "../.."));
|
|
11491
|
-
const version2 = (0, import_node_child_process11.execFileSync)(
|
|
11501
|
+
const version2 = (0, import_node_child_process11.execFileSync)(binary2, ["--version"], {
|
|
11492
11502
|
encoding: "utf8",
|
|
11493
11503
|
env: swiftEnvironment(),
|
|
11494
11504
|
stdio: ["ignore", "pipe", "pipe"]
|
|
@@ -16234,8 +16244,13 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
16234
16244
|
} else if (!inStartLib) {
|
|
16235
16245
|
if (t.endsWith("/swiftrt.o")) {
|
|
16236
16246
|
swiftrtOrigPath = t;
|
|
16237
|
-
} else if (/\.(?:c|cc|cpp|cxx)\.o$/.test(t) && staticClangTargets.some((name3) => t.includes(`/${name3}.build/`))) {
|
|
16238
|
-
|
|
16247
|
+
} else if (/\.(?:c|cc|cpp|cxx|m|mm)\.o$/.test(t) && staticClangTargets.some((name3) => t.includes(`/${name3}.build/`))) {
|
|
16248
|
+
const obj = parseWasmObjectCached(t, false, false);
|
|
16249
|
+
if (obj.segNames.some(
|
|
16250
|
+
(name3) => name3 === "__objc_classes" || name3 === "__objc_cats"
|
|
16251
|
+
))
|
|
16252
|
+
eagerFiles.push(t);
|
|
16253
|
+
else lazyBuildObjects.set(t, obj);
|
|
16239
16254
|
} else {
|
|
16240
16255
|
eagerFiles.push(t);
|
|
16241
16256
|
}
|
|
@@ -22483,7 +22498,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
22483
22498
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
22484
22499
|
var MULTI_MANIFEST_VERSION = 68;
|
|
22485
22500
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
22486
|
-
var compilerSourceDigest = true ? "
|
|
22501
|
+
var compilerSourceDigest = true ? "fe103572785957edebe5d54673d572d1499fc7d0eafdd2179ec23d0870120986" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
22487
22502
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
22488
22503
|
const hash = (0, import_node_crypto17.createHash)("sha256");
|
|
22489
22504
|
hash.update(`swift-compile
|
|
@@ -29764,7 +29779,10 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
29764
29779
|
import_plist2.default.parse(import_node_fs48.default.readFileSync(entitlementsFile, "utf8")),
|
|
29765
29780
|
(value) => expand(value, (key2) => {
|
|
29766
29781
|
const resolved = settings(key2);
|
|
29767
|
-
if (!resolved)
|
|
29782
|
+
if (!resolved)
|
|
29783
|
+
throw new Error(
|
|
29784
|
+
`${entitlementsFile} references $(${key2}), which ${module2.name}'s build settings do not define${key2 === "CFBundleIdentifier" ? " (set PRODUCT_BUNDLE_IDENTIFIER; Xcode supplies it as CFBundleIdentifier)" : ""}`
|
|
29785
|
+
);
|
|
29768
29786
|
return resolved;
|
|
29769
29787
|
})
|
|
29770
29788
|
) : void 0;
|
|
@@ -31484,7 +31502,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
31484
31502
|
return hash.digest("hex");
|
|
31485
31503
|
}
|
|
31486
31504
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
31487
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
31505
|
+
var STANDIN_SOURCE_DIGEST = true ? "617f93092d86e6965b0aa7210cbe194fc406a251595265c3c0eec0b89c023dd5" : standinSourceDigest();
|
|
31488
31506
|
|
|
31489
31507
|
// src/expoSwiftContract.ts
|
|
31490
31508
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -31814,7 +31832,7 @@ async function packageTreeDigest(root) {
|
|
|
31814
31832
|
|
|
31815
31833
|
// src/expo-native-prebuilt.ts
|
|
31816
31834
|
var EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
31817
|
-
var EXPO_NATIVE_COMPILER_DIGEST = true ? "
|
|
31835
|
+
var EXPO_NATIVE_COMPILER_DIGEST = true ? "0eff2bdac5e7fa74e4fd2e853b849811ef67b005a67309153cc9cbd0ff661cf4" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
31818
31836
|
var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
31819
31837
|
function readSources(value) {
|
|
31820
31838
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2025 | (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/home-paths.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2025 | (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.2025 | (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": "
|
|
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": "1e190da48e39a8b58a4f784208c965177b09b9535a77e3455a1bab0b62d07783", "home-paths.ts": "af600a7f017474946ede726320a133d830e77e4e287b043d4fea026a945ce748", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "3dea1482aa4180b576e9151c1a687590d4b43261cadf7657788febb480a640d9", "xcode-target-members.ts": "ad7589132bffab265e8a10b64e24484fe88b4a2b1cc0ee19a97f151a002eca77", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -24130,11 +24130,7 @@ function verifySwiftSdk(swift, sdk) {
|
|
|
24130
24130
|
}
|
|
24131
24131
|
function installSwiftSdkArchive(swift, sdk, archive) {
|
|
24132
24132
|
validateSwiftSdkIdentity(sdk);
|
|
24133
|
-
const staging = import_node_fs31.default.realpathSync(
|
|
24134
|
-
import_node_fs31.default.mkdtempSync(
|
|
24135
|
-
import_node_path27.default.join(scratch?.directory ?? import_node_os5.default.tmpdir(), "peach-sdk-verification-")
|
|
24136
|
-
)
|
|
24137
|
-
);
|
|
24133
|
+
const staging = import_node_fs31.default.realpathSync(swiftSdkStagingDirectory("peach-sdk-verification-"));
|
|
24138
24134
|
try {
|
|
24139
24135
|
if (swiftFileChecksum(archive) !== sdk.wasmSdkChecksum)
|
|
24140
24136
|
throw new Error("declared Swift SDK archive checksum mismatch");
|
|
@@ -24201,6 +24197,11 @@ function installSwiftSdkArchive(swift, sdk, archive) {
|
|
|
24201
24197
|
if (file.startsWith(staging + import_node_path27.default.sep)) sdkFileHashes.delete(file);
|
|
24202
24198
|
}
|
|
24203
24199
|
}
|
|
24200
|
+
function swiftSdkStagingDirectory(prefix) {
|
|
24201
|
+
const parent = scratch?.directory ?? import_node_os5.default.tmpdir();
|
|
24202
|
+
if (!import_node_fs31.default.existsSync(parent)) throw new Error(`Swift SDK install is missing ${parent}`);
|
|
24203
|
+
return import_node_fs31.default.mkdtempSync(import_node_path27.default.join(parent, prefix));
|
|
24204
|
+
}
|
|
24204
24205
|
function installSwiftWasmSdk(release, sdk) {
|
|
24205
24206
|
validateSwiftSdkIdentity(sdk);
|
|
24206
24207
|
ensureSwiftLinuxRuntime(release);
|
|
@@ -24210,9 +24211,7 @@ function installSwiftWasmSdk(release, sdk) {
|
|
|
24210
24211
|
} catch {
|
|
24211
24212
|
}
|
|
24212
24213
|
const swift = import_node_path27.default.join(swiftCompiler(release), "swift");
|
|
24213
|
-
const staging =
|
|
24214
|
-
import_node_path27.default.join(scratch?.directory ?? import_node_os5.default.tmpdir(), "builder-swift-sdk-")
|
|
24215
|
-
);
|
|
24214
|
+
const staging = swiftSdkStagingDirectory("builder-swift-sdk-");
|
|
24216
24215
|
const archive = import_node_path27.default.join(staging, "sdk.artifactbundle.tar.gz");
|
|
24217
24216
|
try {
|
|
24218
24217
|
if (sdk.wasmSdkUrl.startsWith("file:"))
|
|
@@ -24244,6 +24243,8 @@ function swiftFileChecksum(file) {
|
|
|
24244
24243
|
}
|
|
24245
24244
|
function swiftHostCompilerFiles(release, root) {
|
|
24246
24245
|
const file = import_node_path27.default.join(root, "compiler.json");
|
|
24246
|
+
if (!import_node_fs31.default.existsSync(file))
|
|
24247
|
+
throw new Error(`Swift compiler ${release} is missing ${file}`);
|
|
24247
24248
|
const pin2 = release === privateSwiftRelease() ? {
|
|
24248
24249
|
identity: release.replace(/^.*-custom-/, ""),
|
|
24249
24250
|
manifest: swiftFileChecksum(file)
|
|
@@ -24259,6 +24260,9 @@ function swiftHostCompilerFiles(release, root) {
|
|
|
24259
24260
|
return files2.map(([relative4, checksum]) => {
|
|
24260
24261
|
if (relative4.startsWith("/") || relative4.split("/").includes("..") || typeof checksum !== "string")
|
|
24261
24262
|
throw new Error(`Swift compiler binary mismatch: ${relative4}`);
|
|
24263
|
+
const binary2 = import_node_path27.default.join(root, relative4);
|
|
24264
|
+
if (!import_node_fs31.default.existsSync(binary2))
|
|
24265
|
+
throw new Error(`Swift compiler ${release} is missing ${binary2}`);
|
|
24262
24266
|
return [relative4, checksum];
|
|
24263
24267
|
});
|
|
24264
24268
|
}
|
|
@@ -24273,6 +24277,9 @@ async function swiftCompilerAsync(release, signal) {
|
|
|
24273
24277
|
const cached3 = verifiedCompilers.get(release);
|
|
24274
24278
|
if (cached3) return cached3;
|
|
24275
24279
|
const bin = swiftToolchainBin(release);
|
|
24280
|
+
const binary2 = import_node_path27.default.join(bin, "swift");
|
|
24281
|
+
if (!import_node_fs31.default.existsSync(binary2))
|
|
24282
|
+
throw new Error(`Swift compiler ${release} is missing ${binary2}`);
|
|
24276
24283
|
if (release.includes("-custom-")) {
|
|
24277
24284
|
const root = import_node_path27.default.resolve(bin, "../..");
|
|
24278
24285
|
for (const [relative4, checksum] of swiftHostCompilerFiles(release, root)) {
|
|
@@ -24285,7 +24292,7 @@ async function swiftCompilerAsync(release, signal) {
|
|
|
24285
24292
|
throw new Error(`Swift compiler binary mismatch: ${relative4}`);
|
|
24286
24293
|
}
|
|
24287
24294
|
}
|
|
24288
|
-
const { stdout } = await (0, import_node_util6.promisify)(import_node_child_process12.execFile)(
|
|
24295
|
+
const { stdout } = await (0, import_node_util6.promisify)(import_node_child_process12.execFile)(binary2, ["--version"], {
|
|
24289
24296
|
encoding: "utf8",
|
|
24290
24297
|
env: swiftEnvironment(),
|
|
24291
24298
|
signal
|
|
@@ -24299,9 +24306,12 @@ function swiftCompiler(release) {
|
|
|
24299
24306
|
const cached3 = verifiedCompilers.get(release);
|
|
24300
24307
|
if (cached3) return cached3;
|
|
24301
24308
|
const bin = swiftToolchainBin(release);
|
|
24309
|
+
const binary2 = import_node_path27.default.join(bin, "swift");
|
|
24310
|
+
if (!import_node_fs31.default.existsSync(binary2))
|
|
24311
|
+
throw new Error(`Swift compiler ${release} is missing ${binary2}`);
|
|
24302
24312
|
if (release.includes("-custom-"))
|
|
24303
24313
|
verifySwiftHostCompiler(release, import_node_path27.default.resolve(bin, "../.."));
|
|
24304
|
-
const version2 = (0, import_node_child_process12.execFileSync)(
|
|
24314
|
+
const version2 = (0, import_node_child_process12.execFileSync)(binary2, ["--version"], {
|
|
24305
24315
|
encoding: "utf8",
|
|
24306
24316
|
env: swiftEnvironment(),
|
|
24307
24317
|
stdio: ["ignore", "pipe", "pipe"]
|
|
@@ -29049,8 +29059,13 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
29049
29059
|
} else if (!inStartLib) {
|
|
29050
29060
|
if (t.endsWith("/swiftrt.o")) {
|
|
29051
29061
|
swiftrtOrigPath = t;
|
|
29052
|
-
} else if (/\.(?:c|cc|cpp|cxx)\.o$/.test(t) && staticClangTargets.some((name3) => t.includes(`/${name3}.build/`))) {
|
|
29053
|
-
|
|
29062
|
+
} else if (/\.(?:c|cc|cpp|cxx|m|mm)\.o$/.test(t) && staticClangTargets.some((name3) => t.includes(`/${name3}.build/`))) {
|
|
29063
|
+
const obj = parseWasmObjectCached(t, false, false);
|
|
29064
|
+
if (obj.segNames.some(
|
|
29065
|
+
(name3) => name3 === "__objc_classes" || name3 === "__objc_cats"
|
|
29066
|
+
))
|
|
29067
|
+
eagerFiles.push(t);
|
|
29068
|
+
else lazyBuildObjects.set(t, obj);
|
|
29054
29069
|
} else {
|
|
29055
29070
|
eagerFiles.push(t);
|
|
29056
29071
|
}
|
|
@@ -35330,7 +35345,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
35330
35345
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
35331
35346
|
var MULTI_MANIFEST_VERSION = 68;
|
|
35332
35347
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
35333
|
-
var compilerSourceDigest = true ? "
|
|
35348
|
+
var compilerSourceDigest = true ? "fe103572785957edebe5d54673d572d1499fc7d0eafdd2179ec23d0870120986" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
35334
35349
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
35335
35350
|
const hash = (0, import_node_crypto21.createHash)("sha256");
|
|
35336
35351
|
hash.update(`swift-compile
|
|
@@ -42174,7 +42189,17 @@ function readXcodeScheme(xcodeprojOrWorkspace, scheme) {
|
|
|
42174
42189
|
);
|
|
42175
42190
|
const target = project2 && projectTargets(project2).find((ref) => ref.id === blueprint);
|
|
42176
42191
|
const name3 = target && str(target.target.name);
|
|
42177
|
-
if (!name3)
|
|
42192
|
+
if (!name3) {
|
|
42193
|
+
const declared = (project2 ? [project2] : projects2).flatMap(
|
|
42194
|
+
(candidate) => projectTargets(candidate).flatMap((ref) => {
|
|
42195
|
+
const targetName = str(ref.target.name);
|
|
42196
|
+
return targetName ? [targetName] : [];
|
|
42197
|
+
})
|
|
42198
|
+
);
|
|
42199
|
+
throw new Error(
|
|
42200
|
+
`scheme ${scheme} runs blueprint ${blueprint}, which no project here declares (declared targets: ${declared.join(", ") || "none"})`
|
|
42201
|
+
);
|
|
42202
|
+
}
|
|
42178
42203
|
return { target: name3, configuration };
|
|
42179
42204
|
}
|
|
42180
42205
|
var NativeAppTargetSelectionError = class extends Error {
|
|
@@ -42214,8 +42239,18 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
42214
42239
|
requireSources: false
|
|
42215
42240
|
}).includes(iosTarget)
|
|
42216
42241
|
);
|
|
42217
|
-
if (matches.length === 0)
|
|
42218
|
-
|
|
42242
|
+
if (matches.length === 0) {
|
|
42243
|
+
const known = [
|
|
42244
|
+
...new Set(
|
|
42245
|
+
projects2.flatMap(
|
|
42246
|
+
(entry) => listXcodeAppTargets(entry.xcodeproj, { requireSources: false })
|
|
42247
|
+
)
|
|
42248
|
+
)
|
|
42249
|
+
];
|
|
42250
|
+
throw new Error(
|
|
42251
|
+
`native app identity has no application target ${iosTarget}; pass --target with one of: ${known.join(", ") || "none"}`
|
|
42252
|
+
);
|
|
42253
|
+
}
|
|
42219
42254
|
if (matches.length > 1)
|
|
42220
42255
|
throw new Error(
|
|
42221
42256
|
`native app identity target ${iosTarget} is ambiguous across ${matches.map((entry) => entry.name).join(", ")}`
|
|
@@ -42240,7 +42275,9 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
42240
42275
|
if (hasScheme) target = readXcodeScheme(container, target).target;
|
|
42241
42276
|
}
|
|
42242
42277
|
if (!appTargets.includes(target))
|
|
42243
|
-
throw new Error(
|
|
42278
|
+
throw new Error(
|
|
42279
|
+
`native app identity has no application target ${target}; pass --target with one of: ${appTargets.join(", ") || "none"}`
|
|
42280
|
+
);
|
|
42244
42281
|
return { xcodeproj, target, workspace: project2.workspace };
|
|
42245
42282
|
}
|
|
42246
42283
|
var workspaceResolvedFile = (xcodeprojOrWorkspace) => import_node_path53.default.join(
|
|
@@ -42956,7 +42993,10 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
42956
42993
|
import_plist2.default.parse(import_node_fs54.default.readFileSync(entitlementsFile, "utf8")),
|
|
42957
42994
|
(value) => expand(value, (key2) => {
|
|
42958
42995
|
const resolved = settings(key2);
|
|
42959
|
-
if (!resolved)
|
|
42996
|
+
if (!resolved)
|
|
42997
|
+
throw new Error(
|
|
42998
|
+
`${entitlementsFile} references $(${key2}), which ${module2.name}'s build settings do not define${key2 === "CFBundleIdentifier" ? " (set PRODUCT_BUNDLE_IDENTIFIER; Xcode supplies it as CFBundleIdentifier)" : ""}`
|
|
42999
|
+
);
|
|
42960
43000
|
return resolved;
|
|
42961
43001
|
})
|
|
42962
43002
|
) : void 0;
|
|
@@ -44683,7 +44723,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
44683
44723
|
return hash.digest("hex");
|
|
44684
44724
|
}
|
|
44685
44725
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
44686
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
44726
|
+
var STANDIN_SOURCE_DIGEST = true ? "617f93092d86e6965b0aa7210cbe194fc406a251595265c3c0eec0b89c023dd5" : standinSourceDigest();
|
|
44687
44727
|
|
|
44688
44728
|
// src/expoSwiftContract.ts
|
|
44689
44729
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -45050,7 +45090,7 @@ async function packageTreeDigest(root) {
|
|
|
45050
45090
|
|
|
45051
45091
|
// src/expo-native-prebuilt.ts
|
|
45052
45092
|
var EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
45053
|
-
var EXPO_NATIVE_COMPILER_DIGEST = true ? "
|
|
45093
|
+
var EXPO_NATIVE_COMPILER_DIGEST = true ? "0eff2bdac5e7fa74e4fd2e853b849811ef67b005a67309153cc9cbd0ff661cf4" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
45054
45094
|
var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
45055
45095
|
function readSources(value) {
|
|
45056
45096
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -57340,14 +57380,48 @@ var REACT_NATIVE_BARE_HEADER_DIRS = [
|
|
|
57340
57380
|
function object5(value) {
|
|
57341
57381
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
57342
57382
|
}
|
|
57383
|
+
function packageManifest(root) {
|
|
57384
|
+
const manifestPath = import_node_path82.default.join(root, "package.json");
|
|
57385
|
+
if (!import_node_fs84.default.existsSync(manifestPath)) return null;
|
|
57386
|
+
const value = JSON.parse(import_node_fs84.default.readFileSync(manifestPath, "utf8"));
|
|
57387
|
+
if (!object5(value)) throw new Error(`${root}: package.json needs a name and version`);
|
|
57388
|
+
return value;
|
|
57389
|
+
}
|
|
57343
57390
|
function packageInfo2(root) {
|
|
57344
57391
|
root = import_node_fs84.default.realpathSync(root);
|
|
57345
|
-
const value =
|
|
57346
|
-
|
|
57347
|
-
|
|
57348
|
-
|
|
57349
|
-
|
|
57350
|
-
|
|
57392
|
+
const value = packageManifest(root);
|
|
57393
|
+
if (value) {
|
|
57394
|
+
if (typeof value.name !== "string" || typeof value.version !== "string")
|
|
57395
|
+
throw new Error(`${root}: package.json needs a name and version`);
|
|
57396
|
+
return { name: value.name, version: value.version, root };
|
|
57397
|
+
}
|
|
57398
|
+
let name3 = import_node_path82.default.basename(root);
|
|
57399
|
+
const configPath = import_node_path82.default.join(root, "expo-module.config.json");
|
|
57400
|
+
if (import_node_fs84.default.existsSync(configPath)) {
|
|
57401
|
+
const config = JSON.parse(import_node_fs84.default.readFileSync(configPath, "utf8"));
|
|
57402
|
+
if (object5(config) && typeof config.name === "string" && config.name !== "")
|
|
57403
|
+
name3 = config.name;
|
|
57404
|
+
}
|
|
57405
|
+
return { name: name3, version: "0.0.0", root };
|
|
57406
|
+
}
|
|
57407
|
+
var DECLARED_MODULE_NAME = /\bName\(\s*"(\w+)"\s*\)/g;
|
|
57408
|
+
var EXPORTED_MODULE = /\bRCT_(?:EXPORT_MODULE(?:_NO_LOAD)?|EXTERN_MODULE)\s*\(\s*(\w*)/g;
|
|
57409
|
+
function moduleNamesAnswered(root, files2, answered2) {
|
|
57410
|
+
const names = [];
|
|
57411
|
+
for (const file of files2) {
|
|
57412
|
+
if (!/\.(?:swift|m|mm)$/.test(file)) continue;
|
|
57413
|
+
const text6 = stripComments2(import_node_fs84.default.readFileSync(import_node_path82.default.join(root, file), "utf8"));
|
|
57414
|
+
for (const match of text6.matchAll(DECLARED_MODULE_NAME))
|
|
57415
|
+
if (match[1]) names.push(match[1]);
|
|
57416
|
+
for (const match of text6.matchAll(EXPORTED_MODULE)) {
|
|
57417
|
+
if (match[1]) names.push(match[1]);
|
|
57418
|
+
else {
|
|
57419
|
+
const cls = /@implementation\s+(\w+)/.exec(text6)?.[1];
|
|
57420
|
+
if (cls) names.push(cls);
|
|
57421
|
+
}
|
|
57422
|
+
}
|
|
57423
|
+
}
|
|
57424
|
+
return names.length > 0 && names.every((name3) => answered2.has(name3));
|
|
57351
57425
|
}
|
|
57352
57426
|
var sha2563 = (data) => (0, import_node_crypto43.createHash)("sha256").update(data).digest("hex");
|
|
57353
57427
|
function globRegex(glob) {
|
|
@@ -57813,7 +57887,7 @@ function registers(root, files2, objc = true) {
|
|
|
57813
57887
|
}
|
|
57814
57888
|
return false;
|
|
57815
57889
|
}
|
|
57816
|
-
async function discoverTurboProviders(appRoot, projectRoot, iosTarget) {
|
|
57890
|
+
async function discoverTurboProviders(appRoot, projectRoot, iosTarget, answered2 = /* @__PURE__ */ new Set()) {
|
|
57817
57891
|
const providers = [];
|
|
57818
57892
|
const candidates = [];
|
|
57819
57893
|
const autolinked = await iosAutolinkedDependencies(appRoot);
|
|
@@ -57837,6 +57911,9 @@ async function discoverTurboProviders(appRoot, projectRoot, iosTarget) {
|
|
|
57837
57911
|
if (!sources) continue;
|
|
57838
57912
|
const { root, files: files2 } = sources;
|
|
57839
57913
|
if (fabric || files2 !== null && registers(root, files2)) {
|
|
57914
|
+
const nameFiles = files2 ?? podGlobFiles(pod);
|
|
57915
|
+
if (answered2.size > 0 && nameFiles && moduleNamesAnswered(root, nameFiles, answered2))
|
|
57916
|
+
continue;
|
|
57840
57917
|
const dependencies = await Promise.all(
|
|
57841
57918
|
podspecDependencies(pod.text).map(
|
|
57842
57919
|
(dep) => resolveExternalTurboPod(dep.name, dep.requirements, dep.subspecs)
|
|
@@ -57897,10 +57974,8 @@ async function collectTurboSources(options) {
|
|
|
57897
57974
|
let moduleProviders = false;
|
|
57898
57975
|
const installedCodegenNames = new Set(
|
|
57899
57976
|
installedHeaderPods.flatMap((pod) => {
|
|
57900
|
-
const manifest =
|
|
57901
|
-
|
|
57902
|
-
);
|
|
57903
|
-
if (!object5(manifest) || !object5(manifest.codegenConfig)) return [];
|
|
57977
|
+
const manifest = packageManifest(pod.packageRoot);
|
|
57978
|
+
if (!manifest || !object5(manifest.codegenConfig)) return [];
|
|
57904
57979
|
const config = manifest.codegenConfig;
|
|
57905
57980
|
return typeof config.name === "string" && config.includesGeneratedCode !== true ? [config.name] : [];
|
|
57906
57981
|
})
|
|
@@ -58397,10 +58472,8 @@ async function collectTurboSources(options) {
|
|
|
58397
58472
|
};
|
|
58398
58473
|
for (const [name3, relative4] of pod.installed?.mappedHeaders ?? [])
|
|
58399
58474
|
header([name3], { label, root, relative: relative4 });
|
|
58400
|
-
const manifest =
|
|
58401
|
-
|
|
58402
|
-
);
|
|
58403
|
-
const codegenConfig = object5(manifest) && object5(manifest.codegenConfig) ? manifest.codegenConfig : null;
|
|
58475
|
+
const manifest = packageManifest(provider.root);
|
|
58476
|
+
const codegenConfig = manifest && object5(manifest.codegenConfig) ? manifest.codegenConfig : null;
|
|
58404
58477
|
const sources = [];
|
|
58405
58478
|
const codegenObjCSources = [];
|
|
58406
58479
|
const swiftSources = [];
|
|
@@ -62884,7 +62957,7 @@ async function nitroSupersetInputs(options) {
|
|
|
62884
62957
|
inputs[`provider:${name3}`] = `${packageVersion(root)}\0${await packageTreeDigest(root)}`;
|
|
62885
62958
|
return inputs;
|
|
62886
62959
|
}
|
|
62887
|
-
var NITRO_COMPILER_DIGEST = true ? "
|
|
62960
|
+
var NITRO_COMPILER_DIGEST = true ? "63280962f90f49d0cbcdde9cd2a6df23fe1c7300df112b6e14bff4a511b8c783" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
62888
62961
|
function readInputs(value) {
|
|
62889
62962
|
if (!isRecord(value)) return null;
|
|
62890
62963
|
const inputs = {};
|
|
@@ -63919,10 +63992,16 @@ async function compileTurboModule(options) {
|
|
|
63919
63992
|
// src/turbo-bundle.ts
|
|
63920
63993
|
var TURBO_ROUTE = "/__peach/turbo";
|
|
63921
63994
|
async function compiledTurboProviders(appRoot, projectRoot, iosTarget) {
|
|
63995
|
+
const config = await loadRNXAppConfig(resolveAppProject(appRoot));
|
|
63996
|
+
const answered2 = /* @__PURE__ */ new Set([
|
|
63997
|
+
...Object.keys(config?.nativeModules ?? {}),
|
|
63998
|
+
...Object.keys(config?.nativeViews ?? {})
|
|
63999
|
+
]);
|
|
63922
64000
|
return discoverTurboProviders(
|
|
63923
64001
|
appRoot,
|
|
63924
64002
|
projectRoot ?? await prepareNativeAppRoot(appRoot),
|
|
63925
|
-
iosTarget
|
|
64003
|
+
iosTarget,
|
|
64004
|
+
answered2
|
|
63926
64005
|
);
|
|
63927
64006
|
}
|
|
63928
64007
|
async function compileTurboApp(appRoot, origin, moduleRoot, iosTarget) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2025 | (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.2025 | (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.2025 | (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.2025 | (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;
|