peachsim 0.1.1692 → 0.1.1716
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/LICENSE +1 -1
- package/README.md +59 -3
- package/cli/app-bundle-resources.ts +3 -1
- package/cli/app-catalog.ts +10 -0
- package/cli/app-fonts.ts +1 -1
- package/cli/app-stubs.ts +19 -9
- package/cli/bridge-diagnostics.ts +2 -1
- package/cli/bridge-flow-runner.ts +61 -39
- package/cli/cloud-client.ts +6 -3
- package/cli/commands/agent-wrapper.ts +21 -10
- package/cli/commands/control.ts +149 -46
- package/cli/commands/coverage-swift.ts +19 -1
- package/cli/commands/coverage.ts +1 -1
- package/cli/commands/detect.ts +85 -25
- package/cli/commands/doctor.ts +159 -20
- package/cli/commands/flow.ts +4 -1
- package/cli/commands/inspect/core.ts +176 -17
- package/cli/commands/inspect/settling.ts +17 -5
- package/cli/commands/inspect/wait-ready.ts +7 -5
- package/cli/commands/inspect.ts +8 -2
- package/cli/commands/maestro-compare.ts +25 -99
- package/cli/commands/record.ts +263 -32
- package/cli/commands/screenshot.ts +2 -13
- package/cli/commands/test.ts +49 -101
- package/cli/current-sim.ts +4 -4
- package/cli/help-core.ts +3 -4
- package/cli/hints.ts +1 -6
- package/cli/maestro-compare.ts +172 -4
- package/cli/main.ts +8 -1
- package/cli/metro-bundle-assets.ts +77 -0
- package/cli/outbound-endpoints.ts +8 -12
- package/cli/run-registry.ts +0 -8
- package/cli/scene-video.ts +5 -3
- package/cli/ws-bridge.ts +56 -14
- package/detox/index.ts +76 -3
- package/detox/launch-permissions.ts +325 -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 +11 -10
- package/dist-lib/beta.cjs +2 -2
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +6 -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 +26769 -24228
- 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 +3 -2
- package/dist-lib/cloud.mjs +2 -1
- package/dist-lib/config.cjs +2 -2
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +256 -14
- package/dist-lib/dev-bundle-resolution.cjs +209 -51
- package/dist-lib/expo-swift-bundle.cjs +10795 -17575
- 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 +36893 -31765
- package/dist-lib/host/fetch-proxy-handler.cjs +796 -114
- 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 +3 -2
- package/dist-lib/host/websocket-proxy.cjs +312 -46
- package/dist-lib/index.cjs +2244 -642
- 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 +5 -2
- package/dist-lib/menu.mjs +3 -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 +2088 -612
- package/dist-lib/native-app-identity-project.cjs +863 -232
- package/dist-lib/native-app-identity-project.mjs +871 -234
- package/dist-lib/native-app-identity.cjs +15 -2
- package/dist-lib/native-app-identity.mjs +12 -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 +31 -100
- package/dist-lib/public-origins-lib.json +449 -453
- package/dist-lib/react-native-host-modules.cjs +98 -4
- package/dist-lib/react-native-host-modules.mjs +96 -3
- package/dist-lib/reap-browser.cjs +2 -2
- package/dist-lib/scripts/dev-server-scanner.cjs +225 -75
- package/dist-lib/sdk.cjs +146 -19
- package/dist-lib/sdk.mjs +139 -18
- package/dist-lib/skills.cjs +53577 -48467
- package/dist-lib/swift-compile.cjs +6111 -16733
- package/dist-lib/swift-compile.mjs +6052 -16681
- package/dist-lib/swift-package.cjs +104 -22
- package/dist-lib/swift-package.mjs +99 -21
- package/dist-lib/swift-submit.cjs +15 -5
- package/dist-lib/swift-submit.mjs +14 -4
- package/dist-lib/swift-toolchain.cjs +42 -13
- package/dist-lib/swift.cjs +2 -2
- package/dist-lib/vite-swift.cjs +13416 -21189
- package/dist-lib/vite.cjs +790 -157
- package/dist-lib/worklet-executable.cjs +2 -2
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-gesture-handler.d.ts +2 -0
- package/dist-types/packages/peach-compat/src/stubs/screen-transition-math.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/capture/lockstep-clockContract.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/fiber-debug-metadata.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/engine/fontDataContract.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/lottie-types.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +6 -3
- package/dist-types/packages/peach-engine/src/engine/riveContract.d.ts +5 -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/guest-module-overrides.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/ios/chrome-metrics.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/permissions/system-permission-types.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/react-native/host-services.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/react-native/platform-colors.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +6 -2
- package/dist-types/packages/peach-engine/src/remote-stream/scene-recording.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +16 -0
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +18 -2
- package/dist-types/packages/peach-engine/src/render-worker/live-frame-mirror.d.ts +11 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +10 -1
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +11 -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/shell-protocol.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-tree-wire.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/render-worker/tree-sync-port.d.ts +5 -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-kind.d.ts +5 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +9 -4
- package/dist-types/packages/peach-engine/src/render-worker/workletThreadIdentityContract.d.ts +4 -0
- package/dist-types/packages/peach-globals/src/cameraBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/guestExecutionContract.d.ts +30 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +6 -4
- package/dist-types/packages/peach-globals/src/nativeBuildOptionsContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/permissionsBridgeContract.d.ts +11 -0
- package/dist-types/packages/peach-globals/src/recordingBridgeContract.d.ts +22 -1
- package/dist-types/packages/peach-globals/src/replayBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/sceneStreamBridgeContract.d.ts +10 -0
- package/dist-types/packages/peach-globals/src/shellHostBridgeContract.d.ts +9 -0
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +3 -0
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
- package/dist-types/packages/peach-kit/src/materials/types.d.ts +1 -0
- package/package.json +3 -1
- package/runtime-companion.json +1 -1
- package/scripts/dev-server-scanner.ts +61 -70
- 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/CoreBluetooth.framework/Headers/CBATTRequest.h +69 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBAdvertisementData.h +94 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBAttribute.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCentral.h +41 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCentralManager.h +394 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCentralManagerConstants.h +224 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCharacteristic.h +187 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBDefines.h +16 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBDescriptor.h +78 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBError.h +75 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBL2CAPChannel.h +50 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBManager.h +88 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeer.h +28 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeripheral.h +530 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeripheralManager.h +489 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeripheralManagerConstants.h +63 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBService.h +100 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h +144 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CoreBluetooth.apinotes +7 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CoreBluetooth.h +32 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Modules/module.modulemap +5 -0
- 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/CFCGTypes.h +131 -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 +13 -223
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h +359 -2
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h +328 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +3 -66
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/CoreNFC.apinotes +258 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/CoreNFC.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCError.h +103 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCFeliCaTag.h +267 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCISO15693ReaderSession.h +59 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCISO15693Tag.h +739 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCISO7816Tag.h +159 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCMiFareTag.h +94 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFMessage.h +60 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFPayload.h +121 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFReaderSession.h +169 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFTag.h +93 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCPaymentTagReaderSession.h +58 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCReaderSession.h +156 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCTag.h +127 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCTagReaderSession.h +201 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCVASReaderSession.h +237 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NSUserActivity+CoreNFC.h +35 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Modules/module.modulemap +21 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCall.h +53 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCallCenter.h +45 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCarrier.h +87 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularData.h +39 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularPlanProperties.h +46 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularPlanProvisioning.h +33 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularPlanProvisioningRequest.h +36 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularPlanStatus.h +57 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTQuickSwitch.h +53 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTSubscriber.h +107 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTSubscriberInfo.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTTelephonyNetworkInfo.h +161 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CoreTelephonyDefines.h +39 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTDefines.h +92 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontDescriptor.h +634 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontTraits.h +118 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CoreText.h +1 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +2497 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +2900 -370
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKAccessPoint.h +110 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKAchievement.h +64 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKAchievementDescription.h +88 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKAchievementViewController.h +30 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKBasePlayer.h +15 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKChallenge.h +199 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKChallengeDefinition.h +71 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKChallengeEventHandler.h +43 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKChallengesViewController.h +33 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKCloudPlayer.h +19 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKDefines.h +17 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKDialogController.h +35 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKError.h +52 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKEventListener.h +36 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKFriendRequestComposeViewController.h +60 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameActivity.h +201 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameActivityDefinition.h +98 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameActivityListener.h +28 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameActivityPlayStyle.h +17 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameActivityState.h +22 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameCenterViewController.h +102 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameSession.h +87 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameSessionError.h +26 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameSessionEventListener.h +25 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameSessionSharingViewController.h +33 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKLeaderboard.h +205 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKLeaderboardEntry.h +23 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKLeaderboardScore.h +25 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKLeaderboardSet.h +64 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKLeaderboardViewController.h +34 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKLocalPlayer.h +321 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKMatch.h +94 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKMatchmaker.h +229 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKMatchmakerViewController.h +100 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKNotificationBanner.h +20 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKPeerPickerController.h +93 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKPlayer.h +82 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKPublicConstants.h +57 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKPublicProtocols.h +71 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKReleaseState.h +16 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKSavedGame.h +41 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKSavedGameListener.h +22 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKScore.h +73 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKSession.h +87 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKSessionError.h +30 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKTurnBasedMatch.h +314 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKTurnBasedMatchmakerViewController.h +69 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKVoiceChat.h +48 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKVoiceChatService.h +145 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GameKit.apinotes +307 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GameKit.h +79 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummary.h +122 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummaryQuery.h +48 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAnchoredObjectQuery.h +93 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAppleSleepingBreathingDisturbancesClassification.h +39 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAppleWalkingSteadinessClassification.h +49 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAttachment.h +74 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAttachmentStore.h +95 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSample.h +66 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSensitivityPoint.h +82 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSensitivityPointClampingRange.h +54 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSensitivityTest.h +101 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCDADocumentSample.h +131 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCategorySample.h +92 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCategoryValues.h +279 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCharacteristicObjects.h +79 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCharacteristicValues.h +87 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKClinicalCoding.h +55 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKClinicalRecord.h +53 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKClinicalType.h +68 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKContactsLensSpecification.h +59 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKContactsPrescription.h +74 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCorrelation.h +85 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCorrelationQuery.h +57 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCumulativeQuantitySample.h +36 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCumulativeQuantitySeriesSample.h +23 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKDefines.h +114 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKDeletedObject.h +40 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKDevice.h +164 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKDiscreteQuantitySample.h +67 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKDocumentQuery.h +83 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKDocumentSample.h +29 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKElectrocardiogram.h +109 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKElectrocardiogramQuery.h +68 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKFHIRRelease.h +35 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKFHIRResource.h +81 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKFHIRVersion.h +50 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKGAD7Assessment.h +73 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKGlassesLensSpecification.h +81 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKGlassesPrescription.h +66 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthConceptIdentifier.h +46 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h +470 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKHeartbeatSeriesBuilder.h +104 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKHeartbeatSeriesQuery.h +47 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKHeartbeatSeriesSample.h +26 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKLensSpecification.h +53 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKLiveWorkoutBuilder.h +131 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKLiveWorkoutDataSource.h +67 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKLiveWorkoutZoneUpdate.h +25 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKMedicationConcept.h +95 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKMedicationDoseEvent.h +113 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKMetadata.h +583 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKMetadataEnums.h +250 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObject.h +64 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObjectType.h +294 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObserverQuery.h +48 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKPHQ9Assessment.h +77 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantity.h +55 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantityAggregationStyle.h +30 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySample.h +83 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySeriesSampleBuilder.h +184 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySeriesSampleQuery.h +90 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuery.h +722 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQueryAnchor.h +33 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQueryDescriptor.h +46 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSample.h +48 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSampleQuery.h +95 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKScoredAssessment.h +31 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSeriesBuilder.h +40 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSeriesSample.h +32 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSource.h +45 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSourceQuery.h +42 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSourceRevision.h +78 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStateOfMind.h +157 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStatistics.h +166 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsCollectionQuery.h +80 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsQuery.h +37 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKTypeIdentifiers.h +359 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKUnit.h +287 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKUserAnnotatedMedication.h +60 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKUserAnnotatedMedicationQuery.h +38 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecord.h +131 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecordQuery.h +76 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecordSubject.h +39 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKVisionPrescription.h +76 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKVisionPrism.h +123 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkout.h +341 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutActivity.h +127 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutActivityType.h +147 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutBuilder.h +264 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutConfiguration.h +62 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutEffortRelationshipQuery.h +80 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRoute.h +20 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteBuilder.h +102 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteQuery.h +67 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutSession.h +364 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HealthKit.apinotes +5 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HealthKit.h +101 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAAudibleMedia.h +41 -0
- package/sdk/ios/System/Library/Frameworks/MediaAccessibility.framework/Headers/MACaptionAppearance.h +406 -0
- package/sdk/ios/System/Library/Frameworks/MediaAccessibility.framework/Headers/MADefinitions.h +38 -0
- package/sdk/ios/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAFlashingLightsProcessing.h +53 -0
- package/sdk/ios/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAImageCaptioning.h +55 -0
- package/sdk/ios/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAMusicHaptics.h +69 -0
- package/sdk/ios/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAVideoAccommodations.h +34 -0
- package/sdk/ios/System/Library/Frameworks/MediaAccessibility.framework/Headers/MediaAccessibility.h +14 -0
- package/sdk/ios/System/Library/Frameworks/MediaAccessibility.framework/Modules/module.modulemap +11 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEAppProxyFlow.h +142 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEAppProxyProvider.h +93 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEAppProxyProviderManager.h +40 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEAppProxyTCPFlow.h +63 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEAppProxyUDPFlow.h +86 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEAppPushManager.h +208 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEAppPushProvider.h +87 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEAppRule.h +80 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEDNSProxyManager.h +109 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEDNSProxyProvider.h +98 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEDNSProxyProviderProtocol.h +45 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEDNSSettings.h +124 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEDNSSettingsManager.h +116 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEEthernetTunnelNetworkSettings.h +45 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEEthernetTunnelProvider.h +31 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFilterControlProvider.h +80 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFilterDataProvider.h +235 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFilterFlow.h +177 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFilterManager.h +138 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFilterPacketProvider.h +99 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFilterProvider.h +335 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFilterProviderConfiguration.h +94 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFilterRule.h +46 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFilterSettings.h +56 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFlowMetaData.h +45 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEHotspotConfigurationManager.h +493 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEHotspotHelper.h +529 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEHotspotNetwork.h +87 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEIPv4Settings.h +122 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEIPv6Settings.h +121 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NENetworkRule.h +218 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEOnDemandRule.h +210 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEPacket.h +67 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEPacketTunnelFlow.h +62 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEPacketTunnelNetworkSettings.h +135 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEPacketTunnelProvider.h +97 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEProvider.h +160 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEProxySettings.h +140 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NERelay.h +83 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NERelayManager.h +195 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NETransparentProxyManager.h +39 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NETransparentProxyNetworkSettings.h +62 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NETransparentProxyProvider.h +33 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NETunnelNetworkSettings.h +57 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NETunnelProvider.h +113 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NETunnelProviderManager.h +108 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NETunnelProviderProtocol.h +44 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NETunnelProviderSession.h +55 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEURLFilter.h +51 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEVPNConnection.h +162 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEVPNManager.h +153 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEVPNProtocol.h +135 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEVPNProtocolIKEv2.h +357 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEVPNProtocolIPSec.h +71 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NWBonjourServiceEndpoint.h +82 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NWEndpoint.h +40 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NWHostEndpoint.h +68 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NWPath.h +93 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NWTCPConnection.h +335 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NWTLSParameters.h +70 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NWUDPSession.h +207 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NetworkExtension.apinotes +351 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NetworkExtension.h +74 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h +1 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/ModelIO.h +84 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNAction.h +197 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNAnimation.h +428 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNAudioSource.h +170 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNBoundingVolume.h +50 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNCAAnimationExtensions.h +58 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNCamera.h +356 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNCameraController.h +124 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNConstraint.h +431 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNGeometry.h +591 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNHitTest.h +101 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNJavascript.h +58 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNLevelOfDetail.h +56 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNLight.h +350 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterial.h +349 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterialProperty.h +149 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNMorpher.h +79 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNNode.h +695 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNParametricGeometry.h +727 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNParticleSystem.h +462 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNPhysicsBehavior.h +219 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNPhysicsBody.h +148 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNPhysicsContact.h +34 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNPhysicsField.h +124 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNPhysicsShape.h +58 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNPhysicsWorld.h +90 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNReferenceNode.h +80 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNRenderer.h +102 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNScene.h +250 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNSceneRenderer.h +389 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNSceneSource.h +348 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNShadable.h +573 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNSkinner.h +84 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNTechnique.h +320 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNTransaction.h +64 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNView.h +170 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SceneKit.apinotes +423 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SceneKit.h +58 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SceneKitAvailability.h +10 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SceneKitDeprecated.h +88 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SceneKitTypes.h +264 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/scn_metal +75 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Modules/module.modulemap +12 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/CipherSuite.h +281 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecAccessControl.h +133 -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/SecIdentity.h +232 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecItem.h +1284 -29
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecKey.h +1616 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecPolicy.h +441 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecProtocolMetadata.h +429 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecProtocolObject.h +71 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecProtocolOptions.h +775 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecProtocolTypes.h +327 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecRandom.h +84 -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 +13 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +19 -0
- package/sdk/ios/usr/include/AvailabilityInternal.h +23 -0
- package/sdk/ios/usr/include/AvailabilityMacros.h +3985 -0
- package/sdk/ios/usr/include/Block.h +56 -0
- package/sdk/ios/usr/include/CommonCrypto/CommonCrypto.h +34 -0
- package/sdk/ios/usr/include/CommonCrypto/CommonCryptoError.h +78 -0
- package/sdk/ios/usr/include/CommonCrypto/CommonCryptor.h +763 -0
- package/sdk/ios/usr/include/CommonCrypto/CommonDigest.h +254 -47
- package/sdk/ios/usr/include/CommonCrypto/CommonHMAC.h +162 -0
- package/sdk/ios/usr/include/CommonCrypto/CommonKeyDerivation.h +136 -0
- package/sdk/ios/usr/include/CommonCrypto/CommonRandom.h +63 -0
- package/sdk/ios/usr/include/CommonCrypto/CommonSymmetricKeywrap.h +162 -0
- package/sdk/ios/usr/include/CommonCrypto/module.modulemap +15 -0
- package/sdk/ios/usr/include/ObjectiveC.apinotes +437 -0
- package/sdk/ios/usr/include/TargetConditionals.h +525 -14
- package/sdk/ios/usr/include/___wctype.h +193 -0
- package/sdk/ios/usr/include/__wctype.h +43 -0
- package/sdk/ios/usr/include/_abort.h +36 -0
- package/sdk/ios/usr/include/_assert.h +80 -0
- package/sdk/ios/usr/include/_static_assert.h +33 -0
- package/sdk/ios/usr/include/_stdlib.h +403 -0
- package/sdk/ios/usr/include/_string.h +231 -0
- package/sdk/ios/usr/include/_strings.h +101 -0
- package/sdk/ios/usr/include/_types/_wctrans_t.h +33 -0
- package/sdk/ios/usr/include/_types/_wctype_t.h +33 -0
- package/sdk/ios/usr/include/_wchar.h +263 -0
- package/sdk/ios/usr/include/_wctype.h +129 -0
- package/sdk/ios/usr/include/_xlocale.h +47 -0
- package/sdk/ios/usr/include/alloca.h +46 -0
- package/sdk/ios/usr/include/architecture/byte_order.h +381 -0
- package/sdk/ios/usr/include/arm/_limits.h +13 -0
- package/sdk/ios/usr/include/arm/arch.h +71 -0
- package/sdk/ios/usr/include/arm/limits.h +136 -0
- package/sdk/ios/usr/include/arpa/inet.h +100 -0
- package/sdk/ios/usr/include/assert.h +77 -10
- package/sdk/ios/usr/include/bsm/audit.h +434 -0
- package/sdk/ios/usr/include/copyfile.h +143 -0
- package/sdk/ios/usr/include/crt_externs.h +50 -0
- package/sdk/ios/usr/include/dispatch/base.h +369 -0
- package/sdk/ios/usr/include/dispatch/block.h +509 -0
- package/sdk/ios/usr/include/dispatch/data.h +290 -0
- package/sdk/ios/usr/include/dispatch/dispatch.h +68 -172
- package/sdk/ios/usr/include/dispatch/dispatch_swift_shims.h +61 -0
- package/sdk/ios/usr/include/dispatch/group.h +289 -0
- package/sdk/ios/usr/include/dispatch/introspection.h +190 -0
- package/sdk/ios/usr/include/dispatch/io.h +617 -0
- package/sdk/ios/usr/include/dispatch/object.h +680 -0
- package/sdk/ios/usr/include/dispatch/once.h +128 -0
- package/sdk/ios/usr/include/dispatch/queue.h +1824 -0
- package/sdk/ios/usr/include/dispatch/semaphore.h +124 -0
- package/sdk/ios/usr/include/dispatch/source.h +803 -0
- package/sdk/ios/usr/include/dispatch/time.h +144 -0
- package/sdk/ios/usr/include/dispatch/workloop.h +178 -0
- package/sdk/ios/usr/include/dlfcn.h +320 -7
- package/sdk/ios/usr/include/execinfo.h +100 -10
- package/sdk/ios/usr/include/ftw.h +63 -0
- package/sdk/ios/usr/include/gethostuuid.h +45 -0
- package/sdk/ios/usr/include/libkern/arm/OSByteOrder.h +195 -0
- package/sdk/ios/usr/include/limits.h +167 -4
- package/sdk/ios/usr/include/mach/arm/boolean.h +74 -0
- package/sdk/ios/usr/include/mach/arm/exception.h +86 -0
- package/sdk/ios/usr/include/mach/arm/kern_return.h +78 -0
- package/sdk/ios/usr/include/mach/arm/processor_info.h +76 -0
- package/sdk/ios/usr/include/mach/arm/rpc.h +39 -0
- package/sdk/ios/usr/include/mach/arm/thread_state.h +42 -0
- package/sdk/ios/usr/include/mach/arm/thread_status.h +302 -0
- package/sdk/ios/usr/include/mach/arm/vm_param.h +118 -0
- package/sdk/ios/usr/include/mach/arm/vm_types.h +162 -0
- package/sdk/ios/usr/include/mach/boolean.h +88 -4
- package/sdk/ios/usr/include/mach/clock.h +249 -0
- package/sdk/ios/usr/include/mach/clock_priv.h +203 -0
- package/sdk/ios/usr/include/mach/clock_types.h +127 -0
- package/sdk/ios/usr/include/mach/dyld_kernel.h +66 -0
- package/sdk/ios/usr/include/mach/error.h +117 -0
- package/sdk/ios/usr/include/mach/exc.h +285 -0
- package/sdk/ios/usr/include/mach/exception_types.h +204 -25
- package/sdk/ios/usr/include/mach/host_info.h +136 -51
- package/sdk/ios/usr/include/mach/host_notify.h +39 -0
- package/sdk/ios/usr/include/mach/host_priv.h +1167 -0
- package/sdk/ios/usr/include/mach/host_security.h +225 -0
- package/sdk/ios/usr/include/mach/host_special_ports.h +315 -0
- package/sdk/ios/usr/include/mach/kern_return.h +291 -2
- package/sdk/ios/usr/include/mach/kmod.h +180 -0
- package/sdk/ios/usr/include/mach/mach.h +237 -12
- package/sdk/ios/usr/include/mach/mach_error.h +93 -10
- package/sdk/ios/usr/include/mach/mach_host.h +1329 -5
- package/sdk/ios/usr/include/mach/mach_init.h +112 -13
- package/sdk/ios/usr/include/mach/mach_interface.h +52 -0
- package/sdk/ios/usr/include/mach/mach_port.h +1935 -4
- package/sdk/ios/usr/include/mach/mach_time.h +77 -14
- package/sdk/ios/usr/include/mach/mach_traps.h +311 -0
- package/sdk/ios/usr/include/mach/mach_types.h +297 -20
- package/sdk/ios/usr/include/mach/mach_voucher_types.h +259 -0
- package/sdk/ios/usr/include/mach/machine/boolean.h +40 -0
- package/sdk/ios/usr/include/mach/machine/exception.h +40 -0
- package/sdk/ios/usr/include/mach/machine/kern_return.h +40 -0
- package/sdk/ios/usr/include/mach/machine/processor_info.h +40 -0
- package/sdk/ios/usr/include/mach/machine/rpc.h +40 -0
- package/sdk/ios/usr/include/mach/machine/thread_state.h +44 -0
- package/sdk/ios/usr/include/mach/machine/thread_status.h +40 -0
- package/sdk/ios/usr/include/mach/machine/vm_param.h +40 -0
- package/sdk/ios/usr/include/mach/machine/vm_types.h +40 -0
- package/sdk/ios/usr/include/mach/machine.h +456 -142
- package/sdk/ios/usr/include/mach/memory_object_types.h +312 -0
- package/sdk/ios/usr/include/mach/message.h +972 -0
- package/sdk/ios/usr/include/mach/mig.h +180 -0
- package/sdk/ios/usr/include/mach/mig_errors.h +125 -0
- package/sdk/ios/usr/include/mach/mig_strncpy_zerofill_support.h +35 -0
- package/sdk/ios/usr/include/mach/ndr.h +207 -0
- package/sdk/ios/usr/include/mach/notify.h +141 -0
- package/sdk/ios/usr/include/mach/policy.h +235 -0
- package/sdk/ios/usr/include/mach/port.h +648 -0
- package/sdk/ios/usr/include/mach/processor.h +364 -0
- package/sdk/ios/usr/include/mach/processor_info.h +171 -0
- package/sdk/ios/usr/include/mach/processor_set.h +589 -0
- package/sdk/ios/usr/include/mach/rpc.h +135 -0
- package/sdk/ios/usr/include/mach/semaphore.h +78 -0
- package/sdk/ios/usr/include/mach/std_types.h +75 -0
- package/sdk/ios/usr/include/mach/sync_policy.h +47 -0
- package/sdk/ios/usr/include/mach/task.h +2887 -7
- package/sdk/ios/usr/include/mach/task_info.h +584 -19
- package/sdk/ios/usr/include/mach/task_inspect.h +57 -0
- package/sdk/ios/usr/include/mach/task_policy.h +182 -26
- package/sdk/ios/usr/include/mach/task_special_ports.h +135 -0
- package/sdk/ios/usr/include/mach/thread_act.h +1550 -5
- package/sdk/ios/usr/include/mach/thread_info.h +206 -28
- package/sdk/ios/usr/include/mach/thread_policy.h +268 -0
- package/sdk/ios/usr/include/mach/thread_special_ports.h +87 -0
- package/sdk/ios/usr/include/mach/thread_status.h +100 -0
- package/sdk/ios/usr/include/mach/thread_switch.h +77 -0
- package/sdk/ios/usr/include/mach/time_value.h +96 -4
- package/sdk/ios/usr/include/mach/vm_attributes.h +99 -0
- package/sdk/ios/usr/include/mach/vm_behavior.h +86 -0
- package/sdk/ios/usr/include/mach/vm_inherit.h +93 -0
- package/sdk/ios/usr/include/mach/vm_map.h +1558 -0
- package/sdk/ios/usr/include/mach/vm_page_size.h +68 -0
- package/sdk/ios/usr/include/mach/vm_prot.h +183 -7
- package/sdk/ios/usr/include/mach/vm_purgable.h +166 -0
- package/sdk/ios/usr/include/mach/vm_region.h +400 -36
- package/sdk/ios/usr/include/mach/vm_statistics.h +387 -96
- package/sdk/ios/usr/include/mach/vm_sync.h +84 -0
- package/sdk/ios/usr/include/mach/vm_types.h +194 -7
- package/sdk/ios/usr/include/mach-o/arch.h +154 -16
- package/sdk/ios/usr/include/mach-o/fat.h +89 -0
- package/sdk/ios/usr/include/mach-o/getsect.h +146 -12
- package/sdk/ios/usr/include/mach-o/loader.h +1679 -139
- package/sdk/ios/usr/include/mach_debug/hash_info.h +75 -0
- package/sdk/ios/usr/include/mach_debug/ipc_info.h +199 -0
- package/sdk/ios/usr/include/mach_debug/lockgroup_info.h +74 -0
- package/sdk/ios/usr/include/mach_debug/mach_debug_types.h +200 -0
- package/sdk/ios/usr/include/mach_debug/page_info.h +64 -0
- package/sdk/ios/usr/include/mach_debug/vm_info.h +149 -0
- package/sdk/ios/usr/include/mach_debug/zone_info.h +209 -0
- package/sdk/ios/usr/include/machine/limits.h +14 -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/module.modulemap +4 -0
- package/sdk/ios/usr/include/net/if_types.h +152 -0
- package/sdk/ios/usr/include/objc/NSObjCRuntime.h +10 -0
- package/sdk/ios/usr/include/objc/NSObject.h +23 -25
- package/sdk/ios/usr/include/objc/objc-api.h +310 -0
- package/sdk/ios/usr/include/objc/objc.h +243 -0
- package/sdk/ios/usr/include/objc/runtime.h +1933 -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/os.modulemap +6 -0
- package/sdk/ios/usr/include/pthread/pthread_impl.h +66 -0
- package/sdk/ios/usr/include/pthread/sched.h +46 -0
- package/sdk/ios/usr/include/pthread.h +754 -4
- package/sdk/ios/usr/include/pwd.h +119 -0
- package/sdk/ios/usr/include/sched.h +46 -0
- package/sdk/ios/usr/include/secure/_string.h +295 -0
- package/sdk/ios/usr/include/secure/_strings.h +96 -0
- package/sdk/ios/usr/include/spawn.h +193 -0
- package/sdk/ios/usr/include/stddef.h +90 -0
- package/sdk/ios/usr/include/stdlib.h +62 -17
- package/sdk/ios/usr/include/string.h +62 -8
- package/sdk/ios/usr/include/sys/_pthread/_pthread_cond_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_condattr_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_key_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_mutex_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_mutexattr_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_once_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_rwlock_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_rwlockattr_t.h +32 -0
- package/sdk/ios/usr/include/sys/_select.h +57 -0
- package/sdk/ios/usr/include/sys/_types/_blkcnt_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_blksize_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_caddr_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_dev_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_fsblkcnt_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_fsfilcnt_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_fsid_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_fsobj_id_t.h +38 -0
- package/sdk/ios/usr/include/sys/_types/_graftdmg_un.h +64 -0
- package/sdk/ios/usr/include/sys/_types/_guid_t.h +37 -0
- package/sdk/ios/usr/include/sys/_types/_id_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_ino64_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_key_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_mach_port_t.h +51 -0
- package/sdk/ios/usr/include/sys/_types/_mbstate_t.h +33 -0
- package/sdk/ios/usr/include/sys/_types/_mount_t.h +34 -0
- package/sdk/ios/usr/include/sys/_types/_nlink_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_os_inline.h +34 -0
- package/sdk/ios/usr/include/sys/_types/_posix_vdisable.h +30 -0
- package/sdk/ios/usr/include/sys/_types/_rsize_t.h +55 -0
- package/sdk/ios/usr/include/sys/_types/_suseconds_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_timeval.h +39 -0
- package/sdk/ios/usr/include/sys/_types/_u_char.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_u_int.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_u_short.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_useconds_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_uuid_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_vnode_t.h +34 -0
- package/sdk/ios/usr/include/sys/acl.h +215 -0
- package/sdk/ios/usr/include/sys/attr.h +635 -0
- package/sdk/ios/usr/include/sys/cdefs.h +53 -0
- package/sdk/ios/usr/include/sys/event.h +388 -0
- package/sdk/ios/usr/include/sys/kauth.h +409 -0
- package/sdk/ios/usr/include/sys/mount.h +470 -0
- package/sdk/ios/usr/include/sys/queue.h +909 -0
- package/sdk/ios/usr/include/sys/resource.h +600 -0
- package/sdk/ios/usr/include/sys/select.h +134 -0
- package/sdk/ios/usr/include/sys/spawn.h +84 -0
- package/sdk/ios/usr/include/sys/sysctl.h +803 -57
- package/sdk/ios/usr/include/sys/syslimits.h +131 -11
- package/sdk/ios/usr/include/sys/types.h +236 -19
- package/sdk/ios/usr/include/sys/ucred.h +116 -0
- package/sdk/ios/usr/include/sys/un.h +105 -0
- package/sdk/ios/usr/include/sys/unistd.h +225 -0
- package/sdk/ios/usr/include/sys/vm.h +89 -0
- package/sdk/ios/usr/include/sys/wait.h +256 -0
- package/sdk/ios/usr/include/sysdir.h +79 -0
- package/sdk/ios/usr/include/unistd.h +799 -3
- package/sdk/ios/usr/include/uuid/uuid.h +69 -10
- package/sdk/ios/usr/include/wchar.h +71 -0
- package/sdk/ios/usr/include/wctype.h +35 -0
- package/sdk/ios/usr/include/xlocale/___wctype.h +146 -0
- package/sdk/ios/usr/include/xlocale/_ctype.h +240 -0
- package/sdk/ios/usr/include/xlocale/_stdlib.h +77 -0
- package/sdk/ios/usr/include/xlocale/_string.h +43 -0
- package/sdk/ios/usr/include/xlocale/_wchar.h +160 -0
- package/sdk/ios/usr/include/xlocale/_wctype.h +100 -0
- package/sdk/ios/usr/include/xlocale.h +61 -0
- package/sdk/ios/usr/include/xpc/availability.h +141 -0
- package/sdk/ios/usr/include/xpc/base.h +243 -0
- package/sdk/ios/wasm/include/AvailabilityInternal.h +24 -0
- package/sdk/ios/wasm/include/TargetConditionals.h +529 -0
- package/sdk/ios/wasm/include/_locale.h +3 -0
- package/sdk/ios/wasm/include/_locale_posix2008.h +3 -0
- package/sdk/ios/wasm/include/_types/_locale_t.h +3 -0
- package/sdk/ios/wasm/include/arpa/inet.h +15 -0
- package/sdk/ios/wasm/include/dirent.h +52 -0
- package/sdk/ios/wasm/include/dlfcn.h +13 -1
- package/sdk/ios/wasm/include/errno.h +22 -0
- package/sdk/ios/wasm/include/fcntl.h +29 -0
- package/sdk/ios/wasm/include/ftw.h +15 -0
- package/sdk/ios/wasm/include/libkern/_OSByteOrder.h +6 -0
- package/sdk/ios/wasm/include/limits.h +9 -0
- package/sdk/ios/wasm/include/mach/machine/boolean.h +1 -1
- package/sdk/ios/wasm/include/mach/machine/exception.h +1 -4
- package/sdk/ios/wasm/include/mach/machine/kern_return.h +1 -1
- package/sdk/ios/wasm/include/mach/machine/processor_info.h +1 -1
- package/sdk/ios/wasm/include/mach/machine/rpc.h +1 -1
- package/sdk/ios/wasm/include/mach/machine/thread_state.h +1 -2
- package/sdk/ios/wasm/include/mach/machine/thread_status.h +1 -2
- package/sdk/ios/wasm/include/mach/machine/vm_param.h +1 -2
- package/sdk/ios/wasm/include/mach/machine/vm_types.h +1 -17
- package/sdk/ios/wasm/include/machine/_endian.h +2 -0
- package/sdk/ios/wasm/include/machine/_param.h +2 -0
- package/sdk/ios/wasm/include/machine/endian.h +1 -1
- package/sdk/ios/wasm/include/machine/limits.h +106 -2
- package/sdk/ios/wasm/include/machine/param.h +152 -0
- package/sdk/ios/wasm/include/netinet/in.h +11 -0
- package/sdk/ios/wasm/include/os/object.h +10 -0
- package/sdk/ios/wasm/include/pthread.h +14 -0
- package/sdk/ios/wasm/include/stdio.h +12 -0
- package/sdk/ios/wasm/include/stdlib.h +13 -0
- package/sdk/ios/wasm/include/strings.h +9 -0
- package/sdk/ios/wasm/include/sys/_types/_iovec_t.h +6 -0
- package/sdk/ios/wasm/include/sys/_types/_mode_t.h +10 -0
- package/sdk/ios/wasm/include/sys/mman.h +2 -2
- package/sdk/ios/wasm/include/sys/param.h +4 -0
- package/sdk/ios/wasm/include/sys/resource.h +43 -0
- package/sdk/ios/wasm/include/sys/socket.h +75 -9
- package/sdk/ios/wasm/include/sys/stat.h +63 -0
- package/sdk/ios/wasm/include/sys/types.h +13 -0
- package/sdk/ios/wasm/include/sys/un.h +7 -0
- package/sdk/ios/wasm/include/time.h +3 -1
- package/sdk/ios/wasm/include/unistd.h +19 -3
- package/sdk/ios/wasm/include/xlocale/_stdlib.h +37 -0
- package/sdk/ios/wasm/storage-include/TargetConditionals.h +529 -0
- package/sdk/ios/wasm/storage-include/mach/machine/boolean.h +2 -0
- package/sdk/ios/wasm/storage-include/mach/machine/exception.h +5 -0
- package/sdk/ios/wasm/storage-include/mach/machine/kern_return.h +2 -0
- package/sdk/ios/wasm/storage-include/mach/machine/processor_info.h +2 -0
- package/sdk/ios/wasm/storage-include/mach/machine/rpc.h +2 -0
- package/sdk/ios/wasm/storage-include/mach/machine/thread_state.h +3 -0
- package/sdk/ios/wasm/storage-include/mach/machine/thread_status.h +3 -0
- package/sdk/ios/wasm/storage-include/mach/machine/vm_param.h +3 -0
- package/sdk/ios/wasm/storage-include/mach/machine/vm_types.h +18 -0
- package/sdk/ios/wasm/storage-include/machine/_endian.h +9 -0
- package/sdk/ios/wasm/storage-include/machine/_param.h +8 -0
- package/sdk/ios/wasm/storage-include/machine/_types.h +31 -0
- package/sdk/ios/wasm/storage-include/machine/endian.h +2 -0
- package/sdk/ios/wasm/storage-include/machine/limits.h +2 -0
- package/sdk/ios/wasm/storage-include/machine/types.h +15 -0
- package/sdk/native-hashes.json +80 -0
- package/skills/contrast/SKILL.md +4 -1
- package/src/android-root-module.ts +145 -0
- package/src/androidRootModuleContract.ts +39 -0
- package/src/assetCatalogContract.ts +10 -1
- package/src/backend-origin.ts +11 -8
- package/src/bridge-constants.ts +7 -0
- package/src/bridge-contract.ts +3 -1
- package/src/capture-contract.ts +3 -1
- package/src/cli-runtime.ts +6 -1
- package/src/codex-client.ts +11 -6
- package/src/dev-bundle-resolution.ts +124 -48
- package/src/device-catalog.ts +10 -4
- package/src/expo-discovery-cache.ts +272 -0
- package/src/expo-native-workspace.ts +207 -0
- package/src/expo-swift-host.ts +824 -33
- package/src/expo-swift-ready.ts +56 -38
- package/src/expoSwiftContract.ts +4 -1
- package/src/generated/swift-c-predefines.json +69 -13
- package/src/host/bridge-host.ts +33 -0
- package/src/host/fetch-proxy-handler.ts +19 -1
- package/src/host/network-policy-proxy.ts +421 -0
- package/src/host/network-policy.ts +121 -0
- package/src/host/staged-host-files.ts +80 -3
- package/src/host/websocket-frame-guard.ts +163 -0
- package/src/host/websocket-proxy-headers.ts +29 -0
- package/src/host/websocket-proxy.ts +100 -58
- package/src/installed-native-build-options.ts +154 -0
- package/src/installed-package-versions.ts +70 -50
- package/src/material-symbol-fonts.ts +6 -4
- package/src/menu.ts +6 -0
- package/src/metro-plugin.ts +8 -0
- package/src/metro-project-root.ts +44 -33
- package/src/native-app-identity-project.ts +5 -0
- package/src/native-app-identity.ts +16 -0
- package/src/native-dev-bundle-url.ts +0 -18
- package/src/native-firebase-config.ts +47 -4
- package/src/native-preparation.ts +30 -0
- package/src/nativePreparationContract.ts +3 -0
- package/src/nitro-adapter.lock.json +1072 -14
- package/src/nitro-adapter.ts +33 -24
- package/src/nitro-bundle.ts +132 -22
- package/src/nitro-compile.ts +47 -7
- package/src/nitro-dependencies.ts +226 -0
- package/src/nitro-source.ts +200 -40
- package/src/nitroAdapterContract.ts +100 -20
- package/src/node-http-fetch.ts +116 -0
- package/src/packageVersionsContract.ts +79 -0
- package/src/react-native-bridge-modules.ts +24 -1
- package/src/react-native-host-modules.ts +111 -4
- package/src/runtime-assets.ts +10 -0
- package/src/serverDiscoveryContract.ts +1 -0
- package/src/settingsContract.ts +0 -30
- package/src/sim-client.ts +1 -1
- package/src/storageSnapshotContract.ts +22 -10
- package/src/stub-pattern-matcher.ts +17 -4
- package/src/swift-binary-modules.ts +20 -5
- package/src/swift-compile.ts +1292 -4123
- package/src/swift-compiler-digest.ts +1 -2
- package/src/swift-coverage/package.ts +103 -58
- package/src/swift-coverage/xcode-assets.ts +26 -5
- package/src/swift-coverage/xcode-bridging.ts +1 -12
- package/src/swift-coverage/xcode-packages.ts +167 -52
- package/src/swift-coverage/xcode.ts +2 -6
- package/src/swift-cxx-declarations.ts +205 -0
- package/src/swift-cxx-deps.ts +48 -0
- package/src/swift-cxx-reachable.ts +297 -0
- package/src/swift-cxx-standin.ts +248 -0
- package/src/swift-distribution.lock.json +29 -20
- package/src/swift-host.ts +229 -24
- package/src/swift-objc-compile.ts +638 -219
- package/src/swift-objc-import.ts +19 -964
- package/src/swift-objc-platform.ts +2 -2
- package/src/swift-objc-runtime.ts +7 -0
- package/src/swift-objc-standin.ts +314 -64
- package/src/swift-package-manifest.ts +179 -38
- package/src/swift-package.ts +156 -29
- package/src/swift-packages.ts +193 -34
- package/src/swift-pdf-raster.ts +114 -0
- package/src/swift-shared-sdk.ts +45 -0
- package/src/swift-source-file.ts +10 -6
- package/src/swift-source-pods.ts +126 -41
- package/src/swift-standin-digest.ts +74 -0
- package/src/swift-standin-emit.ts +48 -4
- package/src/swift-standins.ts +334 -92
- package/src/swift-submit.ts +24 -6
- package/src/swift-toolchain.ts +49 -9
- package/src/swiftContract.ts +58 -29
- package/src/vite-plugin.ts +0 -23
- package/src/workspace-root.ts +15 -0
- package/src/xcode-json-project.ts +52 -1
- package/src/xcode-project.ts +355 -65
- package/src/settings-flags.ts +0 -107
- package/src/swift-objc-export.ts +0 -532
- package/src/swift-objc-metadata.ts +0 -534
package/dist-lib/vite.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.1716 | (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;
|
|
@@ -42,7 +42,7 @@ var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
|
|
|
42
42
|
var runtime_companion_default;
|
|
43
43
|
var init_runtime_companion = __esm({
|
|
44
44
|
"runtime-companion.json"() {
|
|
45
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
45
|
+
runtime_companion_default = { abi: 1, sha256: "a0dede25c849ecabd639fbb0a0c4edd8e62a34bf12090932dba19832f2369659", file: "node/cli-a0dede25c849ecabd639fbb0a0c4edd8e62a34bf12090932dba19832f2369659.cjs" };
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
|
|
@@ -266,6 +266,11 @@ function serveRuntimeFile(req, res, fullPath) {
|
|
|
266
266
|
import_fs.default.createReadStream(fullPath).pipe(res);
|
|
267
267
|
return;
|
|
268
268
|
}
|
|
269
|
+
if (/[?&]sha256=[a-f0-9]{64}(?:&|$)/.test(req?.url ?? "")) {
|
|
270
|
+
res.setHeader("cache-control", "public, max-age=31536000, immutable");
|
|
271
|
+
import_fs.default.createReadStream(fullPath).pipe(res);
|
|
272
|
+
return;
|
|
273
|
+
}
|
|
269
274
|
res.setHeader("cache-control", "no-cache");
|
|
270
275
|
res.setHeader("last-modified", lastModified);
|
|
271
276
|
if (req?.headers?.["if-modified-since"] === lastModified) {
|
|
@@ -377,7 +382,8 @@ function verifyCliCompanion(root) {
|
|
|
377
382
|
bytes = (0, import_node_fs2.readFileSync)(file);
|
|
378
383
|
} catch (error) {
|
|
379
384
|
if (error instanceof Error) {
|
|
380
|
-
error.
|
|
385
|
+
const missing2 = "code" in error && error.code === "ENOENT" ? "; this runtime has no companion for this CLI (it was published before this CLI, or the file was removed after unpacking), run `peach runtime install` for the latest runtime and check Windows Security protection history if it repeats" : "";
|
|
386
|
+
error.message = `Could not read Peach runtime companion ${file}: ${error.message}${missing2}`;
|
|
381
387
|
}
|
|
382
388
|
throw error;
|
|
383
389
|
}
|
|
@@ -418,6 +424,112 @@ var init_cli_runtime = __esm({
|
|
|
418
424
|
}
|
|
419
425
|
});
|
|
420
426
|
|
|
427
|
+
// src/node-http-fetch.ts
|
|
428
|
+
var node_http_fetch_exports = {};
|
|
429
|
+
__export(node_http_fetch_exports, {
|
|
430
|
+
nodeHttpFetch: () => nodeHttpFetch
|
|
431
|
+
});
|
|
432
|
+
function nodeHttpFetch(url, init = {}, redirects = 0) {
|
|
433
|
+
const target = new URL(url);
|
|
434
|
+
const transport = target.protocol === "https:" ? import_node_https.default : import_node_http.default;
|
|
435
|
+
return new Promise((resolve3, reject) => {
|
|
436
|
+
const req = transport.request(
|
|
437
|
+
target,
|
|
438
|
+
{ method: "GET", headers: init.headers, signal: init.signal },
|
|
439
|
+
(res) => {
|
|
440
|
+
const status = res.statusCode ?? 0;
|
|
441
|
+
const location = res.headers.location;
|
|
442
|
+
if (status >= 300 && status < 400 && location) {
|
|
443
|
+
res.resume();
|
|
444
|
+
if (redirects >= MAX_REDIRECTS) {
|
|
445
|
+
reject(new Error(`too many redirects from ${url}`));
|
|
446
|
+
return;
|
|
447
|
+
}
|
|
448
|
+
resolve3(nodeHttpFetch(new URL(location, target).href, init, redirects + 1));
|
|
449
|
+
return;
|
|
450
|
+
}
|
|
451
|
+
const headers = new Headers();
|
|
452
|
+
for (const [name, value] of Object.entries(res.headers)) {
|
|
453
|
+
if (Array.isArray(value)) for (const entry of value) headers.append(name, entry);
|
|
454
|
+
else if (value !== void 0) headers.set(name, value);
|
|
455
|
+
}
|
|
456
|
+
if (BODYLESS_STATUS.has(status)) {
|
|
457
|
+
res.resume();
|
|
458
|
+
resolve3(new Response(null, { status, headers }));
|
|
459
|
+
return;
|
|
460
|
+
}
|
|
461
|
+
let source = res;
|
|
462
|
+
const codings = (res.headers["content-encoding"] ?? "").split(",").map((entry) => entry.trim().toLowerCase()).filter((entry) => entry && entry !== "identity");
|
|
463
|
+
if (codings.every((coding) => DECODABLE_CODINGS.has(coding))) {
|
|
464
|
+
for (const coding of codings.reverse()) {
|
|
465
|
+
let decoder;
|
|
466
|
+
if (coding === "br") decoder = import_node_zlib.default.createBrotliDecompress();
|
|
467
|
+
else if (coding === "deflate") {
|
|
468
|
+
let inner;
|
|
469
|
+
decoder = new import_node_stream.Transform({
|
|
470
|
+
transform(chunk, _encoding, done) {
|
|
471
|
+
if (!inner) {
|
|
472
|
+
inner = (chunk[0] & 15) === 8 ? import_node_zlib.default.createInflate(TRUNCATION_TOLERANT) : import_node_zlib.default.createInflateRaw(TRUNCATION_TOLERANT);
|
|
473
|
+
inner.on("data", (data) => decoder.push(data));
|
|
474
|
+
inner.on("error", (error) => decoder.destroy(error));
|
|
475
|
+
}
|
|
476
|
+
inner.write(chunk, done);
|
|
477
|
+
},
|
|
478
|
+
flush(done) {
|
|
479
|
+
if (!inner) return done();
|
|
480
|
+
inner.once("end", () => done());
|
|
481
|
+
inner.end();
|
|
482
|
+
},
|
|
483
|
+
destroy(error, done) {
|
|
484
|
+
inner?.destroy();
|
|
485
|
+
done(error);
|
|
486
|
+
}
|
|
487
|
+
});
|
|
488
|
+
} else decoder = import_node_zlib.default.createGunzip(TRUNCATION_TOLERANT);
|
|
489
|
+
source = (0, import_node_stream.pipeline)(source, decoder, () => {
|
|
490
|
+
});
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
const chunks = source[Symbol.asyncIterator]();
|
|
494
|
+
const body = new ReadableStream({
|
|
495
|
+
async pull(controller) {
|
|
496
|
+
try {
|
|
497
|
+
const chunk = await chunks.next();
|
|
498
|
+
if (chunk.done) controller.close();
|
|
499
|
+
else if (chunk.value instanceof Uint8Array) controller.enqueue(chunk.value);
|
|
500
|
+
else controller.error(new Error("HTTP response returned a non-byte chunk"));
|
|
501
|
+
} catch (error) {
|
|
502
|
+
controller.error(error);
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
cancel() {
|
|
506
|
+
source.destroy();
|
|
507
|
+
res.destroy();
|
|
508
|
+
}
|
|
509
|
+
});
|
|
510
|
+
resolve3(new Response(body, { status, headers }));
|
|
511
|
+
}
|
|
512
|
+
);
|
|
513
|
+
req.on("error", reject);
|
|
514
|
+
req.end();
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
var import_node_http, import_node_https, import_node_stream, import_node_zlib, BODYLESS_STATUS, TRUNCATION_TOLERANT, MAX_REDIRECTS, DECODABLE_CODINGS;
|
|
518
|
+
var init_node_http_fetch = __esm({
|
|
519
|
+
"src/node-http-fetch.ts"() {
|
|
520
|
+
"use strict";
|
|
521
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
522
|
+
import_node_http = __toESM(require("node:http"), 1);
|
|
523
|
+
import_node_https = __toESM(require("node:https"), 1);
|
|
524
|
+
import_node_stream = require("node:stream");
|
|
525
|
+
import_node_zlib = __toESM(require("node:zlib"), 1);
|
|
526
|
+
BODYLESS_STATUS = /* @__PURE__ */ new Set([101, 204, 205, 304]);
|
|
527
|
+
TRUNCATION_TOLERANT = { finishFlush: import_node_zlib.default.constants.Z_SYNC_FLUSH };
|
|
528
|
+
MAX_REDIRECTS = 5;
|
|
529
|
+
DECODABLE_CODINGS = /* @__PURE__ */ new Set(["gzip", "x-gzip", "deflate", "br"]);
|
|
530
|
+
}
|
|
531
|
+
});
|
|
532
|
+
|
|
421
533
|
// src/vite-plugin-one.ts
|
|
422
534
|
var vite_plugin_one_exports = {};
|
|
423
535
|
__export(vite_plugin_one_exports, {
|
|
@@ -428,9 +540,9 @@ module.exports = __toCommonJS(vite_plugin_one_exports);
|
|
|
428
540
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
429
541
|
var import_fs4 = __toESM(require("fs"), 1);
|
|
430
542
|
var import_node_crypto4 = require("node:crypto");
|
|
431
|
-
var
|
|
432
|
-
var
|
|
433
|
-
var
|
|
543
|
+
var import_node_http3 = __toESM(require("node:http"), 1);
|
|
544
|
+
var import_node_https2 = __toESM(require("node:https"), 1);
|
|
545
|
+
var import_node_url2 = require("node:url");
|
|
434
546
|
var import_path4 = __toESM(require("path"), 1);
|
|
435
547
|
var import_promises5 = require("stream/promises");
|
|
436
548
|
var import_ws = require("ws");
|
|
@@ -537,6 +649,7 @@ var import_promises3 = require("stream/promises");
|
|
|
537
649
|
|
|
538
650
|
// src/backend-origin.ts
|
|
539
651
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
652
|
+
var NativeURL = globalThis.URL;
|
|
540
653
|
function normalizeHostname(hostname) {
|
|
541
654
|
return hostname.replace(/^\[|\]$/g, "").toLowerCase();
|
|
542
655
|
}
|
|
@@ -548,7 +661,7 @@ function isTrustedBridgeRequest(headers) {
|
|
|
548
661
|
const origin = headers.origin;
|
|
549
662
|
if (origin === void 0) return true;
|
|
550
663
|
try {
|
|
551
|
-
const { hostname, host } = new
|
|
664
|
+
const { hostname, host } = new NativeURL(String(origin));
|
|
552
665
|
return isLoopbackHost(hostname) || [headers.host, headers[":authority"], headers["x-forwarded-host"]].some(
|
|
553
666
|
(value) => typeof value === "string" && value.toLowerCase() === host
|
|
554
667
|
);
|
|
@@ -558,7 +671,7 @@ function isTrustedBridgeRequest(headers) {
|
|
|
558
671
|
}
|
|
559
672
|
function loopbackOriginOf(value) {
|
|
560
673
|
try {
|
|
561
|
-
const url = new
|
|
674
|
+
const url = new NativeURL(value);
|
|
562
675
|
return isLoopbackHost(url.hostname) ? url.origin : null;
|
|
563
676
|
} catch {
|
|
564
677
|
return null;
|
|
@@ -617,6 +730,7 @@ ${prefix}${json}${suffix}`;
|
|
|
617
730
|
}
|
|
618
731
|
|
|
619
732
|
// src/packageVersionsContract.ts
|
|
733
|
+
var NATIVE_BUILD_OPTIONS_KEY = "@peach/native-build-options";
|
|
620
734
|
var PACKAGE_VERSIONS_HEADER = "X-Peach-Package-Versions";
|
|
621
735
|
var FOOTER = "__peachPackageVersions";
|
|
622
736
|
function readPackageVersions(value) {
|
|
@@ -635,6 +749,23 @@ function readPackageVersions(value) {
|
|
|
635
749
|
function insertPackageVersionsFooter(source, versions) {
|
|
636
750
|
return insertBundleGlobalFooter(source, FOOTER, readPackageVersions(versions));
|
|
637
751
|
}
|
|
752
|
+
var WORKLETS_STATIC_FLAGS_KEY = "react-native-worklets/staticFlags.json";
|
|
753
|
+
function isFlagRecord(value) {
|
|
754
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
755
|
+
}
|
|
756
|
+
function resolveWorkletsStaticFlags(defaults, appManifest) {
|
|
757
|
+
if (!isFlagRecord(defaults)) throw new Error("Worklets static flags are malformed");
|
|
758
|
+
const worklets = isFlagRecord(appManifest) ? appManifest.worklets : void 0;
|
|
759
|
+
const overrides = isFlagRecord(worklets) ? worklets.staticFeatureFlags : void 0;
|
|
760
|
+
if (overrides !== void 0 && !isFlagRecord(overrides)) {
|
|
761
|
+
throw new Error("Worklets static flag overrides are malformed");
|
|
762
|
+
}
|
|
763
|
+
const flags = {};
|
|
764
|
+
for (const [name, value] of Object.entries({ ...defaults, ...overrides })) {
|
|
765
|
+
flags[name] = String(value) === "true";
|
|
766
|
+
}
|
|
767
|
+
return JSON.stringify(flags);
|
|
768
|
+
}
|
|
638
769
|
|
|
639
770
|
// src/host/dev-server-package-versions.ts
|
|
640
771
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -701,7 +832,6 @@ var LAZY_STUB_PATTERNS = [
|
|
|
701
832
|
"@sbaiahmed1/react-native-biometrics/types",
|
|
702
833
|
"@sbaiahmed1/react-native-blur",
|
|
703
834
|
"@shopify/checkout-sheet-kit",
|
|
704
|
-
"@shopify/react-native-skia",
|
|
705
835
|
"@stream-io/video-react-native-sdk",
|
|
706
836
|
"@stripe/stripe-identity-react-native",
|
|
707
837
|
"@stripe/stripe-react-native",
|
|
@@ -720,7 +850,6 @@ var LAZY_STUB_PATTERNS = [
|
|
|
720
850
|
"expo-in-app-updates",
|
|
721
851
|
"expo-mesh-gradient",
|
|
722
852
|
"expo-modules-core",
|
|
723
|
-
"expo-share-extension",
|
|
724
853
|
"expo-superwall",
|
|
725
854
|
"freerasp-react-native",
|
|
726
855
|
"klaviyo-react-native-sdk",
|
|
@@ -735,7 +864,6 @@ var LAZY_STUB_PATTERNS = [
|
|
|
735
864
|
"react-native-advanced-input-mask",
|
|
736
865
|
"react-native-agora",
|
|
737
866
|
"react-native-android-location-enabler",
|
|
738
|
-
"react-native-android-widget",
|
|
739
867
|
"react-native-animateable-text",
|
|
740
868
|
"react-native-app-clip",
|
|
741
869
|
"react-native-appsflyer",
|
|
@@ -812,7 +940,6 @@ var LAZY_STUB_PATTERNS = [
|
|
|
812
940
|
"react-native-share-menu",
|
|
813
941
|
"react-native-shared-element",
|
|
814
942
|
"react-native-simple-toast",
|
|
815
|
-
"react-native-skia",
|
|
816
943
|
"react-native-spinkit",
|
|
817
944
|
"react-native-ssl-public-key-pinning",
|
|
818
945
|
"react-native-star-io10",
|
|
@@ -876,7 +1003,6 @@ var LIGHT_NATIVE_PACKAGE_NAMES = [
|
|
|
876
1003
|
"@allboatsrise/expo-marketingcloudsdk",
|
|
877
1004
|
"@ammarahmed/react-native-eventsource",
|
|
878
1005
|
"@ammarahmed/react-native-share-extension",
|
|
879
|
-
"@ammarahmed/react-native-sodium",
|
|
880
1006
|
"@ammarahmed/react-native-upload",
|
|
881
1007
|
"@amplitude/analytics-react-native",
|
|
882
1008
|
"@amplitude/experiment-react-native-client",
|
|
@@ -1232,7 +1358,6 @@ var LIGHT_NATIVE_PACKAGE_NAMES = [
|
|
|
1232
1358
|
"expo-ai-kit",
|
|
1233
1359
|
"expo-app-blocker",
|
|
1234
1360
|
"expo-audio-stream-pcm",
|
|
1235
|
-
"expo-barcode-scanner",
|
|
1236
1361
|
"expo-brownfield",
|
|
1237
1362
|
"expo-check-installed-apps",
|
|
1238
1363
|
"expo-esim",
|
|
@@ -1447,6 +1572,7 @@ var LIGHT_NATIVE_PACKAGE_NAMES = [
|
|
|
1447
1572
|
"react-native-kochava-tracker",
|
|
1448
1573
|
"react-native-launch-navigator",
|
|
1449
1574
|
"react-native-layout-guides",
|
|
1575
|
+
"react-native-live-audio-stream",
|
|
1450
1576
|
"react-native-local-resource",
|
|
1451
1577
|
"react-native-marigold",
|
|
1452
1578
|
"react-native-marketingcloudsdk",
|
|
@@ -2619,6 +2745,7 @@ var NATIVE_RUNTIME_PACKAGE_NAMES = [
|
|
|
2619
2745
|
...NATIVE_STUB_PACKAGE_NAMES,
|
|
2620
2746
|
...LIGHT_NATIVE_PACKAGE_NAMES,
|
|
2621
2747
|
"@ammarahmed/react-native-background-fetch",
|
|
2748
|
+
"@ammarahmed/react-native-sodium",
|
|
2622
2749
|
"@bsky.app/react-native-uitextview",
|
|
2623
2750
|
"@bsky.app/video",
|
|
2624
2751
|
"@datadog/mobile-react-native-webview",
|
|
@@ -3460,12 +3587,6 @@ var COMPAT_STUBS = {
|
|
|
3460
3587
|
runtimeTier: "none",
|
|
3461
3588
|
buildResolvers: ["vite"]
|
|
3462
3589
|
},
|
|
3463
|
-
expoShareExtension: {
|
|
3464
|
-
specifier: "expo-share-extension",
|
|
3465
|
-
stubFile: "noop-sdks-extra/expo-share-extension.ts",
|
|
3466
|
-
runtimeTier: "none",
|
|
3467
|
-
buildResolvers: ["vite"]
|
|
3468
|
-
},
|
|
3469
3590
|
expoHealthConnect: {
|
|
3470
3591
|
specifier: "expo-health-connect",
|
|
3471
3592
|
stubFile: "noop-sdks-extra/expo-health-connect.ts",
|
|
@@ -3498,6 +3619,330 @@ var COMPAT_STUBS = {
|
|
|
3498
3619
|
}
|
|
3499
3620
|
};
|
|
3500
3621
|
|
|
3622
|
+
// src/installed-native-build-options.ts
|
|
3623
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3624
|
+
var import_node_fs4 = __toESM(require("node:fs"), 1);
|
|
3625
|
+
var import_node_path4 = __toESM(require("node:path"), 1);
|
|
3626
|
+
|
|
3627
|
+
// ../peach-compat/src/version-range.ts
|
|
3628
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3629
|
+
var ANY_BOUNDS = {
|
|
3630
|
+
lower: null,
|
|
3631
|
+
lowerInclusive: false,
|
|
3632
|
+
upper: null,
|
|
3633
|
+
upperInclusive: false
|
|
3634
|
+
};
|
|
3635
|
+
var COMPARATOR = /\s*(?:[<>]=?|[=^~])?\s*[^\s]+/g;
|
|
3636
|
+
function compareVersions(left, right) {
|
|
3637
|
+
if (left.major !== right.major) return left.major < right.major ? -1 : 1;
|
|
3638
|
+
if (left.minor !== right.minor) return left.minor < right.minor ? -1 : 1;
|
|
3639
|
+
if (left.patch !== right.patch) return left.patch < right.patch ? -1 : 1;
|
|
3640
|
+
if (left.prerelease.length === 0) return right.prerelease.length === 0 ? 0 : 1;
|
|
3641
|
+
if (right.prerelease.length === 0) return -1;
|
|
3642
|
+
const length = Math.max(left.prerelease.length, right.prerelease.length);
|
|
3643
|
+
for (let index = 0; index < length; index++) {
|
|
3644
|
+
const leftPart = left.prerelease[index];
|
|
3645
|
+
const rightPart = right.prerelease[index];
|
|
3646
|
+
if (leftPart === void 0) return -1;
|
|
3647
|
+
if (rightPart === void 0) return 1;
|
|
3648
|
+
if (leftPart === rightPart) continue;
|
|
3649
|
+
const leftNumeric = /^\d+$/.test(leftPart);
|
|
3650
|
+
const rightNumeric = /^\d+$/.test(rightPart);
|
|
3651
|
+
if (leftNumeric && rightNumeric) return Number(leftPart) < Number(rightPart) ? -1 : 1;
|
|
3652
|
+
if (leftNumeric !== rightNumeric) return leftNumeric ? -1 : 1;
|
|
3653
|
+
return leftPart < rightPart ? -1 : 1;
|
|
3654
|
+
}
|
|
3655
|
+
return 0;
|
|
3656
|
+
}
|
|
3657
|
+
function parseComparator(input) {
|
|
3658
|
+
const token = input.trim();
|
|
3659
|
+
if (token === "" || token === "*" || token === "x" || token === "X") {
|
|
3660
|
+
return ANY_BOUNDS;
|
|
3661
|
+
}
|
|
3662
|
+
const match = /^(>=|<=|>|<|=|\^|~)?\s*v?(\d+|[xX*])(?:\.(\d+|[xX*]))?(?:\.(\d+|[xX*]))?(?:-([0-9A-Za-z.-]+))?(?:\+[0-9A-Za-z.-]+)?$/.exec(
|
|
3663
|
+
token
|
|
3664
|
+
);
|
|
3665
|
+
if (!match) return null;
|
|
3666
|
+
const operator = match[1] ?? "=";
|
|
3667
|
+
const wildcard = (part) => part === void 0 || part === "x" || part === "X" || part === "*";
|
|
3668
|
+
if (wildcard(match[2])) return ANY_BOUNDS;
|
|
3669
|
+
const major = Number(match[2]);
|
|
3670
|
+
const minor = wildcard(match[3]) ? null : Number(match[3]);
|
|
3671
|
+
const patch = wildcard(match[4]) ? null : Number(match[4]);
|
|
3672
|
+
const floor = {
|
|
3673
|
+
major,
|
|
3674
|
+
minor: minor ?? 0,
|
|
3675
|
+
patch: patch ?? 0,
|
|
3676
|
+
prerelease: match[5] ? match[5].split(".") : []
|
|
3677
|
+
};
|
|
3678
|
+
if (operator === ">") {
|
|
3679
|
+
return { ...ANY_BOUNDS, lower: floor, lowerInclusive: false };
|
|
3680
|
+
}
|
|
3681
|
+
if (operator === ">=") {
|
|
3682
|
+
return { ...ANY_BOUNDS, lower: floor, lowerInclusive: true };
|
|
3683
|
+
}
|
|
3684
|
+
if (operator === "<") {
|
|
3685
|
+
return { ...ANY_BOUNDS, upper: floor, upperInclusive: false };
|
|
3686
|
+
}
|
|
3687
|
+
if (operator === "<=") {
|
|
3688
|
+
return { ...ANY_BOUNDS, upper: floor, upperInclusive: true };
|
|
3689
|
+
}
|
|
3690
|
+
let upper;
|
|
3691
|
+
if (operator === "^") {
|
|
3692
|
+
upper = major !== 0 ? { major: major + 1, minor: 0, patch: 0, prerelease: [] } : (minor ?? 0) !== 0 || minor === null ? { major: 0, minor: (minor ?? 0) + 1, patch: 0, prerelease: [] } : { major: 0, minor: 0, patch: (patch ?? 0) + 1, prerelease: [] };
|
|
3693
|
+
} else if (operator === "~") {
|
|
3694
|
+
upper = minor === null ? { major: major + 1, minor: 0, patch: 0, prerelease: [] } : { major, minor: minor + 1, patch: 0, prerelease: [] };
|
|
3695
|
+
} else if (minor === null) {
|
|
3696
|
+
upper = { major: major + 1, minor: 0, patch: 0, prerelease: [] };
|
|
3697
|
+
} else if (patch === null) {
|
|
3698
|
+
upper = { major, minor: minor + 1, patch: 0, prerelease: [] };
|
|
3699
|
+
} else {
|
|
3700
|
+
return {
|
|
3701
|
+
lower: floor,
|
|
3702
|
+
lowerInclusive: true,
|
|
3703
|
+
upper: floor,
|
|
3704
|
+
upperInclusive: true
|
|
3705
|
+
};
|
|
3706
|
+
}
|
|
3707
|
+
return {
|
|
3708
|
+
lower: floor,
|
|
3709
|
+
lowerInclusive: true,
|
|
3710
|
+
upper,
|
|
3711
|
+
upperInclusive: false
|
|
3712
|
+
};
|
|
3713
|
+
}
|
|
3714
|
+
function stricterLower(left, right) {
|
|
3715
|
+
if (!left.lower) return { lower: right.lower, lowerInclusive: right.lowerInclusive };
|
|
3716
|
+
if (!right.lower) return { lower: left.lower, lowerInclusive: left.lowerInclusive };
|
|
3717
|
+
const order = compareVersions(left.lower, right.lower);
|
|
3718
|
+
if (order > 0) return { lower: left.lower, lowerInclusive: left.lowerInclusive };
|
|
3719
|
+
if (order < 0) return { lower: right.lower, lowerInclusive: right.lowerInclusive };
|
|
3720
|
+
return {
|
|
3721
|
+
lower: left.lower,
|
|
3722
|
+
lowerInclusive: left.lowerInclusive && right.lowerInclusive
|
|
3723
|
+
};
|
|
3724
|
+
}
|
|
3725
|
+
function stricterUpper(left, right) {
|
|
3726
|
+
if (!left.upper) return { upper: right.upper, upperInclusive: right.upperInclusive };
|
|
3727
|
+
if (!right.upper) return { upper: left.upper, upperInclusive: left.upperInclusive };
|
|
3728
|
+
const order = compareVersions(left.upper, right.upper);
|
|
3729
|
+
if (order < 0) return { upper: left.upper, upperInclusive: left.upperInclusive };
|
|
3730
|
+
if (order > 0) return { upper: right.upper, upperInclusive: right.upperInclusive };
|
|
3731
|
+
return {
|
|
3732
|
+
upper: left.upper,
|
|
3733
|
+
upperInclusive: left.upperInclusive && right.upperInclusive
|
|
3734
|
+
};
|
|
3735
|
+
}
|
|
3736
|
+
function hasValues(bounds) {
|
|
3737
|
+
if (!bounds.lower || !bounds.upper) return true;
|
|
3738
|
+
const order = compareVersions(bounds.lower, bounds.upper);
|
|
3739
|
+
return order < 0 || order === 0 && bounds.lowerInclusive && bounds.upperInclusive;
|
|
3740
|
+
}
|
|
3741
|
+
function parseRange(input) {
|
|
3742
|
+
const groups = input.split("||");
|
|
3743
|
+
const parsed = [];
|
|
3744
|
+
for (const group of groups) {
|
|
3745
|
+
const tokens = group.trim().match(COMPARATOR) ?? [];
|
|
3746
|
+
if (tokens.length === 0) return null;
|
|
3747
|
+
let bounds = ANY_BOUNDS;
|
|
3748
|
+
for (const token of tokens) {
|
|
3749
|
+
const comparator = parseComparator(token);
|
|
3750
|
+
if (!comparator) return null;
|
|
3751
|
+
bounds = {
|
|
3752
|
+
...stricterLower(bounds, comparator),
|
|
3753
|
+
...stricterUpper(bounds, comparator)
|
|
3754
|
+
};
|
|
3755
|
+
}
|
|
3756
|
+
if (!hasValues(bounds)) return null;
|
|
3757
|
+
parsed.push(bounds);
|
|
3758
|
+
}
|
|
3759
|
+
return parsed;
|
|
3760
|
+
}
|
|
3761
|
+
function containsBounds(container, contained) {
|
|
3762
|
+
if (container.lower) {
|
|
3763
|
+
if (!contained.lower) return false;
|
|
3764
|
+
const order = compareVersions(container.lower, contained.lower);
|
|
3765
|
+
if (order > 0) return false;
|
|
3766
|
+
if (order === 0 && contained.lowerInclusive && !container.lowerInclusive) return false;
|
|
3767
|
+
}
|
|
3768
|
+
if (container.upper) {
|
|
3769
|
+
if (!contained.upper) return false;
|
|
3770
|
+
const order = compareVersions(container.upper, contained.upper);
|
|
3771
|
+
if (order < 0) return false;
|
|
3772
|
+
if (order === 0 && contained.upperInclusive && !container.upperInclusive) return false;
|
|
3773
|
+
}
|
|
3774
|
+
return true;
|
|
3775
|
+
}
|
|
3776
|
+
function overlapsBounds(left, right) {
|
|
3777
|
+
const intersection = {
|
|
3778
|
+
...stricterLower(left, right),
|
|
3779
|
+
...stricterUpper(left, right)
|
|
3780
|
+
};
|
|
3781
|
+
return hasValues(intersection);
|
|
3782
|
+
}
|
|
3783
|
+
function resolveCompatVersionRange(availableRegistryRanges, declaredVersion) {
|
|
3784
|
+
const declaredGroups = parseRange(declaredVersion);
|
|
3785
|
+
const registryGroups = availableRegistryRanges.map((range) => ({
|
|
3786
|
+
range,
|
|
3787
|
+
bounds: parseRange(range)
|
|
3788
|
+
}));
|
|
3789
|
+
if (!declaredGroups || registryGroups.some((candidate) => !candidate.bounds)) {
|
|
3790
|
+
return {
|
|
3791
|
+
status: "unresolved",
|
|
3792
|
+
declaredVersion,
|
|
3793
|
+
availableRegistryRanges
|
|
3794
|
+
};
|
|
3795
|
+
}
|
|
3796
|
+
let selectedRange = null;
|
|
3797
|
+
for (const declared of declaredGroups) {
|
|
3798
|
+
const containing = registryGroups.filter(
|
|
3799
|
+
(candidate2) => candidate2.bounds?.length === 1 && containsBounds(candidate2.bounds[0], declared)
|
|
3800
|
+
);
|
|
3801
|
+
if (containing.length !== 1) {
|
|
3802
|
+
const overlaps = registryGroups.some(
|
|
3803
|
+
(candidate2) => candidate2.bounds?.some((bounds) => overlapsBounds(bounds, declared))
|
|
3804
|
+
);
|
|
3805
|
+
return {
|
|
3806
|
+
status: overlaps ? "unresolved" : "unmatched",
|
|
3807
|
+
declaredVersion,
|
|
3808
|
+
availableRegistryRanges
|
|
3809
|
+
};
|
|
3810
|
+
}
|
|
3811
|
+
const candidate = containing[0].range;
|
|
3812
|
+
if (selectedRange && selectedRange !== candidate) {
|
|
3813
|
+
return {
|
|
3814
|
+
status: "unresolved",
|
|
3815
|
+
declaredVersion,
|
|
3816
|
+
availableRegistryRanges
|
|
3817
|
+
};
|
|
3818
|
+
}
|
|
3819
|
+
selectedRange = candidate;
|
|
3820
|
+
}
|
|
3821
|
+
if (!selectedRange) {
|
|
3822
|
+
return {
|
|
3823
|
+
status: "unresolved",
|
|
3824
|
+
declaredVersion,
|
|
3825
|
+
availableRegistryRanges
|
|
3826
|
+
};
|
|
3827
|
+
}
|
|
3828
|
+
return {
|
|
3829
|
+
status: "matched",
|
|
3830
|
+
declaredVersion,
|
|
3831
|
+
registryRange: selectedRange,
|
|
3832
|
+
availableRegistryRanges
|
|
3833
|
+
};
|
|
3834
|
+
}
|
|
3835
|
+
|
|
3836
|
+
// src/installed-native-build-options.ts
|
|
3837
|
+
var RIVE_PACKAGE = "@rive-app/react-native";
|
|
3838
|
+
var RIVE_05 = [">=0.5.0 <0.6.0"];
|
|
3839
|
+
function missing(error) {
|
|
3840
|
+
return error instanceof Error && "code" in error && error.code === "ENOENT";
|
|
3841
|
+
}
|
|
3842
|
+
function answerSync(step) {
|
|
3843
|
+
try {
|
|
3844
|
+
if (step.type === "realpath") return import_node_fs4.default.realpathSync(step.path);
|
|
3845
|
+
if (step.type === "read") return import_node_fs4.default.readFileSync(step.path, "utf8");
|
|
3846
|
+
if (step.type === "isDirectory") return import_node_fs4.default.statSync(step.path).isDirectory();
|
|
3847
|
+
return import_node_fs4.default.readdirSync(step.path, { withFileTypes: true }).map((entry) => ({
|
|
3848
|
+
name: entry.name,
|
|
3849
|
+
directory: entry.isDirectory(),
|
|
3850
|
+
symbolicLink: entry.isSymbolicLink()
|
|
3851
|
+
}));
|
|
3852
|
+
} catch (error) {
|
|
3853
|
+
if (missing(error)) return null;
|
|
3854
|
+
throw error;
|
|
3855
|
+
}
|
|
3856
|
+
}
|
|
3857
|
+
async function answerAsync(step) {
|
|
3858
|
+
try {
|
|
3859
|
+
if (step.type === "realpath") return await import_node_fs4.default.promises.realpath(step.path);
|
|
3860
|
+
if (step.type === "read") return await import_node_fs4.default.promises.readFile(step.path, "utf8");
|
|
3861
|
+
if (step.type === "isDirectory")
|
|
3862
|
+
return (await import_node_fs4.default.promises.stat(step.path)).isDirectory();
|
|
3863
|
+
return (await import_node_fs4.default.promises.readdir(step.path, { withFileTypes: true })).map(
|
|
3864
|
+
(entry) => ({
|
|
3865
|
+
name: entry.name,
|
|
3866
|
+
directory: entry.isDirectory(),
|
|
3867
|
+
symbolicLink: entry.isSymbolicLink()
|
|
3868
|
+
})
|
|
3869
|
+
);
|
|
3870
|
+
} catch (error) {
|
|
3871
|
+
if (missing(error)) return null;
|
|
3872
|
+
throw error;
|
|
3873
|
+
}
|
|
3874
|
+
}
|
|
3875
|
+
function needsRiveOptions(versions) {
|
|
3876
|
+
const version = versions[RIVE_PACKAGE];
|
|
3877
|
+
return version !== void 0 && resolveCompatVersionRange(RIVE_05, version).status === "matched";
|
|
3878
|
+
}
|
|
3879
|
+
function unsupported(file, line) {
|
|
3880
|
+
throw new Error(
|
|
3881
|
+
`${file}:${line}: unsupported $UseRiveLegacy; use one column-0 literal assignment in ios/Podfile`
|
|
3882
|
+
);
|
|
3883
|
+
}
|
|
3884
|
+
function* rubyFiles(directory, seen, iosRoot = false) {
|
|
3885
|
+
const real = yield { type: "realpath", path: directory };
|
|
3886
|
+
if (real === null) return [];
|
|
3887
|
+
if (typeof real !== "string") throw new Error(`cannot inspect ${directory}`);
|
|
3888
|
+
if (seen.has(real)) return [];
|
|
3889
|
+
seen.add(real);
|
|
3890
|
+
const entries = yield { type: "directory", path: directory };
|
|
3891
|
+
if (entries === null) return [];
|
|
3892
|
+
if (!Array.isArray(entries)) throw new Error(`cannot inspect ${directory}`);
|
|
3893
|
+
const files = [];
|
|
3894
|
+
for (const entry of entries.sort((a, b) => a.name.localeCompare(b.name))) {
|
|
3895
|
+
if (iosRoot && (entry.name === "Pods" || entry.name === "build")) continue;
|
|
3896
|
+
const target = import_node_path4.default.join(directory, entry.name);
|
|
3897
|
+
let isDirectory = entry.directory;
|
|
3898
|
+
if (entry.symbolicLink)
|
|
3899
|
+
isDirectory = (yield { type: "isDirectory", path: target }) === true;
|
|
3900
|
+
if (isDirectory) files.push(...yield* rubyFiles(target, seen));
|
|
3901
|
+
else if (entry.name.endsWith(".rb")) files.push(target);
|
|
3902
|
+
}
|
|
3903
|
+
return files;
|
|
3904
|
+
}
|
|
3905
|
+
function* nativeBuildOptionsWalk(projectRoot, versions, environment) {
|
|
3906
|
+
if (!needsRiveOptions(versions)) return {};
|
|
3907
|
+
if (environment.USE_RIVE_LEGACY === "1" || environment.USE_RIVE_LEGACY === "true")
|
|
3908
|
+
return { [RIVE_PACKAGE]: { USE_RIVE_LEGACY: true } };
|
|
3909
|
+
const ios = import_node_path4.default.join(projectRoot, "ios");
|
|
3910
|
+
const podfile = import_node_path4.default.join(ios, "Podfile");
|
|
3911
|
+
const files = [podfile, ...yield* rubyFiles(ios, /* @__PURE__ */ new Set(), true)];
|
|
3912
|
+
let value = false;
|
|
3913
|
+
let assigned = false;
|
|
3914
|
+
for (const file of files) {
|
|
3915
|
+
const source = yield { type: "read", path: file };
|
|
3916
|
+
if (source === null) continue;
|
|
3917
|
+
if (typeof source !== "string") throw new Error(`cannot inspect ${file}`);
|
|
3918
|
+
const lines = source.split(/\r?\n/);
|
|
3919
|
+
for (const [index, line] of lines.entries()) {
|
|
3920
|
+
const occurrences = [...line.matchAll(/\$UseRiveLegacy\b/g)];
|
|
3921
|
+
if (!occurrences.length) continue;
|
|
3922
|
+
const literal = /^\$UseRiveLegacy = (true|false)\s*(?:#.*)?$/.exec(line);
|
|
3923
|
+
if (file !== podfile || occurrences.length !== 1 || !literal || assigned)
|
|
3924
|
+
unsupported(file, index + 1);
|
|
3925
|
+
assigned = true;
|
|
3926
|
+
value = literal[1] === "true";
|
|
3927
|
+
}
|
|
3928
|
+
}
|
|
3929
|
+
return { [RIVE_PACKAGE]: { USE_RIVE_LEGACY: value } };
|
|
3930
|
+
}
|
|
3931
|
+
function readInstalledNativeBuildOptions(projectRoot, versions, environment = process.env) {
|
|
3932
|
+
const walk = nativeBuildOptionsWalk(projectRoot, versions, environment);
|
|
3933
|
+
for (let step = walk.next(); ; ) {
|
|
3934
|
+
if (step.done) return step.value;
|
|
3935
|
+
step = walk.next(answerSync(step.value));
|
|
3936
|
+
}
|
|
3937
|
+
}
|
|
3938
|
+
async function readInstalledNativeBuildOptionsAsync(projectRoot, versions, environment = process.env) {
|
|
3939
|
+
const walk = nativeBuildOptionsWalk(projectRoot, versions, environment);
|
|
3940
|
+
for (let step = walk.next(); ; ) {
|
|
3941
|
+
if (step.done) return step.value;
|
|
3942
|
+
step = walk.next(await answerAsync(step.value));
|
|
3943
|
+
}
|
|
3944
|
+
}
|
|
3945
|
+
|
|
3501
3946
|
// src/stub-pattern-matcher.ts
|
|
3502
3947
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3503
3948
|
function extractPackageFromPath(modulePath) {
|
|
@@ -3540,7 +3985,7 @@ function parseManifest(source) {
|
|
|
3540
3985
|
function isMissing(error) {
|
|
3541
3986
|
return error instanceof Error && "code" in error && error.code === "ENOENT";
|
|
3542
3987
|
}
|
|
3543
|
-
function
|
|
3988
|
+
function answerSync2(step) {
|
|
3544
3989
|
if (step.op === "exists") return import_fs2.default.existsSync(step.path);
|
|
3545
3990
|
if (step.op === "realpath") return import_fs2.default.realpathSync(step.path);
|
|
3546
3991
|
try {
|
|
@@ -3550,7 +3995,7 @@ function answerSync(step) {
|
|
|
3550
3995
|
throw error;
|
|
3551
3996
|
}
|
|
3552
3997
|
}
|
|
3553
|
-
async function
|
|
3998
|
+
async function answerAsync2(step) {
|
|
3554
3999
|
if (step.op === "exists")
|
|
3555
4000
|
return import_fs2.default.promises.access(step.path).then(
|
|
3556
4001
|
() => true,
|
|
@@ -3567,13 +4012,15 @@ async function answerAsync(step) {
|
|
|
3567
4012
|
function runSync(walk) {
|
|
3568
4013
|
for (let step = walk.next(); ; ) {
|
|
3569
4014
|
if (step.done) return step.value;
|
|
3570
|
-
step = walk.next(
|
|
4015
|
+
step = walk.next(answerSync2(step.value));
|
|
3571
4016
|
}
|
|
3572
4017
|
}
|
|
3573
|
-
async function runAsync(walk) {
|
|
4018
|
+
async function runAsync(walk, inputs) {
|
|
3574
4019
|
for (let step = walk.next(); ; ) {
|
|
3575
4020
|
if (step.done) return step.value;
|
|
3576
|
-
|
|
4021
|
+
const target = step.value.path;
|
|
4022
|
+
if (!inputs.has(target)) inputs.set(target, await installFingerprint(target));
|
|
4023
|
+
step = walk.next(await answerAsync2(step.value));
|
|
3577
4024
|
}
|
|
3578
4025
|
}
|
|
3579
4026
|
function createInstalledPackageReader() {
|
|
@@ -3612,6 +4059,15 @@ function* installedVersionsWalk(projectRoot, names) {
|
|
|
3612
4059
|
const installed = yield* readInstalledPackage(projectRoot, name);
|
|
3613
4060
|
const version = installed && Reflect.get(installed.manifest, "version");
|
|
3614
4061
|
if (typeof version === "string" && version.length > 0) versions[name] = version;
|
|
4062
|
+
if (name === "react-native-worklets" && installed) {
|
|
4063
|
+
const defaults = yield* readManifest(
|
|
4064
|
+
import_path2.default.join(installed.root, "src/featureFlags/staticFlags.json")
|
|
4065
|
+
);
|
|
4066
|
+
if (defaults) {
|
|
4067
|
+
const app = yield* readManifest(import_path2.default.join(projectRoot, "package.json"));
|
|
4068
|
+
versions[WORKLETS_STATIC_FLAGS_KEY] = resolveWorkletsStaticFlags(defaults, app);
|
|
4069
|
+
}
|
|
4070
|
+
}
|
|
3615
4071
|
}
|
|
3616
4072
|
return versions;
|
|
3617
4073
|
}
|
|
@@ -3619,6 +4075,7 @@ function* nativePackageVersionsWalk(projectRoot) {
|
|
|
3619
4075
|
const appRoot = yield* realpath(projectRoot);
|
|
3620
4076
|
const nativeNames = /* @__PURE__ */ new Set();
|
|
3621
4077
|
for (const specifier of [
|
|
4078
|
+
"react",
|
|
3622
4079
|
"react-native",
|
|
3623
4080
|
...NATIVE_RUNTIME_PACKAGE_NAMES,
|
|
3624
4081
|
...LAZY_STUB_PATTERNS,
|
|
@@ -3659,51 +4116,47 @@ function* nativePackageVersionsWalk(projectRoot) {
|
|
|
3659
4116
|
return yield* installedVersionsWalk(projectRoot, needed);
|
|
3660
4117
|
}
|
|
3661
4118
|
function readInstalledNativePackageVersions(projectRoot) {
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
"node_modules/.package-lock.json",
|
|
3673
|
-
"node_modules/.yarn-integrity",
|
|
3674
|
-
"node_modules/.modules.yaml"
|
|
3675
|
-
];
|
|
3676
|
-
async function installFingerprint(projectRoot) {
|
|
3677
|
-
const appRoot = await import_fs2.default.promises.realpath(projectRoot);
|
|
3678
|
-
const targets = [];
|
|
3679
|
-
for (let dir = appRoot; ; ) {
|
|
3680
|
-
if (import_path2.default.basename(dir) !== "node_modules")
|
|
3681
|
-
for (const file of INSTALL_RECORD_FILES) targets.push(import_path2.default.join(dir, file));
|
|
3682
|
-
const parent = import_path2.default.dirname(dir);
|
|
3683
|
-
if (parent === dir) break;
|
|
3684
|
-
dir = parent;
|
|
3685
|
-
}
|
|
3686
|
-
const stats = await Promise.all(
|
|
3687
|
-
targets.map(
|
|
3688
|
-
(target) => import_fs2.default.promises.stat(target).then(
|
|
3689
|
-
(stat) => `${stat.ino}:${stat.size}:${stat.mtimeMs}`,
|
|
3690
|
-
() => ""
|
|
3691
|
-
)
|
|
3692
|
-
)
|
|
4119
|
+
const versions = runSync(nativePackageVersionsWalk(projectRoot));
|
|
4120
|
+
const options = readInstalledNativeBuildOptions(projectRoot, versions);
|
|
4121
|
+
if (Object.keys(options).length)
|
|
4122
|
+
versions[NATIVE_BUILD_OPTIONS_KEY] = JSON.stringify(options);
|
|
4123
|
+
return versions;
|
|
4124
|
+
}
|
|
4125
|
+
async function installFingerprint(target) {
|
|
4126
|
+
return import_fs2.default.promises.stat(target).then(
|
|
4127
|
+
(stat) => `${stat.dev}:${stat.ino}:${stat.size}:${stat.mtimeMs}:${stat.ctimeMs}`,
|
|
4128
|
+
() => ""
|
|
3693
4129
|
);
|
|
3694
|
-
return `${appRoot}
|
|
3695
|
-
${stats.join("\n")}`;
|
|
3696
4130
|
}
|
|
3697
4131
|
var scans = /* @__PURE__ */ new Map();
|
|
3698
4132
|
async function readInstalledNativePackageVersionsAsync(projectRoot) {
|
|
3699
|
-
const fingerprint = await installFingerprint(projectRoot);
|
|
3700
4133
|
const cached = scans.get(projectRoot);
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
4134
|
+
let scan;
|
|
4135
|
+
if (cached) {
|
|
4136
|
+
await cached.versions;
|
|
4137
|
+
const unchanged = await Promise.all(
|
|
4138
|
+
[...cached.inputs].map(
|
|
4139
|
+
async ([target, fingerprint]) => await installFingerprint(target) === fingerprint
|
|
4140
|
+
)
|
|
4141
|
+
);
|
|
4142
|
+
if (unchanged.every(Boolean)) scan = cached.versions;
|
|
4143
|
+
}
|
|
4144
|
+
if (!scan) {
|
|
4145
|
+
const current = scans.get(projectRoot);
|
|
4146
|
+
if (current && current !== cached) scan = current.versions;
|
|
4147
|
+
else {
|
|
4148
|
+
const inputs = /* @__PURE__ */ new Map();
|
|
4149
|
+
scan = runAsync(nativePackageVersionsWalk(projectRoot), inputs);
|
|
4150
|
+
scans.set(projectRoot, { inputs, versions: scan });
|
|
4151
|
+
scan.catch(() => {
|
|
4152
|
+
if (scans.get(projectRoot)?.versions === scan) scans.delete(projectRoot);
|
|
4153
|
+
});
|
|
4154
|
+
}
|
|
4155
|
+
}
|
|
4156
|
+
const versions = { ...await scan };
|
|
4157
|
+
const options = await readInstalledNativeBuildOptionsAsync(projectRoot, versions);
|
|
4158
|
+
if (Object.keys(options).length)
|
|
4159
|
+
versions[NATIVE_BUILD_OPTIONS_KEY] = JSON.stringify(options);
|
|
3707
4160
|
return versions;
|
|
3708
4161
|
}
|
|
3709
4162
|
|
|
@@ -3714,9 +4167,9 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
|
3714
4167
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3715
4168
|
var import_child_process = require("child_process");
|
|
3716
4169
|
var import_promises = require("fs/promises");
|
|
3717
|
-
var
|
|
4170
|
+
var import_node_fs5 = require("node:fs");
|
|
3718
4171
|
var import_node_os2 = require("node:os");
|
|
3719
|
-
var
|
|
4172
|
+
var import_node_path5 = require("node:path");
|
|
3720
4173
|
|
|
3721
4174
|
// src/config.ts
|
|
3722
4175
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -3751,7 +4204,93 @@ function parseExpoManifestBody(body) {
|
|
|
3751
4204
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3752
4205
|
|
|
3753
4206
|
// src/dev-bundle-resolution.ts
|
|
4207
|
+
function shouldProxyLoopbackProbe(targetUrl, pageOrigin) {
|
|
4208
|
+
try {
|
|
4209
|
+
const target = new URL(targetUrl);
|
|
4210
|
+
const page = new URL(pageOrigin);
|
|
4211
|
+
return isLoopbackHost(target.hostname) && isLoopbackHost(page.hostname) && target.origin !== page.origin;
|
|
4212
|
+
} catch {
|
|
4213
|
+
return false;
|
|
4214
|
+
}
|
|
4215
|
+
}
|
|
4216
|
+
async function fetchDevProbe(targetUrl, pageOrigin, init) {
|
|
4217
|
+
const requestInit = {
|
|
4218
|
+
...init,
|
|
4219
|
+
cache: init?.cache ?? "no-store"
|
|
4220
|
+
};
|
|
4221
|
+
if (!pageOrigin || !shouldProxyLoopbackProbe(targetUrl, pageOrigin)) {
|
|
4222
|
+
return fetch(targetUrl, requestInit);
|
|
4223
|
+
}
|
|
4224
|
+
return fetch(
|
|
4225
|
+
`${pageOrigin}/__fetch-proxy?url=${encodeURIComponent(targetUrl)}`,
|
|
4226
|
+
requestInit
|
|
4227
|
+
);
|
|
4228
|
+
}
|
|
3754
4229
|
var MANIFEST_PROBE_TIMEOUT_MS = 3e4;
|
|
4230
|
+
var manifestRequests = /* @__PURE__ */ new Map();
|
|
4231
|
+
async function startDevManifestRequest(normalizedBaseUrl, pageOrigin, signal) {
|
|
4232
|
+
const init = { headers: { "expo-platform": "ios" }, signal };
|
|
4233
|
+
const res = pageOrigin ? await fetchDevProbe(`${normalizedBaseUrl}/`, pageOrigin, init) : await (await Promise.resolve().then(() => (init_node_http_fetch(), node_http_fetch_exports))).nodeHttpFetch(`${normalizedBaseUrl}/`, init);
|
|
4234
|
+
const body = await res.arrayBuffer();
|
|
4235
|
+
return new Response(body.byteLength ? body : null, {
|
|
4236
|
+
status: res.status,
|
|
4237
|
+
headers: res.headers
|
|
4238
|
+
});
|
|
4239
|
+
}
|
|
4240
|
+
async function fetchDevManifest(baseUrl, pageOrigin, options = {}) {
|
|
4241
|
+
options.signal?.throwIfAborted();
|
|
4242
|
+
const normalizedBaseUrl = baseUrl.replace(/\/+$/, "");
|
|
4243
|
+
let request = manifestRequests.get(normalizedBaseUrl);
|
|
4244
|
+
if (!request) {
|
|
4245
|
+
const controller = new AbortController();
|
|
4246
|
+
const promise = startDevManifestRequest(
|
|
4247
|
+
normalizedBaseUrl,
|
|
4248
|
+
pageOrigin,
|
|
4249
|
+
controller.signal
|
|
4250
|
+
).finally(() => {
|
|
4251
|
+
if (manifestRequests.get(normalizedBaseUrl)?.controller === controller)
|
|
4252
|
+
manifestRequests.delete(normalizedBaseUrl);
|
|
4253
|
+
});
|
|
4254
|
+
request = { promise, controller, clients: 0 };
|
|
4255
|
+
manifestRequests.set(normalizedBaseUrl, request);
|
|
4256
|
+
}
|
|
4257
|
+
const current = request;
|
|
4258
|
+
current.clients++;
|
|
4259
|
+
const waitMs = options.waitMs === void 0 ? MANIFEST_PROBE_TIMEOUT_MS : options.waitMs;
|
|
4260
|
+
let deadline;
|
|
4261
|
+
let onAbort;
|
|
4262
|
+
try {
|
|
4263
|
+
const stopped = new Promise((_, reject) => {
|
|
4264
|
+
onAbort = () => {
|
|
4265
|
+
const reason = options.signal?.reason;
|
|
4266
|
+
reject(
|
|
4267
|
+
reason instanceof Error ? reason : new Error("Metro manifest request canceled", { cause: reason })
|
|
4268
|
+
);
|
|
4269
|
+
};
|
|
4270
|
+
options.signal?.addEventListener("abort", onAbort, { once: true });
|
|
4271
|
+
if (options.signal?.aborted) onAbort();
|
|
4272
|
+
if (waitMs !== null)
|
|
4273
|
+
deadline = setTimeout(
|
|
4274
|
+
() => reject(
|
|
4275
|
+
new Error(
|
|
4276
|
+
`Metro manifest request timed out after ${waitMs / 1e3}s: ${normalizedBaseUrl}/`
|
|
4277
|
+
)
|
|
4278
|
+
),
|
|
4279
|
+
waitMs
|
|
4280
|
+
);
|
|
4281
|
+
});
|
|
4282
|
+
return (await Promise.race([current.promise, stopped])).clone();
|
|
4283
|
+
} finally {
|
|
4284
|
+
clearTimeout(deadline);
|
|
4285
|
+
if (onAbort) options.signal?.removeEventListener("abort", onAbort);
|
|
4286
|
+
current.clients--;
|
|
4287
|
+
if (options.signal?.aborted && current.clients === 0) {
|
|
4288
|
+
if (manifestRequests.get(normalizedBaseUrl) === current)
|
|
4289
|
+
manifestRequests.delete(normalizedBaseUrl);
|
|
4290
|
+
current.controller.abort(options.signal.reason);
|
|
4291
|
+
}
|
|
4292
|
+
}
|
|
4293
|
+
}
|
|
3755
4294
|
|
|
3756
4295
|
// src/kotlinDiscoveryContract.ts
|
|
3757
4296
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -3782,8 +4321,8 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
|
3782
4321
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3783
4322
|
|
|
3784
4323
|
// scripts/dev-server-scanner.ts
|
|
3785
|
-
var LISTENER_LOCK_PATH = (0,
|
|
3786
|
-
var LISTENER_RESULT_PATH = (0,
|
|
4324
|
+
var LISTENER_LOCK_PATH = (0, import_node_path5.join)((0, import_node_os2.tmpdir)(), "peach-listener-scan.lock");
|
|
4325
|
+
var LISTENER_RESULT_PATH = (0, import_node_path5.join)((0, import_node_os2.tmpdir)(), "peach-listener-scan.result");
|
|
3787
4326
|
var LISTENER_LOCK_STALE_MS = 25e3;
|
|
3788
4327
|
var LISTENER_LOCK_WAIT_MS = 8e3;
|
|
3789
4328
|
function sleep(ms) {
|
|
@@ -3801,8 +4340,8 @@ function pidIsAlive(pid) {
|
|
|
3801
4340
|
}
|
|
3802
4341
|
function readLockOwner() {
|
|
3803
4342
|
try {
|
|
3804
|
-
const raw = (0,
|
|
3805
|
-
const mtimeMs = (0,
|
|
4343
|
+
const raw = (0, import_node_fs5.readFileSync)(LISTENER_LOCK_PATH, "utf8");
|
|
4344
|
+
const mtimeMs = (0, import_node_fs5.statSync)(LISTENER_LOCK_PATH).mtimeMs;
|
|
3806
4345
|
const pid = Number(raw.split("-")[0]);
|
|
3807
4346
|
return { raw, pid: Number.isInteger(pid) ? pid : -1, mtimeMs };
|
|
3808
4347
|
} catch {
|
|
@@ -3815,15 +4354,15 @@ function lockIsAbandoned(owner) {
|
|
|
3815
4354
|
}
|
|
3816
4355
|
function clearLock(raw) {
|
|
3817
4356
|
try {
|
|
3818
|
-
if ((0,
|
|
3819
|
-
(0,
|
|
4357
|
+
if ((0, import_node_fs5.readFileSync)(LISTENER_LOCK_PATH, "utf8") !== raw) return;
|
|
4358
|
+
(0, import_node_fs5.unlinkSync)(LISTENER_LOCK_PATH);
|
|
3820
4359
|
} catch {
|
|
3821
4360
|
}
|
|
3822
4361
|
}
|
|
3823
4362
|
function readResult() {
|
|
3824
4363
|
try {
|
|
3825
4364
|
const parsed = JSON.parse(
|
|
3826
|
-
(0,
|
|
4365
|
+
(0, import_node_fs5.readFileSync)(LISTENER_RESULT_PATH, "utf8")
|
|
3827
4366
|
);
|
|
3828
4367
|
if (!parsed || typeof parsed.token !== "string" || typeof parsed.key !== "string")
|
|
3829
4368
|
return null;
|
|
@@ -3834,8 +4373,8 @@ function readResult() {
|
|
|
3834
4373
|
}
|
|
3835
4374
|
function publishResult(payload) {
|
|
3836
4375
|
const tmp = `${LISTENER_RESULT_PATH}.${process.pid}.tmp`;
|
|
3837
|
-
(0,
|
|
3838
|
-
(0,
|
|
4376
|
+
(0, import_node_fs5.writeFileSync)(tmp, JSON.stringify(payload));
|
|
4377
|
+
(0, import_node_fs5.renameSync)(tmp, LISTENER_RESULT_PATH);
|
|
3839
4378
|
}
|
|
3840
4379
|
function throwPublished(payload) {
|
|
3841
4380
|
throw Object.assign(new Error(payload.message || "listener scan failed"), {
|
|
@@ -3878,7 +4417,7 @@ async function withListenerLock(key, body) {
|
|
|
3878
4417
|
for (; ; ) {
|
|
3879
4418
|
let fd = null;
|
|
3880
4419
|
try {
|
|
3881
|
-
fd = (0,
|
|
4420
|
+
fd = (0, import_node_fs5.openSync)(LISTENER_LOCK_PATH, "wx");
|
|
3882
4421
|
} catch (error) {
|
|
3883
4422
|
const code = error instanceof Error && "code" in error ? error.code : "";
|
|
3884
4423
|
if (code !== "EEXIST") throw error;
|
|
@@ -3887,7 +4426,7 @@ async function withListenerLock(key, body) {
|
|
|
3887
4426
|
if (owner) clearLock(owner.raw);
|
|
3888
4427
|
else {
|
|
3889
4428
|
try {
|
|
3890
|
-
(0,
|
|
4429
|
+
(0, import_node_fs5.unlinkSync)(LISTENER_LOCK_PATH);
|
|
3891
4430
|
} catch {
|
|
3892
4431
|
}
|
|
3893
4432
|
}
|
|
@@ -3903,7 +4442,7 @@ async function withListenerLock(key, body) {
|
|
|
3903
4442
|
}
|
|
3904
4443
|
if (fd === null) continue;
|
|
3905
4444
|
try {
|
|
3906
|
-
(0,
|
|
4445
|
+
(0, import_node_fs5.writeSync)(fd, token);
|
|
3907
4446
|
try {
|
|
3908
4447
|
const value = await body();
|
|
3909
4448
|
publishResult({ token, key, ok: true, value });
|
|
@@ -3920,7 +4459,7 @@ async function withListenerLock(key, body) {
|
|
|
3920
4459
|
}
|
|
3921
4460
|
} finally {
|
|
3922
4461
|
try {
|
|
3923
|
-
(0,
|
|
4462
|
+
(0, import_node_fs5.closeSync)(fd);
|
|
3924
4463
|
} catch {
|
|
3925
4464
|
}
|
|
3926
4465
|
clearLock(token);
|
|
@@ -4222,38 +4761,38 @@ function resolveProcessCwd(pid) {
|
|
|
4222
4761
|
}
|
|
4223
4762
|
|
|
4224
4763
|
// src/metro-project-root.ts
|
|
4225
|
-
async function resolveMetroProjectRoot(bundleUrl) {
|
|
4764
|
+
async function resolveMetroProjectRoot(bundleUrl, manifestProjectRoot, options = {}) {
|
|
4226
4765
|
const origin = loopbackOriginOf(bundleUrl);
|
|
4227
4766
|
if (!origin) return null;
|
|
4228
|
-
|
|
4229
|
-
|
|
4767
|
+
options.signal?.throwIfAborted();
|
|
4768
|
+
if (manifestProjectRoot) return manifestProjectRoot;
|
|
4769
|
+
const waitMs = options.waitMs === void 0 ? MANIFEST_PROBE_TIMEOUT_MS : options.waitMs;
|
|
4770
|
+
const deadline = waitMs === null ? void 0 : AbortSignal.timeout(waitMs);
|
|
4771
|
+
const signal = deadline ? options.signal ? AbortSignal.any([options.signal, deadline]) : deadline : options.signal;
|
|
4772
|
+
const { nodeHttpFetch: nodeHttpFetch2 } = await Promise.resolve().then(() => (init_node_http_fetch(), node_http_fetch_exports));
|
|
4773
|
+
const status = await nodeHttpFetch2(`${origin}/status`, { signal });
|
|
4774
|
+
const statusBody = await status.text();
|
|
4775
|
+
const advertisedRoot = status.headers.get("X-React-Native-Project-Root");
|
|
4776
|
+
if (status.ok && advertisedRoot) return decodeURI(advertisedRoot);
|
|
4777
|
+
if (manifestProjectRoot === null) return null;
|
|
4778
|
+
const metroRunning = status.ok && statusBody.trim() === "packager-status:running";
|
|
4779
|
+
const res = await fetchDevManifest(origin, void 0, { waitMs: null, signal });
|
|
4230
4780
|
let servedManifest = false;
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
if (status.ok && advertisedRoot) return decodeURI(advertisedRoot);
|
|
4236
|
-
metroRunning = status.ok && (await status.text()).trim() === "packager-status:running";
|
|
4237
|
-
const res = await fetch(`${origin}/`, {
|
|
4238
|
-
headers: { "expo-platform": "ios", Accept: "application/json" },
|
|
4239
|
-
signal: controller.signal
|
|
4240
|
-
});
|
|
4241
|
-
if (res.ok) {
|
|
4242
|
-
const manifest = parseExpoManifestBody(await res.text());
|
|
4781
|
+
if (res.ok) {
|
|
4782
|
+
let manifest;
|
|
4783
|
+
try {
|
|
4784
|
+
manifest = parseExpoManifestBody(await res.text());
|
|
4243
4785
|
servedManifest = true;
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
root = typeof root === "object" && root !== null ? Reflect.get(root, key) : void 0;
|
|
4247
|
-
}
|
|
4248
|
-
if (typeof root === "string" && root.length > 0) return root;
|
|
4786
|
+
} catch (error) {
|
|
4787
|
+
if (res.headers.get("content-type")?.includes("json")) throw error;
|
|
4249
4788
|
}
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
}
|
|
4256
|
-
|
|
4789
|
+
let root = manifest;
|
|
4790
|
+
for (const key of ["extra", "expoClient", "_internal", "projectRoot"]) {
|
|
4791
|
+
root = typeof root === "object" && root !== null ? Reflect.get(root, key) : void 0;
|
|
4792
|
+
}
|
|
4793
|
+
if (typeof root === "string" && root.length > 0) return root;
|
|
4794
|
+
} else if (res.status !== 404 && res.status !== 405) {
|
|
4795
|
+
throw new Error(`Metro project root request failed: HTTP ${res.status} at ${origin}/`);
|
|
4257
4796
|
}
|
|
4258
4797
|
if (servedManifest || !metroRunning) return null;
|
|
4259
4798
|
const port = Number(new URL(origin).port);
|
|
@@ -4409,6 +4948,85 @@ for (const pair of process.env.PEACH_LOOPBACK_PORTS?.split(",").filter(Boolean)
|
|
|
4409
4948
|
function projectLoopbackPort(hostname, port) {
|
|
4410
4949
|
return isLoopbackHost(hostname) ? LOOPBACK_PORTS.get(port) ?? port : port;
|
|
4411
4950
|
}
|
|
4951
|
+
function projectLoopbackUrl(value) {
|
|
4952
|
+
if (LOOPBACK_PORTS.size === 0) return value;
|
|
4953
|
+
const url = new URL(value);
|
|
4954
|
+
const port = Number(
|
|
4955
|
+
url.port || (url.protocol === "https:" || url.protocol === "wss:" ? 443 : 80)
|
|
4956
|
+
);
|
|
4957
|
+
const projected = projectLoopbackPort(url.hostname, port);
|
|
4958
|
+
if (projected === port) return value;
|
|
4959
|
+
url.port = String(projected);
|
|
4960
|
+
return url.href;
|
|
4961
|
+
}
|
|
4962
|
+
|
|
4963
|
+
// src/host/network-policy.ts
|
|
4964
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4965
|
+
var import_node_path6 = require("node:path");
|
|
4966
|
+
var import_node_url = require("node:url");
|
|
4967
|
+
var NETWORK_POLICY_TIMEOUT_MS = 1e4;
|
|
4968
|
+
var NetworkPolicyDeniedError = class extends Error {
|
|
4969
|
+
code = "EPOLICY";
|
|
4970
|
+
constructor(what) {
|
|
4971
|
+
super(`network policy denied ${what}`);
|
|
4972
|
+
}
|
|
4973
|
+
};
|
|
4974
|
+
function describeEvent(event) {
|
|
4975
|
+
switch (event.kind) {
|
|
4976
|
+
case "http":
|
|
4977
|
+
return `${event.method} ${new URL(event.url).origin}`;
|
|
4978
|
+
case "websocket":
|
|
4979
|
+
return `websocket ${new URL(event.url).origin}`;
|
|
4980
|
+
case "websocket-frame":
|
|
4981
|
+
return `websocket frame opcode ${event.opcode} (${event.data.byteLength} bytes) to ${new URL(event.url).origin}`;
|
|
4982
|
+
case "tcp":
|
|
4983
|
+
return `tcp ${event.host}:${event.port}`;
|
|
4984
|
+
case "tunnel":
|
|
4985
|
+
return `tunnel ${event.host}:${event.port}`;
|
|
4986
|
+
}
|
|
4987
|
+
}
|
|
4988
|
+
function createNetworkAuthorizer(policy) {
|
|
4989
|
+
if (policy === null) return async () => true;
|
|
4990
|
+
if (policy instanceof Promise) policy.catch(() => {
|
|
4991
|
+
});
|
|
4992
|
+
return async (event) => {
|
|
4993
|
+
let allowed = false;
|
|
4994
|
+
let timer;
|
|
4995
|
+
try {
|
|
4996
|
+
const decide = await policy;
|
|
4997
|
+
allowed = await Promise.race([
|
|
4998
|
+
decide(event),
|
|
4999
|
+
new Promise((_, reject) => {
|
|
5000
|
+
timer = setTimeout(
|
|
5001
|
+
() => reject(new Error("network policy timed out")),
|
|
5002
|
+
NETWORK_POLICY_TIMEOUT_MS
|
|
5003
|
+
);
|
|
5004
|
+
})
|
|
5005
|
+
]) === true;
|
|
5006
|
+
} catch {
|
|
5007
|
+
allowed = false;
|
|
5008
|
+
} finally {
|
|
5009
|
+
clearTimeout(timer);
|
|
5010
|
+
}
|
|
5011
|
+
if (!allowed) console.error(`peach: network policy denied ${describeEvent(event)}`);
|
|
5012
|
+
return allowed;
|
|
5013
|
+
};
|
|
5014
|
+
}
|
|
5015
|
+
async function loadNetworkPolicy(file) {
|
|
5016
|
+
if (!(0, import_node_path6.isAbsolute)(file)) {
|
|
5017
|
+
throw new Error(`PEACH_NETWORK_POLICY must be an absolute path: ${file}`);
|
|
5018
|
+
}
|
|
5019
|
+
const loaded2 = await import((0, import_node_url.pathToFileURL)(file).href);
|
|
5020
|
+
const decide = Reflect.get(Object(loaded2), "default");
|
|
5021
|
+
if (typeof decide !== "function") {
|
|
5022
|
+
throw new Error(`${file} must default-export a network policy function`);
|
|
5023
|
+
}
|
|
5024
|
+
return (event) => decide(event);
|
|
5025
|
+
}
|
|
5026
|
+
var policyFile = process.env.PEACH_NETWORK_POLICY || null;
|
|
5027
|
+
var authorizeNetwork = createNetworkAuthorizer(
|
|
5028
|
+
policyFile === null ? null : loadNetworkPolicy(policyFile)
|
|
5029
|
+
);
|
|
4412
5030
|
|
|
4413
5031
|
// src/host/rolldown-bundle-forward.ts
|
|
4414
5032
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -4689,6 +5307,14 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
4689
5307
|
delete targetHeaders["transfer-encoding"];
|
|
4690
5308
|
targetHeaders["content-length"] = String(nextBody.byteLength);
|
|
4691
5309
|
}
|
|
5310
|
+
const allowed = await authorizeNetwork({
|
|
5311
|
+
kind: "http",
|
|
5312
|
+
method,
|
|
5313
|
+
url: projectLoopbackUrl(targetUrl.href),
|
|
5314
|
+
headers: targetHeaders,
|
|
5315
|
+
body: nextBody
|
|
5316
|
+
});
|
|
5317
|
+
if (!allowed) throw new NetworkPolicyDeniedError(`${method} ${targetUrl.origin}`);
|
|
4692
5318
|
const port = projectLoopbackPort(
|
|
4693
5319
|
targetUrl.hostname,
|
|
4694
5320
|
Number(targetUrl.port || (targetUrl.protocol === "https:" ? 443 : 80))
|
|
@@ -4804,6 +5430,10 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
4804
5430
|
if (!res.headersSent && reportFailure) {
|
|
4805
5431
|
const code = err?.code;
|
|
4806
5432
|
res.statusCode = 502;
|
|
5433
|
+
res.removeHeader("content-type");
|
|
5434
|
+
res.removeHeader("content-encoding");
|
|
5435
|
+
res.removeHeader("transfer-encoding");
|
|
5436
|
+
res.setHeader("content-length", "0");
|
|
4807
5437
|
res.setHeader(
|
|
4808
5438
|
FETCH_PROXY_FAILURE_HEADER,
|
|
4809
5439
|
typeof code === "string" ? code : "unknown"
|
|
@@ -4820,9 +5450,9 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
4820
5450
|
|
|
4821
5451
|
// src/host/replacement-module-handler.ts
|
|
4822
5452
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4823
|
-
var
|
|
5453
|
+
var import_node_fs6 = require("node:fs");
|
|
4824
5454
|
var import_promises4 = __toESM(require("node:fs/promises"), 1);
|
|
4825
|
-
var
|
|
5455
|
+
var import_node_path7 = __toESM(require("node:path"), 1);
|
|
4826
5456
|
|
|
4827
5457
|
// ../contrast-bundler/src/replacementModule.ts
|
|
4828
5458
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -4834,7 +5464,7 @@ var import_types = require("sucrase/dist/parser/tokenizer/types.js");
|
|
|
4834
5464
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4835
5465
|
var sep = "/";
|
|
4836
5466
|
var delimiter = ":";
|
|
4837
|
-
function
|
|
5467
|
+
function isAbsolute2(p) {
|
|
4838
5468
|
return p.charCodeAt(0) === 47;
|
|
4839
5469
|
}
|
|
4840
5470
|
function normalizeSegments(parts, allowAboveRoot) {
|
|
@@ -4852,7 +5482,7 @@ function normalizeSegments(parts, allowAboveRoot) {
|
|
|
4852
5482
|
}
|
|
4853
5483
|
function normalize(p) {
|
|
4854
5484
|
if (p.length === 0) return ".";
|
|
4855
|
-
const absolute =
|
|
5485
|
+
const absolute = isAbsolute2(p);
|
|
4856
5486
|
const trailingSlash = p.charCodeAt(p.length - 1) === 47;
|
|
4857
5487
|
const segments = normalizeSegments(p.split("/"), !absolute);
|
|
4858
5488
|
let joined = segments.join("/");
|
|
@@ -4875,7 +5505,7 @@ function resolve2(...parts) {
|
|
|
4875
5505
|
const part = parts[i];
|
|
4876
5506
|
if (part.length === 0) continue;
|
|
4877
5507
|
resolved = resolved.length > 0 ? `${part}/${resolved}` : part;
|
|
4878
|
-
absolute =
|
|
5508
|
+
absolute = isAbsolute2(part);
|
|
4879
5509
|
}
|
|
4880
5510
|
if (!absolute)
|
|
4881
5511
|
throw new Error(
|
|
@@ -4918,7 +5548,7 @@ function relative(from, to) {
|
|
|
4918
5548
|
var posix = {
|
|
4919
5549
|
sep,
|
|
4920
5550
|
delimiter,
|
|
4921
|
-
isAbsolute,
|
|
5551
|
+
isAbsolute: isAbsolute2,
|
|
4922
5552
|
normalize,
|
|
4923
5553
|
join: join3,
|
|
4924
5554
|
resolve: resolve2,
|
|
@@ -5151,16 +5781,16 @@ function sendJavaScript(req, res, source) {
|
|
|
5151
5781
|
res.end(req.method === "HEAD" ? void 0 : source);
|
|
5152
5782
|
}
|
|
5153
5783
|
function resolveReplacementModuleFile(fromFile, specifier) {
|
|
5154
|
-
const base =
|
|
5784
|
+
const base = import_node_path7.default.resolve(import_node_path7.default.dirname(fromFile), specifier);
|
|
5155
5785
|
const candidates = [
|
|
5156
5786
|
...REPLACEMENT_MODULE_EXTENSIONS.some(
|
|
5157
|
-
(ext) => ext ===
|
|
5787
|
+
(ext) => ext === import_node_path7.default.extname(base).toLowerCase()
|
|
5158
5788
|
) ? [base] : [],
|
|
5159
5789
|
...REPLACEMENT_MODULE_EXTENSIONS.map((ext) => base + ext),
|
|
5160
|
-
...REPLACEMENT_MODULE_EXTENSIONS.map((ext) =>
|
|
5790
|
+
...REPLACEMENT_MODULE_EXTENSIONS.map((ext) => import_node_path7.default.join(base, `index${ext}`))
|
|
5161
5791
|
];
|
|
5162
5792
|
const found = candidates.find(
|
|
5163
|
-
(candidate) => (0,
|
|
5793
|
+
(candidate) => (0, import_node_fs6.statSync)(candidate, { throwIfNoEntry: false })?.isFile()
|
|
5164
5794
|
);
|
|
5165
5795
|
if (!found) {
|
|
5166
5796
|
throw new Error(
|
|
@@ -5171,8 +5801,8 @@ function resolveReplacementModuleFile(fromFile, specifier) {
|
|
|
5171
5801
|
}
|
|
5172
5802
|
function isInsideAny(roots, file) {
|
|
5173
5803
|
return roots.some((root) => {
|
|
5174
|
-
const relative2 =
|
|
5175
|
-
return !relative2.startsWith("..") && !
|
|
5804
|
+
const relative2 = import_node_path7.default.relative(root, file);
|
|
5805
|
+
return !relative2.startsWith("..") && !import_node_path7.default.isAbsolute(relative2);
|
|
5176
5806
|
});
|
|
5177
5807
|
}
|
|
5178
5808
|
async function handleReplacementModuleRequest(req, res, options = {}) {
|
|
@@ -5212,19 +5842,19 @@ async function handleReplacementModuleRequest(req, res, options = {}) {
|
|
|
5212
5842
|
res.end("missing path param");
|
|
5213
5843
|
return true;
|
|
5214
5844
|
}
|
|
5215
|
-
const extension =
|
|
5845
|
+
const extension = import_node_path7.default.extname(targetPath).toLowerCase();
|
|
5216
5846
|
if (!REPLACEMENT_MODULE_EXTENSIONS.some((allowed) => allowed === extension)) {
|
|
5217
5847
|
res.writeHead(400, { "Content-Type": "text/plain; charset=utf-8" });
|
|
5218
5848
|
res.end(`replacement files must be ${REPLACEMENT_MODULE_EXTENSIONS.join(", ")}`);
|
|
5219
5849
|
return true;
|
|
5220
5850
|
}
|
|
5221
|
-
if (!
|
|
5851
|
+
if (!import_node_path7.default.isAbsolute(targetPath)) {
|
|
5222
5852
|
res.writeHead(400, { "Content-Type": "text/plain; charset=utf-8" });
|
|
5223
5853
|
res.end("replacement file path must be absolute");
|
|
5224
5854
|
return true;
|
|
5225
5855
|
}
|
|
5226
5856
|
const runtimePackages = new Set(url.searchParams.getAll("runtimePackage"));
|
|
5227
|
-
const servedRoots = options.servedRoots?.map((root) =>
|
|
5857
|
+
const servedRoots = options.servedRoots?.map((root) => import_node_path7.default.resolve(root));
|
|
5228
5858
|
if (servedRoots && !isInsideAny(servedRoots, targetPath)) {
|
|
5229
5859
|
res.writeHead(403, { "Content-Type": "text/plain; charset=utf-8" });
|
|
5230
5860
|
res.end("replacement file must be inside a folder the bundler serves");
|
|
@@ -5281,9 +5911,9 @@ async function handleReplacementModuleRequest(req, res, options = {}) {
|
|
|
5281
5911
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5282
5912
|
var import_node_child_process2 = require("node:child_process");
|
|
5283
5913
|
var import_node_crypto3 = require("node:crypto");
|
|
5284
|
-
var
|
|
5914
|
+
var import_node_fs8 = __toESM(require("node:fs"), 1);
|
|
5285
5915
|
var import_node_module2 = require("node:module");
|
|
5286
|
-
var
|
|
5916
|
+
var import_node_path9 = __toESM(require("node:path"), 1);
|
|
5287
5917
|
var import_node_util = require("node:util");
|
|
5288
5918
|
|
|
5289
5919
|
// cli/internal-child.ts
|
|
@@ -5292,22 +5922,25 @@ var RNX_FORKED_SCRIPT_ENV = "PEACH_RUNS_FORKED_SCRIPTS";
|
|
|
5292
5922
|
|
|
5293
5923
|
// src/swift-source-file.ts
|
|
5294
5924
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5295
|
-
var
|
|
5296
|
-
var
|
|
5925
|
+
var import_node_fs7 = __toESM(require("node:fs"), 1);
|
|
5926
|
+
var import_node_path8 = __toESM(require("node:path"), 1);
|
|
5927
|
+
function relativeInside(root, file) {
|
|
5928
|
+
const relative2 = import_node_path8.default.relative(root, file);
|
|
5929
|
+
return relative2 === ".." || relative2.startsWith(`..${import_node_path8.default.sep}`) || import_node_path8.default.isAbsolute(relative2) ? null : relative2;
|
|
5930
|
+
}
|
|
5297
5931
|
function packageInputPath(canonicalRoot, file) {
|
|
5298
|
-
const canonicalFile =
|
|
5299
|
-
|
|
5300
|
-
if (relative2 === ".." || relative2.startsWith(`..${import_node_path6.default.sep}`) || import_node_path6.default.isAbsolute(relative2)) {
|
|
5932
|
+
const canonicalFile = import_node_fs7.default.realpathSync(file);
|
|
5933
|
+
if (relativeInside(canonicalRoot, canonicalFile) === null) {
|
|
5301
5934
|
throw new Error(`swift input escapes the selected package: ${file}`);
|
|
5302
5935
|
}
|
|
5303
5936
|
return canonicalFile;
|
|
5304
5937
|
}
|
|
5305
5938
|
function readPackageFile(root, file, maxBytes) {
|
|
5306
|
-
const canonicalFile = packageInputPath(
|
|
5307
|
-
const expected =
|
|
5308
|
-
const fd =
|
|
5939
|
+
const canonicalFile = packageInputPath(import_node_fs7.default.realpathSync(root), file);
|
|
5940
|
+
const expected = import_node_fs7.default.statSync(canonicalFile);
|
|
5941
|
+
const fd = import_node_fs7.default.openSync(canonicalFile, import_node_fs7.default.constants.O_RDONLY | import_node_fs7.default.constants.O_NOFOLLOW);
|
|
5309
5942
|
try {
|
|
5310
|
-
const stat =
|
|
5943
|
+
const stat = import_node_fs7.default.fstatSync(fd);
|
|
5311
5944
|
if (stat.dev !== expected.dev || stat.ino !== expected.ino) {
|
|
5312
5945
|
throw new Error(`swift input changed while opening: ${file}`);
|
|
5313
5946
|
}
|
|
@@ -5317,16 +5950,16 @@ function readPackageFile(root, file, maxBytes) {
|
|
|
5317
5950
|
const bytes = Buffer.alloc(stat.size + 1);
|
|
5318
5951
|
let offset = 0;
|
|
5319
5952
|
while (offset < bytes.length) {
|
|
5320
|
-
const count =
|
|
5953
|
+
const count = import_node_fs7.default.readSync(fd, bytes, offset, bytes.length - offset, null);
|
|
5321
5954
|
if (count === 0) break;
|
|
5322
5955
|
offset += count;
|
|
5323
5956
|
}
|
|
5324
|
-
if (offset !== stat.size ||
|
|
5957
|
+
if (offset !== stat.size || import_node_fs7.default.fstatSync(fd).size !== stat.size) {
|
|
5325
5958
|
throw new Error(`swift input changed while reading: ${file}`);
|
|
5326
5959
|
}
|
|
5327
5960
|
return bytes.subarray(0, offset);
|
|
5328
5961
|
} finally {
|
|
5329
|
-
|
|
5962
|
+
import_node_fs7.default.closeSync(fd);
|
|
5330
5963
|
}
|
|
5331
5964
|
}
|
|
5332
5965
|
|
|
@@ -5373,8 +6006,8 @@ fs.writeFileSync(process.argv[2], JSON.stringify({
|
|
|
5373
6006
|
function configStamp(files) {
|
|
5374
6007
|
return JSON.stringify(
|
|
5375
6008
|
files.map((file) => {
|
|
5376
|
-
if (!
|
|
5377
|
-
const stat =
|
|
6009
|
+
if (!import_node_fs8.default.existsSync(file)) return [file, null];
|
|
6010
|
+
const stat = import_node_fs8.default.statSync(file);
|
|
5378
6011
|
return [file, stat.mtimeMs, stat.ctimeMs, stat.size];
|
|
5379
6012
|
})
|
|
5380
6013
|
);
|
|
@@ -5385,13 +6018,13 @@ async function readConfig(root) {
|
|
|
5385
6018
|
const reading = reads.get(root);
|
|
5386
6019
|
if (reading) return reading;
|
|
5387
6020
|
const promise = (async () => {
|
|
5388
|
-
(0, import_node_module2.createRequire)(
|
|
5389
|
-
const cache =
|
|
5390
|
-
|
|
5391
|
-
const directory =
|
|
5392
|
-
const script =
|
|
5393
|
-
const result =
|
|
5394
|
-
|
|
6021
|
+
(0, import_node_module2.createRequire)(import_node_path9.default.join(root, "package.json")).resolve("one/vite");
|
|
6022
|
+
const cache = import_node_path9.default.join(root, "node_modules/.cache/peach-widget-config");
|
|
6023
|
+
import_node_fs8.default.mkdirSync(cache, { recursive: true });
|
|
6024
|
+
const directory = import_node_fs8.default.mkdtempSync(import_node_path9.default.join(cache, "read-"));
|
|
6025
|
+
const script = import_node_path9.default.join(directory, "read.mjs");
|
|
6026
|
+
const result = import_node_path9.default.join(directory, "result.json");
|
|
6027
|
+
import_node_fs8.default.writeFileSync(script, CONFIG_CHILD);
|
|
5395
6028
|
try {
|
|
5396
6029
|
await run(process.execPath, [script, result], {
|
|
5397
6030
|
cwd: root,
|
|
@@ -5399,7 +6032,7 @@ async function readConfig(root) {
|
|
|
5399
6032
|
timeout: 3e4,
|
|
5400
6033
|
maxBuffer: 1024 * 1024
|
|
5401
6034
|
});
|
|
5402
|
-
const value = JSON.parse(
|
|
6035
|
+
const value = JSON.parse(import_node_fs8.default.readFileSync(result, "utf8"));
|
|
5403
6036
|
if (!isRecord(value) || !Array.isArray(value.watched) || !value.watched.every((file) => typeof file === "string"))
|
|
5404
6037
|
throw new Error("One config loader returned invalid dependencies");
|
|
5405
6038
|
if (!Array.isArray(value.urlSchemes) || !value.urlSchemes.every(
|
|
@@ -5422,8 +6055,8 @@ async function readConfig(root) {
|
|
|
5422
6055
|
}
|
|
5423
6056
|
const watched = [
|
|
5424
6057
|
.../* @__PURE__ */ new Set([
|
|
5425
|
-
|
|
5426
|
-
...value.watched.map((file) =>
|
|
6058
|
+
import_node_path9.default.join(root, "package.json"),
|
|
6059
|
+
...value.watched.map((file) => import_node_path9.default.resolve(root, file))
|
|
5427
6060
|
])
|
|
5428
6061
|
];
|
|
5429
6062
|
const loaded2 = {
|
|
@@ -5435,7 +6068,7 @@ async function readConfig(root) {
|
|
|
5435
6068
|
configs.set(root, loaded2);
|
|
5436
6069
|
return loaded2;
|
|
5437
6070
|
} finally {
|
|
5438
|
-
|
|
6071
|
+
import_node_fs8.default.rmSync(directory, { recursive: true, force: true });
|
|
5439
6072
|
}
|
|
5440
6073
|
})();
|
|
5441
6074
|
reads.set(root, promise);
|
|
@@ -5456,13 +6089,13 @@ function declaredFamilies(source) {
|
|
|
5456
6089
|
return home;
|
|
5457
6090
|
}
|
|
5458
6091
|
async function readOneWidgetSources(appRoot) {
|
|
5459
|
-
const root =
|
|
6092
|
+
const root = import_node_fs8.default.realpathSync(appRoot);
|
|
5460
6093
|
const config = await readConfig(root);
|
|
5461
6094
|
if (!config.widget) return null;
|
|
5462
6095
|
const widget = config.widget;
|
|
5463
6096
|
const sourceFiles = {
|
|
5464
|
-
"OneWidget.swift":
|
|
5465
|
-
"OneWidgetContract.swift":
|
|
6097
|
+
"OneWidget.swift": import_node_path9.default.join(root, "ios/OneWidgets/OneWidget.swift"),
|
|
6098
|
+
"OneWidgetContract.swift": import_node_path9.default.join(
|
|
5466
6099
|
root,
|
|
5467
6100
|
"ios",
|
|
5468
6101
|
widget.appName,
|
|
@@ -5472,14 +6105,14 @@ async function readOneWidgetSources(appRoot) {
|
|
|
5472
6105
|
const files = /* @__PURE__ */ new Map();
|
|
5473
6106
|
const sources = {};
|
|
5474
6107
|
for (const [name, file] of Object.entries(sourceFiles)) {
|
|
5475
|
-
if (!
|
|
6108
|
+
if (!import_node_fs8.default.existsSync(file))
|
|
5476
6109
|
throw new Error(`missing One widget prebuild source ${file}; run one prebuild`);
|
|
5477
6110
|
const bytes = readPackageFile(root, file, MAX_SWIFT_COMPILE_SOURCE_BYTES);
|
|
5478
6111
|
const text = bytes.toString("utf8");
|
|
5479
6112
|
if (!Buffer.from(text).equals(bytes))
|
|
5480
6113
|
throw new Error(`One widget prebuild source is not UTF-8: ${file}`);
|
|
5481
6114
|
files.set(name, text);
|
|
5482
|
-
sources[
|
|
6115
|
+
sources[import_node_path9.default.relative(root, file).split(import_node_path9.default.sep).join("/")] = (0, import_node_crypto3.createHash)("sha256").update(bytes).digest("hex");
|
|
5483
6116
|
}
|
|
5484
6117
|
const contract = files.get("OneWidgetContract.swift") ?? "";
|
|
5485
6118
|
const source = files.get("OneWidget.swift") ?? "";
|
|
@@ -5651,7 +6284,7 @@ function peachPlugin(options = {}) {
|
|
|
5651
6284
|
(error) => res.destroy(error instanceof Error ? error : new Error(String(error)))
|
|
5652
6285
|
);
|
|
5653
6286
|
};
|
|
5654
|
-
const upstreamReq = server.config.server.https ?
|
|
6287
|
+
const upstreamReq = server.config.server.https ? import_node_https2.default.request(options2, respond) : import_node_http3.default.request(options2, respond);
|
|
5655
6288
|
upstreamReq.once("error", next);
|
|
5656
6289
|
req.once("close", () => {
|
|
5657
6290
|
if (!res.writableFinished) upstreamReq.destroy();
|
|
@@ -5666,7 +6299,7 @@ function peachPlugin(options = {}) {
|
|
|
5666
6299
|
const moduleRootFor = () => {
|
|
5667
6300
|
if (swiftModuleRoot === void 0) {
|
|
5668
6301
|
const moduleRoot = import_path4.default.resolve(
|
|
5669
|
-
import_path4.default.dirname((0,
|
|
6302
|
+
import_path4.default.dirname((0, import_node_url2.fileURLToPath)(__sootsim_import_meta_url)),
|
|
5670
6303
|
"../../sootsim-swift"
|
|
5671
6304
|
);
|
|
5672
6305
|
swiftModuleRoot = import_fs4.default.existsSync(import_path4.default.join(moduleRoot, "toolchain.json")) ? moduleRoot : null;
|