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
|
@@ -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;
|
|
@@ -1169,9 +1169,9 @@ __export(native_app_identity_project_exports, {
|
|
|
1169
1169
|
});
|
|
1170
1170
|
module.exports = __toCommonJS(native_app_identity_project_exports);
|
|
1171
1171
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1172
|
-
var
|
|
1172
|
+
var import_node_fs4 = __toESM(require("node:fs"), 1);
|
|
1173
1173
|
var import_node_module = require("node:module");
|
|
1174
|
-
var
|
|
1174
|
+
var import_node_path6 = __toESM(require("node:path"), 1);
|
|
1175
1175
|
|
|
1176
1176
|
// src/android-app-identity.ts
|
|
1177
1177
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -1749,10 +1749,10 @@ function appTargetReleaseSettings(pbxproj, targetName, infoPlistRelativePath) {
|
|
|
1749
1749
|
var APP_DELEGATE_PATH_RE = /(?:^|\/)ios\/([^/]+)\/AppDelegate\.(?:swift|mm|m)$/;
|
|
1750
1750
|
function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri) {
|
|
1751
1751
|
const pbxprojPath = Object.keys(files).find(
|
|
1752
|
-
(
|
|
1752
|
+
(path7) => /(?:^|\/)ios\/[^/]+\.xcodeproj\/project\.pbxproj$/.test(path7)
|
|
1753
1753
|
) ?? Object.keys(files).find(
|
|
1754
|
-
(
|
|
1755
|
-
) ?? Object.keys(files).find((
|
|
1754
|
+
(path7) => /(?:^|\/)[^/]+\.xcodeproj\/project\.pbxproj$/.test(path7)
|
|
1755
|
+
) ?? Object.keys(files).find((path7) => /(?:^|\/)project\.pbxproj$/.test(path7));
|
|
1756
1756
|
if (!pbxprojPath) return null;
|
|
1757
1757
|
const pbxproj = files[pbxprojPath];
|
|
1758
1758
|
let objects = {};
|
|
@@ -1794,7 +1794,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
|
|
|
1794
1794
|
} else if (applicationTargetNames.size === 1) {
|
|
1795
1795
|
targetName = [...applicationTargetNames][0];
|
|
1796
1796
|
} else if (applicationTargetNames.size > 1) {
|
|
1797
|
-
const delegateTargets = Object.keys(files).filter((
|
|
1797
|
+
const delegateTargets = Object.keys(files).filter((path7) => !path7.includes("/Pods/")).map((path7) => path7.match(APP_DELEGATE_PATH_RE)?.[1]).filter(
|
|
1798
1798
|
(name) => typeof name === "string" && applicationTargetNames.has(name)
|
|
1799
1799
|
);
|
|
1800
1800
|
if (delegateTargets.length === 1) {
|
|
@@ -2018,7 +2018,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
|
|
|
2018
2018
|
if (Object.hasOwn(files, file)) return [file];
|
|
2019
2019
|
const prefix = file === "" ? "" : `${file.replace(/\/$/, "")}/`;
|
|
2020
2020
|
return paths.filter(
|
|
2021
|
-
(
|
|
2021
|
+
(path7) => path7.startsWith(prefix) && !/(?:^|\/)\./.test(path7.slice(prefix.length))
|
|
2022
2022
|
);
|
|
2023
2023
|
},
|
|
2024
2024
|
join,
|
|
@@ -2029,7 +2029,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
|
|
|
2029
2029
|
}
|
|
2030
2030
|
const rootModuleName = readRootModuleName(
|
|
2031
2031
|
Object.entries(files).filter(
|
|
2032
|
-
([
|
|
2032
|
+
([path7]) => !path7.includes("/Pods/") && (/(?:^|\/)ios\/AppDelegate\.(?:swift|mm|m)$/.test(path7) || path7.match(APP_DELEGATE_PATH_RE)?.[1] === targetName)
|
|
2033
2033
|
).map(([, source]) => source)
|
|
2034
2034
|
);
|
|
2035
2035
|
return {
|
|
@@ -2122,10 +2122,10 @@ function parsePlistSource(source) {
|
|
|
2122
2122
|
|
|
2123
2123
|
// src/xcode-project.ts
|
|
2124
2124
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2125
|
-
var
|
|
2125
|
+
var import_node_child_process2 = require("node:child_process");
|
|
2126
2126
|
var import_node_crypto = require("node:crypto");
|
|
2127
|
-
var
|
|
2128
|
-
var
|
|
2127
|
+
var import_node_fs3 = __toESM(require("node:fs"), 1);
|
|
2128
|
+
var import_node_path5 = __toESM(require("node:path"), 1);
|
|
2129
2129
|
var import_plist2 = __toESM(require("plist"), 1);
|
|
2130
2130
|
|
|
2131
2131
|
// src/swift-coverage/xcode-assets.ts
|
|
@@ -2146,7 +2146,7 @@ var assetSymbolSettingKeys = [
|
|
|
2146
2146
|
"ASSETCATALOG_COMPILER_LIGHTWEIGHT_ASSET_RUNTIME_MODE",
|
|
2147
2147
|
"ASSETCATALOG_OTHER_FLAGS"
|
|
2148
2148
|
];
|
|
2149
|
-
var unprovenAssetSettings = assetSymbolSettingKeys.slice(4);
|
|
2149
|
+
var unprovenAssetSettings = assetSymbolSettingKeys.slice(4).filter((key) => key !== "ASSETCATALOG_OTHER_FLAGS");
|
|
2150
2150
|
|
|
2151
2151
|
// src/swift-package.ts
|
|
2152
2152
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -2165,6 +2165,8 @@ function isSwiftNativeTranslationUnit(file) {
|
|
|
2165
2165
|
}
|
|
2166
2166
|
var SWIFT_NATIVE_SOURCE_EXTENSIONS = [
|
|
2167
2167
|
...SWIFT_NATIVE_TRANSLATION_UNIT_EXTENSIONS,
|
|
2168
|
+
".s",
|
|
2169
|
+
".S",
|
|
2168
2170
|
".h",
|
|
2169
2171
|
".hh",
|
|
2170
2172
|
".hpp",
|
|
@@ -2174,17 +2176,438 @@ var SWIFT_NATIVE_SOURCE_EXTENSIONS = [
|
|
|
2174
2176
|
".inl",
|
|
2175
2177
|
".modulemap"
|
|
2176
2178
|
];
|
|
2179
|
+
function moduleMapTokens(text2) {
|
|
2180
|
+
return (text2.match(/\/\*[\s\S]*?\*\/|\/\/[^\n]*|"[^"]*"|[\w.*]+|[{}\[\]]/g) ?? []).filter((token) => !token.startsWith("/"));
|
|
2181
|
+
}
|
|
2177
2182
|
function moduleMapName(text2) {
|
|
2178
|
-
|
|
2183
|
+
const tokens = moduleMapTokens(text2);
|
|
2184
|
+
const index = tokens.findIndex(
|
|
2185
|
+
(token, i) => token === "module" && tokens[i - 1] !== "extern"
|
|
2186
|
+
);
|
|
2187
|
+
return index < 0 ? void 0 : tokens[index + 1];
|
|
2188
|
+
}
|
|
2189
|
+
function swiftPackageIdentity(url) {
|
|
2190
|
+
const path7 = url.endsWith("/") ? url.slice(0, -1) : url;
|
|
2191
|
+
return (path7.split("/").pop() ?? path7).replace(/\.git$/, "").toLowerCase();
|
|
2179
2192
|
}
|
|
2180
2193
|
|
|
2181
|
-
// src/
|
|
2194
|
+
// src/swift-package-manifest.ts
|
|
2195
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2196
|
+
var import_node_child_process = require("node:child_process");
|
|
2197
|
+
var import_node_fs2 = __toESM(require("node:fs"), 1);
|
|
2198
|
+
var import_node_os3 = __toESM(require("node:os"), 1);
|
|
2199
|
+
var import_node_path3 = __toESM(require("node:path"), 1);
|
|
2200
|
+
|
|
2201
|
+
// src/home-paths.ts
|
|
2182
2202
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2203
|
+
var import_node_os = require("node:os");
|
|
2183
2204
|
var import_node_path = __toESM(require("node:path"), 1);
|
|
2205
|
+
var PEACH_HOME_ENV = "PEACH_HOME";
|
|
2206
|
+
function rnxHomeDir() {
|
|
2207
|
+
const override = process.env[PEACH_HOME_ENV];
|
|
2208
|
+
if (override && override.length > 0) return import_node_path.default.resolve(override);
|
|
2209
|
+
return import_node_path.default.join((0, import_node_os.homedir)(), ".peach");
|
|
2210
|
+
}
|
|
2211
|
+
function cacheDir() {
|
|
2212
|
+
return import_node_path.default.join(rnxHomeDir(), "cache");
|
|
2213
|
+
}
|
|
2214
|
+
function swiftPackageCacheOptions() {
|
|
2215
|
+
const root = import_node_path.default.join(cacheDir(), "swiftpm");
|
|
2216
|
+
return ["cache", "config", "security"].flatMap((name) => [
|
|
2217
|
+
`--${name}-path`,
|
|
2218
|
+
import_node_path.default.join(root, name)
|
|
2219
|
+
]);
|
|
2220
|
+
}
|
|
2221
|
+
var DAEMON_LOCKFILE_MAX_BYTES = 16 * 1024;
|
|
2222
|
+
|
|
2223
|
+
// src/swift-distribution.lock.json
|
|
2224
|
+
var swift_distribution_lock_default = {
|
|
2225
|
+
id: "d2c6d715951f5e98",
|
|
2226
|
+
release: "swift-6.4.0-RELEASE-custom-ecd2ad9d3fe59329",
|
|
2227
|
+
wasmSdkId: "swift-6.4.0-RELEASE_wasm-peach-cbf01f4b",
|
|
2228
|
+
wasmSdkUrl: "https://r2.sootsim.com/swift-wasm-sdk/swift-6.4.0-RELEASE_wasm-peach-cbf01f4b.artifactbundle.tar.gz",
|
|
2229
|
+
wasmSdkChecksum: "2243db65b12743d577fecc6aa27761363ccef470202f1fef2582e58750c0da4f",
|
|
2230
|
+
source: "723697c8df030077d06e7e760259e494f6a1c5a8",
|
|
2231
|
+
targets: [
|
|
2232
|
+
"ImagePlayground",
|
|
2233
|
+
"QuickLookThumbnailing",
|
|
2234
|
+
"libxml2",
|
|
2235
|
+
"CarPlay",
|
|
2236
|
+
"System",
|
|
2237
|
+
"_LocationEssentials",
|
|
2238
|
+
"GeoToolbox",
|
|
2239
|
+
"DataDetection",
|
|
2240
|
+
"Accessibility",
|
|
2241
|
+
"Contacts",
|
|
2242
|
+
"CoreML",
|
|
2243
|
+
"EventKit",
|
|
2244
|
+
"CloudKit",
|
|
2245
|
+
"IOSurface",
|
|
2246
|
+
"OpenGLES",
|
|
2247
|
+
"ContactsUI",
|
|
2248
|
+
"CoreLocationUI",
|
|
2249
|
+
"MediaPlayer",
|
|
2250
|
+
"MediaAccessibility",
|
|
2251
|
+
"MusicKit",
|
|
2252
|
+
"RealityKit",
|
|
2253
|
+
"SecureElementCredential",
|
|
2254
|
+
"Social",
|
|
2255
|
+
"SceneKit",
|
|
2256
|
+
"CoreBluetooth",
|
|
2257
|
+
"HealthKit",
|
|
2258
|
+
"CoreNFC",
|
|
2259
|
+
"Speech",
|
|
2260
|
+
"Vision",
|
|
2261
|
+
"VisionKit",
|
|
2262
|
+
"WorkoutKit",
|
|
2263
|
+
"_PassKit_SwiftUI",
|
|
2264
|
+
"ExpoModulesCore",
|
|
2265
|
+
"_MapKit_SwiftUI",
|
|
2266
|
+
"PeachJSON",
|
|
2267
|
+
"PeachFoundation",
|
|
2268
|
+
"FoundationNetworking",
|
|
2269
|
+
"DeveloperToolsSupport",
|
|
2270
|
+
"SwiftUI",
|
|
2271
|
+
"DarwinRecords",
|
|
2272
|
+
"Darwin",
|
|
2273
|
+
"MachO",
|
|
2274
|
+
"PeachObjCRuntime",
|
|
2275
|
+
"PeachObjC",
|
|
2276
|
+
"UIUtilities",
|
|
2277
|
+
"UIKitEnums",
|
|
2278
|
+
"UIKitCore",
|
|
2279
|
+
"PeachICU",
|
|
2280
|
+
"PeachCMark",
|
|
2281
|
+
"CoreImage",
|
|
2282
|
+
"QuartzCore",
|
|
2283
|
+
"CoreGraphics",
|
|
2284
|
+
"AppTrackingTransparency",
|
|
2285
|
+
"StoreKit",
|
|
2286
|
+
"_StoreKit_SwiftUI",
|
|
2287
|
+
"WeatherKit",
|
|
2288
|
+
"DeviceCheck",
|
|
2289
|
+
"PassKit",
|
|
2290
|
+
"Translation",
|
|
2291
|
+
"TipKit",
|
|
2292
|
+
"CoreSpotlight",
|
|
2293
|
+
"CoreVideo",
|
|
2294
|
+
"CoreMedia",
|
|
2295
|
+
"VideoToolbox",
|
|
2296
|
+
"AdSupport",
|
|
2297
|
+
"BackgroundTasks",
|
|
2298
|
+
"LocalAuthentication",
|
|
2299
|
+
"CoreMotion",
|
|
2300
|
+
"MessageUI",
|
|
2301
|
+
"GameController",
|
|
2302
|
+
"GameKit",
|
|
2303
|
+
"MetricKit",
|
|
2304
|
+
"Metal",
|
|
2305
|
+
"AuthenticationServices",
|
|
2306
|
+
"os",
|
|
2307
|
+
"Charts",
|
|
2308
|
+
"Symbols",
|
|
2309
|
+
"UniformTypeIdentifiers",
|
|
2310
|
+
"WidgetKit",
|
|
2311
|
+
"ActivityKit",
|
|
2312
|
+
"SwiftData",
|
|
2313
|
+
"UIKit",
|
|
2314
|
+
"React",
|
|
2315
|
+
"Combine",
|
|
2316
|
+
"PeachFoundationCombine",
|
|
2317
|
+
"AppIntents",
|
|
2318
|
+
"PhotosUI",
|
|
2319
|
+
"AVFoundation",
|
|
2320
|
+
"AVFAudio",
|
|
2321
|
+
"UserNotifications",
|
|
2322
|
+
"Network",
|
|
2323
|
+
"NetworkExtension",
|
|
2324
|
+
"OSLog",
|
|
2325
|
+
"PeachSecurityRuntime",
|
|
2326
|
+
"Accelerate",
|
|
2327
|
+
"CoreText",
|
|
2328
|
+
"CFNetwork",
|
|
2329
|
+
"CommonCrypto",
|
|
2330
|
+
"PeachCodec",
|
|
2331
|
+
"Compression",
|
|
2332
|
+
"zlib",
|
|
2333
|
+
"CryptoKit",
|
|
2334
|
+
"TikTokBusinessSDK",
|
|
2335
|
+
"nSure",
|
|
2336
|
+
"Statsig",
|
|
2337
|
+
"TOCropViewController",
|
|
2338
|
+
"RiveRuntime",
|
|
2339
|
+
"AVRouting",
|
|
2340
|
+
"CoreData",
|
|
2341
|
+
"PDFKit",
|
|
2342
|
+
"ModelIOEnums",
|
|
2343
|
+
"ModelIO",
|
|
2344
|
+
"MetalKit",
|
|
2345
|
+
"DatadogCore",
|
|
2346
|
+
"DatadogLogs",
|
|
2347
|
+
"DatadogRUM",
|
|
2348
|
+
"DatadogTrace",
|
|
2349
|
+
"AppLovinSDK",
|
|
2350
|
+
"GoogleMobileAds",
|
|
2351
|
+
"AppsFlyerLib",
|
|
2352
|
+
"FBSDKCoreKit",
|
|
2353
|
+
"FBAEMKit",
|
|
2354
|
+
"FBSDKCoreKit_Basics",
|
|
2355
|
+
"FirebaseCore",
|
|
2356
|
+
"FirebaseSharedSwift",
|
|
2357
|
+
"FirebaseRemoteConfig",
|
|
2358
|
+
"FirebaseFirestoreInternal",
|
|
2359
|
+
"FirebaseAnalytics",
|
|
2360
|
+
"FirebaseAppCheck",
|
|
2361
|
+
"FirebaseAuth",
|
|
2362
|
+
"FirebaseCrashlytics",
|
|
2363
|
+
"FirebaseFirestore",
|
|
2364
|
+
"FirebaseStorage",
|
|
2365
|
+
"Firebase",
|
|
2366
|
+
"Intercom",
|
|
2367
|
+
"FBAudienceNetwork",
|
|
2368
|
+
"NaturalLanguage",
|
|
2369
|
+
"AVKit",
|
|
2370
|
+
"SafariServices",
|
|
2371
|
+
"QuickLook",
|
|
2372
|
+
"CoreHaptics",
|
|
2373
|
+
"WebKit",
|
|
2374
|
+
"Photos",
|
|
2375
|
+
"LinkPresentation",
|
|
2376
|
+
"FoundationModels",
|
|
2377
|
+
"CoreTransferable",
|
|
2378
|
+
"AudioToolbox",
|
|
2379
|
+
"CoreAudioTypes",
|
|
2380
|
+
"AudioUnit",
|
|
2381
|
+
"Intents",
|
|
2382
|
+
"IntentsUI",
|
|
2383
|
+
"WatchConnectivity",
|
|
2384
|
+
"CoreServices",
|
|
2385
|
+
"MobileCoreServices",
|
|
2386
|
+
"CoreTelephony",
|
|
2387
|
+
"SystemConfiguration",
|
|
2388
|
+
"ImageIO",
|
|
2389
|
+
"CoreLocationEnums",
|
|
2390
|
+
"CoreLocation",
|
|
2391
|
+
"MapKit",
|
|
2392
|
+
"One",
|
|
2393
|
+
"simd",
|
|
2394
|
+
"GLKit",
|
|
2395
|
+
"GameplayKit",
|
|
2396
|
+
"SpriteKit",
|
|
2397
|
+
"PeachBox2D"
|
|
2398
|
+
],
|
|
2399
|
+
systemEnvironment: {
|
|
2400
|
+
scenePhase: ["string:active", "string:inactive", "string:background"],
|
|
2401
|
+
colorScheme: ["string:light", "string:dark"],
|
|
2402
|
+
semanticColors: ["object"],
|
|
2403
|
+
deviceModel: ["string"],
|
|
2404
|
+
systemName: ["string"],
|
|
2405
|
+
systemVersion: ["string"],
|
|
2406
|
+
locale: ["string"],
|
|
2407
|
+
dynamicTypeSize: [
|
|
2408
|
+
"string:xSmall",
|
|
2409
|
+
"string:small",
|
|
2410
|
+
"string:medium",
|
|
2411
|
+
"string:large",
|
|
2412
|
+
"string:xLarge",
|
|
2413
|
+
"string:xxLarge",
|
|
2414
|
+
"string:xxxLarge",
|
|
2415
|
+
"string:accessibility1",
|
|
2416
|
+
"string:accessibility2",
|
|
2417
|
+
"string:accessibility3",
|
|
2418
|
+
"string:accessibility4",
|
|
2419
|
+
"string:accessibility5"
|
|
2420
|
+
],
|
|
2421
|
+
accessibilityReduceMotion: ["bool"],
|
|
2422
|
+
horizontalSizeClass: ["string:compact", "string:regular"],
|
|
2423
|
+
verticalSizeClass: ["string:compact", "string:regular"],
|
|
2424
|
+
imageAssets: ["object"]
|
|
2425
|
+
},
|
|
2426
|
+
hosts: {
|
|
2427
|
+
"darwin-arm64": {
|
|
2428
|
+
sha256: "3b47173dfa25473dfc3c76e46b1203efdc7c2101eca02eb6c89692d66561e78e",
|
|
2429
|
+
size: 81210958
|
|
2430
|
+
},
|
|
2431
|
+
"linux-x64": {
|
|
2432
|
+
sha256: "d11f5fe29845064c390ec980c641c6a70b0199a7f5b6cd445ddc362ff5a2394f",
|
|
2433
|
+
size: 81209921
|
|
2434
|
+
},
|
|
2435
|
+
"linux-arm64": {
|
|
2436
|
+
sha256: "df9ab4453985dbbaf335610f6ab62a15f6f63175869dd484f359b702f316dfac",
|
|
2437
|
+
size: 81209987
|
|
2438
|
+
}
|
|
2439
|
+
}
|
|
2440
|
+
};
|
|
2441
|
+
|
|
2442
|
+
// src/swift-toolchain.ts
|
|
2443
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2444
|
+
var import_node_fs = __toESM(require("node:fs"), 1);
|
|
2445
|
+
var import_node_os2 = __toESM(require("node:os"), 1);
|
|
2446
|
+
var import_node_path2 = __toESM(require("node:path"), 1);
|
|
2447
|
+
function swiftToolchainBin(release) {
|
|
2448
|
+
if (process.platform === "darwin") {
|
|
2449
|
+
const dirs = [import_node_os2.default.homedir(), "/"].map(
|
|
2450
|
+
(base) => import_node_path2.default.join(base, `Library/Developer/Toolchains/${release}.xctoolchain/usr/bin`)
|
|
2451
|
+
);
|
|
2452
|
+
return dirs.find((dir) => import_node_fs.default.existsSync(import_node_path2.default.join(dir, "swift"))) ?? dirs[0];
|
|
2453
|
+
}
|
|
2454
|
+
if (process.env.CONTRAST_SWIFT_TOOLCHAINS) {
|
|
2455
|
+
return import_node_path2.default.join(process.env.CONTRAST_SWIFT_TOOLCHAINS, release, "usr/bin");
|
|
2456
|
+
}
|
|
2457
|
+
const image = import_node_path2.default.join("/opt/swift", release, "usr/bin");
|
|
2458
|
+
if (import_node_fs.default.existsSync(import_node_path2.default.join(image, "swift"))) return image;
|
|
2459
|
+
if (release.includes("-custom-"))
|
|
2460
|
+
return import_node_path2.default.join(peachHome(), "swift", "toolchains", release, "usr/bin");
|
|
2461
|
+
return (process.env.PATH ?? "").split(import_node_path2.default.delimiter).find((dir) => dir && import_node_fs.default.existsSync(import_node_path2.default.join(dir, "swift"))) ?? image;
|
|
2462
|
+
}
|
|
2463
|
+
function peachHome() {
|
|
2464
|
+
const override = process.env.PEACH_HOME;
|
|
2465
|
+
return override ? import_node_path2.default.resolve(override) : import_node_path2.default.join(import_node_os2.default.homedir(), ".peach");
|
|
2466
|
+
}
|
|
2467
|
+
var scratch;
|
|
2468
|
+
function swiftEnvironment(base = process.env) {
|
|
2469
|
+
if (!scratch) return base;
|
|
2470
|
+
return {
|
|
2471
|
+
...base,
|
|
2472
|
+
TMPDIR: scratch.directory,
|
|
2473
|
+
XDG_CONFIG_HOME: import_node_path2.default.join(scratch.home, ".config"),
|
|
2474
|
+
XDG_CACHE_HOME: import_node_path2.default.join(scratch.home, ".cache"),
|
|
2475
|
+
XDG_DATA_HOME: import_node_path2.default.join(scratch.home, ".local", "share"),
|
|
2476
|
+
...process.platform === "linux" ? { HOME: scratch.home } : {}
|
|
2477
|
+
};
|
|
2478
|
+
}
|
|
2479
|
+
|
|
2480
|
+
// src/swift-package-manifest.ts
|
|
2481
|
+
function swiftCommand() {
|
|
2482
|
+
return import_node_path3.default.join(swiftToolchainBin(swift_distribution_lock_default.release), "swift");
|
|
2483
|
+
}
|
|
2484
|
+
var cacheDir2 = import_node_path3.default.join(cacheDir(), "swift-manifests");
|
|
2485
|
+
var requirementClause = (item) => {
|
|
2486
|
+
const url = JSON.stringify(item.url);
|
|
2487
|
+
const requirement = item.requirement;
|
|
2488
|
+
if (requirement.kind === "upToNextMajorVersion")
|
|
2489
|
+
return `.package(url: ${url}, from: ${JSON.stringify(requirement.minimumVersion)})`;
|
|
2490
|
+
if (requirement.kind === "upToNextMinorVersion")
|
|
2491
|
+
return `.package(url: ${url}, .upToNextMinor(from: ${JSON.stringify(requirement.minimumVersion)}))`;
|
|
2492
|
+
if (requirement.kind === "versionRange")
|
|
2493
|
+
return `.package(url: ${url}, ${JSON.stringify(requirement.minimumVersion)}..<${JSON.stringify(requirement.maximumVersion)})`;
|
|
2494
|
+
if (requirement.kind === "exactVersion")
|
|
2495
|
+
return `.package(url: ${url}, exact: ${JSON.stringify(requirement.version)})`;
|
|
2496
|
+
if (requirement.kind === "branch")
|
|
2497
|
+
return `.package(url: ${url}, branch: ${JSON.stringify(requirement.branch)})`;
|
|
2498
|
+
return `.package(url: ${url}, revision: ${JSON.stringify(requirement.revision)})`;
|
|
2499
|
+
};
|
|
2500
|
+
function resolveSwiftPackageRequirements(requirements, destination) {
|
|
2501
|
+
const repository = (url) => url.replace(/(?:\.git)?\/?$/, "");
|
|
2502
|
+
const chosen = /* @__PURE__ */ new Map();
|
|
2503
|
+
for (const item of requirements) {
|
|
2504
|
+
const identity = swiftPackageIdentity(item.url);
|
|
2505
|
+
const previous = chosen.get(identity);
|
|
2506
|
+
if (previous && (repository(previous.url) !== repository(item.url) || JSON.stringify(previous.requirement) !== JSON.stringify(item.requirement)))
|
|
2507
|
+
throw new Error(
|
|
2508
|
+
`conflicting requirements for ${identity}: ${previous.url} ${JSON.stringify(previous.requirement)}; ${item.url} ${JSON.stringify(item.requirement)}`
|
|
2509
|
+
);
|
|
2510
|
+
if (!previous) chosen.set(identity, item);
|
|
2511
|
+
}
|
|
2512
|
+
const clauses = [...chosen.values()].sort(
|
|
2513
|
+
(a, b) => swiftPackageIdentity(a.url).localeCompare(swiftPackageIdentity(b.url))
|
|
2514
|
+
).map(requirementClause);
|
|
2515
|
+
const manifest = `// swift-tools-version:5.9
|
|
2516
|
+
import PackageDescription
|
|
2517
|
+
let package = Package(
|
|
2518
|
+
name: "Resolve",
|
|
2519
|
+
dependencies: [
|
|
2520
|
+
${clauses.join(",\n ")},
|
|
2521
|
+
]
|
|
2522
|
+
)
|
|
2523
|
+
`;
|
|
2524
|
+
const dir = import_node_fs2.default.mkdtempSync(import_node_path3.default.join(import_node_os3.default.tmpdir(), "peach-resolve-"));
|
|
2525
|
+
try {
|
|
2526
|
+
import_node_fs2.default.writeFileSync(import_node_path3.default.join(dir, "Package.swift"), manifest);
|
|
2527
|
+
try {
|
|
2528
|
+
(0, import_node_child_process.execFileSync)(
|
|
2529
|
+
swiftCommand(),
|
|
2530
|
+
[
|
|
2531
|
+
"package",
|
|
2532
|
+
...swiftPackageCacheOptions(),
|
|
2533
|
+
"--package-path",
|
|
2534
|
+
dir,
|
|
2535
|
+
"--scratch-path",
|
|
2536
|
+
import_node_path3.default.join(dir, ".build"),
|
|
2537
|
+
"resolve"
|
|
2538
|
+
],
|
|
2539
|
+
{
|
|
2540
|
+
encoding: "utf8",
|
|
2541
|
+
env: { ...swiftEnvironment(), GIT_TERMINAL_PROMPT: "0" },
|
|
2542
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
2543
|
+
maxBuffer: 32 * 1024 * 1024
|
|
2544
|
+
}
|
|
2545
|
+
);
|
|
2546
|
+
} catch (error) {
|
|
2547
|
+
const stderr = error instanceof Error && "stderr" in error ? String(error.stderr).trim() : "";
|
|
2548
|
+
throw new Error(
|
|
2549
|
+
`swiftpm could not resolve ${clauses.length} package requirements${stderr ? `: ${stderr}` : ""}`
|
|
2550
|
+
);
|
|
2551
|
+
}
|
|
2552
|
+
const resolved = import_node_path3.default.join(dir, "Package.resolved");
|
|
2553
|
+
if (!import_node_fs2.default.existsSync(resolved))
|
|
2554
|
+
throw new Error("swift package resolve wrote no Package.resolved");
|
|
2555
|
+
import_node_fs2.default.mkdirSync(import_node_path3.default.dirname(destination), { recursive: true });
|
|
2556
|
+
import_node_fs2.default.copyFileSync(resolved, destination);
|
|
2557
|
+
} finally {
|
|
2558
|
+
import_node_fs2.default.rmSync(dir, { recursive: true, force: true });
|
|
2559
|
+
}
|
|
2560
|
+
}
|
|
2561
|
+
|
|
2562
|
+
// src/xcode-json-project.ts
|
|
2563
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2564
|
+
var import_node_path4 = __toESM(require("node:path"), 1);
|
|
2184
2565
|
var import_json5 = __toESM(require_lib(), 1);
|
|
2185
2566
|
var isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
2186
2567
|
var text = (value) => typeof value === "string" ? value : void 0;
|
|
2187
2568
|
var items = (value) => Array.isArray(value) ? value : [];
|
|
2569
|
+
function remoteVersionRequirement(entry) {
|
|
2570
|
+
const revision = text(entry.revision);
|
|
2571
|
+
if (revision !== void 0) return { requirement: { kind: "revision", revision } };
|
|
2572
|
+
const branch = text(entry.branch);
|
|
2573
|
+
if (branch !== void 0) return { requirement: { kind: "branch", branch } };
|
|
2574
|
+
const version = text(entry.version);
|
|
2575
|
+
if (version !== void 0) return { requirement: { kind: "exactVersion", version } };
|
|
2576
|
+
const minor = text(entry["up-to-next-minor-version"]);
|
|
2577
|
+
if (minor !== void 0)
|
|
2578
|
+
return { requirement: { kind: "upToNextMinorVersion", minimumVersion: minor } };
|
|
2579
|
+
const major = text(entry["up-to-next-major-version"]);
|
|
2580
|
+
if (major !== void 0)
|
|
2581
|
+
return { requirement: { kind: "upToNextMajorVersion", minimumVersion: major } };
|
|
2582
|
+
const range = text(entry["version-range"]);
|
|
2583
|
+
if (range !== void 0) {
|
|
2584
|
+
const bounds = range.split("..<");
|
|
2585
|
+
const minimum2 = bounds[0];
|
|
2586
|
+
const maximum2 = bounds[1];
|
|
2587
|
+
if (bounds.length !== 2 || !minimum2 || !maximum2 || bounds[2] !== void 0)
|
|
2588
|
+
throw new Error(
|
|
2589
|
+
`${text(entry.repository) ?? "package"} has a version-range that is not min..<max`
|
|
2590
|
+
);
|
|
2591
|
+
return {
|
|
2592
|
+
requirement: {
|
|
2593
|
+
kind: "versionRange",
|
|
2594
|
+
minimumVersion: minimum2,
|
|
2595
|
+
maximumVersion: maximum2
|
|
2596
|
+
}
|
|
2597
|
+
};
|
|
2598
|
+
}
|
|
2599
|
+
const minimum = text(entry["version-range-min"]);
|
|
2600
|
+
const maximum = text(entry["version-range-max"]);
|
|
2601
|
+
if (minimum !== void 0 && maximum !== void 0)
|
|
2602
|
+
return {
|
|
2603
|
+
requirement: {
|
|
2604
|
+
kind: "versionRange",
|
|
2605
|
+
minimumVersion: minimum,
|
|
2606
|
+
maximumVersion: maximum
|
|
2607
|
+
}
|
|
2608
|
+
};
|
|
2609
|
+
return void 0;
|
|
2610
|
+
}
|
|
2188
2611
|
var PHASE_ISA = {
|
|
2189
2612
|
"compile-sources": "PBXSourcesBuildPhase",
|
|
2190
2613
|
resources: "PBXResourcesBuildPhase",
|
|
@@ -2196,7 +2619,7 @@ var PHASE_ISA = {
|
|
|
2196
2619
|
function readXcodeJsonProject(xcodeproj, source) {
|
|
2197
2620
|
const json = import_json5.default.parse(source);
|
|
2198
2621
|
if (!isJsonObject(json)) throw new Error(`${xcodeproj}/project.xcproj is not an object`);
|
|
2199
|
-
const projectDir =
|
|
2622
|
+
const projectDir = import_node_path4.default.dirname(xcodeproj);
|
|
2200
2623
|
const objects = {};
|
|
2201
2624
|
let next = 0;
|
|
2202
2625
|
const add = (entry, id) => {
|
|
@@ -2209,7 +2632,7 @@ function readXcodeJsonProject(xcodeproj, source) {
|
|
|
2209
2632
|
const base = /^<([A-Z]+)>\/(.*)$/.exec(raw);
|
|
2210
2633
|
if (base) {
|
|
2211
2634
|
if (base[1] === "PROJECT")
|
|
2212
|
-
return { sourceTree: "<absolute>", path:
|
|
2635
|
+
return { sourceTree: "<absolute>", path: import_node_path4.default.join(projectDir, base[2]) };
|
|
2213
2636
|
if (base[1] === "PRODUCTS")
|
|
2214
2637
|
return { sourceTree: "BUILT_PRODUCTS_DIR", path: base[2] };
|
|
2215
2638
|
return null;
|
|
@@ -2217,7 +2640,7 @@ function readXcodeJsonProject(xcodeproj, source) {
|
|
|
2217
2640
|
const unescaped = raw.replaceAll("\\<", "<");
|
|
2218
2641
|
if (unescaped.startsWith("/")) return { sourceTree: "<absolute>", path: unescaped };
|
|
2219
2642
|
if (unescaped.startsWith("~")) return null;
|
|
2220
|
-
return groupDir === null ? null : { sourceTree: "<absolute>", path:
|
|
2643
|
+
return groupDir === null ? null : { sourceTree: "<absolute>", path: import_node_path4.default.join(groupDir, unescaped) };
|
|
2221
2644
|
};
|
|
2222
2645
|
const memberships = [];
|
|
2223
2646
|
const folders = [];
|
|
@@ -2228,7 +2651,7 @@ function readXcodeJsonProject(xcodeproj, source) {
|
|
|
2228
2651
|
const kind = text(entry.kind) ?? "file-reference";
|
|
2229
2652
|
const raw = text(entry.path) ?? "";
|
|
2230
2653
|
const located = raw === "" ? null : locate(raw, parent.dir);
|
|
2231
|
-
const name = text(entry.name) ??
|
|
2654
|
+
const name = text(entry.name) ?? import_node_path4.default.basename(raw);
|
|
2232
2655
|
const node = { id: "", name, dir: null, parent, children: [] };
|
|
2233
2656
|
if (kind === "group" || kind === "variant-group" || kind === "version-group") {
|
|
2234
2657
|
node.dir = raw === "" ? parent.dir : located?.sourceTree === "<absolute>" ? located.path : null;
|
|
@@ -2349,8 +2772,12 @@ function readXcodeJsonProject(xcodeproj, source) {
|
|
|
2349
2772
|
if (!isObject(entry)) continue;
|
|
2350
2773
|
const repository = text(entry.repository);
|
|
2351
2774
|
const local = text(entry.path);
|
|
2352
|
-
const name = local !== void 0 ?
|
|
2353
|
-
const id = text(entry.kind) === "local" && local !== void 0 ? add({ isa: "XCLocalSwiftPackageReference", relativePath: local }) : add({
|
|
2775
|
+
const name = local !== void 0 ? import_node_path4.default.basename(import_node_path4.default.resolve(import_node_path4.default.dirname(xcodeproj), local)) : import_node_path4.default.basename(repository ?? "").replace(/\.git$/, "");
|
|
2776
|
+
const id = text(entry.kind) === "local" && local !== void 0 ? add({ isa: "XCLocalSwiftPackageReference", relativePath: local }) : add({
|
|
2777
|
+
isa: "XCRemoteSwiftPackageReference",
|
|
2778
|
+
repositoryURL: repository ?? "",
|
|
2779
|
+
...remoteVersionRequirement(entry)
|
|
2780
|
+
});
|
|
2354
2781
|
packageIds.set(name.toLowerCase(), id);
|
|
2355
2782
|
}
|
|
2356
2783
|
const productDependency = (entry) => add({
|
|
@@ -2538,28 +2965,28 @@ var CONDITIONS = {
|
|
|
2538
2965
|
variant: "normal"
|
|
2539
2966
|
};
|
|
2540
2967
|
function walkFiles(dir) {
|
|
2541
|
-
if (!
|
|
2968
|
+
if (!import_node_fs3.default.existsSync(dir)) return [];
|
|
2542
2969
|
const out = [];
|
|
2543
|
-
for (const entry of
|
|
2970
|
+
for (const entry of import_node_fs3.default.readdirSync(dir, { withFileTypes: true }).sort((left, right) => left.name.localeCompare(right.name))) {
|
|
2544
2971
|
if (entry.name.startsWith(".")) continue;
|
|
2545
|
-
const full =
|
|
2972
|
+
const full = import_node_path5.default.join(dir, entry.name);
|
|
2546
2973
|
if (entry.isDirectory()) out.push(...walkFiles(full));
|
|
2547
2974
|
else if (entry.isFile()) out.push(full);
|
|
2548
2975
|
}
|
|
2549
2976
|
return out;
|
|
2550
2977
|
}
|
|
2551
|
-
var isDirectory = (dir) =>
|
|
2978
|
+
var isDirectory = (dir) => import_node_fs3.default.existsSync(dir) && import_node_fs3.default.statSync(dir).isDirectory();
|
|
2552
2979
|
function readXcconfig(file, read) {
|
|
2553
|
-
if (read.includes(file) || !
|
|
2980
|
+
if (read.includes(file) || !import_node_fs3.default.existsSync(file)) return {};
|
|
2554
2981
|
read.push(file);
|
|
2555
2982
|
const settings = {};
|
|
2556
|
-
for (const raw of
|
|
2983
|
+
for (const raw of import_node_fs3.default.readFileSync(file, "utf8").split("\n")) {
|
|
2557
2984
|
const line = raw.replace(/\/\/.*$/, "").trim();
|
|
2558
2985
|
const include = /^#include\??\s+"([^"]+)"/.exec(line);
|
|
2559
2986
|
if (include) {
|
|
2560
2987
|
Object.assign(
|
|
2561
2988
|
settings,
|
|
2562
|
-
readXcconfig(
|
|
2989
|
+
readXcconfig(import_node_path5.default.resolve(import_node_path5.default.dirname(file), include[1]), read)
|
|
2563
2990
|
);
|
|
2564
2991
|
continue;
|
|
2565
2992
|
}
|
|
@@ -2609,22 +3036,22 @@ function decodeXml(text2) {
|
|
|
2609
3036
|
return text2.replaceAll(""", '"').replaceAll("'", "'").replaceAll("<", "<").replaceAll(">", ">").replaceAll("&", "&");
|
|
2610
3037
|
}
|
|
2611
3038
|
function workspaceReferences(workspace) {
|
|
2612
|
-
const data =
|
|
2613
|
-
if (!
|
|
3039
|
+
const data = import_node_path5.default.join(workspace, "contents.xcworkspacedata");
|
|
3040
|
+
if (!import_node_fs3.default.existsSync(data))
|
|
2614
3041
|
throw new Error(`${workspace} has no contents.xcworkspacedata`);
|
|
2615
|
-
const container =
|
|
3042
|
+
const container = import_node_path5.default.dirname(workspace);
|
|
2616
3043
|
const locate = (location, base) => {
|
|
2617
3044
|
const colon = location.indexOf(":");
|
|
2618
3045
|
const kind = location.slice(0, colon);
|
|
2619
3046
|
const rest = location.slice(colon + 1);
|
|
2620
|
-
if (kind === "group") return
|
|
2621
|
-
if (kind === "container" || kind === "self") return
|
|
2622
|
-
if (kind === "absolute") return
|
|
2623
|
-
throw new Error(`${
|
|
3047
|
+
if (kind === "group") return import_node_path5.default.resolve(base, rest);
|
|
3048
|
+
if (kind === "container" || kind === "self") return import_node_path5.default.resolve(container, rest);
|
|
3049
|
+
if (kind === "absolute") return import_node_path5.default.resolve(rest);
|
|
3050
|
+
throw new Error(`${import_node_path5.default.basename(workspace)} has an unsupported location ${location}`);
|
|
2624
3051
|
};
|
|
2625
3052
|
const groups = [container];
|
|
2626
3053
|
const references = [];
|
|
2627
|
-
for (const [, closing, tag, attributes, selfClosing] of
|
|
3054
|
+
for (const [, closing, tag, attributes, selfClosing] of import_node_fs3.default.readFileSync(data, "utf8").matchAll(/<(\/?)(Group|FileRef)\b([^>]*?)(\/?)>/g)) {
|
|
2628
3055
|
if (closing) {
|
|
2629
3056
|
if (tag === "Group") groups.pop();
|
|
2630
3057
|
continue;
|
|
@@ -2637,11 +3064,46 @@ function workspaceReferences(workspace) {
|
|
|
2637
3064
|
}
|
|
2638
3065
|
return references;
|
|
2639
3066
|
}
|
|
3067
|
+
function versionRequirement(url, requirement) {
|
|
3068
|
+
const kind = str(requirement.kind);
|
|
3069
|
+
const minimum = str(requirement.minimumVersion);
|
|
3070
|
+
const maximum = str(requirement.maximumVersion);
|
|
3071
|
+
const version = str(requirement.version);
|
|
3072
|
+
const branch = str(requirement.branch);
|
|
3073
|
+
const revision = str(requirement.revision);
|
|
3074
|
+
if (kind === "upToNextMajorVersion" && minimum)
|
|
3075
|
+
return { kind: "upToNextMajorVersion", minimumVersion: minimum };
|
|
3076
|
+
if (kind === "upToNextMinorVersion" && minimum)
|
|
3077
|
+
return { kind: "upToNextMinorVersion", minimumVersion: minimum };
|
|
3078
|
+
if (kind === "versionRange" && minimum && maximum)
|
|
3079
|
+
return { kind: "versionRange", minimumVersion: minimum, maximumVersion: maximum };
|
|
3080
|
+
if (kind === "exactVersion" && version) return { kind: "exactVersion", version };
|
|
3081
|
+
if (kind === "branch" && branch) return { kind: "branch", branch };
|
|
3082
|
+
if (kind === "revision" && revision) return { kind: "revision", revision };
|
|
3083
|
+
throw new Error(
|
|
3084
|
+
`${url} has an unsupported package requirement${kind ? ` (${kind})` : ""}`
|
|
3085
|
+
);
|
|
3086
|
+
}
|
|
3087
|
+
function remotePackageRequirements(projects) {
|
|
3088
|
+
const out = [];
|
|
3089
|
+
for (const project of projects) {
|
|
3090
|
+
for (const id of list(project.project.packageReferences)) {
|
|
3091
|
+
const reference = project.object(id);
|
|
3092
|
+
if (reference?.isa !== "XCRemoteSwiftPackageReference") continue;
|
|
3093
|
+
const url = str(reference.repositoryURL);
|
|
3094
|
+
if (!url) continue;
|
|
3095
|
+
const requirement = reference.requirement;
|
|
3096
|
+
if (!isDict(requirement)) throw new Error(`${url} has no version requirement`);
|
|
3097
|
+
out.push({ url, requirement: versionRequirement(url, requirement) });
|
|
3098
|
+
}
|
|
3099
|
+
}
|
|
3100
|
+
return out;
|
|
3101
|
+
}
|
|
2640
3102
|
var loaded = /* @__PURE__ */ new Map();
|
|
2641
3103
|
function xcodeProjectFile(xcodeproj) {
|
|
2642
3104
|
for (const name of ["project.pbxproj", "project.xcproj"]) {
|
|
2643
|
-
const file =
|
|
2644
|
-
if (
|
|
3105
|
+
const file = import_node_path5.default.join(xcodeproj, name);
|
|
3106
|
+
if (import_node_fs3.default.existsSync(file)) return file;
|
|
2645
3107
|
}
|
|
2646
3108
|
return null;
|
|
2647
3109
|
}
|
|
@@ -2649,7 +3111,7 @@ function loadProject(xcodeproj) {
|
|
|
2649
3111
|
const projectFile = xcodeProjectFile(xcodeproj);
|
|
2650
3112
|
if (!projectFile)
|
|
2651
3113
|
throw new Error(`${xcodeproj} has no project.pbxproj or project.xcproj`);
|
|
2652
|
-
const source =
|
|
3114
|
+
const source = import_node_fs3.default.readFileSync(projectFile, "utf8");
|
|
2653
3115
|
const digest = (0, import_node_crypto.createHash)("sha256").update(source).digest("hex");
|
|
2654
3116
|
const cached = loaded.get(projectFile);
|
|
2655
3117
|
if (cached?.digest === digest) return cached.project;
|
|
@@ -2666,10 +3128,10 @@ function loadProject(xcodeproj) {
|
|
|
2666
3128
|
if (!project || project.isa !== "PBXProject") {
|
|
2667
3129
|
throw new Error(`${projectFile} has no PBXProject root`);
|
|
2668
3130
|
}
|
|
2669
|
-
const projectDir =
|
|
2670
|
-
|
|
3131
|
+
const projectDir = import_node_fs3.default.realpathSync(
|
|
3132
|
+
import_node_path5.default.resolve(import_node_path5.default.dirname(xcodeproj), str(project.projectDirPath) ?? "")
|
|
2671
3133
|
);
|
|
2672
|
-
const resolvePath = xcodePathResolver(objects, projectDir,
|
|
3134
|
+
const resolvePath = xcodePathResolver(objects, projectDir, import_node_path5.default.join);
|
|
2673
3135
|
const result = {
|
|
2674
3136
|
xcodeproj,
|
|
2675
3137
|
projectFile,
|
|
@@ -2703,8 +3165,8 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
|
|
|
2703
3165
|
const relative = str(config.baseConfigurationReferenceRelativePath);
|
|
2704
3166
|
const own = isDict(config.buildSettings) ? config.buildSettings : {};
|
|
2705
3167
|
const directory = anchor ? project.resolvePath(anchor) : null;
|
|
2706
|
-
const baseFile = base ? project.resolvePath(base) : directory && relative ?
|
|
2707
|
-
if (options.requireSources !== false && (base || anchor || relative) && (!baseFile || !
|
|
3168
|
+
const baseFile = base ? project.resolvePath(base) : directory && relative ? import_node_path5.default.resolve(directory, relative) : null;
|
|
3169
|
+
if (options.requireSources !== false && (base || anchor || relative) && (!baseFile || !import_node_fs3.default.existsSync(baseFile)))
|
|
2708
3170
|
throw new Error(
|
|
2709
3171
|
`Unable to open base configuration reference file '${baseFile ?? base ?? relative ?? anchor}'`
|
|
2710
3172
|
);
|
|
@@ -2773,33 +3235,36 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
|
|
|
2773
3235
|
}
|
|
2774
3236
|
function settingList(value) {
|
|
2775
3237
|
const items2 = [];
|
|
2776
|
-
for (const [
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
3238
|
+
for (const [word] of value.matchAll(/(?:"(?:\\.|[^"\\])*"|\\.|[^\s"\\])+/g))
|
|
3239
|
+
items2.push(
|
|
3240
|
+
word.replace(
|
|
3241
|
+
/"((?:\\.|[^"\\])*)"|\\(.)/g,
|
|
3242
|
+
(_, quoted, escaped) => quoted !== void 0 ? quoted.replace(/\\(.)/g, "$1") : escaped
|
|
3243
|
+
)
|
|
3244
|
+
);
|
|
2780
3245
|
return items2;
|
|
2781
3246
|
}
|
|
2782
3247
|
function expandSearchPath(directory, rules) {
|
|
2783
|
-
if (
|
|
3248
|
+
if (import_node_path5.default.basename(directory) !== "**") return [directory];
|
|
2784
3249
|
const expanded = [];
|
|
2785
3250
|
const seen = /* @__PURE__ */ new Set();
|
|
2786
|
-
const queue = [
|
|
3251
|
+
const queue = [import_node_path5.default.dirname(directory)];
|
|
2787
3252
|
for (let at = 0; at < queue.length; at++) {
|
|
2788
3253
|
const current = queue[at];
|
|
2789
3254
|
let real;
|
|
2790
3255
|
try {
|
|
2791
|
-
real =
|
|
3256
|
+
real = import_node_fs3.default.realpathSync(current);
|
|
2792
3257
|
} catch {
|
|
2793
3258
|
continue;
|
|
2794
3259
|
}
|
|
2795
|
-
if (!
|
|
3260
|
+
if (!import_node_fs3.default.statSync(real).isDirectory() || seen.has(real)) continue;
|
|
2796
3261
|
seen.add(real);
|
|
2797
3262
|
expanded.push(current);
|
|
2798
|
-
for (const entry of
|
|
3263
|
+
for (const entry of import_node_fs3.default.readdirSync(real, { withFileTypes: true }).sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0)) {
|
|
2799
3264
|
if (entry.isSymbolicLink() ? !rules.followLinks : !entry.isDirectory()) continue;
|
|
2800
3265
|
if (rules.excluded.some((pattern) => pattern.test(entry.name)) && !rules.included.some((pattern) => pattern.test(entry.name)))
|
|
2801
3266
|
continue;
|
|
2802
|
-
queue.push(
|
|
3267
|
+
queue.push(import_node_path5.default.join(current, entry.name));
|
|
2803
3268
|
}
|
|
2804
3269
|
}
|
|
2805
3270
|
return expanded;
|
|
@@ -2841,8 +3306,54 @@ function expand(value, lookup) {
|
|
|
2841
3306
|
);
|
|
2842
3307
|
}
|
|
2843
3308
|
var preparedSourcePhases = /* @__PURE__ */ new Map();
|
|
3309
|
+
function shellCopies(script, settings, projectDir) {
|
|
3310
|
+
const assigned = /* @__PURE__ */ new Map();
|
|
3311
|
+
const copies = [];
|
|
3312
|
+
let resolved = true;
|
|
3313
|
+
const lookup = (name) => {
|
|
3314
|
+
const value = assigned.get(name) ?? settings(name);
|
|
3315
|
+
if (value === "") resolved = false;
|
|
3316
|
+
return value;
|
|
3317
|
+
};
|
|
3318
|
+
const word = (token2) => {
|
|
3319
|
+
if (/\$\{[A-Za-z_][A-Za-z0-9_]*(?::?[-+=?]|[#%/^,])/.test(token2)) return null;
|
|
3320
|
+
resolved = true;
|
|
3321
|
+
const quote = token2[0];
|
|
3322
|
+
const value = quote === "'" ? token2.slice(1, -1) : expand(quote === '"' ? token2.slice(1, -1) : token2, lookup);
|
|
3323
|
+
return resolved && !value.includes("$") ? value : null;
|
|
3324
|
+
};
|
|
3325
|
+
const token = /^(?:"[^"\\`]*"|'[^']*'|[^\s"'`;&|<>()\\]+)$/;
|
|
3326
|
+
for (const raw of script.split(/\r?\n/)) {
|
|
3327
|
+
const line = raw.trim().replace(/^export\s+/, "");
|
|
3328
|
+
if (line === "" || line.startsWith("#") || /^set\s+-[A-Za-z]+(\s+\w+)?$/.test(line))
|
|
3329
|
+
continue;
|
|
3330
|
+
const tokens = line.match(/"[^"]*"|'[^']*'|\S+/g) ?? [];
|
|
3331
|
+
if (!tokens.every(
|
|
3332
|
+
(value, index) => token.test(index === 0 ? value.replace(/^[A-Za-z_][A-Za-z0-9_]*=/, "") : value)
|
|
3333
|
+
))
|
|
3334
|
+
return [];
|
|
3335
|
+
const assignment = /^([A-Za-z_][A-Za-z0-9_]*)=(.*)$/.exec(line);
|
|
3336
|
+
if (assignment) {
|
|
3337
|
+
const value = tokens.length === 1 ? word(assignment[2]) : null;
|
|
3338
|
+
if (value === null) return [];
|
|
3339
|
+
assigned.set(assignment[1], value);
|
|
3340
|
+
continue;
|
|
3341
|
+
}
|
|
3342
|
+
if (tokens[0] !== "cp" && tokens[0] !== "echo") return [];
|
|
3343
|
+
const operands = tokens.slice(1).map(word);
|
|
3344
|
+
if (operands.includes(null)) return [];
|
|
3345
|
+
if (tokens[0] === "echo") continue;
|
|
3346
|
+
if (operands.length !== 2 || operands.some((operand) => operand.startsWith("-")))
|
|
3347
|
+
return [];
|
|
3348
|
+
copies.push({
|
|
3349
|
+
from: import_node_path5.default.resolve(projectDir, operands[0]),
|
|
3350
|
+
to: import_node_path5.default.resolve(projectDir, operands[1])
|
|
3351
|
+
});
|
|
3352
|
+
}
|
|
3353
|
+
return copies;
|
|
3354
|
+
}
|
|
2844
3355
|
function fileListEntries(file, absolute) {
|
|
2845
|
-
return
|
|
3356
|
+
return import_node_fs3.default.readFileSync(file, "utf8").split(/\r?\n/).map((line) => line.trim()).filter((line) => line !== "" && !line.startsWith("#")).map(absolute);
|
|
2846
3357
|
}
|
|
2847
3358
|
function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
2848
3359
|
const { project, target, id: targetId } = ref;
|
|
@@ -2852,11 +3363,19 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
2852
3363
|
const headers = /* @__PURE__ */ new Set();
|
|
2853
3364
|
const resources = /* @__PURE__ */ new Set();
|
|
2854
3365
|
const scriptForOutput = /* @__PURE__ */ new Map();
|
|
3366
|
+
const copiedFiles = [];
|
|
3367
|
+
let generatedInfoPlist = false;
|
|
3368
|
+
const declaredInfoPlist = settings("INFOPLIST_FILE");
|
|
3369
|
+
const infoPlistOutput = declaredInfoPlist ? import_node_path5.default.resolve(project.projectDir, declaredInfoPlist) : null;
|
|
3370
|
+
const isPreparedOutput = (file) => file === infoPlistOutput || options.requireSources !== false && file.endsWith(".swift");
|
|
2855
3371
|
for (const phaseId of list(target.buildPhases)) {
|
|
2856
3372
|
const phase = project.object(phaseId);
|
|
2857
3373
|
if (phase?.isa !== "PBXShellScriptBuildPhase") continue;
|
|
2858
3374
|
const script = str(phase.name) ?? phaseId;
|
|
2859
|
-
|
|
3375
|
+
copiedFiles.push(
|
|
3376
|
+
...shellCopies(str(phase.shellScript) ?? "", settings, project.projectDir)
|
|
3377
|
+
);
|
|
3378
|
+
const absolute = (raw) => import_node_path5.default.resolve(project.projectDir, expand(raw, settings));
|
|
2860
3379
|
const inputs = list(phase.inputPaths).map(absolute);
|
|
2861
3380
|
const outputs = list(phase.outputPaths).map(absolute);
|
|
2862
3381
|
const fileLists = /* @__PURE__ */ new Map();
|
|
@@ -2865,7 +3384,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
2865
3384
|
kind === "INPUT" ? phase.inputFileListPaths : phase.outputFileListPaths
|
|
2866
3385
|
).map((raw) => {
|
|
2867
3386
|
const file = absolute(raw);
|
|
2868
|
-
if (!
|
|
3387
|
+
if (!import_node_fs3.default.existsSync(file)) {
|
|
2869
3388
|
return { file, entries: [] };
|
|
2870
3389
|
}
|
|
2871
3390
|
return { file, entries: fileListEntries(file, absolute) };
|
|
@@ -2876,6 +3395,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
2876
3395
|
...outputs,
|
|
2877
3396
|
...fileLists.get("OUTPUT").flatMap((item) => item.entries)
|
|
2878
3397
|
];
|
|
3398
|
+
if (allOutputs.includes(infoPlistOutput)) generatedInfoPlist = true;
|
|
2879
3399
|
for (const output of allOutputs)
|
|
2880
3400
|
if (output.endsWith(".swift") && !scriptForOutput.has(output))
|
|
2881
3401
|
scriptForOutput.set(output, script);
|
|
@@ -2884,14 +3404,14 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
2884
3404
|
...fileLists.get("INPUT").flatMap((item) => [item.file, ...item.entries]),
|
|
2885
3405
|
...fileLists.get("OUTPUT").map((item) => item.file)
|
|
2886
3406
|
];
|
|
2887
|
-
if (allOutputs.some((file) => file.endsWith(".swift"))) {
|
|
2888
|
-
for (const file of inputFiles) if (
|
|
3407
|
+
if (allOutputs.some((file) => file.endsWith(".swift") || file === infoPlistOutput)) {
|
|
3408
|
+
for (const file of inputFiles) if (import_node_fs3.default.existsSync(file)) projectInputs.add(file);
|
|
2889
3409
|
}
|
|
2890
|
-
if (options.prepareGeneratedSources
|
|
2891
|
-
const phaseDir =
|
|
3410
|
+
if (options.prepareGeneratedSources === true && allOutputs.some(isPreparedOutput)) {
|
|
3411
|
+
const phaseDir = import_node_path5.default.join(settings("TARGET_TEMP_DIR"), `Script-${phaseId}`);
|
|
2892
3412
|
for (const lists of fileLists.values())
|
|
2893
3413
|
for (const { file } of lists)
|
|
2894
|
-
if (!
|
|
3414
|
+
if (!import_node_fs3.default.existsSync(file))
|
|
2895
3415
|
throw new Error(
|
|
2896
3416
|
`${targetName}: Run Script "${script}" missing file list ${file}`
|
|
2897
3417
|
);
|
|
@@ -2910,7 +3430,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
2910
3430
|
const lists = fileLists.get(kind);
|
|
2911
3431
|
env[`SCRIPT_${kind}_FILE_LIST_COUNT`] = String(lists.length);
|
|
2912
3432
|
lists.forEach((_item, index) => {
|
|
2913
|
-
env[`SCRIPT_${kind}_FILE_LIST_${index}`] =
|
|
3433
|
+
env[`SCRIPT_${kind}_FILE_LIST_${index}`] = import_node_path5.default.join(
|
|
2914
3434
|
phaseDir,
|
|
2915
3435
|
`${kind}-${index}.xcfilelist`
|
|
2916
3436
|
);
|
|
@@ -2921,49 +3441,49 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
2921
3441
|
);
|
|
2922
3442
|
for (const file of inputFiles) {
|
|
2923
3443
|
signature.update(file);
|
|
2924
|
-
if (
|
|
2925
|
-
const stat =
|
|
3444
|
+
if (import_node_fs3.default.existsSync(file)) {
|
|
3445
|
+
const stat = import_node_fs3.default.statSync(file);
|
|
2926
3446
|
signature.update(`${stat.mtimeMs}:${stat.ctimeMs}:${stat.size}`);
|
|
2927
3447
|
} else signature.update("missing");
|
|
2928
3448
|
}
|
|
2929
3449
|
const stamp = signature.digest("hex");
|
|
2930
3450
|
const key = `${project.projectFile}:${targetId}:${phaseId}:${settings("CONFIGURATION")}`;
|
|
2931
|
-
if (preparedSourcePhases.get(key) === stamp && allOutputs.every((file) =>
|
|
3451
|
+
if (preparedSourcePhases.get(key) === stamp && allOutputs.every((file) => import_node_fs3.default.existsSync(file)))
|
|
2932
3452
|
continue;
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
3453
|
+
import_node_fs3.default.mkdirSync(phaseDir, { recursive: true });
|
|
3454
|
+
import_node_fs3.default.mkdirSync(settings("BUILT_PRODUCTS_DIR"), { recursive: true });
|
|
3455
|
+
import_node_fs3.default.mkdirSync(settings("DERIVED_FILE_DIR"), { recursive: true });
|
|
2936
3456
|
for (const output of allOutputs)
|
|
2937
|
-
|
|
3457
|
+
import_node_fs3.default.mkdirSync(import_node_path5.default.dirname(output), { recursive: true });
|
|
2938
3458
|
for (const [kind, lists] of fileLists)
|
|
2939
3459
|
lists.forEach((item, index) => {
|
|
2940
|
-
|
|
3460
|
+
import_node_fs3.default.writeFileSync(
|
|
2941
3461
|
env[`SCRIPT_${kind}_FILE_LIST_${index}`],
|
|
2942
3462
|
`${item.entries.join("\n")}
|
|
2943
3463
|
`
|
|
2944
3464
|
);
|
|
2945
3465
|
});
|
|
2946
3466
|
try {
|
|
2947
|
-
(0,
|
|
3467
|
+
(0, import_node_child_process2.execFileSync)(
|
|
2948
3468
|
str(phase.shellPath) ?? "/bin/sh",
|
|
2949
3469
|
["-c", str(phase.shellScript) ?? ""],
|
|
2950
3470
|
{
|
|
2951
3471
|
cwd: project.projectDir,
|
|
2952
3472
|
env,
|
|
2953
3473
|
stdio: ["ignore", "pipe", "pipe"],
|
|
2954
|
-
|
|
3474
|
+
maxBuffer: Infinity
|
|
2955
3475
|
}
|
|
2956
3476
|
);
|
|
2957
3477
|
} catch (error) {
|
|
2958
3478
|
const output = error instanceof Error ? `${error.message}
|
|
2959
3479
|
${"stdout" in error ? String(error.stdout) : ""}${"stderr" in error ? String(error.stderr) : ""}` : String(error);
|
|
2960
3480
|
throw new Error(
|
|
2961
|
-
`${targetName}: Run Script "${script}" failed preparing generated
|
|
3481
|
+
`${targetName}: Run Script "${script}" failed preparing generated outputs:
|
|
2962
3482
|
${output}`
|
|
2963
3483
|
);
|
|
2964
3484
|
}
|
|
2965
3485
|
const missing = allOutputs.filter(
|
|
2966
|
-
(file) => file
|
|
3486
|
+
(file) => file === infoPlistOutput && !import_node_fs3.default.existsSync(file)
|
|
2967
3487
|
);
|
|
2968
3488
|
if (missing.length > 0)
|
|
2969
3489
|
throw new Error(
|
|
@@ -2976,8 +3496,8 @@ ${output}`
|
|
|
2976
3496
|
project.objects,
|
|
2977
3497
|
targetId,
|
|
2978
3498
|
project.resolvePath,
|
|
2979
|
-
(file) => isDirectory(file) ? walkFiles(file) :
|
|
2980
|
-
|
|
3499
|
+
(file) => isDirectory(file) ? walkFiles(file) : import_node_fs3.default.existsSync(file) ? [file] : [],
|
|
3500
|
+
import_node_path5.default.join,
|
|
2981
3501
|
(file, kind) => {
|
|
2982
3502
|
if (kind === "header") {
|
|
2983
3503
|
headers.add(file);
|
|
@@ -2987,9 +3507,9 @@ ${output}`
|
|
|
2987
3507
|
resources.add(file);
|
|
2988
3508
|
return;
|
|
2989
3509
|
}
|
|
2990
|
-
if (!
|
|
3510
|
+
if (!import_node_fs3.default.existsSync(file)) {
|
|
2991
3511
|
if (options.requireSources === false) return;
|
|
2992
|
-
const script = scriptForOutput.get(
|
|
3512
|
+
const script = scriptForOutput.get(import_node_path5.default.normalize(file));
|
|
2993
3513
|
throw new Error(
|
|
2994
3514
|
script ? `${targetName}: missing generated source ${file} (Run Script "${script}" declares it in outputPaths; run the script or check in its output)` : `${targetName}: missing source ${file}`
|
|
2995
3515
|
);
|
|
@@ -2998,20 +3518,19 @@ ${output}`
|
|
|
2998
3518
|
if (file.endsWith(".swift")) sources.add(file);
|
|
2999
3519
|
}
|
|
3000
3520
|
);
|
|
3001
|
-
for (const [file
|
|
3521
|
+
for (const [file] of scriptForOutput) {
|
|
3002
3522
|
if (sources.has(file) || allSources.has(file)) continue;
|
|
3003
|
-
if (!
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
}
|
|
3009
|
-
allSources.add(file);
|
|
3010
|
-
sources.add(file);
|
|
3523
|
+
if (!import_node_fs3.default.existsSync(file)) continue;
|
|
3524
|
+
const canonical = import_node_fs3.default.realpathSync(file);
|
|
3525
|
+
if (sources.has(canonical) || allSources.has(canonical)) continue;
|
|
3526
|
+
allSources.add(canonical);
|
|
3527
|
+
sources.add(canonical);
|
|
3011
3528
|
}
|
|
3012
3529
|
return {
|
|
3013
3530
|
sources: [...sources].sort(),
|
|
3014
3531
|
resources: [...resources].sort(),
|
|
3532
|
+
copiedFiles,
|
|
3533
|
+
generatedInfoPlist,
|
|
3015
3534
|
allSources: [...allSources].sort(),
|
|
3016
3535
|
headers: [...headers].sort()
|
|
3017
3536
|
};
|
|
@@ -3019,37 +3538,37 @@ ${output}`
|
|
|
3019
3538
|
function commonAncestor(dirs) {
|
|
3020
3539
|
let common = dirs[0];
|
|
3021
3540
|
for (const dir of dirs) {
|
|
3022
|
-
while (common !==
|
|
3023
|
-
common =
|
|
3541
|
+
while (common !== import_node_path5.default.dirname(common) && import_node_path5.default.relative(common, dir).startsWith(".."))
|
|
3542
|
+
common = import_node_path5.default.dirname(common);
|
|
3024
3543
|
}
|
|
3025
3544
|
return common;
|
|
3026
3545
|
}
|
|
3027
|
-
var isPodsProject = (xcodeproj) =>
|
|
3546
|
+
var isPodsProject = (xcodeproj) => import_node_path5.default.basename(xcodeproj) === "Pods.xcodeproj" && import_node_path5.default.basename(import_node_path5.default.dirname(xcodeproj)) === "Pods";
|
|
3028
3547
|
function installedPodsSandbox(pods) {
|
|
3029
|
-
const podfileLock =
|
|
3030
|
-
const manifestLock =
|
|
3031
|
-
if (!
|
|
3548
|
+
const podfileLock = import_node_path5.default.join(import_node_path5.default.dirname(pods), "Podfile.lock");
|
|
3549
|
+
const manifestLock = import_node_path5.default.join(pods, "Manifest.lock");
|
|
3550
|
+
if (!import_node_fs3.default.existsSync(podfileLock))
|
|
3032
3551
|
throw new Error(
|
|
3033
|
-
`${pods} has no ${podfileLock}: run \`pod install\` in ${
|
|
3552
|
+
`${pods} has no ${podfileLock}: run \`pod install\` in ${import_node_path5.default.dirname(pods)}`
|
|
3034
3553
|
);
|
|
3035
|
-
if (!
|
|
3554
|
+
if (!import_node_fs3.default.existsSync(manifestLock) || !import_node_fs3.default.readFileSync(manifestLock).equals(import_node_fs3.default.readFileSync(podfileLock)))
|
|
3036
3555
|
throw new Error(
|
|
3037
|
-
`The sandbox is not in sync with the Podfile.lock: ${manifestLock} differs from ${podfileLock}. Run \`pod install\` in ${
|
|
3556
|
+
`The sandbox is not in sync with the Podfile.lock: ${manifestLock} differs from ${podfileLock}. Run \`pod install\` in ${import_node_path5.default.dirname(pods)}`
|
|
3038
3557
|
);
|
|
3039
3558
|
const specChecksums = {};
|
|
3040
|
-
const lines =
|
|
3559
|
+
const lines = import_node_fs3.default.readFileSync(manifestLock, "utf8").split("\n");
|
|
3041
3560
|
const start = lines.indexOf("SPEC CHECKSUMS:");
|
|
3042
3561
|
for (const line of start === -1 ? [] : lines.slice(start + 1)) {
|
|
3043
3562
|
const entry = /^ {2}"?([^":]+)"?: ([0-9a-f]+)$/.exec(line);
|
|
3044
3563
|
if (!entry) break;
|
|
3045
3564
|
specChecksums[entry[1]] = entry[2];
|
|
3046
3565
|
}
|
|
3047
|
-
const specs =
|
|
3566
|
+
const specs = import_node_path5.default.join(pods, "Local Podspecs");
|
|
3048
3567
|
return {
|
|
3049
3568
|
podfileLock,
|
|
3050
3569
|
manifestLock,
|
|
3051
3570
|
specChecksums,
|
|
3052
|
-
localPodspecs: isDirectory(specs) ?
|
|
3571
|
+
localPodspecs: isDirectory(specs) ? import_node_fs3.default.readdirSync(specs).filter((name) => name.endsWith(".podspec.json")).sort().map((name) => import_node_path5.default.join(specs, name)) : []
|
|
3053
3572
|
};
|
|
3054
3573
|
}
|
|
3055
3574
|
function workspaceProjects(xcodeprojOrWorkspace, installedPods = false) {
|
|
@@ -3061,14 +3580,14 @@ function workspaceProjects(xcodeprojOrWorkspace, installedPods = false) {
|
|
|
3061
3580
|
if (!xcodeProjectFile(xcodeproj)) {
|
|
3062
3581
|
if (installedPods && isPodsProject(xcodeproj))
|
|
3063
3582
|
throw new Error(
|
|
3064
|
-
`${
|
|
3583
|
+
`${import_node_path5.default.basename(xcodeprojOrWorkspace)} builds ${xcodeproj}, which is not installed: run \`pod install\` in ${import_node_path5.default.dirname(import_node_path5.default.dirname(xcodeproj))}`
|
|
3065
3584
|
);
|
|
3066
3585
|
return;
|
|
3067
3586
|
}
|
|
3068
|
-
const key =
|
|
3069
|
-
if (projectAt.has(key) || !installedPods && key.split(
|
|
3587
|
+
const key = import_node_fs3.default.realpathSync(xcodeproj);
|
|
3588
|
+
if (projectAt.has(key) || !installedPods && key.split(import_node_path5.default.sep).includes("Pods"))
|
|
3070
3589
|
return;
|
|
3071
|
-
if (isPodsProject(key)) cocoapods = installedPodsSandbox(
|
|
3590
|
+
if (isPodsProject(key)) cocoapods = installedPodsSandbox(import_node_path5.default.dirname(key));
|
|
3072
3591
|
const project = loadProject(key);
|
|
3073
3592
|
projectAt.set(key, project);
|
|
3074
3593
|
projects.push(project);
|
|
@@ -3084,12 +3603,12 @@ function workspaceProjects(xcodeprojOrWorkspace, installedPods = false) {
|
|
|
3084
3603
|
for (const reference of listed)
|
|
3085
3604
|
if (reference.endsWith(".xcodeproj")) addProject(reference);
|
|
3086
3605
|
if (projects.length === 0) {
|
|
3087
|
-
throw new Error(`${
|
|
3606
|
+
throw new Error(`${import_node_path5.default.basename(xcodeprojOrWorkspace)} lists no Xcode project`);
|
|
3088
3607
|
}
|
|
3089
|
-
const podfile =
|
|
3090
|
-
if (installedPods && !cocoapods &&
|
|
3608
|
+
const podfile = import_node_path5.default.join(import_node_path5.default.dirname(xcodeprojOrWorkspace), "Podfile");
|
|
3609
|
+
if (installedPods && !cocoapods && import_node_fs3.default.existsSync(podfile))
|
|
3091
3610
|
throw new Error(
|
|
3092
|
-
`${podfile} is not installed into ${
|
|
3611
|
+
`${podfile} is not installed into ${import_node_path5.default.basename(xcodeprojOrWorkspace)}: run \`pod install\` in ${import_node_path5.default.dirname(podfile)} and open the workspace it writes`
|
|
3093
3612
|
);
|
|
3094
3613
|
return { listed, projects, projectAt, cocoapods };
|
|
3095
3614
|
}
|
|
@@ -3125,7 +3644,7 @@ function listXcodeAppTargets(xcodeprojOrWorkspace, options = {}) {
|
|
|
3125
3644
|
return workspaceProjects(xcodeprojOrWorkspace).projects.flatMap(projectTargets).filter((ref) => isIosAppTarget(ref, options)).map((ref) => str(ref.target.name) ?? ref.id);
|
|
3126
3645
|
}
|
|
3127
3646
|
function readXcodeAppTarget(input, targetName, configurationName, options = {}) {
|
|
3128
|
-
const xcodeprojOrWorkspace =
|
|
3647
|
+
const xcodeprojOrWorkspace = import_node_fs3.default.realpathSync(input);
|
|
3129
3648
|
const workspace = xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : null;
|
|
3130
3649
|
const { listed, projects, projectAt, cocoapods } = workspaceProjects(
|
|
3131
3650
|
xcodeprojOrWorkspace,
|
|
@@ -3134,7 +3653,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3134
3653
|
const allTargets = projects.flatMap(projectTargets);
|
|
3135
3654
|
const appTargets = allTargets.filter((ref) => isIosAppTarget(ref, options));
|
|
3136
3655
|
const appTargetNames = appTargets.map((ref) => str(ref.target.name) ?? ref.id);
|
|
3137
|
-
const container =
|
|
3656
|
+
const container = import_node_path5.default.basename(xcodeprojOrWorkspace);
|
|
3138
3657
|
const named = targetName ? appTargets.filter((ref) => ref.target.name === targetName) : appTargets;
|
|
3139
3658
|
if (named.length !== 1) {
|
|
3140
3659
|
throw new Error(
|
|
@@ -3147,15 +3666,15 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3147
3666
|
for (const ref of allTargets) {
|
|
3148
3667
|
const product = ref.project.object(str(ref.target.productReference));
|
|
3149
3668
|
const file = str(product?.path);
|
|
3150
|
-
if (file && !byProduct.has(
|
|
3151
|
-
byProduct.set(
|
|
3669
|
+
if (file && !byProduct.has(import_node_path5.default.basename(file)))
|
|
3670
|
+
byProduct.set(import_node_path5.default.basename(file), ref);
|
|
3152
3671
|
}
|
|
3153
3672
|
const proxied = (project, proxyId) => {
|
|
3154
3673
|
const proxy = project.object(proxyId);
|
|
3155
3674
|
if (proxy?.isa !== "PBXContainerItemProxy") return void 0;
|
|
3156
3675
|
const portal = str(proxy.containerPortal);
|
|
3157
3676
|
const portalPath = project.resolvePath(portal ?? "");
|
|
3158
|
-
const owner = project.object(portal)?.isa === "PBXProject" ? project : portalPath &&
|
|
3677
|
+
const owner = project.object(portal)?.isa === "PBXProject" ? project : portalPath && import_node_fs3.default.existsSync(portalPath) ? projectAt.get(import_node_fs3.default.realpathSync(portalPath)) : void 0;
|
|
3159
3678
|
const remote = str(proxy.remoteGlobalIDString);
|
|
3160
3679
|
if (!owner || !remote) return void 0;
|
|
3161
3680
|
return projectTargets(owner).find(
|
|
@@ -3176,7 +3695,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3176
3695
|
if (phase?.isa !== "PBXFrameworksBuildPhase") continue;
|
|
3177
3696
|
for (const buildFileId of list(phase.files)) {
|
|
3178
3697
|
const file = project.object(str(project.object(buildFileId)?.fileRef));
|
|
3179
|
-
const resolved = file?.isa === "PBXReferenceProxy" ? proxied(project, str(file.remoteRef)) : file && str(file.sourceTree) === "BUILT_PRODUCTS_DIR" ? byProduct.get(
|
|
3698
|
+
const resolved = file?.isa === "PBXReferenceProxy" ? proxied(project, str(file.remoteRef)) : file && str(file.sourceTree) === "BUILT_PRODUCTS_DIR" ? byProduct.get(import_node_path5.default.basename(str(file.path) ?? "")) : void 0;
|
|
3180
3699
|
if (resolved) found.push(resolved);
|
|
3181
3700
|
}
|
|
3182
3701
|
}
|
|
@@ -3215,38 +3734,68 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3215
3734
|
{ TARGET_NAME: str(ref.target.name) ?? ref.id },
|
|
3216
3735
|
options
|
|
3217
3736
|
).get("PRODUCT_NAME");
|
|
3737
|
+
const syncHeaderCache = /* @__PURE__ */ new Map();
|
|
3738
|
+
const synchronizedHeaders = (ref) => {
|
|
3739
|
+
const key = `${ref.project.xcodeproj}\0${ref.id}`;
|
|
3740
|
+
const cached = syncHeaderCache.get(key);
|
|
3741
|
+
if (cached) return cached;
|
|
3742
|
+
const found = [];
|
|
3743
|
+
visitXcodeTargetMembers(
|
|
3744
|
+
ref.project.objects,
|
|
3745
|
+
ref.id,
|
|
3746
|
+
ref.project.resolvePath,
|
|
3747
|
+
(file) => isDirectory(file) ? walkFiles(file) : import_node_fs3.default.existsSync(file) ? [file] : [],
|
|
3748
|
+
import_node_path5.default.join,
|
|
3749
|
+
(file, kind) => {
|
|
3750
|
+
if (kind === "header") found.push(file);
|
|
3751
|
+
}
|
|
3752
|
+
);
|
|
3753
|
+
syncHeaderCache.set(key, found);
|
|
3754
|
+
return found;
|
|
3755
|
+
};
|
|
3218
3756
|
const projectHeaderMaps = /* @__PURE__ */ new Map();
|
|
3219
3757
|
const projectHeaderMap = (project) => {
|
|
3220
3758
|
const cached = projectHeaderMaps.get(project);
|
|
3221
3759
|
if (cached) return cached;
|
|
3222
3760
|
const entries = /* @__PURE__ */ new Map();
|
|
3223
3761
|
for (const ref of projectTargets(project)) {
|
|
3224
|
-
const
|
|
3225
|
-
const product = framework ? productName(ref) : "";
|
|
3762
|
+
const product = productName(ref);
|
|
3226
3763
|
for (const { file, visibility } of headerPhase(ref)) {
|
|
3227
|
-
const name =
|
|
3764
|
+
const name = import_node_path5.default.basename(file);
|
|
3228
3765
|
if (!entries.has(name))
|
|
3229
|
-
entries.set(
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3766
|
+
entries.set(name, visibility !== "Project" ? `${product}/${name}` : file);
|
|
3767
|
+
}
|
|
3768
|
+
for (const file of synchronizedHeaders(ref)) {
|
|
3769
|
+
const name = import_node_path5.default.basename(file);
|
|
3770
|
+
if (!entries.has(name)) entries.set(name, file);
|
|
3771
|
+
}
|
|
3772
|
+
}
|
|
3773
|
+
for (const ref of projectTargets(project)) {
|
|
3774
|
+
for (const groupId of list(ref.target.fileSystemSynchronizedGroups)) {
|
|
3775
|
+
const folder = project.resolvePath(groupId);
|
|
3776
|
+
if (folder === null) continue;
|
|
3777
|
+
for (const file of walkFiles(folder)) {
|
|
3778
|
+
if (!HEADER_FILE.test(file)) continue;
|
|
3779
|
+
const name = import_node_path5.default.basename(file);
|
|
3780
|
+
if (!entries.has(name)) entries.set(name, file);
|
|
3781
|
+
}
|
|
3233
3782
|
}
|
|
3234
3783
|
}
|
|
3235
3784
|
for (const id of Object.keys(project.objects)) {
|
|
3236
3785
|
if (project.object(id)?.isa !== "PBXFileReference") continue;
|
|
3237
3786
|
const file = project.resolvePath(id);
|
|
3238
|
-
if (file && HEADER_FILE.test(file) && !entries.has(
|
|
3239
|
-
entries.set(
|
|
3787
|
+
if (file && HEADER_FILE.test(file) && !entries.has(import_node_path5.default.basename(file)))
|
|
3788
|
+
entries.set(import_node_path5.default.basename(file), file);
|
|
3240
3789
|
}
|
|
3241
3790
|
const map = [...entries];
|
|
3242
3791
|
projectHeaderMaps.set(project, map);
|
|
3243
3792
|
return map;
|
|
3244
3793
|
};
|
|
3245
3794
|
const xcconfigs = /* @__PURE__ */ new Set();
|
|
3246
|
-
const buildDir = (project) =>
|
|
3795
|
+
const buildDir = (project) => import_node_path5.default.join(project.projectDir, ".build/peach-xcode/Build");
|
|
3247
3796
|
const podsBuild = {
|
|
3248
|
-
SYMROOT:
|
|
3249
|
-
OBJROOT:
|
|
3797
|
+
SYMROOT: import_node_path5.default.join(buildDir(app.project), "Products"),
|
|
3798
|
+
OBJROOT: import_node_path5.default.join(buildDir(app.project), "Intermediates.noindex")
|
|
3250
3799
|
};
|
|
3251
3800
|
const moduleTarget = (ref) => {
|
|
3252
3801
|
const name = str(ref.target.name) ?? ref.id;
|
|
@@ -3261,15 +3810,15 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3261
3810
|
TARGET_NAME: name,
|
|
3262
3811
|
TARGETNAME: "$(TARGET_NAME)",
|
|
3263
3812
|
PROJECT: "$(PROJECT_NAME)",
|
|
3264
|
-
PROJECT_NAME:
|
|
3813
|
+
PROJECT_NAME: import_node_path5.default.basename(ref.project.xcodeproj, ".xcodeproj"),
|
|
3265
3814
|
PROJECT_FILE_PATH: ref.project.xcodeproj,
|
|
3266
3815
|
SRCROOT: ref.project.projectDir,
|
|
3267
3816
|
SOURCE_ROOT: ref.project.projectDir,
|
|
3268
3817
|
PROJECT_DIR: ref.project.projectDir,
|
|
3269
|
-
SYMROOT:
|
|
3818
|
+
SYMROOT: import_node_path5.default.join(buildDir(ref.project), "Products"),
|
|
3270
3819
|
BUILD_DIR: "$(SYMROOT)",
|
|
3271
3820
|
BUILD_ROOT: "$(SYMROOT)",
|
|
3272
|
-
OBJROOT:
|
|
3821
|
+
OBJROOT: import_node_path5.default.join(buildDir(ref.project), "Intermediates.noindex"),
|
|
3273
3822
|
CONFIGURATION_BUILD_DIR: "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)",
|
|
3274
3823
|
BUILT_PRODUCTS_DIR: "$(CONFIGURATION_BUILD_DIR)",
|
|
3275
3824
|
TARGET_BUILD_DIR: "$(CONFIGURATION_BUILD_DIR)",
|
|
@@ -3282,6 +3831,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3282
3831
|
TEMP_ROOT: "$(OBJROOT)",
|
|
3283
3832
|
DERIVED_FILE_DIR: "$(TARGET_TEMP_DIR)/DerivedSources",
|
|
3284
3833
|
DERIVED_FILES_DIR: "$(DERIVED_FILE_DIR)",
|
|
3834
|
+
DERIVED_SOURCES_DIR: "$(DERIVED_FILE_DIR)",
|
|
3285
3835
|
PLATFORM_NAME: "iphonesimulator",
|
|
3286
3836
|
EFFECTIVE_PLATFORM_NAME: "-iphonesimulator",
|
|
3287
3837
|
CURRENT_ARCH: "arm64",
|
|
@@ -3302,11 +3852,38 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3302
3852
|
xcconfigs
|
|
3303
3853
|
);
|
|
3304
3854
|
const searchRules = recursiveSearchRules(settings2);
|
|
3305
|
-
const absolute = (file) =>
|
|
3855
|
+
const absolute = (file) => import_node_path5.default.resolve(ref.project.projectDir, file);
|
|
3306
3856
|
const framework = FRAMEWORK_PRODUCTS.has(str(ref.target.productType) ?? "");
|
|
3307
3857
|
const product = settings2("PRODUCT_NAME");
|
|
3858
|
+
const moduleName = applyOperator(settings2("PRODUCT_MODULE_NAME"), "c99extidentifier");
|
|
3859
|
+
const compatibilityPhases = list(ref.target.buildPhases).flatMap((id) => {
|
|
3860
|
+
const phase = ref.project.object(id);
|
|
3861
|
+
if (phase?.isa !== "PBXShellScriptBuildPhase" || str(phase.name) !== "Copy generated compatibility header")
|
|
3862
|
+
return [];
|
|
3863
|
+
const inputs = list(phase.inputPaths).map(
|
|
3864
|
+
(file) => absolute(expand(file, settings2))
|
|
3865
|
+
);
|
|
3866
|
+
const outputs = list(phase.outputPaths).map(
|
|
3867
|
+
(file) => absolute(expand(file, settings2))
|
|
3868
|
+
);
|
|
3869
|
+
const moduleMap2 = inputs.find((file) => file.endsWith(".modulemap"));
|
|
3870
|
+
const umbrella = inputs.find((file) => file.endsWith("-umbrella.h"));
|
|
3871
|
+
const outputModuleMap = outputs.find((file) => file.endsWith(".modulemap"));
|
|
3872
|
+
const outputUmbrella = outputs.find((file) => file.endsWith("-umbrella.h"));
|
|
3873
|
+
const outputHeader = outputs.find((file) => file.endsWith(`/${moduleName}-Swift.h`));
|
|
3874
|
+
if (!moduleMap2 || !umbrella || !outputModuleMap || !outputUmbrella || !outputHeader)
|
|
3875
|
+
throw new Error(`${name}: incomplete CocoaPods Swift compatibility header phase`);
|
|
3876
|
+
return [{ id, moduleMap: moduleMap2, umbrella, outputModuleMap, outputUmbrella, outputHeader }];
|
|
3877
|
+
});
|
|
3878
|
+
if (compatibilityPhases.length > 1)
|
|
3879
|
+
throw new Error(`${name}: multiple CocoaPods Swift compatibility header phases`);
|
|
3880
|
+
const compatibility = compatibilityPhases[0];
|
|
3881
|
+
if (compatibility && members.sources.length === 0)
|
|
3882
|
+
throw new Error(
|
|
3883
|
+
`${name}: Swift compatibility header phase has no Swift producer sources`
|
|
3884
|
+
);
|
|
3308
3885
|
const building = options.prepareGeneratedSources && options.requireSources !== false;
|
|
3309
|
-
const versioning = building && allSources.length > 0 && settings2("VERSIONING_SYSTEM") === "apple-generic" ?
|
|
3886
|
+
const versioning = building && allSources.length > 0 && settings2("VERSIONING_SYSTEM") === "apple-generic" ? import_node_path5.default.join(settings2("DERIVED_FILE_DIR"), `${product}_vers.c`) : null;
|
|
3310
3887
|
if (versioning) {
|
|
3311
3888
|
const version = settings2("CURRENT_PROJECT_VERSION");
|
|
3312
3889
|
const custom = [
|
|
@@ -3319,7 +3896,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3319
3896
|
].filter((key) => settings2(key));
|
|
3320
3897
|
if (custom.length)
|
|
3321
3898
|
throw new Error(
|
|
3322
|
-
`${name}: Xcode generates ${
|
|
3899
|
+
`${name}: Xcode generates ${import_node_path5.default.basename(versioning)} with ${custom.join(", ")}; peach does not model VERSION_INFO_* overrides`
|
|
3323
3900
|
);
|
|
3324
3901
|
const symbol = product.replace(/^[^A-Za-z_]/, "_").replace(/[^A-Za-z0-9_]/g, "_");
|
|
3325
3902
|
const [major, minor] = version.split(".");
|
|
@@ -3332,29 +3909,18 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3332
3909
|
` const double ${symbol}VersionNumber __attribute__ ((used)) = (double)${number};`,
|
|
3333
3910
|
""
|
|
3334
3911
|
].join("\n");
|
|
3335
|
-
if (!
|
|
3336
|
-
|
|
3337
|
-
|
|
3912
|
+
if (!import_node_fs3.default.existsSync(versioning) || import_node_fs3.default.readFileSync(versioning, "utf8") !== unit) {
|
|
3913
|
+
import_node_fs3.default.mkdirSync(import_node_path5.default.dirname(versioning), { recursive: true });
|
|
3914
|
+
import_node_fs3.default.writeFileSync(versioning, unit);
|
|
3338
3915
|
}
|
|
3339
3916
|
allSources.push(versioning);
|
|
3340
3917
|
}
|
|
3341
3918
|
const implementations = allSources.filter(isSwiftNativeTranslationUnit);
|
|
3342
3919
|
const native = implementations.length > 0;
|
|
3343
3920
|
if (native && building) {
|
|
3344
|
-
|
|
3345
|
-
const phase = ref.project.object(phaseId);
|
|
3346
|
-
return phase?.isa === "PBXShellScriptBuildPhase" ? list(phase.outputPaths).filter((output) => HEADER_FILE.test(output)) : [];
|
|
3347
|
-
});
|
|
3348
|
-
if (generatedHeaders.length > 0 || list(ref.target.buildRules).length > 0)
|
|
3921
|
+
if (list(ref.target.buildRules).length > 0)
|
|
3349
3922
|
throw new Error(
|
|
3350
|
-
`${name}: Xcode's generated-files header map
|
|
3351
|
-
);
|
|
3352
|
-
const nonFramework = projectTargets(ref.project).find(
|
|
3353
|
-
(other) => !FRAMEWORK_PRODUCTS.has(str(other.target.productType) ?? "") && headerPhase(other).length > 0
|
|
3354
|
-
);
|
|
3355
|
-
if (nonFramework && settings2("USE_HEADERMAP") !== "NO")
|
|
3356
|
-
throw new Error(
|
|
3357
|
-
`${name}: Xcode's all-non-framework-target-headers map, which lists the headers of ${str(nonFramework.target.name) ?? nonFramework.id}, is not modeled`
|
|
3923
|
+
`${name}: Xcode's generated-files header map for build rules is not modeled`
|
|
3358
3924
|
);
|
|
3359
3925
|
if (settings2("ALWAYS_SEARCH_USER_PATHS") === "YES" && settings2("USER_HEADER_SEARCH_PATHS").trim())
|
|
3360
3926
|
throw new Error(
|
|
@@ -3364,15 +3930,37 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3364
3930
|
const headerFiles = headerPhase(ref);
|
|
3365
3931
|
const ownHeaders = /* @__PURE__ */ new Map();
|
|
3366
3932
|
for (const { file, visibility } of headerFiles) {
|
|
3367
|
-
const name2 =
|
|
3368
|
-
const published =
|
|
3933
|
+
const name2 = import_node_path5.default.basename(file);
|
|
3934
|
+
const published = visibility !== "Project";
|
|
3369
3935
|
if (!ownHeaders.has(name2))
|
|
3370
3936
|
ownHeaders.set(name2, published ? `${product}/${name2}` : file);
|
|
3371
|
-
if (
|
|
3937
|
+
if (!published && !ownHeaders.has(`${product}/${name2}`))
|
|
3372
3938
|
ownHeaders.set(`${product}/${name2}`, file);
|
|
3373
3939
|
}
|
|
3374
|
-
const
|
|
3375
|
-
|
|
3940
|
+
for (const file of synchronizedHeaders(ref)) {
|
|
3941
|
+
const name2 = import_node_path5.default.basename(file);
|
|
3942
|
+
if (ownHeaders.has(name2)) continue;
|
|
3943
|
+
ownHeaders.set(name2, file);
|
|
3944
|
+
const qualified = `${product}/${name2}`;
|
|
3945
|
+
if (!ownHeaders.has(qualified)) ownHeaders.set(qualified, file);
|
|
3946
|
+
}
|
|
3947
|
+
const nonFrameworkHeaders = /* @__PURE__ */ new Map();
|
|
3948
|
+
for (const other of projectTargets(ref.project)) {
|
|
3949
|
+
if (FRAMEWORK_PRODUCTS.has(str(other.target.productType) ?? "")) continue;
|
|
3950
|
+
const otherProduct = productName(other);
|
|
3951
|
+
for (const { file, visibility } of headerPhase(other)) {
|
|
3952
|
+
if (visibility === "Project") continue;
|
|
3953
|
+
const key = `${otherProduct}/${import_node_path5.default.basename(file)}`;
|
|
3954
|
+
if (!nonFrameworkHeaders.has(key)) nonFrameworkHeaders.set(key, file);
|
|
3955
|
+
}
|
|
3956
|
+
}
|
|
3957
|
+
const wrapper = import_node_path5.default.join(settings2("BUILT_PRODUCTS_DIR"), `${product}.framework`);
|
|
3958
|
+
const moduleMap = (settings2("DEFINES_MODULE") === "YES" || !framework) && settings2("MODULEMAP_FILE") ? absolute(settings2("MODULEMAP_FILE")) : null;
|
|
3959
|
+
const podHeaders = !framework && isPodsProject(ref.project.xcodeproj) && moduleMap && import_node_path5.default.relative(import_node_path5.default.join(ref.project.projectDir, "Headers", "Public"), moduleMap).split(import_node_path5.default.sep)[0] !== ".." && import_node_fs3.default.existsSync(moduleMap) ? import_node_fs3.default.readdirSync(import_node_path5.default.dirname(moduleMap)).flatMap((entry) => {
|
|
3960
|
+
if (!/\.(h|hh|hpp|hxx|modulemap)$/.test(entry)) return [];
|
|
3961
|
+
const file = import_node_path5.default.join(import_node_path5.default.dirname(moduleMap), entry);
|
|
3962
|
+
return import_node_fs3.default.existsSync(file) ? [file] : [];
|
|
3963
|
+
}) : [];
|
|
3376
3964
|
const fileFlags = {};
|
|
3377
3965
|
for (const phaseId of list(ref.target.buildPhases)) {
|
|
3378
3966
|
const phase = ref.project.object(phaseId);
|
|
@@ -3394,7 +3982,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3394
3982
|
keys,
|
|
3395
3983
|
module: {
|
|
3396
3984
|
name,
|
|
3397
|
-
moduleName
|
|
3985
|
+
moduleName,
|
|
3398
3986
|
...members,
|
|
3399
3987
|
allSources,
|
|
3400
3988
|
languageMode: swiftVersion >= 6 ? 6 : 5,
|
|
@@ -3409,17 +3997,34 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3409
3997
|
)
|
|
3410
3998
|
)
|
|
3411
3999
|
},
|
|
4000
|
+
packageProducts: Array(),
|
|
4001
|
+
...members.sources.length > 0 ? {
|
|
4002
|
+
swift: {
|
|
4003
|
+
flags: settingList(settings2("OTHER_SWIFT_FLAGS")),
|
|
4004
|
+
includePaths: settingList(settings2("SWIFT_INCLUDE_PATHS")).map(absolute),
|
|
4005
|
+
compatibility: compatibility ? {
|
|
4006
|
+
moduleMap: compatibility.moduleMap,
|
|
4007
|
+
umbrella: compatibility.umbrella,
|
|
4008
|
+
outputModuleMap: compatibility.outputModuleMap,
|
|
4009
|
+
outputUmbrella: compatibility.outputUmbrella,
|
|
4010
|
+
outputHeader: compatibility.outputHeader
|
|
4011
|
+
} : null
|
|
4012
|
+
}
|
|
4013
|
+
} : {},
|
|
3412
4014
|
...native ? {
|
|
3413
4015
|
objc: {
|
|
3414
|
-
publicHeaders:
|
|
3415
|
-
(
|
|
3416
|
-
|
|
4016
|
+
publicHeaders: [
|
|
4017
|
+
...headerFiles.flatMap(
|
|
4018
|
+
({ file, visibility }) => visibility === "Public" ? [file] : []
|
|
4019
|
+
),
|
|
4020
|
+
...podHeaders.filter((file) => HEADER_FILE.test(file))
|
|
4021
|
+
],
|
|
3417
4022
|
headers: [
|
|
3418
4023
|
.../* @__PURE__ */ new Set([
|
|
3419
4024
|
...headers,
|
|
3420
4025
|
...Object.keys(ref.project.objects).flatMap((id) => {
|
|
3421
4026
|
const file = ref.project.resolvePath(id);
|
|
3422
|
-
return file && HEADER_FILE.test(file) &&
|
|
4027
|
+
return file && HEADER_FILE.test(file) && import_node_fs3.default.existsSync(file) ? [file] : [];
|
|
3423
4028
|
})
|
|
3424
4029
|
])
|
|
3425
4030
|
],
|
|
@@ -3428,15 +4033,15 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3428
4033
|
// xcode searches its products' include directory before
|
|
3429
4034
|
// HEADER_SEARCH_PATHS and the target's derived sources after.
|
|
3430
4035
|
headerSearchPaths: [
|
|
3431
|
-
|
|
4036
|
+
import_node_path5.default.join(settings2("BUILT_PRODUCTS_DIR"), "include"),
|
|
3432
4037
|
...settingList(settings2("HEADER_SEARCH_PATHS")).flatMap(
|
|
3433
4038
|
(raw) => expandSearchPath(absolute(raw), searchRules)
|
|
3434
4039
|
),
|
|
3435
|
-
|
|
4040
|
+
import_node_path5.default.join(
|
|
3436
4041
|
`${settings2("DERIVED_FILE_DIR")}-normal`,
|
|
3437
4042
|
settings2("CURRENT_ARCH")
|
|
3438
4043
|
),
|
|
3439
|
-
|
|
4044
|
+
import_node_path5.default.join(settings2("DERIVED_FILE_DIR"), settings2("CURRENT_ARCH")),
|
|
3440
4045
|
settings2("DERIVED_FILE_DIR")
|
|
3441
4046
|
],
|
|
3442
4047
|
userHeaderSearchPaths: settingList(
|
|
@@ -3466,6 +4071,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3466
4071
|
fileFlags,
|
|
3467
4072
|
headerMaps: settings2("USE_HEADERMAP") === "NO" ? [] : [
|
|
3468
4073
|
{ flag: "-I", entries: [...ownHeaders] },
|
|
4074
|
+
{ flag: "-I", entries: [...nonFrameworkHeaders] },
|
|
3469
4075
|
{
|
|
3470
4076
|
flag: "-iquote",
|
|
3471
4077
|
entries: projectHeaderMap(ref.project)
|
|
@@ -3475,17 +4081,17 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3475
4081
|
...headerFiles.flatMap(
|
|
3476
4082
|
({ file, visibility }) => visibility === "Project" ? [] : [
|
|
3477
4083
|
[
|
|
3478
|
-
|
|
4084
|
+
import_node_path5.default.join(
|
|
3479
4085
|
wrapper,
|
|
3480
4086
|
visibility === "Public" ? "Headers" : "PrivateHeaders",
|
|
3481
|
-
|
|
4087
|
+
import_node_path5.default.basename(file)
|
|
3482
4088
|
),
|
|
3483
4089
|
file
|
|
3484
4090
|
]
|
|
3485
4091
|
]
|
|
3486
4092
|
),
|
|
3487
|
-
...moduleMap ? [[
|
|
3488
|
-
]) :
|
|
4093
|
+
...moduleMap ? [[import_node_path5.default.join(wrapper, "Modules", "module.modulemap"), moduleMap]] : []
|
|
4094
|
+
]) : Object.fromEntries(podHeaders.map((file) => [file, file]))
|
|
3489
4095
|
}
|
|
3490
4096
|
} : {}
|
|
3491
4097
|
}
|
|
@@ -3496,7 +4102,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3496
4102
|
const frameworkTargets = builtTargets.slice(0, -1).filter(({ ref }) => ref.target.isa === "PBXNativeTarget").map(({ ref, module: module3 }) => ({ ref, framework: module3 }));
|
|
3497
4103
|
const frameworks = frameworkTargets.map(({ framework }) => framework);
|
|
3498
4104
|
const podSourceDirs = frameworkTargets.flatMap(
|
|
3499
|
-
({ ref, framework }) => isPodsProject(ref.project.xcodeproj) ? [...framework.allSources, ...framework.objc?.headers ?? []].map((file) =>
|
|
4105
|
+
({ ref, framework }) => isPodsProject(ref.project.xcodeproj) ? [...framework.allSources, ...framework.objc?.headers ?? []].map((file) => import_node_path5.default.dirname(file)).filter((dir) => import_node_fs3.default.existsSync(dir)) : []
|
|
3500
4106
|
);
|
|
3501
4107
|
const expandValue = (value) => {
|
|
3502
4108
|
if (typeof value === "string") return expand(value, settings);
|
|
@@ -3508,8 +4114,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3508
4114
|
}
|
|
3509
4115
|
return value;
|
|
3510
4116
|
};
|
|
3511
|
-
const infoPlistFile = settings("INFOPLIST_FILE") ?
|
|
3512
|
-
const
|
|
4117
|
+
const infoPlistFile = settings("INFOPLIST_FILE") ? import_node_path5.default.resolve(app.project.projectDir, settings("INFOPLIST_FILE")) : null;
|
|
4118
|
+
const infoPlistPending = module2.generatedInfoPlist && !options.prepareGeneratedSources;
|
|
4119
|
+
const sourceInfo = infoPlistFile && !infoPlistPending ? import_plist2.default.parse(import_node_fs3.default.readFileSync(infoPlistFile, "utf8")) : {};
|
|
3513
4120
|
if (!sourceInfo || typeof sourceInfo !== "object" || Array.isArray(sourceInfo) || sourceInfo instanceof Date || Buffer.isBuffer(sourceInfo)) {
|
|
3514
4121
|
throw new Error(`${module2.name} Info.plist must contain a dictionary`);
|
|
3515
4122
|
}
|
|
@@ -3537,7 +4144,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3537
4144
|
};
|
|
3538
4145
|
}
|
|
3539
4146
|
const localPackageDirs = [
|
|
3540
|
-
...listed.filter((reference) =>
|
|
4147
|
+
...listed.filter((reference) => import_node_fs3.default.existsSync(import_node_path5.default.join(reference, "Package.swift"))),
|
|
3541
4148
|
...projects.flatMap(
|
|
3542
4149
|
(project) => Object.entries(project.objects).flatMap(([id, entry]) => {
|
|
3543
4150
|
if (!isDict(entry)) return [];
|
|
@@ -3547,19 +4154,19 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3547
4154
|
const packages = [];
|
|
3548
4155
|
while (pending.length > 0) {
|
|
3549
4156
|
const dir = pending.pop();
|
|
3550
|
-
if (
|
|
4157
|
+
if (import_node_fs3.default.existsSync(import_node_path5.default.join(dir, "Package.swift"))) {
|
|
3551
4158
|
packages.push(dir);
|
|
3552
4159
|
continue;
|
|
3553
4160
|
}
|
|
3554
4161
|
if (!isDirectory(dir)) continue;
|
|
3555
|
-
for (const child of
|
|
4162
|
+
for (const child of import_node_fs3.default.readdirSync(dir, { withFileTypes: true }))
|
|
3556
4163
|
if (child.isDirectory() && !child.name.startsWith("."))
|
|
3557
|
-
pending.push(
|
|
4164
|
+
pending.push(import_node_path5.default.join(dir, child.name));
|
|
3558
4165
|
}
|
|
3559
4166
|
return packages;
|
|
3560
4167
|
}
|
|
3561
|
-
const candidate = entry.isa === "XCLocalSwiftPackageReference" ?
|
|
3562
|
-
return candidate &&
|
|
4168
|
+
const candidate = entry.isa === "XCLocalSwiftPackageReference" ? import_node_path5.default.resolve(project.projectDir, str(entry.relativePath) ?? "") : entry.isa === "PBXFileReference" ? project.resolvePath(id) : null;
|
|
4169
|
+
return candidate && import_node_fs3.default.existsSync(import_node_path5.default.join(candidate, "Package.swift")) ? [candidate] : [];
|
|
3563
4170
|
})
|
|
3564
4171
|
)
|
|
3565
4172
|
];
|
|
@@ -3580,12 +4187,12 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3580
4187
|
const linkedProductKeys = /* @__PURE__ */ new Set();
|
|
3581
4188
|
const binaryFrameworks = /* @__PURE__ */ new Map();
|
|
3582
4189
|
for (const { ref, settings: settings2 } of builtTargets) {
|
|
3583
|
-
const absolute = (raw) =>
|
|
4190
|
+
const absolute = (raw) => import_node_path5.default.resolve(ref.project.projectDir, expand(raw, settings2));
|
|
3584
4191
|
for (const raw of settingList(settings2("SWIFT_INCLUDE_PATHS"))) {
|
|
3585
4192
|
const dir = absolute(raw);
|
|
3586
|
-
const modulemap =
|
|
3587
|
-
if (!
|
|
3588
|
-
const name = moduleMapName(
|
|
4193
|
+
const modulemap = import_node_path5.default.join(dir, "module.modulemap");
|
|
4194
|
+
if (!import_node_fs3.default.existsSync(modulemap)) continue;
|
|
4195
|
+
const name = moduleMapName(import_node_fs3.default.readFileSync(modulemap, "utf8"));
|
|
3589
4196
|
if (name && !binaryFrameworks.has(name)) binaryFrameworks.set(name, dir);
|
|
3590
4197
|
}
|
|
3591
4198
|
for (const phaseId of list(ref.target.buildPhases)) {
|
|
@@ -3594,7 +4201,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3594
4201
|
const inputs = list(phase.inputPaths).map(absolute);
|
|
3595
4202
|
for (const raw of list(phase.inputFileListPaths)) {
|
|
3596
4203
|
const file = absolute(raw);
|
|
3597
|
-
if (!
|
|
4204
|
+
if (!import_node_fs3.default.existsSync(file)) continue;
|
|
3598
4205
|
xcconfigs.add(file);
|
|
3599
4206
|
inputs.push(...fileListEntries(file, absolute));
|
|
3600
4207
|
}
|
|
@@ -3604,10 +4211,12 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3604
4211
|
}
|
|
3605
4212
|
}
|
|
3606
4213
|
}
|
|
3607
|
-
|
|
4214
|
+
const productsByTarget = /* @__PURE__ */ new Map();
|
|
4215
|
+
for (const ref of order) {
|
|
4216
|
+
const { project, target } = ref;
|
|
3608
4217
|
const productRef = (id) => {
|
|
3609
|
-
const
|
|
3610
|
-
return
|
|
4218
|
+
const ref2 = str(project.object(id)?.productRef);
|
|
4219
|
+
return ref2 ? [ref2] : [];
|
|
3611
4220
|
};
|
|
3612
4221
|
const productDependencies = [
|
|
3613
4222
|
...list(target.packageProductDependencies),
|
|
@@ -3617,6 +4226,8 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3617
4226
|
return phase?.isa === "PBXFrameworksBuildPhase" ? list(phase.files).flatMap(productRef) : [];
|
|
3618
4227
|
})
|
|
3619
4228
|
];
|
|
4229
|
+
const ownProducts = [];
|
|
4230
|
+
const ownKeys = /* @__PURE__ */ new Set();
|
|
3620
4231
|
for (const dependencyId of new Set(productDependencies)) {
|
|
3621
4232
|
const dependency = project.object(dependencyId);
|
|
3622
4233
|
const product = str(dependency?.productName)?.replace(/^plugin:/, "");
|
|
@@ -3629,7 +4240,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3629
4240
|
product,
|
|
3630
4241
|
source: reference?.isa === "XCRemoteSwiftPackageReference" ? { kind: "remote", url: str(reference.repositoryURL) ?? "" } : reference?.isa === "XCLocalSwiftPackageReference" ? {
|
|
3631
4242
|
kind: "local",
|
|
3632
|
-
dir:
|
|
4243
|
+
dir: import_node_path5.default.resolve(
|
|
3633
4244
|
project.projectDir,
|
|
3634
4245
|
str(reference.relativePath) ?? ""
|
|
3635
4246
|
)
|
|
@@ -3638,7 +4249,13 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3638
4249
|
productReferences.push({ project: project.projectFile, linked });
|
|
3639
4250
|
if (linked.source.kind !== "unnamed")
|
|
3640
4251
|
qualifiedProductKeys.add(`${project.projectFile}\0${product}`);
|
|
4252
|
+
const key = JSON.stringify(linked);
|
|
4253
|
+
if (!ownKeys.has(key)) {
|
|
4254
|
+
ownKeys.add(key);
|
|
4255
|
+
ownProducts.push(linked);
|
|
4256
|
+
}
|
|
3641
4257
|
}
|
|
4258
|
+
productsByTarget.set(ref, ownProducts);
|
|
3642
4259
|
for (const phaseId of list(target.buildPhases)) {
|
|
3643
4260
|
const phase = project.object(phaseId);
|
|
3644
4261
|
if (phase?.isa !== "PBXFrameworksBuildPhase") continue;
|
|
@@ -3663,26 +4280,35 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3663
4280
|
linkedProductKeys.add(key);
|
|
3664
4281
|
linkedProducts.push(linked);
|
|
3665
4282
|
}
|
|
3666
|
-
const
|
|
3667
|
-
|
|
4283
|
+
for (const built of builtTargets)
|
|
4284
|
+
built.module.packageProducts = productsByTarget.get(built.ref) ?? [];
|
|
4285
|
+
const resolvedFile = import_node_path5.default.join(
|
|
4286
|
+
workspace ?? import_node_path5.default.join(xcodeprojOrWorkspace, "project.xcworkspace"),
|
|
3668
4287
|
"xcshareddata",
|
|
3669
4288
|
"swiftpm",
|
|
3670
4289
|
"Package.resolved"
|
|
3671
4290
|
);
|
|
3672
|
-
|
|
4291
|
+
let packageResolved = import_node_fs3.default.existsSync(resolvedFile) ? [import_node_fs3.default.realpathSync(resolvedFile)] : [...new Set(localPackageDirs.map((dir) => import_node_path5.default.join(dir, "Package.resolved")))].filter((file) => import_node_fs3.default.existsSync(file)).map((file) => import_node_fs3.default.realpathSync(file)).sort();
|
|
4292
|
+
if (packageResolved.length === 0) {
|
|
4293
|
+
const requirements = remotePackageRequirements(projects);
|
|
4294
|
+
if (requirements.length > 0) {
|
|
4295
|
+
resolveSwiftPackageRequirements(requirements, resolvedFile);
|
|
4296
|
+
packageResolved = [import_node_fs3.default.realpathSync(resolvedFile)];
|
|
4297
|
+
}
|
|
4298
|
+
}
|
|
3673
4299
|
const used = order.map((ref) => ref.project);
|
|
3674
4300
|
return {
|
|
3675
4301
|
...module2,
|
|
3676
4302
|
rootDir: commonAncestor(
|
|
3677
4303
|
[
|
|
3678
|
-
workspace ?
|
|
4304
|
+
workspace ? import_node_path5.default.dirname(workspace) : app.project.projectDir,
|
|
3679
4305
|
...used.map((project) => project.projectDir),
|
|
3680
4306
|
...localPackageDirs,
|
|
3681
4307
|
...linkedProducts.flatMap(
|
|
3682
|
-
({ source }) => source.kind === "local" &&
|
|
4308
|
+
({ source }) => source.kind === "local" && import_node_fs3.default.existsSync(source.dir) ? [source.dir] : []
|
|
3683
4309
|
),
|
|
3684
4310
|
...new Set(podSourceDirs)
|
|
3685
|
-
].map((dir) =>
|
|
4311
|
+
].map((dir) => import_node_fs3.default.realpathSync(dir))
|
|
3686
4312
|
),
|
|
3687
4313
|
projectFiles: [
|
|
3688
4314
|
.../* @__PURE__ */ new Set([
|
|
@@ -3693,12 +4319,12 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3693
4319
|
].sort(),
|
|
3694
4320
|
projectDirs: [...new Set(used.map((project) => project.projectDir))].sort(),
|
|
3695
4321
|
appIconName: settings("ASSETCATALOG_COMPILER_APPICON_NAME"),
|
|
3696
|
-
infoPlist: import_plist2.default.build(info),
|
|
4322
|
+
infoPlist: infoPlistPending ? null : import_plist2.default.build(info),
|
|
3697
4323
|
infoPlistFile,
|
|
3698
4324
|
frameworks,
|
|
3699
4325
|
linkedProducts,
|
|
3700
4326
|
localPackageDirs: [
|
|
3701
|
-
...new Set(localPackageDirs.map((dir) =>
|
|
4327
|
+
...new Set(localPackageDirs.map((dir) => import_node_fs3.default.realpathSync(dir)))
|
|
3702
4328
|
].sort(),
|
|
3703
4329
|
binaryFrameworks: [...binaryFrameworks].map(([name, file]) => ({ name, path: file })).sort((left, right) => left.name.localeCompare(right.name)),
|
|
3704
4330
|
packageResolved,
|
|
@@ -3714,6 +4340,10 @@ function nonEmptyString2(value) {
|
|
|
3714
4340
|
return typeof value === "string" && value.length > 0 ? value : void 0;
|
|
3715
4341
|
}
|
|
3716
4342
|
function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSource) {
|
|
4343
|
+
if (app.infoPlist === null)
|
|
4344
|
+
throw new Error(
|
|
4345
|
+
"native app Info.plist is generated by a build phase and was not prepared"
|
|
4346
|
+
);
|
|
3717
4347
|
const dictionary = parseInfoPlist(app.infoPlist);
|
|
3718
4348
|
if (!isRecord(dictionary)) throw new Error("native app Info.plist is not a dictionary");
|
|
3719
4349
|
const settings = app.settings;
|
|
@@ -3773,7 +4403,7 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
3773
4403
|
const rtcAppGroupIdentifier = nonEmptyString2(dictionary.RTCAppGroupIdentifier);
|
|
3774
4404
|
const screenShareExtensionBundleId = typeof dictionary.ScreenShareExtensionBundleId === "string" ? dictionary.ScreenShareExtensionBundleId : void 0;
|
|
3775
4405
|
const rootModuleName = readRootModuleName(
|
|
3776
|
-
app.allSources.filter((file) => /\.(?:swift|mm|m)$/.test(file) &&
|
|
4406
|
+
app.allSources.filter((file) => /\.(?:swift|mm|m)$/.test(file) && import_node_fs4.default.existsSync(file)).map((file) => import_node_fs4.default.readFileSync(file, "utf8"))
|
|
3777
4407
|
);
|
|
3778
4408
|
return {
|
|
3779
4409
|
applicationName,
|
|
@@ -3794,7 +4424,7 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
3794
4424
|
googleSignIn: readGoogleSignInConfiguration(
|
|
3795
4425
|
dictionary,
|
|
3796
4426
|
Object.fromEntries(
|
|
3797
|
-
app.resources.filter((file) => file.endsWith(".plist")).map((file) => [file, parseInfoPlist(
|
|
4427
|
+
app.resources.filter((file) => file.endsWith(".plist")).map((file) => [file, parseInfoPlist(import_node_fs4.default.readFileSync(file, "utf8"))])
|
|
3798
4428
|
)
|
|
3799
4429
|
),
|
|
3800
4430
|
supportedInterfaceOrientations,
|
|
@@ -3803,11 +4433,11 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
3803
4433
|
alternateIconNames: [...alternateIconNames],
|
|
3804
4434
|
appIconArtwork: resolveNativeAppIconArtwork(
|
|
3805
4435
|
app.resources,
|
|
3806
|
-
(file) =>
|
|
4436
|
+
(file) => import_node_fs4.default.readFileSync(file, "utf8"),
|
|
3807
4437
|
(file) => {
|
|
3808
|
-
const extension =
|
|
4438
|
+
const extension = import_node_path6.default.extname(file).toLowerCase();
|
|
3809
4439
|
const contentType = extension === ".jpg" || extension === ".jpeg" ? "image/jpeg" : extension === ".webp" ? "image/webp" : "image/png";
|
|
3810
|
-
return `data:${contentType};base64,${
|
|
4440
|
+
return `data:${contentType};base64,${import_node_fs4.default.readFileSync(file).toString("base64")}`;
|
|
3811
4441
|
},
|
|
3812
4442
|
icons,
|
|
3813
4443
|
app.appIconName,
|
|
@@ -3838,22 +4468,22 @@ function readNativeAppIdentityFromSources(projectRoot, platform, parseInfoPlist,
|
|
|
3838
4468
|
const read = selectNativeAppIdentityReader(platform, {
|
|
3839
4469
|
android: () => null,
|
|
3840
4470
|
ios: () => {
|
|
3841
|
-
const iosRoot =
|
|
3842
|
-
if (!
|
|
4471
|
+
const iosRoot = import_node_path6.default.join(projectRoot, "ios");
|
|
4472
|
+
if (!import_node_fs4.default.existsSync(iosRoot)) return null;
|
|
3843
4473
|
const files = {};
|
|
3844
|
-
for (const entry of
|
|
4474
|
+
for (const entry of import_node_fs4.default.readdirSync(iosRoot, { withFileTypes: true })) {
|
|
3845
4475
|
if (entry.name === "Pods") continue;
|
|
3846
4476
|
if (entry.isDirectory()) {
|
|
3847
4477
|
const names = entry.name.endsWith(".xcodeproj") ? ["project.pbxproj"] : ["Info.plist", "AppDelegate.swift", "AppDelegate.mm", "AppDelegate.m"];
|
|
3848
4478
|
for (const name of names) {
|
|
3849
4479
|
const relative = `ios/${entry.name}/${name}`;
|
|
3850
|
-
const file =
|
|
3851
|
-
if (
|
|
4480
|
+
const file = import_node_path6.default.join(projectRoot, relative);
|
|
4481
|
+
if (import_node_fs4.default.existsSync(file)) files[relative] = import_node_fs4.default.readFileSync(file, "utf8");
|
|
3852
4482
|
}
|
|
3853
4483
|
} else if (/AppDelegate\.(?:swift|mm|m)$/.test(entry.name)) {
|
|
3854
4484
|
const relative = `ios/${entry.name}`;
|
|
3855
|
-
const file =
|
|
3856
|
-
if (
|
|
4485
|
+
const file = import_node_path6.default.join(projectRoot, relative);
|
|
4486
|
+
if (import_node_fs4.default.existsSync(file)) files[relative] = import_node_fs4.default.readFileSync(file, "utf8");
|
|
3857
4487
|
}
|
|
3858
4488
|
}
|
|
3859
4489
|
return extractNativeAppIdentityFromFiles(files, "ios", parseInfoPlist, iosTarget);
|
|
@@ -3864,41 +4494,41 @@ function readNativeAppIdentityFromSources(projectRoot, platform, parseInfoPlist,
|
|
|
3864
4494
|
function readAndroidNativeAppIdentity(projectRoot, androidMergedManifest) {
|
|
3865
4495
|
const files = {};
|
|
3866
4496
|
if (androidMergedManifest) {
|
|
3867
|
-
const file =
|
|
3868
|
-
if (!
|
|
3869
|
-
files[androidMergedManifest] =
|
|
4497
|
+
const file = import_node_path6.default.resolve(projectRoot, androidMergedManifest);
|
|
4498
|
+
if (!import_node_fs4.default.existsSync(file)) return null;
|
|
4499
|
+
files[androidMergedManifest] = import_node_fs4.default.readFileSync(file, "utf8");
|
|
3870
4500
|
} else {
|
|
3871
|
-
const androidRoot =
|
|
3872
|
-
if (!
|
|
4501
|
+
const androidRoot = import_node_path6.default.join(projectRoot, "android");
|
|
4502
|
+
if (!import_node_fs4.default.existsSync(androidRoot)) return null;
|
|
3873
4503
|
const collect = (directory) => {
|
|
3874
|
-
for (const entry of
|
|
3875
|
-
const file =
|
|
4504
|
+
for (const entry of import_node_fs4.default.readdirSync(directory, { withFileTypes: true })) {
|
|
4505
|
+
const file = import_node_path6.default.join(directory, entry.name);
|
|
3876
4506
|
if (entry.isDirectory()) collect(file);
|
|
3877
4507
|
else if (entry.isFile() && entry.name === "AndroidManifest.xml")
|
|
3878
|
-
files[
|
|
4508
|
+
files[import_node_path6.default.relative(projectRoot, file).split(import_node_path6.default.sep).join("/")] = import_node_fs4.default.readFileSync(file, "utf8");
|
|
3879
4509
|
}
|
|
3880
4510
|
};
|
|
3881
|
-
for (const module2 of
|
|
4511
|
+
for (const module2 of import_node_fs4.default.readdirSync(androidRoot, { withFileTypes: true })) {
|
|
3882
4512
|
if (!module2.isDirectory()) continue;
|
|
3883
|
-
const outputs =
|
|
4513
|
+
const outputs = import_node_path6.default.join(
|
|
3884
4514
|
androidRoot,
|
|
3885
4515
|
module2.name,
|
|
3886
4516
|
"build/intermediates/merged_manifests"
|
|
3887
4517
|
);
|
|
3888
|
-
if (
|
|
4518
|
+
if (import_node_fs4.default.existsSync(outputs)) collect(outputs);
|
|
3889
4519
|
}
|
|
3890
4520
|
}
|
|
3891
4521
|
for (const manifest of Object.keys(files)) {
|
|
3892
4522
|
const resourceDirectory = androidMergedResourceValuesDirectory(manifest);
|
|
3893
4523
|
if (!resourceDirectory) continue;
|
|
3894
|
-
const absolute =
|
|
3895
|
-
if (!
|
|
3896
|
-
for (const entry of
|
|
4524
|
+
const absolute = import_node_path6.default.resolve(projectRoot, resourceDirectory);
|
|
4525
|
+
if (!import_node_fs4.default.existsSync(absolute)) continue;
|
|
4526
|
+
for (const entry of import_node_fs4.default.readdirSync(absolute, { withFileTypes: true })) {
|
|
3897
4527
|
if (!entry.isDirectory() || !/^values(?:-|$)/.test(entry.name)) continue;
|
|
3898
|
-
for (const resource of
|
|
4528
|
+
for (const resource of import_node_fs4.default.readdirSync(import_node_path6.default.join(absolute, entry.name))) {
|
|
3899
4529
|
if (!resource.endsWith(".xml")) continue;
|
|
3900
4530
|
const file = `${resourceDirectory}/${entry.name}/${resource}`;
|
|
3901
|
-
files[file] =
|
|
4531
|
+
files[file] = import_node_fs4.default.readFileSync(import_node_path6.default.resolve(projectRoot, file), "utf8");
|
|
3902
4532
|
}
|
|
3903
4533
|
}
|
|
3904
4534
|
}
|
|
@@ -3915,7 +4545,7 @@ function readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget) {
|
|
|
3915
4545
|
const app = readIosAppTarget(projectRoot, iosTarget);
|
|
3916
4546
|
if (!app) return null;
|
|
3917
4547
|
const identity = readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist);
|
|
3918
|
-
const projectManifestPath =
|
|
4548
|
+
const projectManifestPath = import_node_path6.default.join(projectRoot, "package.json");
|
|
3919
4549
|
const projectRequire = (0, import_node_module.createRequire)(projectManifestPath);
|
|
3920
4550
|
let reanimatedManifestPath;
|
|
3921
4551
|
try {
|
|
@@ -3929,22 +4559,22 @@ function readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget) {
|
|
|
3929
4559
|
throw error;
|
|
3930
4560
|
}
|
|
3931
4561
|
const installedManifest = JSON.parse(
|
|
3932
|
-
|
|
4562
|
+
import_node_fs4.default.readFileSync(reanimatedManifestPath, "utf8")
|
|
3933
4563
|
);
|
|
3934
4564
|
const installedVersion = isRecord(installedManifest) ? nonEmptyString2(installedManifest.version) : void 0;
|
|
3935
4565
|
if (!installedVersion) throw new Error("Reanimated package version is malformed");
|
|
3936
4566
|
if (Number.parseInt(installedVersion, 10) < 4) return identity;
|
|
3937
4567
|
const defaults = JSON.parse(
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
4568
|
+
import_node_fs4.default.readFileSync(
|
|
4569
|
+
import_node_path6.default.join(
|
|
4570
|
+
import_node_path6.default.dirname(reanimatedManifestPath),
|
|
3941
4571
|
"src/featureFlags/staticFlags.json"
|
|
3942
4572
|
),
|
|
3943
4573
|
"utf8"
|
|
3944
4574
|
)
|
|
3945
4575
|
);
|
|
3946
4576
|
if (!isRecord(defaults)) throw new Error("Reanimated static flags are malformed");
|
|
3947
|
-
const manifest = JSON.parse(
|
|
4577
|
+
const manifest = JSON.parse(import_node_fs4.default.readFileSync(projectManifestPath, "utf8"));
|
|
3948
4578
|
const reanimated = isRecord(manifest) ? manifest.reanimated : void 0;
|
|
3949
4579
|
const overrides = isRecord(reanimated) ? reanimated.staticFeatureFlags : void 0;
|
|
3950
4580
|
if (overrides !== void 0 && !isRecord(overrides)) {
|
|
@@ -3967,9 +4597,9 @@ function readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget) {
|
|
|
3967
4597
|
return { ...identity, reanimatedStaticFeatureFlags: flags };
|
|
3968
4598
|
}
|
|
3969
4599
|
function readIosAppTarget(projectRoot, iosTarget) {
|
|
3970
|
-
const iosRoot =
|
|
3971
|
-
if (!
|
|
3972
|
-
const projects =
|
|
4600
|
+
const iosRoot = import_node_path6.default.join(projectRoot, "ios");
|
|
4601
|
+
if (!import_node_fs4.default.existsSync(iosRoot)) return null;
|
|
4602
|
+
const projects = import_node_fs4.default.readdirSync(iosRoot, { withFileTypes: true }).filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj"));
|
|
3973
4603
|
if (projects.length === 0) return null;
|
|
3974
4604
|
if (projects.length > 1 && !iosTarget) {
|
|
3975
4605
|
throw new NativeAppTargetSelectionError(
|
|
@@ -3979,7 +4609,7 @@ function readIosAppTarget(projectRoot, iosTarget) {
|
|
|
3979
4609
|
let project = projects[0];
|
|
3980
4610
|
if (iosTarget && projects.length > 1) {
|
|
3981
4611
|
const matches = projects.filter(
|
|
3982
|
-
(entry) => listXcodeAppTargets(
|
|
4612
|
+
(entry) => listXcodeAppTargets(import_node_path6.default.join(iosRoot, entry.name), {
|
|
3983
4613
|
requireSources: false
|
|
3984
4614
|
}).includes(iosTarget)
|
|
3985
4615
|
);
|
|
@@ -3993,7 +4623,7 @@ function readIosAppTarget(projectRoot, iosTarget) {
|
|
|
3993
4623
|
}
|
|
3994
4624
|
project = matches[0];
|
|
3995
4625
|
}
|
|
3996
|
-
const xcodeproj =
|
|
4626
|
+
const xcodeproj = import_node_path6.default.join(iosRoot, project.name);
|
|
3997
4627
|
const appTargets = listXcodeAppTargets(xcodeproj, { requireSources: false });
|
|
3998
4628
|
if (!iosTarget && appTargets.length > 1) {
|
|
3999
4629
|
throw new NativeAppTargetSelectionError(
|
|
@@ -4001,7 +4631,8 @@ function readIosAppTarget(projectRoot, iosTarget) {
|
|
|
4001
4631
|
);
|
|
4002
4632
|
}
|
|
4003
4633
|
return readXcodeAppTarget(xcodeproj, iosTarget ?? appTargets[0], "Release", {
|
|
4004
|
-
requireSources: false
|
|
4634
|
+
requireSources: false,
|
|
4635
|
+
prepareGeneratedSources: true
|
|
4005
4636
|
});
|
|
4006
4637
|
}
|
|
4007
4638
|
// Annotate the CommonJS export names for ESM import in node:
|