peachsim 0.1.1844 → 0.1.1846
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/commands/shell-url.ts +1 -1
- 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 +80 -31
- 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 +46 -20
- 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 +84 -32
- 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 +224 -16
- 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 +224 -16
- package/dist-lib/native-app-identity-project.cjs +24 -6
- package/dist-lib/native-app-identity-project.mjs +24 -6
- 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 +287 -53
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +11 -3
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +1 -0
- package/package.json +1 -1
- package/src/expo-swift-host.ts +42 -17
- package/src/expoSwiftContract.ts +1 -0
- package/src/native-firebase-config.ts +271 -12
- package/src/nitro-dependencies.ts +14 -0
- package/src/turbo-source.ts +12 -3
- package/src/xcode-project.ts +38 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1846 | (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": "08583ee03b92e00f3f331e52fb480ef81c9fd7e668d796a5afcfa07978bcaf03", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "26f8d4a25d1af9917f0005153c73c9cefa4f6681c9d56c6333b8096190db0431", "swift-package.ts": "e224b5e20ed3a86df1c62d6429e88234ed65317ce32c61c1b6b02aaee173d64f", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "a90155695844684e625ab83687161104f028ef34030715a40042a4407b77fca0", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "
|
|
42
|
+
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "08583ee03b92e00f3f331e52fb480ef81c9fd7e668d796a5afcfa07978bcaf03", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "26f8d4a25d1af9917f0005153c73c9cefa4f6681c9d56c6333b8096190db0431", "swift-package.ts": "e224b5e20ed3a86df1c62d6429e88234ed65317ce32c61c1b6b02aaee173d64f", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "a90155695844684e625ab83687161104f028ef34030715a40042a4407b77fca0", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "3f580bf7c3c1c248f7671cf5bd7131dc2bb11324d1e0c67dd559e0d4e4de3f6f", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -2201,6 +2201,14 @@ var RN_FMT_11_DEPENDENCIES = [
|
|
|
2201
2201
|
sourceDirectories: ["include/fmt", "src"]
|
|
2202
2202
|
}
|
|
2203
2203
|
];
|
|
2204
|
+
var RN_FAST_FLOAT_6_DEPENDENCIES = RN_FMT_11_DEPENDENCIES.map(
|
|
2205
|
+
(dependency) => dependency.name === "fast_float" ? {
|
|
2206
|
+
...dependency,
|
|
2207
|
+
url: "https://github.com/fastfloat/fast_float/archive/v6.1.4.tar.gz",
|
|
2208
|
+
sha256: "12cb6d250824160ca16bcb9d51f0ca7693d0d10cb444f34f1093bc02acfce704",
|
|
2209
|
+
prefix: "fast_float-6.1.4"
|
|
2210
|
+
} : dependency
|
|
2211
|
+
);
|
|
2204
2212
|
var RN_FMT_12_DEPENDENCIES = [
|
|
2205
2213
|
...RN_SHARED_DEPENDENCIES,
|
|
2206
2214
|
{
|
|
@@ -27366,7 +27374,7 @@ function standinSourceDigest(srcDir = __sootsim_import_meta_dirname) {
|
|
|
27366
27374
|
}
|
|
27367
27375
|
return hash.digest("hex");
|
|
27368
27376
|
}
|
|
27369
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
27377
|
+
var STANDIN_SOURCE_DIGEST = true ? "0325c09fcc1b1b4d115920d8f47a5f2f7b4a0c394c928ae68586af45f80c5517" : standinSourceDigest();
|
|
27370
27378
|
|
|
27371
27379
|
// src/swift-standins.ts
|
|
27372
27380
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -36125,12 +36133,12 @@ async function witnessMatches(witness) {
|
|
|
36125
36133
|
}
|
|
36126
36134
|
return true;
|
|
36127
36135
|
}
|
|
36128
|
-
async function discoveryKey(root, installedWorkspace, prepareNative) {
|
|
36136
|
+
async function discoveryKey(root, installedWorkspace, prepareNative, iosTarget) {
|
|
36129
36137
|
const [config, expoConfig] = await Promise.all([
|
|
36130
36138
|
loadRNXAppConfig(resolveAppProject(root)),
|
|
36131
36139
|
readExpoConfigAsync(root)
|
|
36132
36140
|
]);
|
|
36133
|
-
return `${import_node_fs65.default.realpathSync(root)}\0${installedWorkspace ?? ""}\0${prepareNative ? "1" : "0"}\0${JSON.stringify(config)}\0${JSON.stringify(expoConfig)}`;
|
|
36141
|
+
return `${import_node_fs65.default.realpathSync(root)}\0${installedWorkspace ?? ""}\0${iosTarget ?? ""}\0${prepareNative ? "1" : "0"}\0${JSON.stringify(config)}\0${JSON.stringify(expoConfig)}`;
|
|
36134
36142
|
}
|
|
36135
36143
|
function cloneNativeTarget(target) {
|
|
36136
36144
|
return {
|
|
@@ -36482,17 +36490,18 @@ ${source}` : source;
|
|
|
36482
36490
|
}
|
|
36483
36491
|
for (const unit2 of units) unit2.nativeFiles = { ...unit2.nativeFiles, ...support };
|
|
36484
36492
|
}
|
|
36485
|
-
async function collectExpoSwiftSources(appRoot, signal, installedWorkspace, prepareNative = false) {
|
|
36493
|
+
async function collectExpoSwiftSources(appRoot, signal, installedWorkspace, prepareNative = false, iosTarget) {
|
|
36486
36494
|
if (traceStore.getStore())
|
|
36487
36495
|
return collectExpoSwiftSourcesUncached(
|
|
36488
36496
|
appRoot,
|
|
36489
36497
|
signal,
|
|
36490
36498
|
installedWorkspace,
|
|
36491
|
-
prepareNative
|
|
36499
|
+
prepareNative,
|
|
36500
|
+
iosTarget
|
|
36492
36501
|
);
|
|
36493
36502
|
signal?.throwIfAborted();
|
|
36494
36503
|
installSwiftInputTrace();
|
|
36495
|
-
const key2 = await discoveryKey(appRoot, installedWorkspace, prepareNative);
|
|
36504
|
+
const key2 = await discoveryKey(appRoot, installedWorkspace, prepareNative, iosTarget);
|
|
36496
36505
|
const cached2 = discoveryCache.get(key2);
|
|
36497
36506
|
if (cached2 && await witnessMatches(cached2.witness)) {
|
|
36498
36507
|
signal?.throwIfAborted();
|
|
@@ -36501,13 +36510,19 @@ async function collectExpoSwiftSources(appRoot, signal, installedWorkspace, prep
|
|
|
36501
36510
|
const witness = { marks: /* @__PURE__ */ new Map(), tainted: false };
|
|
36502
36511
|
const units = await traceStore.run(
|
|
36503
36512
|
witness,
|
|
36504
|
-
() => collectExpoSwiftSourcesUncached(
|
|
36513
|
+
() => collectExpoSwiftSourcesUncached(
|
|
36514
|
+
appRoot,
|
|
36515
|
+
signal,
|
|
36516
|
+
installedWorkspace,
|
|
36517
|
+
prepareNative,
|
|
36518
|
+
iosTarget
|
|
36519
|
+
)
|
|
36505
36520
|
);
|
|
36506
36521
|
if (witness.marks.size > 0 && await witnessMatches(witness))
|
|
36507
36522
|
discoveryCache.set(key2, { witness, units: cloneUnits(units) });
|
|
36508
36523
|
return cloneUnits(units);
|
|
36509
36524
|
}
|
|
36510
|
-
async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspace, prepareNative = false) {
|
|
36525
|
+
async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspace, prepareNative = false, iosTarget) {
|
|
36511
36526
|
const started = performance.now();
|
|
36512
36527
|
const report = (message) => console.error(`[expo-swift ${Math.round(performance.now() - started)}ms] ${message}`);
|
|
36513
36528
|
signal?.throwIfAborted();
|
|
@@ -36596,12 +36611,13 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
|
|
|
36596
36611
|
const module2 = await resolveSwiftModule({ signal });
|
|
36597
36612
|
moduleRoot = module2.root;
|
|
36598
36613
|
provided = new Set(swiftPeachModules(module2.root));
|
|
36599
|
-
await prepareXcodeSwiftPackages(installedWorkspace,
|
|
36614
|
+
await prepareXcodeSwiftPackages(installedWorkspace, iosTarget, void 0, signal);
|
|
36600
36615
|
moduleRoot = module2.root;
|
|
36601
36616
|
provided = new Set(swiftPeachModules(module2.root));
|
|
36602
36617
|
const snapshot = await withXcodeProject(
|
|
36603
36618
|
installedWorkspace,
|
|
36604
36619
|
{
|
|
36620
|
+
target: iosTarget,
|
|
36605
36621
|
configuration: "Debug",
|
|
36606
36622
|
interfaceRoot: module2.root,
|
|
36607
36623
|
moduleRoot: module2.root,
|
|
@@ -36688,8 +36704,14 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
|
|
|
36688
36704
|
);
|
|
36689
36705
|
continue;
|
|
36690
36706
|
}
|
|
36691
|
-
const prepared = await prepareExpoNativeWorkspace(appRoot, signal);
|
|
36692
|
-
return collectExpoSwiftSources(
|
|
36707
|
+
const prepared = await prepareExpoNativeWorkspace(appRoot, signal, iosTarget);
|
|
36708
|
+
return collectExpoSwiftSources(
|
|
36709
|
+
prepared.app,
|
|
36710
|
+
signal,
|
|
36711
|
+
prepared.workspace,
|
|
36712
|
+
false,
|
|
36713
|
+
iosTarget
|
|
36714
|
+
);
|
|
36693
36715
|
}
|
|
36694
36716
|
const declarations = [];
|
|
36695
36717
|
for (const descriptor of Array.isArray(modules) ? modules : []) {
|
|
@@ -36901,11 +36923,13 @@ ${import_node_fs65.default.readFileSync(source, "utf8")}`;
|
|
|
36901
36923
|
});
|
|
36902
36924
|
const cached2 = readExpoDiscovery(discovery.key);
|
|
36903
36925
|
if (cached2 !== void 0) return cached2;
|
|
36904
|
-
const prepared = await prepareExpoNativeWorkspace(appRoot, signal);
|
|
36926
|
+
const prepared = await prepareExpoNativeWorkspace(appRoot, signal, iosTarget);
|
|
36905
36927
|
const discovered = await collectExpoSwiftSources(
|
|
36906
36928
|
prepared.app,
|
|
36907
36929
|
signal,
|
|
36908
|
-
prepared.workspace
|
|
36930
|
+
prepared.workspace,
|
|
36931
|
+
false,
|
|
36932
|
+
iosTarget
|
|
36909
36933
|
);
|
|
36910
36934
|
const stored = writeExpoDiscovery({
|
|
36911
36935
|
key: discovery.key,
|
|
@@ -37190,7 +37214,7 @@ async function compileExpoSwiftModules(root, base, publishArtifact, options = {}
|
|
|
37190
37214
|
installSwiftInputTrace();
|
|
37191
37215
|
let key2;
|
|
37192
37216
|
try {
|
|
37193
|
-
key2 = await discoveryKey(root, options.installedWorkspace, true);
|
|
37217
|
+
key2 = await discoveryKey(root, options.installedWorkspace, true, options.iosTarget);
|
|
37194
37218
|
} catch {
|
|
37195
37219
|
return compileExpoSwiftModulesTraced(root, base, publishArtifact, options);
|
|
37196
37220
|
}
|
|
@@ -37225,7 +37249,8 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
37225
37249
|
root,
|
|
37226
37250
|
signal,
|
|
37227
37251
|
options.installedWorkspace,
|
|
37228
|
-
nativeWorkspaceAvailable()
|
|
37252
|
+
nativeWorkspaceAvailable(),
|
|
37253
|
+
options.iosTarget
|
|
37229
37254
|
);
|
|
37230
37255
|
signal.throwIfAborted();
|
|
37231
37256
|
const ios = import_node_path62.default.join(root, "ios");
|
|
@@ -37238,12 +37263,13 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
37238
37263
|
await ensureSwiftToolchain(signal);
|
|
37239
37264
|
const bridge = collectBridgeModuleSources(import_node_fs65.default.realpathSync(root), signal);
|
|
37240
37265
|
if (bridge && bridge.installedNamespaces.length > 0) {
|
|
37241
|
-
const workspace = options.installedWorkspace ?? (await prepareExpoNativeWorkspace(root, signal)).workspace;
|
|
37266
|
+
const workspace = options.installedWorkspace ?? (await prepareExpoNativeWorkspace(root, signal, options.iosTarget)).workspace;
|
|
37242
37267
|
const module3 = await resolveSwiftModule({ signal });
|
|
37243
|
-
await prepareXcodeSwiftPackages(workspace,
|
|
37268
|
+
await prepareXcodeSwiftPackages(workspace, options.iosTarget, void 0, signal);
|
|
37244
37269
|
await withXcodeProject(
|
|
37245
37270
|
workspace,
|
|
37246
37271
|
{
|
|
37272
|
+
target: options.iosTarget,
|
|
37247
37273
|
configuration: "Debug",
|
|
37248
37274
|
interfaceRoot: module3.root,
|
|
37249
37275
|
nativeModules: bridge.installedNamespaces
|
|
@@ -37611,7 +37637,7 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
37611
37637
|
)
|
|
37612
37638
|
);
|
|
37613
37639
|
const targetErrors = diagnostic.match(
|
|
37614
|
-
/^error: target .*$|^(?:error: )?[^\n:]+: missing or unsupported declared iOS deployment target .*$/gm
|
|
37640
|
+
/^error: target .*$|^(?:error: )?[^\n:]+: missing or unsupported declared iOS deployment target .*$|^(?:ld(?:\.lld)?|wasm-ld): error: .*$/gm
|
|
37615
37641
|
) ?? [];
|
|
37616
37642
|
const unitErrors = [...targetErrors, ...sourceErrors];
|
|
37617
37643
|
if (publishArtifact && targetErrors.length === 0 && (sourceErrors.length === 0 || sourceErrors.length !== errors.length) && !(error instanceof SwiftMissingModulesError))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1846 | (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.1846 | (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.1846 | (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": "08583ee03b92e00f3f331e52fb480ef81c9fd7e668d796a5afcfa07978bcaf03", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "26f8d4a25d1af9917f0005153c73c9cefa4f6681c9d56c6333b8096190db0431", "swift-package.ts": "e224b5e20ed3a86df1c62d6429e88234ed65317ce32c61c1b6b02aaee173d64f", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "a90155695844684e625ab83687161104f028ef34030715a40042a4407b77fca0", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "
|
|
42
|
+
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "08583ee03b92e00f3f331e52fb480ef81c9fd7e668d796a5afcfa07978bcaf03", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "26f8d4a25d1af9917f0005153c73c9cefa4f6681c9d56c6333b8096190db0431", "swift-package.ts": "e224b5e20ed3a86df1c62d6429e88234ed65317ce32c61c1b6b02aaee173d64f", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "a90155695844684e625ab83687161104f028ef34030715a40042a4407b77fca0", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "3f580bf7c3c1c248f7671cf5bd7131dc2bb11324d1e0c67dd559e0d4e4de3f6f", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -17254,6 +17254,14 @@ var RN_FMT_11_DEPENDENCIES = [
|
|
|
17254
17254
|
sourceDirectories: ["include/fmt", "src"]
|
|
17255
17255
|
}
|
|
17256
17256
|
];
|
|
17257
|
+
var RN_FAST_FLOAT_6_DEPENDENCIES = RN_FMT_11_DEPENDENCIES.map(
|
|
17258
|
+
(dependency) => dependency.name === "fast_float" ? {
|
|
17259
|
+
...dependency,
|
|
17260
|
+
url: "https://github.com/fastfloat/fast_float/archive/v6.1.4.tar.gz",
|
|
17261
|
+
sha256: "12cb6d250824160ca16bcb9d51f0ca7693d0d10cb444f34f1093bc02acfce704",
|
|
17262
|
+
prefix: "fast_float-6.1.4"
|
|
17263
|
+
} : dependency
|
|
17264
|
+
);
|
|
17257
17265
|
var RN_FMT_12_DEPENDENCIES = [
|
|
17258
17266
|
...RN_SHARED_DEPENDENCIES,
|
|
17259
17267
|
{
|
|
@@ -17308,6 +17316,7 @@ function rnDependencies(reactNativeVersion, reactNativeRoot) {
|
|
|
17308
17316
|
const minor = Number(/^0\.(\d+)\./.exec(reactNativeVersion)?.[1]);
|
|
17309
17317
|
if (minor >= 85) return RN_FMT_12_DEPENDENCIES;
|
|
17310
17318
|
if (minor >= 80) return RN_FMT_11_DEPENDENCIES;
|
|
17319
|
+
if (minor >= 78) return RN_FAST_FLOAT_6_DEPENDENCIES;
|
|
17311
17320
|
return [];
|
|
17312
17321
|
}
|
|
17313
17322
|
var HEADER = /\.(?:h|hpp|hxx|inl|ipp)$/;
|
|
@@ -36987,7 +36996,25 @@ var NativeAppTargetSelectionError = class extends Error {
|
|
|
36987
36996
|
function selectIosAppTarget(projectRoot, iosTarget) {
|
|
36988
36997
|
const nested = import_node_path45.default.join(projectRoot, "ios");
|
|
36989
36998
|
const iosRoot = import_node_fs46.default.existsSync(nested) ? nested : projectRoot;
|
|
36990
|
-
const
|
|
36999
|
+
const entries = import_node_fs46.default.readdirSync(iosRoot, { withFileTypes: true });
|
|
37000
|
+
const projects2 = (entries.some((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")) ? entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")).map((entry) => ({
|
|
37001
|
+
xcodeproj: import_node_path45.default.join(iosRoot, entry.name),
|
|
37002
|
+
workspace: null
|
|
37003
|
+
})) : entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcworkspace")).flatMap((entry) => {
|
|
37004
|
+
const workspace = import_node_path45.default.join(iosRoot, entry.name);
|
|
37005
|
+
return workspaceReferences(workspace).map((xcodeproj2) => ({
|
|
37006
|
+
xcodeproj: xcodeproj2,
|
|
37007
|
+
workspace
|
|
37008
|
+
}));
|
|
37009
|
+
}).filter(
|
|
37010
|
+
({ xcodeproj: xcodeproj2 }) => xcodeproj2.endsWith(".xcodeproj") && !xcodeproj2.split(import_node_path45.default.sep).includes("Pods") && import_node_fs46.default.existsSync(xcodeproj2)
|
|
37011
|
+
).filter(
|
|
37012
|
+
({ xcodeproj: xcodeproj2 }) => listXcodeAppTargets(xcodeproj2, { requireSources: false }).length > 0
|
|
37013
|
+
)).map(({ xcodeproj: xcodeproj2, workspace }) => ({
|
|
37014
|
+
xcodeproj: xcodeproj2,
|
|
37015
|
+
workspace,
|
|
37016
|
+
name: import_node_path45.default.basename(xcodeproj2)
|
|
37017
|
+
}));
|
|
36991
37018
|
if (projects2.length === 0) return null;
|
|
36992
37019
|
if (projects2.length > 1 && !iosTarget) {
|
|
36993
37020
|
throw new NativeAppTargetSelectionError(
|
|
@@ -36997,7 +37024,7 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
36997
37024
|
let project2 = projects2[0];
|
|
36998
37025
|
if (iosTarget && projects2.length > 1) {
|
|
36999
37026
|
const matches = projects2.filter(
|
|
37000
|
-
(entry) => listXcodeAppTargets(
|
|
37027
|
+
(entry) => listXcodeAppTargets(entry.xcodeproj, {
|
|
37001
37028
|
requireSources: false
|
|
37002
37029
|
}).includes(iosTarget)
|
|
37003
37030
|
);
|
|
@@ -37009,7 +37036,7 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
37009
37036
|
);
|
|
37010
37037
|
project2 = matches[0];
|
|
37011
37038
|
}
|
|
37012
|
-
const xcodeproj =
|
|
37039
|
+
const xcodeproj = project2.xcodeproj;
|
|
37013
37040
|
const appTargets = listXcodeAppTargets(xcodeproj, { requireSources: false });
|
|
37014
37041
|
let target = iosTarget ?? defaultXcodeAppTarget(xcodeproj);
|
|
37015
37042
|
if (!target) throw new Error("native app identity has no iOS application target");
|
|
@@ -37028,7 +37055,7 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
37028
37055
|
}
|
|
37029
37056
|
if (!appTargets.includes(target))
|
|
37030
37057
|
throw new Error(`native app identity has no application target ${target}`);
|
|
37031
|
-
return { xcodeproj, target };
|
|
37058
|
+
return { xcodeproj, target, workspace: project2.workspace };
|
|
37032
37059
|
}
|
|
37033
37060
|
var workspaceResolvedFile = (xcodeprojOrWorkspace) => import_node_path45.default.join(
|
|
37034
37061
|
xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : import_node_path45.default.join(xcodeprojOrWorkspace, "project.xcworkspace"),
|
|
@@ -40578,7 +40605,7 @@ function standinSourceDigest(srcDir = __sootsim_import_meta_dirname) {
|
|
|
40578
40605
|
}
|
|
40579
40606
|
return hash.digest("hex");
|
|
40580
40607
|
}
|
|
40581
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
40608
|
+
var STANDIN_SOURCE_DIGEST = true ? "0325c09fcc1b1b4d115920d8f47a5f2f7b4a0c394c928ae68586af45f80c5517" : standinSourceDigest();
|
|
40582
40609
|
|
|
40583
40610
|
// src/swift-standins.ts
|
|
40584
40611
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -51859,6 +51886,7 @@ async function collectTurboSources(options) {
|
|
|
51859
51886
|
(provider) => readPod(provider, options.appRoot, options.installedPods?.get(provider.name))
|
|
51860
51887
|
);
|
|
51861
51888
|
let codegen = null;
|
|
51889
|
+
let moduleProviders = false;
|
|
51862
51890
|
const installedCodegenNames = new Set(
|
|
51863
51891
|
installedHeaderPods.flatMap((pod) => {
|
|
51864
51892
|
const manifest = JSON.parse(
|
|
@@ -52727,6 +52755,7 @@ ${declared.map((symbol2) => `extern "C" void ${symbol2}();
|
|
|
52727
52755
|
codegen ??= (await runInstalledTurboCodegen(options.appRoot, options.codegenDir)).generatedRoot;
|
|
52728
52756
|
const generated = codegenSpecRoot(codegen);
|
|
52729
52757
|
if (import_node_fs74.default.existsSync(import_node_path72.default.join(generated, "RCTModuleProviders.mm"))) {
|
|
52758
|
+
moduleProviders = true;
|
|
52730
52759
|
original(TURBO_CORE_TARGET, "ReactCodegen", generated, "RCTModuleProviders.mm");
|
|
52731
52760
|
alias(
|
|
52732
52761
|
`${core}/include/ReactCodegen/RCTModuleProviders.h`,
|
|
@@ -52790,7 +52819,8 @@ ${declared.map((symbol2) => `extern "C" void ${symbol2}();
|
|
|
52790
52819
|
[...objcClasses].sort(),
|
|
52791
52820
|
[...unregisteredObjcClasses].sort(),
|
|
52792
52821
|
decoratorHasPerformanceLogger,
|
|
52793
|
-
managerHasDevMenuDecorator
|
|
52822
|
+
managerHasDevMenuDecorator,
|
|
52823
|
+
moduleProviders
|
|
52794
52824
|
) : turboHostSource(withRuntime)
|
|
52795
52825
|
);
|
|
52796
52826
|
scanText(
|
|
@@ -52918,7 +52948,7 @@ extern "C" __attribute__((export_name("peach_turbo_module_names"))) const char*
|
|
|
52918
52948
|
}
|
|
52919
52949
|
`;
|
|
52920
52950
|
}
|
|
52921
|
-
function turboObjCHostSource(objcClasses, unregisteredClasses, decoratorHasPerformanceLogger, managerHasDevMenuDecorator) {
|
|
52951
|
+
function turboObjCHostSource(objcClasses, unregisteredClasses, decoratorHasPerformanceLogger, managerHasDevMenuDecorator, moduleProviders) {
|
|
52922
52952
|
const classNamesList = objcClasses.map((name3) => `@${JSON.stringify(name3)}`).join(", ");
|
|
52923
52953
|
const unregisteredList = unregisteredClasses.map((name3) => `@${JSON.stringify(name3)}`).join(", ");
|
|
52924
52954
|
return `// React Native's RCTTurboModuleManager on the process's JSI runtime, set up
|
|
@@ -52939,7 +52969,7 @@ function turboObjCHostSource(objcClasses, unregisteredClasses, decoratorHasPerfo
|
|
|
52939
52969
|
${decoratorHasPerformanceLogger ? "#import <React/RCTPerformanceLogger.h>" : ""}
|
|
52940
52970
|
#import <React/RCTBridgeModule.h>
|
|
52941
52971
|
#import <React/RCTEventDispatcherProtocol.h>
|
|
52942
|
-
#import <ReactCodegen/RCTModuleProviders.h>
|
|
52972
|
+
${moduleProviders ? "#import <ReactCodegen/RCTModuleProviders.h>" : ""}
|
|
52943
52973
|
#import <ReactCommon/CxxTurboModuleUtils.h>
|
|
52944
52974
|
#import <ReactCommon/RCTTurboModuleManager.h>
|
|
52945
52975
|
#include <os/log.h>
|
|
@@ -53182,10 +53212,11 @@ static RCTTurboModuleManager *manager;
|
|
|
53182
53212
|
return module;
|
|
53183
53213
|
}
|
|
53184
53214
|
|
|
53185
|
-
|
|
53215
|
+
${moduleProviders ? `- (id<RCTModuleProvider>)getModuleProvider:(const char *)name
|
|
53186
53216
|
{
|
|
53187
53217
|
return RCTModuleProviders.moduleProviders[@(name)];
|
|
53188
53218
|
}
|
|
53219
|
+
` : ""}
|
|
53189
53220
|
|
|
53190
53221
|
- (std::shared_ptr<react::TurboModule>)getTurboModule:(const std::string &)name
|
|
53191
53222
|
jsInvoker:(std::shared_ptr<react::CallInvoker>)jsInvoker
|
|
@@ -53273,7 +53304,7 @@ extern "C" __attribute__((export_name("peach_turbo_module_names"))) const char*
|
|
|
53273
53304
|
NSMutableOrderedSet<NSString *> *found = [NSMutableOrderedSet new];
|
|
53274
53305
|
for (const auto& [name, provider] : react::globalExportedCxxTurboModuleMap())
|
|
53275
53306
|
[found addObject:@(name.c_str())];
|
|
53276
|
-
[found addObjectsFromArray:RCTModuleProviders.moduleProviders.allKeys];
|
|
53307
|
+
${moduleProviders ? " [found addObjectsFromArray:RCTModuleProviders.moduleProviders.allKeys];" : ""}
|
|
53277
53308
|
for (Class moduleClass in RCTGetModuleClasses())
|
|
53278
53309
|
if (moduleClass != [PeachTurboRegistry class] &&
|
|
53279
53310
|
moduleClass != [PeachImageURLLoading class] &&
|
|
@@ -53527,12 +53558,12 @@ async function witnessMatches(witness) {
|
|
|
53527
53558
|
}
|
|
53528
53559
|
return true;
|
|
53529
53560
|
}
|
|
53530
|
-
async function discoveryKey(root, installedWorkspace, prepareNative) {
|
|
53561
|
+
async function discoveryKey(root, installedWorkspace, prepareNative, iosTarget) {
|
|
53531
53562
|
const [config, expoConfig] = await Promise.all([
|
|
53532
53563
|
loadRNXAppConfig(resolveAppProject(root)),
|
|
53533
53564
|
readExpoConfigAsync(root)
|
|
53534
53565
|
]);
|
|
53535
|
-
return `${import_node_fs75.default.realpathSync(root)}\0${installedWorkspace ?? ""}\0${prepareNative ? "1" : "0"}\0${JSON.stringify(config)}\0${JSON.stringify(expoConfig)}`;
|
|
53566
|
+
return `${import_node_fs75.default.realpathSync(root)}\0${installedWorkspace ?? ""}\0${iosTarget ?? ""}\0${prepareNative ? "1" : "0"}\0${JSON.stringify(config)}\0${JSON.stringify(expoConfig)}`;
|
|
53536
53567
|
}
|
|
53537
53568
|
function cloneNativeTarget(target) {
|
|
53538
53569
|
return {
|
|
@@ -53884,17 +53915,18 @@ ${source}` : source;
|
|
|
53884
53915
|
}
|
|
53885
53916
|
for (const unit2 of units) unit2.nativeFiles = { ...unit2.nativeFiles, ...support };
|
|
53886
53917
|
}
|
|
53887
|
-
async function collectExpoSwiftSources(appRoot, signal, installedWorkspace, prepareNative = false) {
|
|
53918
|
+
async function collectExpoSwiftSources(appRoot, signal, installedWorkspace, prepareNative = false, iosTarget) {
|
|
53888
53919
|
if (traceStore.getStore())
|
|
53889
53920
|
return collectExpoSwiftSourcesUncached(
|
|
53890
53921
|
appRoot,
|
|
53891
53922
|
signal,
|
|
53892
53923
|
installedWorkspace,
|
|
53893
|
-
prepareNative
|
|
53924
|
+
prepareNative,
|
|
53925
|
+
iosTarget
|
|
53894
53926
|
);
|
|
53895
53927
|
signal?.throwIfAborted();
|
|
53896
53928
|
installSwiftInputTrace();
|
|
53897
|
-
const key2 = await discoveryKey(appRoot, installedWorkspace, prepareNative);
|
|
53929
|
+
const key2 = await discoveryKey(appRoot, installedWorkspace, prepareNative, iosTarget);
|
|
53898
53930
|
const cached3 = discoveryCache.get(key2);
|
|
53899
53931
|
if (cached3 && await witnessMatches(cached3.witness)) {
|
|
53900
53932
|
signal?.throwIfAborted();
|
|
@@ -53903,13 +53935,19 @@ async function collectExpoSwiftSources(appRoot, signal, installedWorkspace, prep
|
|
|
53903
53935
|
const witness = { marks: /* @__PURE__ */ new Map(), tainted: false };
|
|
53904
53936
|
const units = await traceStore.run(
|
|
53905
53937
|
witness,
|
|
53906
|
-
() => collectExpoSwiftSourcesUncached(
|
|
53938
|
+
() => collectExpoSwiftSourcesUncached(
|
|
53939
|
+
appRoot,
|
|
53940
|
+
signal,
|
|
53941
|
+
installedWorkspace,
|
|
53942
|
+
prepareNative,
|
|
53943
|
+
iosTarget
|
|
53944
|
+
)
|
|
53907
53945
|
);
|
|
53908
53946
|
if (witness.marks.size > 0 && await witnessMatches(witness))
|
|
53909
53947
|
discoveryCache.set(key2, { witness, units: cloneUnits(units) });
|
|
53910
53948
|
return cloneUnits(units);
|
|
53911
53949
|
}
|
|
53912
|
-
async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspace, prepareNative = false) {
|
|
53950
|
+
async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspace, prepareNative = false, iosTarget) {
|
|
53913
53951
|
const started = performance.now();
|
|
53914
53952
|
const report = (message) => console.error(`[expo-swift ${Math.round(performance.now() - started)}ms] ${message}`);
|
|
53915
53953
|
signal?.throwIfAborted();
|
|
@@ -53998,12 +54036,13 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
|
|
|
53998
54036
|
const module2 = await resolveSwiftModule({ signal });
|
|
53999
54037
|
moduleRoot = module2.root;
|
|
54000
54038
|
provided = new Set(swiftPeachModules(module2.root));
|
|
54001
|
-
await prepareXcodeSwiftPackages(installedWorkspace,
|
|
54039
|
+
await prepareXcodeSwiftPackages(installedWorkspace, iosTarget, void 0, signal);
|
|
54002
54040
|
moduleRoot = module2.root;
|
|
54003
54041
|
provided = new Set(swiftPeachModules(module2.root));
|
|
54004
54042
|
const snapshot = await withXcodeProject(
|
|
54005
54043
|
installedWorkspace,
|
|
54006
54044
|
{
|
|
54045
|
+
target: iosTarget,
|
|
54007
54046
|
configuration: "Debug",
|
|
54008
54047
|
interfaceRoot: module2.root,
|
|
54009
54048
|
moduleRoot: module2.root,
|
|
@@ -54090,8 +54129,14 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
|
|
|
54090
54129
|
);
|
|
54091
54130
|
continue;
|
|
54092
54131
|
}
|
|
54093
|
-
const prepared = await prepareExpoNativeWorkspace(appRoot, signal);
|
|
54094
|
-
return collectExpoSwiftSources(
|
|
54132
|
+
const prepared = await prepareExpoNativeWorkspace(appRoot, signal, iosTarget);
|
|
54133
|
+
return collectExpoSwiftSources(
|
|
54134
|
+
prepared.app,
|
|
54135
|
+
signal,
|
|
54136
|
+
prepared.workspace,
|
|
54137
|
+
false,
|
|
54138
|
+
iosTarget
|
|
54139
|
+
);
|
|
54095
54140
|
}
|
|
54096
54141
|
const declarations = [];
|
|
54097
54142
|
for (const descriptor of Array.isArray(modules) ? modules : []) {
|
|
@@ -54303,11 +54348,13 @@ ${import_node_fs75.default.readFileSync(source, "utf8")}`;
|
|
|
54303
54348
|
});
|
|
54304
54349
|
const cached3 = readExpoDiscovery(discovery.key);
|
|
54305
54350
|
if (cached3 !== void 0) return cached3;
|
|
54306
|
-
const prepared = await prepareExpoNativeWorkspace(appRoot, signal);
|
|
54351
|
+
const prepared = await prepareExpoNativeWorkspace(appRoot, signal, iosTarget);
|
|
54307
54352
|
const discovered = await collectExpoSwiftSources(
|
|
54308
54353
|
prepared.app,
|
|
54309
54354
|
signal,
|
|
54310
|
-
prepared.workspace
|
|
54355
|
+
prepared.workspace,
|
|
54356
|
+
false,
|
|
54357
|
+
iosTarget
|
|
54311
54358
|
);
|
|
54312
54359
|
const stored = writeExpoDiscovery({
|
|
54313
54360
|
key: discovery.key,
|
|
@@ -54593,7 +54640,7 @@ async function compileExpoSwiftModules(root, base, publishArtifact, options = {}
|
|
|
54593
54640
|
installSwiftInputTrace();
|
|
54594
54641
|
let key2;
|
|
54595
54642
|
try {
|
|
54596
|
-
key2 = await discoveryKey(root, options.installedWorkspace, true);
|
|
54643
|
+
key2 = await discoveryKey(root, options.installedWorkspace, true, options.iosTarget);
|
|
54597
54644
|
} catch {
|
|
54598
54645
|
return compileExpoSwiftModulesTraced(root, base, publishArtifact, options);
|
|
54599
54646
|
}
|
|
@@ -54628,7 +54675,8 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
54628
54675
|
root,
|
|
54629
54676
|
signal,
|
|
54630
54677
|
options.installedWorkspace,
|
|
54631
|
-
nativeWorkspaceAvailable()
|
|
54678
|
+
nativeWorkspaceAvailable(),
|
|
54679
|
+
options.iosTarget
|
|
54632
54680
|
);
|
|
54633
54681
|
signal.throwIfAborted();
|
|
54634
54682
|
const ios = import_node_path73.default.join(root, "ios");
|
|
@@ -54641,12 +54689,13 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
54641
54689
|
await ensureSwiftToolchain(signal);
|
|
54642
54690
|
const bridge = collectBridgeModuleSources(import_node_fs75.default.realpathSync(root), signal);
|
|
54643
54691
|
if (bridge && bridge.installedNamespaces.length > 0) {
|
|
54644
|
-
const workspace = options.installedWorkspace ?? (await prepareExpoNativeWorkspace(root, signal)).workspace;
|
|
54692
|
+
const workspace = options.installedWorkspace ?? (await prepareExpoNativeWorkspace(root, signal, options.iosTarget)).workspace;
|
|
54645
54693
|
const module3 = await resolveSwiftModule({ signal });
|
|
54646
|
-
await prepareXcodeSwiftPackages(workspace,
|
|
54694
|
+
await prepareXcodeSwiftPackages(workspace, options.iosTarget, void 0, signal);
|
|
54647
54695
|
await withXcodeProject(
|
|
54648
54696
|
workspace,
|
|
54649
54697
|
{
|
|
54698
|
+
target: options.iosTarget,
|
|
54650
54699
|
configuration: "Debug",
|
|
54651
54700
|
interfaceRoot: module3.root,
|
|
54652
54701
|
nativeModules: bridge.installedNamespaces
|
|
@@ -55014,7 +55063,7 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
55014
55063
|
)
|
|
55015
55064
|
);
|
|
55016
55065
|
const targetErrors = diagnostic.match(
|
|
55017
|
-
/^error: target .*$|^(?:error: )?[^\n:]+: missing or unsupported declared iOS deployment target .*$/gm
|
|
55066
|
+
/^error: target .*$|^(?:error: )?[^\n:]+: missing or unsupported declared iOS deployment target .*$|^(?:ld(?:\.lld)?|wasm-ld): error: .*$/gm
|
|
55018
55067
|
) ?? [];
|
|
55019
55068
|
const unitErrors = [...targetErrors, ...sourceErrors];
|
|
55020
55069
|
if (publishArtifact && targetErrors.length === 0 && (sourceErrors.length === 0 || sourceErrors.length !== errors.length) && !(error instanceof SwiftMissingModulesError))
|
|
@@ -55128,7 +55177,8 @@ async function handleExpoSwiftRequest(req, res) {
|
|
|
55128
55177
|
res.end("Expo Swift request has no host");
|
|
55129
55178
|
return true;
|
|
55130
55179
|
}
|
|
55131
|
-
const
|
|
55180
|
+
const iosTarget = url.searchParams.get("iosTarget") ?? void 0;
|
|
55181
|
+
const flightKey = `${host2}\0${key2}\0${iosTarget ?? ""}`;
|
|
55132
55182
|
const prepared = openPreparations.take(
|
|
55133
55183
|
flightKey,
|
|
55134
55184
|
url.searchParams.get(NATIVE_PREPARED_QUERY_PARAM)
|
|
@@ -55143,7 +55193,9 @@ async function handleExpoSwiftRequest(req, res) {
|
|
|
55143
55193
|
}
|
|
55144
55194
|
let pending = compiling.get(flightKey);
|
|
55145
55195
|
if (!pending) {
|
|
55146
|
-
pending = compileExpoSwiftModules(key2, `http://${host2}
|
|
55196
|
+
pending = compileExpoSwiftModules(key2, `http://${host2}`, void 0, {
|
|
55197
|
+
iosTarget
|
|
55198
|
+
}).finally(() => {
|
|
55147
55199
|
compiling.delete(flightKey);
|
|
55148
55200
|
});
|
|
55149
55201
|
compiling.set(flightKey, pending);
|
|
@@ -56594,7 +56646,7 @@ function nitroSupersetInputs(options) {
|
|
|
56594
56646
|
inputs[`provider:${name3}`] = `${packageVersion(root)}\0${treeDigest3(root)}`;
|
|
56595
56647
|
return inputs;
|
|
56596
56648
|
}
|
|
56597
|
-
var NITRO_COMPILER_DIGEST = true ? "
|
|
56649
|
+
var NITRO_COMPILER_DIGEST = true ? "528df2602797c902fa88855f6822ca31e7cf2fdf8e6493516502546ec76d4e1b" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
56598
56650
|
function readInputs(value) {
|
|
56599
56651
|
if (!isRecord(value)) return null;
|
|
56600
56652
|
const inputs = {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1846 | (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.1846 | (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.1846 | (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.1846 | (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;
|