peachsim 0.1.1700 → 0.1.1728
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 +79 -5
- package/cli/app-bundle-resources.ts +5 -2
- package/cli/app-catalog.ts +10 -0
- package/cli/app-fonts.ts +5 -5
- package/cli/app-splash.ts +4 -4
- package/cli/app-stubs.ts +36 -9
- package/cli/bridge-diagnostics.ts +2 -1
- package/cli/cloud-client.ts +6 -3
- package/cli/command-registry.ts +1 -0
- package/cli/commands/control.ts +180 -837
- package/cli/commands/coverage-swift.ts +19 -1
- package/cli/commands/daemon.ts +8 -0
- package/cli/commands/detect.ts +84 -37
- package/cli/commands/detox.ts +3 -0
- package/cli/commands/doctor.ts +178 -22
- package/cli/commands/flow.ts +4 -1
- package/cli/commands/inspect/actions.ts +74 -14
- package/cli/commands/inspect/core.ts +181 -18
- package/cli/commands/inspect/settling.ts +22 -7
- package/cli/commands/inspect/wait-ready.ts +13 -5
- package/cli/commands/inspect.ts +56 -47
- package/cli/commands/kotlin.ts +12 -2
- package/cli/commands/package.ts +750 -0
- package/cli/commands/record.ts +263 -32
- package/cli/commands/screenshot.ts +2 -13
- package/cli/commands/serve.ts +6 -0
- package/cli/commands/shell-url.ts +834 -0
- package/cli/commands/swift.ts +42 -102
- package/cli/commands/test.ts +69 -101
- package/cli/commands/upload.ts +1 -1
- package/cli/current-sim.ts +4 -4
- package/cli/device-option.ts +1 -1
- package/cli/hints.ts +1 -6
- package/cli/main.ts +20 -1
- package/cli/metro-bundle-assets.ts +77 -0
- package/cli/native-input.ts +199 -0
- package/cli/outbound-endpoints.ts +32 -3
- package/cli/packaged-app-launcher.ts +95 -0
- package/cli/run-registry.ts +0 -8
- package/cli/scene-video.ts +18 -9
- package/cli/ws-bridge.ts +56 -14
- package/detox/index.ts +240 -18
- package/detox/launch-permissions.ts +183 -27
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +10 -9
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +5 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +38744 -32209
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +2 -1
- package/dist-lib/cloud.mjs +2 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +335 -70
- package/dist-lib/dev-bundle-resolution.cjs +15 -20
- package/dist-lib/expo-swift-bundle.cjs +22406 -23392
- package/dist-lib/expo-swift-metadata.cjs +4 -1
- package/dist-lib/expo-swift-metadata.mjs +3 -1
- package/dist-lib/home-paths.cjs +21 -2
- package/dist-lib/host/bridge-host.cjs +34611 -31375
- package/dist-lib/host/fetch-proxy-handler.cjs +475 -86
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +2 -1
- package/dist-lib/host/websocket-proxy.cjs +311 -45
- package/dist-lib/index.cjs +2509 -640
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +127 -16
- package/dist-lib/menu.cjs +10 -1
- package/dist-lib/menu.mjs +9 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +2340 -605
- package/dist-lib/native-app-identity-project.cjs +1277 -243
- package/dist-lib/native-app-identity-project.mjs +1287 -254
- package/dist-lib/native-app-identity.cjs +26 -2
- package/dist-lib/native-app-identity.mjs +24 -2
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +36 -101
- package/dist-lib/public-origins-lib.json +478 -434
- package/dist-lib/react-native-host-modules.cjs +127 -3
- package/dist-lib/react-native-host-modules.mjs +126 -3
- package/dist-lib/reap-browser.cjs +12 -4
- package/dist-lib/scripts/dev-server-scanner.cjs +32 -50
- package/dist-lib/sdk.cjs +161 -24
- package/dist-lib/sdk.mjs +154 -24
- package/dist-lib/skills.cjs +44096 -28607
- package/dist-lib/swift-compile.cjs +6294 -16931
- package/dist-lib/swift-compile.mjs +6282 -16928
- package/dist-lib/swift-package.cjs +81 -3
- package/dist-lib/swift-package.mjs +77 -3
- package/dist-lib/swift-submit.cjs +14 -4
- package/dist-lib/swift-submit.mjs +14 -4
- package/dist-lib/swift-toolchain.cjs +108 -18
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +14434 -20336
- package/dist-lib/vite.cjs +558 -132
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-cookies.d.ts +17 -8
- 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/canvaskit-renderer.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 +1 -1
- 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 +8 -4
- package/dist-types/packages/peach-engine/src/engine/lottie-types.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/engine/memory-counts.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +6 -14
- package/dist-types/packages/peach-engine/src/engine/riveContract.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +3 -0
- 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 +25 -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-commandContract.d.ts +1 -1
- 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 +10 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +9 -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 +6 -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 +29 -5
- package/dist-types/packages/peach-engine/src/render-worker/workletThreadIdentityContract.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/shell-events.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/audioBridgeContract.d.ts +5 -0
- package/dist-types/packages/peach-globals/src/guestExecutionContract.d.ts +30 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +7 -5
- package/dist-types/packages/peach-globals/src/keyboardBridgeContract.d.ts +11 -0
- 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/sceneStreamBridgeContract.d.ts +10 -0
- package/dist-types/packages/peach-globals/src/shellBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/shellHostBridgeContract.d.ts +8 -2
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +12 -2
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
- package/package.json +3 -1
- package/runtime-companion.json +1 -1
- package/scripts/dev-server-scanner.ts +55 -81
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASFoundation.h +52 -0
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASWebAuthenticationSession.h +128 -0
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASWebAuthenticationSessionCallback.h +35 -0
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/AuthenticationServices.h +3 -0
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFHTTPMessage.h +724 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +4 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetworkDefs.h +27 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Modules/module.modulemap +5 -0
- 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/CFCGTypes.h +131 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h +1301 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +8 -0
- 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 -60
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h +21 -50
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLRegion.h +6 -6
- 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 +2962 -367
- 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/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/SecIdentity.h +232 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecKey.h +1616 -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/Security.h +9 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +12 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h +23 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +26 -9
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h +14 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStringDrawing.h +12 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIView.h +14 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewAnimating.h +12 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h +16 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h +2 -0
- package/sdk/ios/usr/include/AvailabilityInternal.h +23 -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/ConditionalMacros.h +619 -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/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/module.modulemap +5 -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-sync.h +59 -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.modulemap +11 -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 +20 -0
- package/sdk/ios/usr/include/sys/event.h +388 -0
- package/sdk/ios/usr/include/sys/ioccom.h +99 -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/syslog.h +236 -0
- 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/syslog.h +24 -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 +31 -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 +36 -0
- package/sdk/ios/wasm/include/stdlib.h +39 -1
- 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/file.h +7 -0
- package/sdk/ios/wasm/include/sys/ioctl.h +6 -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/syscall.h +9 -0
- package/sdk/ios/wasm/include/sys/time.h +10 -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 +25 -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 +81 -0
- package/skills/contrast/SKILL.md +3 -2
- package/skills/peach-test/SKILL.md +7 -3
- package/src/admitted-mac-build.ts +3 -0
- package/src/android-app-identity.ts +18 -0
- package/src/android-root-module.ts +145 -0
- package/src/androidRootModuleContract.ts +39 -0
- package/src/appPackageContract.ts +81 -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 +53 -1
- package/src/bundle-channel.mjs +21 -4
- package/src/capture-contract.ts +3 -1
- package/src/cli-runtime.ts +6 -1
- package/src/dev-bundle-resolution.ts +7 -27
- package/src/device-catalog.ts +10 -4
- package/src/dom-source-reference.ts +15 -0
- package/src/expo-discovery-cache.ts +376 -0
- package/src/expo-manifest-body.ts +33 -0
- package/src/expo-native-workspace.ts +80 -24
- package/src/expo-swift-host.ts +905 -47
- package/src/expo-swift-ready.ts +43 -11
- package/src/expoSwiftContract.ts +3 -0
- package/src/generated/swift-c-predefines.json +1 -1
- package/src/home-paths.ts +35 -1
- package/src/host/app-package-handler.ts +47 -0
- package/src/host/bridge-host.ts +31 -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 +98 -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/index.ts +3 -0
- package/src/installed-native-build-options.ts +154 -0
- package/src/installed-package-versions.ts +56 -49
- package/src/kotlin-host.ts +21 -18
- package/src/kotlin-instance-source.ts +126 -0
- package/src/material-symbol-fonts.ts +6 -4
- package/src/menu.ts +13 -0
- package/src/metro-plugin.ts +8 -0
- package/src/native-app-identity-project.ts +11 -2
- package/src/native-app-identity.ts +27 -0
- package/src/native-dev-bundle-url.ts +0 -18
- package/src/native-firebase-config.ts +71 -5
- package/src/native-preparation.ts +30 -0
- package/src/nativePreparationContract.ts +3 -0
- package/src/nitro-adapter.lock.json +382 -230
- package/src/nitro-bundle.ts +33 -1
- package/src/nitro-compile.ts +46 -7
- package/src/nitro-dependencies.ts +228 -0
- package/src/nitro-source.ts +191 -37
- package/src/nitroContract.ts +7 -0
- package/src/packageVersionsContract.ts +33 -0
- package/src/react-native-bridge-modules.ts +81 -32
- package/src/react-native-host-modules.ts +141 -4
- package/src/reactNativeConfigurationContract.ts +14 -0
- package/src/reap-browser.ts +15 -3
- package/src/runtime-assets.ts +10 -0
- package/src/sdk.ts +5 -0
- package/src/settingsContract.ts +27 -1
- package/src/sim-client.ts +5 -2
- package/src/storageSnapshotContract.ts +25 -10
- package/src/stub-pattern-matcher.ts +17 -4
- package/src/swift-compile.ts +1385 -4156
- package/src/swift-compiler-digest.ts +1 -2
- package/src/swift-coverage/package.ts +103 -58
- package/src/swift-coverage/provenance.ts +1 -0
- package/src/swift-coverage/xcode-asset-symbols.ts +922 -0
- package/src/swift-coverage/xcode-assets.ts +101 -123
- package/src/swift-coverage/xcode-bridging.ts +1 -12
- package/src/swift-coverage/xcode-packages.ts +167 -52
- package/src/swift-coverage/xcode.ts +3 -7
- package/src/swift-cxx-declarations.ts +205 -0
- package/src/swift-cxx-deps.ts +48 -0
- package/src/swift-cxx-reachable.ts +298 -0
- package/src/swift-cxx-standin.ts +248 -0
- package/src/swift-distribution.lock.json +26 -16
- package/src/swift-host.ts +308 -41
- package/src/swift-icu.ts +1 -1
- package/src/swift-link-roots.ts +118 -0
- package/src/swift-objc-compile.ts +752 -238
- package/src/swift-objc-import.ts +25 -964
- package/src/swift-objc-runtime.ts +7 -0
- package/src/swift-objc-standin.ts +264 -56
- package/src/swift-package-manifest.ts +190 -41
- package/src/swift-package.ts +123 -3
- package/src/swift-packages.ts +262 -39
- package/src/swift-pdf-raster.ts +115 -0
- package/src/swift-root-lock.ts +17 -1
- package/src/swift-shared-sdk.ts +45 -0
- package/src/swift-source-file.ts +10 -6
- package/src/swift-source-pods.ts +2 -10
- package/src/swift-standin-digest.ts +12 -15
- package/src/swift-standin-emit.ts +600 -57
- package/src/swift-standins.ts +679 -105
- package/src/swift-submit.ts +26 -6
- package/src/swift-toolchain.ts +143 -18
- package/src/swiftContract.ts +50 -29
- package/src/turbo-codegen-intake.ts +91 -0
- package/src/vite-plugin-one.ts +13 -9
- package/src/vite-plugin.ts +28 -28
- package/src/workspace-root.ts +15 -0
- package/src/xcode-json-project.ts +52 -1
- package/src/xcode-project.ts +509 -38
- package/src/swift-objc-export.ts +0 -532
- package/src/swift-objc-metadata.ts +0 -534
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1728 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -36,8 +36,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
36
36
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
37
37
|
|
|
38
38
|
// <define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>
|
|
39
|
+
var define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
|
|
39
40
|
var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
|
|
40
41
|
"<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
|
|
42
|
+
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "1ecc9c90d7e293f9bdc57db5bf90f6670d2aed8f8f9bd647cd55b2c70347aa38", "swift-coverage/indexing.ts": "02b9e91dcee1f48b74bcc8e35fe5dda5442fa235221faf82f0cbaa416a7d5409", "swift-coverage/types.ts": "cfc696535808957bd491dc5f5eefc991f65395eb6fc7ea377c31a12b5c4c3b57", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "9b9efa33fcd6d78e3ab4218b0340a6bf96832faa98ea04f3966167f691043462", "swift-coverage/xcode-assets.ts": "f674c68408df22bff2ac80c89467b6cf4018c7e4ada6f2408d7b5f98ee83289d", "swift-coverage/xcode-asset-symbols.ts": "b94c5836f6f11c400c93b931ed0a980b8067d84a5f7a1ee75f24d6bdbf46013d", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "b112ed694771c1df8d9f4dd86691ee83fc9302f05690fae9a5151d0623191b0b", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "d9170f454c21b88b10902e601998b42179b94a8a2018f51f92f9ddafdfcfd8f6", "swift-package.ts": "36c0beef4686796e700a479135c58b1680dc30f73e2b6107891898aa46db33b0", "swift-source-file.ts": "7653751b3edfd63479f733427b6767847de0cd2267715c14dc18d6e5233c3a91", "swift-toolchain.ts": "3142399c278b7759ddd50c33a5569bb1a4eab38d19b3f0923064907c90e08e27", "home-paths.ts": "20c49992c57b1e7d279454ff4587208ae3d888bb2e318674a6d405750cdbdc24", "xcode-header-search.ts": "1cfadaf2b1b29fbd72899716fc2469b6b6ca39d6c2b61fee9927fb28668967c5", "xcode-project.ts": "64d7996165ac049f4baa8b04242d4550639c9c5de7d12f61ad0d05f58857d39d", "xcode-target-members.ts": "94e7daaf57b351aa716b2c49e39c5dec8db5377d938a4f16f2d88d9099813c35", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
41
43
|
}
|
|
42
44
|
});
|
|
43
45
|
|
|
@@ -1169,9 +1171,9 @@ __export(native_app_identity_project_exports, {
|
|
|
1169
1171
|
});
|
|
1170
1172
|
module.exports = __toCommonJS(native_app_identity_project_exports);
|
|
1171
1173
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1172
|
-
var
|
|
1174
|
+
var import_node_fs5 = __toESM(require("node:fs"), 1);
|
|
1173
1175
|
var import_node_module = require("node:module");
|
|
1174
|
-
var
|
|
1176
|
+
var import_node_path7 = __toESM(require("node:path"), 1);
|
|
1175
1177
|
|
|
1176
1178
|
// src/android-app-identity.ts
|
|
1177
1179
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -1308,6 +1310,13 @@ function nativeAppIdentityFromAndroidManifest(source, file, files = {}) {
|
|
|
1308
1310
|
...max === void 0 ? {} : { maxSdkVersion: Number(max) }
|
|
1309
1311
|
});
|
|
1310
1312
|
}
|
|
1313
|
+
let androidPhotoLibraryAddOnly;
|
|
1314
|
+
for (const element of application.children) {
|
|
1315
|
+
if (element.name !== "meta-data" || element.attributes[`${attribute}name`] !== "one.photoLibrary.addOnly")
|
|
1316
|
+
continue;
|
|
1317
|
+
if (/^(?:true|True|TRUE)$/.test(element.attributes[`${attribute}value`]?.trim() ?? ""))
|
|
1318
|
+
androidPhotoLibraryAddOnly = true;
|
|
1319
|
+
}
|
|
1311
1320
|
let label = application.attributes[`${attribute}label`];
|
|
1312
1321
|
let applicationName = null;
|
|
1313
1322
|
if (label && !/\$\{|^[@?]/.test(label)) applicationName = label;
|
|
@@ -1346,7 +1355,8 @@ function nativeAppIdentityFromAndroidManifest(source, file, files = {}) {
|
|
|
1346
1355
|
buildVersion,
|
|
1347
1356
|
bundleIdentifier,
|
|
1348
1357
|
platform: "android",
|
|
1349
|
-
androidManifestPermissions
|
|
1358
|
+
androidManifestPermissions,
|
|
1359
|
+
...androidPhotoLibraryAddOnly === void 0 ? {} : { androidPhotoLibraryAddOnly }
|
|
1350
1360
|
};
|
|
1351
1361
|
}
|
|
1352
1362
|
function androidMergedResourceValuesDirectory(manifestFile) {
|
|
@@ -1550,7 +1560,7 @@ function parseOpenStepPlist(text2) {
|
|
|
1550
1560
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1551
1561
|
var NEVER_MEMBER = /(?:^|\/)(?:Info\.plist|[^/]+\.entitlements|[^/]+\.xcconfig|\.DS_Store)$/;
|
|
1552
1562
|
var BUNDLE_DIR = /\.(xcassets|bundle|lproj|xcdatamodeld|scnassets|spriteatlas|rcproject|storyboardc|icon)$/;
|
|
1553
|
-
function xcodePathResolver(objects, projectDir,
|
|
1563
|
+
function xcodePathResolver(objects, projectDir, join2) {
|
|
1554
1564
|
const parents = /* @__PURE__ */ new Map();
|
|
1555
1565
|
for (const [id, entry] of Object.entries(objects)) {
|
|
1556
1566
|
if (!isDict(entry)) continue;
|
|
@@ -1568,11 +1578,11 @@ function xcodePathResolver(objects, projectDir, join) {
|
|
|
1568
1578
|
const own = str(entry.path) ?? "";
|
|
1569
1579
|
const tree = str(entry.sourceTree) ?? "<group>";
|
|
1570
1580
|
if (tree === "<absolute>") result = own;
|
|
1571
|
-
else if (tree === "SOURCE_ROOT") result =
|
|
1581
|
+
else if (tree === "SOURCE_ROOT") result = join2(projectDir, own);
|
|
1572
1582
|
else if (tree === "<group>") {
|
|
1573
1583
|
const parent = parents.get(id);
|
|
1574
1584
|
const base = parent ? resolve(parent) : projectDir;
|
|
1575
|
-
if (base !== null) result =
|
|
1585
|
+
if (base !== null) result = join2(base, own);
|
|
1576
1586
|
}
|
|
1577
1587
|
}
|
|
1578
1588
|
paths.set(id, result);
|
|
@@ -1580,7 +1590,7 @@ function xcodePathResolver(objects, projectDir, join) {
|
|
|
1580
1590
|
};
|
|
1581
1591
|
return resolve;
|
|
1582
1592
|
}
|
|
1583
|
-
function visitXcodeTargetMembers(objects, targetId, resolvePath, filesUnder,
|
|
1593
|
+
function visitXcodeTargetMembers(objects, targetId, resolvePath, filesUnder, join2, visit) {
|
|
1584
1594
|
const target = objects[targetId];
|
|
1585
1595
|
if (!isDict(target)) return;
|
|
1586
1596
|
for (const phaseId of list(target.buildPhases)) {
|
|
@@ -1616,7 +1626,7 @@ function visitXcodeTargetMembers(objects, targetId, resolvePath, filesUnder, joi
|
|
|
1616
1626
|
for (const relative of list(exception.membershipExceptions))
|
|
1617
1627
|
exceptions.add(relative);
|
|
1618
1628
|
}
|
|
1619
|
-
const members = owned.has(groupId) ? filesUnder(folder) : [...exceptions].flatMap((relative) => filesUnder(
|
|
1629
|
+
const members = owned.has(groupId) ? filesUnder(folder) : [...exceptions].flatMap((relative) => filesUnder(join2(folder, relative)));
|
|
1620
1630
|
for (const file of members) {
|
|
1621
1631
|
const relative = file.slice(prefix.length);
|
|
1622
1632
|
const excepted = [...exceptions].some(
|
|
@@ -1749,10 +1759,10 @@ function appTargetReleaseSettings(pbxproj, targetName, infoPlistRelativePath) {
|
|
|
1749
1759
|
var APP_DELEGATE_PATH_RE = /(?:^|\/)ios\/([^/]+)\/AppDelegate\.(?:swift|mm|m)$/;
|
|
1750
1760
|
function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri) {
|
|
1751
1761
|
const pbxprojPath = Object.keys(files).find(
|
|
1752
|
-
(
|
|
1762
|
+
(path7) => /(?:^|\/)ios\/[^/]+\.xcodeproj\/project\.pbxproj$/.test(path7)
|
|
1753
1763
|
) ?? Object.keys(files).find(
|
|
1754
|
-
(
|
|
1755
|
-
) ?? Object.keys(files).find((
|
|
1764
|
+
(path7) => /(?:^|\/)[^/]+\.xcodeproj\/project\.pbxproj$/.test(path7)
|
|
1765
|
+
) ?? Object.keys(files).find((path7) => /(?:^|\/)project\.pbxproj$/.test(path7));
|
|
1756
1766
|
if (!pbxprojPath) return null;
|
|
1757
1767
|
const pbxproj = files[pbxprojPath];
|
|
1758
1768
|
let objects = {};
|
|
@@ -1794,7 +1804,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
|
|
|
1794
1804
|
} else if (applicationTargetNames.size === 1) {
|
|
1795
1805
|
targetName = [...applicationTargetNames][0];
|
|
1796
1806
|
} else if (applicationTargetNames.size > 1) {
|
|
1797
|
-
const delegateTargets = Object.keys(files).filter((
|
|
1807
|
+
const delegateTargets = Object.keys(files).filter((path7) => !path7.includes("/Pods/")).map((path7) => path7.match(APP_DELEGATE_PATH_RE)?.[1]).filter(
|
|
1798
1808
|
(name) => typeof name === "string" && applicationTargetNames.has(name)
|
|
1799
1809
|
);
|
|
1800
1810
|
if (delegateTargets.length === 1) {
|
|
@@ -1992,7 +2002,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
|
|
|
1992
2002
|
if (resourceUri) {
|
|
1993
2003
|
if (!selectedTarget)
|
|
1994
2004
|
throw new Error("native app icon target membership is unresolved");
|
|
1995
|
-
const
|
|
2005
|
+
const join2 = (base, own) => {
|
|
1996
2006
|
const segments = [];
|
|
1997
2007
|
for (const segment of `${base}/${own}`.split("/")) {
|
|
1998
2008
|
if (segment === "" || segment === ".") continue;
|
|
@@ -2005,7 +2015,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
|
|
|
2005
2015
|
const project = Object.values(objects).find(
|
|
2006
2016
|
(object) => isRecord(object) && object.isa === "PBXProject"
|
|
2007
2017
|
);
|
|
2008
|
-
const projectDir =
|
|
2018
|
+
const projectDir = join2(
|
|
2009
2019
|
pbxprojPath.replace(/(?:^|\/)[^/]+\.xcodeproj\/project\.pbxproj$/, ""),
|
|
2010
2020
|
isRecord(project) && typeof project.projectDirPath === "string" ? project.projectDirPath : ""
|
|
2011
2021
|
);
|
|
@@ -2013,15 +2023,15 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
|
|
|
2013
2023
|
visitXcodeTargetMembers(
|
|
2014
2024
|
objects,
|
|
2015
2025
|
selectedTarget.id,
|
|
2016
|
-
xcodePathResolver(objects, projectDir,
|
|
2026
|
+
xcodePathResolver(objects, projectDir, join2),
|
|
2017
2027
|
(file) => {
|
|
2018
2028
|
if (Object.hasOwn(files, file)) return [file];
|
|
2019
2029
|
const prefix = file === "" ? "" : `${file.replace(/\/$/, "")}/`;
|
|
2020
2030
|
return paths.filter(
|
|
2021
|
-
(
|
|
2031
|
+
(path7) => path7.startsWith(prefix) && !/(?:^|\/)\./.test(path7.slice(prefix.length))
|
|
2022
2032
|
);
|
|
2023
2033
|
},
|
|
2024
|
-
|
|
2034
|
+
join2,
|
|
2025
2035
|
(file, kind) => {
|
|
2026
2036
|
if (kind === "resource") resources.add(file);
|
|
2027
2037
|
}
|
|
@@ -2029,7 +2039,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
|
|
|
2029
2039
|
}
|
|
2030
2040
|
const rootModuleName = readRootModuleName(
|
|
2031
2041
|
Object.entries(files).filter(
|
|
2032
|
-
([
|
|
2042
|
+
([path7]) => !path7.includes("/Pods/") && (/(?:^|\/)ios\/AppDelegate\.(?:swift|mm|m)$/.test(path7) || path7.match(APP_DELEGATE_PATH_RE)?.[1] === targetName)
|
|
2033
2043
|
).map(([, source]) => source)
|
|
2034
2044
|
);
|
|
2035
2045
|
return {
|
|
@@ -2122,19 +2132,214 @@ function parsePlistSource(source) {
|
|
|
2122
2132
|
|
|
2123
2133
|
// src/xcode-project.ts
|
|
2124
2134
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2125
|
-
var
|
|
2126
|
-
var
|
|
2127
|
-
var
|
|
2128
|
-
var
|
|
2135
|
+
var import_node_child_process2 = require("node:child_process");
|
|
2136
|
+
var import_node_crypto2 = require("node:crypto");
|
|
2137
|
+
var import_node_fs4 = __toESM(require("node:fs"), 1);
|
|
2138
|
+
var import_node_path6 = __toESM(require("node:path"), 1);
|
|
2129
2139
|
var import_plist2 = __toESM(require("plist"), 1);
|
|
2130
2140
|
|
|
2131
2141
|
// src/swift-coverage/xcode-assets.ts
|
|
2132
2142
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2143
|
+
|
|
2144
|
+
// src/swift-coverage/provenance.ts
|
|
2145
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2146
|
+
var import_node_crypto = require("node:crypto");
|
|
2147
|
+
var import_node_fs = require("node:fs");
|
|
2148
|
+
var import_node_path = require("node:path");
|
|
2149
|
+
var SWIFT_COVERAGE_DIGEST_SOURCES = [
|
|
2150
|
+
"swift-coverage/indexdump.ts",
|
|
2151
|
+
"swift-coverage/indexing.ts",
|
|
2152
|
+
"swift-coverage/types.ts",
|
|
2153
|
+
"swift-coverage/source.ts",
|
|
2154
|
+
"swift-coverage/package.ts",
|
|
2155
|
+
"swift-coverage/xcode.ts",
|
|
2156
|
+
"swift-coverage/xcode-assets.ts",
|
|
2157
|
+
"swift-coverage/xcode-asset-symbols.ts",
|
|
2158
|
+
"swift-coverage/xcode-bridging.ts",
|
|
2159
|
+
"swift-coverage/xcode-packages.ts",
|
|
2160
|
+
"swift-coverage/xcode-strings.ts",
|
|
2161
|
+
"swift-coverage/reader.ts",
|
|
2162
|
+
"swift-coverage/provenance.ts",
|
|
2163
|
+
"swift-package-manifest.ts",
|
|
2164
|
+
"swift-package.ts",
|
|
2165
|
+
"swift-source-file.ts",
|
|
2166
|
+
"swift-toolchain.ts",
|
|
2167
|
+
"home-paths.ts",
|
|
2168
|
+
"xcode-header-search.ts",
|
|
2169
|
+
"xcode-project.ts",
|
|
2170
|
+
"xcode-target-members.ts",
|
|
2171
|
+
"xcode-json-project.ts",
|
|
2172
|
+
"openstep-plist.ts"
|
|
2173
|
+
];
|
|
2174
|
+
function swiftCoverageSourceDigests(srcDir) {
|
|
2175
|
+
return Object.fromEntries(
|
|
2176
|
+
SWIFT_COVERAGE_DIGEST_SOURCES.map((file) => [
|
|
2177
|
+
file,
|
|
2178
|
+
(0, import_node_crypto.createHash)("sha256").update((0, import_node_fs.readFileSync)((0, import_node_path.join)(srcDir, file))).digest("hex")
|
|
2179
|
+
])
|
|
2180
|
+
);
|
|
2181
|
+
}
|
|
2182
|
+
var swiftCoverageProvenance = typeof define_SWIFT_COVERAGE_SOURCE_DIGESTS_default === "object" ? define_SWIFT_COVERAGE_SOURCE_DIGESTS_default : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
|
|
2183
|
+
|
|
2184
|
+
// src/swift-coverage/xcode-asset-symbols.ts
|
|
2185
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2186
|
+
var silentTypes = /* @__PURE__ */ new Set([
|
|
2187
|
+
"appiconset",
|
|
2188
|
+
"brandassets",
|
|
2189
|
+
"dataset",
|
|
2190
|
+
"iconset",
|
|
2191
|
+
"iconstack",
|
|
2192
|
+
"iconstackgroup",
|
|
2193
|
+
"launchimage",
|
|
2194
|
+
"stickerpack",
|
|
2195
|
+
"stickersiconset",
|
|
2196
|
+
"textureset"
|
|
2197
|
+
]);
|
|
2198
|
+
var stackTypes = /* @__PURE__ */ new Set(["imagestack", "solidimagestack"]);
|
|
2199
|
+
var unprovenTypes = /* @__PURE__ */ new Set([
|
|
2200
|
+
"arobject",
|
|
2201
|
+
"arreferenceimage",
|
|
2202
|
+
"arresourcegroup",
|
|
2203
|
+
"complicationset",
|
|
2204
|
+
"cubetextureset",
|
|
2205
|
+
"gcdashboardimage",
|
|
2206
|
+
"gcleaderboard",
|
|
2207
|
+
"gcleaderboardset",
|
|
2208
|
+
"glyphset",
|
|
2209
|
+
"iconbadgeset",
|
|
2210
|
+
"iconstacklayer",
|
|
2211
|
+
"imagestacklayer",
|
|
2212
|
+
"mipmapset",
|
|
2213
|
+
"modelset",
|
|
2214
|
+
"sidebariconset",
|
|
2215
|
+
"solidimagestacklayer",
|
|
2216
|
+
"sticker",
|
|
2217
|
+
"stickerframeset",
|
|
2218
|
+
"stickersequence"
|
|
2219
|
+
]);
|
|
2220
|
+
var knownTypes = /* @__PURE__ */ new Set([
|
|
2221
|
+
"colorset",
|
|
2222
|
+
"imageset",
|
|
2223
|
+
"symbolset",
|
|
2224
|
+
"spriteatlas",
|
|
2225
|
+
...silentTypes,
|
|
2226
|
+
...stackTypes,
|
|
2227
|
+
...unprovenTypes
|
|
2228
|
+
]);
|
|
2229
|
+
var compressionTypes = [
|
|
2230
|
+
"automatic",
|
|
2231
|
+
"lossless",
|
|
2232
|
+
"lossy",
|
|
2233
|
+
"gpu-optimized-best",
|
|
2234
|
+
"gpu-optimized-smallest"
|
|
2235
|
+
];
|
|
2236
|
+
var renditionRules = {
|
|
2237
|
+
appearances: "objects",
|
|
2238
|
+
locale: "string",
|
|
2239
|
+
platform: "string",
|
|
2240
|
+
resizing: "object",
|
|
2241
|
+
"alignment-insets": "object",
|
|
2242
|
+
"compression-type": compressionTypes,
|
|
2243
|
+
"display-gamut": ["sRGB", "display-P3"],
|
|
2244
|
+
"minimum-system-version": "string",
|
|
2245
|
+
"matching-style": "string",
|
|
2246
|
+
"template-rendering-intent": "string",
|
|
2247
|
+
size: "string",
|
|
2248
|
+
role: "string",
|
|
2249
|
+
orientation: "string",
|
|
2250
|
+
extent: "string"
|
|
2251
|
+
};
|
|
2252
|
+
var setRules = {
|
|
2253
|
+
localizable: "any",
|
|
2254
|
+
"auto-scaling": "string",
|
|
2255
|
+
"symbol-rendering-intent": "string",
|
|
2256
|
+
"provides-namespace": "any",
|
|
2257
|
+
"on-demand-resource-tags": "any",
|
|
2258
|
+
"template-rendering-intent": "string",
|
|
2259
|
+
"preserves-vector-representation": "any"
|
|
2260
|
+
};
|
|
2261
|
+
var inclusionRules = {
|
|
2262
|
+
idiom: "any",
|
|
2263
|
+
subtype: "any",
|
|
2264
|
+
unassigned: "any"
|
|
2265
|
+
};
|
|
2266
|
+
var rules = {
|
|
2267
|
+
// colors check none of the image traits
|
|
2268
|
+
colorset: {
|
|
2269
|
+
entry: {
|
|
2270
|
+
...renditionRules,
|
|
2271
|
+
...inclusionRules,
|
|
2272
|
+
color: "any",
|
|
2273
|
+
scale: "string",
|
|
2274
|
+
"language-direction": "string",
|
|
2275
|
+
"width-class": "string",
|
|
2276
|
+
"height-class": "string",
|
|
2277
|
+
memory: "string",
|
|
2278
|
+
"graphics-feature-set": "string",
|
|
2279
|
+
"screen-width": "string"
|
|
2280
|
+
},
|
|
2281
|
+
set: setRules
|
|
2282
|
+
},
|
|
2283
|
+
imageset: {
|
|
2284
|
+
entry: {
|
|
2285
|
+
...renditionRules,
|
|
2286
|
+
...inclusionRules,
|
|
2287
|
+
filename: "any",
|
|
2288
|
+
scale: ["1x", "2x", "3x"],
|
|
2289
|
+
"language-direction": ["left-to-right", "right-to-left"],
|
|
2290
|
+
"width-class": ["compact", "regular", "unspecified"],
|
|
2291
|
+
"height-class": ["compact", "regular"],
|
|
2292
|
+
memory: ["1GB", "2GB", "3GB", "4GB", "6GB", "8GB", "12GB", "16GB"],
|
|
2293
|
+
"graphics-feature-set": [
|
|
2294
|
+
...Array.from({ length: 10 }, (_, i) => `apple${i + 1}`),
|
|
2295
|
+
"metal1v2",
|
|
2296
|
+
"metal2v2",
|
|
2297
|
+
"metal3v1",
|
|
2298
|
+
"metal3v2",
|
|
2299
|
+
"metal4v1"
|
|
2300
|
+
],
|
|
2301
|
+
"screen-width": "string"
|
|
2302
|
+
},
|
|
2303
|
+
// an image whose vector flag is not a boolean is dropped
|
|
2304
|
+
set: {
|
|
2305
|
+
...setRules,
|
|
2306
|
+
"preserves-vector-representation": "boolean",
|
|
2307
|
+
"compression-type": compressionTypes
|
|
2308
|
+
}
|
|
2309
|
+
},
|
|
2310
|
+
symbolset: {
|
|
2311
|
+
entry: { idiom: "any", filename: "any" },
|
|
2312
|
+
set: { "symbol-rendering-intent": "any" }
|
|
2313
|
+
}
|
|
2314
|
+
};
|
|
2315
|
+
var swiftKeywords = new Set(
|
|
2316
|
+
"precedencegroup associatedtype fileprivate fallthrough extension typealias subscript continue internal Protocol protocol operator rethrows private default public static switch return throws repeat struct deinit import guard while where false catch break defer super class inout throw func Type case else true Self self enum init nil var for let Any try if in do as is _".split(
|
|
2317
|
+
" "
|
|
2318
|
+
)
|
|
2319
|
+
);
|
|
2320
|
+
var nsColorConflicts = new Set(
|
|
2321
|
+
"unemphasizedSelectedContentBackgroundColor unemphasizedSelectedTextBackgroundColor controlAlternatingRowBackgroundColors alternatingContentBackgroundColors systemColorsDidChangeNotification alternateSelectedControlTextColor selectedContentBackgroundColor alternateSelectedControlColor secondarySelectedControlColor unemphasizedSelectedTextColor selectedTextBackgroundColor keyboardFocusIndicatorColor scrubberTexturedBackground controlLightHighlightColor selectedMenuItemTextColor underPageBackgroundColor disabledControlTextColor selectedControlTextColor controlBackgroundColor controlDarkShadowColor windowBackgroundColor selectedMenuItemColor controlHighlightColor quaternaryLabelColor selectedControlColor windowFrameTextColor placeholderTextColor textBackgroundColor secondaryLabelColor tertiaryLabelColor findHighlightColor controlAccentColor controlShadowColor currentControlTint selectedKnobColor selectedTextColor windowFrameColor controlTextColor headerTextColor scrollBarColor separatorColor highlightColor ignoresAlpha systemOrange systemPurple systemIndigo controlColor systemYellow systemGreen systemBrown headerColor shadowColor systemBlue systemPink systemTeal systemCyan labelColor systemMint systemGray systemRed knobColor gridColor linkColor textColor lightGray darkGray magenta orange purple yellow white black green brown clear blue cyan gray red".split(
|
|
2322
|
+
" "
|
|
2323
|
+
)
|
|
2324
|
+
);
|
|
2325
|
+
var uiColorConflicts = new Set(
|
|
2326
|
+
"secondarySystemGroupedBackground tertiarySystemGroupedBackground secondarySystemBackground tertiarySystemBackground groupTableViewBackground systemGroupedBackground quaternarySystemFill smallSystemFontSize secondarySystemFill tertiarySystemFill systemBackground quaternaryLabel opaqueSeparator placeholderText systemFontSize buttonFontSize secondaryLabel labelFontSize tertiaryLabel systemOrange systemPurple systemIndigo systemYellow systemGray2 systemGray3 systemGray4 systemGray5 systemGray6 systemGreen systemBrown systemBlue systemPink systemTeal systemFill systemCyan systemMint systemGray systemRed tintColor separator lightText lightGray darkText darkGray magenta orange purple yellow white black label green brown clear blue link cyan gray red".split(
|
|
2327
|
+
" "
|
|
2328
|
+
)
|
|
2329
|
+
);
|
|
2330
|
+
var colorConflicts = new Set(
|
|
2331
|
+
"transferRepresentation accentColor secondary primary orange purple indigo yellow white black green brown clear blue pink teal cyan mint gray red".split(
|
|
2332
|
+
" "
|
|
2333
|
+
)
|
|
2334
|
+
);
|
|
2335
|
+
var nsImageConflicts = new Set(
|
|
2336
|
+
"touchBarAudioOutputVolumeMediumTemplateName touchBarAudioOutputVolumeHighTemplateName touchBarAudioOutputVolumeOffTemplateName touchBarAudioOutputVolumeLowTemplateName touchBarTextJustifiedAlignTemplateName touchBarCommunicationVideoTemplateName touchBarCommunicationAudioTemplateName touchBarSkipAhead30SecondsTemplateName touchBarSkipAhead15SecondsTemplateName touchBarTextStrikethroughTemplateName touchBarSkipBack30SecondsTemplateName touchBarSkipBack15SecondsTemplateName stopProgressFreestandingTemplateName touchBarAudioOutputMuteTemplateName invalidDataFreestandingTemplateName touchBarEnterFullScreenTemplateName touchBarTextCenterAlignTemplateName touchBarAudioInputMuteTemplateName followLinkFreestandingTemplateName touchBarExitFullScreenTemplateName touchBarTextRightAlignTemplateName touchBarTextUnderlineTemplateName touchBarTextLeftAlignTemplateName touchBarOpenInBrowserTemplateName touchBarFolderMoveToTemplateName touchBarFolderCopyToTemplateName touchBarFastForwardTemplateName rightFacingTriangleTemplateName refreshFreestandingTemplateName touchBarRotateRightTemplateName touchBarRecordStartTemplateName touchBarSkipToStartTemplateName touchBarTextItalicTemplateName touchBarNewMessageTemplateName leftFacingTriangleTemplateName revealFreestandingTemplateName touchBarVolumeDownTemplateName touchBarRecordStopTemplateName touchBarRotateLeftTemplateName touchBarAudioInputTemplateName touchBarColorPickerStrokeName touchBarSkipAheadTemplateName touchBarSkipToEndTemplateName touchBarGoForwardTemplateName touchBarPlayPauseTemplateName touchBarQuickLookTemplateName touchBarAddDetailTemplateName touchBarUserGroupTemplateName touchBarNewFolderTemplateName touchBarBookmarksTemplateName touchBarSlideshowTemplateName statusPartiallyAvailableName touchBarPlayheadTemplateName touchBarDownloadTemplateName touchBarTextBoldTemplateName touchBarSkipBackTemplateName touchBarVolumeUpTemplateName touchBarTextListTemplateName touchBarIconViewTemplateName touchBarListViewTemplateName touchBarUserAddTemplateName touchBarComposeTemplateName touchBarRefreshTemplateName enterFullScreenTemplateName touchBarTagIconTemplateName touchBarGetInfoTemplateName touchBarSidebarTemplateName touchBarTextBoxTemplateName touchBarHistoryTemplateName touchBarColorPickerFillName touchBarColorPickerFontName touchBarRewindTemplateName menuMixedStateTemplateName touchBarDeleteTemplateName touchBarRemoveTemplateName touchBarSearchTemplateName touchBarGoBackTemplateName exitFullScreenTemplateName touchBarGoDownTemplateName touchBarFolderTemplateName touchBarShareTemplateName touchBarPauseTemplateName touchBarAlarmTemplateName lockUnlockedTemplateName touchBarMailTemplateName touchBarGoUpTemplateName touchBarUserTemplateName iChatTheaterTemplateName stopProgressTemplateName touchBarPlayTemplateName touchBarAddTemplateName menuOnStateTemplateName lockLockedTemplateName smartBadgeTemplateName columnViewTemplateName preferencesGeneralName statusUnavailableName goForwardTemplateName bluetoothTemplateName quickLookTemplateName bookmarksTemplateName slideshowTemplateName multipleDocumentsName iconViewTemplateName listViewTemplateName flowViewTemplateName imageUnfilteredTypes statusAvailableName refreshTemplateName goRightTemplateName applicationIconName folderBurnableName removeTemplateName goBackTemplateName actionTemplateName goLeftTemplateName shareTemplateName homeTemplateName pathTemplateName userAccountsName addTemplateName folderSmartName statusNoneName colorPanelName trashEmptyName fontPanelName trashFullName userGroupName userGuestName advancedName mobileMeName everyoneName computerName networkName cautionName bonjourName folderName imageTypes infoName userName".split(
|
|
2337
|
+
" "
|
|
2338
|
+
)
|
|
2339
|
+
);
|
|
2340
|
+
|
|
2341
|
+
// src/swift-coverage/xcode-assets.ts
|
|
2342
|
+
var unprovenAssetSettings = [
|
|
2138
2343
|
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_FRAMEWORKS",
|
|
2139
2344
|
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_WARNINGS",
|
|
2140
2345
|
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_ERRORS",
|
|
@@ -2143,10 +2348,16 @@ var assetSymbolSettingKeys = [
|
|
|
2143
2348
|
"ASSETCATALOG_COMPILER_GENERATE_OBJC_ASSET_SYMBOLS_PATH",
|
|
2144
2349
|
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOL_INDEX_PATH",
|
|
2145
2350
|
"ASSETCATALOG_COMPILER_BUNDLE_IDENTIFIER",
|
|
2146
|
-
"ASSETCATALOG_COMPILER_LIGHTWEIGHT_ASSET_RUNTIME_MODE"
|
|
2351
|
+
"ASSETCATALOG_COMPILER_LIGHTWEIGHT_ASSET_RUNTIME_MODE"
|
|
2352
|
+
];
|
|
2353
|
+
var assetSymbolSettingKeys = [
|
|
2354
|
+
"ASSETCATALOG_COMPILER_GENERATE_ASSET_SYMBOLS",
|
|
2355
|
+
"ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS",
|
|
2356
|
+
"PRODUCT_BUNDLE_IDENTIFIER",
|
|
2357
|
+
"TARGETED_DEVICE_FAMILY",
|
|
2358
|
+
...unprovenAssetSettings,
|
|
2147
2359
|
"ASSETCATALOG_OTHER_FLAGS"
|
|
2148
2360
|
];
|
|
2149
|
-
var unprovenAssetSettings = assetSymbolSettingKeys.slice(4);
|
|
2150
2361
|
|
|
2151
2362
|
// src/swift-package.ts
|
|
2152
2363
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -2165,6 +2376,8 @@ function isSwiftNativeTranslationUnit(file) {
|
|
|
2165
2376
|
}
|
|
2166
2377
|
var SWIFT_NATIVE_SOURCE_EXTENSIONS = [
|
|
2167
2378
|
...SWIFT_NATIVE_TRANSLATION_UNIT_EXTENSIONS,
|
|
2379
|
+
".s",
|
|
2380
|
+
".S",
|
|
2168
2381
|
".h",
|
|
2169
2382
|
".hh",
|
|
2170
2383
|
".hpp",
|
|
@@ -2174,17 +2387,491 @@ var SWIFT_NATIVE_SOURCE_EXTENSIONS = [
|
|
|
2174
2387
|
".inl",
|
|
2175
2388
|
".modulemap"
|
|
2176
2389
|
];
|
|
2390
|
+
function moduleMapTokens(text2) {
|
|
2391
|
+
return (text2.match(/\/\*[\s\S]*?\*\/|\/\/[^\n]*|"[^"]*"|[\w.*]+|[{}\[\]]/g) ?? []).filter((token) => !token.startsWith("/"));
|
|
2392
|
+
}
|
|
2177
2393
|
function moduleMapName(text2) {
|
|
2178
|
-
|
|
2394
|
+
const tokens = moduleMapTokens(text2);
|
|
2395
|
+
const index = tokens.findIndex(
|
|
2396
|
+
(token, i) => token === "module" && tokens[i - 1] !== "extern"
|
|
2397
|
+
);
|
|
2398
|
+
return index < 0 ? void 0 : tokens[index + 1];
|
|
2399
|
+
}
|
|
2400
|
+
function swiftPackageIdentity(url) {
|
|
2401
|
+
const path7 = url.endsWith("/") ? url.slice(0, -1) : url;
|
|
2402
|
+
return (path7.split("/").pop() ?? path7).replace(/\.git$/, "").toLowerCase();
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
// src/swift-package-manifest.ts
|
|
2406
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2407
|
+
var import_node_child_process = require("node:child_process");
|
|
2408
|
+
var import_node_fs3 = __toESM(require("node:fs"), 1);
|
|
2409
|
+
var import_node_os3 = __toESM(require("node:os"), 1);
|
|
2410
|
+
var import_node_path4 = __toESM(require("node:path"), 1);
|
|
2411
|
+
|
|
2412
|
+
// src/home-paths.ts
|
|
2413
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2414
|
+
var import_node_os = require("node:os");
|
|
2415
|
+
var import_node_path2 = __toESM(require("node:path"), 1);
|
|
2416
|
+
var PEACH_HOME_ENV = "PEACH_HOME";
|
|
2417
|
+
function rnxHomeDir() {
|
|
2418
|
+
const override = process.env[PEACH_HOME_ENV];
|
|
2419
|
+
if (override && override.length > 0) return import_node_path2.default.resolve(override);
|
|
2420
|
+
return import_node_path2.default.join((0, import_node_os.homedir)(), ".peach");
|
|
2421
|
+
}
|
|
2422
|
+
function cacheDir() {
|
|
2423
|
+
return import_node_path2.default.join(rnxHomeDir(), "cache");
|
|
2424
|
+
}
|
|
2425
|
+
var BUILDERS_ROOT_ENV = "CONTRAST_BUILDERS_ROOT";
|
|
2426
|
+
function buildersRootEnv() {
|
|
2427
|
+
const root = process.env[BUILDERS_ROOT_ENV]?.trim();
|
|
2428
|
+
return root ? root : null;
|
|
2429
|
+
}
|
|
2430
|
+
function swiftCacheDir() {
|
|
2431
|
+
const root = buildersRootEnv();
|
|
2432
|
+
return root ? import_node_path2.default.join(root, "peach-cache") : cacheDir();
|
|
2433
|
+
}
|
|
2434
|
+
function swiftPackageCacheOptions() {
|
|
2435
|
+
const root = import_node_path2.default.join(swiftCacheDir(), "swiftpm");
|
|
2436
|
+
return ["cache", "config", "security"].flatMap((name) => [
|
|
2437
|
+
`--${name}-path`,
|
|
2438
|
+
import_node_path2.default.join(root, name)
|
|
2439
|
+
]);
|
|
2440
|
+
}
|
|
2441
|
+
var DAEMON_LOCKFILE_MAX_BYTES = 16 * 1024;
|
|
2442
|
+
|
|
2443
|
+
// src/swift-distribution.lock.json
|
|
2444
|
+
var swift_distribution_lock_default = {
|
|
2445
|
+
id: "95a0e12e7c0af807",
|
|
2446
|
+
release: "swift-6.4.0-RELEASE-custom-0b2d0a9011c88e66",
|
|
2447
|
+
wasmSdkId: "swift-6.4.0-RELEASE_wasm-peach-cbf01f4b",
|
|
2448
|
+
wasmSdkUrl: "https://r2.sootsim.com/swift-wasm-sdk/swift-6.4.0-RELEASE_wasm-peach-cbf01f4b.artifactbundle.tar.gz",
|
|
2449
|
+
wasmSdkChecksum: "2243db65b12743d577fecc6aa27761363ccef470202f1fef2582e58750c0da4f",
|
|
2450
|
+
source: "56ee2df2c863050b8261f4f20f6a51c008682ce9",
|
|
2451
|
+
targets: [
|
|
2452
|
+
"ImagePlayground",
|
|
2453
|
+
"QuickLookThumbnailing",
|
|
2454
|
+
"libxml2",
|
|
2455
|
+
"CarPlay",
|
|
2456
|
+
"System",
|
|
2457
|
+
"_LocationEssentials",
|
|
2458
|
+
"GeoToolbox",
|
|
2459
|
+
"DataDetection",
|
|
2460
|
+
"Accessibility",
|
|
2461
|
+
"Contacts",
|
|
2462
|
+
"CoreML",
|
|
2463
|
+
"EventKit",
|
|
2464
|
+
"CloudKit",
|
|
2465
|
+
"IOSurface",
|
|
2466
|
+
"OpenGLES",
|
|
2467
|
+
"ContactsUI",
|
|
2468
|
+
"CoreLocationUI",
|
|
2469
|
+
"MediaPlayer",
|
|
2470
|
+
"MediaAccessibility",
|
|
2471
|
+
"MusicKit",
|
|
2472
|
+
"RealityKit",
|
|
2473
|
+
"SecureElementCredential",
|
|
2474
|
+
"Social",
|
|
2475
|
+
"SceneKit",
|
|
2476
|
+
"CoreBluetooth",
|
|
2477
|
+
"HealthKit",
|
|
2478
|
+
"CoreNFC",
|
|
2479
|
+
"Speech",
|
|
2480
|
+
"Vision",
|
|
2481
|
+
"VisionKit",
|
|
2482
|
+
"WorkoutKit",
|
|
2483
|
+
"_PassKit_SwiftUI",
|
|
2484
|
+
"ExpoModulesCore",
|
|
2485
|
+
"_MapKit_SwiftUI",
|
|
2486
|
+
"PeachJSON",
|
|
2487
|
+
"PeachFoundation",
|
|
2488
|
+
"FoundationNetworking",
|
|
2489
|
+
"DeveloperToolsSupport",
|
|
2490
|
+
"CoreImageEnums",
|
|
2491
|
+
"SwiftUI",
|
|
2492
|
+
"DarwinRecords",
|
|
2493
|
+
"Darwin",
|
|
2494
|
+
"MachO",
|
|
2495
|
+
"PeachObjCRuntime",
|
|
2496
|
+
"PeachObjC",
|
|
2497
|
+
"UIUtilities",
|
|
2498
|
+
"UIKitEnums",
|
|
2499
|
+
"UIKitCore",
|
|
2500
|
+
"PeachICU",
|
|
2501
|
+
"PeachCMark",
|
|
2502
|
+
"CoreImage",
|
|
2503
|
+
"QuartzCore",
|
|
2504
|
+
"CoreGraphics",
|
|
2505
|
+
"AppTrackingTransparency",
|
|
2506
|
+
"StoreKit",
|
|
2507
|
+
"_StoreKit_SwiftUI",
|
|
2508
|
+
"WeatherKit",
|
|
2509
|
+
"DeviceCheck",
|
|
2510
|
+
"PassKit",
|
|
2511
|
+
"Translation",
|
|
2512
|
+
"TipKit",
|
|
2513
|
+
"CoreSpotlight",
|
|
2514
|
+
"CoreVideo",
|
|
2515
|
+
"CoreMedia",
|
|
2516
|
+
"VideoToolbox",
|
|
2517
|
+
"AdSupport",
|
|
2518
|
+
"BackgroundTasks",
|
|
2519
|
+
"LocalAuthentication",
|
|
2520
|
+
"CoreMotion",
|
|
2521
|
+
"MessageUI",
|
|
2522
|
+
"GameController",
|
|
2523
|
+
"GameKit",
|
|
2524
|
+
"MetricKit",
|
|
2525
|
+
"Metal",
|
|
2526
|
+
"AuthenticationServices",
|
|
2527
|
+
"os",
|
|
2528
|
+
"Charts",
|
|
2529
|
+
"Symbols",
|
|
2530
|
+
"UniformTypeIdentifiers",
|
|
2531
|
+
"WidgetKit",
|
|
2532
|
+
"ActivityKit",
|
|
2533
|
+
"SwiftData",
|
|
2534
|
+
"UIKit",
|
|
2535
|
+
"React",
|
|
2536
|
+
"Combine",
|
|
2537
|
+
"PeachFoundationCombine",
|
|
2538
|
+
"AppIntents",
|
|
2539
|
+
"PhotosUI",
|
|
2540
|
+
"AVFoundation",
|
|
2541
|
+
"AVFAudio",
|
|
2542
|
+
"UserNotifications",
|
|
2543
|
+
"Network",
|
|
2544
|
+
"NetworkExtension",
|
|
2545
|
+
"OSLog",
|
|
2546
|
+
"PeachSecurityRuntime",
|
|
2547
|
+
"Accelerate",
|
|
2548
|
+
"CoreText",
|
|
2549
|
+
"CFNetwork",
|
|
2550
|
+
"CommonCrypto",
|
|
2551
|
+
"PeachCodec",
|
|
2552
|
+
"Compression",
|
|
2553
|
+
"zlib",
|
|
2554
|
+
"CryptoKit",
|
|
2555
|
+
"TikTokBusinessSDK",
|
|
2556
|
+
"nSure",
|
|
2557
|
+
"Statsig",
|
|
2558
|
+
"TOCropViewController",
|
|
2559
|
+
"RiveRuntime",
|
|
2560
|
+
"AVRouting",
|
|
2561
|
+
"CoreData",
|
|
2562
|
+
"PDFKit",
|
|
2563
|
+
"ModelIOEnums",
|
|
2564
|
+
"ModelIO",
|
|
2565
|
+
"MetalKit",
|
|
2566
|
+
"DatadogCore",
|
|
2567
|
+
"DatadogLogs",
|
|
2568
|
+
"DatadogRUM",
|
|
2569
|
+
"DatadogTrace",
|
|
2570
|
+
"AppLovinSDK",
|
|
2571
|
+
"GoogleMobileAds",
|
|
2572
|
+
"AppsFlyerLib",
|
|
2573
|
+
"FBSDKCoreKit",
|
|
2574
|
+
"FBAEMKit",
|
|
2575
|
+
"FBSDKCoreKit_Basics",
|
|
2576
|
+
"FirebaseCore",
|
|
2577
|
+
"FirebaseSharedSwift",
|
|
2578
|
+
"FirebaseRemoteConfig",
|
|
2579
|
+
"FirebaseFirestoreInternal",
|
|
2580
|
+
"FirebaseAnalytics",
|
|
2581
|
+
"FirebaseAppCheck",
|
|
2582
|
+
"FirebaseAuth",
|
|
2583
|
+
"FirebaseCrashlytics",
|
|
2584
|
+
"FirebaseFirestore",
|
|
2585
|
+
"FirebaseStorage",
|
|
2586
|
+
"Firebase",
|
|
2587
|
+
"Intercom",
|
|
2588
|
+
"FBAudienceNetwork",
|
|
2589
|
+
"NaturalLanguage",
|
|
2590
|
+
"AVKit",
|
|
2591
|
+
"SafariServices",
|
|
2592
|
+
"QuickLook",
|
|
2593
|
+
"CoreHaptics",
|
|
2594
|
+
"WebKit",
|
|
2595
|
+
"Photos",
|
|
2596
|
+
"LinkPresentation",
|
|
2597
|
+
"FoundationModels",
|
|
2598
|
+
"CoreTransferable",
|
|
2599
|
+
"AudioToolbox",
|
|
2600
|
+
"CoreAudioTypes",
|
|
2601
|
+
"AudioUnit",
|
|
2602
|
+
"Intents",
|
|
2603
|
+
"IntentsUI",
|
|
2604
|
+
"WatchConnectivity",
|
|
2605
|
+
"CoreServices",
|
|
2606
|
+
"MobileCoreServices",
|
|
2607
|
+
"CoreTelephony",
|
|
2608
|
+
"SystemConfiguration",
|
|
2609
|
+
"ImageIO",
|
|
2610
|
+
"CoreLocationEnums",
|
|
2611
|
+
"CoreLocation",
|
|
2612
|
+
"MapKit",
|
|
2613
|
+
"One",
|
|
2614
|
+
"simd",
|
|
2615
|
+
"GLKit",
|
|
2616
|
+
"GameplayKit",
|
|
2617
|
+
"SpriteKit",
|
|
2618
|
+
"PeachBox2D"
|
|
2619
|
+
],
|
|
2620
|
+
systemEnvironment: {
|
|
2621
|
+
scenePhase: ["string:active", "string:inactive", "string:background"],
|
|
2622
|
+
deviceModel: ["string"],
|
|
2623
|
+
systemName: ["string"],
|
|
2624
|
+
systemVersion: ["string"],
|
|
2625
|
+
colorScheme: ["string:light", "string:dark"],
|
|
2626
|
+
semanticColors: ["object"],
|
|
2627
|
+
imageAssets: ["object"],
|
|
2628
|
+
locale: ["string"],
|
|
2629
|
+
dynamicTypeSize: [
|
|
2630
|
+
"string:xSmall",
|
|
2631
|
+
"string:small",
|
|
2632
|
+
"string:medium",
|
|
2633
|
+
"string:large",
|
|
2634
|
+
"string:xLarge",
|
|
2635
|
+
"string:xxLarge",
|
|
2636
|
+
"string:xxxLarge",
|
|
2637
|
+
"string:accessibility1",
|
|
2638
|
+
"string:accessibility2",
|
|
2639
|
+
"string:accessibility3",
|
|
2640
|
+
"string:accessibility4",
|
|
2641
|
+
"string:accessibility5"
|
|
2642
|
+
],
|
|
2643
|
+
horizontalSizeClass: ["string:compact", "string:regular"],
|
|
2644
|
+
verticalSizeClass: ["string:compact", "string:regular"],
|
|
2645
|
+
accessibilityReduceMotion: ["bool"]
|
|
2646
|
+
},
|
|
2647
|
+
hosts: {
|
|
2648
|
+
"darwin-arm64": {
|
|
2649
|
+
sha256: "2ab6cf8ee1a10b76ef46c90c8ee384f44594aa5be63ac267f55ab6cd30722595",
|
|
2650
|
+
size: 88639020
|
|
2651
|
+
},
|
|
2652
|
+
"linux-x64": {
|
|
2653
|
+
sha256: "e159994e38c6043515c97d818c63f1e1b0170fb73b2cb721a6913b21691b1ec7",
|
|
2654
|
+
size: 91386228
|
|
2655
|
+
},
|
|
2656
|
+
"linux-arm64": {
|
|
2657
|
+
sha256: "80ef20a79414516631bc1394c1fcd045d0381a3c8be8b65967d6a089ad768d23",
|
|
2658
|
+
size: 90878300
|
|
2659
|
+
}
|
|
2660
|
+
}
|
|
2661
|
+
};
|
|
2662
|
+
|
|
2663
|
+
// src/swift-toolchain.ts
|
|
2664
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2665
|
+
var import_node_fs2 = __toESM(require("node:fs"), 1);
|
|
2666
|
+
var import_node_os2 = __toESM(require("node:os"), 1);
|
|
2667
|
+
var import_node_path3 = __toESM(require("node:path"), 1);
|
|
2668
|
+
var SWIFT_HOST_COMPILER_RELEASE = "swift-6.4.0-RELEASE-custom-0b2d0a9011c88e66";
|
|
2669
|
+
var SWIFT_HOST_COMPILER_ID = "0b2d0a9011c88e66";
|
|
2670
|
+
var compilerArchives = {
|
|
2671
|
+
"swift-6.4.0-RELEASE-custom-ecd2ad9d3fe59329": {
|
|
2672
|
+
identity: "ecd2ad9d3fe59329",
|
|
2673
|
+
hosts: {
|
|
2674
|
+
"darwin-arm64": {
|
|
2675
|
+
checksum: "ab42a13b34e410ca09737420d1ee1d6af417eec039ab44f9a60502bdb5c76506",
|
|
2676
|
+
manifest: "8a93b6b1e6ff577f6dacd81a511d415ca3b396698f9b0c4abc35a4ca807e9d1a"
|
|
2677
|
+
},
|
|
2678
|
+
"linux-x64": {
|
|
2679
|
+
checksum: "b174baa2c578fb32f09c79590d65d03951b04cdec52101b23a46c0b274249fc3",
|
|
2680
|
+
manifest: "330e6cbae5890111c22a58e645049a971eff30334c3f240c650fcfedfeab4ef6"
|
|
2681
|
+
},
|
|
2682
|
+
"linux-arm64": {
|
|
2683
|
+
checksum: "25f722334dd9d79391cb2e47301165e9ef98dd9a8036927652f3c5db3c56b2ae",
|
|
2684
|
+
manifest: "94e5667febf26f8a4ee8c5456f83f62d17453e503d261a4c46d2b80f872470ab"
|
|
2685
|
+
}
|
|
2686
|
+
}
|
|
2687
|
+
},
|
|
2688
|
+
[SWIFT_HOST_COMPILER_RELEASE]: {
|
|
2689
|
+
identity: SWIFT_HOST_COMPILER_ID,
|
|
2690
|
+
hosts: {
|
|
2691
|
+
"darwin-arm64": {
|
|
2692
|
+
checksum: "dc6a494227297ea657e8e5f7c5b4a861cb5e142bdbcfcb028ace2aeb19db90cc",
|
|
2693
|
+
manifest: "d8e9eee0fb9b847f1e9350525d6c68606df46101745f553332309ed026b3c26a"
|
|
2694
|
+
},
|
|
2695
|
+
"linux-x64": {
|
|
2696
|
+
checksum: "85c04b4496aea1657c21a47f448e01d6ccc1c7920d130a566db37fb8350a7be2",
|
|
2697
|
+
manifest: "8451659e74235ad53b700c1afbe293512197900eb98cb1f79e36df2f5c85d511"
|
|
2698
|
+
},
|
|
2699
|
+
"linux-arm64": {
|
|
2700
|
+
checksum: "196606ed62c5c926d18e6ef0769cb1ab21c9943f9084070ddf14a7bc696768b8",
|
|
2701
|
+
manifest: "85fb8d5b6527bd75003a6dbd25b68b22540665cf9df9b13f41f82e5d8acdbf1d"
|
|
2702
|
+
}
|
|
2703
|
+
}
|
|
2704
|
+
}
|
|
2705
|
+
};
|
|
2706
|
+
function swiftToolchainBin(release) {
|
|
2707
|
+
if (process.platform === "darwin") {
|
|
2708
|
+
const dirs = [import_node_os2.default.homedir(), "/"].map(
|
|
2709
|
+
(base) => import_node_path3.default.join(base, `Library/Developer/Toolchains/${release}.xctoolchain/usr/bin`)
|
|
2710
|
+
);
|
|
2711
|
+
return dirs.find((dir) => import_node_fs2.default.existsSync(import_node_path3.default.join(dir, "swift"))) ?? dirs[0];
|
|
2712
|
+
}
|
|
2713
|
+
if (process.env.CONTRAST_SWIFT_TOOLCHAINS) {
|
|
2714
|
+
return import_node_path3.default.join(process.env.CONTRAST_SWIFT_TOOLCHAINS, release, "usr/bin");
|
|
2715
|
+
}
|
|
2716
|
+
const image = import_node_path3.default.join("/opt/swift", release, "usr/bin");
|
|
2717
|
+
if (import_node_fs2.default.existsSync(import_node_path3.default.join(image, "swift"))) return image;
|
|
2718
|
+
if (release.includes("-custom-"))
|
|
2719
|
+
return import_node_path3.default.join(peachHome(), "swift", "toolchains", release, "usr/bin");
|
|
2720
|
+
return (process.env.PATH ?? "").split(import_node_path3.default.delimiter).find((dir) => dir && import_node_fs2.default.existsSync(import_node_path3.default.join(dir, "swift"))) ?? image;
|
|
2721
|
+
}
|
|
2722
|
+
function peachHome() {
|
|
2723
|
+
const override = process.env.PEACH_HOME;
|
|
2724
|
+
return override ? import_node_path3.default.resolve(override) : import_node_path3.default.join(import_node_os2.default.homedir(), ".peach");
|
|
2725
|
+
}
|
|
2726
|
+
var scratch;
|
|
2727
|
+
function swiftEnvironment(base = process.env) {
|
|
2728
|
+
if (!scratch) return base;
|
|
2729
|
+
return {
|
|
2730
|
+
...base,
|
|
2731
|
+
TMPDIR: scratch.directory,
|
|
2732
|
+
XDG_CONFIG_HOME: import_node_path3.default.join(scratch.home, ".config"),
|
|
2733
|
+
XDG_CACHE_HOME: import_node_path3.default.join(scratch.home, ".cache"),
|
|
2734
|
+
XDG_DATA_HOME: import_node_path3.default.join(scratch.home, ".local", "share"),
|
|
2735
|
+
...process.platform === "linux" ? { HOME: scratch.home } : {}
|
|
2736
|
+
};
|
|
2737
|
+
}
|
|
2738
|
+
|
|
2739
|
+
// src/swift-package-manifest.ts
|
|
2740
|
+
function swiftCommand() {
|
|
2741
|
+
return import_node_path4.default.join(swiftToolchainBin(swift_distribution_lock_default.release), "swift");
|
|
2742
|
+
}
|
|
2743
|
+
function swiftPackageFailure(error) {
|
|
2744
|
+
if (!(error instanceof Error)) return String(error);
|
|
2745
|
+
const stderr = "stderr" in error && (typeof error.stderr === "string" || Buffer.isBuffer(error.stderr)) ? error.stderr.toString().trim() : "";
|
|
2746
|
+
return stderr || error.message;
|
|
2747
|
+
}
|
|
2748
|
+
var cacheDir2 = import_node_path4.default.join(cacheDir(), "swift-manifests");
|
|
2749
|
+
var requirementClause = (item) => {
|
|
2750
|
+
const url = JSON.stringify(item.url);
|
|
2751
|
+
const requirement = item.requirement;
|
|
2752
|
+
if (requirement.kind === "upToNextMajorVersion")
|
|
2753
|
+
return `.package(url: ${url}, from: ${JSON.stringify(requirement.minimumVersion)})`;
|
|
2754
|
+
if (requirement.kind === "upToNextMinorVersion")
|
|
2755
|
+
return `.package(url: ${url}, .upToNextMinor(from: ${JSON.stringify(requirement.minimumVersion)}))`;
|
|
2756
|
+
if (requirement.kind === "versionRange")
|
|
2757
|
+
return `.package(url: ${url}, ${JSON.stringify(requirement.minimumVersion)}..<${JSON.stringify(requirement.maximumVersion)})`;
|
|
2758
|
+
if (requirement.kind === "exactVersion")
|
|
2759
|
+
return `.package(url: ${url}, exact: ${JSON.stringify(requirement.version)})`;
|
|
2760
|
+
if (requirement.kind === "branch")
|
|
2761
|
+
return `.package(url: ${url}, branch: ${JSON.stringify(requirement.branch)})`;
|
|
2762
|
+
return `.package(url: ${url}, revision: ${JSON.stringify(requirement.revision)})`;
|
|
2763
|
+
};
|
|
2764
|
+
function resolveSwiftPackageRequirements(requirements, destination) {
|
|
2765
|
+
const repository = (url) => url.replace(/(?:\.git)?\/?$/, "");
|
|
2766
|
+
const chosen = /* @__PURE__ */ new Map();
|
|
2767
|
+
for (const item of requirements) {
|
|
2768
|
+
const identity = swiftPackageIdentity(item.url);
|
|
2769
|
+
const previous = chosen.get(identity);
|
|
2770
|
+
if (previous && (repository(previous.url) !== repository(item.url) || JSON.stringify(previous.requirement) !== JSON.stringify(item.requirement)))
|
|
2771
|
+
throw new Error(
|
|
2772
|
+
`conflicting requirements for ${identity}: ${previous.url} ${JSON.stringify(previous.requirement)}; ${item.url} ${JSON.stringify(item.requirement)}`
|
|
2773
|
+
);
|
|
2774
|
+
if (!previous) chosen.set(identity, item);
|
|
2775
|
+
}
|
|
2776
|
+
const clauses = [...chosen.values()].sort(
|
|
2777
|
+
(a, b) => swiftPackageIdentity(a.url).localeCompare(swiftPackageIdentity(b.url))
|
|
2778
|
+
).map(requirementClause);
|
|
2779
|
+
const manifest = `// swift-tools-version:5.9
|
|
2780
|
+
import PackageDescription
|
|
2781
|
+
let package = Package(
|
|
2782
|
+
name: "Resolve",
|
|
2783
|
+
dependencies: [
|
|
2784
|
+
${clauses.join(",\n ")},
|
|
2785
|
+
]
|
|
2786
|
+
)
|
|
2787
|
+
`;
|
|
2788
|
+
const dir = import_node_fs3.default.mkdtempSync(import_node_path4.default.join(import_node_os3.default.tmpdir(), "peach-resolve-"));
|
|
2789
|
+
try {
|
|
2790
|
+
import_node_fs3.default.writeFileSync(import_node_path4.default.join(dir, "Package.swift"), manifest);
|
|
2791
|
+
try {
|
|
2792
|
+
(0, import_node_child_process.execFileSync)(
|
|
2793
|
+
swiftCommand(),
|
|
2794
|
+
[
|
|
2795
|
+
"package",
|
|
2796
|
+
...swiftPackageCacheOptions(),
|
|
2797
|
+
"--package-path",
|
|
2798
|
+
dir,
|
|
2799
|
+
"--scratch-path",
|
|
2800
|
+
import_node_path4.default.join(dir, ".build"),
|
|
2801
|
+
"resolve"
|
|
2802
|
+
],
|
|
2803
|
+
{
|
|
2804
|
+
encoding: "utf8",
|
|
2805
|
+
env: { ...swiftEnvironment(), GIT_TERMINAL_PROMPT: "0" },
|
|
2806
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
2807
|
+
maxBuffer: 32 * 1024 * 1024
|
|
2808
|
+
}
|
|
2809
|
+
);
|
|
2810
|
+
} catch (error) {
|
|
2811
|
+
throw new Error(
|
|
2812
|
+
`swiftpm could not resolve ${clauses.length} package requirements (${clauses.join(", ")}): ${swiftPackageFailure(error)}`,
|
|
2813
|
+
{ cause: error }
|
|
2814
|
+
);
|
|
2815
|
+
}
|
|
2816
|
+
const resolved = import_node_path4.default.join(dir, "Package.resolved");
|
|
2817
|
+
if (!import_node_fs3.default.existsSync(resolved))
|
|
2818
|
+
throw new Error("swift package resolve wrote no Package.resolved");
|
|
2819
|
+
import_node_fs3.default.mkdirSync(import_node_path4.default.dirname(destination), { recursive: true });
|
|
2820
|
+
import_node_fs3.default.copyFileSync(resolved, destination);
|
|
2821
|
+
} finally {
|
|
2822
|
+
import_node_fs3.default.rmSync(dir, { recursive: true, force: true });
|
|
2823
|
+
}
|
|
2179
2824
|
}
|
|
2180
2825
|
|
|
2181
2826
|
// src/xcode-json-project.ts
|
|
2182
2827
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2183
|
-
var
|
|
2828
|
+
var import_node_path5 = __toESM(require("node:path"), 1);
|
|
2184
2829
|
var import_json5 = __toESM(require_lib(), 1);
|
|
2185
2830
|
var isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
2186
2831
|
var text = (value) => typeof value === "string" ? value : void 0;
|
|
2187
2832
|
var items = (value) => Array.isArray(value) ? value : [];
|
|
2833
|
+
function remoteVersionRequirement(entry) {
|
|
2834
|
+
const revision = text(entry.revision);
|
|
2835
|
+
if (revision !== void 0) return { requirement: { kind: "revision", revision } };
|
|
2836
|
+
const branch = text(entry.branch);
|
|
2837
|
+
if (branch !== void 0) return { requirement: { kind: "branch", branch } };
|
|
2838
|
+
const version = text(entry.version);
|
|
2839
|
+
if (version !== void 0) return { requirement: { kind: "exactVersion", version } };
|
|
2840
|
+
const minor = text(entry["up-to-next-minor-version"]);
|
|
2841
|
+
if (minor !== void 0)
|
|
2842
|
+
return { requirement: { kind: "upToNextMinorVersion", minimumVersion: minor } };
|
|
2843
|
+
const major = text(entry["up-to-next-major-version"]);
|
|
2844
|
+
if (major !== void 0)
|
|
2845
|
+
return { requirement: { kind: "upToNextMajorVersion", minimumVersion: major } };
|
|
2846
|
+
const range = text(entry["version-range"]);
|
|
2847
|
+
if (range !== void 0) {
|
|
2848
|
+
const bounds = range.split("..<");
|
|
2849
|
+
const minimum2 = bounds[0];
|
|
2850
|
+
const maximum2 = bounds[1];
|
|
2851
|
+
if (bounds.length !== 2 || !minimum2 || !maximum2 || bounds[2] !== void 0)
|
|
2852
|
+
throw new Error(
|
|
2853
|
+
`${text(entry.repository) ?? "package"} has a version-range that is not min..<max`
|
|
2854
|
+
);
|
|
2855
|
+
return {
|
|
2856
|
+
requirement: {
|
|
2857
|
+
kind: "versionRange",
|
|
2858
|
+
minimumVersion: minimum2,
|
|
2859
|
+
maximumVersion: maximum2
|
|
2860
|
+
}
|
|
2861
|
+
};
|
|
2862
|
+
}
|
|
2863
|
+
const minimum = text(entry["version-range-min"]);
|
|
2864
|
+
const maximum = text(entry["version-range-max"]);
|
|
2865
|
+
if (minimum !== void 0 && maximum !== void 0)
|
|
2866
|
+
return {
|
|
2867
|
+
requirement: {
|
|
2868
|
+
kind: "versionRange",
|
|
2869
|
+
minimumVersion: minimum,
|
|
2870
|
+
maximumVersion: maximum
|
|
2871
|
+
}
|
|
2872
|
+
};
|
|
2873
|
+
return void 0;
|
|
2874
|
+
}
|
|
2188
2875
|
var PHASE_ISA = {
|
|
2189
2876
|
"compile-sources": "PBXSourcesBuildPhase",
|
|
2190
2877
|
resources: "PBXResourcesBuildPhase",
|
|
@@ -2196,7 +2883,7 @@ var PHASE_ISA = {
|
|
|
2196
2883
|
function readXcodeJsonProject(xcodeproj, source) {
|
|
2197
2884
|
const json = import_json5.default.parse(source);
|
|
2198
2885
|
if (!isJsonObject(json)) throw new Error(`${xcodeproj}/project.xcproj is not an object`);
|
|
2199
|
-
const projectDir =
|
|
2886
|
+
const projectDir = import_node_path5.default.dirname(xcodeproj);
|
|
2200
2887
|
const objects = {};
|
|
2201
2888
|
let next = 0;
|
|
2202
2889
|
const add = (entry, id) => {
|
|
@@ -2209,7 +2896,7 @@ function readXcodeJsonProject(xcodeproj, source) {
|
|
|
2209
2896
|
const base = /^<([A-Z]+)>\/(.*)$/.exec(raw);
|
|
2210
2897
|
if (base) {
|
|
2211
2898
|
if (base[1] === "PROJECT")
|
|
2212
|
-
return { sourceTree: "<absolute>", path:
|
|
2899
|
+
return { sourceTree: "<absolute>", path: import_node_path5.default.join(projectDir, base[2]) };
|
|
2213
2900
|
if (base[1] === "PRODUCTS")
|
|
2214
2901
|
return { sourceTree: "BUILT_PRODUCTS_DIR", path: base[2] };
|
|
2215
2902
|
return null;
|
|
@@ -2217,7 +2904,7 @@ function readXcodeJsonProject(xcodeproj, source) {
|
|
|
2217
2904
|
const unescaped = raw.replaceAll("\\<", "<");
|
|
2218
2905
|
if (unescaped.startsWith("/")) return { sourceTree: "<absolute>", path: unescaped };
|
|
2219
2906
|
if (unescaped.startsWith("~")) return null;
|
|
2220
|
-
return groupDir === null ? null : { sourceTree: "<absolute>", path:
|
|
2907
|
+
return groupDir === null ? null : { sourceTree: "<absolute>", path: import_node_path5.default.join(groupDir, unescaped) };
|
|
2221
2908
|
};
|
|
2222
2909
|
const memberships = [];
|
|
2223
2910
|
const folders = [];
|
|
@@ -2228,7 +2915,7 @@ function readXcodeJsonProject(xcodeproj, source) {
|
|
|
2228
2915
|
const kind = text(entry.kind) ?? "file-reference";
|
|
2229
2916
|
const raw = text(entry.path) ?? "";
|
|
2230
2917
|
const located = raw === "" ? null : locate(raw, parent.dir);
|
|
2231
|
-
const name = text(entry.name) ??
|
|
2918
|
+
const name = text(entry.name) ?? import_node_path5.default.basename(raw);
|
|
2232
2919
|
const node = { id: "", name, dir: null, parent, children: [] };
|
|
2233
2920
|
if (kind === "group" || kind === "variant-group" || kind === "version-group") {
|
|
2234
2921
|
node.dir = raw === "" ? parent.dir : located?.sourceTree === "<absolute>" ? located.path : null;
|
|
@@ -2349,8 +3036,12 @@ function readXcodeJsonProject(xcodeproj, source) {
|
|
|
2349
3036
|
if (!isObject(entry)) continue;
|
|
2350
3037
|
const repository = text(entry.repository);
|
|
2351
3038
|
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({
|
|
3039
|
+
const name = local !== void 0 ? import_node_path5.default.basename(import_node_path5.default.resolve(import_node_path5.default.dirname(xcodeproj), local)) : import_node_path5.default.basename(repository ?? "").replace(/\.git$/, "");
|
|
3040
|
+
const id = text(entry.kind) === "local" && local !== void 0 ? add({ isa: "XCLocalSwiftPackageReference", relativePath: local }) : add({
|
|
3041
|
+
isa: "XCRemoteSwiftPackageReference",
|
|
3042
|
+
repositoryURL: repository ?? "",
|
|
3043
|
+
...remoteVersionRequirement(entry)
|
|
3044
|
+
});
|
|
2354
3045
|
packageIds.set(name.toLowerCase(), id);
|
|
2355
3046
|
}
|
|
2356
3047
|
const productDependency = (entry) => add({
|
|
@@ -2520,7 +3211,23 @@ function isJsonObject(value) {
|
|
|
2520
3211
|
|
|
2521
3212
|
// src/xcode-project.ts
|
|
2522
3213
|
var XCODE_DEFAULT_IOS_DEPLOYMENT_TARGET = "27.0";
|
|
3214
|
+
var CXX_STANDARD_ALIASES = {
|
|
3215
|
+
"c++0x": "c++11",
|
|
3216
|
+
"gnu++0x": "gnu++11"
|
|
3217
|
+
};
|
|
3218
|
+
var PRE_CXX20_STANDARDS = /* @__PURE__ */ new Set([
|
|
3219
|
+
"c++98",
|
|
3220
|
+
"gnu++98",
|
|
3221
|
+
"c++0x",
|
|
3222
|
+
"gnu++0x",
|
|
3223
|
+
"c++14",
|
|
3224
|
+
"gnu++14",
|
|
3225
|
+
"c++17",
|
|
3226
|
+
"gnu++17",
|
|
3227
|
+
"compiler-default"
|
|
3228
|
+
]);
|
|
2523
3229
|
var APPLICATION = "com.apple.product-type.application";
|
|
3230
|
+
var RESOURCE_BUNDLE = "com.apple.product-type.bundle";
|
|
2524
3231
|
var FRAMEWORK_PRODUCTS = /* @__PURE__ */ new Set([
|
|
2525
3232
|
"com.apple.product-type.framework",
|
|
2526
3233
|
"com.apple.product-type.framework.static"
|
|
@@ -2538,28 +3245,28 @@ var CONDITIONS = {
|
|
|
2538
3245
|
variant: "normal"
|
|
2539
3246
|
};
|
|
2540
3247
|
function walkFiles(dir) {
|
|
2541
|
-
if (!
|
|
3248
|
+
if (!import_node_fs4.default.existsSync(dir)) return [];
|
|
2542
3249
|
const out = [];
|
|
2543
|
-
for (const entry of
|
|
3250
|
+
for (const entry of import_node_fs4.default.readdirSync(dir, { withFileTypes: true }).sort((left, right) => left.name.localeCompare(right.name))) {
|
|
2544
3251
|
if (entry.name.startsWith(".")) continue;
|
|
2545
|
-
const full =
|
|
3252
|
+
const full = import_node_path6.default.join(dir, entry.name);
|
|
2546
3253
|
if (entry.isDirectory()) out.push(...walkFiles(full));
|
|
2547
3254
|
else if (entry.isFile()) out.push(full);
|
|
2548
3255
|
}
|
|
2549
3256
|
return out;
|
|
2550
3257
|
}
|
|
2551
|
-
var isDirectory = (dir) =>
|
|
3258
|
+
var isDirectory = (dir) => import_node_fs4.default.existsSync(dir) && import_node_fs4.default.statSync(dir).isDirectory();
|
|
2552
3259
|
function readXcconfig(file, read) {
|
|
2553
|
-
if (read.includes(file) || !
|
|
3260
|
+
if (read.includes(file) || !import_node_fs4.default.existsSync(file)) return {};
|
|
2554
3261
|
read.push(file);
|
|
2555
3262
|
const settings = {};
|
|
2556
|
-
for (const raw of
|
|
3263
|
+
for (const raw of import_node_fs4.default.readFileSync(file, "utf8").split("\n")) {
|
|
2557
3264
|
const line = raw.replace(/\/\/.*$/, "").trim();
|
|
2558
3265
|
const include = /^#include\??\s+"([^"]+)"/.exec(line);
|
|
2559
3266
|
if (include) {
|
|
2560
3267
|
Object.assign(
|
|
2561
3268
|
settings,
|
|
2562
|
-
readXcconfig(
|
|
3269
|
+
readXcconfig(import_node_path6.default.resolve(import_node_path6.default.dirname(file), include[1]), read)
|
|
2563
3270
|
);
|
|
2564
3271
|
continue;
|
|
2565
3272
|
}
|
|
@@ -2609,22 +3316,22 @@ function decodeXml(text2) {
|
|
|
2609
3316
|
return text2.replaceAll(""", '"').replaceAll("'", "'").replaceAll("<", "<").replaceAll(">", ">").replaceAll("&", "&");
|
|
2610
3317
|
}
|
|
2611
3318
|
function workspaceReferences(workspace) {
|
|
2612
|
-
const data =
|
|
2613
|
-
if (!
|
|
3319
|
+
const data = import_node_path6.default.join(workspace, "contents.xcworkspacedata");
|
|
3320
|
+
if (!import_node_fs4.default.existsSync(data))
|
|
2614
3321
|
throw new Error(`${workspace} has no contents.xcworkspacedata`);
|
|
2615
|
-
const container =
|
|
3322
|
+
const container = import_node_path6.default.dirname(workspace);
|
|
2616
3323
|
const locate = (location, base) => {
|
|
2617
3324
|
const colon = location.indexOf(":");
|
|
2618
3325
|
const kind = location.slice(0, colon);
|
|
2619
3326
|
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(`${
|
|
3327
|
+
if (kind === "group") return import_node_path6.default.resolve(base, rest);
|
|
3328
|
+
if (kind === "container" || kind === "self") return import_node_path6.default.resolve(container, rest);
|
|
3329
|
+
if (kind === "absolute") return import_node_path6.default.resolve(rest);
|
|
3330
|
+
throw new Error(`${import_node_path6.default.basename(workspace)} has an unsupported location ${location}`);
|
|
2624
3331
|
};
|
|
2625
3332
|
const groups = [container];
|
|
2626
3333
|
const references = [];
|
|
2627
|
-
for (const [, closing, tag, attributes, selfClosing] of
|
|
3334
|
+
for (const [, closing, tag, attributes, selfClosing] of import_node_fs4.default.readFileSync(data, "utf8").matchAll(/<(\/?)(Group|FileRef)\b([^>]*?)(\/?)>/g)) {
|
|
2628
3335
|
if (closing) {
|
|
2629
3336
|
if (tag === "Group") groups.pop();
|
|
2630
3337
|
continue;
|
|
@@ -2637,11 +3344,46 @@ function workspaceReferences(workspace) {
|
|
|
2637
3344
|
}
|
|
2638
3345
|
return references;
|
|
2639
3346
|
}
|
|
3347
|
+
function versionRequirement(url, requirement) {
|
|
3348
|
+
const kind = str(requirement.kind);
|
|
3349
|
+
const minimum = str(requirement.minimumVersion);
|
|
3350
|
+
const maximum = str(requirement.maximumVersion);
|
|
3351
|
+
const version = str(requirement.version);
|
|
3352
|
+
const branch = str(requirement.branch);
|
|
3353
|
+
const revision = str(requirement.revision);
|
|
3354
|
+
if (kind === "upToNextMajorVersion" && minimum)
|
|
3355
|
+
return { kind: "upToNextMajorVersion", minimumVersion: minimum };
|
|
3356
|
+
if (kind === "upToNextMinorVersion" && minimum)
|
|
3357
|
+
return { kind: "upToNextMinorVersion", minimumVersion: minimum };
|
|
3358
|
+
if (kind === "versionRange" && minimum && maximum)
|
|
3359
|
+
return { kind: "versionRange", minimumVersion: minimum, maximumVersion: maximum };
|
|
3360
|
+
if (kind === "exactVersion" && version) return { kind: "exactVersion", version };
|
|
3361
|
+
if (kind === "branch" && branch) return { kind: "branch", branch };
|
|
3362
|
+
if (kind === "revision" && revision) return { kind: "revision", revision };
|
|
3363
|
+
throw new Error(
|
|
3364
|
+
`${url} has an unsupported package requirement${kind ? ` (${kind})` : ""}`
|
|
3365
|
+
);
|
|
3366
|
+
}
|
|
3367
|
+
function remotePackageRequirements(projects) {
|
|
3368
|
+
const out = [];
|
|
3369
|
+
for (const project of projects) {
|
|
3370
|
+
for (const id of list(project.project.packageReferences)) {
|
|
3371
|
+
const reference = project.object(id);
|
|
3372
|
+
if (reference?.isa !== "XCRemoteSwiftPackageReference") continue;
|
|
3373
|
+
const url = str(reference.repositoryURL);
|
|
3374
|
+
if (!url) continue;
|
|
3375
|
+
const requirement = reference.requirement;
|
|
3376
|
+
if (!isDict(requirement)) throw new Error(`${url} has no version requirement`);
|
|
3377
|
+
out.push({ url, requirement: versionRequirement(url, requirement) });
|
|
3378
|
+
}
|
|
3379
|
+
}
|
|
3380
|
+
return out;
|
|
3381
|
+
}
|
|
2640
3382
|
var loaded = /* @__PURE__ */ new Map();
|
|
2641
3383
|
function xcodeProjectFile(xcodeproj) {
|
|
2642
3384
|
for (const name of ["project.pbxproj", "project.xcproj"]) {
|
|
2643
|
-
const file =
|
|
2644
|
-
if (
|
|
3385
|
+
const file = import_node_path6.default.join(xcodeproj, name);
|
|
3386
|
+
if (import_node_fs4.default.existsSync(file)) return file;
|
|
2645
3387
|
}
|
|
2646
3388
|
return null;
|
|
2647
3389
|
}
|
|
@@ -2649,8 +3391,8 @@ function loadProject(xcodeproj) {
|
|
|
2649
3391
|
const projectFile = xcodeProjectFile(xcodeproj);
|
|
2650
3392
|
if (!projectFile)
|
|
2651
3393
|
throw new Error(`${xcodeproj} has no project.pbxproj or project.xcproj`);
|
|
2652
|
-
const source =
|
|
2653
|
-
const digest = (0,
|
|
3394
|
+
const source = import_node_fs4.default.readFileSync(projectFile, "utf8");
|
|
3395
|
+
const digest = (0, import_node_crypto2.createHash)("sha256").update(source).digest("hex");
|
|
2654
3396
|
const cached = loaded.get(projectFile);
|
|
2655
3397
|
if (cached?.digest === digest) return cached.project;
|
|
2656
3398
|
const root = projectFile.endsWith(".xcproj") ? readXcodeJsonProject(xcodeproj, source) : parseOpenStepPlist(source);
|
|
@@ -2666,10 +3408,10 @@ function loadProject(xcodeproj) {
|
|
|
2666
3408
|
if (!project || project.isa !== "PBXProject") {
|
|
2667
3409
|
throw new Error(`${projectFile} has no PBXProject root`);
|
|
2668
3410
|
}
|
|
2669
|
-
const projectDir =
|
|
2670
|
-
|
|
3411
|
+
const projectDir = import_node_fs4.default.realpathSync(
|
|
3412
|
+
import_node_path6.default.resolve(import_node_path6.default.dirname(xcodeproj), str(project.projectDirPath) ?? "")
|
|
2671
3413
|
);
|
|
2672
|
-
const resolvePath = xcodePathResolver(objects, projectDir,
|
|
3414
|
+
const resolvePath = xcodePathResolver(objects, projectDir, import_node_path6.default.join);
|
|
2673
3415
|
const result = {
|
|
2674
3416
|
xcodeproj,
|
|
2675
3417
|
projectFile,
|
|
@@ -2703,8 +3445,8 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
|
|
|
2703
3445
|
const relative = str(config.baseConfigurationReferenceRelativePath);
|
|
2704
3446
|
const own = isDict(config.buildSettings) ? config.buildSettings : {};
|
|
2705
3447
|
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 || !
|
|
3448
|
+
const baseFile = base ? project.resolvePath(base) : directory && relative ? import_node_path6.default.resolve(directory, relative) : null;
|
|
3449
|
+
if (options.requireSources !== false && (base || anchor || relative) && (!baseFile || !import_node_fs4.default.existsSync(baseFile)))
|
|
2708
3450
|
throw new Error(
|
|
2709
3451
|
`Unable to open base configuration reference file '${baseFile ?? base ?? relative ?? anchor}'`
|
|
2710
3452
|
);
|
|
@@ -2760,7 +3502,7 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
|
|
|
2760
3502
|
const derived = (key) => {
|
|
2761
3503
|
if (key === "AppIdentifierPrefix" || key === "TeamIdentifierPrefix")
|
|
2762
3504
|
return teamPrefix();
|
|
2763
|
-
return Object.hasOwn(derivedSettings, key) ? derivedSettings[key]() : process.env[key] ?? "";
|
|
3505
|
+
return Object.hasOwn(derivedSettings, key) ? derivedSettings[key]() : options.environment?.[key] ?? process.env[key] ?? "";
|
|
2764
3506
|
};
|
|
2765
3507
|
return {
|
|
2766
3508
|
get,
|
|
@@ -2782,27 +3524,27 @@ function settingList(value) {
|
|
|
2782
3524
|
);
|
|
2783
3525
|
return items2;
|
|
2784
3526
|
}
|
|
2785
|
-
function expandSearchPath(directory,
|
|
2786
|
-
if (
|
|
3527
|
+
function expandSearchPath(directory, rules2) {
|
|
3528
|
+
if (import_node_path6.default.basename(directory) !== "**") return [directory];
|
|
2787
3529
|
const expanded = [];
|
|
2788
3530
|
const seen = /* @__PURE__ */ new Set();
|
|
2789
|
-
const queue = [
|
|
3531
|
+
const queue = [import_node_path6.default.dirname(directory)];
|
|
2790
3532
|
for (let at = 0; at < queue.length; at++) {
|
|
2791
3533
|
const current = queue[at];
|
|
2792
3534
|
let real;
|
|
2793
3535
|
try {
|
|
2794
|
-
real =
|
|
3536
|
+
real = import_node_fs4.default.realpathSync(current);
|
|
2795
3537
|
} catch {
|
|
2796
3538
|
continue;
|
|
2797
3539
|
}
|
|
2798
|
-
if (!
|
|
3540
|
+
if (!import_node_fs4.default.statSync(real).isDirectory() || seen.has(real)) continue;
|
|
2799
3541
|
seen.add(real);
|
|
2800
3542
|
expanded.push(current);
|
|
2801
|
-
for (const entry of
|
|
2802
|
-
if (entry.isSymbolicLink() ? !
|
|
2803
|
-
if (
|
|
3543
|
+
for (const entry of import_node_fs4.default.readdirSync(real, { withFileTypes: true }).sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0)) {
|
|
3544
|
+
if (entry.isSymbolicLink() ? !rules2.followLinks : !entry.isDirectory()) continue;
|
|
3545
|
+
if (rules2.excluded.some((pattern) => pattern.test(entry.name)) && !rules2.included.some((pattern) => pattern.test(entry.name)))
|
|
2804
3546
|
continue;
|
|
2805
|
-
queue.push(
|
|
3547
|
+
queue.push(import_node_path6.default.join(current, entry.name));
|
|
2806
3548
|
}
|
|
2807
3549
|
}
|
|
2808
3550
|
return expanded;
|
|
@@ -2844,8 +3586,54 @@ function expand(value, lookup) {
|
|
|
2844
3586
|
);
|
|
2845
3587
|
}
|
|
2846
3588
|
var preparedSourcePhases = /* @__PURE__ */ new Map();
|
|
3589
|
+
function shellCopies(script, settings, projectDir) {
|
|
3590
|
+
const assigned = /* @__PURE__ */ new Map();
|
|
3591
|
+
const copies = [];
|
|
3592
|
+
let resolved = true;
|
|
3593
|
+
const lookup = (name) => {
|
|
3594
|
+
const value = assigned.get(name) ?? settings(name);
|
|
3595
|
+
if (value === "") resolved = false;
|
|
3596
|
+
return value;
|
|
3597
|
+
};
|
|
3598
|
+
const word = (token2) => {
|
|
3599
|
+
if (/\$\{[A-Za-z_][A-Za-z0-9_]*(?::?[-+=?]|[#%/^,])/.test(token2)) return null;
|
|
3600
|
+
resolved = true;
|
|
3601
|
+
const quote = token2[0];
|
|
3602
|
+
const value = quote === "'" ? token2.slice(1, -1) : expand(quote === '"' ? token2.slice(1, -1) : token2, lookup);
|
|
3603
|
+
return resolved && !value.includes("$") ? value : null;
|
|
3604
|
+
};
|
|
3605
|
+
const token = /^(?:"[^"\\`]*"|'[^']*'|[^\s"'`;&|<>()\\]+)$/;
|
|
3606
|
+
for (const raw of script.split(/\r?\n/)) {
|
|
3607
|
+
const line = raw.trim().replace(/^export\s+/, "");
|
|
3608
|
+
if (line === "" || line.startsWith("#") || /^set\s+-[A-Za-z]+(\s+\w+)?$/.test(line))
|
|
3609
|
+
continue;
|
|
3610
|
+
const tokens = line.match(/"[^"]*"|'[^']*'|\S+/g) ?? [];
|
|
3611
|
+
if (!tokens.every(
|
|
3612
|
+
(value, index) => token.test(index === 0 ? value.replace(/^[A-Za-z_][A-Za-z0-9_]*=/, "") : value)
|
|
3613
|
+
))
|
|
3614
|
+
return [];
|
|
3615
|
+
const assignment = /^([A-Za-z_][A-Za-z0-9_]*)=(.*)$/.exec(line);
|
|
3616
|
+
if (assignment) {
|
|
3617
|
+
const value = tokens.length === 1 ? word(assignment[2]) : null;
|
|
3618
|
+
if (value === null) return [];
|
|
3619
|
+
assigned.set(assignment[1], value);
|
|
3620
|
+
continue;
|
|
3621
|
+
}
|
|
3622
|
+
if (tokens[0] !== "cp" && tokens[0] !== "echo") return [];
|
|
3623
|
+
const operands = tokens.slice(1).map(word);
|
|
3624
|
+
if (operands.includes(null)) return [];
|
|
3625
|
+
if (tokens[0] === "echo") continue;
|
|
3626
|
+
if (operands.length !== 2 || operands.some((operand) => operand.startsWith("-")))
|
|
3627
|
+
return [];
|
|
3628
|
+
copies.push({
|
|
3629
|
+
from: import_node_path6.default.resolve(projectDir, operands[0]),
|
|
3630
|
+
to: import_node_path6.default.resolve(projectDir, operands[1])
|
|
3631
|
+
});
|
|
3632
|
+
}
|
|
3633
|
+
return copies;
|
|
3634
|
+
}
|
|
2847
3635
|
function fileListEntries(file, absolute) {
|
|
2848
|
-
return
|
|
3636
|
+
return import_node_fs4.default.readFileSync(file, "utf8").split(/\r?\n/).map((line) => line.trim()).filter((line) => line !== "" && !line.startsWith("#")).map(absolute);
|
|
2849
3637
|
}
|
|
2850
3638
|
function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
2851
3639
|
const { project, target, id: targetId } = ref;
|
|
@@ -2855,14 +3643,19 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
2855
3643
|
const headers = /* @__PURE__ */ new Set();
|
|
2856
3644
|
const resources = /* @__PURE__ */ new Set();
|
|
2857
3645
|
const scriptForOutput = /* @__PURE__ */ new Map();
|
|
3646
|
+
const copiedFiles = [];
|
|
3647
|
+
let generatedInfoPlist = false;
|
|
2858
3648
|
const declaredInfoPlist = settings("INFOPLIST_FILE");
|
|
2859
|
-
const infoPlistOutput = declaredInfoPlist ?
|
|
3649
|
+
const infoPlistOutput = declaredInfoPlist ? import_node_path6.default.resolve(project.projectDir, declaredInfoPlist) : null;
|
|
2860
3650
|
const isPreparedOutput = (file) => file === infoPlistOutput || options.requireSources !== false && file.endsWith(".swift");
|
|
2861
3651
|
for (const phaseId of list(target.buildPhases)) {
|
|
2862
3652
|
const phase = project.object(phaseId);
|
|
2863
3653
|
if (phase?.isa !== "PBXShellScriptBuildPhase") continue;
|
|
2864
3654
|
const script = str(phase.name) ?? phaseId;
|
|
2865
|
-
|
|
3655
|
+
copiedFiles.push(
|
|
3656
|
+
...shellCopies(str(phase.shellScript) ?? "", settings, project.projectDir)
|
|
3657
|
+
);
|
|
3658
|
+
const absolute = (raw) => import_node_path6.default.resolve(project.projectDir, expand(raw, settings));
|
|
2866
3659
|
const inputs = list(phase.inputPaths).map(absolute);
|
|
2867
3660
|
const outputs = list(phase.outputPaths).map(absolute);
|
|
2868
3661
|
const fileLists = /* @__PURE__ */ new Map();
|
|
@@ -2871,7 +3664,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
2871
3664
|
kind === "INPUT" ? phase.inputFileListPaths : phase.outputFileListPaths
|
|
2872
3665
|
).map((raw) => {
|
|
2873
3666
|
const file = absolute(raw);
|
|
2874
|
-
if (!
|
|
3667
|
+
if (!import_node_fs4.default.existsSync(file)) {
|
|
2875
3668
|
return { file, entries: [] };
|
|
2876
3669
|
}
|
|
2877
3670
|
return { file, entries: fileListEntries(file, absolute) };
|
|
@@ -2882,6 +3675,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
2882
3675
|
...outputs,
|
|
2883
3676
|
...fileLists.get("OUTPUT").flatMap((item) => item.entries)
|
|
2884
3677
|
];
|
|
3678
|
+
if (allOutputs.includes(infoPlistOutput)) generatedInfoPlist = true;
|
|
2885
3679
|
for (const output of allOutputs)
|
|
2886
3680
|
if (output.endsWith(".swift") && !scriptForOutput.has(output))
|
|
2887
3681
|
scriptForOutput.set(output, script);
|
|
@@ -2891,13 +3685,13 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
2891
3685
|
...fileLists.get("OUTPUT").map((item) => item.file)
|
|
2892
3686
|
];
|
|
2893
3687
|
if (allOutputs.some((file) => file.endsWith(".swift") || file === infoPlistOutput)) {
|
|
2894
|
-
for (const file of inputFiles) if (
|
|
3688
|
+
for (const file of inputFiles) if (import_node_fs4.default.existsSync(file)) projectInputs.add(file);
|
|
2895
3689
|
}
|
|
2896
|
-
if (options.prepareGeneratedSources && allOutputs.some(isPreparedOutput)) {
|
|
2897
|
-
const phaseDir =
|
|
3690
|
+
if (options.prepareGeneratedSources === true && allOutputs.some(isPreparedOutput)) {
|
|
3691
|
+
const phaseDir = import_node_path6.default.join(settings("TARGET_TEMP_DIR"), `Script-${phaseId}`);
|
|
2898
3692
|
for (const lists of fileLists.values())
|
|
2899
3693
|
for (const { file } of lists)
|
|
2900
|
-
if (!
|
|
3694
|
+
if (!import_node_fs4.default.existsSync(file))
|
|
2901
3695
|
throw new Error(
|
|
2902
3696
|
`${targetName}: Run Script "${script}" missing file list ${file}`
|
|
2903
3697
|
);
|
|
@@ -2916,48 +3710,48 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
2916
3710
|
const lists = fileLists.get(kind);
|
|
2917
3711
|
env[`SCRIPT_${kind}_FILE_LIST_COUNT`] = String(lists.length);
|
|
2918
3712
|
lists.forEach((_item, index) => {
|
|
2919
|
-
env[`SCRIPT_${kind}_FILE_LIST_${index}`] =
|
|
3713
|
+
env[`SCRIPT_${kind}_FILE_LIST_${index}`] = import_node_path6.default.join(
|
|
2920
3714
|
phaseDir,
|
|
2921
3715
|
`${kind}-${index}.xcfilelist`
|
|
2922
3716
|
);
|
|
2923
3717
|
});
|
|
2924
3718
|
}
|
|
2925
|
-
const signature = (0,
|
|
3719
|
+
const signature = (0, import_node_crypto2.createHash)("sha256").update(
|
|
2926
3720
|
JSON.stringify([phase, [...settingKeys].map((key2) => [key2, settings(key2)])])
|
|
2927
3721
|
);
|
|
2928
3722
|
for (const file of inputFiles) {
|
|
2929
3723
|
signature.update(file);
|
|
2930
|
-
if (
|
|
2931
|
-
const stat =
|
|
3724
|
+
if (import_node_fs4.default.existsSync(file)) {
|
|
3725
|
+
const stat = import_node_fs4.default.statSync(file);
|
|
2932
3726
|
signature.update(`${stat.mtimeMs}:${stat.ctimeMs}:${stat.size}`);
|
|
2933
3727
|
} else signature.update("missing");
|
|
2934
3728
|
}
|
|
2935
3729
|
const stamp = signature.digest("hex");
|
|
2936
3730
|
const key = `${project.projectFile}:${targetId}:${phaseId}:${settings("CONFIGURATION")}`;
|
|
2937
|
-
if (preparedSourcePhases.get(key) === stamp && allOutputs.every((file) =>
|
|
3731
|
+
if (preparedSourcePhases.get(key) === stamp && allOutputs.every((file) => import_node_fs4.default.existsSync(file)))
|
|
2938
3732
|
continue;
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
3733
|
+
import_node_fs4.default.mkdirSync(phaseDir, { recursive: true });
|
|
3734
|
+
import_node_fs4.default.mkdirSync(settings("BUILT_PRODUCTS_DIR"), { recursive: true });
|
|
3735
|
+
import_node_fs4.default.mkdirSync(settings("DERIVED_FILE_DIR"), { recursive: true });
|
|
2942
3736
|
for (const output of allOutputs)
|
|
2943
|
-
|
|
3737
|
+
import_node_fs4.default.mkdirSync(import_node_path6.default.dirname(output), { recursive: true });
|
|
2944
3738
|
for (const [kind, lists] of fileLists)
|
|
2945
3739
|
lists.forEach((item, index) => {
|
|
2946
|
-
|
|
3740
|
+
import_node_fs4.default.writeFileSync(
|
|
2947
3741
|
env[`SCRIPT_${kind}_FILE_LIST_${index}`],
|
|
2948
3742
|
`${item.entries.join("\n")}
|
|
2949
3743
|
`
|
|
2950
3744
|
);
|
|
2951
3745
|
});
|
|
2952
3746
|
try {
|
|
2953
|
-
(0,
|
|
3747
|
+
(0, import_node_child_process2.execFileSync)(
|
|
2954
3748
|
str(phase.shellPath) ?? "/bin/sh",
|
|
2955
3749
|
["-c", str(phase.shellScript) ?? ""],
|
|
2956
3750
|
{
|
|
2957
3751
|
cwd: project.projectDir,
|
|
2958
3752
|
env,
|
|
2959
3753
|
stdio: ["ignore", "pipe", "pipe"],
|
|
2960
|
-
|
|
3754
|
+
maxBuffer: Infinity
|
|
2961
3755
|
}
|
|
2962
3756
|
);
|
|
2963
3757
|
} catch (error) {
|
|
@@ -2969,7 +3763,7 @@ ${output}`
|
|
|
2969
3763
|
);
|
|
2970
3764
|
}
|
|
2971
3765
|
const missing = allOutputs.filter(
|
|
2972
|
-
(file) =>
|
|
3766
|
+
(file) => file === infoPlistOutput && !import_node_fs4.default.existsSync(file)
|
|
2973
3767
|
);
|
|
2974
3768
|
if (missing.length > 0)
|
|
2975
3769
|
throw new Error(
|
|
@@ -2982,8 +3776,8 @@ ${output}`
|
|
|
2982
3776
|
project.objects,
|
|
2983
3777
|
targetId,
|
|
2984
3778
|
project.resolvePath,
|
|
2985
|
-
(file) => isDirectory(file) ? walkFiles(file) :
|
|
2986
|
-
|
|
3779
|
+
(file) => isDirectory(file) ? walkFiles(file) : import_node_fs4.default.existsSync(file) ? [file] : [],
|
|
3780
|
+
import_node_path6.default.join,
|
|
2987
3781
|
(file, kind) => {
|
|
2988
3782
|
if (kind === "header") {
|
|
2989
3783
|
headers.add(file);
|
|
@@ -2993,9 +3787,9 @@ ${output}`
|
|
|
2993
3787
|
resources.add(file);
|
|
2994
3788
|
return;
|
|
2995
3789
|
}
|
|
2996
|
-
if (!
|
|
3790
|
+
if (!import_node_fs4.default.existsSync(file)) {
|
|
2997
3791
|
if (options.requireSources === false) return;
|
|
2998
|
-
const script = scriptForOutput.get(
|
|
3792
|
+
const script = scriptForOutput.get(import_node_path6.default.normalize(file));
|
|
2999
3793
|
throw new Error(
|
|
3000
3794
|
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}`
|
|
3001
3795
|
);
|
|
@@ -3004,20 +3798,19 @@ ${output}`
|
|
|
3004
3798
|
if (file.endsWith(".swift")) sources.add(file);
|
|
3005
3799
|
}
|
|
3006
3800
|
);
|
|
3007
|
-
for (const [file
|
|
3801
|
+
for (const [file] of scriptForOutput) {
|
|
3008
3802
|
if (sources.has(file) || allSources.has(file)) continue;
|
|
3009
|
-
if (!
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
}
|
|
3015
|
-
allSources.add(file);
|
|
3016
|
-
sources.add(file);
|
|
3803
|
+
if (!import_node_fs4.default.existsSync(file)) continue;
|
|
3804
|
+
const canonical = import_node_fs4.default.realpathSync(file);
|
|
3805
|
+
if (sources.has(canonical) || allSources.has(canonical)) continue;
|
|
3806
|
+
allSources.add(canonical);
|
|
3807
|
+
sources.add(canonical);
|
|
3017
3808
|
}
|
|
3018
3809
|
return {
|
|
3019
3810
|
sources: [...sources].sort(),
|
|
3020
3811
|
resources: [...resources].sort(),
|
|
3812
|
+
copiedFiles,
|
|
3813
|
+
generatedInfoPlist,
|
|
3021
3814
|
allSources: [...allSources].sort(),
|
|
3022
3815
|
headers: [...headers].sort()
|
|
3023
3816
|
};
|
|
@@ -3025,37 +3818,37 @@ ${output}`
|
|
|
3025
3818
|
function commonAncestor(dirs) {
|
|
3026
3819
|
let common = dirs[0];
|
|
3027
3820
|
for (const dir of dirs) {
|
|
3028
|
-
while (common !==
|
|
3029
|
-
common =
|
|
3821
|
+
while (common !== import_node_path6.default.dirname(common) && import_node_path6.default.relative(common, dir).startsWith(".."))
|
|
3822
|
+
common = import_node_path6.default.dirname(common);
|
|
3030
3823
|
}
|
|
3031
3824
|
return common;
|
|
3032
3825
|
}
|
|
3033
|
-
var isPodsProject = (xcodeproj) =>
|
|
3826
|
+
var isPodsProject = (xcodeproj) => import_node_path6.default.basename(xcodeproj) === "Pods.xcodeproj" && import_node_path6.default.basename(import_node_path6.default.dirname(xcodeproj)) === "Pods";
|
|
3034
3827
|
function installedPodsSandbox(pods) {
|
|
3035
|
-
const podfileLock =
|
|
3036
|
-
const manifestLock =
|
|
3037
|
-
if (!
|
|
3828
|
+
const podfileLock = import_node_path6.default.join(import_node_path6.default.dirname(pods), "Podfile.lock");
|
|
3829
|
+
const manifestLock = import_node_path6.default.join(pods, "Manifest.lock");
|
|
3830
|
+
if (!import_node_fs4.default.existsSync(podfileLock))
|
|
3038
3831
|
throw new Error(
|
|
3039
|
-
`${pods} has no ${podfileLock}: run \`pod install\` in ${
|
|
3832
|
+
`${pods} has no ${podfileLock}: run \`pod install\` in ${import_node_path6.default.dirname(pods)}`
|
|
3040
3833
|
);
|
|
3041
|
-
if (!
|
|
3834
|
+
if (!import_node_fs4.default.existsSync(manifestLock) || !import_node_fs4.default.readFileSync(manifestLock).equals(import_node_fs4.default.readFileSync(podfileLock)))
|
|
3042
3835
|
throw new Error(
|
|
3043
|
-
`The sandbox is not in sync with the Podfile.lock: ${manifestLock} differs from ${podfileLock}. Run \`pod install\` in ${
|
|
3836
|
+
`The sandbox is not in sync with the Podfile.lock: ${manifestLock} differs from ${podfileLock}. Run \`pod install\` in ${import_node_path6.default.dirname(pods)}`
|
|
3044
3837
|
);
|
|
3045
3838
|
const specChecksums = {};
|
|
3046
|
-
const lines =
|
|
3839
|
+
const lines = import_node_fs4.default.readFileSync(manifestLock, "utf8").split("\n");
|
|
3047
3840
|
const start = lines.indexOf("SPEC CHECKSUMS:");
|
|
3048
3841
|
for (const line of start === -1 ? [] : lines.slice(start + 1)) {
|
|
3049
3842
|
const entry = /^ {2}"?([^":]+)"?: ([0-9a-f]+)$/.exec(line);
|
|
3050
3843
|
if (!entry) break;
|
|
3051
3844
|
specChecksums[entry[1]] = entry[2];
|
|
3052
3845
|
}
|
|
3053
|
-
const specs =
|
|
3846
|
+
const specs = import_node_path6.default.join(pods, "Local Podspecs");
|
|
3054
3847
|
return {
|
|
3055
3848
|
podfileLock,
|
|
3056
3849
|
manifestLock,
|
|
3057
3850
|
specChecksums,
|
|
3058
|
-
localPodspecs: isDirectory(specs) ?
|
|
3851
|
+
localPodspecs: isDirectory(specs) ? import_node_fs4.default.readdirSync(specs).filter((name) => name.endsWith(".podspec.json")).sort().map((name) => import_node_path6.default.join(specs, name)) : []
|
|
3059
3852
|
};
|
|
3060
3853
|
}
|
|
3061
3854
|
function workspaceProjects(xcodeprojOrWorkspace, installedPods = false) {
|
|
@@ -3067,14 +3860,14 @@ function workspaceProjects(xcodeprojOrWorkspace, installedPods = false) {
|
|
|
3067
3860
|
if (!xcodeProjectFile(xcodeproj)) {
|
|
3068
3861
|
if (installedPods && isPodsProject(xcodeproj))
|
|
3069
3862
|
throw new Error(
|
|
3070
|
-
`${
|
|
3863
|
+
`${import_node_path6.default.basename(xcodeprojOrWorkspace)} builds ${xcodeproj}, which is not installed: run \`pod install\` in ${import_node_path6.default.dirname(import_node_path6.default.dirname(xcodeproj))}`
|
|
3071
3864
|
);
|
|
3072
3865
|
return;
|
|
3073
3866
|
}
|
|
3074
|
-
const key =
|
|
3075
|
-
if (projectAt.has(key) || !installedPods && key.split(
|
|
3867
|
+
const key = import_node_fs4.default.realpathSync(xcodeproj);
|
|
3868
|
+
if (projectAt.has(key) || !installedPods && key.split(import_node_path6.default.sep).includes("Pods"))
|
|
3076
3869
|
return;
|
|
3077
|
-
if (isPodsProject(key)) cocoapods = installedPodsSandbox(
|
|
3870
|
+
if (isPodsProject(key)) cocoapods = installedPodsSandbox(import_node_path6.default.dirname(key));
|
|
3078
3871
|
const project = loadProject(key);
|
|
3079
3872
|
projectAt.set(key, project);
|
|
3080
3873
|
projects.push(project);
|
|
@@ -3090,12 +3883,12 @@ function workspaceProjects(xcodeprojOrWorkspace, installedPods = false) {
|
|
|
3090
3883
|
for (const reference of listed)
|
|
3091
3884
|
if (reference.endsWith(".xcodeproj")) addProject(reference);
|
|
3092
3885
|
if (projects.length === 0) {
|
|
3093
|
-
throw new Error(`${
|
|
3886
|
+
throw new Error(`${import_node_path6.default.basename(xcodeprojOrWorkspace)} lists no Xcode project`);
|
|
3094
3887
|
}
|
|
3095
|
-
const podfile =
|
|
3096
|
-
if (installedPods && !cocoapods &&
|
|
3888
|
+
const podfile = import_node_path6.default.join(import_node_path6.default.dirname(xcodeprojOrWorkspace), "Podfile");
|
|
3889
|
+
if (installedPods && !cocoapods && import_node_fs4.default.existsSync(podfile))
|
|
3097
3890
|
throw new Error(
|
|
3098
|
-
`${podfile} is not installed into ${
|
|
3891
|
+
`${podfile} is not installed into ${import_node_path6.default.basename(xcodeprojOrWorkspace)}: run \`pod install\` in ${import_node_path6.default.dirname(podfile)} and open the workspace it writes`
|
|
3099
3892
|
);
|
|
3100
3893
|
return { listed, projects, projectAt, cocoapods };
|
|
3101
3894
|
}
|
|
@@ -3131,7 +3924,7 @@ function listXcodeAppTargets(xcodeprojOrWorkspace, options = {}) {
|
|
|
3131
3924
|
return workspaceProjects(xcodeprojOrWorkspace).projects.flatMap(projectTargets).filter((ref) => isIosAppTarget(ref, options)).map((ref) => str(ref.target.name) ?? ref.id);
|
|
3132
3925
|
}
|
|
3133
3926
|
function readXcodeAppTarget(input, targetName, configurationName, options = {}) {
|
|
3134
|
-
const xcodeprojOrWorkspace =
|
|
3927
|
+
const xcodeprojOrWorkspace = import_node_fs4.default.realpathSync(input);
|
|
3135
3928
|
const workspace = xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : null;
|
|
3136
3929
|
const { listed, projects, projectAt, cocoapods } = workspaceProjects(
|
|
3137
3930
|
xcodeprojOrWorkspace,
|
|
@@ -3140,7 +3933,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3140
3933
|
const allTargets = projects.flatMap(projectTargets);
|
|
3141
3934
|
const appTargets = allTargets.filter((ref) => isIosAppTarget(ref, options));
|
|
3142
3935
|
const appTargetNames = appTargets.map((ref) => str(ref.target.name) ?? ref.id);
|
|
3143
|
-
const container =
|
|
3936
|
+
const container = import_node_path6.default.basename(xcodeprojOrWorkspace);
|
|
3144
3937
|
const named = targetName ? appTargets.filter((ref) => ref.target.name === targetName) : appTargets;
|
|
3145
3938
|
if (named.length !== 1) {
|
|
3146
3939
|
throw new Error(
|
|
@@ -3153,15 +3946,15 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3153
3946
|
for (const ref of allTargets) {
|
|
3154
3947
|
const product = ref.project.object(str(ref.target.productReference));
|
|
3155
3948
|
const file = str(product?.path);
|
|
3156
|
-
if (file && !byProduct.has(
|
|
3157
|
-
byProduct.set(
|
|
3949
|
+
if (file && !byProduct.has(import_node_path6.default.basename(file)))
|
|
3950
|
+
byProduct.set(import_node_path6.default.basename(file), ref);
|
|
3158
3951
|
}
|
|
3159
3952
|
const proxied = (project, proxyId) => {
|
|
3160
3953
|
const proxy = project.object(proxyId);
|
|
3161
3954
|
if (proxy?.isa !== "PBXContainerItemProxy") return void 0;
|
|
3162
3955
|
const portal = str(proxy.containerPortal);
|
|
3163
3956
|
const portalPath = project.resolvePath(portal ?? "");
|
|
3164
|
-
const owner = project.object(portal)?.isa === "PBXProject" ? project : portalPath &&
|
|
3957
|
+
const owner = project.object(portal)?.isa === "PBXProject" ? project : portalPath && import_node_fs4.default.existsSync(portalPath) ? projectAt.get(import_node_fs4.default.realpathSync(portalPath)) : void 0;
|
|
3165
3958
|
const remote = str(proxy.remoteGlobalIDString);
|
|
3166
3959
|
if (!owner || !remote) return void 0;
|
|
3167
3960
|
return projectTargets(owner).find(
|
|
@@ -3182,12 +3975,12 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3182
3975
|
if (phase?.isa !== "PBXFrameworksBuildPhase") continue;
|
|
3183
3976
|
for (const buildFileId of list(phase.files)) {
|
|
3184
3977
|
const file = project.object(str(project.object(buildFileId)?.fileRef));
|
|
3185
|
-
const resolved = file?.isa === "PBXReferenceProxy" ? proxied(project, str(file.remoteRef)) : file && str(file.sourceTree) === "BUILT_PRODUCTS_DIR" ? byProduct.get(
|
|
3978
|
+
const resolved = file?.isa === "PBXReferenceProxy" ? proxied(project, str(file.remoteRef)) : file && str(file.sourceTree) === "BUILT_PRODUCTS_DIR" ? byProduct.get(import_node_path6.default.basename(str(file.path) ?? "")) : void 0;
|
|
3186
3979
|
if (resolved) found.push(resolved);
|
|
3187
3980
|
}
|
|
3188
3981
|
}
|
|
3189
3982
|
return found.filter(
|
|
3190
|
-
(candidate) => candidate.target.isa === "PBXAggregateTarget" || MODULE_PRODUCTS.has(str(candidate.target.productType) ?? "")
|
|
3983
|
+
(candidate) => candidate.target.isa === "PBXAggregateTarget" || candidate.target.productType === RESOURCE_BUNDLE || MODULE_PRODUCTS.has(str(candidate.target.productType) ?? "")
|
|
3191
3984
|
);
|
|
3192
3985
|
};
|
|
3193
3986
|
const order = [];
|
|
@@ -3221,6 +4014,25 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3221
4014
|
{ TARGET_NAME: str(ref.target.name) ?? ref.id },
|
|
3222
4015
|
options
|
|
3223
4016
|
).get("PRODUCT_NAME");
|
|
4017
|
+
const syncHeaderCache = /* @__PURE__ */ new Map();
|
|
4018
|
+
const synchronizedHeaders = (ref) => {
|
|
4019
|
+
const key = `${ref.project.xcodeproj}\0${ref.id}`;
|
|
4020
|
+
const cached = syncHeaderCache.get(key);
|
|
4021
|
+
if (cached) return cached;
|
|
4022
|
+
const found = [];
|
|
4023
|
+
visitXcodeTargetMembers(
|
|
4024
|
+
ref.project.objects,
|
|
4025
|
+
ref.id,
|
|
4026
|
+
ref.project.resolvePath,
|
|
4027
|
+
(file) => isDirectory(file) ? walkFiles(file) : import_node_fs4.default.existsSync(file) ? [file] : [],
|
|
4028
|
+
import_node_path6.default.join,
|
|
4029
|
+
(file, kind) => {
|
|
4030
|
+
if (kind === "header") found.push(file);
|
|
4031
|
+
}
|
|
4032
|
+
);
|
|
4033
|
+
syncHeaderCache.set(key, found);
|
|
4034
|
+
return found;
|
|
4035
|
+
};
|
|
3224
4036
|
const projectHeaderMaps = /* @__PURE__ */ new Map();
|
|
3225
4037
|
const projectHeaderMap = (project) => {
|
|
3226
4038
|
const cached = projectHeaderMaps.get(project);
|
|
@@ -3229,26 +4041,41 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3229
4041
|
for (const ref of projectTargets(project)) {
|
|
3230
4042
|
const product = productName(ref);
|
|
3231
4043
|
for (const { file, visibility } of headerPhase(ref)) {
|
|
3232
|
-
const name =
|
|
4044
|
+
const name = import_node_path6.default.basename(file);
|
|
3233
4045
|
if (!entries.has(name))
|
|
3234
4046
|
entries.set(name, visibility !== "Project" ? `${product}/${name}` : file);
|
|
3235
4047
|
}
|
|
4048
|
+
for (const file of synchronizedHeaders(ref)) {
|
|
4049
|
+
const name = import_node_path6.default.basename(file);
|
|
4050
|
+
if (!entries.has(name)) entries.set(name, file);
|
|
4051
|
+
}
|
|
4052
|
+
}
|
|
4053
|
+
for (const ref of projectTargets(project)) {
|
|
4054
|
+
for (const groupId of list(ref.target.fileSystemSynchronizedGroups)) {
|
|
4055
|
+
const folder = project.resolvePath(groupId);
|
|
4056
|
+
if (folder === null) continue;
|
|
4057
|
+
for (const file of walkFiles(folder)) {
|
|
4058
|
+
if (!HEADER_FILE.test(file)) continue;
|
|
4059
|
+
const name = import_node_path6.default.basename(file);
|
|
4060
|
+
if (!entries.has(name)) entries.set(name, file);
|
|
4061
|
+
}
|
|
4062
|
+
}
|
|
3236
4063
|
}
|
|
3237
4064
|
for (const id of Object.keys(project.objects)) {
|
|
3238
4065
|
if (project.object(id)?.isa !== "PBXFileReference") continue;
|
|
3239
4066
|
const file = project.resolvePath(id);
|
|
3240
|
-
if (file && HEADER_FILE.test(file) && !entries.has(
|
|
3241
|
-
entries.set(
|
|
4067
|
+
if (file && HEADER_FILE.test(file) && !entries.has(import_node_path6.default.basename(file)))
|
|
4068
|
+
entries.set(import_node_path6.default.basename(file), file);
|
|
3242
4069
|
}
|
|
3243
4070
|
const map = [...entries];
|
|
3244
4071
|
projectHeaderMaps.set(project, map);
|
|
3245
4072
|
return map;
|
|
3246
4073
|
};
|
|
3247
4074
|
const xcconfigs = /* @__PURE__ */ new Set();
|
|
3248
|
-
const buildDir = (project) =>
|
|
4075
|
+
const buildDir = (project) => import_node_path6.default.join(project.projectDir, ".build/peach-xcode/Build");
|
|
3249
4076
|
const podsBuild = {
|
|
3250
|
-
SYMROOT:
|
|
3251
|
-
OBJROOT:
|
|
4077
|
+
SYMROOT: import_node_path6.default.join(buildDir(app.project), "Products"),
|
|
4078
|
+
OBJROOT: import_node_path6.default.join(buildDir(app.project), "Intermediates.noindex")
|
|
3252
4079
|
};
|
|
3253
4080
|
const moduleTarget = (ref) => {
|
|
3254
4081
|
const name = str(ref.target.name) ?? ref.id;
|
|
@@ -3263,18 +4090,19 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3263
4090
|
TARGET_NAME: name,
|
|
3264
4091
|
TARGETNAME: "$(TARGET_NAME)",
|
|
3265
4092
|
PROJECT: "$(PROJECT_NAME)",
|
|
3266
|
-
PROJECT_NAME:
|
|
4093
|
+
PROJECT_NAME: import_node_path6.default.basename(ref.project.xcodeproj, ".xcodeproj"),
|
|
3267
4094
|
PROJECT_FILE_PATH: ref.project.xcodeproj,
|
|
3268
4095
|
SRCROOT: ref.project.projectDir,
|
|
3269
4096
|
SOURCE_ROOT: ref.project.projectDir,
|
|
3270
4097
|
PROJECT_DIR: ref.project.projectDir,
|
|
3271
|
-
SYMROOT:
|
|
4098
|
+
SYMROOT: import_node_path6.default.join(buildDir(ref.project), "Products"),
|
|
3272
4099
|
BUILD_DIR: "$(SYMROOT)",
|
|
3273
4100
|
BUILD_ROOT: "$(SYMROOT)",
|
|
3274
|
-
OBJROOT:
|
|
4101
|
+
OBJROOT: import_node_path6.default.join(buildDir(ref.project), "Intermediates.noindex"),
|
|
3275
4102
|
CONFIGURATION_BUILD_DIR: "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)",
|
|
3276
4103
|
BUILT_PRODUCTS_DIR: "$(CONFIGURATION_BUILD_DIR)",
|
|
3277
4104
|
TARGET_BUILD_DIR: "$(CONFIGURATION_BUILD_DIR)",
|
|
4105
|
+
UNLOCALIZED_RESOURCES_FOLDER_PATH: str(ref.project.object(str(ref.target.productReference))?.path) ?? "",
|
|
3278
4106
|
PROJECT_TEMP_DIR: "$(OBJROOT)/$(PROJECT_NAME).build",
|
|
3279
4107
|
CONFIGURATION_TEMP_DIR: "$(PROJECT_TEMP_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)",
|
|
3280
4108
|
TARGET_TEMP_DIR: "$(CONFIGURATION_TEMP_DIR)/$(TARGET_NAME).build",
|
|
@@ -3282,8 +4110,14 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3282
4110
|
TEMP_FILES_DIR: "$(TEMP_DIR)",
|
|
3283
4111
|
TEMP_FILE_DIR: "$(TEMP_DIR)",
|
|
3284
4112
|
TEMP_ROOT: "$(OBJROOT)",
|
|
4113
|
+
OBJECT_FILE_DIR: "$(TARGET_TEMP_DIR)/Objects",
|
|
4114
|
+
// the per-variant object directory carries no arch: xcode defines
|
|
4115
|
+
// OBJECT_FILE_DIR_normal as OBJECT_FILE_DIR-normal, and the target
|
|
4116
|
+
// appends $(CURRENT_ARCH) itself for the per-arch directory.
|
|
4117
|
+
OBJECT_FILE_DIR_normal: "$(OBJECT_FILE_DIR)-normal",
|
|
3285
4118
|
DERIVED_FILE_DIR: "$(TARGET_TEMP_DIR)/DerivedSources",
|
|
3286
4119
|
DERIVED_FILES_DIR: "$(DERIVED_FILE_DIR)",
|
|
4120
|
+
DERIVED_SOURCES_DIR: "$(DERIVED_FILE_DIR)",
|
|
3287
4121
|
PLATFORM_NAME: "iphonesimulator",
|
|
3288
4122
|
EFFECTIVE_PLATFORM_NAME: "-iphonesimulator",
|
|
3289
4123
|
CURRENT_ARCH: "arm64",
|
|
@@ -3304,11 +4138,38 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3304
4138
|
xcconfigs
|
|
3305
4139
|
);
|
|
3306
4140
|
const searchRules = recursiveSearchRules(settings2);
|
|
3307
|
-
const absolute = (file) =>
|
|
4141
|
+
const absolute = (file) => import_node_path6.default.resolve(ref.project.projectDir, file);
|
|
3308
4142
|
const framework = FRAMEWORK_PRODUCTS.has(str(ref.target.productType) ?? "");
|
|
3309
4143
|
const product = settings2("PRODUCT_NAME");
|
|
4144
|
+
const moduleName = applyOperator(settings2("PRODUCT_MODULE_NAME"), "c99extidentifier");
|
|
4145
|
+
const compatibilityPhases = list(ref.target.buildPhases).flatMap((id) => {
|
|
4146
|
+
const phase = ref.project.object(id);
|
|
4147
|
+
if (phase?.isa !== "PBXShellScriptBuildPhase" || str(phase.name) !== "Copy generated compatibility header")
|
|
4148
|
+
return [];
|
|
4149
|
+
const inputs = list(phase.inputPaths).map(
|
|
4150
|
+
(file) => absolute(expand(file, settings2))
|
|
4151
|
+
);
|
|
4152
|
+
const outputs = list(phase.outputPaths).map(
|
|
4153
|
+
(file) => absolute(expand(file, settings2))
|
|
4154
|
+
);
|
|
4155
|
+
const moduleMap2 = inputs.find((file) => file.endsWith(".modulemap"));
|
|
4156
|
+
const umbrella = inputs.find((file) => file.endsWith("-umbrella.h"));
|
|
4157
|
+
const outputModuleMap = outputs.find((file) => file.endsWith(".modulemap"));
|
|
4158
|
+
const outputUmbrella = outputs.find((file) => file.endsWith("-umbrella.h"));
|
|
4159
|
+
const outputHeader = outputs.find((file) => file.endsWith(`/${moduleName}-Swift.h`));
|
|
4160
|
+
if (!moduleMap2 || !umbrella || !outputModuleMap || !outputUmbrella || !outputHeader)
|
|
4161
|
+
throw new Error(`${name}: incomplete CocoaPods Swift compatibility header phase`);
|
|
4162
|
+
return [{ id, moduleMap: moduleMap2, umbrella, outputModuleMap, outputUmbrella, outputHeader }];
|
|
4163
|
+
});
|
|
4164
|
+
if (compatibilityPhases.length > 1)
|
|
4165
|
+
throw new Error(`${name}: multiple CocoaPods Swift compatibility header phases`);
|
|
4166
|
+
const compatibility = compatibilityPhases[0];
|
|
4167
|
+
if (compatibility && members.sources.length === 0)
|
|
4168
|
+
throw new Error(
|
|
4169
|
+
`${name}: Swift compatibility header phase has no Swift producer sources`
|
|
4170
|
+
);
|
|
3310
4171
|
const building = options.prepareGeneratedSources && options.requireSources !== false;
|
|
3311
|
-
const versioning = building && allSources.length > 0 && settings2("VERSIONING_SYSTEM") === "apple-generic" ?
|
|
4172
|
+
const versioning = building && allSources.length > 0 && settings2("VERSIONING_SYSTEM") === "apple-generic" ? import_node_path6.default.join(settings2("DERIVED_FILE_DIR"), `${product}_vers.c`) : null;
|
|
3312
4173
|
if (versioning) {
|
|
3313
4174
|
const version = settings2("CURRENT_PROJECT_VERSION");
|
|
3314
4175
|
const custom = [
|
|
@@ -3321,7 +4182,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3321
4182
|
].filter((key) => settings2(key));
|
|
3322
4183
|
if (custom.length)
|
|
3323
4184
|
throw new Error(
|
|
3324
|
-
`${name}: Xcode generates ${
|
|
4185
|
+
`${name}: Xcode generates ${import_node_path6.default.basename(versioning)} with ${custom.join(", ")}; peach does not model VERSION_INFO_* overrides`
|
|
3325
4186
|
);
|
|
3326
4187
|
const symbol = product.replace(/^[^A-Za-z_]/, "_").replace(/[^A-Za-z0-9_]/g, "_");
|
|
3327
4188
|
const [major, minor] = version.split(".");
|
|
@@ -3334,9 +4195,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3334
4195
|
` const double ${symbol}VersionNumber __attribute__ ((used)) = (double)${number};`,
|
|
3335
4196
|
""
|
|
3336
4197
|
].join("\n");
|
|
3337
|
-
if (!
|
|
3338
|
-
|
|
3339
|
-
|
|
4198
|
+
if (!import_node_fs4.default.existsSync(versioning) || import_node_fs4.default.readFileSync(versioning, "utf8") !== unit) {
|
|
4199
|
+
import_node_fs4.default.mkdirSync(import_node_path6.default.dirname(versioning), { recursive: true });
|
|
4200
|
+
import_node_fs4.default.writeFileSync(versioning, unit);
|
|
3340
4201
|
}
|
|
3341
4202
|
allSources.push(versioning);
|
|
3342
4203
|
}
|
|
@@ -3355,29 +4216,61 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3355
4216
|
const headerFiles = headerPhase(ref);
|
|
3356
4217
|
const ownHeaders = /* @__PURE__ */ new Map();
|
|
3357
4218
|
for (const { file, visibility } of headerFiles) {
|
|
3358
|
-
const name2 =
|
|
4219
|
+
const name2 = import_node_path6.default.basename(file);
|
|
3359
4220
|
const published = visibility !== "Project";
|
|
3360
4221
|
if (!ownHeaders.has(name2))
|
|
3361
4222
|
ownHeaders.set(name2, published ? `${product}/${name2}` : file);
|
|
3362
4223
|
if (!published && !ownHeaders.has(`${product}/${name2}`))
|
|
3363
4224
|
ownHeaders.set(`${product}/${name2}`, file);
|
|
3364
4225
|
}
|
|
4226
|
+
for (const file of synchronizedHeaders(ref)) {
|
|
4227
|
+
const name2 = import_node_path6.default.basename(file);
|
|
4228
|
+
if (ownHeaders.has(name2)) continue;
|
|
4229
|
+
ownHeaders.set(name2, file);
|
|
4230
|
+
const qualified = `${product}/${name2}`;
|
|
4231
|
+
if (!ownHeaders.has(qualified)) ownHeaders.set(qualified, file);
|
|
4232
|
+
}
|
|
3365
4233
|
const nonFrameworkHeaders = /* @__PURE__ */ new Map();
|
|
3366
4234
|
for (const other of projectTargets(ref.project)) {
|
|
3367
4235
|
if (FRAMEWORK_PRODUCTS.has(str(other.target.productType) ?? "")) continue;
|
|
3368
4236
|
const otherProduct = productName(other);
|
|
3369
4237
|
for (const { file, visibility } of headerPhase(other)) {
|
|
3370
4238
|
if (visibility === "Project") continue;
|
|
3371
|
-
const key = `${otherProduct}/${
|
|
4239
|
+
const key = `${otherProduct}/${import_node_path6.default.basename(file)}`;
|
|
3372
4240
|
if (!nonFrameworkHeaders.has(key)) nonFrameworkHeaders.set(key, file);
|
|
3373
4241
|
}
|
|
3374
4242
|
}
|
|
3375
|
-
const wrapper =
|
|
4243
|
+
const wrapper = import_node_path6.default.join(settings2("BUILT_PRODUCTS_DIR"), `${product}.framework`);
|
|
3376
4244
|
const moduleMap = (settings2("DEFINES_MODULE") === "YES" || !framework) && settings2("MODULEMAP_FILE") ? absolute(settings2("MODULEMAP_FILE")) : null;
|
|
3377
|
-
const
|
|
4245
|
+
const frameworkUmbrella = !compatibility && framework && members.sources.length > 0 && moduleMap ? import_node_path6.default.join(import_node_path6.default.dirname(moduleMap), `${moduleName}-umbrella.h`) : null;
|
|
4246
|
+
const frameworkCompatibility = frameworkUmbrella && moduleMap && import_node_fs4.default.existsSync(moduleMap) && import_node_fs4.default.existsSync(frameworkUmbrella) ? {
|
|
4247
|
+
framework: true,
|
|
4248
|
+
moduleMap,
|
|
4249
|
+
umbrella: frameworkUmbrella,
|
|
4250
|
+
outputModuleMap: import_node_path6.default.join(wrapper, "Modules", "module.modulemap"),
|
|
4251
|
+
outputUmbrella: import_node_path6.default.join(
|
|
4252
|
+
wrapper,
|
|
4253
|
+
"Headers",
|
|
4254
|
+
import_node_path6.default.basename(frameworkUmbrella)
|
|
4255
|
+
),
|
|
4256
|
+
outputHeader: import_node_path6.default.join(
|
|
4257
|
+
wrapper,
|
|
4258
|
+
"Headers",
|
|
4259
|
+
settings2("SWIFT_OBJC_INTERFACE_HEADER_NAME") || `${moduleName}-Swift.h`
|
|
4260
|
+
)
|
|
4261
|
+
} : null;
|
|
4262
|
+
const swiftCompatibility = compatibility ? {
|
|
4263
|
+
framework: false,
|
|
4264
|
+
moduleMap: compatibility.moduleMap,
|
|
4265
|
+
umbrella: compatibility.umbrella,
|
|
4266
|
+
outputModuleMap: compatibility.outputModuleMap,
|
|
4267
|
+
outputUmbrella: compatibility.outputUmbrella,
|
|
4268
|
+
outputHeader: compatibility.outputHeader
|
|
4269
|
+
} : frameworkCompatibility;
|
|
4270
|
+
const podHeaders = !framework && isPodsProject(ref.project.xcodeproj) && moduleMap && import_node_path6.default.relative(import_node_path6.default.join(ref.project.projectDir, "Headers", "Public"), moduleMap).split(import_node_path6.default.sep)[0] !== ".." && import_node_fs4.default.existsSync(moduleMap) ? import_node_fs4.default.readdirSync(import_node_path6.default.dirname(moduleMap)).flatMap((entry) => {
|
|
3378
4271
|
if (!/\.(h|hh|hpp|hxx|modulemap)$/.test(entry)) return [];
|
|
3379
|
-
const file =
|
|
3380
|
-
return
|
|
4272
|
+
const file = import_node_path6.default.join(import_node_path6.default.dirname(moduleMap), entry);
|
|
4273
|
+
return import_node_fs4.default.existsSync(file) ? [file] : [];
|
|
3381
4274
|
}) : [];
|
|
3382
4275
|
const fileFlags = {};
|
|
3383
4276
|
for (const phaseId of list(ref.target.buildPhases)) {
|
|
@@ -3395,12 +4288,14 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3395
4288
|
);
|
|
3396
4289
|
}
|
|
3397
4290
|
}
|
|
4291
|
+
const cStandard = settings2("GCC_C_LANGUAGE_STANDARD");
|
|
4292
|
+
const cxxStandard = settings2("CLANG_CXX_LANGUAGE_STANDARD");
|
|
3398
4293
|
return {
|
|
3399
4294
|
settings: settings2,
|
|
3400
4295
|
keys,
|
|
3401
4296
|
module: {
|
|
3402
4297
|
name,
|
|
3403
|
-
moduleName
|
|
4298
|
+
moduleName,
|
|
3404
4299
|
...members,
|
|
3405
4300
|
allSources,
|
|
3406
4301
|
languageMode: swiftVersion >= 6 ? 6 : 5,
|
|
@@ -3415,6 +4310,14 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3415
4310
|
)
|
|
3416
4311
|
)
|
|
3417
4312
|
},
|
|
4313
|
+
packageProducts: Array(),
|
|
4314
|
+
...members.sources.length > 0 ? {
|
|
4315
|
+
swift: {
|
|
4316
|
+
flags: settingList(settings2("OTHER_SWIFT_FLAGS")),
|
|
4317
|
+
includePaths: settingList(settings2("SWIFT_INCLUDE_PATHS")).map(absolute),
|
|
4318
|
+
compatibility: swiftCompatibility
|
|
4319
|
+
}
|
|
4320
|
+
} : {},
|
|
3418
4321
|
...native ? {
|
|
3419
4322
|
objc: {
|
|
3420
4323
|
publicHeaders: [
|
|
@@ -3428,7 +4331,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3428
4331
|
...headers,
|
|
3429
4332
|
...Object.keys(ref.project.objects).flatMap((id) => {
|
|
3430
4333
|
const file = ref.project.resolvePath(id);
|
|
3431
|
-
return file && HEADER_FILE.test(file) &&
|
|
4334
|
+
return file && HEADER_FILE.test(file) && import_node_fs4.default.existsSync(file) ? [file] : [];
|
|
3432
4335
|
})
|
|
3433
4336
|
])
|
|
3434
4337
|
],
|
|
@@ -3437,15 +4340,15 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3437
4340
|
// xcode searches its products' include directory before
|
|
3438
4341
|
// HEADER_SEARCH_PATHS and the target's derived sources after.
|
|
3439
4342
|
headerSearchPaths: [
|
|
3440
|
-
|
|
4343
|
+
import_node_path6.default.join(settings2("BUILT_PRODUCTS_DIR"), "include"),
|
|
3441
4344
|
...settingList(settings2("HEADER_SEARCH_PATHS")).flatMap(
|
|
3442
4345
|
(raw) => expandSearchPath(absolute(raw), searchRules)
|
|
3443
4346
|
),
|
|
3444
|
-
|
|
4347
|
+
import_node_path6.default.join(
|
|
3445
4348
|
`${settings2("DERIVED_FILE_DIR")}-normal`,
|
|
3446
4349
|
settings2("CURRENT_ARCH")
|
|
3447
4350
|
),
|
|
3448
|
-
|
|
4351
|
+
import_node_path6.default.join(settings2("DERIVED_FILE_DIR"), settings2("CURRENT_ARCH")),
|
|
3449
4352
|
settings2("DERIVED_FILE_DIR")
|
|
3450
4353
|
],
|
|
3451
4354
|
userHeaderSearchPaths: settingList(
|
|
@@ -3462,14 +4365,18 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3462
4365
|
settings2("CLANG_ENABLE_OBJC_ARC") === "YES" ? "-fobjc-arc" : "-fno-objc-arc",
|
|
3463
4366
|
...settings2("CLANG_ENABLE_OBJC_WEAK") === "YES" ? ["-fobjc-weak"] : [],
|
|
3464
4367
|
...settings2("CLANG_ENABLE_MODULES") === "YES" ? ["-fmodules"] : [],
|
|
3465
|
-
...
|
|
4368
|
+
...cStandard && cStandard !== "compiler-default" ? [`-std=${cStandard}`] : [],
|
|
3466
4369
|
...settingList(settings2("GCC_PREPROCESSOR_DEFINITIONS")).map(
|
|
3467
4370
|
(value) => `-D${value}`
|
|
3468
4371
|
),
|
|
3469
4372
|
...settingList(settings2("OTHER_CFLAGS"))
|
|
3470
4373
|
],
|
|
3471
4374
|
cxxFlags: [
|
|
3472
|
-
...
|
|
4375
|
+
...cxxStandard && cxxStandard !== "compiler-default" ? [`-std=${CXX_STANDARD_ALIASES[cxxStandard] ?? cxxStandard}`] : [],
|
|
4376
|
+
// clang.xcspec's hidden CLANG_DISABLE_CXX_MODULES (default
|
|
4377
|
+
// YES) keeps c++ and objective-c++ units out of modules when
|
|
4378
|
+
// modules are on or the standard is c++20 or later.
|
|
4379
|
+
...settings2("CLANG_DISABLE_CXX_MODULES") !== "NO" && (settings2("CLANG_ENABLE_MODULES") === "YES" || !PRE_CXX20_STANDARDS.has(cxxStandard || "compiler-default")) ? ["-fno-cxx-modules"] : [],
|
|
3473
4380
|
...settingList(settings2("OTHER_CPLUSPLUSFLAGS"))
|
|
3474
4381
|
],
|
|
3475
4382
|
fileFlags,
|
|
@@ -3485,16 +4392,42 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3485
4392
|
...headerFiles.flatMap(
|
|
3486
4393
|
({ file, visibility }) => visibility === "Project" ? [] : [
|
|
3487
4394
|
[
|
|
3488
|
-
|
|
4395
|
+
import_node_path6.default.join(
|
|
3489
4396
|
wrapper,
|
|
3490
4397
|
visibility === "Public" ? "Headers" : "PrivateHeaders",
|
|
3491
|
-
|
|
4398
|
+
import_node_path6.default.basename(file)
|
|
3492
4399
|
),
|
|
3493
4400
|
file
|
|
3494
4401
|
]
|
|
3495
4402
|
]
|
|
3496
4403
|
),
|
|
3497
|
-
|
|
4404
|
+
// a copy files phase into the products directory, as
|
|
4405
|
+
// cocoapods writes for each header_mappings_dir folder.
|
|
4406
|
+
...list(ref.target.buildPhases).flatMap((phaseId) => {
|
|
4407
|
+
const phase = ref.project.object(phaseId);
|
|
4408
|
+
if (phase?.isa !== "PBXCopyFilesBuildPhase" || str(phase.dstSubfolderSpec) !== "16")
|
|
4409
|
+
return [];
|
|
4410
|
+
const destination = expand(
|
|
4411
|
+
str(phase.dstPath) ?? "",
|
|
4412
|
+
(name2) => name2 === "PUBLIC_HEADERS_FOLDER_PATH" ? import_node_path6.default.join(wrapper, "Headers") : name2 === "PRIVATE_HEADERS_FOLDER_PATH" ? import_node_path6.default.join(wrapper, "PrivateHeaders") : settings2(name2)
|
|
4413
|
+
);
|
|
4414
|
+
return list(phase.files).flatMap((id) => {
|
|
4415
|
+
const file = ref.project.resolvePath(
|
|
4416
|
+
str(ref.project.object(id)?.fileRef) ?? ""
|
|
4417
|
+
);
|
|
4418
|
+
return file && HEADER_FILE.test(file) ? [
|
|
4419
|
+
[
|
|
4420
|
+
import_node_path6.default.resolve(
|
|
4421
|
+
settings2("BUILT_PRODUCTS_DIR"),
|
|
4422
|
+
destination,
|
|
4423
|
+
import_node_path6.default.basename(file)
|
|
4424
|
+
),
|
|
4425
|
+
file
|
|
4426
|
+
]
|
|
4427
|
+
] : [];
|
|
4428
|
+
});
|
|
4429
|
+
}),
|
|
4430
|
+
...moduleMap ? [[import_node_path6.default.join(wrapper, "Modules", "module.modulemap"), moduleMap]] : []
|
|
3498
4431
|
]) : Object.fromEntries(podHeaders.map((file) => [file, file]))
|
|
3499
4432
|
}
|
|
3500
4433
|
} : {}
|
|
@@ -3503,28 +4436,94 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3503
4436
|
};
|
|
3504
4437
|
const builtTargets = order.map((ref) => ({ ref, ...moduleTarget(ref) }));
|
|
3505
4438
|
const { settings, keys: settingKeys, module: module2 } = builtTargets.at(-1);
|
|
3506
|
-
const frameworkTargets = builtTargets.slice(0, -1).filter(({ ref }) => ref.target.
|
|
4439
|
+
const frameworkTargets = builtTargets.slice(0, -1).filter(({ ref }) => MODULE_PRODUCTS.has(str(ref.target.productType) ?? "")).map(({ ref, module: module3 }) => ({ ref, framework: module3 }));
|
|
3507
4440
|
const frameworks = frameworkTargets.map(({ framework }) => framework);
|
|
3508
4441
|
const podSourceDirs = frameworkTargets.flatMap(
|
|
3509
|
-
({ ref, framework }) => isPodsProject(ref.project.xcodeproj) ? [...framework.allSources, ...framework.objc?.headers ?? []].map((file) =>
|
|
4442
|
+
({ ref, framework }) => isPodsProject(ref.project.xcodeproj) ? [...framework.allSources, ...framework.objc?.headers ?? []].map((file) => import_node_path6.default.dirname(file)).filter((dir) => import_node_fs4.default.existsSync(dir)) : []
|
|
3510
4443
|
);
|
|
3511
|
-
const expandValue = (value) => {
|
|
3512
|
-
if (typeof value === "string") return expand(value,
|
|
3513
|
-
if (Array.isArray(value)) return value.map(expandValue);
|
|
4444
|
+
const expandValue = (value, settings2) => {
|
|
4445
|
+
if (typeof value === "string") return expand(value, settings2);
|
|
4446
|
+
if (Array.isArray(value)) return value.map((item) => expandValue(item, settings2));
|
|
3514
4447
|
if (typeof value === "object" && !(value instanceof Date) && !Buffer.isBuffer(value)) {
|
|
3515
4448
|
return Object.fromEntries(
|
|
3516
|
-
Object.entries(value).map(([key, value2]) => [key, expandValue(value2)])
|
|
4449
|
+
Object.entries(value).map(([key, value2]) => [key, expandValue(value2, settings2)])
|
|
3517
4450
|
);
|
|
3518
4451
|
}
|
|
3519
4452
|
return value;
|
|
3520
4453
|
};
|
|
3521
|
-
const
|
|
3522
|
-
const
|
|
4454
|
+
const resourceProducts = [];
|
|
4455
|
+
const bundleTargets = builtTargets.filter(
|
|
4456
|
+
({ ref }) => ref.target.productType === RESOURCE_BUNDLE
|
|
4457
|
+
);
|
|
4458
|
+
for (const owner of options.installedPods ? builtTargets : []) {
|
|
4459
|
+
for (const phaseId of list(owner.ref.target.buildPhases)) {
|
|
4460
|
+
const phase = owner.ref.project.object(phaseId);
|
|
4461
|
+
if (phase?.isa !== "PBXShellScriptBuildPhase" || str(phase.name) !== "[CP] Copy Pods Resources")
|
|
4462
|
+
continue;
|
|
4463
|
+
const absolute = (raw) => import_node_path6.default.resolve(owner.ref.project.projectDir, expand(raw, owner.settings));
|
|
4464
|
+
const entries = (paths) => paths.flatMap((raw) => {
|
|
4465
|
+
const file = absolute(raw);
|
|
4466
|
+
xcconfigs.add(file);
|
|
4467
|
+
return fileListEntries(file, absolute);
|
|
4468
|
+
});
|
|
4469
|
+
const inputs = entries(list(phase.inputFileListPaths)).filter(
|
|
4470
|
+
(file) => file.endsWith(".bundle")
|
|
4471
|
+
);
|
|
4472
|
+
const outputs = entries(list(phase.outputFileListPaths)).filter(
|
|
4473
|
+
(file) => file.endsWith(".bundle")
|
|
4474
|
+
);
|
|
4475
|
+
if (inputs.length !== outputs.length)
|
|
4476
|
+
throw new Error(`${owner.module.name}: resource bundle copy lists differ`);
|
|
4477
|
+
const destinationRoot = import_node_path6.default.join(
|
|
4478
|
+
owner.settings("TARGET_BUILD_DIR"),
|
|
4479
|
+
owner.settings("UNLOCALIZED_RESOURCES_FOLDER_PATH")
|
|
4480
|
+
);
|
|
4481
|
+
for (const [index, input2] of inputs.entries()) {
|
|
4482
|
+
const product = bundleTargets.find((target) => {
|
|
4483
|
+
const file = str(
|
|
4484
|
+
target.ref.project.object(str(target.ref.target.productReference))?.path
|
|
4485
|
+
);
|
|
4486
|
+
return file && import_node_path6.default.join(target.settings("TARGET_BUILD_DIR"), file) === input2;
|
|
4487
|
+
});
|
|
4488
|
+
if (!product)
|
|
4489
|
+
throw new Error(
|
|
4490
|
+
`${owner.module.name}: resource bundle input has no selected producer: ${input2}`
|
|
4491
|
+
);
|
|
4492
|
+
const destination = import_node_path6.default.relative(destinationRoot, outputs[index]);
|
|
4493
|
+
if (destination === ".." || destination.startsWith(`..${import_node_path6.default.sep}`) || import_node_path6.default.isAbsolute(destination) || import_node_path6.default.basename(input2) !== import_node_path6.default.basename(destination))
|
|
4494
|
+
throw new Error(
|
|
4495
|
+
`${owner.module.name}: invalid resource bundle copy destination`
|
|
4496
|
+
);
|
|
4497
|
+
const infoFile = import_node_path6.default.resolve(
|
|
4498
|
+
product.ref.project.projectDir,
|
|
4499
|
+
product.settings("INFOPLIST_FILE")
|
|
4500
|
+
);
|
|
4501
|
+
xcconfigs.add(infoFile);
|
|
4502
|
+
const parsed = import_plist2.default.parse(import_node_fs4.default.readFileSync(infoFile, "utf8"));
|
|
4503
|
+
const infoPlist = import_plist2.default.build(expandValue(parsed, product.settings));
|
|
4504
|
+
const prefix = owner.ref === app ? "" : `Frameworks/${owner.module.moduleName}.framework/`;
|
|
4505
|
+
const bundlePath = prefix + destination.split(import_node_path6.default.sep).join("/");
|
|
4506
|
+
if (resourceProducts.some((resource) => resource.path === bundlePath))
|
|
4507
|
+
throw new Error(
|
|
4508
|
+
`${owner.module.name}: duplicate resource bundle destination ${bundlePath}`
|
|
4509
|
+
);
|
|
4510
|
+
resourceProducts.push({
|
|
4511
|
+
path: bundlePath,
|
|
4512
|
+
resources: product.module.resources,
|
|
4513
|
+
infoPlist
|
|
4514
|
+
});
|
|
4515
|
+
}
|
|
4516
|
+
}
|
|
4517
|
+
}
|
|
4518
|
+
const infoPlistFile = settings("INFOPLIST_FILE") ? import_node_path6.default.resolve(app.project.projectDir, settings("INFOPLIST_FILE")) : null;
|
|
4519
|
+
const infoPlistPending = module2.generatedInfoPlist && !options.prepareGeneratedSources;
|
|
4520
|
+
const sourceInfo = infoPlistFile && !infoPlistPending ? import_plist2.default.parse(import_node_fs4.default.readFileSync(infoPlistFile, "utf8")) : {};
|
|
3523
4521
|
if (!sourceInfo || typeof sourceInfo !== "object" || Array.isArray(sourceInfo) || sourceInfo instanceof Date || Buffer.isBuffer(sourceInfo)) {
|
|
3524
4522
|
throw new Error(`${module2.name} Info.plist must contain a dictionary`);
|
|
3525
4523
|
}
|
|
3526
4524
|
const info = {};
|
|
3527
|
-
for (const [key, value] of Object.entries(sourceInfo))
|
|
4525
|
+
for (const [key, value] of Object.entries(sourceInfo))
|
|
4526
|
+
info[key] = expandValue(value, settings);
|
|
3528
4527
|
for (const key of settingKeys) {
|
|
3529
4528
|
if (!key.startsWith("INFOPLIST_KEY_") || key.endsWith("_Generation")) continue;
|
|
3530
4529
|
const value = settings(key);
|
|
@@ -3547,7 +4546,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3547
4546
|
};
|
|
3548
4547
|
}
|
|
3549
4548
|
const localPackageDirs = [
|
|
3550
|
-
...listed.filter((reference) =>
|
|
4549
|
+
...listed.filter((reference) => import_node_fs4.default.existsSync(import_node_path6.default.join(reference, "Package.swift"))),
|
|
3551
4550
|
...projects.flatMap(
|
|
3552
4551
|
(project) => Object.entries(project.objects).flatMap(([id, entry]) => {
|
|
3553
4552
|
if (!isDict(entry)) return [];
|
|
@@ -3557,19 +4556,19 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3557
4556
|
const packages = [];
|
|
3558
4557
|
while (pending.length > 0) {
|
|
3559
4558
|
const dir = pending.pop();
|
|
3560
|
-
if (
|
|
4559
|
+
if (import_node_fs4.default.existsSync(import_node_path6.default.join(dir, "Package.swift"))) {
|
|
3561
4560
|
packages.push(dir);
|
|
3562
4561
|
continue;
|
|
3563
4562
|
}
|
|
3564
4563
|
if (!isDirectory(dir)) continue;
|
|
3565
|
-
for (const child of
|
|
4564
|
+
for (const child of import_node_fs4.default.readdirSync(dir, { withFileTypes: true }))
|
|
3566
4565
|
if (child.isDirectory() && !child.name.startsWith("."))
|
|
3567
|
-
pending.push(
|
|
4566
|
+
pending.push(import_node_path6.default.join(dir, child.name));
|
|
3568
4567
|
}
|
|
3569
4568
|
return packages;
|
|
3570
4569
|
}
|
|
3571
|
-
const candidate = entry.isa === "XCLocalSwiftPackageReference" ?
|
|
3572
|
-
return candidate &&
|
|
4570
|
+
const candidate = entry.isa === "XCLocalSwiftPackageReference" ? import_node_path6.default.resolve(project.projectDir, str(entry.relativePath) ?? "") : entry.isa === "PBXFileReference" ? project.resolvePath(id) : null;
|
|
4571
|
+
return candidate && import_node_fs4.default.existsSync(import_node_path6.default.join(candidate, "Package.swift")) ? [candidate] : [];
|
|
3573
4572
|
})
|
|
3574
4573
|
)
|
|
3575
4574
|
];
|
|
@@ -3590,12 +4589,12 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3590
4589
|
const linkedProductKeys = /* @__PURE__ */ new Set();
|
|
3591
4590
|
const binaryFrameworks = /* @__PURE__ */ new Map();
|
|
3592
4591
|
for (const { ref, settings: settings2 } of builtTargets) {
|
|
3593
|
-
const absolute = (raw) =>
|
|
4592
|
+
const absolute = (raw) => import_node_path6.default.resolve(ref.project.projectDir, expand(raw, settings2));
|
|
3594
4593
|
for (const raw of settingList(settings2("SWIFT_INCLUDE_PATHS"))) {
|
|
3595
4594
|
const dir = absolute(raw);
|
|
3596
|
-
const modulemap =
|
|
3597
|
-
if (!
|
|
3598
|
-
const name = moduleMapName(
|
|
4595
|
+
const modulemap = import_node_path6.default.join(dir, "module.modulemap");
|
|
4596
|
+
if (!import_node_fs4.default.existsSync(modulemap)) continue;
|
|
4597
|
+
const name = moduleMapName(import_node_fs4.default.readFileSync(modulemap, "utf8"));
|
|
3599
4598
|
if (name && !binaryFrameworks.has(name)) binaryFrameworks.set(name, dir);
|
|
3600
4599
|
}
|
|
3601
4600
|
for (const phaseId of list(ref.target.buildPhases)) {
|
|
@@ -3604,7 +4603,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3604
4603
|
const inputs = list(phase.inputPaths).map(absolute);
|
|
3605
4604
|
for (const raw of list(phase.inputFileListPaths)) {
|
|
3606
4605
|
const file = absolute(raw);
|
|
3607
|
-
if (!
|
|
4606
|
+
if (!import_node_fs4.default.existsSync(file)) continue;
|
|
3608
4607
|
xcconfigs.add(file);
|
|
3609
4608
|
inputs.push(...fileListEntries(file, absolute));
|
|
3610
4609
|
}
|
|
@@ -3614,10 +4613,12 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3614
4613
|
}
|
|
3615
4614
|
}
|
|
3616
4615
|
}
|
|
3617
|
-
|
|
4616
|
+
const productsByTarget = /* @__PURE__ */ new Map();
|
|
4617
|
+
for (const ref of order) {
|
|
4618
|
+
const { project, target } = ref;
|
|
3618
4619
|
const productRef = (id) => {
|
|
3619
|
-
const
|
|
3620
|
-
return
|
|
4620
|
+
const ref2 = str(project.object(id)?.productRef);
|
|
4621
|
+
return ref2 ? [ref2] : [];
|
|
3621
4622
|
};
|
|
3622
4623
|
const productDependencies = [
|
|
3623
4624
|
...list(target.packageProductDependencies),
|
|
@@ -3627,6 +4628,8 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3627
4628
|
return phase?.isa === "PBXFrameworksBuildPhase" ? list(phase.files).flatMap(productRef) : [];
|
|
3628
4629
|
})
|
|
3629
4630
|
];
|
|
4631
|
+
const ownProducts = [];
|
|
4632
|
+
const ownKeys = /* @__PURE__ */ new Set();
|
|
3630
4633
|
for (const dependencyId of new Set(productDependencies)) {
|
|
3631
4634
|
const dependency = project.object(dependencyId);
|
|
3632
4635
|
const product = str(dependency?.productName)?.replace(/^plugin:/, "");
|
|
@@ -3639,7 +4642,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3639
4642
|
product,
|
|
3640
4643
|
source: reference?.isa === "XCRemoteSwiftPackageReference" ? { kind: "remote", url: str(reference.repositoryURL) ?? "" } : reference?.isa === "XCLocalSwiftPackageReference" ? {
|
|
3641
4644
|
kind: "local",
|
|
3642
|
-
dir:
|
|
4645
|
+
dir: import_node_path6.default.resolve(
|
|
3643
4646
|
project.projectDir,
|
|
3644
4647
|
str(reference.relativePath) ?? ""
|
|
3645
4648
|
)
|
|
@@ -3648,7 +4651,13 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3648
4651
|
productReferences.push({ project: project.projectFile, linked });
|
|
3649
4652
|
if (linked.source.kind !== "unnamed")
|
|
3650
4653
|
qualifiedProductKeys.add(`${project.projectFile}\0${product}`);
|
|
4654
|
+
const key = JSON.stringify(linked);
|
|
4655
|
+
if (!ownKeys.has(key)) {
|
|
4656
|
+
ownKeys.add(key);
|
|
4657
|
+
ownProducts.push(linked);
|
|
4658
|
+
}
|
|
3651
4659
|
}
|
|
4660
|
+
productsByTarget.set(ref, ownProducts);
|
|
3652
4661
|
for (const phaseId of list(target.buildPhases)) {
|
|
3653
4662
|
const phase = project.object(phaseId);
|
|
3654
4663
|
if (phase?.isa !== "PBXFrameworksBuildPhase") continue;
|
|
@@ -3656,11 +4665,20 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3656
4665
|
const fileId = str(project.object(buildFileId)?.fileRef);
|
|
3657
4666
|
const file = project.object(fileId);
|
|
3658
4667
|
const tree = str(file?.sourceTree);
|
|
3659
|
-
const
|
|
4668
|
+
const rawPath = str(file?.path) ?? "";
|
|
4669
|
+
const name = /([^/]+)\.(xc)?framework$/.exec(rawPath)?.[1];
|
|
3660
4670
|
if (file?.isa !== "PBXFileReference" || !name) continue;
|
|
3661
|
-
if (tree === "BUILT_PRODUCTS_DIR" || tree === "SDKROOT" || tree === "DEVELOPER_DIR"
|
|
4671
|
+
if (tree === "BUILT_PRODUCTS_DIR" || tree === "SDKROOT" || tree === "DEVELOPER_DIR" || // a path into the sdk's own frameworks folder is the sdk's own
|
|
4672
|
+
// however it is rooted: xcode links -framework <name> from the sdk
|
|
4673
|
+
// and a stale group-relative path to it contributes nothing.
|
|
4674
|
+
/\/System\/Library\/Frameworks\/[^/]+$/.test(`/${rawPath}`) || // a target in the workspace builds it, so it exists only after that build
|
|
4675
|
+
byProduct.has(import_node_path6.default.basename(rawPath)))
|
|
3662
4676
|
continue;
|
|
3663
4677
|
const resolved = fileId ? project.resolvePath(fileId) : null;
|
|
4678
|
+
if (fileId && resolved !== null && !import_node_fs4.default.existsSync(resolved))
|
|
4679
|
+
throw new Error(
|
|
4680
|
+
`${str(target.name) ?? "target"}: linked framework ${name} (${fileId}) points at missing ${resolved} in ${project.projectFile}`
|
|
4681
|
+
);
|
|
3664
4682
|
if (!binaryFrameworks.get(name)) binaryFrameworks.set(name, resolved);
|
|
3665
4683
|
}
|
|
3666
4684
|
}
|
|
@@ -3673,26 +4691,35 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3673
4691
|
linkedProductKeys.add(key);
|
|
3674
4692
|
linkedProducts.push(linked);
|
|
3675
4693
|
}
|
|
3676
|
-
const
|
|
3677
|
-
|
|
4694
|
+
for (const built of builtTargets)
|
|
4695
|
+
built.module.packageProducts = productsByTarget.get(built.ref) ?? [];
|
|
4696
|
+
const resolvedFile = import_node_path6.default.join(
|
|
4697
|
+
workspace ?? import_node_path6.default.join(xcodeprojOrWorkspace, "project.xcworkspace"),
|
|
3678
4698
|
"xcshareddata",
|
|
3679
4699
|
"swiftpm",
|
|
3680
4700
|
"Package.resolved"
|
|
3681
4701
|
);
|
|
3682
|
-
|
|
4702
|
+
let packageResolved = import_node_fs4.default.existsSync(resolvedFile) ? [import_node_fs4.default.realpathSync(resolvedFile)] : [...new Set(localPackageDirs.map((dir) => import_node_path6.default.join(dir, "Package.resolved")))].filter((file) => import_node_fs4.default.existsSync(file)).map((file) => import_node_fs4.default.realpathSync(file)).sort();
|
|
4703
|
+
if (packageResolved.length === 0) {
|
|
4704
|
+
const requirements = remotePackageRequirements(projects);
|
|
4705
|
+
if (requirements.length > 0) {
|
|
4706
|
+
resolveSwiftPackageRequirements(requirements, resolvedFile);
|
|
4707
|
+
packageResolved = [import_node_fs4.default.realpathSync(resolvedFile)];
|
|
4708
|
+
}
|
|
4709
|
+
}
|
|
3683
4710
|
const used = order.map((ref) => ref.project);
|
|
3684
4711
|
return {
|
|
3685
4712
|
...module2,
|
|
3686
4713
|
rootDir: commonAncestor(
|
|
3687
4714
|
[
|
|
3688
|
-
workspace ?
|
|
4715
|
+
workspace ? import_node_path6.default.dirname(workspace) : app.project.projectDir,
|
|
3689
4716
|
...used.map((project) => project.projectDir),
|
|
3690
4717
|
...localPackageDirs,
|
|
3691
4718
|
...linkedProducts.flatMap(
|
|
3692
|
-
({ source }) => source.kind === "local" &&
|
|
4719
|
+
({ source }) => source.kind === "local" && import_node_fs4.default.existsSync(source.dir) ? [source.dir] : []
|
|
3693
4720
|
),
|
|
3694
4721
|
...new Set(podSourceDirs)
|
|
3695
|
-
].map((dir) =>
|
|
4722
|
+
].map((dir) => import_node_fs4.default.realpathSync(dir))
|
|
3696
4723
|
),
|
|
3697
4724
|
projectFiles: [
|
|
3698
4725
|
.../* @__PURE__ */ new Set([
|
|
@@ -3703,12 +4730,14 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3703
4730
|
].sort(),
|
|
3704
4731
|
projectDirs: [...new Set(used.map((project) => project.projectDir))].sort(),
|
|
3705
4732
|
appIconName: settings("ASSETCATALOG_COMPILER_APPICON_NAME"),
|
|
3706
|
-
infoPlist: import_plist2.default.build(info),
|
|
4733
|
+
infoPlist: infoPlistPending ? null : import_plist2.default.build(info),
|
|
3707
4734
|
infoPlistFile,
|
|
4735
|
+
developmentRegion: str(app.project.project.developmentRegion) ?? "en",
|
|
3708
4736
|
frameworks,
|
|
4737
|
+
resourceProducts,
|
|
3709
4738
|
linkedProducts,
|
|
3710
4739
|
localPackageDirs: [
|
|
3711
|
-
...new Set(localPackageDirs.map((dir) =>
|
|
4740
|
+
...new Set(localPackageDirs.map((dir) => import_node_fs4.default.realpathSync(dir)))
|
|
3712
4741
|
].sort(),
|
|
3713
4742
|
binaryFrameworks: [...binaryFrameworks].map(([name, file]) => ({ name, path: file })).sort((left, right) => left.name.localeCompare(right.name)),
|
|
3714
4743
|
packageResolved,
|
|
@@ -3724,6 +4753,10 @@ function nonEmptyString2(value) {
|
|
|
3724
4753
|
return typeof value === "string" && value.length > 0 ? value : void 0;
|
|
3725
4754
|
}
|
|
3726
4755
|
function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSource) {
|
|
4756
|
+
if (app.infoPlist === null)
|
|
4757
|
+
throw new Error(
|
|
4758
|
+
"native app Info.plist is generated by a build phase and was not prepared"
|
|
4759
|
+
);
|
|
3727
4760
|
const dictionary = parseInfoPlist(app.infoPlist);
|
|
3728
4761
|
if (!isRecord(dictionary)) throw new Error("native app Info.plist is not a dictionary");
|
|
3729
4762
|
const settings = app.settings;
|
|
@@ -3783,7 +4816,7 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
3783
4816
|
const rtcAppGroupIdentifier = nonEmptyString2(dictionary.RTCAppGroupIdentifier);
|
|
3784
4817
|
const screenShareExtensionBundleId = typeof dictionary.ScreenShareExtensionBundleId === "string" ? dictionary.ScreenShareExtensionBundleId : void 0;
|
|
3785
4818
|
const rootModuleName = readRootModuleName(
|
|
3786
|
-
app.allSources.filter((file) => /\.(?:swift|mm|m)$/.test(file) &&
|
|
4819
|
+
app.allSources.filter((file) => /\.(?:swift|mm|m)$/.test(file) && import_node_fs5.default.existsSync(file)).map((file) => import_node_fs5.default.readFileSync(file, "utf8"))
|
|
3787
4820
|
);
|
|
3788
4821
|
return {
|
|
3789
4822
|
applicationName,
|
|
@@ -3804,7 +4837,7 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
3804
4837
|
googleSignIn: readGoogleSignInConfiguration(
|
|
3805
4838
|
dictionary,
|
|
3806
4839
|
Object.fromEntries(
|
|
3807
|
-
app.resources.filter((file) => file.endsWith(".plist")).map((file) => [file, parseInfoPlist(
|
|
4840
|
+
app.resources.filter((file) => file.endsWith(".plist")).map((file) => [file, parseInfoPlist(import_node_fs5.default.readFileSync(file, "utf8"))])
|
|
3808
4841
|
)
|
|
3809
4842
|
),
|
|
3810
4843
|
supportedInterfaceOrientations,
|
|
@@ -3813,11 +4846,11 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
3813
4846
|
alternateIconNames: [...alternateIconNames],
|
|
3814
4847
|
appIconArtwork: resolveNativeAppIconArtwork(
|
|
3815
4848
|
app.resources,
|
|
3816
|
-
(file) =>
|
|
4849
|
+
(file) => import_node_fs5.default.readFileSync(file, "utf8"),
|
|
3817
4850
|
(file) => {
|
|
3818
|
-
const extension =
|
|
4851
|
+
const extension = import_node_path7.default.extname(file).toLowerCase();
|
|
3819
4852
|
const contentType = extension === ".jpg" || extension === ".jpeg" ? "image/jpeg" : extension === ".webp" ? "image/webp" : "image/png";
|
|
3820
|
-
return `data:${contentType};base64,${
|
|
4853
|
+
return `data:${contentType};base64,${import_node_fs5.default.readFileSync(file).toString("base64")}`;
|
|
3821
4854
|
},
|
|
3822
4855
|
icons,
|
|
3823
4856
|
app.appIconName,
|
|
@@ -3837,10 +4870,10 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
3837
4870
|
}
|
|
3838
4871
|
var NativeAppTargetSelectionError = class extends Error {
|
|
3839
4872
|
};
|
|
3840
|
-
function readNativeAppIdentityFromProject(projectRoot, platform, parseInfoPlist = parsePlistSource, iosTarget, androidMergedManifest) {
|
|
4873
|
+
function readNativeAppIdentityFromProject(projectRoot, platform, parseInfoPlist = parsePlistSource, iosTarget, androidMergedManifest, environment) {
|
|
3841
4874
|
const read = selectNativeAppIdentityReader(platform, {
|
|
3842
4875
|
android: () => readAndroidNativeAppIdentity(projectRoot, androidMergedManifest),
|
|
3843
|
-
ios: () => readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget)
|
|
4876
|
+
ios: () => readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget, environment)
|
|
3844
4877
|
});
|
|
3845
4878
|
return read ? read() : null;
|
|
3846
4879
|
}
|
|
@@ -3848,22 +4881,22 @@ function readNativeAppIdentityFromSources(projectRoot, platform, parseInfoPlist,
|
|
|
3848
4881
|
const read = selectNativeAppIdentityReader(platform, {
|
|
3849
4882
|
android: () => null,
|
|
3850
4883
|
ios: () => {
|
|
3851
|
-
const iosRoot =
|
|
3852
|
-
if (!
|
|
4884
|
+
const iosRoot = import_node_path7.default.join(projectRoot, "ios");
|
|
4885
|
+
if (!import_node_fs5.default.existsSync(iosRoot)) return null;
|
|
3853
4886
|
const files = {};
|
|
3854
|
-
for (const entry of
|
|
4887
|
+
for (const entry of import_node_fs5.default.readdirSync(iosRoot, { withFileTypes: true })) {
|
|
3855
4888
|
if (entry.name === "Pods") continue;
|
|
3856
4889
|
if (entry.isDirectory()) {
|
|
3857
4890
|
const names = entry.name.endsWith(".xcodeproj") ? ["project.pbxproj"] : ["Info.plist", "AppDelegate.swift", "AppDelegate.mm", "AppDelegate.m"];
|
|
3858
4891
|
for (const name of names) {
|
|
3859
4892
|
const relative = `ios/${entry.name}/${name}`;
|
|
3860
|
-
const file =
|
|
3861
|
-
if (
|
|
4893
|
+
const file = import_node_path7.default.join(projectRoot, relative);
|
|
4894
|
+
if (import_node_fs5.default.existsSync(file)) files[relative] = import_node_fs5.default.readFileSync(file, "utf8");
|
|
3862
4895
|
}
|
|
3863
4896
|
} else if (/AppDelegate\.(?:swift|mm|m)$/.test(entry.name)) {
|
|
3864
4897
|
const relative = `ios/${entry.name}`;
|
|
3865
|
-
const file =
|
|
3866
|
-
if (
|
|
4898
|
+
const file = import_node_path7.default.join(projectRoot, relative);
|
|
4899
|
+
if (import_node_fs5.default.existsSync(file)) files[relative] = import_node_fs5.default.readFileSync(file, "utf8");
|
|
3867
4900
|
}
|
|
3868
4901
|
}
|
|
3869
4902
|
return extractNativeAppIdentityFromFiles(files, "ios", parseInfoPlist, iosTarget);
|
|
@@ -3874,41 +4907,41 @@ function readNativeAppIdentityFromSources(projectRoot, platform, parseInfoPlist,
|
|
|
3874
4907
|
function readAndroidNativeAppIdentity(projectRoot, androidMergedManifest) {
|
|
3875
4908
|
const files = {};
|
|
3876
4909
|
if (androidMergedManifest) {
|
|
3877
|
-
const file =
|
|
3878
|
-
if (!
|
|
3879
|
-
files[androidMergedManifest] =
|
|
4910
|
+
const file = import_node_path7.default.resolve(projectRoot, androidMergedManifest);
|
|
4911
|
+
if (!import_node_fs5.default.existsSync(file)) return null;
|
|
4912
|
+
files[androidMergedManifest] = import_node_fs5.default.readFileSync(file, "utf8");
|
|
3880
4913
|
} else {
|
|
3881
|
-
const androidRoot =
|
|
3882
|
-
if (!
|
|
4914
|
+
const androidRoot = import_node_path7.default.join(projectRoot, "android");
|
|
4915
|
+
if (!import_node_fs5.default.existsSync(androidRoot)) return null;
|
|
3883
4916
|
const collect = (directory) => {
|
|
3884
|
-
for (const entry of
|
|
3885
|
-
const file =
|
|
4917
|
+
for (const entry of import_node_fs5.default.readdirSync(directory, { withFileTypes: true })) {
|
|
4918
|
+
const file = import_node_path7.default.join(directory, entry.name);
|
|
3886
4919
|
if (entry.isDirectory()) collect(file);
|
|
3887
4920
|
else if (entry.isFile() && entry.name === "AndroidManifest.xml")
|
|
3888
|
-
files[
|
|
4921
|
+
files[import_node_path7.default.relative(projectRoot, file).split(import_node_path7.default.sep).join("/")] = import_node_fs5.default.readFileSync(file, "utf8");
|
|
3889
4922
|
}
|
|
3890
4923
|
};
|
|
3891
|
-
for (const module2 of
|
|
4924
|
+
for (const module2 of import_node_fs5.default.readdirSync(androidRoot, { withFileTypes: true })) {
|
|
3892
4925
|
if (!module2.isDirectory()) continue;
|
|
3893
|
-
const outputs =
|
|
4926
|
+
const outputs = import_node_path7.default.join(
|
|
3894
4927
|
androidRoot,
|
|
3895
4928
|
module2.name,
|
|
3896
4929
|
"build/intermediates/merged_manifests"
|
|
3897
4930
|
);
|
|
3898
|
-
if (
|
|
4931
|
+
if (import_node_fs5.default.existsSync(outputs)) collect(outputs);
|
|
3899
4932
|
}
|
|
3900
4933
|
}
|
|
3901
4934
|
for (const manifest of Object.keys(files)) {
|
|
3902
4935
|
const resourceDirectory = androidMergedResourceValuesDirectory(manifest);
|
|
3903
4936
|
if (!resourceDirectory) continue;
|
|
3904
|
-
const absolute =
|
|
3905
|
-
if (!
|
|
3906
|
-
for (const entry of
|
|
4937
|
+
const absolute = import_node_path7.default.resolve(projectRoot, resourceDirectory);
|
|
4938
|
+
if (!import_node_fs5.default.existsSync(absolute)) continue;
|
|
4939
|
+
for (const entry of import_node_fs5.default.readdirSync(absolute, { withFileTypes: true })) {
|
|
3907
4940
|
if (!entry.isDirectory() || !/^values(?:-|$)/.test(entry.name)) continue;
|
|
3908
|
-
for (const resource of
|
|
4941
|
+
for (const resource of import_node_fs5.default.readdirSync(import_node_path7.default.join(absolute, entry.name))) {
|
|
3909
4942
|
if (!resource.endsWith(".xml")) continue;
|
|
3910
4943
|
const file = `${resourceDirectory}/${entry.name}/${resource}`;
|
|
3911
|
-
files[file] =
|
|
4944
|
+
files[file] = import_node_fs5.default.readFileSync(import_node_path7.default.resolve(projectRoot, file), "utf8");
|
|
3912
4945
|
}
|
|
3913
4946
|
}
|
|
3914
4947
|
}
|
|
@@ -3921,11 +4954,11 @@ function readAndroidNativeAppIdentity(projectRoot, androidMergedManifest) {
|
|
|
3921
4954
|
androidMergedManifest
|
|
3922
4955
|
);
|
|
3923
4956
|
}
|
|
3924
|
-
function readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget) {
|
|
3925
|
-
const app = readIosAppTarget(projectRoot, iosTarget);
|
|
4957
|
+
function readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget, environment) {
|
|
4958
|
+
const app = readIosAppTarget(projectRoot, iosTarget, environment);
|
|
3926
4959
|
if (!app) return null;
|
|
3927
4960
|
const identity = readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist);
|
|
3928
|
-
const projectManifestPath =
|
|
4961
|
+
const projectManifestPath = import_node_path7.default.join(projectRoot, "package.json");
|
|
3929
4962
|
const projectRequire = (0, import_node_module.createRequire)(projectManifestPath);
|
|
3930
4963
|
let reanimatedManifestPath;
|
|
3931
4964
|
try {
|
|
@@ -3939,22 +4972,22 @@ function readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget) {
|
|
|
3939
4972
|
throw error;
|
|
3940
4973
|
}
|
|
3941
4974
|
const installedManifest = JSON.parse(
|
|
3942
|
-
|
|
4975
|
+
import_node_fs5.default.readFileSync(reanimatedManifestPath, "utf8")
|
|
3943
4976
|
);
|
|
3944
4977
|
const installedVersion = isRecord(installedManifest) ? nonEmptyString2(installedManifest.version) : void 0;
|
|
3945
4978
|
if (!installedVersion) throw new Error("Reanimated package version is malformed");
|
|
3946
4979
|
if (Number.parseInt(installedVersion, 10) < 4) return identity;
|
|
3947
4980
|
const defaults = JSON.parse(
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
4981
|
+
import_node_fs5.default.readFileSync(
|
|
4982
|
+
import_node_path7.default.join(
|
|
4983
|
+
import_node_path7.default.dirname(reanimatedManifestPath),
|
|
3951
4984
|
"src/featureFlags/staticFlags.json"
|
|
3952
4985
|
),
|
|
3953
4986
|
"utf8"
|
|
3954
4987
|
)
|
|
3955
4988
|
);
|
|
3956
4989
|
if (!isRecord(defaults)) throw new Error("Reanimated static flags are malformed");
|
|
3957
|
-
const manifest = JSON.parse(
|
|
4990
|
+
const manifest = JSON.parse(import_node_fs5.default.readFileSync(projectManifestPath, "utf8"));
|
|
3958
4991
|
const reanimated = isRecord(manifest) ? manifest.reanimated : void 0;
|
|
3959
4992
|
const overrides = isRecord(reanimated) ? reanimated.staticFeatureFlags : void 0;
|
|
3960
4993
|
if (overrides !== void 0 && !isRecord(overrides)) {
|
|
@@ -3976,10 +5009,10 @@ function readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget) {
|
|
|
3976
5009
|
}
|
|
3977
5010
|
return { ...identity, reanimatedStaticFeatureFlags: flags };
|
|
3978
5011
|
}
|
|
3979
|
-
function readIosAppTarget(projectRoot, iosTarget) {
|
|
3980
|
-
const iosRoot =
|
|
3981
|
-
if (!
|
|
3982
|
-
const projects =
|
|
5012
|
+
function readIosAppTarget(projectRoot, iosTarget, environment) {
|
|
5013
|
+
const iosRoot = import_node_path7.default.join(projectRoot, "ios");
|
|
5014
|
+
if (!import_node_fs5.default.existsSync(iosRoot)) return null;
|
|
5015
|
+
const projects = import_node_fs5.default.readdirSync(iosRoot, { withFileTypes: true }).filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj"));
|
|
3983
5016
|
if (projects.length === 0) return null;
|
|
3984
5017
|
if (projects.length > 1 && !iosTarget) {
|
|
3985
5018
|
throw new NativeAppTargetSelectionError(
|
|
@@ -3989,7 +5022,7 @@ function readIosAppTarget(projectRoot, iosTarget) {
|
|
|
3989
5022
|
let project = projects[0];
|
|
3990
5023
|
if (iosTarget && projects.length > 1) {
|
|
3991
5024
|
const matches = projects.filter(
|
|
3992
|
-
(entry) => listXcodeAppTargets(
|
|
5025
|
+
(entry) => listXcodeAppTargets(import_node_path7.default.join(iosRoot, entry.name), {
|
|
3993
5026
|
requireSources: false
|
|
3994
5027
|
}).includes(iosTarget)
|
|
3995
5028
|
);
|
|
@@ -4003,7 +5036,7 @@ function readIosAppTarget(projectRoot, iosTarget) {
|
|
|
4003
5036
|
}
|
|
4004
5037
|
project = matches[0];
|
|
4005
5038
|
}
|
|
4006
|
-
const xcodeproj =
|
|
5039
|
+
const xcodeproj = import_node_path7.default.join(iosRoot, project.name);
|
|
4007
5040
|
const appTargets = listXcodeAppTargets(xcodeproj, { requireSources: false });
|
|
4008
5041
|
if (!iosTarget && appTargets.length > 1) {
|
|
4009
5042
|
throw new NativeAppTargetSelectionError(
|
|
@@ -4012,7 +5045,8 @@ function readIosAppTarget(projectRoot, iosTarget) {
|
|
|
4012
5045
|
}
|
|
4013
5046
|
return readXcodeAppTarget(xcodeproj, iosTarget ?? appTargets[0], "Release", {
|
|
4014
5047
|
requireSources: false,
|
|
4015
|
-
prepareGeneratedSources: true
|
|
5048
|
+
prepareGeneratedSources: true,
|
|
5049
|
+
environment
|
|
4016
5050
|
});
|
|
4017
5051
|
}
|
|
4018
5052
|
// Annotate the CommonJS export names for ESM import in node:
|