peachsim 0.1.1692 → 0.1.1700
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/bridge-flow-runner.ts +61 -39
- package/cli/commands/agent-wrapper.ts +21 -10
- package/cli/commands/control.ts +27 -7
- package/cli/commands/coverage.ts +1 -1
- package/cli/commands/detect.ts +17 -4
- package/cli/commands/maestro-compare.ts +25 -99
- package/cli/help-core.ts +3 -4
- package/cli/maestro-compare.ts +172 -4
- package/cli/outbound-endpoints.ts +2 -10
- package/detox/index.ts +15 -0
- package/detox/launch-permissions.ts +169 -0
- package/dist-lib/agent-daemon-client.cjs +2 -2
- package/dist-lib/agent-events.cjs +2 -2
- package/dist-lib/attached-projects.cjs +2 -2
- package/dist-lib/auth/shared-session.cjs +2 -2
- package/dist-lib/backend-origin.cjs +2 -2
- package/dist-lib/beta.cjs +2 -2
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +2 -2
- package/dist-lib/bridge-contract-input.cjs +2 -2
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +2 -2
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +18273 -15925
- package/dist-lib/capture-contract.cjs +2 -2
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +2 -2
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +2 -2
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +2 -2
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +2 -2
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +104 -3
- package/dist-lib/dev-bundle-resolution.cjs +208 -44
- package/dist-lib/expo-swift-bundle.cjs +2349 -1778
- package/dist-lib/expo-swift-metadata.cjs +2 -2
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +2 -2
- package/dist-lib/host/bridge-host.cjs +7885 -3334
- package/dist-lib/host/fetch-proxy-handler.cjs +331 -39
- package/dist-lib/host/fetch-proxy-overrides.cjs +2 -2
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +2 -2
- package/dist-lib/host/websocket-proxy.cjs +2 -2
- package/dist-lib/index.cjs +297 -77
- package/dist-lib/jump-to-source-babel.cjs +2 -2
- package/dist-lib/jump-to-source-native.cjs +2 -2
- package/dist-lib/kotlin-host.cjs +2 -2
- package/dist-lib/menu.cjs +2 -2
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +2 -2
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +2 -2
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +294 -74
- package/dist-lib/native-app-identity-project.cjs +48 -37
- package/dist-lib/native-app-identity-project.mjs +47 -36
- package/dist-lib/native-app-identity.cjs +2 -2
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +2 -2
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +2 -2
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +2 -2
- package/dist-lib/public-brand.cjs +2 -2
- package/dist-lib/public-origins-lib-esm.json +24 -23
- package/dist-lib/public-origins-lib.json +199 -79
- package/dist-lib/react-native-host-modules.cjs +2 -2
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +2 -2
- package/dist-lib/scripts/dev-server-scanner.cjs +206 -31
- package/dist-lib/sdk.cjs +2 -2
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +19600 -15992
- package/dist-lib/swift-compile.cjs +640 -402
- package/dist-lib/swift-compile.mjs +595 -357
- package/dist-lib/swift-package.cjs +24 -20
- package/dist-lib/swift-package.mjs +23 -19
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +31 -4
- package/dist-lib/swift.cjs +2 -2
- package/dist-lib/vite-swift.cjs +1559 -1208
- package/dist-lib/vite.cjs +251 -42
- package/dist-lib/worklet-executable.cjs +2 -2
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/scroll-pan-contacts.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +7 -0
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +17 -0
- package/dist-types/packages/peach-engine/src/render-worker/worker-input-runtime.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +3 -0
- package/dist-types/packages/peach-globals/src/cameraBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/replayBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/shellHostBridgeContract.d.ts +3 -0
- package/dist-types/packages/peach-kit/src/materials/types.d.ts +1 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/scripts/dev-server-scanner.ts +4 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Alpha.h +2282 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/BasicImageTypes.h +55 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Conversion.h +10551 -6
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Convolution.h +4236 -3
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Geometry.h +827 -8
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Histogram.h +1369 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Morphology.h +1243 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Transform.h +1747 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage.h +291 -2
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_CVUtilities.h +1283 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Types.h +811 -91
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Utilities.h +1342 -25
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns.h +2738 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns_constants.h +1685 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns_graph.h +913 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns_structures.h +1917 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/LinearAlgebra.h +23 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/arithmetic.h +209 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/base.h +104 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/linear_systems.h +77 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/matrix.h +554 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/norms.h +58 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/object.h +186 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/splat.h +86 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/vector.h +364 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Quadrature/Integration.h +195 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Quadrature/Quadrature.h +44 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/BLAS/BLAS.h +2330 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/BLAS/Types.h +123 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/Solve.h +8339 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/SolveImplementation.h +520 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/SolveImplementationTyped.h +1893 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/Sparse.h +10 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/blas_new.h +1098 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/cblas.h +859 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/cblas_new.h +1134 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/clapack.h +10555 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/fortran_blas.h +695 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/lapack.h +38526 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/lapack_types.h +60 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/lapack_version.h +20 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/thread_api.h +50 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vBasicOps.h +1218 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vBigNum.h +1458 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vDSP.h +10377 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vDSP_translate.h +167 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vForce.h +1243 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vecLib.h +114 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vecLibTypes.h +146 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vectorOps.h +1106 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vfp.h +294 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.h +25 -1
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFArray.h +673 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h +232 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h +827 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCalendar.h +121 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCharacterSet.h +387 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFData.h +79 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDate.h +122 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h +674 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFError.h +182 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFLocale.h +213 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNotificationCenter.h +82 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNumber.h +129 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFSet.h +491 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h +883 -2
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h +98 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +11 -229
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +2 -6
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +2 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h +1 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecBase.h +906 -3
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecCertificate.h +613 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecItem.h +1284 -29
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecPolicy.h +441 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecTrust.h +845 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/Security.h +4 -0
- package/sdk/ios/usr/include/AvailabilityMacros.h +3985 -0
- package/sdk/ios/usr/include/copyfile.h +143 -0
- package/sdk/ios/usr/include/malloc/_malloc.h +143 -0
- package/sdk/ios/usr/include/malloc/_malloc_type.h +153 -0
- package/sdk/ios/usr/include/malloc/_platform.h +80 -0
- package/sdk/ios/usr/include/malloc/_ptrcheck.h +43 -0
- package/sdk/ios/usr/include/malloc/malloc.h +768 -0
- package/sdk/ios/usr/include/os/availability.h +168 -6
- package/sdk/ios/usr/include/os/base.h +351 -0
- package/sdk/ios/usr/include/os/clock.h +18 -0
- package/sdk/ios/usr/include/os/lock.h +232 -10
- package/sdk/ios/usr/include/os/log.h +521 -38
- package/sdk/ios/usr/include/os/object.h +320 -3
- package/sdk/ios/usr/include/os/trace.h +492 -0
- package/sdk/ios/usr/include/os/trace_base.h +167 -0
- package/sdk/ios/usr/include/os/workgroup.h +37 -0
- package/sdk/ios/usr/include/os/workgroup_base.h +91 -0
- package/sdk/ios/usr/include/os/workgroup_interval.h +156 -0
- package/sdk/ios/usr/include/os/workgroup_object.h +359 -0
- package/sdk/ios/usr/include/os/workgroup_parallel.h +76 -0
- package/sdk/ios/usr/include/sys/cdefs.h +38 -0
- package/sdk/ios/wasm/include/unistd.h +3 -0
- package/skills/contrast/SKILL.md +3 -0
- package/src/codex-client.ts +11 -6
- package/src/dev-bundle-resolution.ts +124 -48
- package/src/expo-native-workspace.ts +176 -0
- package/src/expo-swift-host.ts +161 -26
- package/src/expo-swift-ready.ts +14 -28
- package/src/expoSwiftContract.ts +4 -1
- package/src/generated/swift-c-predefines.json +68 -12
- package/src/host/bridge-host.ts +5 -0
- package/src/installed-package-versions.ts +14 -1
- package/src/metro-project-root.ts +44 -33
- package/src/native-app-identity-project.ts +1 -0
- package/src/nitro-adapter.lock.json +916 -10
- package/src/nitro-adapter.ts +33 -24
- package/src/nitro-bundle.ts +108 -22
- package/src/nitro-compile.ts +32 -5
- package/src/nitro-source.ts +13 -3
- package/src/nitroAdapterContract.ts +100 -20
- package/src/node-http-fetch.ts +116 -0
- package/src/packageVersionsContract.ts +46 -0
- package/src/serverDiscoveryContract.ts +1 -0
- package/src/settingsContract.ts +0 -30
- package/src/swift-binary-modules.ts +20 -5
- package/src/swift-compile.ts +168 -48
- package/src/swift-coverage/xcode-assets.ts +4 -3
- package/src/swift-host.ts +14 -3
- package/src/swift-objc-compile.ts +32 -5
- package/src/swift-objc-metadata.ts +2 -2
- package/src/swift-objc-platform.ts +2 -2
- package/src/swift-objc-standin.ts +43 -13
- package/src/swift-package.ts +33 -26
- package/src/swift-source-pods.ts +126 -41
- package/src/swift-standin-digest.ts +77 -0
- package/src/swift-standin-emit.ts +40 -4
- package/src/swift-standins.ts +68 -19
- package/src/swift-toolchain.ts +38 -0
- package/src/swiftContract.ts +8 -0
- package/src/vite-plugin.ts +0 -10
- package/src/xcode-project.ts +62 -42
- package/src/settings-flags.ts +0 -107
package/dist-lib/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
1
|
+
/*! peach v0.1.1700 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
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;
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
@@ -98,7 +98,7 @@ var init_bundleGlobalFooter = __esm({
|
|
|
98
98
|
var runtime_companion_default;
|
|
99
99
|
var init_runtime_companion = __esm({
|
|
100
100
|
"runtime-companion.json"() {
|
|
101
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
101
|
+
runtime_companion_default = { abi: 1, sha256: "1f3d4b48d9b79b8579197585654c7ea6f1a69bcc5f4cb2dad706f31aa88d791b", file: "node/cli-1f3d4b48d9b79b8579197585654c7ea6f1a69bcc5f4cb2dad706f31aa88d791b.cjs" };
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
104
|
|
|
@@ -5030,6 +5030,112 @@ var init_config = __esm({
|
|
|
5030
5030
|
}
|
|
5031
5031
|
});
|
|
5032
5032
|
|
|
5033
|
+
// src/node-http-fetch.ts
|
|
5034
|
+
var node_http_fetch_exports = {};
|
|
5035
|
+
__export(node_http_fetch_exports, {
|
|
5036
|
+
nodeHttpFetch: () => nodeHttpFetch
|
|
5037
|
+
});
|
|
5038
|
+
function nodeHttpFetch(url, init = {}, redirects = 0) {
|
|
5039
|
+
const target = new URL(url);
|
|
5040
|
+
const transport = target.protocol === "https:" ? import_node_https.default : import_node_http.default;
|
|
5041
|
+
return new Promise((resolve5, reject) => {
|
|
5042
|
+
const req = transport.request(
|
|
5043
|
+
target,
|
|
5044
|
+
{ method: "GET", headers: init.headers, signal: init.signal },
|
|
5045
|
+
(res) => {
|
|
5046
|
+
const status = res.statusCode ?? 0;
|
|
5047
|
+
const location = res.headers.location;
|
|
5048
|
+
if (status >= 300 && status < 400 && location) {
|
|
5049
|
+
res.resume();
|
|
5050
|
+
if (redirects >= MAX_REDIRECTS) {
|
|
5051
|
+
reject(new Error(`too many redirects from ${url}`));
|
|
5052
|
+
return;
|
|
5053
|
+
}
|
|
5054
|
+
resolve5(nodeHttpFetch(new URL(location, target).href, init, redirects + 1));
|
|
5055
|
+
return;
|
|
5056
|
+
}
|
|
5057
|
+
const headers = new Headers();
|
|
5058
|
+
for (const [name2, value] of Object.entries(res.headers)) {
|
|
5059
|
+
if (Array.isArray(value)) for (const entry of value) headers.append(name2, entry);
|
|
5060
|
+
else if (value !== void 0) headers.set(name2, value);
|
|
5061
|
+
}
|
|
5062
|
+
if (BODYLESS_STATUS.has(status)) {
|
|
5063
|
+
res.resume();
|
|
5064
|
+
resolve5(new Response(null, { status, headers }));
|
|
5065
|
+
return;
|
|
5066
|
+
}
|
|
5067
|
+
let source = res;
|
|
5068
|
+
const codings = (res.headers["content-encoding"] ?? "").split(",").map((entry) => entry.trim().toLowerCase()).filter((entry) => entry && entry !== "identity");
|
|
5069
|
+
if (codings.every((coding) => DECODABLE_CODINGS.has(coding))) {
|
|
5070
|
+
for (const coding of codings.reverse()) {
|
|
5071
|
+
let decoder;
|
|
5072
|
+
if (coding === "br") decoder = import_node_zlib.default.createBrotliDecompress();
|
|
5073
|
+
else if (coding === "deflate") {
|
|
5074
|
+
let inner;
|
|
5075
|
+
decoder = new import_node_stream.Transform({
|
|
5076
|
+
transform(chunk, _encoding, done) {
|
|
5077
|
+
if (!inner) {
|
|
5078
|
+
inner = (chunk[0] & 15) === 8 ? import_node_zlib.default.createInflate(TRUNCATION_TOLERANT) : import_node_zlib.default.createInflateRaw(TRUNCATION_TOLERANT);
|
|
5079
|
+
inner.on("data", (data) => decoder.push(data));
|
|
5080
|
+
inner.on("error", (error) => decoder.destroy(error));
|
|
5081
|
+
}
|
|
5082
|
+
inner.write(chunk, done);
|
|
5083
|
+
},
|
|
5084
|
+
flush(done) {
|
|
5085
|
+
if (!inner) return done();
|
|
5086
|
+
inner.once("end", () => done());
|
|
5087
|
+
inner.end();
|
|
5088
|
+
},
|
|
5089
|
+
destroy(error, done) {
|
|
5090
|
+
inner?.destroy();
|
|
5091
|
+
done(error);
|
|
5092
|
+
}
|
|
5093
|
+
});
|
|
5094
|
+
} else decoder = import_node_zlib.default.createGunzip(TRUNCATION_TOLERANT);
|
|
5095
|
+
source = (0, import_node_stream.pipeline)(source, decoder, () => {
|
|
5096
|
+
});
|
|
5097
|
+
}
|
|
5098
|
+
}
|
|
5099
|
+
const chunks = source[Symbol.asyncIterator]();
|
|
5100
|
+
const body = new ReadableStream({
|
|
5101
|
+
async pull(controller) {
|
|
5102
|
+
try {
|
|
5103
|
+
const chunk = await chunks.next();
|
|
5104
|
+
if (chunk.done) controller.close();
|
|
5105
|
+
else if (chunk.value instanceof Uint8Array) controller.enqueue(chunk.value);
|
|
5106
|
+
else controller.error(new Error("HTTP response returned a non-byte chunk"));
|
|
5107
|
+
} catch (error) {
|
|
5108
|
+
controller.error(error);
|
|
5109
|
+
}
|
|
5110
|
+
},
|
|
5111
|
+
cancel() {
|
|
5112
|
+
source.destroy();
|
|
5113
|
+
res.destroy();
|
|
5114
|
+
}
|
|
5115
|
+
});
|
|
5116
|
+
resolve5(new Response(body, { status, headers }));
|
|
5117
|
+
}
|
|
5118
|
+
);
|
|
5119
|
+
req.on("error", reject);
|
|
5120
|
+
req.end();
|
|
5121
|
+
});
|
|
5122
|
+
}
|
|
5123
|
+
var import_node_http, import_node_https, import_node_stream, import_node_zlib, BODYLESS_STATUS, TRUNCATION_TOLERANT, MAX_REDIRECTS, DECODABLE_CODINGS;
|
|
5124
|
+
var init_node_http_fetch = __esm({
|
|
5125
|
+
"src/node-http-fetch.ts"() {
|
|
5126
|
+
"use strict";
|
|
5127
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5128
|
+
import_node_http = __toESM(require("node:http"), 1);
|
|
5129
|
+
import_node_https = __toESM(require("node:https"), 1);
|
|
5130
|
+
import_node_stream = require("node:stream");
|
|
5131
|
+
import_node_zlib = __toESM(require("node:zlib"), 1);
|
|
5132
|
+
BODYLESS_STATUS = /* @__PURE__ */ new Set([101, 204, 205, 304]);
|
|
5133
|
+
TRUNCATION_TOLERANT = { finishFlush: import_node_zlib.default.constants.Z_SYNC_FLUSH };
|
|
5134
|
+
MAX_REDIRECTS = 5;
|
|
5135
|
+
DECODABLE_CODINGS = /* @__PURE__ */ new Set(["gzip", "x-gzip", "deflate", "br"]);
|
|
5136
|
+
}
|
|
5137
|
+
});
|
|
5138
|
+
|
|
5033
5139
|
// ../contrast-bundler/src/posixPath.ts
|
|
5034
5140
|
function isAbsolute(p) {
|
|
5035
5141
|
return p.charCodeAt(0) === 47;
|
|
@@ -6672,6 +6778,23 @@ function readPackageVersions(value) {
|
|
|
6672
6778
|
function insertPackageVersionsFooter(source, versions) {
|
|
6673
6779
|
return insertBundleGlobalFooter(source, FOOTER2, readPackageVersions(versions));
|
|
6674
6780
|
}
|
|
6781
|
+
var WORKLETS_STATIC_FLAGS_KEY = "react-native-worklets/staticFlags.json";
|
|
6782
|
+
function isFlagRecord(value) {
|
|
6783
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6784
|
+
}
|
|
6785
|
+
function resolveWorkletsStaticFlags(defaults, appManifest) {
|
|
6786
|
+
if (!isFlagRecord(defaults)) throw new Error("Worklets static flags are malformed");
|
|
6787
|
+
const worklets = isFlagRecord(appManifest) ? appManifest.worklets : void 0;
|
|
6788
|
+
const overrides = isFlagRecord(worklets) ? worklets.staticFeatureFlags : void 0;
|
|
6789
|
+
if (overrides !== void 0 && !isFlagRecord(overrides)) {
|
|
6790
|
+
throw new Error("Worklets static flag overrides are malformed");
|
|
6791
|
+
}
|
|
6792
|
+
const flags = {};
|
|
6793
|
+
for (const [name2, value] of Object.entries({ ...defaults, ...overrides })) {
|
|
6794
|
+
flags[name2] = String(value) === "true";
|
|
6795
|
+
}
|
|
6796
|
+
return JSON.stringify(flags);
|
|
6797
|
+
}
|
|
6675
6798
|
|
|
6676
6799
|
// cli/cloud-client.ts
|
|
6677
6800
|
init_backend_origin();
|
|
@@ -11139,8 +11262,8 @@ function isRnxCaptureRegionAtlas(value) {
|
|
|
11139
11262
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
11140
11263
|
var import_fs6 = __toESM(require("fs"), 1);
|
|
11141
11264
|
var import_node_crypto6 = require("node:crypto");
|
|
11142
|
-
var
|
|
11143
|
-
var
|
|
11265
|
+
var import_node_http3 = __toESM(require("node:http"), 1);
|
|
11266
|
+
var import_node_https2 = __toESM(require("node:https"), 1);
|
|
11144
11267
|
var import_node_url = require("node:url");
|
|
11145
11268
|
var import_path5 = __toESM(require("path"), 1);
|
|
11146
11269
|
var import_promises5 = require("stream/promises");
|
|
@@ -11294,7 +11417,6 @@ var LAZY_STUB_PATTERNS = [
|
|
|
11294
11417
|
"@sbaiahmed1/react-native-biometrics/types",
|
|
11295
11418
|
"@sbaiahmed1/react-native-blur",
|
|
11296
11419
|
"@shopify/checkout-sheet-kit",
|
|
11297
|
-
"@shopify/react-native-skia",
|
|
11298
11420
|
"@stream-io/video-react-native-sdk",
|
|
11299
11421
|
"@stripe/stripe-identity-react-native",
|
|
11300
11422
|
"@stripe/stripe-react-native",
|
|
@@ -11313,7 +11435,6 @@ var LAZY_STUB_PATTERNS = [
|
|
|
11313
11435
|
"expo-in-app-updates",
|
|
11314
11436
|
"expo-mesh-gradient",
|
|
11315
11437
|
"expo-modules-core",
|
|
11316
|
-
"expo-share-extension",
|
|
11317
11438
|
"expo-superwall",
|
|
11318
11439
|
"freerasp-react-native",
|
|
11319
11440
|
"klaviyo-react-native-sdk",
|
|
@@ -11405,7 +11526,6 @@ var LAZY_STUB_PATTERNS = [
|
|
|
11405
11526
|
"react-native-share-menu",
|
|
11406
11527
|
"react-native-shared-element",
|
|
11407
11528
|
"react-native-simple-toast",
|
|
11408
|
-
"react-native-skia",
|
|
11409
11529
|
"react-native-spinkit",
|
|
11410
11530
|
"react-native-ssl-public-key-pinning",
|
|
11411
11531
|
"react-native-star-io10",
|
|
@@ -14053,12 +14173,6 @@ var COMPAT_STUBS = {
|
|
|
14053
14173
|
runtimeTier: "none",
|
|
14054
14174
|
buildResolvers: ["vite"]
|
|
14055
14175
|
},
|
|
14056
|
-
expoShareExtension: {
|
|
14057
|
-
specifier: "expo-share-extension",
|
|
14058
|
-
stubFile: "noop-sdks-extra/expo-share-extension.ts",
|
|
14059
|
-
runtimeTier: "none",
|
|
14060
|
-
buildResolvers: ["vite"]
|
|
14061
|
-
},
|
|
14062
14176
|
expoHealthConnect: {
|
|
14063
14177
|
specifier: "expo-health-connect",
|
|
14064
14178
|
stubFile: "noop-sdks-extra/expo-health-connect.ts",
|
|
@@ -14205,6 +14319,15 @@ function* installedVersionsWalk(projectRoot, names) {
|
|
|
14205
14319
|
const installed = yield* readInstalledPackage(projectRoot, name2);
|
|
14206
14320
|
const version = installed && Reflect.get(installed.manifest, "version");
|
|
14207
14321
|
if (typeof version === "string" && version.length > 0) versions[name2] = version;
|
|
14322
|
+
if (name2 === "react-native-worklets" && installed) {
|
|
14323
|
+
const defaults = yield* readManifest(
|
|
14324
|
+
import_path3.default.join(installed.root, "src/featureFlags/staticFlags.json")
|
|
14325
|
+
);
|
|
14326
|
+
if (defaults) {
|
|
14327
|
+
const app = yield* readManifest(import_path3.default.join(projectRoot, "package.json"));
|
|
14328
|
+
versions[WORKLETS_STATIC_FLAGS_KEY] = resolveWorkletsStaticFlags(defaults, app);
|
|
14329
|
+
}
|
|
14330
|
+
}
|
|
14208
14331
|
}
|
|
14209
14332
|
return versions;
|
|
14210
14333
|
}
|
|
@@ -14343,7 +14466,93 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
|
14343
14466
|
init_backend_origin();
|
|
14344
14467
|
|
|
14345
14468
|
// src/dev-bundle-resolution.ts
|
|
14469
|
+
function shouldProxyLoopbackProbe(targetUrl, pageOrigin) {
|
|
14470
|
+
try {
|
|
14471
|
+
const target = new URL(targetUrl);
|
|
14472
|
+
const page = new URL(pageOrigin);
|
|
14473
|
+
return isLoopbackHost(target.hostname) && isLoopbackHost(page.hostname) && target.origin !== page.origin;
|
|
14474
|
+
} catch {
|
|
14475
|
+
return false;
|
|
14476
|
+
}
|
|
14477
|
+
}
|
|
14478
|
+
async function fetchDevProbe(targetUrl, pageOrigin, init) {
|
|
14479
|
+
const requestInit = {
|
|
14480
|
+
...init,
|
|
14481
|
+
cache: init?.cache ?? "no-store"
|
|
14482
|
+
};
|
|
14483
|
+
if (!pageOrigin || !shouldProxyLoopbackProbe(targetUrl, pageOrigin)) {
|
|
14484
|
+
return fetch(targetUrl, requestInit);
|
|
14485
|
+
}
|
|
14486
|
+
return fetch(
|
|
14487
|
+
`${pageOrigin}/__fetch-proxy?url=${encodeURIComponent(targetUrl)}`,
|
|
14488
|
+
requestInit
|
|
14489
|
+
);
|
|
14490
|
+
}
|
|
14346
14491
|
var MANIFEST_PROBE_TIMEOUT_MS = 3e4;
|
|
14492
|
+
var manifestRequests = /* @__PURE__ */ new Map();
|
|
14493
|
+
async function startDevManifestRequest(normalizedBaseUrl, pageOrigin, signal) {
|
|
14494
|
+
const init = { headers: { "expo-platform": "ios" }, signal };
|
|
14495
|
+
const res = pageOrigin ? await fetchDevProbe(`${normalizedBaseUrl}/`, pageOrigin, init) : await (await Promise.resolve().then(() => (init_node_http_fetch(), node_http_fetch_exports))).nodeHttpFetch(`${normalizedBaseUrl}/`, init);
|
|
14496
|
+
const body = await res.arrayBuffer();
|
|
14497
|
+
return new Response(body.byteLength ? body : null, {
|
|
14498
|
+
status: res.status,
|
|
14499
|
+
headers: res.headers
|
|
14500
|
+
});
|
|
14501
|
+
}
|
|
14502
|
+
async function fetchDevManifest(baseUrl, pageOrigin, options = {}) {
|
|
14503
|
+
options.signal?.throwIfAborted();
|
|
14504
|
+
const normalizedBaseUrl = baseUrl.replace(/\/+$/, "");
|
|
14505
|
+
let request = manifestRequests.get(normalizedBaseUrl);
|
|
14506
|
+
if (!request) {
|
|
14507
|
+
const controller = new AbortController();
|
|
14508
|
+
const promise = startDevManifestRequest(
|
|
14509
|
+
normalizedBaseUrl,
|
|
14510
|
+
pageOrigin,
|
|
14511
|
+
controller.signal
|
|
14512
|
+
).finally(() => {
|
|
14513
|
+
if (manifestRequests.get(normalizedBaseUrl)?.controller === controller)
|
|
14514
|
+
manifestRequests.delete(normalizedBaseUrl);
|
|
14515
|
+
});
|
|
14516
|
+
request = { promise, controller, clients: 0 };
|
|
14517
|
+
manifestRequests.set(normalizedBaseUrl, request);
|
|
14518
|
+
}
|
|
14519
|
+
const current = request;
|
|
14520
|
+
current.clients++;
|
|
14521
|
+
const waitMs = options.waitMs === void 0 ? MANIFEST_PROBE_TIMEOUT_MS : options.waitMs;
|
|
14522
|
+
let deadline;
|
|
14523
|
+
let onAbort;
|
|
14524
|
+
try {
|
|
14525
|
+
const stopped = new Promise((_, reject) => {
|
|
14526
|
+
onAbort = () => {
|
|
14527
|
+
const reason = options.signal?.reason;
|
|
14528
|
+
reject(
|
|
14529
|
+
reason instanceof Error ? reason : new Error("Metro manifest request canceled", { cause: reason })
|
|
14530
|
+
);
|
|
14531
|
+
};
|
|
14532
|
+
options.signal?.addEventListener("abort", onAbort, { once: true });
|
|
14533
|
+
if (options.signal?.aborted) onAbort();
|
|
14534
|
+
if (waitMs !== null)
|
|
14535
|
+
deadline = setTimeout(
|
|
14536
|
+
() => reject(
|
|
14537
|
+
new Error(
|
|
14538
|
+
`Metro manifest request timed out after ${waitMs / 1e3}s: ${normalizedBaseUrl}/`
|
|
14539
|
+
)
|
|
14540
|
+
),
|
|
14541
|
+
waitMs
|
|
14542
|
+
);
|
|
14543
|
+
});
|
|
14544
|
+
return (await Promise.race([current.promise, stopped])).clone();
|
|
14545
|
+
} finally {
|
|
14546
|
+
clearTimeout(deadline);
|
|
14547
|
+
if (onAbort) options.signal?.removeEventListener("abort", onAbort);
|
|
14548
|
+
current.clients--;
|
|
14549
|
+
if (options.signal?.aborted && current.clients === 0) {
|
|
14550
|
+
if (manifestRequests.get(normalizedBaseUrl) === current)
|
|
14551
|
+
manifestRequests.delete(normalizedBaseUrl);
|
|
14552
|
+
current.controller.abort(options.signal.reason);
|
|
14553
|
+
}
|
|
14554
|
+
}
|
|
14555
|
+
}
|
|
14347
14556
|
|
|
14348
14557
|
// src/kotlinDiscoveryContract.ts
|
|
14349
14558
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -14819,38 +15028,38 @@ function resolveProcessCwd(pid) {
|
|
|
14819
15028
|
|
|
14820
15029
|
// src/metro-project-root.ts
|
|
14821
15030
|
init_backend_origin();
|
|
14822
|
-
async function resolveMetroProjectRoot(bundleUrl) {
|
|
15031
|
+
async function resolveMetroProjectRoot(bundleUrl, manifestProjectRoot, options = {}) {
|
|
14823
15032
|
const origin = loopbackOriginOf(bundleUrl);
|
|
14824
15033
|
if (!origin) return null;
|
|
14825
|
-
|
|
14826
|
-
|
|
15034
|
+
options.signal?.throwIfAborted();
|
|
15035
|
+
if (manifestProjectRoot) return manifestProjectRoot;
|
|
15036
|
+
const waitMs = options.waitMs === void 0 ? MANIFEST_PROBE_TIMEOUT_MS : options.waitMs;
|
|
15037
|
+
const deadline = waitMs === null ? void 0 : AbortSignal.timeout(waitMs);
|
|
15038
|
+
const signal = deadline ? options.signal ? AbortSignal.any([options.signal, deadline]) : deadline : options.signal;
|
|
15039
|
+
const { nodeHttpFetch: nodeHttpFetch2 } = await Promise.resolve().then(() => (init_node_http_fetch(), node_http_fetch_exports));
|
|
15040
|
+
const status = await nodeHttpFetch2(`${origin}/status`, { signal });
|
|
15041
|
+
const statusBody = await status.text();
|
|
15042
|
+
const advertisedRoot = status.headers.get("X-React-Native-Project-Root");
|
|
15043
|
+
if (status.ok && advertisedRoot) return decodeURI(advertisedRoot);
|
|
15044
|
+
if (manifestProjectRoot === null) return null;
|
|
15045
|
+
const metroRunning = status.ok && statusBody.trim() === "packager-status:running";
|
|
15046
|
+
const res = await fetchDevManifest(origin, void 0, { waitMs: null, signal });
|
|
14827
15047
|
let servedManifest = false;
|
|
14828
|
-
|
|
14829
|
-
|
|
14830
|
-
|
|
14831
|
-
|
|
14832
|
-
if (status.ok && advertisedRoot) return decodeURI(advertisedRoot);
|
|
14833
|
-
metroRunning = status.ok && (await status.text()).trim() === "packager-status:running";
|
|
14834
|
-
const res = await fetch(`${origin}/`, {
|
|
14835
|
-
headers: { "expo-platform": "ios", Accept: "application/json" },
|
|
14836
|
-
signal: controller.signal
|
|
14837
|
-
});
|
|
14838
|
-
if (res.ok) {
|
|
14839
|
-
const manifest = parseExpoManifestBody(await res.text());
|
|
15048
|
+
if (res.ok) {
|
|
15049
|
+
let manifest;
|
|
15050
|
+
try {
|
|
15051
|
+
manifest = parseExpoManifestBody(await res.text());
|
|
14840
15052
|
servedManifest = true;
|
|
14841
|
-
|
|
14842
|
-
|
|
14843
|
-
root = typeof root === "object" && root !== null ? Reflect.get(root, key) : void 0;
|
|
14844
|
-
}
|
|
14845
|
-
if (typeof root === "string" && root.length > 0) return root;
|
|
15053
|
+
} catch (error) {
|
|
15054
|
+
if (res.headers.get("content-type")?.includes("json")) throw error;
|
|
14846
15055
|
}
|
|
14847
|
-
|
|
14848
|
-
|
|
14849
|
-
|
|
14850
|
-
|
|
14851
|
-
|
|
14852
|
-
}
|
|
14853
|
-
|
|
15056
|
+
let root = manifest;
|
|
15057
|
+
for (const key of ["extra", "expoClient", "_internal", "projectRoot"]) {
|
|
15058
|
+
root = typeof root === "object" && root !== null ? Reflect.get(root, key) : void 0;
|
|
15059
|
+
}
|
|
15060
|
+
if (typeof root === "string" && root.length > 0) return root;
|
|
15061
|
+
} else if (res.status !== 404 && res.status !== 405) {
|
|
15062
|
+
throw new Error(`Metro project root request failed: HTTP ${res.status} at ${origin}/`);
|
|
14854
15063
|
}
|
|
14855
15064
|
if (servedManifest || !metroRunning) return null;
|
|
14856
15065
|
const port = Number(new URL(origin).port);
|
|
@@ -15735,7 +15944,7 @@ function peachPlugin(options = {}) {
|
|
|
15735
15944
|
(error) => res.destroy(error instanceof Error ? error : new Error(String(error)))
|
|
15736
15945
|
);
|
|
15737
15946
|
};
|
|
15738
|
-
const upstreamReq = server.config.server.https ?
|
|
15947
|
+
const upstreamReq = server.config.server.https ? import_node_https2.default.request(options2, respond) : import_node_http3.default.request(options2, respond);
|
|
15739
15948
|
upstreamReq.once("error", next);
|
|
15740
15949
|
req.once("close", () => {
|
|
15741
15950
|
if (!res.writableFinished) upstreamReq.destroy();
|
|
@@ -17765,10 +17974,13 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
|
|
|
17765
17974
|
}
|
|
17766
17975
|
function settingList(value) {
|
|
17767
17976
|
const items2 = [];
|
|
17768
|
-
for (const [
|
|
17769
|
-
|
|
17770
|
-
|
|
17771
|
-
|
|
17977
|
+
for (const [word] of value.matchAll(/(?:"(?:\\.|[^"\\])*"|\\.|[^\s"\\])+/g))
|
|
17978
|
+
items2.push(
|
|
17979
|
+
word.replace(
|
|
17980
|
+
/"((?:\\.|[^"\\])*)"|\\(.)/g,
|
|
17981
|
+
(_, quoted, escaped) => quoted !== void 0 ? quoted.replace(/\\(.)/g, "$1") : escaped
|
|
17982
|
+
)
|
|
17983
|
+
);
|
|
17772
17984
|
return items2;
|
|
17773
17985
|
}
|
|
17774
17986
|
function expandSearchPath(directory, rules) {
|
|
@@ -17844,6 +18056,9 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
17844
18056
|
const headers = /* @__PURE__ */ new Set();
|
|
17845
18057
|
const resources = /* @__PURE__ */ new Set();
|
|
17846
18058
|
const scriptForOutput = /* @__PURE__ */ new Map();
|
|
18059
|
+
const declaredInfoPlist = settings("INFOPLIST_FILE");
|
|
18060
|
+
const infoPlistOutput = declaredInfoPlist ? import_node_path15.default.resolve(project.projectDir, declaredInfoPlist) : null;
|
|
18061
|
+
const isPreparedOutput = (file) => file === infoPlistOutput || options.requireSources !== false && file.endsWith(".swift");
|
|
17847
18062
|
for (const phaseId of list(target.buildPhases)) {
|
|
17848
18063
|
const phase = project.object(phaseId);
|
|
17849
18064
|
if (phase?.isa !== "PBXShellScriptBuildPhase") continue;
|
|
@@ -17876,10 +18091,10 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
17876
18091
|
...fileLists.get("INPUT").flatMap((item) => [item.file, ...item.entries]),
|
|
17877
18092
|
...fileLists.get("OUTPUT").map((item) => item.file)
|
|
17878
18093
|
];
|
|
17879
|
-
if (allOutputs.some((file) => file.endsWith(".swift"))) {
|
|
18094
|
+
if (allOutputs.some((file) => file.endsWith(".swift") || file === infoPlistOutput)) {
|
|
17880
18095
|
for (const file of inputFiles) if (import_node_fs15.default.existsSync(file)) projectInputs.add(file);
|
|
17881
18096
|
}
|
|
17882
|
-
if (options.prepareGeneratedSources &&
|
|
18097
|
+
if (options.prepareGeneratedSources && allOutputs.some(isPreparedOutput)) {
|
|
17883
18098
|
const phaseDir = import_node_path15.default.join(settings("TARGET_TEMP_DIR"), `Script-${phaseId}`);
|
|
17884
18099
|
for (const lists of fileLists.values())
|
|
17885
18100
|
for (const { file } of lists)
|
|
@@ -17950,12 +18165,12 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
17950
18165
|
const output = error instanceof Error ? `${error.message}
|
|
17951
18166
|
${"stdout" in error ? String(error.stdout) : ""}${"stderr" in error ? String(error.stderr) : ""}` : String(error);
|
|
17952
18167
|
throw new Error(
|
|
17953
|
-
`${targetName}: Run Script "${script}" failed preparing generated
|
|
18168
|
+
`${targetName}: Run Script "${script}" failed preparing generated outputs:
|
|
17954
18169
|
${output}`
|
|
17955
18170
|
);
|
|
17956
18171
|
}
|
|
17957
18172
|
const missing = allOutputs.filter(
|
|
17958
|
-
(file) => file
|
|
18173
|
+
(file) => isPreparedOutput(file) && !import_node_fs15.default.existsSync(file)
|
|
17959
18174
|
);
|
|
17960
18175
|
if (missing.length > 0)
|
|
17961
18176
|
throw new Error(
|
|
@@ -18213,15 +18428,11 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
18213
18428
|
if (cached2) return cached2;
|
|
18214
18429
|
const entries = /* @__PURE__ */ new Map();
|
|
18215
18430
|
for (const ref of projectTargets(project)) {
|
|
18216
|
-
const
|
|
18217
|
-
const product = framework ? productName(ref) : "";
|
|
18431
|
+
const product = productName(ref);
|
|
18218
18432
|
for (const { file, visibility } of headerPhase(ref)) {
|
|
18219
18433
|
const name2 = import_node_path15.default.basename(file);
|
|
18220
18434
|
if (!entries.has(name2))
|
|
18221
|
-
entries.set(
|
|
18222
|
-
name2,
|
|
18223
|
-
framework && visibility !== "Project" ? `${product}/${name2}` : file
|
|
18224
|
-
);
|
|
18435
|
+
entries.set(name2, visibility !== "Project" ? `${product}/${name2}` : file);
|
|
18225
18436
|
}
|
|
18226
18437
|
}
|
|
18227
18438
|
for (const id of Object.keys(project.objects)) {
|
|
@@ -18333,20 +18544,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
18333
18544
|
const implementations = allSources.filter(isSwiftNativeTranslationUnit);
|
|
18334
18545
|
const native = implementations.length > 0;
|
|
18335
18546
|
if (native && building) {
|
|
18336
|
-
|
|
18337
|
-
const phase = ref.project.object(phaseId);
|
|
18338
|
-
return phase?.isa === "PBXShellScriptBuildPhase" ? list(phase.outputPaths).filter((output) => HEADER_FILE.test(output)) : [];
|
|
18339
|
-
});
|
|
18340
|
-
if (generatedHeaders.length > 0 || list(ref.target.buildRules).length > 0)
|
|
18341
|
-
throw new Error(
|
|
18342
|
-
`${name2}: Xcode's generated-files header map, which lists headers its build rules and Run Script phases generate (${generatedHeaders.join(", ") || "build rules"}), is not modeled`
|
|
18343
|
-
);
|
|
18344
|
-
const nonFramework = projectTargets(ref.project).find(
|
|
18345
|
-
(other) => !FRAMEWORK_PRODUCTS.has(str(other.target.productType) ?? "") && headerPhase(other).length > 0
|
|
18346
|
-
);
|
|
18347
|
-
if (nonFramework && settings2("USE_HEADERMAP") !== "NO")
|
|
18547
|
+
if (list(ref.target.buildRules).length > 0)
|
|
18348
18548
|
throw new Error(
|
|
18349
|
-
`${name2}: Xcode's
|
|
18549
|
+
`${name2}: Xcode's generated-files header map for build rules is not modeled`
|
|
18350
18550
|
);
|
|
18351
18551
|
if (settings2("ALWAYS_SEARCH_USER_PATHS") === "YES" && settings2("USER_HEADER_SEARCH_PATHS").trim())
|
|
18352
18552
|
throw new Error(
|
|
@@ -18357,14 +18557,29 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
18357
18557
|
const ownHeaders = /* @__PURE__ */ new Map();
|
|
18358
18558
|
for (const { file, visibility } of headerFiles) {
|
|
18359
18559
|
const name3 = import_node_path15.default.basename(file);
|
|
18360
|
-
const published =
|
|
18560
|
+
const published = visibility !== "Project";
|
|
18361
18561
|
if (!ownHeaders.has(name3))
|
|
18362
18562
|
ownHeaders.set(name3, published ? `${product}/${name3}` : file);
|
|
18363
|
-
if (
|
|
18563
|
+
if (!published && !ownHeaders.has(`${product}/${name3}`))
|
|
18364
18564
|
ownHeaders.set(`${product}/${name3}`, file);
|
|
18365
18565
|
}
|
|
18566
|
+
const nonFrameworkHeaders = /* @__PURE__ */ new Map();
|
|
18567
|
+
for (const other of projectTargets(ref.project)) {
|
|
18568
|
+
if (FRAMEWORK_PRODUCTS.has(str(other.target.productType) ?? "")) continue;
|
|
18569
|
+
const otherProduct = productName(other);
|
|
18570
|
+
for (const { file, visibility } of headerPhase(other)) {
|
|
18571
|
+
if (visibility === "Project") continue;
|
|
18572
|
+
const key = `${otherProduct}/${import_node_path15.default.basename(file)}`;
|
|
18573
|
+
if (!nonFrameworkHeaders.has(key)) nonFrameworkHeaders.set(key, file);
|
|
18574
|
+
}
|
|
18575
|
+
}
|
|
18366
18576
|
const wrapper = import_node_path15.default.join(settings2("BUILT_PRODUCTS_DIR"), `${product}.framework`);
|
|
18367
|
-
const moduleMap = settings2("DEFINES_MODULE") === "YES" && settings2("MODULEMAP_FILE") ? absolute(settings2("MODULEMAP_FILE")) : null;
|
|
18577
|
+
const moduleMap = (settings2("DEFINES_MODULE") === "YES" || !framework) && settings2("MODULEMAP_FILE") ? absolute(settings2("MODULEMAP_FILE")) : null;
|
|
18578
|
+
const podHeaders = !framework && isPodsProject(ref.project.xcodeproj) && moduleMap && import_node_path15.default.relative(import_node_path15.default.join(ref.project.projectDir, "Headers", "Public"), moduleMap).split(import_node_path15.default.sep)[0] !== ".." && import_node_fs15.default.existsSync(moduleMap) ? import_node_fs15.default.readdirSync(import_node_path15.default.dirname(moduleMap)).flatMap((entry) => {
|
|
18579
|
+
if (!/\.(h|hh|hpp|hxx|modulemap)$/.test(entry)) return [];
|
|
18580
|
+
const file = import_node_path15.default.join(import_node_path15.default.dirname(moduleMap), entry);
|
|
18581
|
+
return import_node_fs15.default.existsSync(file) ? [file] : [];
|
|
18582
|
+
}) : [];
|
|
18368
18583
|
const fileFlags = {};
|
|
18369
18584
|
for (const phaseId of list(ref.target.buildPhases)) {
|
|
18370
18585
|
const phase = ref.project.object(phaseId);
|
|
@@ -18403,9 +18618,12 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
18403
18618
|
},
|
|
18404
18619
|
...native ? {
|
|
18405
18620
|
objc: {
|
|
18406
|
-
publicHeaders:
|
|
18407
|
-
(
|
|
18408
|
-
|
|
18621
|
+
publicHeaders: [
|
|
18622
|
+
...headerFiles.flatMap(
|
|
18623
|
+
({ file, visibility }) => visibility === "Public" ? [file] : []
|
|
18624
|
+
),
|
|
18625
|
+
...podHeaders.filter((file) => HEADER_FILE.test(file))
|
|
18626
|
+
],
|
|
18409
18627
|
headers: [
|
|
18410
18628
|
.../* @__PURE__ */ new Set([
|
|
18411
18629
|
...headers,
|
|
@@ -18458,6 +18676,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
18458
18676
|
fileFlags,
|
|
18459
18677
|
headerMaps: settings2("USE_HEADERMAP") === "NO" ? [] : [
|
|
18460
18678
|
{ flag: "-I", entries: [...ownHeaders] },
|
|
18679
|
+
{ flag: "-I", entries: [...nonFrameworkHeaders] },
|
|
18461
18680
|
{
|
|
18462
18681
|
flag: "-iquote",
|
|
18463
18682
|
entries: projectHeaderMap(ref.project)
|
|
@@ -18477,7 +18696,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
18477
18696
|
]
|
|
18478
18697
|
),
|
|
18479
18698
|
...moduleMap ? [[import_node_path15.default.join(wrapper, "Modules", "module.modulemap"), moduleMap]] : []
|
|
18480
|
-
]) :
|
|
18699
|
+
]) : Object.fromEntries(podHeaders.map((file) => [file, file]))
|
|
18481
18700
|
}
|
|
18482
18701
|
} : {}
|
|
18483
18702
|
}
|
|
@@ -18993,7 +19212,8 @@ function readIosAppTarget(projectRoot, iosTarget) {
|
|
|
18993
19212
|
);
|
|
18994
19213
|
}
|
|
18995
19214
|
return readXcodeAppTarget(xcodeproj, iosTarget ?? appTargets[0], "Release", {
|
|
18996
|
-
requireSources: false
|
|
19215
|
+
requireSources: false,
|
|
19216
|
+
prepareGeneratedSources: true
|
|
18997
19217
|
});
|
|
18998
19218
|
}
|
|
18999
19219
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
1
|
+
/*! peach v0.1.1700 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
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;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
1
|
+
/*! peach v0.1.1700 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
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;
|
|
5
5
|
var __defProp = Object.defineProperty;
|
package/dist-lib/kotlin-host.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
1
|
+
/*! peach v0.1.1700 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
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;
|
|
5
5
|
var __defProp = Object.defineProperty;
|
package/dist-lib/menu.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
1
|
+
/*! peach v0.1.1700 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
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;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
package/dist-lib/menu.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
1
|
+
/*! peach v0.1.1700 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
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;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
1
|
+
/*! peach v0.1.1700 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
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;
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1700 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __esm = (fn, res) => function __init() {
|