peachsim 0.1.2298 → 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 +196 -49
- 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 +167 -41
- 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 +184 -57
- 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 +61 -31
- 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 +60 -30
- package/dist-lib/native-app-identity-project.cjs +44 -23
- package/dist-lib/native-app-identity-project.mjs +44 -23
- 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 +213 -74
- package/dist-lib/swift-compile.cjs +49 -3
- package/dist-lib/swift-compile.mjs +49 -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 +105 -35
- 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-engine/src/render-worker/nativeAnimMirrorContract.d.ts +2 -1
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +2 -2
- package/dist-types/packages/peach-kit/src/transitions/screen-transition-math.d.ts +25 -13
- package/kotlin/sdk.tar.gz +0 -0
- 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 +65 -4
- package/src/native-firebase-config.ts +14 -0
- package/src/native-swift-slices.ts +9 -2
- package/src/swift-compile.ts +28 -1
- package/src/swift-standins.ts +6 -3
- package/src/swift-wasm-prune.ts +29 -0
- package/src/vite-plugin-one.ts +3 -3
- package/src/xcode-project.ts +46 -23
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
|
};
|
|
@@ -48031,6 +48039,28 @@ function parseWasmObjectBytes(file, buf, isDist, symbolFlagOffsets) {
|
|
|
48031
48039
|
dataRelocList.push({ ...r, segIdx: lo, offInSeg, ownerSymIdx });
|
|
48032
48040
|
}
|
|
48033
48041
|
}
|
|
48042
|
+
const relocatedWords = /* @__PURE__ */ new Map();
|
|
48043
|
+
for (const r of dataRelocList) {
|
|
48044
|
+
let words2 = relocatedWords.get(r.segIdx);
|
|
48045
|
+
if (!words2) relocatedWords.set(r.segIdx, words2 = /* @__PURE__ */ new Set());
|
|
48046
|
+
words2.add(r.offInSeg);
|
|
48047
|
+
}
|
|
48048
|
+
for (const [segIdx, tops] of segTopSyms) {
|
|
48049
|
+
const starts = new Map(tops.map((top) => [top.off, top.symIdx]));
|
|
48050
|
+
const relocated = relocatedWords.get(segIdx);
|
|
48051
|
+
const payload = dataStart + sPayloadStarts[segIdx];
|
|
48052
|
+
const view = new DataView(buf.buffer, buf.byteOffset + payload);
|
|
48053
|
+
for (const top of tops) {
|
|
48054
|
+
for (let at = top.off; at + 4 <= top.end; at += 4) {
|
|
48055
|
+
if (relocated?.has(at)) continue;
|
|
48056
|
+
const target = starts.get(at + (view.getInt32(at, true) & ~3));
|
|
48057
|
+
if (target === void 0 || target === top.symIdx) continue;
|
|
48058
|
+
let list2 = symDataRelocs.get(top.symIdx);
|
|
48059
|
+
if (!list2) symDataRelocs.set(top.symIdx, list2 = []);
|
|
48060
|
+
list2.push(target);
|
|
48061
|
+
}
|
|
48062
|
+
}
|
|
48063
|
+
}
|
|
48034
48064
|
const typePrefixesInObj = /* @__PURE__ */ new Set();
|
|
48035
48065
|
for (let i = 0; i < symKind.length; i++) {
|
|
48036
48066
|
if ((symFlags[i] & 16) === 0 && symNames[i].startsWith("$s") && symNames[i].endsWith("Mn")) {
|
|
@@ -59338,6 +59368,28 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
59338
59368
|
(0, import_node_fs54.rmSync)(linked, { force: true });
|
|
59339
59369
|
report("compiling and linking Swift modules");
|
|
59340
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
|
+
}
|
|
59341
59393
|
const frameworkInterface = (name3) => {
|
|
59342
59394
|
if (frameworkInterfaces.has(name3)) return frameworkInterfaces.get(name3);
|
|
59343
59395
|
const source = distribution ? import_node_path50.default.join(frameworkRoot, "modules", `${name3}-Swift.h`) : import_node_path50.default.join(
|
|
@@ -59365,10 +59417,12 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
59365
59417
|
))
|
|
59366
59418
|
declared.add(name4);
|
|
59367
59419
|
}
|
|
59420
|
+
for (const declaration of nativeDeclarations.get(name3) ?? [])
|
|
59421
|
+
declared.add(declaration);
|
|
59368
59422
|
const own = withoutSwiftDeclarations(
|
|
59369
59423
|
clangInterfaceHeader((0, import_node_fs54.readFileSync)(source, "utf8")),
|
|
59370
59424
|
declared,
|
|
59371
|
-
`#import <${name3}/${name3}.h>`
|
|
59425
|
+
nativeDeclarations.has(name3) ? `@import ${name3};` : `#import <${name3}/${name3}.h>`
|
|
59372
59426
|
);
|
|
59373
59427
|
const owners = sdkObjCDeclarationOwners(import_node_path50.default.dirname(import_node_path50.default.dirname(headers)));
|
|
59374
59428
|
const foreign = /* @__PURE__ */ new Map();
|
|
@@ -59817,7 +59871,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
59817
59871
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
59818
59872
|
MULTI_MANIFEST_VERSION = 68;
|
|
59819
59873
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
59820
|
-
compilerSourceDigest = true ? "
|
|
59874
|
+
compilerSourceDigest = true ? "3c645ce8a5442f60dce1735912506ad6fa5d09cb92da26cff3950c374b371e2b" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
59821
59875
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
59822
59876
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
59823
59877
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -62202,6 +62256,16 @@ function loadProject(xcodeproj) {
|
|
|
62202
62256
|
loaded.set(projectFile, { digest: digest3, project: result });
|
|
62203
62257
|
return result;
|
|
62204
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
|
+
}
|
|
62205
62269
|
function defaultConfiguration(project2) {
|
|
62206
62270
|
const configList = project2.object(str(project2.project.buildConfigurationList));
|
|
62207
62271
|
const names = list(configList?.buildConfigurations).flatMap(
|
|
@@ -62268,15 +62332,8 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
|
|
|
62268
62332
|
resolving2.delete(marker);
|
|
62269
62333
|
return value;
|
|
62270
62334
|
};
|
|
62271
|
-
let developerDir;
|
|
62272
62335
|
const derivedSettings = {
|
|
62273
|
-
DEVELOPER_DIR: () => options.environment?.DEVELOPER_DIR ?? process.env.DEVELOPER_DIR ?? (
|
|
62274
|
-
// runner-toolchain-platform: darwin
|
|
62275
|
-
(0, import_node_child_process34.execFileSync)("xcode-select", ["-p"], {
|
|
62276
|
-
encoding: "utf8",
|
|
62277
|
-
stdio: ["ignore", "pipe", "pipe"]
|
|
62278
|
-
}).trim()
|
|
62279
|
-
) : ""),
|
|
62336
|
+
DEVELOPER_DIR: () => options.environment?.DEVELOPER_DIR ?? process.env.DEVELOPER_DIR ?? selectedDeveloperDir(),
|
|
62280
62337
|
PRODUCT_NAME: () => get("TARGET_NAME"),
|
|
62281
62338
|
PRODUCT_MODULE_NAME: () => applyOperator(get("PRODUCT_NAME"), "c99extidentifier"),
|
|
62282
62339
|
EXECUTABLE_NAME: () => get("PRODUCT_NAME"),
|
|
@@ -63190,7 +63247,16 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
63190
63247
|
order.push(ref);
|
|
63191
63248
|
};
|
|
63192
63249
|
visit3(app);
|
|
63193
|
-
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) => {
|
|
63194
63260
|
const phase = ref.project.object(phaseId);
|
|
63195
63261
|
if (phase?.isa !== "PBXHeadersBuildPhase") return [];
|
|
63196
63262
|
return list(phase.files).flatMap((id) => {
|
|
@@ -63207,6 +63273,23 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
63207
63273
|
];
|
|
63208
63274
|
});
|
|
63209
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
|
+
};
|
|
63210
63293
|
const productNames = /* @__PURE__ */ new Map();
|
|
63211
63294
|
const productName = (ref) => {
|
|
63212
63295
|
const key2 = `${ref.project.xcodeproj}\0${ref.id}`;
|
|
@@ -63439,16 +63522,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
63439
63522
|
const qualified3 = `${product}/${name4}`;
|
|
63440
63523
|
if (!ownHeaders.has(qualified3)) ownHeaders.set(qualified3, file);
|
|
63441
63524
|
}
|
|
63442
|
-
const nonFrameworkHeaders =
|
|
63443
|
-
for (const other of projectTargets(ref.project)) {
|
|
63444
|
-
if (FRAMEWORK_PRODUCTS.has(str(other.target.productType) ?? "")) continue;
|
|
63445
|
-
const otherProduct = productName(other);
|
|
63446
|
-
for (const { file, visibility } of headerPhase(other)) {
|
|
63447
|
-
if (visibility === "Project") continue;
|
|
63448
|
-
const key2 = `${otherProduct}/${import_node_path55.default.basename(file)}`;
|
|
63449
|
-
if (!nonFrameworkHeaders.has(key2)) nonFrameworkHeaders.set(key2, file);
|
|
63450
|
-
}
|
|
63451
|
-
}
|
|
63525
|
+
const nonFrameworkHeaders = nonFrameworkHeadersOf(ref.project);
|
|
63452
63526
|
const wrapper = import_node_path55.default.join(settings2("BUILT_PRODUCTS_DIR"), `${product}.framework`);
|
|
63453
63527
|
const moduleMap = (settings2("DEFINES_MODULE") === "YES" || !framework) && settings2("MODULEMAP_FILE") ? absolute(settings2("MODULEMAP_FILE")) : null;
|
|
63454
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;
|
|
@@ -63670,7 +63744,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
63670
63744
|
nativeTargets.add(ref);
|
|
63671
63745
|
for (const dependency of dependenciesOf(ref)) includeNativeTarget(dependency);
|
|
63672
63746
|
};
|
|
63673
|
-
for (const { ref, module: module3 } of builtTargets)
|
|
63747
|
+
for (const { ref, module: module3 } of builtTargets.slice(0, -1))
|
|
63674
63748
|
if (options.nativeModules?.some(
|
|
63675
63749
|
(name3) => name3 === module3.moduleName || name3 === module3.name
|
|
63676
63750
|
))
|
|
@@ -64147,7 +64221,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
64147
64221
|
cocoapods
|
|
64148
64222
|
};
|
|
64149
64223
|
}
|
|
64150
|
-
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;
|
|
64151
64225
|
var init_xcode_project = __esm({
|
|
64152
64226
|
"src/xcode-project.ts"() {
|
|
64153
64227
|
"use strict";
|
|
@@ -64246,6 +64320,15 @@ function resolveExpoConfigModule(appDir) {
|
|
|
64246
64320
|
return (0, import_node_module5.createRequire)(expo).resolve("@expo/config");
|
|
64247
64321
|
}
|
|
64248
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
|
+
}
|
|
64249
64332
|
const appJsonPath = import_node_path56.default.join(projectRoot, "app.json");
|
|
64250
64333
|
const appJson = import_node_fs59.default.existsSync(appJsonPath) ? JSON.parse(import_node_fs59.default.readFileSync(appJsonPath, "utf8")) : null;
|
|
64251
64334
|
const staticExpo = isRecord(appJson) && (isRecord(appJson.expo) || [appJson.ios, appJson.android].some(
|
|
@@ -65962,6 +66045,7 @@ function readExpoDiscovery(key2) {
|
|
|
65962
66045
|
for (const [directory2, expected] of Object.entries(parsed.frameworks)) {
|
|
65963
66046
|
if (frameworkDigest(directory2) !== expected) return void 0;
|
|
65964
66047
|
}
|
|
66048
|
+
saveFileHashes();
|
|
65965
66049
|
} catch {
|
|
65966
66050
|
return void 0;
|
|
65967
66051
|
}
|
|
@@ -66015,6 +66099,52 @@ function readExpoDiscovery(key2) {
|
|
|
66015
66099
|
return void 0;
|
|
66016
66100
|
}
|
|
66017
66101
|
}
|
|
66102
|
+
function fileHashesPath() {
|
|
66103
|
+
return import_node_path63.default.join(sharedDir(), "framework-file-hashes.json");
|
|
66104
|
+
}
|
|
66105
|
+
function stampedFileHash(file) {
|
|
66106
|
+
if (!fileHashesLoaded) {
|
|
66107
|
+
fileHashesLoaded = true;
|
|
66108
|
+
try {
|
|
66109
|
+
const saved = JSON.parse(import_node_fs66.default.readFileSync(fileHashesPath(), "utf8"));
|
|
66110
|
+
if (isRecord(saved)) {
|
|
66111
|
+
for (const [entry, value] of Object.entries(saved))
|
|
66112
|
+
if (Array.isArray(value) && typeof value[0] === "string" && typeof value[1] === "string")
|
|
66113
|
+
fileHashes.set(entry, { stamp: value[0], checksum: value[1] });
|
|
66114
|
+
}
|
|
66115
|
+
} catch {
|
|
66116
|
+
fileHashes.clear();
|
|
66117
|
+
}
|
|
66118
|
+
}
|
|
66119
|
+
const stat2 = import_node_fs66.default.statSync(file, { bigint: true });
|
|
66120
|
+
const stamp = [stat2.dev, stat2.ino, stat2.size, stat2.mtimeNs, stat2.ctimeNs].join(":");
|
|
66121
|
+
const cached4 = fileHashes.get(file);
|
|
66122
|
+
if (cached4?.stamp === stamp) return cached4.checksum;
|
|
66123
|
+
const checksum = (0, import_node_crypto33.createHash)("sha256").update(import_node_fs66.default.readFileSync(file)).digest("hex");
|
|
66124
|
+
fileHashes.set(file, { stamp, checksum });
|
|
66125
|
+
fileHashesChanged = true;
|
|
66126
|
+
return checksum;
|
|
66127
|
+
}
|
|
66128
|
+
function saveFileHashes() {
|
|
66129
|
+
if (!fileHashesChanged) return;
|
|
66130
|
+
fileHashesChanged = false;
|
|
66131
|
+
const target = fileHashesPath();
|
|
66132
|
+
const temporary = `${target}.${process.pid}.${(0, import_node_crypto33.randomUUID)()}.tmp`;
|
|
66133
|
+
try {
|
|
66134
|
+
import_node_fs66.default.mkdirSync(import_node_path63.default.dirname(target), { recursive: true });
|
|
66135
|
+
import_node_fs66.default.writeFileSync(
|
|
66136
|
+
temporary,
|
|
66137
|
+
JSON.stringify(
|
|
66138
|
+
Object.fromEntries(
|
|
66139
|
+
[...fileHashes].filter(([entry]) => import_node_fs66.default.existsSync(entry)).map(([entry, { stamp, checksum }]) => [entry, [stamp, checksum]])
|
|
66140
|
+
)
|
|
66141
|
+
)
|
|
66142
|
+
);
|
|
66143
|
+
import_node_fs66.default.renameSync(temporary, target);
|
|
66144
|
+
} catch {
|
|
66145
|
+
import_node_fs66.default.rmSync(temporary, { force: true });
|
|
66146
|
+
}
|
|
66147
|
+
}
|
|
66018
66148
|
function treeDigest(directory2, signal) {
|
|
66019
66149
|
const entries = /* @__PURE__ */ new Map();
|
|
66020
66150
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -66031,10 +66161,7 @@ function treeDigest(directory2, signal) {
|
|
|
66031
66161
|
} else if (child.isDirectory()) {
|
|
66032
66162
|
walk3(file);
|
|
66033
66163
|
} else if (child.isFile()) {
|
|
66034
|
-
entries.set(
|
|
66035
|
-
relative6,
|
|
66036
|
-
`file\0${(0, import_node_crypto33.createHash)("sha256").update(import_node_fs66.default.readFileSync(file)).digest("hex")}`
|
|
66037
|
-
);
|
|
66164
|
+
entries.set(relative6, `file\0${stampedFileHash(file)}`);
|
|
66038
66165
|
}
|
|
66039
66166
|
}
|
|
66040
66167
|
};
|
|
@@ -66257,13 +66384,14 @@ function writeExpoDiscovery(options) {
|
|
|
66257
66384
|
);
|
|
66258
66385
|
import_node_fs66.default.renameSync(tmp, import_node_path63.default.join(dir, `${options.key}.json`));
|
|
66259
66386
|
expireDiscovery(dir, import_node_path63.default.join(dir, `${options.key}.json`));
|
|
66387
|
+
saveFileHashes();
|
|
66260
66388
|
return rewritten.units;
|
|
66261
66389
|
} catch (error) {
|
|
66262
66390
|
if (options.signal?.aborted) throw error;
|
|
66263
66391
|
return error instanceof Error ? error.message : String(error);
|
|
66264
66392
|
}
|
|
66265
66393
|
}
|
|
66266
|
-
var import_node_crypto33, import_node_fs66, import_node_path63, import_node_url4, FORMAT, PIPELINE_FILES, EXPIRY_MS, ORPHAN_TEMPORARY_MS, strings, stringRecord, isDigest, digestRecord, sourceLocationLine, MISSING_TREE;
|
|
66394
|
+
var import_node_crypto33, import_node_fs66, import_node_path63, import_node_url4, FORMAT, PIPELINE_FILES, EXPIRY_MS, ORPHAN_TEMPORARY_MS, strings, stringRecord, isDigest, digestRecord, sourceLocationLine, fileHashes, fileHashesLoaded, fileHashesChanged, MISSING_TREE;
|
|
66267
66395
|
var init_expo_discovery_cache = __esm({
|
|
66268
66396
|
"src/expo-discovery-cache.ts"() {
|
|
66269
66397
|
"use strict";
|
|
@@ -66310,6 +66438,9 @@ var init_expo_discovery_cache = __esm({
|
|
|
66310
66438
|
isDigest = (value) => /^[0-9a-f]{64}$/.test(value);
|
|
66311
66439
|
digestRecord = (value) => stringRecord(value) && Object.values(value).every(isDigest);
|
|
66312
66440
|
sourceLocationLine = /^#sourceLocation\(file: "(.*)", line: 1\)$/;
|
|
66441
|
+
fileHashes = /* @__PURE__ */ new Map();
|
|
66442
|
+
fileHashesLoaded = false;
|
|
66443
|
+
fileHashesChanged = false;
|
|
66313
66444
|
MISSING_TREE = "0".repeat(64);
|
|
66314
66445
|
}
|
|
66315
66446
|
});
|
|
@@ -66374,7 +66505,7 @@ var init_swift_standin_digest = __esm({
|
|
|
66374
66505
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
66375
66506
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
66376
66507
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
66377
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
66508
|
+
STANDIN_SOURCE_DIGEST = true ? "8a800a5151c426f07ff690c34df9a6d538c005318051ef52635fc568c44736f6" : standinSourceDigest();
|
|
66378
66509
|
}
|
|
66379
66510
|
});
|
|
66380
66511
|
|
|
@@ -66853,7 +66984,7 @@ __export(expo_native_prebuilt_exports, {
|
|
|
66853
66984
|
servedExpoSwift: () => servedExpoSwift
|
|
66854
66985
|
});
|
|
66855
66986
|
function expoNativeCompilerDigestValue() {
|
|
66856
|
-
return true ? "
|
|
66987
|
+
return true ? "14d88f98100ab2aa1697716b744e5a82c52ac4b234218a17662b547201295088" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
66857
66988
|
}
|
|
66858
66989
|
function readSources(value) {
|
|
66859
66990
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -68555,7 +68686,10 @@ function nativeSwiftSlice(standin, moduleRoot, generator, configured, artifact)
|
|
|
68555
68686
|
`${standin.module}: configured binary behavior cannot replace a compiled native slice`
|
|
68556
68687
|
);
|
|
68557
68688
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
68558
|
-
if (!distribution)
|
|
68689
|
+
if (!distribution)
|
|
68690
|
+
throw new Error(
|
|
68691
|
+
`${standin.module}'s native Swift slice needs a compiled distribution; a source checkout names one with ${SWIFT_PRIVATE_DISTRIBUTION_ENV}`
|
|
68692
|
+
);
|
|
68559
68693
|
const entry = nativeSwiftSliceEntry(distribution, generator);
|
|
68560
68694
|
const directory2 = fetchNativeEntry("slice", entry.name, entry.key) ?? privateSentrySlice(entry, moduleRoot);
|
|
68561
68695
|
if (!directory2)
|
|
@@ -69473,10 +69607,10 @@ function binaryHeaderSearchPaths(binary2, root, declaredFrameworks) {
|
|
|
69473
69607
|
const name3 = import_node_path75.default.basename(framework, ".framework");
|
|
69474
69608
|
if (!declaredFrameworks) continue;
|
|
69475
69609
|
const imports2 = declaredFrameworks.imports.get(name3);
|
|
69476
|
-
const swift = imports2 && swiftModuleInterface(declaredFrameworks.moduleRoot, name3);
|
|
69610
|
+
const swift = !REACH_STAGED_FRAMEWORKS.has(name3) && imports2 && swiftModuleInterface(declaredFrameworks.moduleRoot, name3);
|
|
69477
69611
|
const compiled = declaredFrameworks.compiledImports.get(name3);
|
|
69478
69612
|
if (swift) declared.set(framework, { ...swift, imports: imports2, sdkHeader: null });
|
|
69479
|
-
else if (compiled && REACH_STAGED_FRAMEWORKS.has(name3)) {
|
|
69613
|
+
else if ((compiled || imports2) && REACH_STAGED_FRAMEWORKS.has(name3)) {
|
|
69480
69614
|
const sdkHeader = import_node_path75.default.join(
|
|
69481
69615
|
swiftSharedSdkRoot(
|
|
69482
69616
|
declaredFrameworks.moduleRoot,
|
|
@@ -69488,7 +69622,7 @@ function binaryHeaderSearchPaths(binary2, root, declaredFrameworks) {
|
|
|
69488
69622
|
declared.set(framework, {
|
|
69489
69623
|
declared: null,
|
|
69490
69624
|
header: null,
|
|
69491
|
-
imports: compiled,
|
|
69625
|
+
imports: compiled ?? /* @__PURE__ */ new Set(),
|
|
69492
69626
|
sdkHeader: import_node_fs79.default.readFileSync(sdkHeader, "utf8")
|
|
69493
69627
|
});
|
|
69494
69628
|
}
|
|
@@ -88373,7 +88507,7 @@ var init_nitro_superset = __esm({
|
|
|
88373
88507
|
init_nitroContract();
|
|
88374
88508
|
init_swift_standin_digest();
|
|
88375
88509
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
88376
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
88510
|
+
NITRO_COMPILER_DIGEST = true ? "9393367a8c7442a5ce3f6e81f9ff408f0afdbf5eeadaeed359561a348a6b1818" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
88377
88511
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
88378
88512
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
88379
88513
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -89082,7 +89216,7 @@ var init_one_sdk_bundle = __esm({
|
|
|
89082
89216
|
var runtime_companion_default;
|
|
89083
89217
|
var init_runtime_companion = __esm({
|
|
89084
89218
|
"runtime-companion.json"() {
|
|
89085
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
89219
|
+
runtime_companion_default = { abi: 1, sha256: "60900a3af6e6213c855e6682baa0ebdb6a6865510e4e3a51a24d4c584b3fdec2", file: "node/cli-60900a3af6e6213c855e6682baa0ebdb6a6865510e4e3a51a24d4c584b3fdec2.cjs" };
|
|
89086
89220
|
}
|
|
89087
89221
|
});
|
|
89088
89222
|
|
|
@@ -89093,6 +89227,7 @@ __export(cli_runtime_exports, {
|
|
|
89093
89227
|
cliCompanionPath: () => cliCompanionPath,
|
|
89094
89228
|
ensureCliCompanion: () => ensureCliCompanion,
|
|
89095
89229
|
getCliRuntime: () => getCliRuntime,
|
|
89230
|
+
loadCliRuntime: () => loadCliRuntime,
|
|
89096
89231
|
verifyCliCompanion: () => verifyCliCompanion
|
|
89097
89232
|
});
|
|
89098
89233
|
function cliCompanionPath() {
|
|
@@ -89140,6 +89275,10 @@ async function ensureCliCompanion(root) {
|
|
|
89140
89275
|
(0, import_node_fs106.rmSync)(staged, { force: true });
|
|
89141
89276
|
}
|
|
89142
89277
|
}
|
|
89278
|
+
async function loadCliRuntime() {
|
|
89279
|
+
if (!loaded2) await ensureCliCompanion(peachRuntimeRoot());
|
|
89280
|
+
return getCliRuntime();
|
|
89281
|
+
}
|
|
89143
89282
|
function getCliRuntime() {
|
|
89144
89283
|
if (loaded2) return loaded2.runtime;
|
|
89145
89284
|
const root = peachRuntimeRoot();
|
|
@@ -102623,7 +102762,7 @@ function readDescriptorObject(text6, start, end, pairSpans) {
|
|
|
102623
102762
|
const strings7 = {};
|
|
102624
102763
|
let scales;
|
|
102625
102764
|
let fileUris;
|
|
102626
|
-
let
|
|
102765
|
+
let fileHashes2;
|
|
102627
102766
|
let cursor = start + 1;
|
|
102628
102767
|
let braceDepth = 1;
|
|
102629
102768
|
let bracketDepth = 0;
|
|
@@ -102670,7 +102809,7 @@ function readDescriptorObject(text6, start, end, pairSpans) {
|
|
|
102670
102809
|
const value = readStringArray(text6, valueStart, end - 1);
|
|
102671
102810
|
if (!value) return null;
|
|
102672
102811
|
if (key2 === "fileUris") fileUris = value.values;
|
|
102673
|
-
else
|
|
102812
|
+
else fileHashes2 = value.values;
|
|
102674
102813
|
pairSpans?.embedded.push({ start: pairStart, end: value.end });
|
|
102675
102814
|
cursor = value.end;
|
|
102676
102815
|
canStartRegex = false;
|
|
@@ -102722,7 +102861,7 @@ function readDescriptorObject(text6, start, end, pairSpans) {
|
|
|
102722
102861
|
};
|
|
102723
102862
|
if (descriptor.scales.length === 0) descriptor.scales = [1];
|
|
102724
102863
|
if (fileUris) descriptor.fileUris = fileUris;
|
|
102725
|
-
if (
|
|
102864
|
+
if (fileHashes2) descriptor.fileHashes = fileHashes2;
|
|
102726
102865
|
return descriptor;
|
|
102727
102866
|
}
|
|
102728
102867
|
function* iterateAssetDescriptorSites(bundle) {
|
|
@@ -103141,7 +103280,7 @@ async function embedMetroAssetFiles(bundle, read) {
|
|
|
103141
103280
|
continue;
|
|
103142
103281
|
}
|
|
103143
103282
|
const fileUris = [];
|
|
103144
|
-
const
|
|
103283
|
+
const fileHashes2 = [];
|
|
103145
103284
|
const loaded3 = /* @__PURE__ */ new Map();
|
|
103146
103285
|
for (let index = 0; index < site.descriptor.scales.length; index++) {
|
|
103147
103286
|
const scale = site.descriptor.scales[index];
|
|
@@ -103164,7 +103303,7 @@ async function embedMetroAssetFiles(bundle, read) {
|
|
|
103164
103303
|
const file = loaded3.get(scale);
|
|
103165
103304
|
if (!file) continue;
|
|
103166
103305
|
fileUris.push(metroAssetDataUri(site.descriptor.type, file));
|
|
103167
|
-
|
|
103306
|
+
fileHashes2.push(await sha256HexBytes(file));
|
|
103168
103307
|
variants++;
|
|
103169
103308
|
bytes += file.byteLength;
|
|
103170
103309
|
descriptorBytes += file.byteLength;
|
|
@@ -103173,7 +103312,7 @@ async function embedMetroAssetFiles(bundle, read) {
|
|
|
103173
103312
|
asset: `${site.descriptor.httpServerLocation}/${site.descriptor.name}.${site.descriptor.type}`,
|
|
103174
103313
|
bytes: descriptorBytes
|
|
103175
103314
|
});
|
|
103176
|
-
embedded.set(key2, { fileUris, fileHashes, scales });
|
|
103315
|
+
embedded.set(key2, { fileUris, fileHashes: fileHashes2, scales });
|
|
103177
103316
|
}
|
|
103178
103317
|
const parts = [];
|
|
103179
103318
|
let cursor = 0;
|
|
@@ -104134,7 +104273,7 @@ function placeMetroDescriptor(listing, descriptor) {
|
|
|
104134
104273
|
if (perScale.length === 0 || perScale.some((options) => options.length === 0)) {
|
|
104135
104274
|
return { files: files2, ambiguous, verified: false, mismatched: false };
|
|
104136
104275
|
}
|
|
104137
|
-
const
|
|
104276
|
+
const fileHashes2 = !descriptor.fileUris && descriptor.fileHashes?.length === descriptor.scales.length ? descriptor.fileHashes : null;
|
|
104138
104277
|
for (const combination of placementCombinations(perScale)) {
|
|
104139
104278
|
let bytes;
|
|
104140
104279
|
try {
|
|
@@ -104144,10 +104283,10 @@ function placeMetroDescriptor(listing, descriptor) {
|
|
|
104144
104283
|
} catch {
|
|
104145
104284
|
continue;
|
|
104146
104285
|
}
|
|
104147
|
-
const identical =
|
|
104286
|
+
const identical = fileHashes2 ? bytes.every((file, index) => {
|
|
104148
104287
|
const digest3 = (0, import_node_crypto69.createHash)("md5").update(file).digest("hex");
|
|
104149
104288
|
return descriptor.scales.some(
|
|
104150
|
-
(scale, declared) => scale === scales[index] &&
|
|
104289
|
+
(scale, declared) => scale === scales[index] && fileHashes2[declared] === digest3
|
|
104151
104290
|
);
|
|
104152
104291
|
}) : scales.length === descriptor.scales.length && metroDescriptorHash(bytes) === descriptor.hash;
|
|
104153
104292
|
if (!identical) continue;
|
|
@@ -104158,7 +104297,7 @@ function placeMetroDescriptor(listing, descriptor) {
|
|
|
104158
104297
|
});
|
|
104159
104298
|
return { files: chosen, ambiguous: [], verified: true, mismatched: false };
|
|
104160
104299
|
}
|
|
104161
|
-
if (!
|
|
104300
|
+
if (!fileHashes2 && scales.length !== descriptor.scales.length) {
|
|
104162
104301
|
return { files: files2, ambiguous, verified: false, mismatched: false };
|
|
104163
104302
|
}
|
|
104164
104303
|
return { files: files2, ambiguous, verified: false, mismatched: true };
|