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/src/expo-swift-host.ts
CHANGED
|
@@ -9,6 +9,7 @@ import path from 'node:path'
|
|
|
9
9
|
import { promisify } from 'node:util'
|
|
10
10
|
import { RNX_FORKED_SCRIPT_ENV } from '../cli/internal-child'
|
|
11
11
|
import { isLoopbackHost } from './backend-origin'
|
|
12
|
+
import { prepareExpoNativeWorkspace } from './expo-native-workspace'
|
|
12
13
|
import { collectBridgeModuleSources } from './react-native-bridge-modules'
|
|
13
14
|
import { swiftBinaryModules } from './swift-binary-modules'
|
|
14
15
|
import {
|
|
@@ -22,19 +23,24 @@ import {
|
|
|
22
23
|
import { resolveSwiftModule } from './swift-distribution'
|
|
23
24
|
import {
|
|
24
25
|
artifactFor,
|
|
26
|
+
compileInput,
|
|
27
|
+
disposeSwiftProject,
|
|
25
28
|
icuUrl,
|
|
29
|
+
openXcodeProject,
|
|
26
30
|
projectFor,
|
|
27
31
|
serveSwiftPackageAsset,
|
|
28
32
|
sourceContentStamp,
|
|
29
33
|
standinLibraries,
|
|
30
34
|
SwiftMissingModulesError,
|
|
31
35
|
} from './swift-host'
|
|
36
|
+
import { isSwiftNativeTranslationUnit, swiftManifestTargets } from './swift-package'
|
|
32
37
|
import {
|
|
33
38
|
standinGenerationInputs,
|
|
34
39
|
swiftStandins,
|
|
35
40
|
SWIFT_STANDINS_DIR,
|
|
36
41
|
} from './swift-standins'
|
|
37
42
|
import { MAX_SWIFT_COMPILE_FILES, MAX_SWIFT_COMPILE_SOURCE_BYTES } from './swift-submit'
|
|
43
|
+
import { sourceSwiftCheckout } from './swift-toolchain'
|
|
38
44
|
import type {
|
|
39
45
|
ExpoSwiftSourceUnit,
|
|
40
46
|
ExpoSwiftCompilationResult,
|
|
@@ -49,11 +55,8 @@ const run = promisify(execFile)
|
|
|
49
55
|
const scriptEnv = { ...process.env, [RNX_FORKED_SCRIPT_ENV]: '1' }
|
|
50
56
|
export const EXPO_SWIFT_ROUTE = '/__peach/expo-swift'
|
|
51
57
|
export const EXPO_SWIFT_ENTRY = 'Sources/PeachExpoApp/PeachExpoEntry.swift'
|
|
52
|
-
// a
|
|
53
|
-
//
|
|
54
|
-
const EXPO_SWIFT_REQUEST_TIMEOUT_MS = 30 * 60_000
|
|
55
|
-
// bun drops an unanswered fetch at six minutes and the waiter retries. aborting
|
|
56
|
-
// in that gap restarts the compile. a reconnect inside this window rejoins it.
|
|
58
|
+
// a transient client disconnect leaves a short window for another client to
|
|
59
|
+
// rejoin the same compile; after that the last client cancels its shared work.
|
|
57
60
|
const EXPO_SWIFT_CLIENT_GAP_MS = 5_000
|
|
58
61
|
|
|
59
62
|
// the autolinker's command line changed across Expo releases: before 1.8.0 it
|
|
@@ -84,13 +87,28 @@ function autolinkerAppleFlags(autolinkerManifest: string, appRoot: string) {
|
|
|
84
87
|
export async function collectExpoSwiftSources(
|
|
85
88
|
appRoot: string,
|
|
86
89
|
signal?: AbortSignal,
|
|
90
|
+
installedWorkspace?: string,
|
|
91
|
+
prepareNative = false,
|
|
87
92
|
): Promise<ExpoSwiftSourceUnit[] | null> {
|
|
88
93
|
signal?.throwIfAborted()
|
|
89
94
|
appRoot = fs.realpathSync(appRoot)
|
|
90
95
|
const appRequire = createRequire(path.join(appRoot, 'package.json'))
|
|
96
|
+
let expoRoot: string | undefined
|
|
97
|
+
try {
|
|
98
|
+
expoRoot = path.dirname(appRequire.resolve('expo/package.json'))
|
|
99
|
+
} catch (error) {
|
|
100
|
+
if (
|
|
101
|
+
!error ||
|
|
102
|
+
typeof error !== 'object' ||
|
|
103
|
+
Reflect.get(error, 'code') !== 'MODULE_NOT_FOUND'
|
|
104
|
+
)
|
|
105
|
+
throw error
|
|
106
|
+
}
|
|
91
107
|
let autolinker: string
|
|
92
108
|
try {
|
|
93
|
-
autolinker = appRequire.resolve('expo-modules-autolinking/package.json'
|
|
109
|
+
autolinker = appRequire.resolve('expo-modules-autolinking/package.json', {
|
|
110
|
+
paths: expoRoot ? [appRoot, expoRoot] : [appRoot],
|
|
111
|
+
})
|
|
94
112
|
} catch (error) {
|
|
95
113
|
if (
|
|
96
114
|
error &&
|
|
@@ -162,6 +180,14 @@ export async function collectExpoSwiftSources(
|
|
|
162
180
|
resolution && typeof resolution === 'object'
|
|
163
181
|
? Reflect.get(resolution, 'modules')
|
|
164
182
|
: null
|
|
183
|
+
const pods =
|
|
184
|
+
resolution && typeof resolution === 'object'
|
|
185
|
+
? Reflect.get(resolution, 'pods')
|
|
186
|
+
: null
|
|
187
|
+
if (prepareNative && !installedWorkspace && Array.isArray(pods) && pods.length > 0) {
|
|
188
|
+
const prepared = await prepareExpoNativeWorkspace(appRoot, signal)
|
|
189
|
+
return collectExpoSwiftSources(prepared.app, signal, prepared.workspace)
|
|
190
|
+
}
|
|
165
191
|
if (!Array.isArray(modules) || modules.length === 0) continue
|
|
166
192
|
if (
|
|
167
193
|
!Array.isArray(namespaces) ||
|
|
@@ -249,8 +275,9 @@ export async function collectExpoSwiftSources(
|
|
|
249
275
|
bytes += size
|
|
250
276
|
fileCount++
|
|
251
277
|
if (
|
|
252
|
-
|
|
253
|
-
|
|
278
|
+
!installedWorkspace &&
|
|
279
|
+
(fileCount > MAX_SWIFT_COMPILE_FILES - 2 ||
|
|
280
|
+
bytes > MAX_SWIFT_COMPILE_SOURCE_BYTES)
|
|
254
281
|
)
|
|
255
282
|
throw new Error('Expo Swift sources exceed compile service caps')
|
|
256
283
|
files[
|
|
@@ -261,7 +288,36 @@ export async function collectExpoSwiftSources(
|
|
|
261
288
|
`import UIKit\n#sourceLocation(file: ${JSON.stringify(file)}, line: 1)\n${fs.readFileSync(source, 'utf8')}`
|
|
262
289
|
}
|
|
263
290
|
}
|
|
291
|
+
const walkFrameworks = (dir: string) => {
|
|
292
|
+
signal?.throwIfAborted()
|
|
293
|
+
const directory = resolveSource(dir)
|
|
294
|
+
if (directories.has(directory)) return
|
|
295
|
+
directories.add(directory)
|
|
296
|
+
for (const child of fs
|
|
297
|
+
.readdirSync(dir, { withFileTypes: true })
|
|
298
|
+
.sort((a, b) => a.name.localeCompare(b.name))) {
|
|
299
|
+
if (
|
|
300
|
+
child.name.startsWith('.') ||
|
|
301
|
+
child.name === 'build' ||
|
|
302
|
+
child.name === 'node_modules' ||
|
|
303
|
+
child.name === 'android' ||
|
|
304
|
+
child.name === 'web' ||
|
|
305
|
+
child.name === 'src'
|
|
306
|
+
)
|
|
307
|
+
continue
|
|
308
|
+
const file = path.join(dir, child.name)
|
|
309
|
+
const linked = child.isSymbolicLink() ? resolveSource(file) : null
|
|
310
|
+
const target = linked ? fs.statSync(linked) : child
|
|
311
|
+
if (!target.isDirectory()) continue
|
|
312
|
+
if (/\.(xcframework|framework)$/.test(child.name)) {
|
|
313
|
+
frameworks.add(linked ?? resolveSource(file))
|
|
314
|
+
continue
|
|
315
|
+
}
|
|
316
|
+
walkFrameworks(file)
|
|
317
|
+
}
|
|
318
|
+
}
|
|
264
319
|
walk(ios)
|
|
320
|
+
walkFrameworks(canonical)
|
|
265
321
|
for (const module of classes) {
|
|
266
322
|
const unit: ExpoSwiftSourceUnit = {
|
|
267
323
|
namespace,
|
|
@@ -276,6 +332,55 @@ export async function collectExpoSwiftSources(
|
|
|
276
332
|
}
|
|
277
333
|
}
|
|
278
334
|
if (units.length === 0) return null
|
|
335
|
+
if (installedWorkspace) {
|
|
336
|
+
const projectRoot = openXcodeProject(
|
|
337
|
+
installedWorkspace,
|
|
338
|
+
undefined,
|
|
339
|
+
undefined,
|
|
340
|
+
'Debug',
|
|
341
|
+
)
|
|
342
|
+
try {
|
|
343
|
+
const input = compileInput(projectRoot, 'main.swift')
|
|
344
|
+
const targets = swiftManifestTargets(input.files['Package.swift'] ?? '')
|
|
345
|
+
for (const unit of units) {
|
|
346
|
+
const target = targets.find((item) => item.name === unit.namespace)
|
|
347
|
+
const native = input.nativeTargets?.find((item) => item.name === unit.namespace)
|
|
348
|
+
if (!target || !native) continue
|
|
349
|
+
const map = (file: string) =>
|
|
350
|
+
file.startsWith(`${target.path}/`)
|
|
351
|
+
? `Sources/${unit.namespace}/${file.slice(target.path.length + 1)}`
|
|
352
|
+
: file
|
|
353
|
+
const nativeFiles: Record<string, string> = {}
|
|
354
|
+
for (const [file, source] of Object.entries(input.files)) {
|
|
355
|
+
if (/\.(h|hh|hpp|hxx|pch|inc|inl|modulemap)$/.test(file))
|
|
356
|
+
nativeFiles[map(file)] = source
|
|
357
|
+
if (file.startsWith(`${target.path}/`) && isSwiftNativeTranslationUnit(file))
|
|
358
|
+
unit.files[map(file)] = source
|
|
359
|
+
}
|
|
360
|
+
unit.nativeFiles = nativeFiles
|
|
361
|
+
unit.nativeTargets = [
|
|
362
|
+
{
|
|
363
|
+
...native,
|
|
364
|
+
headers: native.headers.map(map),
|
|
365
|
+
publicHeaders: native.publicHeaders.map(map),
|
|
366
|
+
bridgingHeader: native.bridgingHeader ? map(native.bridgingHeader) : null,
|
|
367
|
+
prefixHeader: native.prefixHeader ? map(native.prefixHeader) : null,
|
|
368
|
+
fileFlags: Object.fromEntries(
|
|
369
|
+
Object.entries(native.fileFlags).map(([file, flags]) => [map(file), flags]),
|
|
370
|
+
),
|
|
371
|
+
sourceDirectories: Object.fromEntries(
|
|
372
|
+
Object.entries(native.sourceDirectories).map(([file, directory]) => [
|
|
373
|
+
map(file),
|
|
374
|
+
directory,
|
|
375
|
+
]),
|
|
376
|
+
),
|
|
377
|
+
},
|
|
378
|
+
]
|
|
379
|
+
}
|
|
380
|
+
} finally {
|
|
381
|
+
disposeSwiftProject(projectRoot)
|
|
382
|
+
}
|
|
383
|
+
}
|
|
279
384
|
const allFiles: Record<string, string> = Object.assign(
|
|
280
385
|
{},
|
|
281
386
|
...units.map((unit) => unit.files),
|
|
@@ -311,6 +416,19 @@ export async function collectExpoSwiftSources(
|
|
|
311
416
|
...dependency.flatMap((item) => item.frameworks),
|
|
312
417
|
]),
|
|
313
418
|
]
|
|
419
|
+
unit.nativeTargets = [
|
|
420
|
+
...new Map(
|
|
421
|
+
[
|
|
422
|
+
...(unit.nativeTargets ?? []),
|
|
423
|
+
...dependency.flatMap((item) => item.nativeTargets ?? []),
|
|
424
|
+
].map((target) => [target.name, target] satisfies [string, typeof target]),
|
|
425
|
+
).values(),
|
|
426
|
+
]
|
|
427
|
+
unit.nativeFiles = Object.assign(
|
|
428
|
+
{},
|
|
429
|
+
unit.nativeFiles,
|
|
430
|
+
...dependency.map((item) => item.nativeFiles),
|
|
431
|
+
)
|
|
314
432
|
for (const [name, source] of Object.entries(allFiles)) {
|
|
315
433
|
if (name.startsWith(`Sources/${namespace}/`)) unit.files[name] = source
|
|
316
434
|
}
|
|
@@ -379,6 +497,14 @@ function expoSwiftPreparedKey(base: string, units: ExpoSwiftSourceUnit[]): strin
|
|
|
379
497
|
for (const unit of units) {
|
|
380
498
|
hash.update('\0')
|
|
381
499
|
hash.update(unit.moduleId)
|
|
500
|
+
hash.update('\0')
|
|
501
|
+
hash.update(JSON.stringify(unit.nativeTargets ?? []))
|
|
502
|
+
for (const name of Object.keys(unit.nativeFiles ?? {}).sort()) {
|
|
503
|
+
hash.update('\0')
|
|
504
|
+
hash.update(name)
|
|
505
|
+
hash.update('\0')
|
|
506
|
+
hash.update(unit.nativeFiles?.[name] ?? '')
|
|
507
|
+
}
|
|
382
508
|
for (const name of Object.keys(unit.files).sort()) {
|
|
383
509
|
hash.update('\0')
|
|
384
510
|
hash.update(name)
|
|
@@ -440,26 +566,23 @@ export async function compileExpoSwiftModules(
|
|
|
440
566
|
) => Promise<void>,
|
|
441
567
|
options: ExpoSwiftPreparationOptions = {},
|
|
442
568
|
): Promise<ExpoSwiftCompilationResult | null> {
|
|
443
|
-
//
|
|
444
|
-
|
|
445
|
-
const timeoutMs = options.timeoutMs ?? 30 * 60_000
|
|
446
|
-
if (!Number.isSafeInteger(timeoutMs) || timeoutMs <= 0 || timeoutMs > 2_147_483_647)
|
|
447
|
-
throw new Error('Expo Swift preparation timeout must be between 1 and 2147483647ms')
|
|
448
|
-
const controller = new AbortController()
|
|
449
|
-
const signal = options.signal
|
|
450
|
-
? AbortSignal.any([options.signal, controller.signal])
|
|
451
|
-
: controller.signal
|
|
569
|
+
// admission and compiler owners decide build liveness; coarse stage logs do not.
|
|
570
|
+
const signal = options.signal ?? new AbortController().signal
|
|
452
571
|
const started = performance.now()
|
|
453
572
|
const report = (message: string) =>
|
|
454
573
|
console.error(`[expo-swift ${Math.round(performance.now() - started)}ms] ${message}`)
|
|
455
|
-
const timer = setTimeout(
|
|
456
|
-
() => controller.abort(new Error(`Expo Swift preparation exceeded ${timeoutMs}ms`)),
|
|
457
|
-
timeoutMs,
|
|
458
|
-
)
|
|
459
574
|
try {
|
|
460
575
|
signal.throwIfAborted()
|
|
461
|
-
report(`discovering app-owned modules
|
|
462
|
-
const expoUnits = await collectExpoSwiftSources(
|
|
576
|
+
report(`discovering app-owned modules: ${root}`)
|
|
577
|
+
const expoUnits = await collectExpoSwiftSources(
|
|
578
|
+
root,
|
|
579
|
+
signal,
|
|
580
|
+
options.installedWorkspace,
|
|
581
|
+
Boolean(
|
|
582
|
+
process.env.TM_SESSION &&
|
|
583
|
+
fs.existsSync(path.join(sourceSwiftCheckout(), 'toolchain.json')),
|
|
584
|
+
),
|
|
585
|
+
)
|
|
463
586
|
signal.throwIfAborted()
|
|
464
587
|
const bridge = collectBridgeModuleSources(fs.realpathSync(root), signal)
|
|
465
588
|
for (const unit of bridge?.units ?? []) {
|
|
@@ -605,6 +728,8 @@ export async function compileExpoSwiftModules(
|
|
|
605
728
|
),
|
|
606
729
|
)
|
|
607
730
|
projectFor(packagePath).libraries = libraries.get(unit)
|
|
731
|
+
projectFor(packagePath).nativeTargets = unit.nativeTargets
|
|
732
|
+
projectFor(packagePath).nativeFiles = unit.nativeFiles
|
|
608
733
|
const stamp = sourceContentStamp(packagePath, module.root)
|
|
609
734
|
const failed = readFailedCompilation(packagePath)
|
|
610
735
|
if (failed?.stamp === stamp) {
|
|
@@ -660,6 +785,19 @@ export async function compileExpoSwiftModules(
|
|
|
660
785
|
}
|
|
661
786
|
projectFor(packagePath).libraries =
|
|
662
787
|
linkedLibraries.size > 0 ? Object.fromEntries(linkedLibraries) : undefined
|
|
788
|
+
projectFor(packagePath).nativeTargets = [
|
|
789
|
+
...new Map(
|
|
790
|
+
linked.flatMap((unit) =>
|
|
791
|
+
(unit.nativeTargets ?? []).map(
|
|
792
|
+
(target) => [target.name, target] satisfies [string, typeof target],
|
|
793
|
+
),
|
|
794
|
+
),
|
|
795
|
+
).values(),
|
|
796
|
+
]
|
|
797
|
+
projectFor(packagePath).nativeFiles = Object.assign(
|
|
798
|
+
{},
|
|
799
|
+
...linked.map((unit) => unit.nativeFiles),
|
|
800
|
+
)
|
|
663
801
|
signal.throwIfAborted()
|
|
664
802
|
const stamp = sourceContentStamp(packagePath, module.root)
|
|
665
803
|
const refused = readFailedCompilation(packagePath)
|
|
@@ -824,8 +962,6 @@ export async function compileExpoSwiftModules(
|
|
|
824
962
|
const failure: unknown = signal.aborted ? signal.reason : error
|
|
825
963
|
report(`failed: ${failure instanceof Error ? failure.message : String(failure)}`)
|
|
826
964
|
throw failure
|
|
827
|
-
} finally {
|
|
828
|
-
clearTimeout(timer)
|
|
829
965
|
}
|
|
830
966
|
}
|
|
831
967
|
|
|
@@ -888,7 +1024,6 @@ export async function handleExpoSwiftRequest(
|
|
|
888
1024
|
const controller = new AbortController()
|
|
889
1025
|
const promise = compileExpoSwiftModules(key, `http://${host}`, undefined, {
|
|
890
1026
|
signal: controller.signal,
|
|
891
|
-
timeoutMs: EXPO_SWIFT_REQUEST_TIMEOUT_MS,
|
|
892
1027
|
}).finally(() => {
|
|
893
1028
|
if (compiling.get(flightKey)?.controller === controller) compiling.delete(flightKey)
|
|
894
1029
|
})
|
package/src/expo-swift-ready.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { nodeHttpFetch } from './node-http-fetch'
|
|
2
|
+
|
|
1
3
|
// an app with local Expo Swift modules only renders once the bridge compiles
|
|
2
4
|
// them, and a cold /__peach/expo-swift artifact compiles for minutes (a linked
|
|
3
5
|
// build plus per-namespace isolation builds in sequence) while a flow waits
|
|
@@ -5,11 +7,9 @@
|
|
|
5
7
|
// will fetch and returns only once it answers; the bridge shares one compile
|
|
6
8
|
// per root, so the engine's own fetch then finds it done. a warm artifact
|
|
7
9
|
// answers in ~1s and an app without local modules answers null fast.
|
|
8
|
-
export const EXPO_SWIFT_READY_TIMEOUT_MS = 30 * 60_000
|
|
9
10
|
const EXPO_SWIFT_READY_PROGRESS_MS = 30_000
|
|
10
11
|
|
|
11
12
|
export type ExpoSwiftReadyOptions = {
|
|
12
|
-
timeoutMs?: number
|
|
13
13
|
progressMs?: number
|
|
14
14
|
signal?: AbortSignal
|
|
15
15
|
onProgress?: (elapsedMs: number) => void
|
|
@@ -19,7 +19,6 @@ export async function awaitExpoSwiftReady(
|
|
|
19
19
|
endpointUrl: string,
|
|
20
20
|
options: ExpoSwiftReadyOptions = {},
|
|
21
21
|
): Promise<void> {
|
|
22
|
-
const timeoutMs = options.timeoutMs ?? EXPO_SWIFT_READY_TIMEOUT_MS
|
|
23
22
|
const progressMs = options.progressMs ?? EXPO_SWIFT_READY_PROGRESS_MS
|
|
24
23
|
const start = Date.now()
|
|
25
24
|
const report =
|
|
@@ -32,29 +31,13 @@ export async function awaitExpoSwiftReady(
|
|
|
32
31
|
const progress = setInterval(() => report(Date.now() - start), progressMs)
|
|
33
32
|
try {
|
|
34
33
|
options.signal?.throwIfAborted()
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
// over. hold the socket for the caller's bound instead.
|
|
43
|
-
const init: RequestInit = { signal }
|
|
44
|
-
Object.assign(init, { timeout: false })
|
|
45
|
-
res = await fetch(endpointUrl, init)
|
|
46
|
-
} catch (error) {
|
|
47
|
-
if (options.signal?.aborted) throw error
|
|
48
|
-
if (timeout.aborted) {
|
|
49
|
-
throw new Error(
|
|
50
|
-
`timed out after ${timeoutMs}ms waiting for ${endpointUrl} — the expo swift compile did not answer within the bound`,
|
|
51
|
-
)
|
|
52
|
-
}
|
|
53
|
-
// a dropped socket still rejoins the same compile when the bridge has
|
|
54
|
-
// another client. retry only that case.
|
|
55
|
-
if (error instanceof Error && error.name === 'TimeoutError') continue
|
|
56
|
-
throw new Error(`could not reach ${endpointUrl}`, { cause: error })
|
|
57
|
-
}
|
|
34
|
+
let res: Response
|
|
35
|
+
try {
|
|
36
|
+
// the build owner decides liveness; a caller can still cancel its request.
|
|
37
|
+
res = await nodeHttpFetch(endpointUrl, { signal: options.signal })
|
|
38
|
+
} catch (error) {
|
|
39
|
+
if (options.signal?.aborted) throw error
|
|
40
|
+
throw new Error(`could not reach ${endpointUrl}`, { cause: error })
|
|
58
41
|
}
|
|
59
42
|
if (!res.ok) {
|
|
60
43
|
const body = (await res.text()).trim().slice(0, 500)
|
|
@@ -71,8 +54,11 @@ export async function awaitExpoSwiftReady(
|
|
|
71
54
|
|
|
72
55
|
// the expoSwift endpoint a built shell url carries, or null for an app with no
|
|
73
56
|
// project root
|
|
74
|
-
export async function awaitStampedExpoSwiftReady(
|
|
57
|
+
export async function awaitStampedExpoSwiftReady(
|
|
58
|
+
shellUrl: string,
|
|
59
|
+
signal?: AbortSignal,
|
|
60
|
+
): Promise<void> {
|
|
75
61
|
const endpoint = new URL(shellUrl).searchParams.get('expoSwift')
|
|
76
62
|
if (!endpoint) return
|
|
77
|
-
await awaitExpoSwiftReady(endpoint)
|
|
63
|
+
await awaitExpoSwiftReady(endpoint, { signal })
|
|
78
64
|
}
|
package/src/expoSwiftContract.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { insertBundleGlobalFooter, readBundleGlobalFooter } from './bundleGlobalFooter'
|
|
2
2
|
import { isRecord } from './is-record'
|
|
3
|
+
import type { SwiftNativeTarget } from './swiftContract'
|
|
3
4
|
|
|
4
5
|
export interface ExpoSwiftPreparationOptions {
|
|
5
6
|
signal?: AbortSignal
|
|
6
|
-
|
|
7
|
+
installedWorkspace?: string
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
export interface ExpoSwiftSourceUnit {
|
|
@@ -14,6 +15,8 @@ export interface ExpoSwiftSourceUnit {
|
|
|
14
15
|
bridgeModules: string[]
|
|
15
16
|
files: Record<string, string>
|
|
16
17
|
frameworks: string[]
|
|
18
|
+
nativeTargets?: SwiftNativeTarget[]
|
|
19
|
+
nativeFiles?: Record<string, string>
|
|
17
20
|
// the app target's Swift language mode; Expo packages compile in the default
|
|
18
21
|
swiftLanguageMode?: number
|
|
19
22
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"release": "swift-6.4.0-RELEASE-custom-8be2e4a7a393b003",
|
|
3
3
|
"languages": {
|
|
4
4
|
"c": {
|
|
5
|
-
"TARGET_IPHONE_SIMULATOR": "
|
|
5
|
+
"TARGET_IPHONE_SIMULATOR": "1",
|
|
6
6
|
"TARGET_OS_DRIVERKIT": "0",
|
|
7
|
-
"TARGET_OS_EMBEDDED": "
|
|
7
|
+
"TARGET_OS_EMBEDDED": "0",
|
|
8
8
|
"TARGET_OS_FIRMWARE": "0",
|
|
9
9
|
"TARGET_OS_IOS": "1",
|
|
10
10
|
"TARGET_OS_IPHONE": "1",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"TARGET_OS_MACCATALYST": "0",
|
|
14
14
|
"TARGET_OS_NANO": "0",
|
|
15
15
|
"TARGET_OS_OSX": "0",
|
|
16
|
-
"TARGET_OS_SIMULATOR": "
|
|
16
|
+
"TARGET_OS_SIMULATOR": "1",
|
|
17
17
|
"TARGET_OS_TV": "0",
|
|
18
18
|
"TARGET_OS_UEFI": "0",
|
|
19
19
|
"TARGET_OS_UIKITFORMAC": "0",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"__AARCH64_CMODEL_SMALL__": "1",
|
|
28
28
|
"__AARCH64_SIMD__": "1",
|
|
29
29
|
"__APPLE_CC__": "6000",
|
|
30
|
+
"__APPLE_EMBEDDED_SIMULATOR__": "1",
|
|
30
31
|
"__APPLE__": "1",
|
|
31
32
|
"__ARM64_ARCH_8__": "1",
|
|
32
33
|
"__ARM_64BIT_STATE": "1",
|
|
@@ -37,15 +38,28 @@
|
|
|
37
38
|
"__ARM_ARCH_ISA_A64": "1",
|
|
38
39
|
"__ARM_ARCH_PROFILE": "'A'",
|
|
39
40
|
"__ARM_FEATURE_AES": "1",
|
|
41
|
+
"__ARM_FEATURE_ATOMICS": "1",
|
|
40
42
|
"__ARM_FEATURE_CLZ": "1",
|
|
43
|
+
"__ARM_FEATURE_COMPLEX": "1",
|
|
44
|
+
"__ARM_FEATURE_CRC32": "1",
|
|
41
45
|
"__ARM_FEATURE_CRYPTO": "1",
|
|
42
46
|
"__ARM_FEATURE_DIRECTED_ROUNDING": "1",
|
|
43
47
|
"__ARM_FEATURE_DIV": "1",
|
|
48
|
+
"__ARM_FEATURE_DOTPROD": "1",
|
|
44
49
|
"__ARM_FEATURE_FMA": "1",
|
|
50
|
+
"__ARM_FEATURE_FP16_FML": "1",
|
|
51
|
+
"__ARM_FEATURE_FP16_SCALAR_ARITHMETIC": "1",
|
|
52
|
+
"__ARM_FEATURE_FP16_VECTOR_ARITHMETIC": "1",
|
|
45
53
|
"__ARM_FEATURE_IDIV": "1",
|
|
54
|
+
"__ARM_FEATURE_JCVT": "1",
|
|
46
55
|
"__ARM_FEATURE_LDREX": "0xF",
|
|
47
56
|
"__ARM_FEATURE_NUMERIC_MAXMIN": "1",
|
|
57
|
+
"__ARM_FEATURE_PAUTH": "1",
|
|
58
|
+
"__ARM_FEATURE_QRDMX": "1",
|
|
59
|
+
"__ARM_FEATURE_RCPC": "1",
|
|
48
60
|
"__ARM_FEATURE_SHA2": "1",
|
|
61
|
+
"__ARM_FEATURE_SHA3": "1",
|
|
62
|
+
"__ARM_FEATURE_SHA512": "1",
|
|
49
63
|
"__ARM_FEATURE_UNALIGNED": "1",
|
|
50
64
|
"__ARM_FP": "0xE",
|
|
51
65
|
"__ARM_FP16_ARGS": "1",
|
|
@@ -459,9 +473,9 @@
|
|
|
459
473
|
"__weak": "__attribute__((objc_gc(weak)))"
|
|
460
474
|
},
|
|
461
475
|
"c++": {
|
|
462
|
-
"TARGET_IPHONE_SIMULATOR": "
|
|
476
|
+
"TARGET_IPHONE_SIMULATOR": "1",
|
|
463
477
|
"TARGET_OS_DRIVERKIT": "0",
|
|
464
|
-
"TARGET_OS_EMBEDDED": "
|
|
478
|
+
"TARGET_OS_EMBEDDED": "0",
|
|
465
479
|
"TARGET_OS_FIRMWARE": "0",
|
|
466
480
|
"TARGET_OS_IOS": "1",
|
|
467
481
|
"TARGET_OS_IPHONE": "1",
|
|
@@ -470,7 +484,7 @@
|
|
|
470
484
|
"TARGET_OS_MACCATALYST": "0",
|
|
471
485
|
"TARGET_OS_NANO": "0",
|
|
472
486
|
"TARGET_OS_OSX": "0",
|
|
473
|
-
"TARGET_OS_SIMULATOR": "
|
|
487
|
+
"TARGET_OS_SIMULATOR": "1",
|
|
474
488
|
"TARGET_OS_TV": "0",
|
|
475
489
|
"TARGET_OS_UEFI": "0",
|
|
476
490
|
"TARGET_OS_UIKITFORMAC": "0",
|
|
@@ -484,6 +498,7 @@
|
|
|
484
498
|
"__AARCH64_CMODEL_SMALL__": "1",
|
|
485
499
|
"__AARCH64_SIMD__": "1",
|
|
486
500
|
"__APPLE_CC__": "6000",
|
|
501
|
+
"__APPLE_EMBEDDED_SIMULATOR__": "1",
|
|
487
502
|
"__APPLE__": "1",
|
|
488
503
|
"__ARM64_ARCH_8__": "1",
|
|
489
504
|
"__ARM_64BIT_STATE": "1",
|
|
@@ -494,15 +509,28 @@
|
|
|
494
509
|
"__ARM_ARCH_ISA_A64": "1",
|
|
495
510
|
"__ARM_ARCH_PROFILE": "'A'",
|
|
496
511
|
"__ARM_FEATURE_AES": "1",
|
|
512
|
+
"__ARM_FEATURE_ATOMICS": "1",
|
|
497
513
|
"__ARM_FEATURE_CLZ": "1",
|
|
514
|
+
"__ARM_FEATURE_COMPLEX": "1",
|
|
515
|
+
"__ARM_FEATURE_CRC32": "1",
|
|
498
516
|
"__ARM_FEATURE_CRYPTO": "1",
|
|
499
517
|
"__ARM_FEATURE_DIRECTED_ROUNDING": "1",
|
|
500
518
|
"__ARM_FEATURE_DIV": "1",
|
|
519
|
+
"__ARM_FEATURE_DOTPROD": "1",
|
|
501
520
|
"__ARM_FEATURE_FMA": "1",
|
|
521
|
+
"__ARM_FEATURE_FP16_FML": "1",
|
|
522
|
+
"__ARM_FEATURE_FP16_SCALAR_ARITHMETIC": "1",
|
|
523
|
+
"__ARM_FEATURE_FP16_VECTOR_ARITHMETIC": "1",
|
|
502
524
|
"__ARM_FEATURE_IDIV": "1",
|
|
525
|
+
"__ARM_FEATURE_JCVT": "1",
|
|
503
526
|
"__ARM_FEATURE_LDREX": "0xF",
|
|
504
527
|
"__ARM_FEATURE_NUMERIC_MAXMIN": "1",
|
|
528
|
+
"__ARM_FEATURE_PAUTH": "1",
|
|
529
|
+
"__ARM_FEATURE_QRDMX": "1",
|
|
530
|
+
"__ARM_FEATURE_RCPC": "1",
|
|
505
531
|
"__ARM_FEATURE_SHA2": "1",
|
|
532
|
+
"__ARM_FEATURE_SHA3": "1",
|
|
533
|
+
"__ARM_FEATURE_SHA512": "1",
|
|
506
534
|
"__ARM_FEATURE_UNALIGNED": "1",
|
|
507
535
|
"__ARM_FP": "0xE",
|
|
508
536
|
"__ARM_FP16_ARGS": "1",
|
|
@@ -989,9 +1017,9 @@
|
|
|
989
1017
|
"IB_DESIGNABLE": null,
|
|
990
1018
|
"OBJC_NEW_PROPERTIES": "1",
|
|
991
1019
|
"OBJC_ZEROCOST_EXCEPTIONS": "1",
|
|
992
|
-
"TARGET_IPHONE_SIMULATOR": "
|
|
1020
|
+
"TARGET_IPHONE_SIMULATOR": "1",
|
|
993
1021
|
"TARGET_OS_DRIVERKIT": "0",
|
|
994
|
-
"TARGET_OS_EMBEDDED": "
|
|
1022
|
+
"TARGET_OS_EMBEDDED": "0",
|
|
995
1023
|
"TARGET_OS_FIRMWARE": "0",
|
|
996
1024
|
"TARGET_OS_IOS": "1",
|
|
997
1025
|
"TARGET_OS_IPHONE": "1",
|
|
@@ -1000,7 +1028,7 @@
|
|
|
1000
1028
|
"TARGET_OS_MACCATALYST": "0",
|
|
1001
1029
|
"TARGET_OS_NANO": "0",
|
|
1002
1030
|
"TARGET_OS_OSX": "0",
|
|
1003
|
-
"TARGET_OS_SIMULATOR": "
|
|
1031
|
+
"TARGET_OS_SIMULATOR": "1",
|
|
1004
1032
|
"TARGET_OS_TV": "0",
|
|
1005
1033
|
"TARGET_OS_UEFI": "0",
|
|
1006
1034
|
"TARGET_OS_UIKITFORMAC": "0",
|
|
@@ -1014,6 +1042,7 @@
|
|
|
1014
1042
|
"__AARCH64_CMODEL_SMALL__": "1",
|
|
1015
1043
|
"__AARCH64_SIMD__": "1",
|
|
1016
1044
|
"__APPLE_CC__": "6000",
|
|
1045
|
+
"__APPLE_EMBEDDED_SIMULATOR__": "1",
|
|
1017
1046
|
"__APPLE__": "1",
|
|
1018
1047
|
"__ARM64_ARCH_8__": "1",
|
|
1019
1048
|
"__ARM_64BIT_STATE": "1",
|
|
@@ -1024,15 +1053,28 @@
|
|
|
1024
1053
|
"__ARM_ARCH_ISA_A64": "1",
|
|
1025
1054
|
"__ARM_ARCH_PROFILE": "'A'",
|
|
1026
1055
|
"__ARM_FEATURE_AES": "1",
|
|
1056
|
+
"__ARM_FEATURE_ATOMICS": "1",
|
|
1027
1057
|
"__ARM_FEATURE_CLZ": "1",
|
|
1058
|
+
"__ARM_FEATURE_COMPLEX": "1",
|
|
1059
|
+
"__ARM_FEATURE_CRC32": "1",
|
|
1028
1060
|
"__ARM_FEATURE_CRYPTO": "1",
|
|
1029
1061
|
"__ARM_FEATURE_DIRECTED_ROUNDING": "1",
|
|
1030
1062
|
"__ARM_FEATURE_DIV": "1",
|
|
1063
|
+
"__ARM_FEATURE_DOTPROD": "1",
|
|
1031
1064
|
"__ARM_FEATURE_FMA": "1",
|
|
1065
|
+
"__ARM_FEATURE_FP16_FML": "1",
|
|
1066
|
+
"__ARM_FEATURE_FP16_SCALAR_ARITHMETIC": "1",
|
|
1067
|
+
"__ARM_FEATURE_FP16_VECTOR_ARITHMETIC": "1",
|
|
1032
1068
|
"__ARM_FEATURE_IDIV": "1",
|
|
1069
|
+
"__ARM_FEATURE_JCVT": "1",
|
|
1033
1070
|
"__ARM_FEATURE_LDREX": "0xF",
|
|
1034
1071
|
"__ARM_FEATURE_NUMERIC_MAXMIN": "1",
|
|
1072
|
+
"__ARM_FEATURE_PAUTH": "1",
|
|
1073
|
+
"__ARM_FEATURE_QRDMX": "1",
|
|
1074
|
+
"__ARM_FEATURE_RCPC": "1",
|
|
1035
1075
|
"__ARM_FEATURE_SHA2": "1",
|
|
1076
|
+
"__ARM_FEATURE_SHA3": "1",
|
|
1077
|
+
"__ARM_FEATURE_SHA512": "1",
|
|
1036
1078
|
"__ARM_FEATURE_UNALIGNED": "1",
|
|
1037
1079
|
"__ARM_FP": "0xE",
|
|
1038
1080
|
"__ARM_FP16_ARGS": "1",
|
|
@@ -1458,9 +1500,9 @@
|
|
|
1458
1500
|
"IB_DESIGNABLE": null,
|
|
1459
1501
|
"OBJC_NEW_PROPERTIES": "1",
|
|
1460
1502
|
"OBJC_ZEROCOST_EXCEPTIONS": "1",
|
|
1461
|
-
"TARGET_IPHONE_SIMULATOR": "
|
|
1503
|
+
"TARGET_IPHONE_SIMULATOR": "1",
|
|
1462
1504
|
"TARGET_OS_DRIVERKIT": "0",
|
|
1463
|
-
"TARGET_OS_EMBEDDED": "
|
|
1505
|
+
"TARGET_OS_EMBEDDED": "0",
|
|
1464
1506
|
"TARGET_OS_FIRMWARE": "0",
|
|
1465
1507
|
"TARGET_OS_IOS": "1",
|
|
1466
1508
|
"TARGET_OS_IPHONE": "1",
|
|
@@ -1469,7 +1511,7 @@
|
|
|
1469
1511
|
"TARGET_OS_MACCATALYST": "0",
|
|
1470
1512
|
"TARGET_OS_NANO": "0",
|
|
1471
1513
|
"TARGET_OS_OSX": "0",
|
|
1472
|
-
"TARGET_OS_SIMULATOR": "
|
|
1514
|
+
"TARGET_OS_SIMULATOR": "1",
|
|
1473
1515
|
"TARGET_OS_TV": "0",
|
|
1474
1516
|
"TARGET_OS_UEFI": "0",
|
|
1475
1517
|
"TARGET_OS_UIKITFORMAC": "0",
|
|
@@ -1483,6 +1525,7 @@
|
|
|
1483
1525
|
"__AARCH64_CMODEL_SMALL__": "1",
|
|
1484
1526
|
"__AARCH64_SIMD__": "1",
|
|
1485
1527
|
"__APPLE_CC__": "6000",
|
|
1528
|
+
"__APPLE_EMBEDDED_SIMULATOR__": "1",
|
|
1486
1529
|
"__APPLE__": "1",
|
|
1487
1530
|
"__ARM64_ARCH_8__": "1",
|
|
1488
1531
|
"__ARM_64BIT_STATE": "1",
|
|
@@ -1493,15 +1536,28 @@
|
|
|
1493
1536
|
"__ARM_ARCH_ISA_A64": "1",
|
|
1494
1537
|
"__ARM_ARCH_PROFILE": "'A'",
|
|
1495
1538
|
"__ARM_FEATURE_AES": "1",
|
|
1539
|
+
"__ARM_FEATURE_ATOMICS": "1",
|
|
1496
1540
|
"__ARM_FEATURE_CLZ": "1",
|
|
1541
|
+
"__ARM_FEATURE_COMPLEX": "1",
|
|
1542
|
+
"__ARM_FEATURE_CRC32": "1",
|
|
1497
1543
|
"__ARM_FEATURE_CRYPTO": "1",
|
|
1498
1544
|
"__ARM_FEATURE_DIRECTED_ROUNDING": "1",
|
|
1499
1545
|
"__ARM_FEATURE_DIV": "1",
|
|
1546
|
+
"__ARM_FEATURE_DOTPROD": "1",
|
|
1500
1547
|
"__ARM_FEATURE_FMA": "1",
|
|
1548
|
+
"__ARM_FEATURE_FP16_FML": "1",
|
|
1549
|
+
"__ARM_FEATURE_FP16_SCALAR_ARITHMETIC": "1",
|
|
1550
|
+
"__ARM_FEATURE_FP16_VECTOR_ARITHMETIC": "1",
|
|
1501
1551
|
"__ARM_FEATURE_IDIV": "1",
|
|
1552
|
+
"__ARM_FEATURE_JCVT": "1",
|
|
1502
1553
|
"__ARM_FEATURE_LDREX": "0xF",
|
|
1503
1554
|
"__ARM_FEATURE_NUMERIC_MAXMIN": "1",
|
|
1555
|
+
"__ARM_FEATURE_PAUTH": "1",
|
|
1556
|
+
"__ARM_FEATURE_QRDMX": "1",
|
|
1557
|
+
"__ARM_FEATURE_RCPC": "1",
|
|
1504
1558
|
"__ARM_FEATURE_SHA2": "1",
|
|
1559
|
+
"__ARM_FEATURE_SHA3": "1",
|
|
1560
|
+
"__ARM_FEATURE_SHA512": "1",
|
|
1505
1561
|
"__ARM_FEATURE_UNALIGNED": "1",
|
|
1506
1562
|
"__ARM_FP": "0xE",
|
|
1507
1563
|
"__ARM_FP16_ARGS": "1",
|
package/src/host/bridge-host.ts
CHANGED
|
@@ -42,6 +42,7 @@ import {
|
|
|
42
42
|
type DevBridgeLockfile,
|
|
43
43
|
type SharedConfig,
|
|
44
44
|
} from '../home-paths.ts'
|
|
45
|
+
import { handleNitroRequest, NITRO_ROUTE } from '../nitro-bundle.ts'
|
|
45
46
|
import { isProcessRunning } from '../process-liveness.ts'
|
|
46
47
|
import { rnxPublicBrand } from '../public-brand.ts'
|
|
47
48
|
import {
|
|
@@ -1518,6 +1519,10 @@ export class SootSimBridgeHost {
|
|
|
1518
1519
|
return
|
|
1519
1520
|
}
|
|
1520
1521
|
|
|
1522
|
+
if (req.url?.split('?')[0] === NITRO_ROUTE) {
|
|
1523
|
+
void handleNitroRequest(req, res)
|
|
1524
|
+
return
|
|
1525
|
+
}
|
|
1521
1526
|
if (
|
|
1522
1527
|
req.url?.startsWith('/__peach/expo-swift') ||
|
|
1523
1528
|
req.url?.startsWith('/__peach/swift')
|