peachsim 0.1.2299 → 0.1.2301
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/control.ts +1 -0
- package/cli/commands/serve.ts +12 -3
- package/cli/commands/shell-url.ts +5 -0
- 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 +413 -100
- 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 +3 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +385 -93
- 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 +2608 -102
- package/dist-lib/host/fetch-proxy-handler.cjs +6 -10
- 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 +68 -33
- 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 +66 -32
- package/dist-lib/native-app-identity-project.cjs +49 -24
- package/dist-lib/native-app-identity-project.mjs +49 -24
- 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 +56 -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 +2 -1
- package/dist-lib/sdk.mjs +2 -1
- package/dist-lib/skills.cjs +481 -125
- package/dist-lib/swift-compile.cjs +40 -8
- package/dist-lib/swift-compile.mjs +40 -8
- 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 +94 -37
- package/dist-lib/vite.cjs +12 -11
- 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/engine/font-config.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/activitykit-activityContract.d.ts +17 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/gesture-arbitration-native.d.ts +124 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +3 -1
- 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/expo-discovery-cache.ts +6 -6
- package/src/expo-swift-host.ts +19 -4
- package/src/host/bridge-host.ts +9 -0
- package/src/launchMetadataContract.ts +1 -0
- package/src/native-firebase-config.ts +14 -0
- package/src/swift-compile.ts +28 -1
- package/src/swift-guest-compile.ts +19 -3
- package/src/swift-guest-source-plan.ts +7 -2
- package/src/swiftContract.ts +3 -0
- package/src/turbo-compile.ts +60 -4
- package/src/turbo-source.ts +239 -35
- package/src/vite-plugin-one.ts +3 -3
- package/src/widget-extension-bundle.ts +48 -0
- package/src/xcode-project.ts +67 -25
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2301 | (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",
|
|
@@ -5844,6 +5842,8 @@ var init_supported_native_packages = __esm({
|
|
|
5844
5842
|
// seam
|
|
5845
5843
|
"@stripe/stripe-terminal-react-native",
|
|
5846
5844
|
// seam
|
|
5845
|
+
"@swan-io/react-native-browser",
|
|
5846
|
+
// seam
|
|
5847
5847
|
"@swmansion/react-native-bottom-sheet",
|
|
5848
5848
|
// seam
|
|
5849
5849
|
"@thehale/react-native-keep-awake",
|
|
@@ -5855,7 +5855,7 @@ var init_supported_native_packages = __esm({
|
|
|
5855
5855
|
"@use-voltra/android-client",
|
|
5856
5856
|
// seam
|
|
5857
5857
|
"@use-voltra/ios-client",
|
|
5858
|
-
//
|
|
5858
|
+
// compiled-turbo
|
|
5859
5859
|
"@vonovak/react-native-theme-control",
|
|
5860
5860
|
// seam
|
|
5861
5861
|
"@walletconnect/react-native-compat",
|
|
@@ -6112,6 +6112,8 @@ var init_supported_native_packages = __esm({
|
|
|
6112
6112
|
// seam
|
|
6113
6113
|
"react-native-app-auth",
|
|
6114
6114
|
// seam
|
|
6115
|
+
"react-native-app-clip",
|
|
6116
|
+
// compiled-swift+coverage
|
|
6115
6117
|
"react-native-app-logs",
|
|
6116
6118
|
// seam
|
|
6117
6119
|
"react-native-app-review",
|
|
@@ -6132,6 +6134,8 @@ var init_supported_native_packages = __esm({
|
|
|
6132
6134
|
// seam
|
|
6133
6135
|
"react-native-auto-skeleton",
|
|
6134
6136
|
// seam
|
|
6137
|
+
"react-native-avoid-softinput",
|
|
6138
|
+
// compiled-turbo+coverage
|
|
6135
6139
|
"react-native-background-actions",
|
|
6136
6140
|
// seam
|
|
6137
6141
|
"react-native-background-fetch",
|
|
@@ -6248,6 +6252,8 @@ var init_supported_native_packages = __esm({
|
|
|
6248
6252
|
// seam
|
|
6249
6253
|
"react-native-fast-secure-storage",
|
|
6250
6254
|
// seam+coverage
|
|
6255
|
+
"react-native-fast-squircle",
|
|
6256
|
+
// compiled-turbo+coverage
|
|
6251
6257
|
"react-native-fast-trie",
|
|
6252
6258
|
// seam+coverage
|
|
6253
6259
|
"react-native-fbsdk-next",
|
|
@@ -9666,9 +9672,9 @@ var init_registry = __esm({
|
|
|
9666
9672
|
{
|
|
9667
9673
|
range: ">=0.1.0",
|
|
9668
9674
|
coverage: 0.8,
|
|
9669
|
-
note: "
|
|
9670
|
-
working: "
|
|
9671
|
-
missing: "
|
|
9675
|
+
note: "iOS compiles the packages own RNSwanBrowser.mm and Swift and the unchanged JS runs over it; Android answers from a window.open seam",
|
|
9676
|
+
working: "iOS: the compiled module validates the URL, rejects a second open while presented and emits swanBrowserOnClose; Android: the seam opens the URL as a popup, closes it and emits swanBrowserOnClose",
|
|
9677
|
+
missing: "Android Chrome Custom Tabs UI, package selection and OS-level dismissal detection: the seam is a popup and Android native intake is paused"
|
|
9672
9678
|
}
|
|
9673
9679
|
]
|
|
9674
9680
|
},
|
|
@@ -12461,10 +12467,11 @@ var init_registry = __esm({
|
|
|
12461
12467
|
stubType: "native",
|
|
12462
12468
|
versions: [
|
|
12463
12469
|
{
|
|
12464
|
-
range: "
|
|
12465
|
-
coverage:
|
|
12466
|
-
note: "
|
|
12467
|
-
|
|
12470
|
+
range: "1.1.0",
|
|
12471
|
+
coverage: 1,
|
|
12472
|
+
note: "compiled-turbo: original package JavaScript and native TenTapKeyboard TurboModule and input-accessory sources compile to wasm on iOS",
|
|
12473
|
+
working: "RichText, Toolbar, useEditorBridge, CoreBridge, TenTapStartKit, TenTapKeyboard methods (isSystemKeyboardVisible, setSystemKeyboardSuppressed, showSystemKeyboard, setWindowOverlayMode, getNavigationBarInset, getStatusBarHeight), and WebView editor bridge execute without trapping on simulator",
|
|
12474
|
+
missing: "Android remains unqualified"
|
|
12468
12475
|
}
|
|
12469
12476
|
]
|
|
12470
12477
|
},
|
|
@@ -12557,10 +12564,11 @@ var init_registry = __esm({
|
|
|
12557
12564
|
stubType: "native",
|
|
12558
12565
|
versions: [
|
|
12559
12566
|
{
|
|
12560
|
-
range: "
|
|
12561
|
-
coverage:
|
|
12562
|
-
note: "
|
|
12563
|
-
|
|
12567
|
+
range: "9.0.1",
|
|
12568
|
+
coverage: 1,
|
|
12569
|
+
note: "compiled-turbo: original package JavaScript and native AvoidSoftInput TurboModule and Fabric view sources compile to wasm on iOS",
|
|
12570
|
+
working: "AvoidSoftInput, AvoidSoftInputView, useSoftInputState, setEnabled, setAvoidOffset, setEasing, setShowAnimationDuration, and setHideAnimationDuration execute on simulator",
|
|
12571
|
+
missing: "Android remains unqualified"
|
|
12564
12572
|
}
|
|
12565
12573
|
]
|
|
12566
12574
|
},
|
|
@@ -13139,10 +13147,11 @@ var init_registry = __esm({
|
|
|
13139
13147
|
stubType: "native",
|
|
13140
13148
|
versions: [
|
|
13141
13149
|
{
|
|
13142
|
-
range: "
|
|
13143
|
-
coverage:
|
|
13144
|
-
note: "
|
|
13145
|
-
|
|
13150
|
+
range: "0.10.0",
|
|
13151
|
+
coverage: 1,
|
|
13152
|
+
note: "compiled-swift: original package JavaScript and Expo Swift ReactNativeAppClipModule compile to wasm on iOS",
|
|
13153
|
+
working: "getBundleIdentifier, isClip, setSharedCredential, getSharedCredential, getContainerURL, and displayOverlay execute on simulator",
|
|
13154
|
+
missing: "App Store SKOverlay presentation is inert in browser simulation; Android remains unqualified"
|
|
13146
13155
|
}
|
|
13147
13156
|
]
|
|
13148
13157
|
},
|
|
@@ -14436,10 +14445,11 @@ var init_registry = __esm({
|
|
|
14436
14445
|
stubType: "native",
|
|
14437
14446
|
versions: [
|
|
14438
14447
|
{
|
|
14439
|
-
range: "
|
|
14440
|
-
coverage:
|
|
14441
|
-
note: "
|
|
14442
|
-
|
|
14448
|
+
range: "1.1.7",
|
|
14449
|
+
coverage: 1,
|
|
14450
|
+
note: "compiled-turbo: original package JavaScript and native FastSquircleView Fabric component compile to wasm on iOS",
|
|
14451
|
+
working: "FastSquircleView mounts, measures layout, and renders continuous-corner squircle views through its native Fabric component",
|
|
14452
|
+
missing: "Android remains unqualified"
|
|
14443
14453
|
}
|
|
14444
14454
|
]
|
|
14445
14455
|
},
|
|
@@ -20505,10 +20515,10 @@ var init_registry = __esm({
|
|
|
20505
20515
|
versions: [
|
|
20506
20516
|
{
|
|
20507
20517
|
range: ">=2.4.0 <2.5.0",
|
|
20508
|
-
coverage: 0.
|
|
20509
|
-
note: "
|
|
20510
|
-
working: "
|
|
20511
|
-
missing: "
|
|
20518
|
+
coverage: 0.5,
|
|
20519
|
+
note: "iOS compiles the package's own Swift and Objective-C++ (Voltra.podspec) as a TurboModule and Fabric component; the unchanged JS runs over it",
|
|
20520
|
+
working: "VoltraView paints its SwiftUI through the Fabric component host; live activity payloads brotli-compress byte-identically to Apple Compression; ActivityKit request, update, end and activity lists follow the measured iOS 27 rules",
|
|
20521
|
+
missing: "Lock Screen, Dynamic Island and home-screen widget presentation; SVG preloads hang because a snapshot of a WKWebView that was never in a window gets no reply"
|
|
20512
20522
|
}
|
|
20513
20523
|
]
|
|
20514
20524
|
},
|
|
@@ -37628,7 +37638,7 @@ var swiftCoverageProvenance;
|
|
|
37628
37638
|
var init_provenance = __esm({
|
|
37629
37639
|
"src/swift-coverage/provenance.ts"() {
|
|
37630
37640
|
"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":"
|
|
37641
|
+
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":"f0e86caccf203fa58395cbac9fed64577bb98a061efdf24f85a289c4e5996db9","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
37642
|
}
|
|
37633
37643
|
});
|
|
37634
37644
|
|
|
@@ -45213,8 +45223,8 @@ function developerDirs() {
|
|
|
45213
45223
|
}
|
|
45214
45224
|
return found;
|
|
45215
45225
|
}
|
|
45216
|
-
function readNativeSdk(
|
|
45217
|
-
const env = { ...process.env, DEVELOPER_DIR:
|
|
45226
|
+
function readNativeSdk(developerDir2) {
|
|
45227
|
+
const env = { ...process.env, DEVELOPER_DIR: developerDir2 };
|
|
45218
45228
|
const xcrun = (args) => (
|
|
45219
45229
|
// runner-toolchain-platform: darwin
|
|
45220
45230
|
(0, import_node_child_process19.execFileSync)("xcrun", args, {
|
|
@@ -45253,19 +45263,19 @@ function nativeGraphMismatches(read) {
|
|
|
45253
45263
|
function pinnedNativeSdk() {
|
|
45254
45264
|
if (resolvedPinnedSdk) return resolvedPinnedSdk;
|
|
45255
45265
|
let mismatches;
|
|
45256
|
-
for (const
|
|
45266
|
+
for (const developerDir2 of developerDirs()) {
|
|
45257
45267
|
let read;
|
|
45258
45268
|
try {
|
|
45259
|
-
read = readNativeSdk(
|
|
45269
|
+
read = readNativeSdk(developerDir2);
|
|
45260
45270
|
} catch {
|
|
45261
45271
|
continue;
|
|
45262
45272
|
}
|
|
45263
45273
|
if (read.sdk !== NATIVE_GRAPH_SDK_VERSION) continue;
|
|
45264
45274
|
const differ = nativeGraphMismatches(read);
|
|
45265
45275
|
if (differ.length === 0) {
|
|
45266
|
-
process.env.DEVELOPER_DIR =
|
|
45276
|
+
process.env.DEVELOPER_DIR = developerDir2;
|
|
45267
45277
|
resolvedPinnedSdk = {
|
|
45268
|
-
developerDir,
|
|
45278
|
+
developerDir: developerDir2,
|
|
45269
45279
|
sdkPath: read.sdkPath,
|
|
45270
45280
|
compiler: read.compiler
|
|
45271
45281
|
};
|
|
@@ -51027,8 +51037,8 @@ function swiftPackageLinkage(target) {
|
|
|
51027
51037
|
function guestSourceImages(graph) {
|
|
51028
51038
|
const targets = new Map(graph.targets.map((target) => [target.id, target]));
|
|
51029
51039
|
const entry = targets.get(graph.entry);
|
|
51030
|
-
if (!entry || entry.productType !== "com.apple.product-type.application")
|
|
51031
|
-
throw new Error("source graph has no application entry");
|
|
51040
|
+
if (!entry || entry.productType !== "com.apple.product-type.application" && entry.productType !== "com.apple.product-type.app-extension")
|
|
51041
|
+
throw new Error("source graph has no application or app extension entry");
|
|
51032
51042
|
const images = [
|
|
51033
51043
|
{ id: 0, owner: entry.id, members: [] }
|
|
51034
51044
|
];
|
|
@@ -53541,6 +53551,12 @@ async function compileGuestLink(options) {
|
|
|
53541
53551
|
(target) => target.productName.endsWith(".framework") ? [target.productName.slice(0, -10)] : []
|
|
53542
53552
|
)
|
|
53543
53553
|
);
|
|
53554
|
+
const sourceLibraries = new Set(
|
|
53555
|
+
options.graph.targets.flatMap((target) => {
|
|
53556
|
+
const library = /^lib(.+)\.(?:a|dylib)$/.exec(target.productName);
|
|
53557
|
+
return library ? [library[1]] : [];
|
|
53558
|
+
})
|
|
53559
|
+
);
|
|
53544
53560
|
const entry = targets.get(options.graph.entry);
|
|
53545
53561
|
if (!entry) throw new Error("guest source graph has no entry");
|
|
53546
53562
|
const imageBuildVersion = (value) => {
|
|
@@ -53710,10 +53726,12 @@ async function compileGuestLink(options) {
|
|
|
53710
53726
|
images: sourceImages.map((image) => ({
|
|
53711
53727
|
id: image.id,
|
|
53712
53728
|
objects: selectedSource.filter((artifact) => artifact.image === image.id).map((artifact) => artifact.path),
|
|
53713
|
-
// a `-framework Name` for a
|
|
53714
|
-
// that
|
|
53729
|
+
// a `-framework Name` or `-lname` for a product the source graph
|
|
53730
|
+
// builds links that product's own target, which the plan already holds
|
|
53715
53731
|
linkerFlags: image.members.flatMap((id) => targets.get(id).linkerFlags).filter(
|
|
53716
|
-
(flag, index, flags) => !sourceFrameworks.has(flags[index - 1] === "-framework" ? flag : "") && !(flag === "-framework" && sourceFrameworks.has(flags[index + 1] ?? ""))
|
|
53732
|
+
(flag, index, flags) => !sourceFrameworks.has(flags[index - 1] === "-framework" ? flag : "") && !(flag === "-framework" && sourceFrameworks.has(flags[index + 1] ?? "")) && !sourceLibraries.has(
|
|
53733
|
+
flag.startsWith("-l") && flag.length > 2 ? flag.slice(2) : flags[index - 1] === "-l" ? flag : ""
|
|
53734
|
+
) && !(flag === "-l" && sourceLibraries.has(flags[index + 1] ?? ""))
|
|
53717
53735
|
),
|
|
53718
53736
|
clangLinkOptions: selectedSource.filter((artifact) => artifact.image === image.id).map((artifact) => ({
|
|
53719
53737
|
object: import_node_path42.default.resolve(rewritten.get(artifact.path) ?? artifact.path),
|
|
@@ -59360,6 +59378,28 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
59360
59378
|
(0, import_node_fs54.rmSync)(linked, { force: true });
|
|
59361
59379
|
report("compiling and linking Swift modules");
|
|
59362
59380
|
const frameworkInterfaces = /* @__PURE__ */ new Map();
|
|
59381
|
+
const nativeDeclarations = /* @__PURE__ */ new Map();
|
|
59382
|
+
for (const [file, contents] of Object.entries(input.files)) {
|
|
59383
|
+
if (!file.endsWith(".modulemap")) continue;
|
|
59384
|
+
const name3 = moduleMapName(contents);
|
|
59385
|
+
const umbrella = /\bumbrella\s+header\s+"([^"]+)"/.exec(contents)?.[1];
|
|
59386
|
+
if (!name3 || !umbrella) continue;
|
|
59387
|
+
const header = input.files[import_node_path50.default.posix.join(import_node_path50.default.posix.dirname(file), umbrella)];
|
|
59388
|
+
if (header === void 0) continue;
|
|
59389
|
+
const included = new Set(
|
|
59390
|
+
[
|
|
59391
|
+
...header.matchAll(/^\s*#\s*(?:import|include)\s*[<"]([^">]+)[">]/gm)
|
|
59392
|
+
].map((match) => import_node_path50.default.posix.basename(match[1]))
|
|
59393
|
+
);
|
|
59394
|
+
const declarations = nativeDeclarations.get(name3) ?? /* @__PURE__ */ new Set();
|
|
59395
|
+
for (const declaration of swiftInterfaceDeclarations(header))
|
|
59396
|
+
declarations.add(declaration);
|
|
59397
|
+
for (const [candidate, source] of Object.entries(input.files))
|
|
59398
|
+
if (included.has(import_node_path50.default.posix.basename(candidate)))
|
|
59399
|
+
for (const declaration of swiftInterfaceDeclarations(source))
|
|
59400
|
+
declarations.add(declaration);
|
|
59401
|
+
nativeDeclarations.set(name3, declarations);
|
|
59402
|
+
}
|
|
59363
59403
|
const frameworkInterface = (name3) => {
|
|
59364
59404
|
if (frameworkInterfaces.has(name3)) return frameworkInterfaces.get(name3);
|
|
59365
59405
|
const source = distribution ? import_node_path50.default.join(frameworkRoot, "modules", `${name3}-Swift.h`) : import_node_path50.default.join(
|
|
@@ -59387,10 +59427,12 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
59387
59427
|
))
|
|
59388
59428
|
declared.add(name4);
|
|
59389
59429
|
}
|
|
59430
|
+
for (const declaration of nativeDeclarations.get(name3) ?? [])
|
|
59431
|
+
declared.add(declaration);
|
|
59390
59432
|
const own = withoutSwiftDeclarations(
|
|
59391
59433
|
clangInterfaceHeader((0, import_node_fs54.readFileSync)(source, "utf8")),
|
|
59392
59434
|
declared,
|
|
59393
|
-
`#import <${name3}/${name3}.h>`
|
|
59435
|
+
nativeDeclarations.has(name3) ? `@import ${name3};` : `#import <${name3}/${name3}.h>`
|
|
59394
59436
|
);
|
|
59395
59437
|
const owners = sdkObjCDeclarationOwners(import_node_path50.default.dirname(import_node_path50.default.dirname(headers)));
|
|
59396
59438
|
const foreign = /* @__PURE__ */ new Map();
|
|
@@ -59839,7 +59881,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
59839
59881
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
59840
59882
|
MULTI_MANIFEST_VERSION = 68;
|
|
59841
59883
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
59842
|
-
compilerSourceDigest = true ? "
|
|
59884
|
+
compilerSourceDigest = true ? "ad311d7f868d4920f32f2ed00502f49f84fb83ae19817180a70ef5f799334169" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
59843
59885
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
59844
59886
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
59845
59887
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -62224,6 +62266,16 @@ function loadProject(xcodeproj) {
|
|
|
62224
62266
|
loaded.set(projectFile, { digest: digest3, project: result });
|
|
62225
62267
|
return result;
|
|
62226
62268
|
}
|
|
62269
|
+
function selectedDeveloperDir() {
|
|
62270
|
+
developerDir ??= process.platform === "darwin" ? (
|
|
62271
|
+
// runner-toolchain-platform: darwin
|
|
62272
|
+
(0, import_node_child_process34.execFileSync)("xcode-select", ["-p"], {
|
|
62273
|
+
encoding: "utf8",
|
|
62274
|
+
stdio: ["ignore", "pipe", "pipe"]
|
|
62275
|
+
}).trim()
|
|
62276
|
+
) : "";
|
|
62277
|
+
return developerDir;
|
|
62278
|
+
}
|
|
62227
62279
|
function defaultConfiguration(project2) {
|
|
62228
62280
|
const configList = project2.object(str(project2.project.buildConfigurationList));
|
|
62229
62281
|
const names = list(configList?.buildConfigurations).flatMap(
|
|
@@ -62290,15 +62342,8 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
|
|
|
62290
62342
|
resolving2.delete(marker);
|
|
62291
62343
|
return value;
|
|
62292
62344
|
};
|
|
62293
|
-
let developerDir;
|
|
62294
62345
|
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
|
-
) : ""),
|
|
62346
|
+
DEVELOPER_DIR: () => options.environment?.DEVELOPER_DIR ?? process.env.DEVELOPER_DIR ?? selectedDeveloperDir(),
|
|
62302
62347
|
PRODUCT_NAME: () => get("TARGET_NAME"),
|
|
62303
62348
|
PRODUCT_MODULE_NAME: () => applyOperator(get("PRODUCT_NAME"), "c99extidentifier"),
|
|
62304
62349
|
EXECUTABLE_NAME: () => get("PRODUCT_NAME"),
|
|
@@ -62923,7 +62968,7 @@ function defaultXcodeAppTarget(xcodeproj) {
|
|
|
62923
62968
|
function readXcodeExtensionTargets(input) {
|
|
62924
62969
|
return workspaceProjects(import_node_fs58.default.realpathSync.native(input)).projects.flatMap(
|
|
62925
62970
|
(project2) => projectTargets(project2).flatMap((ref) => {
|
|
62926
|
-
if (ref.target.productType !==
|
|
62971
|
+
if (ref.target.productType !== APP_EXTENSION) return [];
|
|
62927
62972
|
const name3 = str(ref.target.name) ?? ref.id;
|
|
62928
62973
|
const { get, keys, xcconfigs } = targetSettings(
|
|
62929
62974
|
ref,
|
|
@@ -63120,7 +63165,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
63120
63165
|
options.installedPods
|
|
63121
63166
|
);
|
|
63122
63167
|
const allTargets = projects2.flatMap(projectTargets);
|
|
63123
|
-
const appTargets = allTargets.filter(
|
|
63168
|
+
const appTargets = allTargets.filter(
|
|
63169
|
+
(ref) => isIosAppTarget(ref, options) || targetName !== void 0 && ref.target.name === targetName && ref.target.productType === APP_EXTENSION
|
|
63170
|
+
);
|
|
63124
63171
|
const appTargetNames = appTargets.map((ref) => str(ref.target.name) ?? ref.id);
|
|
63125
63172
|
const container = import_node_path55.default.basename(xcodeprojOrWorkspace);
|
|
63126
63173
|
const named = targetName ? appTargets.filter((ref) => ref.target.name === targetName) : appTargets;
|
|
@@ -63184,7 +63231,8 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
63184
63231
|
const words2 = settingList(flags);
|
|
63185
63232
|
const linked = new Set(linkedTargets(ref).map((link) => link.target));
|
|
63186
63233
|
return words2.flatMap((word, index) => {
|
|
63187
|
-
const
|
|
63234
|
+
const library = word.startsWith("-l") && word.length > 2 ? word.slice(2) : words2[index - 1] === "-l" ? word : void 0;
|
|
63235
|
+
const target = words2[index - 1] === "-framework" ? byProduct.get(`${word}.framework`) : library ? byProduct.get(`lib${library}.a`) ?? byProduct.get(`lib${library}.dylib`) : void 0;
|
|
63188
63236
|
if (!target || target === ref || linked.has(target)) return [];
|
|
63189
63237
|
linked.add(target);
|
|
63190
63238
|
return [{ target, attributes: [] }];
|
|
@@ -63212,7 +63260,16 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
63212
63260
|
order.push(ref);
|
|
63213
63261
|
};
|
|
63214
63262
|
visit3(app);
|
|
63215
|
-
const
|
|
63263
|
+
const headerPhases = /* @__PURE__ */ new Map();
|
|
63264
|
+
const headerPhase = (ref) => {
|
|
63265
|
+
const key2 = `${ref.project.xcodeproj}\0${ref.id}`;
|
|
63266
|
+
const cached4 = headerPhases.get(key2);
|
|
63267
|
+
if (cached4) return cached4;
|
|
63268
|
+
const files2 = readHeaderPhase(ref);
|
|
63269
|
+
headerPhases.set(key2, files2);
|
|
63270
|
+
return files2;
|
|
63271
|
+
};
|
|
63272
|
+
const readHeaderPhase = (ref) => list(ref.target.buildPhases).flatMap((phaseId) => {
|
|
63216
63273
|
const phase = ref.project.object(phaseId);
|
|
63217
63274
|
if (phase?.isa !== "PBXHeadersBuildPhase") return [];
|
|
63218
63275
|
return list(phase.files).flatMap((id) => {
|
|
@@ -63229,6 +63286,23 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
63229
63286
|
];
|
|
63230
63287
|
});
|
|
63231
63288
|
});
|
|
63289
|
+
const projectNonFrameworkHeaders = /* @__PURE__ */ new Map();
|
|
63290
|
+
const nonFrameworkHeadersOf = (project2) => {
|
|
63291
|
+
const cached4 = projectNonFrameworkHeaders.get(project2);
|
|
63292
|
+
if (cached4) return cached4;
|
|
63293
|
+
const headers = /* @__PURE__ */ new Map();
|
|
63294
|
+
for (const other of projectTargets(project2)) {
|
|
63295
|
+
if (FRAMEWORK_PRODUCTS.has(str(other.target.productType) ?? "")) continue;
|
|
63296
|
+
const otherProduct = productName(other);
|
|
63297
|
+
for (const { file, visibility } of headerPhase(other)) {
|
|
63298
|
+
if (visibility === "Project") continue;
|
|
63299
|
+
const key2 = `${otherProduct}/${import_node_path55.default.basename(file)}`;
|
|
63300
|
+
if (!headers.has(key2)) headers.set(key2, file);
|
|
63301
|
+
}
|
|
63302
|
+
}
|
|
63303
|
+
projectNonFrameworkHeaders.set(project2, headers);
|
|
63304
|
+
return headers;
|
|
63305
|
+
};
|
|
63232
63306
|
const productNames = /* @__PURE__ */ new Map();
|
|
63233
63307
|
const productName = (ref) => {
|
|
63234
63308
|
const key2 = `${ref.project.xcodeproj}\0${ref.id}`;
|
|
@@ -63461,16 +63535,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
63461
63535
|
const qualified3 = `${product}/${name4}`;
|
|
63462
63536
|
if (!ownHeaders.has(qualified3)) ownHeaders.set(qualified3, file);
|
|
63463
63537
|
}
|
|
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
|
-
}
|
|
63538
|
+
const nonFrameworkHeaders = nonFrameworkHeadersOf(ref.project);
|
|
63474
63539
|
const wrapper = import_node_path55.default.join(settings2("BUILT_PRODUCTS_DIR"), `${product}.framework`);
|
|
63475
63540
|
const moduleMap = (settings2("DEFINES_MODULE") === "YES" || !framework) && settings2("MODULEMAP_FILE") ? absolute(settings2("MODULEMAP_FILE")) : null;
|
|
63476
63541
|
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 +64234,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
64169
64234
|
cocoapods
|
|
64170
64235
|
};
|
|
64171
64236
|
}
|
|
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;
|
|
64237
|
+
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, APP_EXTENSION, RESOURCE_BUNDLE, PRODUCT_MACH_O_TYPES, FRAMEWORK_PRODUCTS, HEADER_FILE, MODULE_PRODUCTS, CONDITIONS, isDirectory, loaded, developerDir, preparedSourcePhases, isPodsProject, targetRefs, NativeAppTargetSelectionError, workspaceResolvedFile, SwiftPackageResolutionRequired;
|
|
64173
64238
|
var init_xcode_project = __esm({
|
|
64174
64239
|
"src/xcode-project.ts"() {
|
|
64175
64240
|
"use strict";
|
|
@@ -64208,6 +64273,7 @@ var init_xcode_project = __esm({
|
|
|
64208
64273
|
"compiler-default"
|
|
64209
64274
|
]);
|
|
64210
64275
|
APPLICATION = "com.apple.product-type.application";
|
|
64276
|
+
APP_EXTENSION = "com.apple.product-type.app-extension";
|
|
64211
64277
|
RESOURCE_BUNDLE = "com.apple.product-type.bundle";
|
|
64212
64278
|
PRODUCT_MACH_O_TYPES = {
|
|
64213
64279
|
"com.apple.product-type.application": "mh_execute",
|
|
@@ -64268,6 +64334,15 @@ function resolveExpoConfigModule(appDir) {
|
|
|
64268
64334
|
return (0, import_node_module5.createRequire)(expo).resolve("@expo/config");
|
|
64269
64335
|
}
|
|
64270
64336
|
function hasExpoConfig(projectRoot) {
|
|
64337
|
+
const packagePath = import_node_path56.default.join(projectRoot, "package.json");
|
|
64338
|
+
const manifest = import_node_fs59.default.existsSync(packagePath) ? JSON.parse(import_node_fs59.default.readFileSync(packagePath, "utf8")) : null;
|
|
64339
|
+
if (isRecord(manifest)) {
|
|
64340
|
+
const dependencies = [manifest.dependencies, manifest.devDependencies].filter(
|
|
64341
|
+
isRecord
|
|
64342
|
+
);
|
|
64343
|
+
if (dependencies.some((deps) => "one" in deps) && !dependencies.some((deps) => "expo" in deps))
|
|
64344
|
+
return false;
|
|
64345
|
+
}
|
|
64271
64346
|
const appJsonPath = import_node_path56.default.join(projectRoot, "app.json");
|
|
64272
64347
|
const appJson = import_node_fs59.default.existsSync(appJsonPath) ? JSON.parse(import_node_fs59.default.readFileSync(appJsonPath, "utf8")) : null;
|
|
64273
64348
|
const staticExpo = isRecord(appJson) && (isRecord(appJson.expo) || [appJson.ios, appJson.android].some(
|
|
@@ -65929,7 +66004,7 @@ async function expoDiscoveryKey(options) {
|
|
|
65929
66004
|
const key2 = (0, import_node_crypto33.createHash)("sha256").update(`${peachPin()}\0${hash}\0`).update(`${stable2(JSON.parse(options.searchText))}\0`).update(`${stable2(options.configuration)}\0`).update(stable2(JSON.parse(options.resolveText))).digest("hex");
|
|
65930
66005
|
return { key: key2, root };
|
|
65931
66006
|
}
|
|
65932
|
-
function
|
|
66007
|
+
function expoDiscoveryCacheDir() {
|
|
65933
66008
|
return import_node_path63.default.join(sharedCacheDir(import_node_path63.default.join(ambientHomeDir(), "cache")), "expo-discovery");
|
|
65934
66009
|
}
|
|
65935
66010
|
function vanished2(error) {
|
|
@@ -65966,7 +66041,7 @@ function isStoredUnit(value) {
|
|
|
65966
66041
|
}
|
|
65967
66042
|
function readExpoDiscovery(key2) {
|
|
65968
66043
|
let parsed;
|
|
65969
|
-
const record4 = import_node_path63.default.join(
|
|
66044
|
+
const record4 = import_node_path63.default.join(expoDiscoveryCacheDir(), `${key2}.json`);
|
|
65970
66045
|
try {
|
|
65971
66046
|
parsed = JSON.parse(import_node_fs66.default.readFileSync(record4, "utf8"));
|
|
65972
66047
|
} catch {
|
|
@@ -65995,7 +66070,7 @@ function readExpoDiscovery(key2) {
|
|
|
65995
66070
|
const read = (digest3) => {
|
|
65996
66071
|
const known = blobs.get(digest3);
|
|
65997
66072
|
if (known !== void 0) return known;
|
|
65998
|
-
const blob = import_node_path63.default.join(
|
|
66073
|
+
const blob = import_node_path63.default.join(expoDiscoveryCacheDir(), "blobs", digest3);
|
|
65999
66074
|
const body = import_node_fs66.default.readFileSync(blob, "utf8");
|
|
66000
66075
|
if ((0, import_node_crypto33.createHash)("sha256").update(body).digest("hex") !== digest3)
|
|
66001
66076
|
throw new Error("discovery blob differs from its digest");
|
|
@@ -66039,7 +66114,7 @@ function readExpoDiscovery(key2) {
|
|
|
66039
66114
|
}
|
|
66040
66115
|
}
|
|
66041
66116
|
function fileHashesPath() {
|
|
66042
|
-
return import_node_path63.default.join(
|
|
66117
|
+
return import_node_path63.default.join(expoDiscoveryCacheDir(), "framework-file-hashes.json");
|
|
66043
66118
|
}
|
|
66044
66119
|
function stampedFileHash(file) {
|
|
66045
66120
|
if (!fileHashesLoaded) {
|
|
@@ -66217,7 +66292,7 @@ function rewritePreparedPaths(options) {
|
|
|
66217
66292
|
frameworkDependencies[sourceDir] = sourceDigest;
|
|
66218
66293
|
let portableDir = sourceDir;
|
|
66219
66294
|
if (preparedDigest !== sourceDigest) {
|
|
66220
|
-
const parent = import_node_path63.default.join(
|
|
66295
|
+
const parent = import_node_path63.default.join(expoDiscoveryCacheDir(), "frameworks", preparedDigest);
|
|
66221
66296
|
portableDir = import_node_path63.default.join(parent, import_node_path63.default.basename(dir));
|
|
66222
66297
|
if (!import_node_fs66.default.existsSync(portableDir)) {
|
|
66223
66298
|
import_node_fs66.default.mkdirSync(parent, { recursive: true });
|
|
@@ -66248,7 +66323,7 @@ function rewritePreparedPaths(options) {
|
|
|
66248
66323
|
}
|
|
66249
66324
|
function writeExpoDiscovery(options) {
|
|
66250
66325
|
try {
|
|
66251
|
-
const dir =
|
|
66326
|
+
const dir = expoDiscoveryCacheDir();
|
|
66252
66327
|
import_node_fs66.default.mkdirSync(dir, { recursive: true });
|
|
66253
66328
|
const tmp = import_node_path63.default.join(dir, `.${options.key}.${process.pid}.${(0, import_node_crypto33.randomUUID)()}.tmp`);
|
|
66254
66329
|
if (options.units === null) {
|
|
@@ -66444,7 +66519,7 @@ var init_swift_standin_digest = __esm({
|
|
|
66444
66519
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
66445
66520
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
66446
66521
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
66447
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
66522
|
+
STANDIN_SOURCE_DIGEST = true ? "7dd2fef3ceef6be07d22cfa2f397bda7721d34bc2ef8764f78e05b9637849f09" : standinSourceDigest();
|
|
66448
66523
|
}
|
|
66449
66524
|
});
|
|
66450
66525
|
|
|
@@ -66923,7 +66998,7 @@ __export(expo_native_prebuilt_exports, {
|
|
|
66923
66998
|
servedExpoSwift: () => servedExpoSwift
|
|
66924
66999
|
});
|
|
66925
67000
|
function expoNativeCompilerDigestValue() {
|
|
66926
|
-
return true ? "
|
|
67001
|
+
return true ? "064dc6aa590b7937e7499edee9ff07b0ef387a59a35ed48a2d820ab27209917a" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
66927
67002
|
}
|
|
66928
67003
|
function readSources(value) {
|
|
66929
67004
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -82105,7 +82180,8 @@ async function collectTurboSources(options) {
|
|
|
82105
82180
|
reactNative,
|
|
82106
82181
|
sources: [],
|
|
82107
82182
|
externalPodSources: [],
|
|
82108
|
-
rendererSwiftTargets: []
|
|
82183
|
+
rendererSwiftTargets: [],
|
|
82184
|
+
fabricComponents: []
|
|
82109
82185
|
};
|
|
82110
82186
|
const sharedLibrary = [...options.installedPods?.values() ?? []].find(
|
|
82111
82187
|
(pod) => pod.sharedLibrary
|
|
@@ -82552,6 +82628,9 @@ async function collectTurboSources(options) {
|
|
|
82552
82628
|
};
|
|
82553
82629
|
let objc = Boolean(options.reactNativeProvider);
|
|
82554
82630
|
let fabric = Boolean(options.reactNativeProvider);
|
|
82631
|
+
const fabricPackages = /* @__PURE__ */ new Set();
|
|
82632
|
+
const fabricViews = [];
|
|
82633
|
+
let fabricTarget = null;
|
|
82555
82634
|
let legacyBridge = false;
|
|
82556
82635
|
let hermesHeaders = null;
|
|
82557
82636
|
const objcClasses = /* @__PURE__ */ new Set();
|
|
@@ -82575,7 +82654,11 @@ async function collectTurboSources(options) {
|
|
|
82575
82654
|
{ tool: "cxx", flags: pod.installed.preprocessorFlags.cxx }
|
|
82576
82655
|
];
|
|
82577
82656
|
const root = pod.root;
|
|
82578
|
-
|
|
82657
|
+
if (fabricComponents(provider.root)) {
|
|
82658
|
+
fabric = true;
|
|
82659
|
+
fabricPackages.add(provider.name);
|
|
82660
|
+
fabricTarget ??= { targetName, label, root: provider.root };
|
|
82661
|
+
}
|
|
82579
82662
|
if (pod.installed?.library) {
|
|
82580
82663
|
result.libraries ??= {};
|
|
82581
82664
|
result.libraries[targetName] = import_node_fs93.default.readFileSync(pod.installed.library).toString("base64");
|
|
@@ -82848,6 +82931,17 @@ async function collectTurboSources(options) {
|
|
|
82848
82931
|
const owned = /* @__PURE__ */ new Set();
|
|
82849
82932
|
walkFiles2(generated, "", owned);
|
|
82850
82933
|
const spec = codegenConfig.name;
|
|
82934
|
+
let definedComponentNames;
|
|
82935
|
+
const getDefinedComponentNames = () => {
|
|
82936
|
+
if (definedComponentNames) return definedComponentNames;
|
|
82937
|
+
definedComponentNames = /* @__PURE__ */ new Set();
|
|
82938
|
+
const pattern = /\b(?:const\s+char|char\s+const)\s+(\w+ComponentName)\s*\[\s*\]\s*=/g;
|
|
82939
|
+
for (const sourceFile of sources) {
|
|
82940
|
+
const text6 = readPackageFile(root, import_node_path89.default.join(root, sourceFile), Infinity).toString("utf8").replace(/\/\/[^\n]*/g, "");
|
|
82941
|
+
for (const match of text6.matchAll(pattern)) definedComponentNames.add(match[1]);
|
|
82942
|
+
}
|
|
82943
|
+
return definedComponentNames;
|
|
82944
|
+
};
|
|
82851
82945
|
for (const file of [...owned].sort()) {
|
|
82852
82946
|
const base = import_node_path89.default.posix.basename(file);
|
|
82853
82947
|
const objcSpec = providerObjC && file.startsWith(`${spec}/`);
|
|
@@ -82869,7 +82963,32 @@ async function collectTurboSources(options) {
|
|
|
82869
82963
|
relative: file
|
|
82870
82964
|
}
|
|
82871
82965
|
);
|
|
82872
|
-
else
|
|
82966
|
+
else {
|
|
82967
|
+
if (component && base === "ShadowNodes.cpp") {
|
|
82968
|
+
const defined = getDefinedComponentNames();
|
|
82969
|
+
if (defined.size) {
|
|
82970
|
+
const source = readPackageFile(
|
|
82971
|
+
generated,
|
|
82972
|
+
import_node_path89.default.join(generated, file),
|
|
82973
|
+
Infinity
|
|
82974
|
+
).toString("utf8");
|
|
82975
|
+
const filtered = source.replace(
|
|
82976
|
+
/^[ \t]*(?:extern[ \t]+)?(?:const[ \t]+char|char[ \t]+const)[ \t]+(\w+ComponentName)[ \t]*\[[ \t]*\][ \t]*=[^;]*;[ \t]*\r?\n?/gm,
|
|
82977
|
+
(line, name3) => defined.has(name3) ? "" : line
|
|
82978
|
+
);
|
|
82979
|
+
if (filtered !== source) {
|
|
82980
|
+
if (!/\b(?:const\s+char|char\s+const)\s+\w+ComponentName\s*\[\s*\]\s*=/.test(
|
|
82981
|
+
filtered
|
|
82982
|
+
))
|
|
82983
|
+
continue;
|
|
82984
|
+
const key2 = original(targetName, "ReactCodegen", generated, file);
|
|
82985
|
+
result.files[key2] = filtered;
|
|
82986
|
+
continue;
|
|
82987
|
+
}
|
|
82988
|
+
}
|
|
82989
|
+
}
|
|
82990
|
+
original(targetName, "ReactCodegen", generated, file);
|
|
82991
|
+
}
|
|
82873
82992
|
}
|
|
82874
82993
|
}
|
|
82875
82994
|
for (const file of sources) original(targetName, label, root, file);
|
|
@@ -82930,7 +83049,7 @@ ${declared.map((symbol2) => `extern "C" void ${symbol2}();
|
|
|
82930
83049
|
add2(`${core}/include/PeachJsiRuntime.hpp`, TURBO_RUNTIME_HEADER);
|
|
82931
83050
|
add2(
|
|
82932
83051
|
`${core}/${TURBO_CORE_PUBLIC_HEADERS}/${TURBO_ENTRY_HEADER}`,
|
|
82933
|
-
'#pragma once\nextern "C" void peachTurboInitialize();\n'
|
|
83052
|
+
'#pragma once\nextern "C" void peachTurboInitialize();\n// the +1 Fabric component view a root of the process shows, in an app with one\nextern "C" void *peach_fabric_view_content(int tag);\n'
|
|
82934
83053
|
);
|
|
82935
83054
|
add2(
|
|
82936
83055
|
`${core}/${TURBO_CORE_PUBLIC_HEADERS}/module.modulemap`,
|
|
@@ -83056,6 +83175,21 @@ ${declared.map((symbol2) => `extern "C" void ${symbol2}();
|
|
|
83056
83175
|
original(TURBO_CORE_TARGET, "ReactCodegen", generated, "RCTModuleProviders.h")
|
|
83057
83176
|
);
|
|
83058
83177
|
}
|
|
83178
|
+
const thirdParty = import_node_path89.default.join(generated, "RCTThirdPartyComponentsProvider.mm");
|
|
83179
|
+
if (fabricPackages.size > 0 && import_node_fs93.default.existsSync(thirdParty)) {
|
|
83180
|
+
for (const [, name3, className2, owner] of import_node_fs93.default.readFileSync(thirdParty, "utf8").matchAll(/@"([^"]+)": NSClassFromString\(@"([^"]+)"\), \/\/ (\S+)/g))
|
|
83181
|
+
if (fabricPackages.has(owner))
|
|
83182
|
+
fabricViews.push({ name: name3, className: className2 });
|
|
83183
|
+
}
|
|
83184
|
+
if (fabricViews.length > 0 && fabricTarget) {
|
|
83185
|
+
result.fabricComponents = fabricViews.map(({ name: name3 }) => name3);
|
|
83186
|
+
const unit2 = `${targetPath(fabricTarget.targetName)}/PeachFabricHost.mm`;
|
|
83187
|
+
add2(unit2, fabricHostSource(fabricViews));
|
|
83188
|
+
scanText(
|
|
83189
|
+
{ key: unit2, ...fabricTarget, relative: "PeachFabricHost.mm" },
|
|
83190
|
+
result.files[unit2]
|
|
83191
|
+
);
|
|
83192
|
+
}
|
|
83059
83193
|
}
|
|
83060
83194
|
if (fabric || legacyBridge) {
|
|
83061
83195
|
if (legacyBridge) {
|
|
@@ -83399,38 +83533,6 @@ void dispatchToJSThread(dispatch_block_t block) {
|
|
|
83399
83533
|
}
|
|
83400
83534
|
} // namespace
|
|
83401
83535
|
|
|
83402
|
-
static CGFloat peachScreenBrightness = 0.5;
|
|
83403
|
-
|
|
83404
|
-
@implementation UIScreen (PeachTurboRuntime)
|
|
83405
|
-
+ (UIScreen *)mainScreen {
|
|
83406
|
-
static UIScreen *screen = nil;
|
|
83407
|
-
if (!screen) screen = [[UIScreen alloc] init];
|
|
83408
|
-
return screen;
|
|
83409
|
-
}
|
|
83410
|
-
- (CGFloat)brightness {
|
|
83411
|
-
return peachScreenBrightness;
|
|
83412
|
-
}
|
|
83413
|
-
- (void)setBrightness:(CGFloat)value {
|
|
83414
|
-
peachScreenBrightness = value;
|
|
83415
|
-
}
|
|
83416
|
-
@end
|
|
83417
|
-
|
|
83418
|
-
static BOOL peachIdleTimerDisabled = NO;
|
|
83419
|
-
|
|
83420
|
-
@implementation UIApplication (PeachTurboRuntime)
|
|
83421
|
-
+ (UIApplication *)sharedApplication {
|
|
83422
|
-
static UIApplication *app = nil;
|
|
83423
|
-
if (!app) app = [[UIApplication alloc] init];
|
|
83424
|
-
return app;
|
|
83425
|
-
}
|
|
83426
|
-
- (BOOL)isIdleTimerDisabled {
|
|
83427
|
-
return peachIdleTimerDisabled;
|
|
83428
|
-
}
|
|
83429
|
-
- (void)setIdleTimerDisabled:(BOOL)disabled {
|
|
83430
|
-
peachIdleTimerDisabled = disabled;
|
|
83431
|
-
}
|
|
83432
|
-
@end
|
|
83433
|
-
|
|
83434
83536
|
// React Native's own modules register before any provider's, and RCTBridge.mm
|
|
83435
83537
|
// creates the registry's queue in the first RCTRegisterModule. the engine
|
|
83436
83538
|
// supplies those modules, so a process whose providers register none (codegen
|
|
@@ -83547,6 +83649,12 @@ ${moduleProviders ? `- (id<RCTModuleProvider>)getModuleProvider:(const char *)na
|
|
|
83547
83649
|
|
|
83548
83650
|
@end
|
|
83549
83651
|
|
|
83652
|
+
// an app's Fabric component views, which its own Fabric host defines
|
|
83653
|
+
extern "C" void peachInstallFabricViews(facebook::jsi::Runtime &runtime) __attribute__((weak));
|
|
83654
|
+
|
|
83655
|
+
// UIKitCore: the key window and root view controller an app delegate makes at launch
|
|
83656
|
+
extern "C" void PeachLaunchReactNativeWindow(void);
|
|
83657
|
+
|
|
83550
83658
|
extern "C" void peachTurboInitialize() {
|
|
83551
83659
|
objc_create_block_classes_as_subclasses_of([NSObject class]);
|
|
83552
83660
|
if (Class blockClass = NSClassFromString(@"_NSBlock")) {
|
|
@@ -83560,6 +83668,7 @@ extern "C" void peachTurboInitialize() {
|
|
|
83560
83668
|
static_cast<uint32_t *>((__bridge void *)mainQueueClass)[4] &= ~2048u;
|
|
83561
83669
|
*reinterpret_cast<void **>(&_dispatch_main_q) = (__bridge void *)mainQueueClass;
|
|
83562
83670
|
}
|
|
83671
|
+
PeachLaunchReactNativeWindow();
|
|
83563
83672
|
auto& runtime = peach::jsi_runtime::create(
|
|
83564
83673
|
[] { invoker->drain(); },
|
|
83565
83674
|
[] {
|
|
@@ -83620,6 +83729,7 @@ ${bridgeProxy ? ` // as RCTInstance does: the proxy modules reach as their brid
|
|
|
83620
83729
|
}];
|
|
83621
83730
|
[decorator.moduleRegistry setTurboModuleRegistry:manager];
|
|
83622
83731
|
[manager installJSBindings:runtime];
|
|
83732
|
+
if (peachInstallFabricViews) peachInstallFabricViews(runtime);
|
|
83623
83733
|
}
|
|
83624
83734
|
|
|
83625
83735
|
// the screenshot the device took, as UIKit posts it to every observer in the
|
|
@@ -83665,7 +83775,129 @@ ${moduleProviders ? " [found addObjectsFromArray:RCTModuleProviders.moduleProvi
|
|
|
83665
83775
|
}
|
|
83666
83776
|
`;
|
|
83667
83777
|
}
|
|
83668
|
-
|
|
83778
|
+
function fabricHostSource(views) {
|
|
83779
|
+
const entries = views.map(
|
|
83780
|
+
({ name: name3, className: className2 }) => `@${JSON.stringify(name3)}: NSClassFromString(@${JSON.stringify(className2)})`
|
|
83781
|
+
).join(", ");
|
|
83782
|
+
return `${FABRIC_HOST_INCLUDES}
|
|
83783
|
+
@interface PeachFabricComponents : NSObject <RCTComponentViewFactoryComponentProvider>
|
|
83784
|
+
@end
|
|
83785
|
+
|
|
83786
|
+
@implementation PeachFabricComponents
|
|
83787
|
+
- (NSDictionary<NSString *, Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents
|
|
83788
|
+
{
|
|
83789
|
+
return @{${entries}};
|
|
83790
|
+
}
|
|
83791
|
+
@end
|
|
83792
|
+
|
|
83793
|
+
namespace {
|
|
83794
|
+
struct PeachFabricView {
|
|
83795
|
+
react::ComponentHandle handle;
|
|
83796
|
+
const react::ComponentDescriptor *descriptor;
|
|
83797
|
+
react::Props::Shared props;
|
|
83798
|
+
react::LayoutMetrics layoutMetrics;
|
|
83799
|
+
};
|
|
83800
|
+
PeachFabricComponents *fabricComponents;
|
|
83801
|
+
RCTComponentViewRegistry *fabricRegistry;
|
|
83802
|
+
std::shared_ptr<const react::ContextContainer> fabricContext;
|
|
83803
|
+
react::ComponentDescriptorRegistry::Shared fabricDescriptors;
|
|
83804
|
+
std::unordered_map<int, PeachFabricView> fabricViews;
|
|
83805
|
+
int nextFabricView = 1;
|
|
83806
|
+
std::string fabricNames = ${JSON.stringify(views.map(({ name: name3 }) => name3).join("\n"))};
|
|
83807
|
+
|
|
83808
|
+
PeachFabricView &fabricView(int tag) {
|
|
83809
|
+
auto found = fabricViews.find(tag);
|
|
83810
|
+
if (found == fabricViews.end()) {
|
|
83811
|
+
std::fprintf(stderr, "no mounted Fabric view %d\\n", tag);
|
|
83812
|
+
std::abort();
|
|
83813
|
+
}
|
|
83814
|
+
return found->second;
|
|
83815
|
+
}
|
|
83816
|
+
|
|
83817
|
+
react::Props::Shared fabricCloneProps(jsi::Runtime &rt, const PeachFabricView &view, const jsi::Value &props) {
|
|
83818
|
+
react::PropsParserContext context{-1, *fabricContext};
|
|
83819
|
+
return view.descriptor->cloneProps(context, view.props, react::RawProps(rt, props));
|
|
83820
|
+
}
|
|
83821
|
+
|
|
83822
|
+
} // namespace
|
|
83823
|
+
|
|
83824
|
+
extern "C" void peachInstallFabricViews(jsi::Runtime &rt) {
|
|
83825
|
+
fabricComponents = [PeachFabricComponents new];
|
|
83826
|
+
RCTComponentViewFactory *factory = [RCTComponentViewFactory currentComponentViewFactory];
|
|
83827
|
+
factory.thirdPartyFabricComponentsProvider = fabricComponents;
|
|
83828
|
+
fabricRegistry = [RCTComponentViewRegistry new];
|
|
83829
|
+
fabricContext = std::make_shared<const react::ContextContainer>();
|
|
83830
|
+
react::ComponentDescriptorParameters parameters{{}, fabricContext, nullptr};
|
|
83831
|
+
fabricDescriptors = [factory createComponentDescriptorRegistryWithParameters:parameters];
|
|
83832
|
+
auto views = jsi::Object(rt);
|
|
83833
|
+
auto method = [&](const char *name, unsigned count, jsi::HostFunctionType body) {
|
|
83834
|
+
views.setProperty(rt, name, jsi::Function::createFromHostFunction(rt, jsi::PropNameID::forAscii(rt, name), count, std::move(body)));
|
|
83835
|
+
};
|
|
83836
|
+
// Create then Insert: the first props, no event emitter or state, and the
|
|
83837
|
+
// layout the view has before the engine measures it
|
|
83838
|
+
method("create", 2, [](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
83839
|
+
const auto &descriptor = fabricDescriptors->at(args[0].asString(rt).utf8(rt));
|
|
83840
|
+
int tag = nextFabricView++;
|
|
83841
|
+
auto &view = fabricViews.emplace(tag, PeachFabricView{descriptor.getComponentHandle(), &descriptor, nullptr, {}}).first->second;
|
|
83842
|
+
view.props = fabricCloneProps(rt, view, args[1]);
|
|
83843
|
+
UIView<RCTComponentViewProtocol> *componentView =
|
|
83844
|
+
[fabricRegistry dequeueComponentViewWithComponentHandle:view.handle tag:tag].view;
|
|
83845
|
+
[componentView updateProps:view.props oldProps:nullptr];
|
|
83846
|
+
[componentView updateEventEmitter:nullptr];
|
|
83847
|
+
[componentView updateState:nullptr oldState:nullptr];
|
|
83848
|
+
[componentView updateLayoutMetrics:view.layoutMetrics oldLayoutMetrics:react::EmptyLayoutMetrics];
|
|
83849
|
+
[componentView finalizeUpdates:RNComponentViewUpdateMaskAll];
|
|
83850
|
+
return jsi::Value(tag);
|
|
83851
|
+
});
|
|
83852
|
+
// Update with the props React changed since the last commit
|
|
83853
|
+
method("update", 2, [](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
83854
|
+
int tag = static_cast<int>(args[0].asNumber());
|
|
83855
|
+
auto &view = fabricView(tag);
|
|
83856
|
+
auto oldProps = view.props;
|
|
83857
|
+
view.props = fabricCloneProps(rt, view, args[1]);
|
|
83858
|
+
UIView<RCTComponentViewProtocol> *componentView = [fabricRegistry componentViewDescriptorWithTag:tag].view;
|
|
83859
|
+
[componentView updateProps:view.props oldProps:oldProps];
|
|
83860
|
+
[componentView finalizeUpdates:RNComponentViewUpdateMaskProps];
|
|
83861
|
+
return jsi::Value::undefined();
|
|
83862
|
+
});
|
|
83863
|
+
// Update with the size and scale the engine laid the view out at
|
|
83864
|
+
method("layout", 4, [](jsi::Runtime &, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
83865
|
+
int tag = static_cast<int>(args[0].asNumber());
|
|
83866
|
+
auto &view = fabricView(tag);
|
|
83867
|
+
auto metrics = view.layoutMetrics;
|
|
83868
|
+
metrics.frame = react::Rect{{0, 0}, {static_cast<react::Float>(args[1].asNumber()), static_cast<react::Float>(args[2].asNumber())}};
|
|
83869
|
+
metrics.pointScaleFactor = static_cast<react::Float>(args[3].asNumber());
|
|
83870
|
+
if (metrics == view.layoutMetrics) return jsi::Value::undefined();
|
|
83871
|
+
UIView<RCTComponentViewProtocol> *componentView = [fabricRegistry componentViewDescriptorWithTag:tag].view;
|
|
83872
|
+
[componentView updateLayoutMetrics:metrics oldLayoutMetrics:view.layoutMetrics];
|
|
83873
|
+
view.layoutMetrics = metrics;
|
|
83874
|
+
[componentView finalizeUpdates:RNComponentViewUpdateMaskLayoutMetrics];
|
|
83875
|
+
return jsi::Value::undefined();
|
|
83876
|
+
});
|
|
83877
|
+
// Remove then Delete: the registry recycles the view
|
|
83878
|
+
method("drop", 1, [](jsi::Runtime &, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
83879
|
+
int tag = static_cast<int>(args[0].asNumber());
|
|
83880
|
+
auto &view = fabricView(tag);
|
|
83881
|
+
RCTComponentViewDescriptor descriptor = [fabricRegistry componentViewDescriptorWithTag:tag];
|
|
83882
|
+
[descriptor.view removeFromSuperview];
|
|
83883
|
+
[fabricRegistry enqueueComponentViewWithComponentHandle:view.handle tag:tag componentViewDescriptor:descriptor];
|
|
83884
|
+
fabricViews.erase(tag);
|
|
83885
|
+
return jsi::Value::undefined();
|
|
83886
|
+
});
|
|
83887
|
+
rt.global().setProperty(rt, "peachFabricViews", std::move(views));
|
|
83888
|
+
}
|
|
83889
|
+
|
|
83890
|
+
extern "C" void *peach_fabric_view_content(int tag) {
|
|
83891
|
+
return (__bridge_retained void *)[fabricRegistry componentViewDescriptorWithTag:tag].view;
|
|
83892
|
+
}
|
|
83893
|
+
|
|
83894
|
+
// the component names the host registers as views, newline separated
|
|
83895
|
+
extern "C" __attribute__((export_name("peach_fabric_component_names"))) const char *peachFabricComponentNames() {
|
|
83896
|
+
return fabricNames.c_str();
|
|
83897
|
+
}
|
|
83898
|
+
`;
|
|
83899
|
+
}
|
|
83900
|
+
var import_node_child_process50, import_node_crypto48, import_node_fs93, import_node_path89, import_node_util15, execFileAsync3, TURBO_CORE_TARGET, TURBO_FMT_TARGET, TURBO_ENTRY_HEADER, TURBO_CORE_PUBLIC_HEADERS, REGISTRATION, CODEGEN_OBJC, UNIT, HEADER3, OBJC2, OBJC_TURBO, OBJC_BRIDGE, OBJC_REGISTERED, REACT_NATIVE_UNITS, REACT_NATIVE_INCLUDE_ROOTS, REACT_NATIVE_OBJC_UNITS, REACT_NATIVE_OBJC_VERSIONED_UNITS, REACT_NATIVE_HEADER_DIRS, REACT_NATIVE_BARE_HEADER_DIRS, DECLARED_MODULE_NAME, EXPORTED_MODULE, sha2564, versionParts, iosOf, JS_CALL_INVOKER, FABRIC_HOST_INCLUDES;
|
|
83669
83901
|
var init_turbo_source = __esm({
|
|
83670
83902
|
"src/turbo-source.ts"() {
|
|
83671
83903
|
"use strict";
|
|
@@ -83828,6 +84060,22 @@ class JsCallInvoker final : public react::CallInvoker {
|
|
|
83828
84060
|
std::deque<react::CallFunc> pending;
|
|
83829
84061
|
};
|
|
83830
84062
|
|
|
84063
|
+
`;
|
|
84064
|
+
FABRIC_HOST_INCLUDES = `#import <Foundation/Foundation.h>
|
|
84065
|
+
#import <React/RCTComponentViewFactory.h>
|
|
84066
|
+
#import <React/RCTComponentViewProtocol.h>
|
|
84067
|
+
#import <React/RCTComponentViewRegistry.h>
|
|
84068
|
+
#include <react/renderer/componentregistry/ComponentDescriptorRegistry.h>
|
|
84069
|
+
#include <react/renderer/core/LayoutMetrics.h>
|
|
84070
|
+
#include <react/renderer/core/PropsParserContext.h>
|
|
84071
|
+
#include <react/renderer/core/RawProps.h>
|
|
84072
|
+
#include <react/utils/ContextContainer.h>
|
|
84073
|
+
#include <cstdio>
|
|
84074
|
+
#include <cstdlib>
|
|
84075
|
+
#include <unordered_map>
|
|
84076
|
+
#include <jsi/jsi.h>
|
|
84077
|
+
|
|
84078
|
+
using namespace facebook;
|
|
83831
84079
|
`;
|
|
83832
84080
|
}
|
|
83833
84081
|
});
|
|
@@ -83883,7 +84131,7 @@ function collectTurboCompileInput(collection, runtime, iosDeploymentTarget, depe
|
|
|
83883
84131
|
dependencyTargets = dependencyTargets.filter(
|
|
83884
84132
|
(_, index) => !providerNames.has(parsedTargets[index].name)
|
|
83885
84133
|
);
|
|
83886
|
-
const swift = Object.keys(files2).some((file) => file.endsWith(".swift"));
|
|
84134
|
+
const swift = collection.coreMode === "turbo" || Object.keys(files2).some((file) => file.endsWith(".swift"));
|
|
83887
84135
|
const entry = `Sources/PeachTurboApp/main.${swift ? "swift" : "cpp"}`;
|
|
83888
84136
|
const targetNames = targets.map(({ name: name3 }) => name3);
|
|
83889
84137
|
const loadTargetNames = new Set(collection.loads.map(({ target }) => target));
|
|
@@ -83892,10 +84140,56 @@ function collectTurboCompileInput(collection, runtime, iosDeploymentTarget, depe
|
|
|
83892
84140
|
(file) => file.startsWith(`${target.path}/`) && file.endsWith(".swift")
|
|
83893
84141
|
)
|
|
83894
84142
|
).map(({ name: name3 }) => name3);
|
|
83895
|
-
|
|
83896
|
-
|
|
83897
|
-
|
|
83898
|
-
|
|
84143
|
+
const initialize = [
|
|
84144
|
+
"_PeachReactNativeWindow.launch()",
|
|
84145
|
+
...collection.loads.map(({ symbol: symbol2 }) => `${symbol2}()`),
|
|
84146
|
+
...runtime ? ["peachTurboInitialize()"] : []
|
|
84147
|
+
];
|
|
84148
|
+
const fabric = collection.fabricComponents.length > 0;
|
|
84149
|
+
files2[entry] = swift ? [
|
|
84150
|
+
"import SwiftUI",
|
|
84151
|
+
"import UIKit",
|
|
84152
|
+
"import PeachJSON",
|
|
84153
|
+
...swiftImportedTargetNames.map((target) => `import ${target}`),
|
|
84154
|
+
"",
|
|
84155
|
+
"@main struct PeachTurboApp: PeachPackage {",
|
|
84156
|
+
` init() { ${initialize.join("; ")} }`,
|
|
84157
|
+
...fabric ? [
|
|
84158
|
+
" func view(props: JSON) -> PeachTurboRoot { PeachTurboRoot(props: props) }",
|
|
84159
|
+
"}",
|
|
84160
|
+
"",
|
|
84161
|
+
"struct PeachTurboRoot: View {",
|
|
84162
|
+
" let fabric: Int32?",
|
|
84163
|
+
"",
|
|
84164
|
+
" init(props: JSON) {",
|
|
84165
|
+
' guard case .object(let fields) = props, let field = fields.first(where: { $0.0 == "fabric" }), case .number(let tag) = field.1 else {',
|
|
84166
|
+
" fabric = nil",
|
|
84167
|
+
" return",
|
|
84168
|
+
" }",
|
|
84169
|
+
" fabric = Int32(tag)",
|
|
84170
|
+
" }",
|
|
84171
|
+
"",
|
|
84172
|
+
" var body: some View {",
|
|
84173
|
+
" if let fabric { PeachFabricComponent(tag: fabric) } else { _PeachReactNativeWindow() }",
|
|
84174
|
+
" }",
|
|
84175
|
+
"}",
|
|
84176
|
+
"",
|
|
84177
|
+
"struct PeachFabricComponent: UIViewRepresentable {",
|
|
84178
|
+
" let tag: Int32",
|
|
84179
|
+
"",
|
|
84180
|
+
" func makeUIView(context: Context) -> UIView {",
|
|
84181
|
+
' guard let view = peach_fabric_view_content(tag) else { fatalError("Fabric view \\(tag) is not mounted") }',
|
|
84182
|
+
" return Unmanaged<UIView>.fromOpaque(view).takeRetainedValue()",
|
|
84183
|
+
" }",
|
|
84184
|
+
"",
|
|
84185
|
+
" func updateUIView(_ view: UIView, context: Context) {}",
|
|
84186
|
+
"}"
|
|
84187
|
+
] : [
|
|
84188
|
+
" func view(props: JSON) -> _PeachReactNativeWindow { _PeachReactNativeWindow() }",
|
|
84189
|
+
"}"
|
|
84190
|
+
],
|
|
84191
|
+
""
|
|
84192
|
+
].join("\n") : [
|
|
83899
84193
|
'extern "C" void peachTurboInitialize();',
|
|
83900
84194
|
...collection.loads.map(({ symbol: symbol2 }) => `extern "C" void ${symbol2}();`),
|
|
83901
84195
|
"int main(int argc, char **argv) {",
|
|
@@ -84532,7 +84826,7 @@ var init_react_native_core = __esm({
|
|
|
84532
84826
|
init_swift_distribution();
|
|
84533
84827
|
init_swift_package();
|
|
84534
84828
|
init_swiftContract();
|
|
84535
|
-
recipe = true ? "
|
|
84829
|
+
recipe = true ? "96416de7238919b274266f095ef4213211a2a26c133d0df7ab5e0459ded52ef1" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
84536
84830
|
strings4 = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
84537
84831
|
building = /* @__PURE__ */ new Map();
|
|
84538
84832
|
}
|
|
@@ -84665,7 +84959,9 @@ function installSwiftInputTrace() {
|
|
|
84665
84959
|
import_node_path93.default.join(swiftCacheDir(), "swift-builds"),
|
|
84666
84960
|
import_node_path93.default.join(swiftCacheDir(), "swift-sdk-views"),
|
|
84667
84961
|
swiftRootLocksDir(),
|
|
84668
|
-
import_node_path93.default.join(cacheDir(), "swift-tmp")
|
|
84962
|
+
import_node_path93.default.join(cacheDir(), "swift-tmp"),
|
|
84963
|
+
// content-addressed records whose reads renew their timestamps for expiry.
|
|
84964
|
+
expoDiscoveryCacheDir()
|
|
84669
84965
|
].filter((prefix, index, all) => all.indexOf(prefix) === index);
|
|
84670
84966
|
ignoredRoots = prefixes.flatMap((root) => {
|
|
84671
84967
|
try {
|
|
@@ -84771,11 +85067,13 @@ async function witnessMatches(witness) {
|
|
|
84771
85067
|
return true;
|
|
84772
85068
|
}
|
|
84773
85069
|
async function discoveryKey(root, installedWorkspace, prepareNative, iosTarget, moduleRoot) {
|
|
84774
|
-
const
|
|
85070
|
+
const preparesWorkspace = prepareNative && !installedWorkspace && nativeWorkspaceAvailable();
|
|
85071
|
+
const [config, expoConfig, workspace] = await Promise.all([
|
|
84775
85072
|
loadRNXAppConfig(resolveAppProject(root)),
|
|
84776
|
-
readExpoConfigAsync(root)
|
|
85073
|
+
readExpoConfigAsync(root),
|
|
85074
|
+
preparesWorkspace ? traceStore.exit(() => hashExpoWorkspace(root)) : null
|
|
84777
85075
|
]);
|
|
84778
|
-
return `${import_node_fs97.default.realpathSync(root)}\0${installedWorkspace ?? ""}\0${iosTarget ?? ""}\0${moduleRoot ?? ""}\0${prepareNative ? "1" : "0"}\0${JSON.stringify(config)}\0${JSON.stringify(expoConfig)}`;
|
|
85076
|
+
return `${import_node_fs97.default.realpathSync(root)}\0${installedWorkspace ?? ""}\0${iosTarget ?? ""}\0${moduleRoot ?? ""}\0${prepareNative ? "1" : "0"}\0${JSON.stringify(config)}\0${JSON.stringify(expoConfig)}\0${workspace?.hash ?? ""}`;
|
|
84779
85077
|
}
|
|
84780
85078
|
function cloneNativeTarget(target) {
|
|
84781
85079
|
return {
|
|
@@ -86058,7 +86356,11 @@ function expoEntry(units, oneSDK = false) {
|
|
|
86058
86356
|
(unit2) => Object.keys(unit2.files).some((file) => file.startsWith(`Sources/${namespace}/`))
|
|
86059
86357
|
)
|
|
86060
86358
|
);
|
|
86061
|
-
const bridgeModules = units.flatMap(
|
|
86359
|
+
const bridgeModules = units.flatMap(
|
|
86360
|
+
(unit2) => unit2.bridgeModules.map(
|
|
86361
|
+
(registration) => registration === `${unit2.namespace}.__peachReactModule_${unit2.namespace}()` ? registration.slice(unit2.namespace.length + 1) : registration
|
|
86362
|
+
)
|
|
86363
|
+
);
|
|
86062
86364
|
const subscribers = units.flatMap((unit2) => unit2.appDelegateSubscribers);
|
|
86063
86365
|
const handlers = units.flatMap((unit2) => unit2.reactDelegateHandlers);
|
|
86064
86366
|
const delegates = subscribers.length + handlers.length > 0 ? `; PeachExpoRuntime.registerDelegates(subscribers: [${subscribers.join(", ")}], handlers: [${handlers.join(", ")}])` : "";
|
|
@@ -87055,6 +87357,7 @@ var init_launchMetadataContract = __esm({
|
|
|
87055
87357
|
"expoKotlin",
|
|
87056
87358
|
"nitro",
|
|
87057
87359
|
"turbo",
|
|
87360
|
+
"widgetExtension",
|
|
87058
87361
|
"appManifest",
|
|
87059
87362
|
"packageVersions",
|
|
87060
87363
|
"dotEnv",
|
|
@@ -88446,7 +88749,7 @@ var init_nitro_superset = __esm({
|
|
|
88446
88749
|
init_nitroContract();
|
|
88447
88750
|
init_swift_standin_digest();
|
|
88448
88751
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
88449
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
88752
|
+
NITRO_COMPILER_DIGEST = true ? "3f4226b3727dae50227ba7f4fd8d517c59939e4f4d2f56ef11e1dafd09705f5c" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
88450
88753
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
88451
88754
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
88452
88755
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -89155,7 +89458,7 @@ var init_one_sdk_bundle = __esm({
|
|
|
89155
89458
|
var runtime_companion_default;
|
|
89156
89459
|
var init_runtime_companion = __esm({
|
|
89157
89460
|
"runtime-companion.json"() {
|
|
89158
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
89461
|
+
runtime_companion_default = { abi: 1, sha256: "60900a3af6e6213c855e6682baa0ebdb6a6865510e4e3a51a24d4c584b3fdec2", file: "node/cli-60900a3af6e6213c855e6682baa0ebdb6a6865510e4e3a51a24d4c584b3fdec2.cjs" };
|
|
89159
89462
|
}
|
|
89160
89463
|
});
|
|
89161
89464
|
|
|
@@ -89166,6 +89469,7 @@ __export(cli_runtime_exports, {
|
|
|
89166
89469
|
cliCompanionPath: () => cliCompanionPath,
|
|
89167
89470
|
ensureCliCompanion: () => ensureCliCompanion,
|
|
89168
89471
|
getCliRuntime: () => getCliRuntime,
|
|
89472
|
+
loadCliRuntime: () => loadCliRuntime,
|
|
89169
89473
|
verifyCliCompanion: () => verifyCliCompanion
|
|
89170
89474
|
});
|
|
89171
89475
|
function cliCompanionPath() {
|
|
@@ -89213,6 +89517,10 @@ async function ensureCliCompanion(root) {
|
|
|
89213
89517
|
(0, import_node_fs106.rmSync)(staged, { force: true });
|
|
89214
89518
|
}
|
|
89215
89519
|
}
|
|
89520
|
+
async function loadCliRuntime() {
|
|
89521
|
+
if (!loaded2) await ensureCliCompanion(peachRuntimeRoot());
|
|
89522
|
+
return getCliRuntime();
|
|
89523
|
+
}
|
|
89216
89524
|
function getCliRuntime() {
|
|
89217
89525
|
if (loaded2) return loaded2.runtime;
|
|
89218
89526
|
const root = peachRuntimeRoot();
|
|
@@ -89563,6 +89871,43 @@ var init_turbo_bundle = __esm({
|
|
|
89563
89871
|
}
|
|
89564
89872
|
});
|
|
89565
89873
|
|
|
89874
|
+
// src/widget-extension-bundle.ts
|
|
89875
|
+
async function compileWidgetExtension(appRoot, origin) {
|
|
89876
|
+
const projectRoot = await prepareNativeAppRoot(appRoot);
|
|
89877
|
+
const workspace = installedXcodeWorkspace(projectRoot);
|
|
89878
|
+
if (!workspace) return null;
|
|
89879
|
+
const extensions = readXcodeExtensionTargets(workspace).filter(({ infoPlist }) => {
|
|
89880
|
+
const extension = infoPlist.NSExtension;
|
|
89881
|
+
return typeof extension === "object" && extension !== null && "NSExtensionPointIdentifier" in extension && extension.NSExtensionPointIdentifier === "com.apple.widgetkit-extension";
|
|
89882
|
+
});
|
|
89883
|
+
if (extensions.length === 0) return null;
|
|
89884
|
+
if (extensions.length > 1)
|
|
89885
|
+
throw new Error(
|
|
89886
|
+
`${workspace}: more than one WidgetKit extension (${extensions.map(({ name: name4 }) => name4).join(", ")}) is unmeasured`
|
|
89887
|
+
);
|
|
89888
|
+
const { name: name3 } = extensions[0];
|
|
89889
|
+
const moduleRoot = await swiftDistributionRoot();
|
|
89890
|
+
await prepareXcodeSwiftPackages(workspace, name3, "Release");
|
|
89891
|
+
const root = openXcodeProject(workspace, name3, moduleRoot, "Release");
|
|
89892
|
+
return { metadata: await swiftPackageMetadata(root, name3, moduleRoot, origin) };
|
|
89893
|
+
}
|
|
89894
|
+
var WIDGET_EXTENSION_ROUTE, handleWidgetExtensionRequest;
|
|
89895
|
+
var init_widget_extension_bundle = __esm({
|
|
89896
|
+
"src/widget-extension-bundle.ts"() {
|
|
89897
|
+
"use strict";
|
|
89898
|
+
init_expo_native_workspace();
|
|
89899
|
+
init_nitro_bundle();
|
|
89900
|
+
init_swift_distribution();
|
|
89901
|
+
init_swift_host();
|
|
89902
|
+
init_xcode_project();
|
|
89903
|
+
WIDGET_EXTENSION_ROUTE = "/__peach/widget-extension";
|
|
89904
|
+
handleWidgetExtensionRequest = compiledModuleRequestHandler(
|
|
89905
|
+
"Widget extension",
|
|
89906
|
+
(root, origin) => compileWidgetExtension(root, origin)
|
|
89907
|
+
);
|
|
89908
|
+
}
|
|
89909
|
+
});
|
|
89910
|
+
|
|
89566
89911
|
// src/expo-manifest-body.ts
|
|
89567
89912
|
function parseExpoManifestBody(body) {
|
|
89568
89913
|
const opening = /^(--[^\r\n]+)\r?\n/.exec(body);
|
|
@@ -105424,6 +105769,7 @@ var init_bridge_host = __esm({
|
|
|
105424
105769
|
init_runtime_delivery();
|
|
105425
105770
|
init_runtime_packs();
|
|
105426
105771
|
init_turbo_bundle();
|
|
105772
|
+
init_widget_extension_bundle();
|
|
105427
105773
|
init_agent_host();
|
|
105428
105774
|
init_app_package_handler();
|
|
105429
105775
|
init_fetch_proxy_handler();
|
|
@@ -106456,7 +106802,7 @@ var init_bridge_host = __esm({
|
|
|
106456
106802
|
return;
|
|
106457
106803
|
}
|
|
106458
106804
|
const route = req.url?.split("?")[0] ?? "";
|
|
106459
|
-
if (route === EXPO_WIDGETS_ROUTE || route === NITRO_ROUTE || route === ONE_SDK_ROUTE || route === TURBO_ROUTE || /^\/__peach\/(?:expo-swift|swift|expo-kotlin|kotlin-artifact\/)/.test(route)) {
|
|
106805
|
+
if (route === EXPO_WIDGETS_ROUTE || route === WIDGET_EXTENSION_ROUTE || route === NITRO_ROUTE || route === ONE_SDK_ROUTE || route === TURBO_ROUTE || /^\/__peach\/(?:expo-swift|swift|expo-kotlin|kotlin-artifact\/)/.test(route)) {
|
|
106460
106806
|
this.nativeWorkInFlight++;
|
|
106461
106807
|
res.once("close", () => {
|
|
106462
106808
|
this.nativeWorkInFlight--;
|
|
@@ -106467,6 +106813,10 @@ var init_bridge_host = __esm({
|
|
|
106467
106813
|
void handleExpoWidgetsRequest(req, res);
|
|
106468
106814
|
return;
|
|
106469
106815
|
}
|
|
106816
|
+
if (route === WIDGET_EXTENSION_ROUTE) {
|
|
106817
|
+
void handleWidgetExtensionRequest(req, res);
|
|
106818
|
+
return;
|
|
106819
|
+
}
|
|
106470
106820
|
if (route === ONE_SDK_ROUTE) {
|
|
106471
106821
|
void handleOneSDKRequest(req, res);
|
|
106472
106822
|
return;
|
|
@@ -118005,6 +118355,7 @@ async function buildShellUrl(target, baseUrl = resolveDefaultShellBaseUrl(), opt
|
|
|
118005
118355
|
"expoWidgets",
|
|
118006
118356
|
"nitro",
|
|
118007
118357
|
"turbo",
|
|
118358
|
+
"widgetExtension",
|
|
118008
118359
|
"expoKotlin"
|
|
118009
118360
|
].some((key2) => supplied.searchParams.has(key2)))
|
|
118010
118361
|
return applyShellLaunchOptions(supplied, opts).toString();
|
|
@@ -118142,6 +118493,10 @@ async function buildShellUrl(target, baseUrl = resolveDefaultShellBaseUrl(), opt
|
|
|
118142
118493
|
"turbo",
|
|
118143
118494
|
`${nativeAssetOrigin}/__peach/turbo?root=${encodeURIComponent(expoRoot)}${opts.iosTarget ? `&iosTarget=${encodeURIComponent(opts.iosTarget)}` : ""}`
|
|
118144
118495
|
);
|
|
118496
|
+
expoStamped.searchParams.set(
|
|
118497
|
+
"widgetExtension",
|
|
118498
|
+
`${nativeAssetOrigin}/__peach/widget-extension?root=${encodeURIComponent(expoRoot)}`
|
|
118499
|
+
);
|
|
118145
118500
|
expoStamped.searchParams.set(
|
|
118146
118501
|
"oneSDK",
|
|
118147
118502
|
`${nativeAssetOrigin}/__peach/one-sdk?root=${encodeURIComponent(expoRoot)}`
|
|
@@ -133293,6 +133648,7 @@ function deriveCurrentSimBaseUrl(sim, fallback) {
|
|
|
133293
133648
|
url.searchParams.delete("nitro");
|
|
133294
133649
|
url.searchParams.delete("oneSDK");
|
|
133295
133650
|
url.searchParams.delete("turbo");
|
|
133651
|
+
url.searchParams.delete("widgetExtension");
|
|
133296
133652
|
return url.toString();
|
|
133297
133653
|
} catch {
|
|
133298
133654
|
return fallback;
|