peachsim 0.1.2299 → 0.1.2300
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/serve.ts +12 -3
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +113 -39
- 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 +2 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +85 -32
- 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 +92 -38
- package/dist-lib/host/fetch-proxy-handler.cjs +5 -9
- 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 +60 -30
- 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 +59 -29
- package/dist-lib/native-app-identity-project.cjs +43 -22
- package/dist-lib/native-app-identity-project.mjs +43 -22
- 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 +120 -54
- package/dist-lib/swift-compile.cjs +27 -3
- package/dist-lib/swift-compile.mjs +27 -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 +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +75 -30
- package/dist-lib/vite.cjs +11 -10
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-gesture-handler.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/render-worker/gesture-arbitration-native.d.ts +124 -0
- package/dist-types/packages/peach-kit/src/transitions/screen-transition-math.d.ts +2 -2
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/bundle-channel.mjs +4 -3
- package/src/cli-runtime.ts +6 -0
- package/src/native-firebase-config.ts +14 -0
- package/src/swift-compile.ts +28 -1
- package/src/vite-plugin-one.ts +3 -3
- package/src/xcode-project.ts +45 -22
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2300 | (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;
|
|
@@ -2526,7 +2526,6 @@ var init_lazy_stub_patterns = __esm({
|
|
|
2526
2526
|
"use strict";
|
|
2527
2527
|
init_version_range();
|
|
2528
2528
|
LAZY_STUB_PATTERNS = [
|
|
2529
|
-
"@10play/tentap-editor",
|
|
2530
2529
|
"@adobe/react-native-aepcore",
|
|
2531
2530
|
"@azesmway/react-native-unity",
|
|
2532
2531
|
"@azzapp/react-native-skia-video",
|
|
@@ -2599,8 +2598,6 @@ var init_lazy_stub_patterns = __esm({
|
|
|
2599
2598
|
"react-native-agora",
|
|
2600
2599
|
"react-native-android-location-enabler",
|
|
2601
2600
|
"react-native-animateable-text",
|
|
2602
|
-
"react-native-app-clip",
|
|
2603
|
-
"react-native-avoid-softinput",
|
|
2604
2601
|
"react-native-azure-auth",
|
|
2605
2602
|
"react-native-bare-kit",
|
|
2606
2603
|
"react-native-bluetooth-classic",
|
|
@@ -2615,7 +2612,6 @@ var init_lazy_stub_patterns = __esm({
|
|
|
2615
2612
|
"react-native-extra-dimensions-android",
|
|
2616
2613
|
"react-native-fast-opencv",
|
|
2617
2614
|
"react-native-fast-shadow",
|
|
2618
|
-
"react-native-fast-squircle",
|
|
2619
2615
|
"react-native-fast-tflite",
|
|
2620
2616
|
"react-native-file-viewer-turbo",
|
|
2621
2617
|
"react-native-floating-label-input",
|
|
@@ -5552,6 +5548,8 @@ var init_supported_native_packages = __esm({
|
|
|
5552
5548
|
"../peach-compat/src/generated/supported-native-packages.ts"() {
|
|
5553
5549
|
"use strict";
|
|
5554
5550
|
SUPPORTED_NATIVE_PACKAGE_NAMES = [
|
|
5551
|
+
"@10play/tentap-editor",
|
|
5552
|
+
// compiled-turbo+coverage
|
|
5555
5553
|
"@alevy97/react-native-userdefaults",
|
|
5556
5554
|
// seam
|
|
5557
5555
|
"@ankipro/react-native-file-open",
|
|
@@ -6112,6 +6110,8 @@ var init_supported_native_packages = __esm({
|
|
|
6112
6110
|
// seam
|
|
6113
6111
|
"react-native-app-auth",
|
|
6114
6112
|
// seam
|
|
6113
|
+
"react-native-app-clip",
|
|
6114
|
+
// compiled-swift+coverage
|
|
6115
6115
|
"react-native-app-logs",
|
|
6116
6116
|
// seam
|
|
6117
6117
|
"react-native-app-review",
|
|
@@ -6132,6 +6132,8 @@ var init_supported_native_packages = __esm({
|
|
|
6132
6132
|
// seam
|
|
6133
6133
|
"react-native-auto-skeleton",
|
|
6134
6134
|
// seam
|
|
6135
|
+
"react-native-avoid-softinput",
|
|
6136
|
+
// compiled-turbo+coverage
|
|
6135
6137
|
"react-native-background-actions",
|
|
6136
6138
|
// seam
|
|
6137
6139
|
"react-native-background-fetch",
|
|
@@ -6248,6 +6250,8 @@ var init_supported_native_packages = __esm({
|
|
|
6248
6250
|
// seam
|
|
6249
6251
|
"react-native-fast-secure-storage",
|
|
6250
6252
|
// seam+coverage
|
|
6253
|
+
"react-native-fast-squircle",
|
|
6254
|
+
// compiled-turbo+coverage
|
|
6251
6255
|
"react-native-fast-trie",
|
|
6252
6256
|
// seam+coverage
|
|
6253
6257
|
"react-native-fbsdk-next",
|
|
@@ -12461,10 +12465,11 @@ var init_registry = __esm({
|
|
|
12461
12465
|
stubType: "native",
|
|
12462
12466
|
versions: [
|
|
12463
12467
|
{
|
|
12464
|
-
range: "
|
|
12465
|
-
coverage:
|
|
12466
|
-
note: "
|
|
12467
|
-
|
|
12468
|
+
range: "1.1.0",
|
|
12469
|
+
coverage: 1,
|
|
12470
|
+
note: "compiled-turbo: original package JavaScript and native TenTapKeyboard TurboModule and input-accessory sources compile to wasm on iOS",
|
|
12471
|
+
working: "RichText, Toolbar, useEditorBridge, CoreBridge, TenTapStartKit, TenTapKeyboard methods (isSystemKeyboardVisible, setSystemKeyboardSuppressed, showSystemKeyboard, setWindowOverlayMode, getNavigationBarInset, getStatusBarHeight), and WebView editor bridge execute without trapping on simulator",
|
|
12472
|
+
missing: "Android remains unqualified"
|
|
12468
12473
|
}
|
|
12469
12474
|
]
|
|
12470
12475
|
},
|
|
@@ -12557,10 +12562,11 @@ var init_registry = __esm({
|
|
|
12557
12562
|
stubType: "native",
|
|
12558
12563
|
versions: [
|
|
12559
12564
|
{
|
|
12560
|
-
range: "
|
|
12561
|
-
coverage:
|
|
12562
|
-
note: "
|
|
12563
|
-
|
|
12565
|
+
range: "9.0.1",
|
|
12566
|
+
coverage: 1,
|
|
12567
|
+
note: "compiled-turbo: original package JavaScript and native AvoidSoftInput TurboModule and Fabric view sources compile to wasm on iOS",
|
|
12568
|
+
working: "AvoidSoftInput, AvoidSoftInputView, useSoftInputState, setEnabled, setAvoidOffset, setEasing, setShowAnimationDuration, and setHideAnimationDuration execute on simulator",
|
|
12569
|
+
missing: "Android remains unqualified"
|
|
12564
12570
|
}
|
|
12565
12571
|
]
|
|
12566
12572
|
},
|
|
@@ -13139,10 +13145,11 @@ var init_registry = __esm({
|
|
|
13139
13145
|
stubType: "native",
|
|
13140
13146
|
versions: [
|
|
13141
13147
|
{
|
|
13142
|
-
range: "
|
|
13143
|
-
coverage:
|
|
13144
|
-
note: "
|
|
13145
|
-
|
|
13148
|
+
range: "0.10.0",
|
|
13149
|
+
coverage: 1,
|
|
13150
|
+
note: "compiled-swift: original package JavaScript and Expo Swift ReactNativeAppClipModule compile to wasm on iOS",
|
|
13151
|
+
working: "getBundleIdentifier, isClip, setSharedCredential, getSharedCredential, getContainerURL, and displayOverlay execute on simulator",
|
|
13152
|
+
missing: "App Store SKOverlay presentation is inert in browser simulation; Android remains unqualified"
|
|
13146
13153
|
}
|
|
13147
13154
|
]
|
|
13148
13155
|
},
|
|
@@ -14436,10 +14443,11 @@ var init_registry = __esm({
|
|
|
14436
14443
|
stubType: "native",
|
|
14437
14444
|
versions: [
|
|
14438
14445
|
{
|
|
14439
|
-
range: "
|
|
14440
|
-
coverage:
|
|
14441
|
-
note: "
|
|
14442
|
-
|
|
14446
|
+
range: "1.1.7",
|
|
14447
|
+
coverage: 1,
|
|
14448
|
+
note: "compiled-turbo: original package JavaScript and native FastSquircleView Fabric component compile to wasm on iOS",
|
|
14449
|
+
working: "FastSquircleView mounts, measures layout, and renders continuous-corner squircle views through its native Fabric component",
|
|
14450
|
+
missing: "Android remains unqualified"
|
|
14443
14451
|
}
|
|
14444
14452
|
]
|
|
14445
14453
|
},
|
|
@@ -37628,7 +37636,7 @@ var swiftCoverageProvenance;
|
|
|
37628
37636
|
var init_provenance = __esm({
|
|
37629
37637
|
"src/swift-coverage/provenance.ts"() {
|
|
37630
37638
|
"use strict";
|
|
37631
|
-
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"bfde06f157f52d3dd76577b3c6059c95c0393180b054ced773624ea89558992b","swift-package.ts":"338cfef9a34a930206ac2e1a8a90b85c8d61f776d9a41e6445dc18e0c5385cdb","swift-source-file.ts":"93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94","swift-toolchain.ts":"b60efa4eb7516378344cb7c48216aea5fa36590ace91a698655b48cfd0db96fe","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1","xcode-project.ts":"
|
|
37639
|
+
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"bfde06f157f52d3dd76577b3c6059c95c0393180b054ced773624ea89558992b","swift-package.ts":"338cfef9a34a930206ac2e1a8a90b85c8d61f776d9a41e6445dc18e0c5385cdb","swift-source-file.ts":"93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94","swift-toolchain.ts":"b60efa4eb7516378344cb7c48216aea5fa36590ace91a698655b48cfd0db96fe","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1","xcode-project.ts":"96a57d4b999e75658683d635d3522d6c7ae30b4c8bc38a8114af353bce5162ff","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
|
|
37632
37640
|
}
|
|
37633
37641
|
});
|
|
37634
37642
|
|
|
@@ -45213,8 +45221,8 @@ function developerDirs() {
|
|
|
45213
45221
|
}
|
|
45214
45222
|
return found;
|
|
45215
45223
|
}
|
|
45216
|
-
function readNativeSdk(
|
|
45217
|
-
const env = { ...process.env, DEVELOPER_DIR:
|
|
45224
|
+
function readNativeSdk(developerDir2) {
|
|
45225
|
+
const env = { ...process.env, DEVELOPER_DIR: developerDir2 };
|
|
45218
45226
|
const xcrun = (args) => (
|
|
45219
45227
|
// runner-toolchain-platform: darwin
|
|
45220
45228
|
(0, import_node_child_process19.execFileSync)("xcrun", args, {
|
|
@@ -45253,19 +45261,19 @@ function nativeGraphMismatches(read) {
|
|
|
45253
45261
|
function pinnedNativeSdk() {
|
|
45254
45262
|
if (resolvedPinnedSdk) return resolvedPinnedSdk;
|
|
45255
45263
|
let mismatches;
|
|
45256
|
-
for (const
|
|
45264
|
+
for (const developerDir2 of developerDirs()) {
|
|
45257
45265
|
let read;
|
|
45258
45266
|
try {
|
|
45259
|
-
read = readNativeSdk(
|
|
45267
|
+
read = readNativeSdk(developerDir2);
|
|
45260
45268
|
} catch {
|
|
45261
45269
|
continue;
|
|
45262
45270
|
}
|
|
45263
45271
|
if (read.sdk !== NATIVE_GRAPH_SDK_VERSION) continue;
|
|
45264
45272
|
const differ = nativeGraphMismatches(read);
|
|
45265
45273
|
if (differ.length === 0) {
|
|
45266
|
-
process.env.DEVELOPER_DIR =
|
|
45274
|
+
process.env.DEVELOPER_DIR = developerDir2;
|
|
45267
45275
|
resolvedPinnedSdk = {
|
|
45268
|
-
developerDir,
|
|
45276
|
+
developerDir: developerDir2,
|
|
45269
45277
|
sdkPath: read.sdkPath,
|
|
45270
45278
|
compiler: read.compiler
|
|
45271
45279
|
};
|
|
@@ -59360,6 +59368,28 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
59360
59368
|
(0, import_node_fs54.rmSync)(linked, { force: true });
|
|
59361
59369
|
report("compiling and linking Swift modules");
|
|
59362
59370
|
const frameworkInterfaces = /* @__PURE__ */ new Map();
|
|
59371
|
+
const nativeDeclarations = /* @__PURE__ */ new Map();
|
|
59372
|
+
for (const [file, contents] of Object.entries(input.files)) {
|
|
59373
|
+
if (!file.endsWith(".modulemap")) continue;
|
|
59374
|
+
const name3 = moduleMapName(contents);
|
|
59375
|
+
const umbrella = /\bumbrella\s+header\s+"([^"]+)"/.exec(contents)?.[1];
|
|
59376
|
+
if (!name3 || !umbrella) continue;
|
|
59377
|
+
const header = input.files[import_node_path50.default.posix.join(import_node_path50.default.posix.dirname(file), umbrella)];
|
|
59378
|
+
if (header === void 0) continue;
|
|
59379
|
+
const included = new Set(
|
|
59380
|
+
[
|
|
59381
|
+
...header.matchAll(/^\s*#\s*(?:import|include)\s*[<"]([^">]+)[">]/gm)
|
|
59382
|
+
].map((match) => import_node_path50.default.posix.basename(match[1]))
|
|
59383
|
+
);
|
|
59384
|
+
const declarations = nativeDeclarations.get(name3) ?? /* @__PURE__ */ new Set();
|
|
59385
|
+
for (const declaration of swiftInterfaceDeclarations(header))
|
|
59386
|
+
declarations.add(declaration);
|
|
59387
|
+
for (const [candidate, source] of Object.entries(input.files))
|
|
59388
|
+
if (included.has(import_node_path50.default.posix.basename(candidate)))
|
|
59389
|
+
for (const declaration of swiftInterfaceDeclarations(source))
|
|
59390
|
+
declarations.add(declaration);
|
|
59391
|
+
nativeDeclarations.set(name3, declarations);
|
|
59392
|
+
}
|
|
59363
59393
|
const frameworkInterface = (name3) => {
|
|
59364
59394
|
if (frameworkInterfaces.has(name3)) return frameworkInterfaces.get(name3);
|
|
59365
59395
|
const source = distribution ? import_node_path50.default.join(frameworkRoot, "modules", `${name3}-Swift.h`) : import_node_path50.default.join(
|
|
@@ -59387,10 +59417,12 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
59387
59417
|
))
|
|
59388
59418
|
declared.add(name4);
|
|
59389
59419
|
}
|
|
59420
|
+
for (const declaration of nativeDeclarations.get(name3) ?? [])
|
|
59421
|
+
declared.add(declaration);
|
|
59390
59422
|
const own = withoutSwiftDeclarations(
|
|
59391
59423
|
clangInterfaceHeader((0, import_node_fs54.readFileSync)(source, "utf8")),
|
|
59392
59424
|
declared,
|
|
59393
|
-
`#import <${name3}/${name3}.h>`
|
|
59425
|
+
nativeDeclarations.has(name3) ? `@import ${name3};` : `#import <${name3}/${name3}.h>`
|
|
59394
59426
|
);
|
|
59395
59427
|
const owners = sdkObjCDeclarationOwners(import_node_path50.default.dirname(import_node_path50.default.dirname(headers)));
|
|
59396
59428
|
const foreign = /* @__PURE__ */ new Map();
|
|
@@ -59839,7 +59871,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
59839
59871
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
59840
59872
|
MULTI_MANIFEST_VERSION = 68;
|
|
59841
59873
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
59842
|
-
compilerSourceDigest = true ? "
|
|
59874
|
+
compilerSourceDigest = true ? "3c645ce8a5442f60dce1735912506ad6fa5d09cb92da26cff3950c374b371e2b" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
59843
59875
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
59844
59876
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
59845
59877
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -62224,6 +62256,16 @@ function loadProject(xcodeproj) {
|
|
|
62224
62256
|
loaded.set(projectFile, { digest: digest3, project: result });
|
|
62225
62257
|
return result;
|
|
62226
62258
|
}
|
|
62259
|
+
function selectedDeveloperDir() {
|
|
62260
|
+
developerDir ??= process.platform === "darwin" ? (
|
|
62261
|
+
// runner-toolchain-platform: darwin
|
|
62262
|
+
(0, import_node_child_process34.execFileSync)("xcode-select", ["-p"], {
|
|
62263
|
+
encoding: "utf8",
|
|
62264
|
+
stdio: ["ignore", "pipe", "pipe"]
|
|
62265
|
+
}).trim()
|
|
62266
|
+
) : "";
|
|
62267
|
+
return developerDir;
|
|
62268
|
+
}
|
|
62227
62269
|
function defaultConfiguration(project2) {
|
|
62228
62270
|
const configList = project2.object(str(project2.project.buildConfigurationList));
|
|
62229
62271
|
const names = list(configList?.buildConfigurations).flatMap(
|
|
@@ -62290,15 +62332,8 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
|
|
|
62290
62332
|
resolving2.delete(marker);
|
|
62291
62333
|
return value;
|
|
62292
62334
|
};
|
|
62293
|
-
let developerDir;
|
|
62294
62335
|
const derivedSettings = {
|
|
62295
|
-
DEVELOPER_DIR: () => options.environment?.DEVELOPER_DIR ?? process.env.DEVELOPER_DIR ?? (
|
|
62296
|
-
// runner-toolchain-platform: darwin
|
|
62297
|
-
(0, import_node_child_process34.execFileSync)("xcode-select", ["-p"], {
|
|
62298
|
-
encoding: "utf8",
|
|
62299
|
-
stdio: ["ignore", "pipe", "pipe"]
|
|
62300
|
-
}).trim()
|
|
62301
|
-
) : ""),
|
|
62336
|
+
DEVELOPER_DIR: () => options.environment?.DEVELOPER_DIR ?? process.env.DEVELOPER_DIR ?? selectedDeveloperDir(),
|
|
62302
62337
|
PRODUCT_NAME: () => get("TARGET_NAME"),
|
|
62303
62338
|
PRODUCT_MODULE_NAME: () => applyOperator(get("PRODUCT_NAME"), "c99extidentifier"),
|
|
62304
62339
|
EXECUTABLE_NAME: () => get("PRODUCT_NAME"),
|
|
@@ -63212,7 +63247,16 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
63212
63247
|
order.push(ref);
|
|
63213
63248
|
};
|
|
63214
63249
|
visit3(app);
|
|
63215
|
-
const
|
|
63250
|
+
const headerPhases = /* @__PURE__ */ new Map();
|
|
63251
|
+
const headerPhase = (ref) => {
|
|
63252
|
+
const key2 = `${ref.project.xcodeproj}\0${ref.id}`;
|
|
63253
|
+
const cached4 = headerPhases.get(key2);
|
|
63254
|
+
if (cached4) return cached4;
|
|
63255
|
+
const files2 = readHeaderPhase(ref);
|
|
63256
|
+
headerPhases.set(key2, files2);
|
|
63257
|
+
return files2;
|
|
63258
|
+
};
|
|
63259
|
+
const readHeaderPhase = (ref) => list(ref.target.buildPhases).flatMap((phaseId) => {
|
|
63216
63260
|
const phase = ref.project.object(phaseId);
|
|
63217
63261
|
if (phase?.isa !== "PBXHeadersBuildPhase") return [];
|
|
63218
63262
|
return list(phase.files).flatMap((id) => {
|
|
@@ -63229,6 +63273,23 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
63229
63273
|
];
|
|
63230
63274
|
});
|
|
63231
63275
|
});
|
|
63276
|
+
const projectNonFrameworkHeaders = /* @__PURE__ */ new Map();
|
|
63277
|
+
const nonFrameworkHeadersOf = (project2) => {
|
|
63278
|
+
const cached4 = projectNonFrameworkHeaders.get(project2);
|
|
63279
|
+
if (cached4) return cached4;
|
|
63280
|
+
const headers = /* @__PURE__ */ new Map();
|
|
63281
|
+
for (const other of projectTargets(project2)) {
|
|
63282
|
+
if (FRAMEWORK_PRODUCTS.has(str(other.target.productType) ?? "")) continue;
|
|
63283
|
+
const otherProduct = productName(other);
|
|
63284
|
+
for (const { file, visibility } of headerPhase(other)) {
|
|
63285
|
+
if (visibility === "Project") continue;
|
|
63286
|
+
const key2 = `${otherProduct}/${import_node_path55.default.basename(file)}`;
|
|
63287
|
+
if (!headers.has(key2)) headers.set(key2, file);
|
|
63288
|
+
}
|
|
63289
|
+
}
|
|
63290
|
+
projectNonFrameworkHeaders.set(project2, headers);
|
|
63291
|
+
return headers;
|
|
63292
|
+
};
|
|
63232
63293
|
const productNames = /* @__PURE__ */ new Map();
|
|
63233
63294
|
const productName = (ref) => {
|
|
63234
63295
|
const key2 = `${ref.project.xcodeproj}\0${ref.id}`;
|
|
@@ -63461,16 +63522,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
63461
63522
|
const qualified3 = `${product}/${name4}`;
|
|
63462
63523
|
if (!ownHeaders.has(qualified3)) ownHeaders.set(qualified3, file);
|
|
63463
63524
|
}
|
|
63464
|
-
const nonFrameworkHeaders =
|
|
63465
|
-
for (const other of projectTargets(ref.project)) {
|
|
63466
|
-
if (FRAMEWORK_PRODUCTS.has(str(other.target.productType) ?? "")) continue;
|
|
63467
|
-
const otherProduct = productName(other);
|
|
63468
|
-
for (const { file, visibility } of headerPhase(other)) {
|
|
63469
|
-
if (visibility === "Project") continue;
|
|
63470
|
-
const key2 = `${otherProduct}/${import_node_path55.default.basename(file)}`;
|
|
63471
|
-
if (!nonFrameworkHeaders.has(key2)) nonFrameworkHeaders.set(key2, file);
|
|
63472
|
-
}
|
|
63473
|
-
}
|
|
63525
|
+
const nonFrameworkHeaders = nonFrameworkHeadersOf(ref.project);
|
|
63474
63526
|
const wrapper = import_node_path55.default.join(settings2("BUILT_PRODUCTS_DIR"), `${product}.framework`);
|
|
63475
63527
|
const moduleMap = (settings2("DEFINES_MODULE") === "YES" || !framework) && settings2("MODULEMAP_FILE") ? absolute(settings2("MODULEMAP_FILE")) : null;
|
|
63476
63528
|
const frameworkUmbrella = !compatibility && framework && members2.sources.length > 0 && moduleMap ? import_node_path55.default.join(import_node_path55.default.dirname(moduleMap), `${moduleName2}-umbrella.h`) : null;
|
|
@@ -64169,7 +64221,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
64169
64221
|
cocoapods
|
|
64170
64222
|
};
|
|
64171
64223
|
}
|
|
64172
|
-
var import_node_child_process34, import_node_crypto27, import_node_fs58, import_node_path55, import_plist2, XCODE_DEFAULT_IOS_DEPLOYMENT_TARGET, runScriptTimeoutMs, CXX_STANDARD_ALIASES, PRE_CXX20_STANDARDS, APPLICATION, RESOURCE_BUNDLE, PRODUCT_MACH_O_TYPES, FRAMEWORK_PRODUCTS, HEADER_FILE, MODULE_PRODUCTS, CONDITIONS, isDirectory, loaded, preparedSourcePhases, isPodsProject, targetRefs, NativeAppTargetSelectionError, workspaceResolvedFile, SwiftPackageResolutionRequired;
|
|
64224
|
+
var import_node_child_process34, import_node_crypto27, import_node_fs58, import_node_path55, import_plist2, XCODE_DEFAULT_IOS_DEPLOYMENT_TARGET, runScriptTimeoutMs, CXX_STANDARD_ALIASES, PRE_CXX20_STANDARDS, APPLICATION, RESOURCE_BUNDLE, PRODUCT_MACH_O_TYPES, FRAMEWORK_PRODUCTS, HEADER_FILE, MODULE_PRODUCTS, CONDITIONS, isDirectory, loaded, developerDir, preparedSourcePhases, isPodsProject, targetRefs, NativeAppTargetSelectionError, workspaceResolvedFile, SwiftPackageResolutionRequired;
|
|
64173
64225
|
var init_xcode_project = __esm({
|
|
64174
64226
|
"src/xcode-project.ts"() {
|
|
64175
64227
|
"use strict";
|
|
@@ -64268,6 +64320,15 @@ function resolveExpoConfigModule(appDir) {
|
|
|
64268
64320
|
return (0, import_node_module5.createRequire)(expo).resolve("@expo/config");
|
|
64269
64321
|
}
|
|
64270
64322
|
function hasExpoConfig(projectRoot) {
|
|
64323
|
+
const packagePath = import_node_path56.default.join(projectRoot, "package.json");
|
|
64324
|
+
const manifest = import_node_fs59.default.existsSync(packagePath) ? JSON.parse(import_node_fs59.default.readFileSync(packagePath, "utf8")) : null;
|
|
64325
|
+
if (isRecord(manifest)) {
|
|
64326
|
+
const dependencies = [manifest.dependencies, manifest.devDependencies].filter(
|
|
64327
|
+
isRecord
|
|
64328
|
+
);
|
|
64329
|
+
if (dependencies.some((deps) => "one" in deps) && !dependencies.some((deps) => "expo" in deps))
|
|
64330
|
+
return false;
|
|
64331
|
+
}
|
|
64271
64332
|
const appJsonPath = import_node_path56.default.join(projectRoot, "app.json");
|
|
64272
64333
|
const appJson = import_node_fs59.default.existsSync(appJsonPath) ? JSON.parse(import_node_fs59.default.readFileSync(appJsonPath, "utf8")) : null;
|
|
64273
64334
|
const staticExpo = isRecord(appJson) && (isRecord(appJson.expo) || [appJson.ios, appJson.android].some(
|
|
@@ -66444,7 +66505,7 @@ var init_swift_standin_digest = __esm({
|
|
|
66444
66505
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
66445
66506
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
66446
66507
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
66447
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
66508
|
+
STANDIN_SOURCE_DIGEST = true ? "8a800a5151c426f07ff690c34df9a6d538c005318051ef52635fc568c44736f6" : standinSourceDigest();
|
|
66448
66509
|
}
|
|
66449
66510
|
});
|
|
66450
66511
|
|
|
@@ -66923,7 +66984,7 @@ __export(expo_native_prebuilt_exports, {
|
|
|
66923
66984
|
servedExpoSwift: () => servedExpoSwift
|
|
66924
66985
|
});
|
|
66925
66986
|
function expoNativeCompilerDigestValue() {
|
|
66926
|
-
return true ? "
|
|
66987
|
+
return true ? "14d88f98100ab2aa1697716b744e5a82c52ac4b234218a17662b547201295088" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
66927
66988
|
}
|
|
66928
66989
|
function readSources(value) {
|
|
66929
66990
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -88446,7 +88507,7 @@ var init_nitro_superset = __esm({
|
|
|
88446
88507
|
init_nitroContract();
|
|
88447
88508
|
init_swift_standin_digest();
|
|
88448
88509
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
88449
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
88510
|
+
NITRO_COMPILER_DIGEST = true ? "9393367a8c7442a5ce3f6e81f9ff408f0afdbf5eeadaeed359561a348a6b1818" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
88450
88511
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
88451
88512
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
88452
88513
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -89155,7 +89216,7 @@ var init_one_sdk_bundle = __esm({
|
|
|
89155
89216
|
var runtime_companion_default;
|
|
89156
89217
|
var init_runtime_companion = __esm({
|
|
89157
89218
|
"runtime-companion.json"() {
|
|
89158
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
89219
|
+
runtime_companion_default = { abi: 1, sha256: "60900a3af6e6213c855e6682baa0ebdb6a6865510e4e3a51a24d4c584b3fdec2", file: "node/cli-60900a3af6e6213c855e6682baa0ebdb6a6865510e4e3a51a24d4c584b3fdec2.cjs" };
|
|
89159
89220
|
}
|
|
89160
89221
|
});
|
|
89161
89222
|
|
|
@@ -89166,6 +89227,7 @@ __export(cli_runtime_exports, {
|
|
|
89166
89227
|
cliCompanionPath: () => cliCompanionPath,
|
|
89167
89228
|
ensureCliCompanion: () => ensureCliCompanion,
|
|
89168
89229
|
getCliRuntime: () => getCliRuntime,
|
|
89230
|
+
loadCliRuntime: () => loadCliRuntime,
|
|
89169
89231
|
verifyCliCompanion: () => verifyCliCompanion
|
|
89170
89232
|
});
|
|
89171
89233
|
function cliCompanionPath() {
|
|
@@ -89213,6 +89275,10 @@ async function ensureCliCompanion(root) {
|
|
|
89213
89275
|
(0, import_node_fs106.rmSync)(staged, { force: true });
|
|
89214
89276
|
}
|
|
89215
89277
|
}
|
|
89278
|
+
async function loadCliRuntime() {
|
|
89279
|
+
if (!loaded2) await ensureCliCompanion(peachRuntimeRoot());
|
|
89280
|
+
return getCliRuntime();
|
|
89281
|
+
}
|
|
89216
89282
|
function getCliRuntime() {
|
|
89217
89283
|
if (loaded2) return loaded2.runtime;
|
|
89218
89284
|
const root = peachRuntimeRoot();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2300 | (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;
|
|
@@ -13493,7 +13493,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
13493
13493
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
13494
13494
|
var MULTI_MANIFEST_VERSION = 68;
|
|
13495
13495
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
13496
|
-
var compilerSourceDigest = true ? "
|
|
13496
|
+
var compilerSourceDigest = true ? "3c645ce8a5442f60dce1735912506ad6fa5d09cb92da26cff3950c374b371e2b" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
13497
13497
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
13498
13498
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
13499
13499
|
hash.update(`swift-compile
|
|
@@ -17815,6 +17815,28 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
17815
17815
|
(0, import_node_fs24.rmSync)(linked, { force: true });
|
|
17816
17816
|
report("compiling and linking Swift modules");
|
|
17817
17817
|
const frameworkInterfaces = /* @__PURE__ */ new Map();
|
|
17818
|
+
const nativeDeclarations = /* @__PURE__ */ new Map();
|
|
17819
|
+
for (const [file, contents] of Object.entries(input.files)) {
|
|
17820
|
+
if (!file.endsWith(".modulemap")) continue;
|
|
17821
|
+
const name2 = moduleMapName(contents);
|
|
17822
|
+
const umbrella = /\bumbrella\s+header\s+"([^"]+)"/.exec(contents)?.[1];
|
|
17823
|
+
if (!name2 || !umbrella) continue;
|
|
17824
|
+
const header = input.files[import_node_path25.default.posix.join(import_node_path25.default.posix.dirname(file), umbrella)];
|
|
17825
|
+
if (header === void 0) continue;
|
|
17826
|
+
const included = new Set(
|
|
17827
|
+
[
|
|
17828
|
+
...header.matchAll(/^\s*#\s*(?:import|include)\s*[<"]([^">]+)[">]/gm)
|
|
17829
|
+
].map((match) => import_node_path25.default.posix.basename(match[1]))
|
|
17830
|
+
);
|
|
17831
|
+
const declarations = nativeDeclarations.get(name2) ?? /* @__PURE__ */ new Set();
|
|
17832
|
+
for (const declaration of swiftInterfaceDeclarations(header))
|
|
17833
|
+
declarations.add(declaration);
|
|
17834
|
+
for (const [candidate, source] of Object.entries(input.files))
|
|
17835
|
+
if (included.has(import_node_path25.default.posix.basename(candidate)))
|
|
17836
|
+
for (const declaration of swiftInterfaceDeclarations(source))
|
|
17837
|
+
declarations.add(declaration);
|
|
17838
|
+
nativeDeclarations.set(name2, declarations);
|
|
17839
|
+
}
|
|
17818
17840
|
const frameworkInterface = (name2) => {
|
|
17819
17841
|
if (frameworkInterfaces.has(name2)) return frameworkInterfaces.get(name2);
|
|
17820
17842
|
const source = distribution ? import_node_path25.default.join(frameworkRoot, "modules", `${name2}-Swift.h`) : import_node_path25.default.join(
|
|
@@ -17842,10 +17864,12 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
17842
17864
|
))
|
|
17843
17865
|
declared.add(name3);
|
|
17844
17866
|
}
|
|
17867
|
+
for (const declaration of nativeDeclarations.get(name2) ?? [])
|
|
17868
|
+
declared.add(declaration);
|
|
17845
17869
|
const own = withoutSwiftDeclarations(
|
|
17846
17870
|
clangInterfaceHeader((0, import_node_fs24.readFileSync)(source, "utf8")),
|
|
17847
17871
|
declared,
|
|
17848
|
-
`#import <${name2}/${name2}.h>`
|
|
17872
|
+
nativeDeclarations.has(name2) ? `@import ${name2};` : `#import <${name2}/${name2}.h>`
|
|
17849
17873
|
);
|
|
17850
17874
|
const owners = sdkObjCDeclarationOwners(import_node_path25.default.dirname(import_node_path25.default.dirname(headers)));
|
|
17851
17875
|
const foreign = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2300 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -13479,7 +13479,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
13479
13479
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
13480
13480
|
var MULTI_MANIFEST_VERSION = 68;
|
|
13481
13481
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
13482
|
-
var compilerSourceDigest = true ? "
|
|
13482
|
+
var compilerSourceDigest = true ? "3c645ce8a5442f60dce1735912506ad6fa5d09cb92da26cff3950c374b371e2b" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
13483
13483
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
13484
13484
|
const hash = createHash13("sha256");
|
|
13485
13485
|
hash.update(`swift-compile
|
|
@@ -17801,6 +17801,28 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
17801
17801
|
rmSync7(linked, { force: true });
|
|
17802
17802
|
report("compiling and linking Swift modules");
|
|
17803
17803
|
const frameworkInterfaces = /* @__PURE__ */ new Map();
|
|
17804
|
+
const nativeDeclarations = /* @__PURE__ */ new Map();
|
|
17805
|
+
for (const [file, contents] of Object.entries(input.files)) {
|
|
17806
|
+
if (!file.endsWith(".modulemap")) continue;
|
|
17807
|
+
const name2 = moduleMapName(contents);
|
|
17808
|
+
const umbrella = /\bumbrella\s+header\s+"([^"]+)"/.exec(contents)?.[1];
|
|
17809
|
+
if (!name2 || !umbrella) continue;
|
|
17810
|
+
const header = input.files[path27.posix.join(path27.posix.dirname(file), umbrella)];
|
|
17811
|
+
if (header === void 0) continue;
|
|
17812
|
+
const included = new Set(
|
|
17813
|
+
[
|
|
17814
|
+
...header.matchAll(/^\s*#\s*(?:import|include)\s*[<"]([^">]+)[">]/gm)
|
|
17815
|
+
].map((match) => path27.posix.basename(match[1]))
|
|
17816
|
+
);
|
|
17817
|
+
const declarations = nativeDeclarations.get(name2) ?? /* @__PURE__ */ new Set();
|
|
17818
|
+
for (const declaration of swiftInterfaceDeclarations(header))
|
|
17819
|
+
declarations.add(declaration);
|
|
17820
|
+
for (const [candidate, source] of Object.entries(input.files))
|
|
17821
|
+
if (included.has(path27.posix.basename(candidate)))
|
|
17822
|
+
for (const declaration of swiftInterfaceDeclarations(source))
|
|
17823
|
+
declarations.add(declaration);
|
|
17824
|
+
nativeDeclarations.set(name2, declarations);
|
|
17825
|
+
}
|
|
17804
17826
|
const frameworkInterface = (name2) => {
|
|
17805
17827
|
if (frameworkInterfaces.has(name2)) return frameworkInterfaces.get(name2);
|
|
17806
17828
|
const source = distribution ? path27.join(frameworkRoot, "modules", `${name2}-Swift.h`) : path27.join(
|
|
@@ -17828,10 +17850,12 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
17828
17850
|
))
|
|
17829
17851
|
declared.add(name3);
|
|
17830
17852
|
}
|
|
17853
|
+
for (const declaration of nativeDeclarations.get(name2) ?? [])
|
|
17854
|
+
declared.add(declaration);
|
|
17831
17855
|
const own = withoutSwiftDeclarations(
|
|
17832
17856
|
clangInterfaceHeader(readFileSync17(source, "utf8")),
|
|
17833
17857
|
declared,
|
|
17834
|
-
`#import <${name2}/${name2}.h>`
|
|
17858
|
+
nativeDeclarations.has(name2) ? `@import ${name2};` : `#import <${name2}/${name2}.h>`
|
|
17835
17859
|
);
|
|
17836
17860
|
const owners = sdkObjCDeclarationOwners(path27.dirname(path27.dirname(headers)));
|
|
17837
17861
|
const foreign = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2300 | (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.2300 | (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.2300 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2300 | (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;
|