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/cli/commands/serve.ts
CHANGED
|
@@ -34,6 +34,7 @@ interface ServeOptions {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
const UNUSED_EXIT_MS = 10_000
|
|
37
|
+
const BOOT_GRACE_MS = 180_000
|
|
37
38
|
|
|
38
39
|
export async function runServe(args: string[], opts: ServeOptions = {}) {
|
|
39
40
|
if (args.includes('--help') || args.includes('-h')) {
|
|
@@ -54,7 +55,8 @@ options:
|
|
|
54
55
|
--exit-when-unused
|
|
55
56
|
the process that started the bridge holds its stdin; once
|
|
56
57
|
stdin closes, exit after no simulator or request has
|
|
57
|
-
used the bridge for ${UNUSED_EXIT_MS / 1000} s
|
|
58
|
+
used the bridge for ${UNUSED_EXIT_MS / 1000} s (${BOOT_GRACE_MS / 1000} s
|
|
59
|
+
when nothing has used it yet)
|
|
58
60
|
|
|
59
61
|
examples:
|
|
60
62
|
peach serve
|
|
@@ -152,8 +154,13 @@ examples:
|
|
|
152
154
|
// adopted the bridge from the lockfile before that app quit, so the bridge outlives its starter
|
|
153
155
|
// while a simulator or a request still uses it, and exits once none has for UNUSED_EXIT_MS. an
|
|
154
156
|
// adopting window requests its runtime page before its simulator connects, so the request counts.
|
|
157
|
+
// a packaged app's launcher replaces itself with the native host, which closes the stdin it
|
|
158
|
+
// held, so the starter looks gone from the first moment and its window may take well over
|
|
159
|
+
// UNUSED_EXIT_MS to load its page on a busy machine. a bridge nothing has used yet waits
|
|
160
|
+
// BOOT_GRACE_MS for its first user instead.
|
|
155
161
|
let starterGoneAt = 0
|
|
156
162
|
let lastUsedAt = Date.now()
|
|
163
|
+
let used = false
|
|
157
164
|
if (exitWhenUnused) {
|
|
158
165
|
process.stdin.on('end', () => {
|
|
159
166
|
starterGoneAt = Date.now()
|
|
@@ -165,10 +172,12 @@ examples:
|
|
|
165
172
|
const tickInterval = setInterval(() => {
|
|
166
173
|
const sims = host.listSims()
|
|
167
174
|
if (sims.length > 0) lastUsedAt = Date.now()
|
|
168
|
-
|
|
175
|
+
if (sims.length > 0 || host.lastRequestAt > 0) used = true
|
|
176
|
+
if (
|
|
177
|
+
sims.length === 0 &&
|
|
169
178
|
starterGoneAt &&
|
|
170
179
|
Date.now() - Math.max(starterGoneAt, lastUsedAt, host.lastRequestAt) >=
|
|
171
|
-
UNUSED_EXIT_MS
|
|
180
|
+
(used ? UNUSED_EXIT_MS : BOOT_GRACE_MS)
|
|
172
181
|
) {
|
|
173
182
|
void shutdown('unused')
|
|
174
183
|
return
|
|
@@ -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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2300 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2300 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2300 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2300 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2300 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2300 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2300 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2300 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -12144,7 +12144,7 @@ var swiftCoverageProvenance;
|
|
|
12144
12144
|
var init_provenance = __esm({
|
|
12145
12145
|
"src/swift-coverage/provenance.ts"() {
|
|
12146
12146
|
"use strict";
|
|
12147
|
-
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":"
|
|
12147
|
+
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, ".."));
|
|
12148
12148
|
}
|
|
12149
12149
|
});
|
|
12150
12150
|
|
|
@@ -17678,8 +17678,8 @@ function developerDirs() {
|
|
|
17678
17678
|
}
|
|
17679
17679
|
return found;
|
|
17680
17680
|
}
|
|
17681
|
-
function readNativeSdk(
|
|
17682
|
-
const env = { ...process.env, DEVELOPER_DIR:
|
|
17681
|
+
function readNativeSdk(developerDir2) {
|
|
17682
|
+
const env = { ...process.env, DEVELOPER_DIR: developerDir2 };
|
|
17683
17683
|
const xcrun = (args) => (
|
|
17684
17684
|
// runner-toolchain-platform: darwin
|
|
17685
17685
|
(0, import_node_child_process11.execFileSync)("xcrun", args, {
|
|
@@ -17718,19 +17718,19 @@ function nativeGraphMismatches(read) {
|
|
|
17718
17718
|
function pinnedNativeSdk() {
|
|
17719
17719
|
if (resolvedPinnedSdk) return resolvedPinnedSdk;
|
|
17720
17720
|
let mismatches;
|
|
17721
|
-
for (const
|
|
17721
|
+
for (const developerDir2 of developerDirs()) {
|
|
17722
17722
|
let read;
|
|
17723
17723
|
try {
|
|
17724
|
-
read = readNativeSdk(
|
|
17724
|
+
read = readNativeSdk(developerDir2);
|
|
17725
17725
|
} catch {
|
|
17726
17726
|
continue;
|
|
17727
17727
|
}
|
|
17728
17728
|
if (read.sdk !== NATIVE_GRAPH_SDK_VERSION) continue;
|
|
17729
17729
|
const differ = nativeGraphMismatches(read);
|
|
17730
17730
|
if (differ.length === 0) {
|
|
17731
|
-
process.env.DEVELOPER_DIR =
|
|
17731
|
+
process.env.DEVELOPER_DIR = developerDir2;
|
|
17732
17732
|
resolvedPinnedSdk = {
|
|
17733
|
-
developerDir,
|
|
17733
|
+
developerDir: developerDir2,
|
|
17734
17734
|
sdkPath: read.sdkPath,
|
|
17735
17735
|
compiler: read.compiler
|
|
17736
17736
|
};
|
|
@@ -20496,6 +20496,28 @@ function parseWasmObjectBytes(file, buf, isDist, symbolFlagOffsets) {
|
|
|
20496
20496
|
dataRelocList.push({ ...r, segIdx: lo, offInSeg, ownerSymIdx });
|
|
20497
20497
|
}
|
|
20498
20498
|
}
|
|
20499
|
+
const relocatedWords = /* @__PURE__ */ new Map();
|
|
20500
|
+
for (const r of dataRelocList) {
|
|
20501
|
+
let words2 = relocatedWords.get(r.segIdx);
|
|
20502
|
+
if (!words2) relocatedWords.set(r.segIdx, words2 = /* @__PURE__ */ new Set());
|
|
20503
|
+
words2.add(r.offInSeg);
|
|
20504
|
+
}
|
|
20505
|
+
for (const [segIdx, tops] of segTopSyms) {
|
|
20506
|
+
const starts = new Map(tops.map((top) => [top.off, top.symIdx]));
|
|
20507
|
+
const relocated = relocatedWords.get(segIdx);
|
|
20508
|
+
const payload = dataStart + sPayloadStarts[segIdx];
|
|
20509
|
+
const view = new DataView(buf.buffer, buf.byteOffset + payload);
|
|
20510
|
+
for (const top of tops) {
|
|
20511
|
+
for (let at = top.off; at + 4 <= top.end; at += 4) {
|
|
20512
|
+
if (relocated?.has(at)) continue;
|
|
20513
|
+
const target = starts.get(at + (view.getInt32(at, true) & ~3));
|
|
20514
|
+
if (target === void 0 || target === top.symIdx) continue;
|
|
20515
|
+
let list2 = symDataRelocs.get(top.symIdx);
|
|
20516
|
+
if (!list2) symDataRelocs.set(top.symIdx, list2 = []);
|
|
20517
|
+
list2.push(target);
|
|
20518
|
+
}
|
|
20519
|
+
}
|
|
20520
|
+
}
|
|
20499
20521
|
const typePrefixesInObj = /* @__PURE__ */ new Set();
|
|
20500
20522
|
for (let i = 0; i < symKind.length; i++) {
|
|
20501
20523
|
if ((symFlags[i] & 16) === 0 && symNames[i].startsWith("$s") && symNames[i].endsWith("Mn")) {
|
|
@@ -31753,6 +31775,28 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
31753
31775
|
(0, import_node_fs41.rmSync)(linked, { force: true });
|
|
31754
31776
|
report("compiling and linking Swift modules");
|
|
31755
31777
|
const frameworkInterfaces = /* @__PURE__ */ new Map();
|
|
31778
|
+
const nativeDeclarations = /* @__PURE__ */ new Map();
|
|
31779
|
+
for (const [file, contents] of Object.entries(input.files)) {
|
|
31780
|
+
if (!file.endsWith(".modulemap")) continue;
|
|
31781
|
+
const name3 = moduleMapName(contents);
|
|
31782
|
+
const umbrella = /\bumbrella\s+header\s+"([^"]+)"/.exec(contents)?.[1];
|
|
31783
|
+
if (!name3 || !umbrella) continue;
|
|
31784
|
+
const header = input.files[import_node_path40.default.posix.join(import_node_path40.default.posix.dirname(file), umbrella)];
|
|
31785
|
+
if (header === void 0) continue;
|
|
31786
|
+
const included = new Set(
|
|
31787
|
+
[
|
|
31788
|
+
...header.matchAll(/^\s*#\s*(?:import|include)\s*[<"]([^">]+)[">]/gm)
|
|
31789
|
+
].map((match) => import_node_path40.default.posix.basename(match[1]))
|
|
31790
|
+
);
|
|
31791
|
+
const declarations = nativeDeclarations.get(name3) ?? /* @__PURE__ */ new Set();
|
|
31792
|
+
for (const declaration of swiftInterfaceDeclarations(header))
|
|
31793
|
+
declarations.add(declaration);
|
|
31794
|
+
for (const [candidate, source] of Object.entries(input.files))
|
|
31795
|
+
if (included.has(import_node_path40.default.posix.basename(candidate)))
|
|
31796
|
+
for (const declaration of swiftInterfaceDeclarations(source))
|
|
31797
|
+
declarations.add(declaration);
|
|
31798
|
+
nativeDeclarations.set(name3, declarations);
|
|
31799
|
+
}
|
|
31756
31800
|
const frameworkInterface = (name3) => {
|
|
31757
31801
|
if (frameworkInterfaces.has(name3)) return frameworkInterfaces.get(name3);
|
|
31758
31802
|
const source = distribution ? import_node_path40.default.join(frameworkRoot, "modules", `${name3}-Swift.h`) : import_node_path40.default.join(
|
|
@@ -31780,10 +31824,12 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
31780
31824
|
))
|
|
31781
31825
|
declared.add(name4);
|
|
31782
31826
|
}
|
|
31827
|
+
for (const declaration of nativeDeclarations.get(name3) ?? [])
|
|
31828
|
+
declared.add(declaration);
|
|
31783
31829
|
const own = withoutSwiftDeclarations(
|
|
31784
31830
|
clangInterfaceHeader((0, import_node_fs41.readFileSync)(source, "utf8")),
|
|
31785
31831
|
declared,
|
|
31786
|
-
`#import <${name3}/${name3}.h>`
|
|
31832
|
+
nativeDeclarations.has(name3) ? `@import ${name3};` : `#import <${name3}/${name3}.h>`
|
|
31787
31833
|
);
|
|
31788
31834
|
const owners = sdkObjCDeclarationOwners(import_node_path40.default.dirname(import_node_path40.default.dirname(headers)));
|
|
31789
31835
|
const foreign = /* @__PURE__ */ new Map();
|
|
@@ -32231,7 +32277,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
32231
32277
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
32232
32278
|
MULTI_MANIFEST_VERSION = 68;
|
|
32233
32279
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
32234
|
-
compilerSourceDigest = true ? "
|
|
32280
|
+
compilerSourceDigest = true ? "3c645ce8a5442f60dce1735912506ad6fa5d09cb92da26cff3950c374b371e2b" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
32235
32281
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
32236
32282
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
32237
32283
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -34614,6 +34660,16 @@ function loadProject(xcodeproj) {
|
|
|
34614
34660
|
loaded2.set(projectFile, { digest: digest4, project: result });
|
|
34615
34661
|
return result;
|
|
34616
34662
|
}
|
|
34663
|
+
function selectedDeveloperDir() {
|
|
34664
|
+
developerDir ??= process.platform === "darwin" ? (
|
|
34665
|
+
// runner-toolchain-platform: darwin
|
|
34666
|
+
(0, import_node_child_process26.execFileSync)("xcode-select", ["-p"], {
|
|
34667
|
+
encoding: "utf8",
|
|
34668
|
+
stdio: ["ignore", "pipe", "pipe"]
|
|
34669
|
+
}).trim()
|
|
34670
|
+
) : "";
|
|
34671
|
+
return developerDir;
|
|
34672
|
+
}
|
|
34617
34673
|
function defaultConfiguration(project2) {
|
|
34618
34674
|
const configList = project2.object(str(project2.project.buildConfigurationList));
|
|
34619
34675
|
const names = list(configList?.buildConfigurations).flatMap(
|
|
@@ -34680,15 +34736,8 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
|
|
|
34680
34736
|
resolving2.delete(marker);
|
|
34681
34737
|
return value;
|
|
34682
34738
|
};
|
|
34683
|
-
let developerDir;
|
|
34684
34739
|
const derivedSettings = {
|
|
34685
|
-
DEVELOPER_DIR: () => options.environment?.DEVELOPER_DIR ?? process.env.DEVELOPER_DIR ?? (
|
|
34686
|
-
// runner-toolchain-platform: darwin
|
|
34687
|
-
(0, import_node_child_process26.execFileSync)("xcode-select", ["-p"], {
|
|
34688
|
-
encoding: "utf8",
|
|
34689
|
-
stdio: ["ignore", "pipe", "pipe"]
|
|
34690
|
-
}).trim()
|
|
34691
|
-
) : ""),
|
|
34740
|
+
DEVELOPER_DIR: () => options.environment?.DEVELOPER_DIR ?? process.env.DEVELOPER_DIR ?? selectedDeveloperDir(),
|
|
34692
34741
|
PRODUCT_NAME: () => get("TARGET_NAME"),
|
|
34693
34742
|
PRODUCT_MODULE_NAME: () => applyOperator(get("PRODUCT_NAME"), "c99extidentifier"),
|
|
34694
34743
|
EXECUTABLE_NAME: () => get("PRODUCT_NAME"),
|
|
@@ -35562,7 +35611,16 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
35562
35611
|
order.push(ref);
|
|
35563
35612
|
};
|
|
35564
35613
|
visit3(app);
|
|
35565
|
-
const
|
|
35614
|
+
const headerPhases = /* @__PURE__ */ new Map();
|
|
35615
|
+
const headerPhase = (ref) => {
|
|
35616
|
+
const key2 = `${ref.project.xcodeproj}\0${ref.id}`;
|
|
35617
|
+
const cached2 = headerPhases.get(key2);
|
|
35618
|
+
if (cached2) return cached2;
|
|
35619
|
+
const files2 = readHeaderPhase(ref);
|
|
35620
|
+
headerPhases.set(key2, files2);
|
|
35621
|
+
return files2;
|
|
35622
|
+
};
|
|
35623
|
+
const readHeaderPhase = (ref) => list(ref.target.buildPhases).flatMap((phaseId) => {
|
|
35566
35624
|
const phase = ref.project.object(phaseId);
|
|
35567
35625
|
if (phase?.isa !== "PBXHeadersBuildPhase") return [];
|
|
35568
35626
|
return list(phase.files).flatMap((id) => {
|
|
@@ -35579,6 +35637,23 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
35579
35637
|
];
|
|
35580
35638
|
});
|
|
35581
35639
|
});
|
|
35640
|
+
const projectNonFrameworkHeaders = /* @__PURE__ */ new Map();
|
|
35641
|
+
const nonFrameworkHeadersOf = (project2) => {
|
|
35642
|
+
const cached2 = projectNonFrameworkHeaders.get(project2);
|
|
35643
|
+
if (cached2) return cached2;
|
|
35644
|
+
const headers = /* @__PURE__ */ new Map();
|
|
35645
|
+
for (const other of projectTargets(project2)) {
|
|
35646
|
+
if (FRAMEWORK_PRODUCTS.has(str(other.target.productType) ?? "")) continue;
|
|
35647
|
+
const otherProduct = productName(other);
|
|
35648
|
+
for (const { file, visibility } of headerPhase(other)) {
|
|
35649
|
+
if (visibility === "Project") continue;
|
|
35650
|
+
const key2 = `${otherProduct}/${import_node_path45.default.basename(file)}`;
|
|
35651
|
+
if (!headers.has(key2)) headers.set(key2, file);
|
|
35652
|
+
}
|
|
35653
|
+
}
|
|
35654
|
+
projectNonFrameworkHeaders.set(project2, headers);
|
|
35655
|
+
return headers;
|
|
35656
|
+
};
|
|
35582
35657
|
const productNames = /* @__PURE__ */ new Map();
|
|
35583
35658
|
const productName = (ref) => {
|
|
35584
35659
|
const key2 = `${ref.project.xcodeproj}\0${ref.id}`;
|
|
@@ -35811,16 +35886,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
35811
35886
|
const qualified3 = `${product}/${name4}`;
|
|
35812
35887
|
if (!ownHeaders.has(qualified3)) ownHeaders.set(qualified3, file);
|
|
35813
35888
|
}
|
|
35814
|
-
const nonFrameworkHeaders =
|
|
35815
|
-
for (const other of projectTargets(ref.project)) {
|
|
35816
|
-
if (FRAMEWORK_PRODUCTS.has(str(other.target.productType) ?? "")) continue;
|
|
35817
|
-
const otherProduct = productName(other);
|
|
35818
|
-
for (const { file, visibility } of headerPhase(other)) {
|
|
35819
|
-
if (visibility === "Project") continue;
|
|
35820
|
-
const key2 = `${otherProduct}/${import_node_path45.default.basename(file)}`;
|
|
35821
|
-
if (!nonFrameworkHeaders.has(key2)) nonFrameworkHeaders.set(key2, file);
|
|
35822
|
-
}
|
|
35823
|
-
}
|
|
35889
|
+
const nonFrameworkHeaders = nonFrameworkHeadersOf(ref.project);
|
|
35824
35890
|
const wrapper = import_node_path45.default.join(settings2("BUILT_PRODUCTS_DIR"), `${product}.framework`);
|
|
35825
35891
|
const moduleMap = (settings2("DEFINES_MODULE") === "YES" || !framework) && settings2("MODULEMAP_FILE") ? absolute(settings2("MODULEMAP_FILE")) : null;
|
|
35826
35892
|
const frameworkUmbrella = !compatibility && framework && members2.sources.length > 0 && moduleMap ? import_node_path45.default.join(import_node_path45.default.dirname(moduleMap), `${moduleName2}-umbrella.h`) : null;
|
|
@@ -36042,7 +36108,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
36042
36108
|
nativeTargets.add(ref);
|
|
36043
36109
|
for (const dependency of dependenciesOf(ref)) includeNativeTarget(dependency);
|
|
36044
36110
|
};
|
|
36045
|
-
for (const { ref, module: module3 } of builtTargets)
|
|
36111
|
+
for (const { ref, module: module3 } of builtTargets.slice(0, -1))
|
|
36046
36112
|
if (options.nativeModules?.some(
|
|
36047
36113
|
(name3) => name3 === module3.moduleName || name3 === module3.name
|
|
36048
36114
|
))
|
|
@@ -36519,7 +36585,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
36519
36585
|
cocoapods
|
|
36520
36586
|
};
|
|
36521
36587
|
}
|
|
36522
|
-
var import_node_child_process26, import_node_crypto22, import_node_fs45, import_node_path45, 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, loaded2, preparedSourcePhases, isPodsProject, targetRefs, NativeAppTargetSelectionError, workspaceResolvedFile, SwiftPackageResolutionRequired;
|
|
36588
|
+
var import_node_child_process26, import_node_crypto22, import_node_fs45, import_node_path45, 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, loaded2, developerDir, preparedSourcePhases, isPodsProject, targetRefs, NativeAppTargetSelectionError, workspaceResolvedFile, SwiftPackageResolutionRequired;
|
|
36523
36589
|
var init_xcode_project = __esm({
|
|
36524
36590
|
"src/xcode-project.ts"() {
|
|
36525
36591
|
"use strict";
|
|
@@ -36612,6 +36678,15 @@ var init_xcode_project = __esm({
|
|
|
36612
36678
|
|
|
36613
36679
|
// src/native-firebase-config.ts
|
|
36614
36680
|
function hasExpoConfig(projectRoot) {
|
|
36681
|
+
const packagePath = import_node_path46.default.join(projectRoot, "package.json");
|
|
36682
|
+
const manifest = import_node_fs46.default.existsSync(packagePath) ? JSON.parse(import_node_fs46.default.readFileSync(packagePath, "utf8")) : null;
|
|
36683
|
+
if (isRecord(manifest)) {
|
|
36684
|
+
const dependencies = [manifest.dependencies, manifest.devDependencies].filter(
|
|
36685
|
+
isRecord
|
|
36686
|
+
);
|
|
36687
|
+
if (dependencies.some((deps) => "one" in deps) && !dependencies.some((deps) => "expo" in deps))
|
|
36688
|
+
return false;
|
|
36689
|
+
}
|
|
36615
36690
|
const appJsonPath = import_node_path46.default.join(projectRoot, "app.json");
|
|
36616
36691
|
const appJson = import_node_fs46.default.existsSync(appJsonPath) ? JSON.parse(import_node_fs46.default.readFileSync(appJsonPath, "utf8")) : null;
|
|
36617
36692
|
const staticExpo = isRecord(appJson) && (isRecord(appJson.expo) || [appJson.ios, appJson.android].some(
|
|
@@ -44956,7 +45031,7 @@ var init_swift_standin_digest = __esm({
|
|
|
44956
45031
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
44957
45032
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
44958
45033
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
44959
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
45034
|
+
STANDIN_SOURCE_DIGEST = true ? "8a800a5151c426f07ff690c34df9a6d538c005318051ef52635fc568c44736f6" : standinSourceDigest();
|
|
44960
45035
|
}
|
|
44961
45036
|
});
|
|
44962
45037
|
|
|
@@ -45049,7 +45124,10 @@ function nativeSwiftSlice(standin, moduleRoot, generator, configured, artifact)
|
|
|
45049
45124
|
`${standin.module}: configured binary behavior cannot replace a compiled native slice`
|
|
45050
45125
|
);
|
|
45051
45126
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
45052
|
-
if (!distribution)
|
|
45127
|
+
if (!distribution)
|
|
45128
|
+
throw new Error(
|
|
45129
|
+
`${standin.module}'s native Swift slice needs a compiled distribution; a source checkout names one with ${SWIFT_PRIVATE_DISTRIBUTION_ENV}`
|
|
45130
|
+
);
|
|
45053
45131
|
const entry = nativeSwiftSliceEntry(distribution, generator);
|
|
45054
45132
|
const directory2 = fetchNativeEntry("slice", entry.name, entry.key) ?? privateSentrySlice(entry, moduleRoot);
|
|
45055
45133
|
if (!directory2)
|
|
@@ -45919,10 +45997,10 @@ function binaryHeaderSearchPaths(binary2, root, declaredFrameworks) {
|
|
|
45919
45997
|
const name3 = import_node_path75.default.basename(framework, ".framework");
|
|
45920
45998
|
if (!declaredFrameworks) continue;
|
|
45921
45999
|
const imports2 = declaredFrameworks.imports.get(name3);
|
|
45922
|
-
const swift = imports2 && swiftModuleInterface(declaredFrameworks.moduleRoot, name3);
|
|
46000
|
+
const swift = !REACH_STAGED_FRAMEWORKS.has(name3) && imports2 && swiftModuleInterface(declaredFrameworks.moduleRoot, name3);
|
|
45923
46001
|
const compiled = declaredFrameworks.compiledImports.get(name3);
|
|
45924
46002
|
if (swift) declared.set(framework, { ...swift, imports: imports2, sdkHeader: null });
|
|
45925
|
-
else if (compiled && REACH_STAGED_FRAMEWORKS.has(name3)) {
|
|
46003
|
+
else if ((compiled || imports2) && REACH_STAGED_FRAMEWORKS.has(name3)) {
|
|
45926
46004
|
const sdkHeader = import_node_path75.default.join(
|
|
45927
46005
|
swiftSharedSdkRoot(
|
|
45928
46006
|
declaredFrameworks.moduleRoot,
|
|
@@ -45934,7 +46012,7 @@ function binaryHeaderSearchPaths(binary2, root, declaredFrameworks) {
|
|
|
45934
46012
|
declared.set(framework, {
|
|
45935
46013
|
declared: null,
|
|
45936
46014
|
header: null,
|
|
45937
|
-
imports: compiled,
|
|
46015
|
+
imports: compiled ?? /* @__PURE__ */ new Set(),
|
|
45938
46016
|
sdkHeader: import_node_fs76.default.readFileSync(sdkHeader, "utf8")
|
|
45939
46017
|
});
|
|
45940
46018
|
}
|
|
@@ -58320,7 +58398,7 @@ var init_nitro_superset = __esm({
|
|
|
58320
58398
|
init_nitroContract();
|
|
58321
58399
|
init_swift_standin_digest();
|
|
58322
58400
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
58323
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
58401
|
+
NITRO_COMPILER_DIGEST = true ? "9393367a8c7442a5ce3f6e81f9ff408f0afdbf5eeadaeed359561a348a6b1818" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
58324
58402
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
58325
58403
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
58326
58404
|
published = /* @__PURE__ */ new Map();
|
|
@@ -59167,6 +59245,7 @@ function readExpoDiscovery(key2) {
|
|
|
59167
59245
|
for (const [directory2, expected] of Object.entries(parsed.frameworks)) {
|
|
59168
59246
|
if (frameworkDigest(directory2) !== expected) return void 0;
|
|
59169
59247
|
}
|
|
59248
|
+
saveFileHashes();
|
|
59170
59249
|
} catch {
|
|
59171
59250
|
return void 0;
|
|
59172
59251
|
}
|
|
@@ -59220,6 +59299,52 @@ function readExpoDiscovery(key2) {
|
|
|
59220
59299
|
return void 0;
|
|
59221
59300
|
}
|
|
59222
59301
|
}
|
|
59302
|
+
function fileHashesPath() {
|
|
59303
|
+
return import_node_path94.default.join(sharedDir(), "framework-file-hashes.json");
|
|
59304
|
+
}
|
|
59305
|
+
function stampedFileHash(file) {
|
|
59306
|
+
if (!fileHashesLoaded) {
|
|
59307
|
+
fileHashesLoaded = true;
|
|
59308
|
+
try {
|
|
59309
|
+
const saved = JSON.parse(import_node_fs96.default.readFileSync(fileHashesPath(), "utf8"));
|
|
59310
|
+
if (isRecord(saved)) {
|
|
59311
|
+
for (const [entry, value] of Object.entries(saved))
|
|
59312
|
+
if (Array.isArray(value) && typeof value[0] === "string" && typeof value[1] === "string")
|
|
59313
|
+
fileHashes.set(entry, { stamp: value[0], checksum: value[1] });
|
|
59314
|
+
}
|
|
59315
|
+
} catch {
|
|
59316
|
+
fileHashes.clear();
|
|
59317
|
+
}
|
|
59318
|
+
}
|
|
59319
|
+
const stat = import_node_fs96.default.statSync(file, { bigint: true });
|
|
59320
|
+
const stamp = [stat.dev, stat.ino, stat.size, stat.mtimeNs, stat.ctimeNs].join(":");
|
|
59321
|
+
const cached2 = fileHashes.get(file);
|
|
59322
|
+
if (cached2?.stamp === stamp) return cached2.checksum;
|
|
59323
|
+
const checksum = (0, import_node_crypto50.createHash)("sha256").update(import_node_fs96.default.readFileSync(file)).digest("hex");
|
|
59324
|
+
fileHashes.set(file, { stamp, checksum });
|
|
59325
|
+
fileHashesChanged = true;
|
|
59326
|
+
return checksum;
|
|
59327
|
+
}
|
|
59328
|
+
function saveFileHashes() {
|
|
59329
|
+
if (!fileHashesChanged) return;
|
|
59330
|
+
fileHashesChanged = false;
|
|
59331
|
+
const target = fileHashesPath();
|
|
59332
|
+
const temporary = `${target}.${process.pid}.${(0, import_node_crypto50.randomUUID)()}.tmp`;
|
|
59333
|
+
try {
|
|
59334
|
+
import_node_fs96.default.mkdirSync(import_node_path94.default.dirname(target), { recursive: true });
|
|
59335
|
+
import_node_fs96.default.writeFileSync(
|
|
59336
|
+
temporary,
|
|
59337
|
+
JSON.stringify(
|
|
59338
|
+
Object.fromEntries(
|
|
59339
|
+
[...fileHashes].filter(([entry]) => import_node_fs96.default.existsSync(entry)).map(([entry, { stamp, checksum }]) => [entry, [stamp, checksum]])
|
|
59340
|
+
)
|
|
59341
|
+
)
|
|
59342
|
+
);
|
|
59343
|
+
import_node_fs96.default.renameSync(temporary, target);
|
|
59344
|
+
} catch {
|
|
59345
|
+
import_node_fs96.default.rmSync(temporary, { force: true });
|
|
59346
|
+
}
|
|
59347
|
+
}
|
|
59223
59348
|
function treeDigest2(directory2, signal) {
|
|
59224
59349
|
const entries = /* @__PURE__ */ new Map();
|
|
59225
59350
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -59236,10 +59361,7 @@ function treeDigest2(directory2, signal) {
|
|
|
59236
59361
|
} else if (child.isDirectory()) {
|
|
59237
59362
|
walk3(file);
|
|
59238
59363
|
} else if (child.isFile()) {
|
|
59239
|
-
entries.set(
|
|
59240
|
-
relative4,
|
|
59241
|
-
`file\0${(0, import_node_crypto50.createHash)("sha256").update(import_node_fs96.default.readFileSync(file)).digest("hex")}`
|
|
59242
|
-
);
|
|
59364
|
+
entries.set(relative4, `file\0${stampedFileHash(file)}`);
|
|
59243
59365
|
}
|
|
59244
59366
|
}
|
|
59245
59367
|
};
|
|
@@ -59462,13 +59584,14 @@ function writeExpoDiscovery(options) {
|
|
|
59462
59584
|
);
|
|
59463
59585
|
import_node_fs96.default.renameSync(tmp, import_node_path94.default.join(dir, `${options.key}.json`));
|
|
59464
59586
|
expireDiscovery(dir, import_node_path94.default.join(dir, `${options.key}.json`));
|
|
59587
|
+
saveFileHashes();
|
|
59465
59588
|
return rewritten.units;
|
|
59466
59589
|
} catch (error) {
|
|
59467
59590
|
if (options.signal?.aborted) throw error;
|
|
59468
59591
|
return error instanceof Error ? error.message : String(error);
|
|
59469
59592
|
}
|
|
59470
59593
|
}
|
|
59471
|
-
var import_node_crypto50, import_node_fs96, import_node_path94, import_node_url5, FORMAT, PIPELINE_FILES, EXPIRY_MS, ORPHAN_TEMPORARY_MS, strings4, stringRecord, isDigest, digestRecord, sourceLocationLine, MISSING_TREE;
|
|
59594
|
+
var import_node_crypto50, import_node_fs96, import_node_path94, import_node_url5, FORMAT, PIPELINE_FILES, EXPIRY_MS, ORPHAN_TEMPORARY_MS, strings4, stringRecord, isDigest, digestRecord, sourceLocationLine, fileHashes, fileHashesLoaded, fileHashesChanged, MISSING_TREE;
|
|
59472
59595
|
var init_expo_discovery_cache = __esm({
|
|
59473
59596
|
"src/expo-discovery-cache.ts"() {
|
|
59474
59597
|
"use strict";
|
|
@@ -59515,6 +59638,9 @@ var init_expo_discovery_cache = __esm({
|
|
|
59515
59638
|
isDigest = (value) => /^[0-9a-f]{64}$/.test(value);
|
|
59516
59639
|
digestRecord = (value) => stringRecord(value) && Object.values(value).every(isDigest);
|
|
59517
59640
|
sourceLocationLine = /^#sourceLocation\(file: "(.*)", line: 1\)$/;
|
|
59641
|
+
fileHashes = /* @__PURE__ */ new Map();
|
|
59642
|
+
fileHashesLoaded = false;
|
|
59643
|
+
fileHashesChanged = false;
|
|
59518
59644
|
MISSING_TREE = "0".repeat(64);
|
|
59519
59645
|
}
|
|
59520
59646
|
});
|
|
@@ -59531,7 +59657,7 @@ var init_expo_native_compiler_digest = __esm({
|
|
|
59531
59657
|
|
|
59532
59658
|
// src/expo-native-prebuilt.ts
|
|
59533
59659
|
function expoNativeCompilerDigestValue() {
|
|
59534
|
-
return true ? "
|
|
59660
|
+
return true ? "14d88f98100ab2aa1697716b744e5a82c52ac4b234218a17662b547201295088" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
59535
59661
|
}
|
|
59536
59662
|
function readSources(value) {
|
|
59537
59663
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -66293,7 +66419,7 @@ var import_node_path5 = require("node:path");
|
|
|
66293
66419
|
init_src();
|
|
66294
66420
|
|
|
66295
66421
|
// runtime-companion.json
|
|
66296
|
-
var runtime_companion_default = { abi: 1, sha256: "
|
|
66422
|
+
var runtime_companion_default = { abi: 1, sha256: "60900a3af6e6213c855e6682baa0ebdb6a6865510e4e3a51a24d4c584b3fdec2", file: "node/cli-60900a3af6e6213c855e6682baa0ebdb6a6865510e4e3a51a24d4c584b3fdec2.cjs" };
|
|
66297
66423
|
|
|
66298
66424
|
// src/cli-runtime.ts
|
|
66299
66425
|
init_answeredNativePackages();
|
|
@@ -66322,7 +66448,32 @@ function verifyCompanionFile(file) {
|
|
|
66322
66448
|
);
|
|
66323
66449
|
}
|
|
66324
66450
|
}
|
|
66451
|
+
async function ensureCliCompanion(root) {
|
|
66452
|
+
const file = (0, import_node_path5.join)(root, cliCompanionPath());
|
|
66453
|
+
try {
|
|
66454
|
+
verifyCompanionFile(file);
|
|
66455
|
+
return;
|
|
66456
|
+
} catch (error) {
|
|
66457
|
+
if (!(error instanceof Error && "code" in error && error.code === "ENOENT"))
|
|
66458
|
+
throw error;
|
|
66459
|
+
}
|
|
66460
|
+
const staged = `${file}.${process.pid}`;
|
|
66461
|
+
try {
|
|
66462
|
+
await downloadToFile(
|
|
66463
|
+
`https://r2.rnxsim.com/rnx-cli/companions/cli-${runtime_companion_default.sha256}.cjs`,
|
|
66464
|
+
staged
|
|
66465
|
+
);
|
|
66466
|
+
verifyCompanionFile(staged);
|
|
66467
|
+
(0, import_node_fs6.renameSync)(staged, file);
|
|
66468
|
+
} finally {
|
|
66469
|
+
(0, import_node_fs6.rmSync)(staged, { force: true });
|
|
66470
|
+
}
|
|
66471
|
+
}
|
|
66325
66472
|
var loaded;
|
|
66473
|
+
async function loadCliRuntime() {
|
|
66474
|
+
if (!loaded) await ensureCliCompanion(peachRuntimeRoot());
|
|
66475
|
+
return getCliRuntime();
|
|
66476
|
+
}
|
|
66326
66477
|
function getCliRuntime() {
|
|
66327
66478
|
if (loaded) return loaded.runtime;
|
|
66328
66479
|
const root = peachRuntimeRoot();
|
|
@@ -68131,7 +68282,6 @@ var NATIVE_RUNTIME_PACKAGE_NAMES = [
|
|
|
68131
68282
|
// ../peach-globals/src/guest-modules/lazy-stub-patterns.ts
|
|
68132
68283
|
init_version_range();
|
|
68133
68284
|
var LAZY_STUB_PATTERNS = [
|
|
68134
|
-
"@10play/tentap-editor",
|
|
68135
68285
|
"@adobe/react-native-aepcore",
|
|
68136
68286
|
"@azesmway/react-native-unity",
|
|
68137
68287
|
"@azzapp/react-native-skia-video",
|
|
@@ -68204,8 +68354,6 @@ var LAZY_STUB_PATTERNS = [
|
|
|
68204
68354
|
"react-native-agora",
|
|
68205
68355
|
"react-native-android-location-enabler",
|
|
68206
68356
|
"react-native-animateable-text",
|
|
68207
|
-
"react-native-app-clip",
|
|
68208
|
-
"react-native-avoid-softinput",
|
|
68209
68357
|
"react-native-azure-auth",
|
|
68210
68358
|
"react-native-bare-kit",
|
|
68211
68359
|
"react-native-bluetooth-classic",
|
|
@@ -68220,7 +68368,6 @@ var LAZY_STUB_PATTERNS = [
|
|
|
68220
68368
|
"react-native-extra-dimensions-android",
|
|
68221
68369
|
"react-native-fast-opencv",
|
|
68222
68370
|
"react-native-fast-shadow",
|
|
68223
|
-
"react-native-fast-squircle",
|
|
68224
68371
|
"react-native-fast-tflite",
|
|
68225
68372
|
"react-native-file-viewer-turbo",
|
|
68226
68373
|
"react-native-floating-label-input",
|
|
@@ -70088,7 +70235,7 @@ async function prepareChannel({
|
|
|
70088
70235
|
[...files2.keys()].map((path102) => path102.slice(0, path102.lastIndexOf("/")))
|
|
70089
70236
|
);
|
|
70090
70237
|
let locations = 0;
|
|
70091
|
-
const { stripRolldownBundleInventoryFooter, attachRolldownBundleInventory } =
|
|
70238
|
+
const { stripRolldownBundleInventoryFooter, attachRolldownBundleInventory } = (await loadCliRuntime()).rolldown_bundle_inventory;
|
|
70092
70239
|
const detached = detachPackageVersionsFooter(
|
|
70093
70240
|
stripRolldownBundleInventoryFooter(
|
|
70094
70241
|
new TextDecoder("utf-8", { fatal: true }).decode(bundle)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2300 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|