peachsim 0.1.2023 → 0.1.2024
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 +114 -38
- 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 +29 -16
- 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 +111 -37
- 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 +114 -38
- package/dist-lib/swift-compile.cjs +11 -3
- package/dist-lib/swift-compile.mjs +11 -3
- 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 +28 -15
- 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/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.2024 | (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"]
|
|
@@ -22483,7 +22493,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
22483
22493
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
22484
22494
|
var MULTI_MANIFEST_VERSION = 68;
|
|
22485
22495
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
22486
|
-
var compilerSourceDigest = true ? "
|
|
22496
|
+
var compilerSourceDigest = true ? "62300abaade33badb0eb38ca4bb176c724e0c46b99bbc9981dfdec21bf9c3d27" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
22487
22497
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
22488
22498
|
const hash = (0, import_node_crypto17.createHash)("sha256");
|
|
22489
22499
|
hash.update(`swift-compile
|
|
@@ -29764,7 +29774,10 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
29764
29774
|
import_plist2.default.parse(import_node_fs48.default.readFileSync(entitlementsFile, "utf8")),
|
|
29765
29775
|
(value) => expand(value, (key2) => {
|
|
29766
29776
|
const resolved = settings(key2);
|
|
29767
|
-
if (!resolved)
|
|
29777
|
+
if (!resolved)
|
|
29778
|
+
throw new Error(
|
|
29779
|
+
`${entitlementsFile} references $(${key2}), which ${module2.name}'s build settings do not define${key2 === "CFBundleIdentifier" ? " (set PRODUCT_BUNDLE_IDENTIFIER; Xcode supplies it as CFBundleIdentifier)" : ""}`
|
|
29780
|
+
);
|
|
29768
29781
|
return resolved;
|
|
29769
29782
|
})
|
|
29770
29783
|
) : void 0;
|
|
@@ -31484,7 +31497,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
31484
31497
|
return hash.digest("hex");
|
|
31485
31498
|
}
|
|
31486
31499
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
31487
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
31500
|
+
var STANDIN_SOURCE_DIGEST = true ? "45fe12f22344d1e23a6afb0d49b48dc17521ea87010594b3664e90487b0aa10c" : standinSourceDigest();
|
|
31488
31501
|
|
|
31489
31502
|
// src/expoSwiftContract.ts
|
|
31490
31503
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -31814,7 +31827,7 @@ async function packageTreeDigest(root) {
|
|
|
31814
31827
|
|
|
31815
31828
|
// src/expo-native-prebuilt.ts
|
|
31816
31829
|
var EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
31817
|
-
var EXPO_NATIVE_COMPILER_DIGEST = true ? "
|
|
31830
|
+
var EXPO_NATIVE_COMPILER_DIGEST = true ? "3cedca17ebb7a28f378764f34fad8b005a9aecee64a990841fc2ab44d049e283" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
31818
31831
|
var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
31819
31832
|
function readSources(value) {
|
|
31820
31833
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2024 | (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.2024 | (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.2024 | (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"]
|
|
@@ -35330,7 +35340,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
35330
35340
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
35331
35341
|
var MULTI_MANIFEST_VERSION = 68;
|
|
35332
35342
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
35333
|
-
var compilerSourceDigest = true ? "
|
|
35343
|
+
var compilerSourceDigest = true ? "62300abaade33badb0eb38ca4bb176c724e0c46b99bbc9981dfdec21bf9c3d27" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
35334
35344
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
35335
35345
|
const hash = (0, import_node_crypto21.createHash)("sha256");
|
|
35336
35346
|
hash.update(`swift-compile
|
|
@@ -42174,7 +42184,17 @@ function readXcodeScheme(xcodeprojOrWorkspace, scheme) {
|
|
|
42174
42184
|
);
|
|
42175
42185
|
const target = project2 && projectTargets(project2).find((ref) => ref.id === blueprint);
|
|
42176
42186
|
const name3 = target && str(target.target.name);
|
|
42177
|
-
if (!name3)
|
|
42187
|
+
if (!name3) {
|
|
42188
|
+
const declared = (project2 ? [project2] : projects2).flatMap(
|
|
42189
|
+
(candidate) => projectTargets(candidate).flatMap((ref) => {
|
|
42190
|
+
const targetName = str(ref.target.name);
|
|
42191
|
+
return targetName ? [targetName] : [];
|
|
42192
|
+
})
|
|
42193
|
+
);
|
|
42194
|
+
throw new Error(
|
|
42195
|
+
`scheme ${scheme} runs blueprint ${blueprint}, which no project here declares (declared targets: ${declared.join(", ") || "none"})`
|
|
42196
|
+
);
|
|
42197
|
+
}
|
|
42178
42198
|
return { target: name3, configuration };
|
|
42179
42199
|
}
|
|
42180
42200
|
var NativeAppTargetSelectionError = class extends Error {
|
|
@@ -42214,8 +42234,18 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
42214
42234
|
requireSources: false
|
|
42215
42235
|
}).includes(iosTarget)
|
|
42216
42236
|
);
|
|
42217
|
-
if (matches.length === 0)
|
|
42218
|
-
|
|
42237
|
+
if (matches.length === 0) {
|
|
42238
|
+
const known = [
|
|
42239
|
+
...new Set(
|
|
42240
|
+
projects2.flatMap(
|
|
42241
|
+
(entry) => listXcodeAppTargets(entry.xcodeproj, { requireSources: false })
|
|
42242
|
+
)
|
|
42243
|
+
)
|
|
42244
|
+
];
|
|
42245
|
+
throw new Error(
|
|
42246
|
+
`native app identity has no application target ${iosTarget}; pass --target with one of: ${known.join(", ") || "none"}`
|
|
42247
|
+
);
|
|
42248
|
+
}
|
|
42219
42249
|
if (matches.length > 1)
|
|
42220
42250
|
throw new Error(
|
|
42221
42251
|
`native app identity target ${iosTarget} is ambiguous across ${matches.map((entry) => entry.name).join(", ")}`
|
|
@@ -42240,7 +42270,9 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
42240
42270
|
if (hasScheme) target = readXcodeScheme(container, target).target;
|
|
42241
42271
|
}
|
|
42242
42272
|
if (!appTargets.includes(target))
|
|
42243
|
-
throw new Error(
|
|
42273
|
+
throw new Error(
|
|
42274
|
+
`native app identity has no application target ${target}; pass --target with one of: ${appTargets.join(", ") || "none"}`
|
|
42275
|
+
);
|
|
42244
42276
|
return { xcodeproj, target, workspace: project2.workspace };
|
|
42245
42277
|
}
|
|
42246
42278
|
var workspaceResolvedFile = (xcodeprojOrWorkspace) => import_node_path53.default.join(
|
|
@@ -42956,7 +42988,10 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
42956
42988
|
import_plist2.default.parse(import_node_fs54.default.readFileSync(entitlementsFile, "utf8")),
|
|
42957
42989
|
(value) => expand(value, (key2) => {
|
|
42958
42990
|
const resolved = settings(key2);
|
|
42959
|
-
if (!resolved)
|
|
42991
|
+
if (!resolved)
|
|
42992
|
+
throw new Error(
|
|
42993
|
+
`${entitlementsFile} references $(${key2}), which ${module2.name}'s build settings do not define${key2 === "CFBundleIdentifier" ? " (set PRODUCT_BUNDLE_IDENTIFIER; Xcode supplies it as CFBundleIdentifier)" : ""}`
|
|
42994
|
+
);
|
|
42960
42995
|
return resolved;
|
|
42961
42996
|
})
|
|
42962
42997
|
) : void 0;
|
|
@@ -44683,7 +44718,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
44683
44718
|
return hash.digest("hex");
|
|
44684
44719
|
}
|
|
44685
44720
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
44686
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
44721
|
+
var STANDIN_SOURCE_DIGEST = true ? "45fe12f22344d1e23a6afb0d49b48dc17521ea87010594b3664e90487b0aa10c" : standinSourceDigest();
|
|
44687
44722
|
|
|
44688
44723
|
// src/expoSwiftContract.ts
|
|
44689
44724
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -45050,7 +45085,7 @@ async function packageTreeDigest(root) {
|
|
|
45050
45085
|
|
|
45051
45086
|
// src/expo-native-prebuilt.ts
|
|
45052
45087
|
var EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
45053
|
-
var EXPO_NATIVE_COMPILER_DIGEST = true ? "
|
|
45088
|
+
var EXPO_NATIVE_COMPILER_DIGEST = true ? "3cedca17ebb7a28f378764f34fad8b005a9aecee64a990841fc2ab44d049e283" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
45054
45089
|
var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
45055
45090
|
function readSources(value) {
|
|
45056
45091
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -57340,14 +57375,48 @@ var REACT_NATIVE_BARE_HEADER_DIRS = [
|
|
|
57340
57375
|
function object5(value) {
|
|
57341
57376
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
57342
57377
|
}
|
|
57378
|
+
function packageManifest(root) {
|
|
57379
|
+
const manifestPath = import_node_path82.default.join(root, "package.json");
|
|
57380
|
+
if (!import_node_fs84.default.existsSync(manifestPath)) return null;
|
|
57381
|
+
const value = JSON.parse(import_node_fs84.default.readFileSync(manifestPath, "utf8"));
|
|
57382
|
+
if (!object5(value)) throw new Error(`${root}: package.json needs a name and version`);
|
|
57383
|
+
return value;
|
|
57384
|
+
}
|
|
57343
57385
|
function packageInfo2(root) {
|
|
57344
57386
|
root = import_node_fs84.default.realpathSync(root);
|
|
57345
|
-
const value =
|
|
57346
|
-
|
|
57347
|
-
|
|
57348
|
-
|
|
57349
|
-
|
|
57350
|
-
|
|
57387
|
+
const value = packageManifest(root);
|
|
57388
|
+
if (value) {
|
|
57389
|
+
if (typeof value.name !== "string" || typeof value.version !== "string")
|
|
57390
|
+
throw new Error(`${root}: package.json needs a name and version`);
|
|
57391
|
+
return { name: value.name, version: value.version, root };
|
|
57392
|
+
}
|
|
57393
|
+
let name3 = import_node_path82.default.basename(root);
|
|
57394
|
+
const configPath = import_node_path82.default.join(root, "expo-module.config.json");
|
|
57395
|
+
if (import_node_fs84.default.existsSync(configPath)) {
|
|
57396
|
+
const config = JSON.parse(import_node_fs84.default.readFileSync(configPath, "utf8"));
|
|
57397
|
+
if (object5(config) && typeof config.name === "string" && config.name !== "")
|
|
57398
|
+
name3 = config.name;
|
|
57399
|
+
}
|
|
57400
|
+
return { name: name3, version: "0.0.0", root };
|
|
57401
|
+
}
|
|
57402
|
+
var DECLARED_MODULE_NAME = /\bName\(\s*"(\w+)"\s*\)/g;
|
|
57403
|
+
var EXPORTED_MODULE = /\bRCT_(?:EXPORT_MODULE(?:_NO_LOAD)?|EXTERN_MODULE)\s*\(\s*(\w*)/g;
|
|
57404
|
+
function moduleNamesAnswered(root, files2, answered2) {
|
|
57405
|
+
const names = [];
|
|
57406
|
+
for (const file of files2) {
|
|
57407
|
+
if (!/\.(?:swift|m|mm)$/.test(file)) continue;
|
|
57408
|
+
const text6 = stripComments2(import_node_fs84.default.readFileSync(import_node_path82.default.join(root, file), "utf8"));
|
|
57409
|
+
for (const match of text6.matchAll(DECLARED_MODULE_NAME))
|
|
57410
|
+
if (match[1]) names.push(match[1]);
|
|
57411
|
+
for (const match of text6.matchAll(EXPORTED_MODULE)) {
|
|
57412
|
+
if (match[1]) names.push(match[1]);
|
|
57413
|
+
else {
|
|
57414
|
+
const cls = /@implementation\s+(\w+)/.exec(text6)?.[1];
|
|
57415
|
+
if (cls) names.push(cls);
|
|
57416
|
+
}
|
|
57417
|
+
}
|
|
57418
|
+
}
|
|
57419
|
+
return names.length > 0 && names.every((name3) => answered2.has(name3));
|
|
57351
57420
|
}
|
|
57352
57421
|
var sha2563 = (data) => (0, import_node_crypto43.createHash)("sha256").update(data).digest("hex");
|
|
57353
57422
|
function globRegex(glob) {
|
|
@@ -57813,7 +57882,7 @@ function registers(root, files2, objc = true) {
|
|
|
57813
57882
|
}
|
|
57814
57883
|
return false;
|
|
57815
57884
|
}
|
|
57816
|
-
async function discoverTurboProviders(appRoot, projectRoot, iosTarget) {
|
|
57885
|
+
async function discoverTurboProviders(appRoot, projectRoot, iosTarget, answered2 = /* @__PURE__ */ new Set()) {
|
|
57817
57886
|
const providers = [];
|
|
57818
57887
|
const candidates = [];
|
|
57819
57888
|
const autolinked = await iosAutolinkedDependencies(appRoot);
|
|
@@ -57837,6 +57906,9 @@ async function discoverTurboProviders(appRoot, projectRoot, iosTarget) {
|
|
|
57837
57906
|
if (!sources) continue;
|
|
57838
57907
|
const { root, files: files2 } = sources;
|
|
57839
57908
|
if (fabric || files2 !== null && registers(root, files2)) {
|
|
57909
|
+
const nameFiles = files2 ?? podGlobFiles(pod);
|
|
57910
|
+
if (answered2.size > 0 && nameFiles && moduleNamesAnswered(root, nameFiles, answered2))
|
|
57911
|
+
continue;
|
|
57840
57912
|
const dependencies = await Promise.all(
|
|
57841
57913
|
podspecDependencies(pod.text).map(
|
|
57842
57914
|
(dep) => resolveExternalTurboPod(dep.name, dep.requirements, dep.subspecs)
|
|
@@ -57897,10 +57969,8 @@ async function collectTurboSources(options) {
|
|
|
57897
57969
|
let moduleProviders = false;
|
|
57898
57970
|
const installedCodegenNames = new Set(
|
|
57899
57971
|
installedHeaderPods.flatMap((pod) => {
|
|
57900
|
-
const manifest =
|
|
57901
|
-
|
|
57902
|
-
);
|
|
57903
|
-
if (!object5(manifest) || !object5(manifest.codegenConfig)) return [];
|
|
57972
|
+
const manifest = packageManifest(pod.packageRoot);
|
|
57973
|
+
if (!manifest || !object5(manifest.codegenConfig)) return [];
|
|
57904
57974
|
const config = manifest.codegenConfig;
|
|
57905
57975
|
return typeof config.name === "string" && config.includesGeneratedCode !== true ? [config.name] : [];
|
|
57906
57976
|
})
|
|
@@ -58397,10 +58467,8 @@ async function collectTurboSources(options) {
|
|
|
58397
58467
|
};
|
|
58398
58468
|
for (const [name3, relative4] of pod.installed?.mappedHeaders ?? [])
|
|
58399
58469
|
header([name3], { label, root, relative: relative4 });
|
|
58400
|
-
const manifest =
|
|
58401
|
-
|
|
58402
|
-
);
|
|
58403
|
-
const codegenConfig = object5(manifest) && object5(manifest.codegenConfig) ? manifest.codegenConfig : null;
|
|
58470
|
+
const manifest = packageManifest(provider.root);
|
|
58471
|
+
const codegenConfig = manifest && object5(manifest.codegenConfig) ? manifest.codegenConfig : null;
|
|
58404
58472
|
const sources = [];
|
|
58405
58473
|
const codegenObjCSources = [];
|
|
58406
58474
|
const swiftSources = [];
|
|
@@ -62884,7 +62952,7 @@ async function nitroSupersetInputs(options) {
|
|
|
62884
62952
|
inputs[`provider:${name3}`] = `${packageVersion(root)}\0${await packageTreeDigest(root)}`;
|
|
62885
62953
|
return inputs;
|
|
62886
62954
|
}
|
|
62887
|
-
var NITRO_COMPILER_DIGEST = true ? "
|
|
62955
|
+
var NITRO_COMPILER_DIGEST = true ? "72f3ca78a00eff3ac90bbb90ad753063c72dd0285b31464f692d6e16d4638eca" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
62888
62956
|
function readInputs(value) {
|
|
62889
62957
|
if (!isRecord(value)) return null;
|
|
62890
62958
|
const inputs = {};
|
|
@@ -63919,10 +63987,16 @@ async function compileTurboModule(options) {
|
|
|
63919
63987
|
// src/turbo-bundle.ts
|
|
63920
63988
|
var TURBO_ROUTE = "/__peach/turbo";
|
|
63921
63989
|
async function compiledTurboProviders(appRoot, projectRoot, iosTarget) {
|
|
63990
|
+
const config = await loadRNXAppConfig(resolveAppProject(appRoot));
|
|
63991
|
+
const answered2 = /* @__PURE__ */ new Set([
|
|
63992
|
+
...Object.keys(config?.nativeModules ?? {}),
|
|
63993
|
+
...Object.keys(config?.nativeViews ?? {})
|
|
63994
|
+
]);
|
|
63922
63995
|
return discoverTurboProviders(
|
|
63923
63996
|
appRoot,
|
|
63924
63997
|
projectRoot ?? await prepareNativeAppRoot(appRoot),
|
|
63925
|
-
iosTarget
|
|
63998
|
+
iosTarget,
|
|
63999
|
+
answered2
|
|
63926
64000
|
);
|
|
63927
64001
|
}
|
|
63928
64002
|
async function compileTurboApp(appRoot, origin, moduleRoot, iosTarget) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2024 | (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.2024 | (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.2024 | (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.2024 | (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/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2024 | (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
|
|
|
@@ -19648,7 +19648,7 @@ var FOUNDATION_IMPLICIT_MODULES = [
|
|
|
19648
19648
|
var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
19649
19649
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
19650
19650
|
).join("");
|
|
19651
|
-
var compilerSourceDigest = true ? "
|
|
19651
|
+
var compilerSourceDigest = true ? "62300abaade33badb0eb38ca4bb176c724e0c46b99bbc9981dfdec21bf9c3d27" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
19652
19652
|
var CORE_FOUNDATION_HANDLE_IMPORTS = [
|
|
19653
19653
|
"CFAllocator",
|
|
19654
19654
|
"CFArray",
|
|
@@ -20983,7 +20983,17 @@ function readXcodeScheme(xcodeprojOrWorkspace, scheme) {
|
|
|
20983
20983
|
);
|
|
20984
20984
|
const target = project && projectTargets(project).find((ref) => ref.id === blueprint);
|
|
20985
20985
|
const name2 = target && str(target.target.name);
|
|
20986
|
-
if (!name2)
|
|
20986
|
+
if (!name2) {
|
|
20987
|
+
const declared = (project ? [project] : projects).flatMap(
|
|
20988
|
+
(candidate) => projectTargets(candidate).flatMap((ref) => {
|
|
20989
|
+
const targetName = str(ref.target.name);
|
|
20990
|
+
return targetName ? [targetName] : [];
|
|
20991
|
+
})
|
|
20992
|
+
);
|
|
20993
|
+
throw new Error(
|
|
20994
|
+
`scheme ${scheme} runs blueprint ${blueprint}, which no project here declares (declared targets: ${declared.join(", ") || "none"})`
|
|
20995
|
+
);
|
|
20996
|
+
}
|
|
20987
20997
|
return { target: name2, configuration };
|
|
20988
20998
|
}
|
|
20989
20999
|
var NativeAppTargetSelectionError = class extends Error {
|
|
@@ -21023,8 +21033,18 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
21023
21033
|
requireSources: false
|
|
21024
21034
|
}).includes(iosTarget)
|
|
21025
21035
|
);
|
|
21026
|
-
if (matches.length === 0)
|
|
21027
|
-
|
|
21036
|
+
if (matches.length === 0) {
|
|
21037
|
+
const known = [
|
|
21038
|
+
...new Set(
|
|
21039
|
+
projects.flatMap(
|
|
21040
|
+
(entry) => listXcodeAppTargets(entry.xcodeproj, { requireSources: false })
|
|
21041
|
+
)
|
|
21042
|
+
)
|
|
21043
|
+
];
|
|
21044
|
+
throw new Error(
|
|
21045
|
+
`native app identity has no application target ${iosTarget}; pass --target with one of: ${known.join(", ") || "none"}`
|
|
21046
|
+
);
|
|
21047
|
+
}
|
|
21028
21048
|
if (matches.length > 1)
|
|
21029
21049
|
throw new Error(
|
|
21030
21050
|
`native app identity target ${iosTarget} is ambiguous across ${matches.map((entry) => entry.name).join(", ")}`
|
|
@@ -21049,7 +21069,9 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
21049
21069
|
if (hasScheme) target = readXcodeScheme(container, target).target;
|
|
21050
21070
|
}
|
|
21051
21071
|
if (!appTargets.includes(target))
|
|
21052
|
-
throw new Error(
|
|
21072
|
+
throw new Error(
|
|
21073
|
+
`native app identity has no application target ${target}; pass --target with one of: ${appTargets.join(", ") || "none"}`
|
|
21074
|
+
);
|
|
21053
21075
|
return { xcodeproj, target, workspace: project.workspace };
|
|
21054
21076
|
}
|
|
21055
21077
|
var workspaceResolvedFile = (xcodeprojOrWorkspace) => import_node_path26.default.join(
|
|
@@ -21748,7 +21770,10 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
21748
21770
|
import_plist3.default.parse(import_node_fs23.default.readFileSync(entitlementsFile, "utf8")),
|
|
21749
21771
|
(value) => expand(value, (key) => {
|
|
21750
21772
|
const resolved = settings(key);
|
|
21751
|
-
if (!resolved)
|
|
21773
|
+
if (!resolved)
|
|
21774
|
+
throw new Error(
|
|
21775
|
+
`${entitlementsFile} references $(${key}), which ${module2.name}'s build settings do not define${key === "CFBundleIdentifier" ? " (set PRODUCT_BUNDLE_IDENTIFIER; Xcode supplies it as CFBundleIdentifier)" : ""}`
|
|
21776
|
+
);
|
|
21752
21777
|
return resolved;
|
|
21753
21778
|
})
|
|
21754
21779
|
) : void 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2024 | (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;
|