peachsim 0.1.1700 → 0.1.1716
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +59 -3
- package/cli/app-bundle-resources.ts +3 -1
- package/cli/app-catalog.ts +10 -0
- package/cli/app-fonts.ts +1 -1
- package/cli/app-stubs.ts +19 -9
- package/cli/bridge-diagnostics.ts +2 -1
- package/cli/cloud-client.ts +6 -3
- package/cli/commands/control.ts +123 -40
- package/cli/commands/coverage-swift.ts +19 -1
- package/cli/commands/detect.ts +84 -37
- package/cli/commands/doctor.ts +159 -20
- package/cli/commands/flow.ts +4 -1
- package/cli/commands/inspect/core.ts +176 -17
- package/cli/commands/inspect/settling.ts +17 -5
- package/cli/commands/inspect/wait-ready.ts +7 -5
- package/cli/commands/inspect.ts +8 -2
- package/cli/commands/record.ts +263 -32
- package/cli/commands/screenshot.ts +2 -13
- package/cli/commands/test.ts +49 -101
- package/cli/current-sim.ts +4 -4
- package/cli/hints.ts +1 -6
- package/cli/main.ts +8 -1
- package/cli/metro-bundle-assets.ts +77 -0
- package/cli/outbound-endpoints.ts +6 -2
- package/cli/run-registry.ts +0 -8
- package/cli/scene-video.ts +5 -3
- package/cli/ws-bridge.ts +56 -14
- package/detox/index.ts +68 -10
- 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 +20275 -20082
- 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 +166 -25
- package/dist-lib/dev-bundle-resolution.cjs +2 -8
- package/dist-lib/expo-swift-bundle.cjs +15190 -22541
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +20783 -20206
- package/dist-lib/host/fetch-proxy-handler.cjs +467 -77
- 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 +1956 -574
- 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 +1 -1
- package/dist-lib/menu.cjs +4 -1
- package/dist-lib/menu.mjs +3 -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 +1803 -547
- package/dist-lib/native-app-identity-project.cjs +823 -203
- package/dist-lib/native-app-identity-project.mjs +832 -206
- package/dist-lib/native-app-identity.cjs +14 -1
- package/dist-lib/native-app-identity.mjs +12 -1
- 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 +31 -101
- package/dist-lib/public-origins-lib.json +259 -383
- package/dist-lib/react-native-host-modules.cjs +97 -3
- package/dist-lib/react-native-host-modules.mjs +96 -3
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +20 -45
- package/dist-lib/sdk.cjs +145 -18
- package/dist-lib/sdk.mjs +139 -18
- package/dist-lib/skills.cjs +13204 -11702
- package/dist-lib/swift-compile.cjs +6034 -16894
- package/dist-lib/swift-compile.mjs +6099 -16966
- 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 +12 -10
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +16850 -24974
- package/dist-lib/vite.cjs +541 -117
- 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-gesture-handler.d.ts +2 -0
- package/dist-types/packages/peach-compat/src/stubs/screen-transition-math.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/capture/lockstep-clockContract.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/fiber-debug-metadata.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +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 +2 -0
- package/dist-types/packages/peach-engine/src/engine/lottie-types.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +5 -3
- package/dist-types/packages/peach-engine/src/engine/riveContract.d.ts +5 -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 +16 -0
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +15 -2
- package/dist-types/packages/peach-engine/src/render-worker/live-frame-mirror.d.ts +11 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +10 -1
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +10 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-tree-wire.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/render-worker/tree-sync-port.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime-kind.d.ts +5 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +6 -4
- package/dist-types/packages/peach-engine/src/render-worker/workletThreadIdentityContract.d.ts +4 -0
- package/dist-types/packages/peach-globals/src/guestExecutionContract.d.ts +30 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +6 -4
- package/dist-types/packages/peach-globals/src/nativeBuildOptionsContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/permissionsBridgeContract.d.ts +11 -0
- package/dist-types/packages/peach-globals/src/recordingBridgeContract.d.ts +22 -1
- package/dist-types/packages/peach-globals/src/sceneStreamBridgeContract.d.ts +10 -0
- package/dist-types/packages/peach-globals/src/shellHostBridgeContract.d.ts +8 -2
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +3 -0
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
- package/package.json +3 -1
- package/runtime-companion.json +1 -1
- package/scripts/dev-server-scanner.ts +57 -70
- 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/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 +1 -60
- 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 +2898 -369
- 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/UIKit.h +19 -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/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 +4 -0
- package/sdk/ios/usr/include/net/if_types.h +152 -0
- package/sdk/ios/usr/include/objc/NSObjCRuntime.h +10 -0
- package/sdk/ios/usr/include/objc/NSObject.h +23 -25
- package/sdk/ios/usr/include/objc/objc-api.h +310 -0
- package/sdk/ios/usr/include/objc/objc.h +243 -0
- package/sdk/ios/usr/include/objc/runtime.h +1933 -0
- package/sdk/ios/usr/include/os.modulemap +6 -0
- package/sdk/ios/usr/include/pthread/pthread_impl.h +66 -0
- package/sdk/ios/usr/include/pthread/sched.h +46 -0
- package/sdk/ios/usr/include/pthread.h +754 -4
- package/sdk/ios/usr/include/pwd.h +119 -0
- package/sdk/ios/usr/include/sched.h +46 -0
- package/sdk/ios/usr/include/secure/_string.h +295 -0
- package/sdk/ios/usr/include/secure/_strings.h +96 -0
- package/sdk/ios/usr/include/spawn.h +193 -0
- package/sdk/ios/usr/include/stddef.h +90 -0
- package/sdk/ios/usr/include/stdlib.h +62 -17
- package/sdk/ios/usr/include/string.h +62 -8
- package/sdk/ios/usr/include/sys/_pthread/_pthread_cond_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_condattr_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_key_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_mutex_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_mutexattr_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_once_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_rwlock_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_rwlockattr_t.h +32 -0
- package/sdk/ios/usr/include/sys/_select.h +57 -0
- package/sdk/ios/usr/include/sys/_types/_blkcnt_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_blksize_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_caddr_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_dev_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_fsblkcnt_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_fsfilcnt_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_fsid_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_fsobj_id_t.h +38 -0
- package/sdk/ios/usr/include/sys/_types/_graftdmg_un.h +64 -0
- package/sdk/ios/usr/include/sys/_types/_guid_t.h +37 -0
- package/sdk/ios/usr/include/sys/_types/_id_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_ino64_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_key_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_mach_port_t.h +51 -0
- package/sdk/ios/usr/include/sys/_types/_mbstate_t.h +33 -0
- package/sdk/ios/usr/include/sys/_types/_mount_t.h +34 -0
- package/sdk/ios/usr/include/sys/_types/_nlink_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_os_inline.h +34 -0
- package/sdk/ios/usr/include/sys/_types/_posix_vdisable.h +30 -0
- package/sdk/ios/usr/include/sys/_types/_rsize_t.h +55 -0
- package/sdk/ios/usr/include/sys/_types/_suseconds_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_timeval.h +39 -0
- package/sdk/ios/usr/include/sys/_types/_u_char.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_u_int.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_u_short.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_useconds_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_uuid_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_vnode_t.h +34 -0
- package/sdk/ios/usr/include/sys/acl.h +215 -0
- package/sdk/ios/usr/include/sys/attr.h +635 -0
- package/sdk/ios/usr/include/sys/cdefs.h +15 -0
- package/sdk/ios/usr/include/sys/event.h +388 -0
- package/sdk/ios/usr/include/sys/kauth.h +409 -0
- package/sdk/ios/usr/include/sys/mount.h +470 -0
- package/sdk/ios/usr/include/sys/queue.h +909 -0
- package/sdk/ios/usr/include/sys/resource.h +600 -0
- package/sdk/ios/usr/include/sys/select.h +134 -0
- package/sdk/ios/usr/include/sys/spawn.h +84 -0
- package/sdk/ios/usr/include/sys/sysctl.h +803 -57
- package/sdk/ios/usr/include/sys/syslimits.h +131 -11
- package/sdk/ios/usr/include/sys/types.h +236 -19
- package/sdk/ios/usr/include/sys/ucred.h +116 -0
- package/sdk/ios/usr/include/sys/un.h +105 -0
- package/sdk/ios/usr/include/sys/unistd.h +225 -0
- package/sdk/ios/usr/include/sys/vm.h +89 -0
- package/sdk/ios/usr/include/sys/wait.h +256 -0
- package/sdk/ios/usr/include/sysdir.h +79 -0
- package/sdk/ios/usr/include/unistd.h +799 -3
- package/sdk/ios/usr/include/uuid/uuid.h +69 -10
- package/sdk/ios/usr/include/wchar.h +71 -0
- package/sdk/ios/usr/include/wctype.h +35 -0
- package/sdk/ios/usr/include/xlocale/___wctype.h +146 -0
- package/sdk/ios/usr/include/xlocale/_ctype.h +240 -0
- package/sdk/ios/usr/include/xlocale/_stdlib.h +77 -0
- package/sdk/ios/usr/include/xlocale/_string.h +43 -0
- package/sdk/ios/usr/include/xlocale/_wchar.h +160 -0
- package/sdk/ios/usr/include/xlocale/_wctype.h +100 -0
- package/sdk/ios/usr/include/xlocale.h +61 -0
- package/sdk/ios/usr/include/xpc/availability.h +141 -0
- package/sdk/ios/usr/include/xpc/base.h +243 -0
- package/sdk/ios/wasm/include/AvailabilityInternal.h +24 -0
- package/sdk/ios/wasm/include/TargetConditionals.h +529 -0
- package/sdk/ios/wasm/include/_locale.h +3 -0
- package/sdk/ios/wasm/include/_locale_posix2008.h +3 -0
- package/sdk/ios/wasm/include/_types/_locale_t.h +3 -0
- package/sdk/ios/wasm/include/arpa/inet.h +15 -0
- package/sdk/ios/wasm/include/dirent.h +52 -0
- package/sdk/ios/wasm/include/dlfcn.h +13 -1
- package/sdk/ios/wasm/include/errno.h +22 -0
- package/sdk/ios/wasm/include/fcntl.h +29 -0
- package/sdk/ios/wasm/include/ftw.h +15 -0
- package/sdk/ios/wasm/include/libkern/_OSByteOrder.h +6 -0
- package/sdk/ios/wasm/include/limits.h +9 -0
- package/sdk/ios/wasm/include/mach/machine/boolean.h +1 -1
- package/sdk/ios/wasm/include/mach/machine/exception.h +1 -4
- package/sdk/ios/wasm/include/mach/machine/kern_return.h +1 -1
- package/sdk/ios/wasm/include/mach/machine/processor_info.h +1 -1
- package/sdk/ios/wasm/include/mach/machine/rpc.h +1 -1
- package/sdk/ios/wasm/include/mach/machine/thread_state.h +1 -2
- package/sdk/ios/wasm/include/mach/machine/thread_status.h +1 -2
- package/sdk/ios/wasm/include/mach/machine/vm_param.h +1 -2
- package/sdk/ios/wasm/include/mach/machine/vm_types.h +1 -17
- package/sdk/ios/wasm/include/machine/_endian.h +2 -0
- package/sdk/ios/wasm/include/machine/_param.h +2 -0
- package/sdk/ios/wasm/include/machine/endian.h +1 -1
- package/sdk/ios/wasm/include/machine/limits.h +106 -2
- package/sdk/ios/wasm/include/machine/param.h +152 -0
- package/sdk/ios/wasm/include/netinet/in.h +11 -0
- package/sdk/ios/wasm/include/os/object.h +10 -0
- package/sdk/ios/wasm/include/pthread.h +14 -0
- package/sdk/ios/wasm/include/stdio.h +12 -0
- package/sdk/ios/wasm/include/stdlib.h +13 -0
- package/sdk/ios/wasm/include/strings.h +9 -0
- package/sdk/ios/wasm/include/sys/_types/_iovec_t.h +6 -0
- package/sdk/ios/wasm/include/sys/_types/_mode_t.h +10 -0
- package/sdk/ios/wasm/include/sys/mman.h +2 -2
- package/sdk/ios/wasm/include/sys/param.h +4 -0
- package/sdk/ios/wasm/include/sys/resource.h +43 -0
- package/sdk/ios/wasm/include/sys/socket.h +75 -9
- package/sdk/ios/wasm/include/sys/stat.h +63 -0
- package/sdk/ios/wasm/include/sys/types.h +13 -0
- package/sdk/ios/wasm/include/sys/un.h +7 -0
- package/sdk/ios/wasm/include/time.h +3 -1
- package/sdk/ios/wasm/include/unistd.h +16 -3
- package/sdk/ios/wasm/include/xlocale/_stdlib.h +37 -0
- package/sdk/ios/wasm/storage-include/TargetConditionals.h +529 -0
- package/sdk/ios/wasm/storage-include/mach/machine/boolean.h +2 -0
- package/sdk/ios/wasm/storage-include/mach/machine/exception.h +5 -0
- package/sdk/ios/wasm/storage-include/mach/machine/kern_return.h +2 -0
- package/sdk/ios/wasm/storage-include/mach/machine/processor_info.h +2 -0
- package/sdk/ios/wasm/storage-include/mach/machine/rpc.h +2 -0
- package/sdk/ios/wasm/storage-include/mach/machine/thread_state.h +3 -0
- package/sdk/ios/wasm/storage-include/mach/machine/thread_status.h +3 -0
- package/sdk/ios/wasm/storage-include/mach/machine/vm_param.h +3 -0
- package/sdk/ios/wasm/storage-include/mach/machine/vm_types.h +18 -0
- package/sdk/ios/wasm/storage-include/machine/_endian.h +9 -0
- package/sdk/ios/wasm/storage-include/machine/_param.h +8 -0
- package/sdk/ios/wasm/storage-include/machine/_types.h +31 -0
- package/sdk/ios/wasm/storage-include/machine/endian.h +2 -0
- package/sdk/ios/wasm/storage-include/machine/limits.h +2 -0
- package/sdk/ios/wasm/storage-include/machine/types.h +15 -0
- package/sdk/native-hashes.json +80 -0
- package/skills/contrast/SKILL.md +1 -1
- package/src/android-root-module.ts +145 -0
- package/src/androidRootModuleContract.ts +39 -0
- package/src/assetCatalogContract.ts +10 -1
- package/src/backend-origin.ts +11 -8
- package/src/bridge-constants.ts +7 -0
- package/src/bridge-contract.ts +3 -1
- package/src/capture-contract.ts +3 -1
- package/src/cli-runtime.ts +6 -1
- package/src/device-catalog.ts +10 -4
- package/src/expo-discovery-cache.ts +272 -0
- package/src/expo-native-workspace.ts +62 -31
- package/src/expo-swift-host.ts +679 -23
- package/src/expo-swift-ready.ts +43 -11
- package/src/generated/swift-c-predefines.json +1 -1
- package/src/host/bridge-host.ts +28 -0
- package/src/host/fetch-proxy-handler.ts +19 -1
- package/src/host/network-policy-proxy.ts +421 -0
- package/src/host/network-policy.ts +121 -0
- package/src/host/staged-host-files.ts +80 -3
- package/src/host/websocket-frame-guard.ts +163 -0
- package/src/host/websocket-proxy-headers.ts +29 -0
- package/src/host/websocket-proxy.ts +100 -58
- package/src/installed-native-build-options.ts +154 -0
- package/src/installed-package-versions.ts +56 -49
- package/src/material-symbol-fonts.ts +6 -4
- package/src/menu.ts +6 -0
- package/src/metro-plugin.ts +8 -0
- package/src/native-app-identity-project.ts +4 -0
- package/src/native-app-identity.ts +16 -0
- package/src/native-dev-bundle-url.ts +0 -18
- package/src/native-firebase-config.ts +47 -4
- package/src/native-preparation.ts +30 -0
- package/src/nativePreparationContract.ts +3 -0
- package/src/nitro-adapter.lock.json +384 -232
- package/src/nitro-bundle.ts +25 -1
- package/src/nitro-compile.ts +15 -2
- package/src/nitro-dependencies.ts +226 -0
- package/src/nitro-source.ts +187 -37
- package/src/packageVersionsContract.ts +33 -0
- package/src/react-native-bridge-modules.ts +24 -1
- package/src/react-native-host-modules.ts +111 -4
- package/src/runtime-assets.ts +10 -0
- package/src/sim-client.ts +1 -1
- package/src/storageSnapshotContract.ts +22 -10
- package/src/stub-pattern-matcher.ts +17 -4
- package/src/swift-compile.ts +1197 -4148
- package/src/swift-compiler-digest.ts +1 -2
- package/src/swift-coverage/package.ts +103 -58
- package/src/swift-coverage/xcode-assets.ts +22 -2
- package/src/swift-coverage/xcode-bridging.ts +1 -12
- package/src/swift-coverage/xcode-packages.ts +167 -52
- package/src/swift-coverage/xcode.ts +2 -6
- package/src/swift-cxx-declarations.ts +205 -0
- package/src/swift-cxx-deps.ts +48 -0
- package/src/swift-cxx-reachable.ts +297 -0
- package/src/swift-cxx-standin.ts +248 -0
- package/src/swift-distribution.lock.json +29 -20
- package/src/swift-host.ts +215 -21
- package/src/swift-objc-compile.ts +626 -234
- package/src/swift-objc-import.ts +19 -964
- package/src/swift-objc-runtime.ts +7 -0
- package/src/swift-objc-standin.ts +278 -58
- package/src/swift-package-manifest.ts +179 -38
- package/src/swift-package.ts +123 -3
- package/src/swift-packages.ts +193 -34
- package/src/swift-pdf-raster.ts +114 -0
- package/src/swift-shared-sdk.ts +45 -0
- package/src/swift-source-file.ts +10 -6
- package/src/swift-standin-digest.ts +12 -15
- package/src/swift-standin-emit.ts +8 -0
- package/src/swift-standins.ts +266 -73
- package/src/swift-submit.ts +24 -6
- package/src/swift-toolchain.ts +11 -9
- package/src/swiftContract.ts +50 -29
- package/src/vite-plugin.ts +0 -13
- package/src/workspace-root.ts +15 -0
- package/src/xcode-json-project.ts +52 -1
- package/src/xcode-project.ts +295 -25
- 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.1716 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1153,9 +1153,9 @@ var require_lib = __commonJS({
|
|
|
1153
1153
|
|
|
1154
1154
|
// src/native-app-identity-project.ts
|
|
1155
1155
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1156
|
-
import
|
|
1156
|
+
import fs5 from "node:fs";
|
|
1157
1157
|
import { createRequire } from "node:module";
|
|
1158
|
-
import
|
|
1158
|
+
import path6 from "node:path";
|
|
1159
1159
|
|
|
1160
1160
|
// src/android-app-identity.ts
|
|
1161
1161
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -1733,10 +1733,10 @@ function appTargetReleaseSettings(pbxproj, targetName, infoPlistRelativePath) {
|
|
|
1733
1733
|
var APP_DELEGATE_PATH_RE = /(?:^|\/)ios\/([^/]+)\/AppDelegate\.(?:swift|mm|m)$/;
|
|
1734
1734
|
function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri) {
|
|
1735
1735
|
const pbxprojPath = Object.keys(files).find(
|
|
1736
|
-
(
|
|
1736
|
+
(path7) => /(?:^|\/)ios\/[^/]+\.xcodeproj\/project\.pbxproj$/.test(path7)
|
|
1737
1737
|
) ?? Object.keys(files).find(
|
|
1738
|
-
(
|
|
1739
|
-
) ?? Object.keys(files).find((
|
|
1738
|
+
(path7) => /(?:^|\/)[^/]+\.xcodeproj\/project\.pbxproj$/.test(path7)
|
|
1739
|
+
) ?? Object.keys(files).find((path7) => /(?:^|\/)project\.pbxproj$/.test(path7));
|
|
1740
1740
|
if (!pbxprojPath) return null;
|
|
1741
1741
|
const pbxproj = files[pbxprojPath];
|
|
1742
1742
|
let objects = {};
|
|
@@ -1778,7 +1778,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
|
|
|
1778
1778
|
} else if (applicationTargetNames.size === 1) {
|
|
1779
1779
|
targetName = [...applicationTargetNames][0];
|
|
1780
1780
|
} else if (applicationTargetNames.size > 1) {
|
|
1781
|
-
const delegateTargets = Object.keys(files).filter((
|
|
1781
|
+
const delegateTargets = Object.keys(files).filter((path7) => !path7.includes("/Pods/")).map((path7) => path7.match(APP_DELEGATE_PATH_RE)?.[1]).filter(
|
|
1782
1782
|
(name) => typeof name === "string" && applicationTargetNames.has(name)
|
|
1783
1783
|
);
|
|
1784
1784
|
if (delegateTargets.length === 1) {
|
|
@@ -2002,7 +2002,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
|
|
|
2002
2002
|
if (Object.hasOwn(files, file)) return [file];
|
|
2003
2003
|
const prefix = file === "" ? "" : `${file.replace(/\/$/, "")}/`;
|
|
2004
2004
|
return paths.filter(
|
|
2005
|
-
(
|
|
2005
|
+
(path7) => path7.startsWith(prefix) && !/(?:^|\/)\./.test(path7.slice(prefix.length))
|
|
2006
2006
|
);
|
|
2007
2007
|
},
|
|
2008
2008
|
join2,
|
|
@@ -2013,7 +2013,7 @@ function nativeAppIdentityFromIos(files, parseInfoPlist, iosTarget, resourceUri)
|
|
|
2013
2013
|
}
|
|
2014
2014
|
const rootModuleName = readRootModuleName(
|
|
2015
2015
|
Object.entries(files).filter(
|
|
2016
|
-
([
|
|
2016
|
+
([path7]) => !path7.includes("/Pods/") && (/(?:^|\/)ios\/AppDelegate\.(?:swift|mm|m)$/.test(path7) || path7.match(APP_DELEGATE_PATH_RE)?.[1] === targetName)
|
|
2017
2017
|
).map(([, source]) => source)
|
|
2018
2018
|
);
|
|
2019
2019
|
return {
|
|
@@ -2106,10 +2106,10 @@ function parsePlistSource(source) {
|
|
|
2106
2106
|
|
|
2107
2107
|
// src/xcode-project.ts
|
|
2108
2108
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2109
|
-
import { execFileSync as
|
|
2110
|
-
import { createHash as
|
|
2111
|
-
import
|
|
2112
|
-
import
|
|
2109
|
+
import { execFileSync as execFileSync4 } from "node:child_process";
|
|
2110
|
+
import { createHash as createHash4 } from "node:crypto";
|
|
2111
|
+
import fs4 from "node:fs";
|
|
2112
|
+
import path5 from "node:path";
|
|
2113
2113
|
import plist2 from "plist";
|
|
2114
2114
|
|
|
2115
2115
|
// src/swift-coverage/xcode-assets.ts
|
|
@@ -2142,7 +2142,7 @@ var assetSymbolSettingKeys = [
|
|
|
2142
2142
|
"ASSETCATALOG_COMPILER_LIGHTWEIGHT_ASSET_RUNTIME_MODE",
|
|
2143
2143
|
"ASSETCATALOG_OTHER_FLAGS"
|
|
2144
2144
|
];
|
|
2145
|
-
var unprovenAssetSettings = assetSymbolSettingKeys.slice(4);
|
|
2145
|
+
var unprovenAssetSettings = assetSymbolSettingKeys.slice(4).filter((key) => key !== "ASSETCATALOG_OTHER_FLAGS");
|
|
2146
2146
|
|
|
2147
2147
|
// src/swift-package.ts
|
|
2148
2148
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -2161,6 +2161,8 @@ function isSwiftNativeTranslationUnit(file) {
|
|
|
2161
2161
|
}
|
|
2162
2162
|
var SWIFT_NATIVE_SOURCE_EXTENSIONS = [
|
|
2163
2163
|
...SWIFT_NATIVE_TRANSLATION_UNIT_EXTENSIONS,
|
|
2164
|
+
".s",
|
|
2165
|
+
".S",
|
|
2164
2166
|
".h",
|
|
2165
2167
|
".hh",
|
|
2166
2168
|
".hpp",
|
|
@@ -2170,17 +2172,444 @@ var SWIFT_NATIVE_SOURCE_EXTENSIONS = [
|
|
|
2170
2172
|
".inl",
|
|
2171
2173
|
".modulemap"
|
|
2172
2174
|
];
|
|
2175
|
+
function moduleMapTokens(text2) {
|
|
2176
|
+
return (text2.match(/\/\*[\s\S]*?\*\/|\/\/[^\n]*|"[^"]*"|[\w.*]+|[{}\[\]]/g) ?? []).filter((token) => !token.startsWith("/"));
|
|
2177
|
+
}
|
|
2173
2178
|
function moduleMapName(text2) {
|
|
2174
|
-
|
|
2179
|
+
const tokens = moduleMapTokens(text2);
|
|
2180
|
+
const index = tokens.findIndex(
|
|
2181
|
+
(token, i) => token === "module" && tokens[i - 1] !== "extern"
|
|
2182
|
+
);
|
|
2183
|
+
return index < 0 ? void 0 : tokens[index + 1];
|
|
2184
|
+
}
|
|
2185
|
+
function swiftPackageIdentity(url) {
|
|
2186
|
+
const path7 = url.endsWith("/") ? url.slice(0, -1) : url;
|
|
2187
|
+
return (path7.split("/").pop() ?? path7).replace(/\.git$/, "").toLowerCase();
|
|
2188
|
+
}
|
|
2189
|
+
|
|
2190
|
+
// src/swift-package-manifest.ts
|
|
2191
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2192
|
+
import { execFileSync as execFileSync3 } from "node:child_process";
|
|
2193
|
+
import { createHash as createHash3 } from "node:crypto";
|
|
2194
|
+
import fs3 from "node:fs";
|
|
2195
|
+
import os2 from "node:os";
|
|
2196
|
+
import path3 from "node:path";
|
|
2197
|
+
|
|
2198
|
+
// src/home-paths.ts
|
|
2199
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2200
|
+
import { randomUUID } from "node:crypto";
|
|
2201
|
+
import fs from "node:fs";
|
|
2202
|
+
import { homedir } from "node:os";
|
|
2203
|
+
import path from "node:path";
|
|
2204
|
+
var PEACH_HOME_ENV = "PEACH_HOME";
|
|
2205
|
+
function rnxHomeDir() {
|
|
2206
|
+
const override = process.env[PEACH_HOME_ENV];
|
|
2207
|
+
if (override && override.length > 0) return path.resolve(override);
|
|
2208
|
+
return path.join(homedir(), ".peach");
|
|
2209
|
+
}
|
|
2210
|
+
function cacheDir() {
|
|
2211
|
+
return path.join(rnxHomeDir(), "cache");
|
|
2212
|
+
}
|
|
2213
|
+
function swiftPackageCacheOptions() {
|
|
2214
|
+
const root = path.join(cacheDir(), "swiftpm");
|
|
2215
|
+
return ["cache", "config", "security"].flatMap((name) => [
|
|
2216
|
+
`--${name}-path`,
|
|
2217
|
+
path.join(root, name)
|
|
2218
|
+
]);
|
|
2219
|
+
}
|
|
2220
|
+
var DAEMON_LOCKFILE_MAX_BYTES = 16 * 1024;
|
|
2221
|
+
|
|
2222
|
+
// src/swift-distribution.lock.json
|
|
2223
|
+
var swift_distribution_lock_default = {
|
|
2224
|
+
id: "d2c6d715951f5e98",
|
|
2225
|
+
release: "swift-6.4.0-RELEASE-custom-ecd2ad9d3fe59329",
|
|
2226
|
+
wasmSdkId: "swift-6.4.0-RELEASE_wasm-peach-cbf01f4b",
|
|
2227
|
+
wasmSdkUrl: "https://r2.sootsim.com/swift-wasm-sdk/swift-6.4.0-RELEASE_wasm-peach-cbf01f4b.artifactbundle.tar.gz",
|
|
2228
|
+
wasmSdkChecksum: "2243db65b12743d577fecc6aa27761363ccef470202f1fef2582e58750c0da4f",
|
|
2229
|
+
source: "723697c8df030077d06e7e760259e494f6a1c5a8",
|
|
2230
|
+
targets: [
|
|
2231
|
+
"ImagePlayground",
|
|
2232
|
+
"QuickLookThumbnailing",
|
|
2233
|
+
"libxml2",
|
|
2234
|
+
"CarPlay",
|
|
2235
|
+
"System",
|
|
2236
|
+
"_LocationEssentials",
|
|
2237
|
+
"GeoToolbox",
|
|
2238
|
+
"DataDetection",
|
|
2239
|
+
"Accessibility",
|
|
2240
|
+
"Contacts",
|
|
2241
|
+
"CoreML",
|
|
2242
|
+
"EventKit",
|
|
2243
|
+
"CloudKit",
|
|
2244
|
+
"IOSurface",
|
|
2245
|
+
"OpenGLES",
|
|
2246
|
+
"ContactsUI",
|
|
2247
|
+
"CoreLocationUI",
|
|
2248
|
+
"MediaPlayer",
|
|
2249
|
+
"MediaAccessibility",
|
|
2250
|
+
"MusicKit",
|
|
2251
|
+
"RealityKit",
|
|
2252
|
+
"SecureElementCredential",
|
|
2253
|
+
"Social",
|
|
2254
|
+
"SceneKit",
|
|
2255
|
+
"CoreBluetooth",
|
|
2256
|
+
"HealthKit",
|
|
2257
|
+
"CoreNFC",
|
|
2258
|
+
"Speech",
|
|
2259
|
+
"Vision",
|
|
2260
|
+
"VisionKit",
|
|
2261
|
+
"WorkoutKit",
|
|
2262
|
+
"_PassKit_SwiftUI",
|
|
2263
|
+
"ExpoModulesCore",
|
|
2264
|
+
"_MapKit_SwiftUI",
|
|
2265
|
+
"PeachJSON",
|
|
2266
|
+
"PeachFoundation",
|
|
2267
|
+
"FoundationNetworking",
|
|
2268
|
+
"DeveloperToolsSupport",
|
|
2269
|
+
"SwiftUI",
|
|
2270
|
+
"DarwinRecords",
|
|
2271
|
+
"Darwin",
|
|
2272
|
+
"MachO",
|
|
2273
|
+
"PeachObjCRuntime",
|
|
2274
|
+
"PeachObjC",
|
|
2275
|
+
"UIUtilities",
|
|
2276
|
+
"UIKitEnums",
|
|
2277
|
+
"UIKitCore",
|
|
2278
|
+
"PeachICU",
|
|
2279
|
+
"PeachCMark",
|
|
2280
|
+
"CoreImage",
|
|
2281
|
+
"QuartzCore",
|
|
2282
|
+
"CoreGraphics",
|
|
2283
|
+
"AppTrackingTransparency",
|
|
2284
|
+
"StoreKit",
|
|
2285
|
+
"_StoreKit_SwiftUI",
|
|
2286
|
+
"WeatherKit",
|
|
2287
|
+
"DeviceCheck",
|
|
2288
|
+
"PassKit",
|
|
2289
|
+
"Translation",
|
|
2290
|
+
"TipKit",
|
|
2291
|
+
"CoreSpotlight",
|
|
2292
|
+
"CoreVideo",
|
|
2293
|
+
"CoreMedia",
|
|
2294
|
+
"VideoToolbox",
|
|
2295
|
+
"AdSupport",
|
|
2296
|
+
"BackgroundTasks",
|
|
2297
|
+
"LocalAuthentication",
|
|
2298
|
+
"CoreMotion",
|
|
2299
|
+
"MessageUI",
|
|
2300
|
+
"GameController",
|
|
2301
|
+
"GameKit",
|
|
2302
|
+
"MetricKit",
|
|
2303
|
+
"Metal",
|
|
2304
|
+
"AuthenticationServices",
|
|
2305
|
+
"os",
|
|
2306
|
+
"Charts",
|
|
2307
|
+
"Symbols",
|
|
2308
|
+
"UniformTypeIdentifiers",
|
|
2309
|
+
"WidgetKit",
|
|
2310
|
+
"ActivityKit",
|
|
2311
|
+
"SwiftData",
|
|
2312
|
+
"UIKit",
|
|
2313
|
+
"React",
|
|
2314
|
+
"Combine",
|
|
2315
|
+
"PeachFoundationCombine",
|
|
2316
|
+
"AppIntents",
|
|
2317
|
+
"PhotosUI",
|
|
2318
|
+
"AVFoundation",
|
|
2319
|
+
"AVFAudio",
|
|
2320
|
+
"UserNotifications",
|
|
2321
|
+
"Network",
|
|
2322
|
+
"NetworkExtension",
|
|
2323
|
+
"OSLog",
|
|
2324
|
+
"PeachSecurityRuntime",
|
|
2325
|
+
"Accelerate",
|
|
2326
|
+
"CoreText",
|
|
2327
|
+
"CFNetwork",
|
|
2328
|
+
"CommonCrypto",
|
|
2329
|
+
"PeachCodec",
|
|
2330
|
+
"Compression",
|
|
2331
|
+
"zlib",
|
|
2332
|
+
"CryptoKit",
|
|
2333
|
+
"TikTokBusinessSDK",
|
|
2334
|
+
"nSure",
|
|
2335
|
+
"Statsig",
|
|
2336
|
+
"TOCropViewController",
|
|
2337
|
+
"RiveRuntime",
|
|
2338
|
+
"AVRouting",
|
|
2339
|
+
"CoreData",
|
|
2340
|
+
"PDFKit",
|
|
2341
|
+
"ModelIOEnums",
|
|
2342
|
+
"ModelIO",
|
|
2343
|
+
"MetalKit",
|
|
2344
|
+
"DatadogCore",
|
|
2345
|
+
"DatadogLogs",
|
|
2346
|
+
"DatadogRUM",
|
|
2347
|
+
"DatadogTrace",
|
|
2348
|
+
"AppLovinSDK",
|
|
2349
|
+
"GoogleMobileAds",
|
|
2350
|
+
"AppsFlyerLib",
|
|
2351
|
+
"FBSDKCoreKit",
|
|
2352
|
+
"FBAEMKit",
|
|
2353
|
+
"FBSDKCoreKit_Basics",
|
|
2354
|
+
"FirebaseCore",
|
|
2355
|
+
"FirebaseSharedSwift",
|
|
2356
|
+
"FirebaseRemoteConfig",
|
|
2357
|
+
"FirebaseFirestoreInternal",
|
|
2358
|
+
"FirebaseAnalytics",
|
|
2359
|
+
"FirebaseAppCheck",
|
|
2360
|
+
"FirebaseAuth",
|
|
2361
|
+
"FirebaseCrashlytics",
|
|
2362
|
+
"FirebaseFirestore",
|
|
2363
|
+
"FirebaseStorage",
|
|
2364
|
+
"Firebase",
|
|
2365
|
+
"Intercom",
|
|
2366
|
+
"FBAudienceNetwork",
|
|
2367
|
+
"NaturalLanguage",
|
|
2368
|
+
"AVKit",
|
|
2369
|
+
"SafariServices",
|
|
2370
|
+
"QuickLook",
|
|
2371
|
+
"CoreHaptics",
|
|
2372
|
+
"WebKit",
|
|
2373
|
+
"Photos",
|
|
2374
|
+
"LinkPresentation",
|
|
2375
|
+
"FoundationModels",
|
|
2376
|
+
"CoreTransferable",
|
|
2377
|
+
"AudioToolbox",
|
|
2378
|
+
"CoreAudioTypes",
|
|
2379
|
+
"AudioUnit",
|
|
2380
|
+
"Intents",
|
|
2381
|
+
"IntentsUI",
|
|
2382
|
+
"WatchConnectivity",
|
|
2383
|
+
"CoreServices",
|
|
2384
|
+
"MobileCoreServices",
|
|
2385
|
+
"CoreTelephony",
|
|
2386
|
+
"SystemConfiguration",
|
|
2387
|
+
"ImageIO",
|
|
2388
|
+
"CoreLocationEnums",
|
|
2389
|
+
"CoreLocation",
|
|
2390
|
+
"MapKit",
|
|
2391
|
+
"One",
|
|
2392
|
+
"simd",
|
|
2393
|
+
"GLKit",
|
|
2394
|
+
"GameplayKit",
|
|
2395
|
+
"SpriteKit",
|
|
2396
|
+
"PeachBox2D"
|
|
2397
|
+
],
|
|
2398
|
+
systemEnvironment: {
|
|
2399
|
+
scenePhase: ["string:active", "string:inactive", "string:background"],
|
|
2400
|
+
colorScheme: ["string:light", "string:dark"],
|
|
2401
|
+
semanticColors: ["object"],
|
|
2402
|
+
deviceModel: ["string"],
|
|
2403
|
+
systemName: ["string"],
|
|
2404
|
+
systemVersion: ["string"],
|
|
2405
|
+
locale: ["string"],
|
|
2406
|
+
dynamicTypeSize: [
|
|
2407
|
+
"string:xSmall",
|
|
2408
|
+
"string:small",
|
|
2409
|
+
"string:medium",
|
|
2410
|
+
"string:large",
|
|
2411
|
+
"string:xLarge",
|
|
2412
|
+
"string:xxLarge",
|
|
2413
|
+
"string:xxxLarge",
|
|
2414
|
+
"string:accessibility1",
|
|
2415
|
+
"string:accessibility2",
|
|
2416
|
+
"string:accessibility3",
|
|
2417
|
+
"string:accessibility4",
|
|
2418
|
+
"string:accessibility5"
|
|
2419
|
+
],
|
|
2420
|
+
accessibilityReduceMotion: ["bool"],
|
|
2421
|
+
horizontalSizeClass: ["string:compact", "string:regular"],
|
|
2422
|
+
verticalSizeClass: ["string:compact", "string:regular"],
|
|
2423
|
+
imageAssets: ["object"]
|
|
2424
|
+
},
|
|
2425
|
+
hosts: {
|
|
2426
|
+
"darwin-arm64": {
|
|
2427
|
+
sha256: "3b47173dfa25473dfc3c76e46b1203efdc7c2101eca02eb6c89692d66561e78e",
|
|
2428
|
+
size: 81210958
|
|
2429
|
+
},
|
|
2430
|
+
"linux-x64": {
|
|
2431
|
+
sha256: "d11f5fe29845064c390ec980c641c6a70b0199a7f5b6cd445ddc362ff5a2394f",
|
|
2432
|
+
size: 81209921
|
|
2433
|
+
},
|
|
2434
|
+
"linux-arm64": {
|
|
2435
|
+
sha256: "df9ab4453985dbbaf335610f6ab62a15f6f63175869dd484f359b702f316dfac",
|
|
2436
|
+
size: 81209987
|
|
2437
|
+
}
|
|
2438
|
+
}
|
|
2439
|
+
};
|
|
2440
|
+
|
|
2441
|
+
// src/swift-toolchain.ts
|
|
2442
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2443
|
+
import { execFileSync as execFileSync2 } from "node:child_process";
|
|
2444
|
+
import { createHash as createHash2 } from "node:crypto";
|
|
2445
|
+
import fs2 from "node:fs";
|
|
2446
|
+
import os from "node:os";
|
|
2447
|
+
import path2 from "node:path";
|
|
2448
|
+
import { fileURLToPath } from "node:url";
|
|
2449
|
+
function swiftToolchainBin(release) {
|
|
2450
|
+
if (process.platform === "darwin") {
|
|
2451
|
+
const dirs = [os.homedir(), "/"].map(
|
|
2452
|
+
(base) => path2.join(base, `Library/Developer/Toolchains/${release}.xctoolchain/usr/bin`)
|
|
2453
|
+
);
|
|
2454
|
+
return dirs.find((dir) => fs2.existsSync(path2.join(dir, "swift"))) ?? dirs[0];
|
|
2455
|
+
}
|
|
2456
|
+
if (process.env.CONTRAST_SWIFT_TOOLCHAINS) {
|
|
2457
|
+
return path2.join(process.env.CONTRAST_SWIFT_TOOLCHAINS, release, "usr/bin");
|
|
2458
|
+
}
|
|
2459
|
+
const image = path2.join("/opt/swift", release, "usr/bin");
|
|
2460
|
+
if (fs2.existsSync(path2.join(image, "swift"))) return image;
|
|
2461
|
+
if (release.includes("-custom-"))
|
|
2462
|
+
return path2.join(peachHome(), "swift", "toolchains", release, "usr/bin");
|
|
2463
|
+
return (process.env.PATH ?? "").split(path2.delimiter).find((dir) => dir && fs2.existsSync(path2.join(dir, "swift"))) ?? image;
|
|
2464
|
+
}
|
|
2465
|
+
function peachHome() {
|
|
2466
|
+
const override = process.env.PEACH_HOME;
|
|
2467
|
+
return override ? path2.resolve(override) : path2.join(os.homedir(), ".peach");
|
|
2468
|
+
}
|
|
2469
|
+
var scratch;
|
|
2470
|
+
function swiftEnvironment(base = process.env) {
|
|
2471
|
+
if (!scratch) return base;
|
|
2472
|
+
return {
|
|
2473
|
+
...base,
|
|
2474
|
+
TMPDIR: scratch.directory,
|
|
2475
|
+
XDG_CONFIG_HOME: path2.join(scratch.home, ".config"),
|
|
2476
|
+
XDG_CACHE_HOME: path2.join(scratch.home, ".cache"),
|
|
2477
|
+
XDG_DATA_HOME: path2.join(scratch.home, ".local", "share"),
|
|
2478
|
+
...process.platform === "linux" ? { HOME: scratch.home } : {}
|
|
2479
|
+
};
|
|
2480
|
+
}
|
|
2481
|
+
|
|
2482
|
+
// src/swift-package-manifest.ts
|
|
2483
|
+
function swiftCommand() {
|
|
2484
|
+
return path3.join(swiftToolchainBin(swift_distribution_lock_default.release), "swift");
|
|
2485
|
+
}
|
|
2486
|
+
var cacheDir2 = path3.join(cacheDir(), "swift-manifests");
|
|
2487
|
+
var requirementClause = (item) => {
|
|
2488
|
+
const url = JSON.stringify(item.url);
|
|
2489
|
+
const requirement = item.requirement;
|
|
2490
|
+
if (requirement.kind === "upToNextMajorVersion")
|
|
2491
|
+
return `.package(url: ${url}, from: ${JSON.stringify(requirement.minimumVersion)})`;
|
|
2492
|
+
if (requirement.kind === "upToNextMinorVersion")
|
|
2493
|
+
return `.package(url: ${url}, .upToNextMinor(from: ${JSON.stringify(requirement.minimumVersion)}))`;
|
|
2494
|
+
if (requirement.kind === "versionRange")
|
|
2495
|
+
return `.package(url: ${url}, ${JSON.stringify(requirement.minimumVersion)}..<${JSON.stringify(requirement.maximumVersion)})`;
|
|
2496
|
+
if (requirement.kind === "exactVersion")
|
|
2497
|
+
return `.package(url: ${url}, exact: ${JSON.stringify(requirement.version)})`;
|
|
2498
|
+
if (requirement.kind === "branch")
|
|
2499
|
+
return `.package(url: ${url}, branch: ${JSON.stringify(requirement.branch)})`;
|
|
2500
|
+
return `.package(url: ${url}, revision: ${JSON.stringify(requirement.revision)})`;
|
|
2501
|
+
};
|
|
2502
|
+
function resolveSwiftPackageRequirements(requirements, destination) {
|
|
2503
|
+
const repository = (url) => url.replace(/(?:\.git)?\/?$/, "");
|
|
2504
|
+
const chosen = /* @__PURE__ */ new Map();
|
|
2505
|
+
for (const item of requirements) {
|
|
2506
|
+
const identity = swiftPackageIdentity(item.url);
|
|
2507
|
+
const previous = chosen.get(identity);
|
|
2508
|
+
if (previous && (repository(previous.url) !== repository(item.url) || JSON.stringify(previous.requirement) !== JSON.stringify(item.requirement)))
|
|
2509
|
+
throw new Error(
|
|
2510
|
+
`conflicting requirements for ${identity}: ${previous.url} ${JSON.stringify(previous.requirement)}; ${item.url} ${JSON.stringify(item.requirement)}`
|
|
2511
|
+
);
|
|
2512
|
+
if (!previous) chosen.set(identity, item);
|
|
2513
|
+
}
|
|
2514
|
+
const clauses = [...chosen.values()].sort(
|
|
2515
|
+
(a, b) => swiftPackageIdentity(a.url).localeCompare(swiftPackageIdentity(b.url))
|
|
2516
|
+
).map(requirementClause);
|
|
2517
|
+
const manifest = `// swift-tools-version:5.9
|
|
2518
|
+
import PackageDescription
|
|
2519
|
+
let package = Package(
|
|
2520
|
+
name: "Resolve",
|
|
2521
|
+
dependencies: [
|
|
2522
|
+
${clauses.join(",\n ")},
|
|
2523
|
+
]
|
|
2524
|
+
)
|
|
2525
|
+
`;
|
|
2526
|
+
const dir = fs3.mkdtempSync(path3.join(os2.tmpdir(), "peach-resolve-"));
|
|
2527
|
+
try {
|
|
2528
|
+
fs3.writeFileSync(path3.join(dir, "Package.swift"), manifest);
|
|
2529
|
+
try {
|
|
2530
|
+
execFileSync3(
|
|
2531
|
+
swiftCommand(),
|
|
2532
|
+
[
|
|
2533
|
+
"package",
|
|
2534
|
+
...swiftPackageCacheOptions(),
|
|
2535
|
+
"--package-path",
|
|
2536
|
+
dir,
|
|
2537
|
+
"--scratch-path",
|
|
2538
|
+
path3.join(dir, ".build"),
|
|
2539
|
+
"resolve"
|
|
2540
|
+
],
|
|
2541
|
+
{
|
|
2542
|
+
encoding: "utf8",
|
|
2543
|
+
env: { ...swiftEnvironment(), GIT_TERMINAL_PROMPT: "0" },
|
|
2544
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
2545
|
+
maxBuffer: 32 * 1024 * 1024
|
|
2546
|
+
}
|
|
2547
|
+
);
|
|
2548
|
+
} catch (error) {
|
|
2549
|
+
const stderr = error instanceof Error && "stderr" in error ? String(error.stderr).trim() : "";
|
|
2550
|
+
throw new Error(
|
|
2551
|
+
`swiftpm could not resolve ${clauses.length} package requirements${stderr ? `: ${stderr}` : ""}`
|
|
2552
|
+
);
|
|
2553
|
+
}
|
|
2554
|
+
const resolved = path3.join(dir, "Package.resolved");
|
|
2555
|
+
if (!fs3.existsSync(resolved))
|
|
2556
|
+
throw new Error("swift package resolve wrote no Package.resolved");
|
|
2557
|
+
fs3.mkdirSync(path3.dirname(destination), { recursive: true });
|
|
2558
|
+
fs3.copyFileSync(resolved, destination);
|
|
2559
|
+
} finally {
|
|
2560
|
+
fs3.rmSync(dir, { recursive: true, force: true });
|
|
2561
|
+
}
|
|
2175
2562
|
}
|
|
2176
2563
|
|
|
2177
2564
|
// src/xcode-json-project.ts
|
|
2178
2565
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2179
2566
|
var import_json5 = __toESM(require_lib(), 1);
|
|
2180
|
-
import
|
|
2567
|
+
import path4 from "node:path";
|
|
2181
2568
|
var isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
2182
2569
|
var text = (value) => typeof value === "string" ? value : void 0;
|
|
2183
2570
|
var items = (value) => Array.isArray(value) ? value : [];
|
|
2571
|
+
function remoteVersionRequirement(entry) {
|
|
2572
|
+
const revision = text(entry.revision);
|
|
2573
|
+
if (revision !== void 0) return { requirement: { kind: "revision", revision } };
|
|
2574
|
+
const branch = text(entry.branch);
|
|
2575
|
+
if (branch !== void 0) return { requirement: { kind: "branch", branch } };
|
|
2576
|
+
const version = text(entry.version);
|
|
2577
|
+
if (version !== void 0) return { requirement: { kind: "exactVersion", version } };
|
|
2578
|
+
const minor = text(entry["up-to-next-minor-version"]);
|
|
2579
|
+
if (minor !== void 0)
|
|
2580
|
+
return { requirement: { kind: "upToNextMinorVersion", minimumVersion: minor } };
|
|
2581
|
+
const major = text(entry["up-to-next-major-version"]);
|
|
2582
|
+
if (major !== void 0)
|
|
2583
|
+
return { requirement: { kind: "upToNextMajorVersion", minimumVersion: major } };
|
|
2584
|
+
const range = text(entry["version-range"]);
|
|
2585
|
+
if (range !== void 0) {
|
|
2586
|
+
const bounds = range.split("..<");
|
|
2587
|
+
const minimum2 = bounds[0];
|
|
2588
|
+
const maximum2 = bounds[1];
|
|
2589
|
+
if (bounds.length !== 2 || !minimum2 || !maximum2 || bounds[2] !== void 0)
|
|
2590
|
+
throw new Error(
|
|
2591
|
+
`${text(entry.repository) ?? "package"} has a version-range that is not min..<max`
|
|
2592
|
+
);
|
|
2593
|
+
return {
|
|
2594
|
+
requirement: {
|
|
2595
|
+
kind: "versionRange",
|
|
2596
|
+
minimumVersion: minimum2,
|
|
2597
|
+
maximumVersion: maximum2
|
|
2598
|
+
}
|
|
2599
|
+
};
|
|
2600
|
+
}
|
|
2601
|
+
const minimum = text(entry["version-range-min"]);
|
|
2602
|
+
const maximum = text(entry["version-range-max"]);
|
|
2603
|
+
if (minimum !== void 0 && maximum !== void 0)
|
|
2604
|
+
return {
|
|
2605
|
+
requirement: {
|
|
2606
|
+
kind: "versionRange",
|
|
2607
|
+
minimumVersion: minimum,
|
|
2608
|
+
maximumVersion: maximum
|
|
2609
|
+
}
|
|
2610
|
+
};
|
|
2611
|
+
return void 0;
|
|
2612
|
+
}
|
|
2184
2613
|
var PHASE_ISA = {
|
|
2185
2614
|
"compile-sources": "PBXSourcesBuildPhase",
|
|
2186
2615
|
resources: "PBXResourcesBuildPhase",
|
|
@@ -2192,7 +2621,7 @@ var PHASE_ISA = {
|
|
|
2192
2621
|
function readXcodeJsonProject(xcodeproj, source) {
|
|
2193
2622
|
const json = import_json5.default.parse(source);
|
|
2194
2623
|
if (!isJsonObject(json)) throw new Error(`${xcodeproj}/project.xcproj is not an object`);
|
|
2195
|
-
const projectDir =
|
|
2624
|
+
const projectDir = path4.dirname(xcodeproj);
|
|
2196
2625
|
const objects = {};
|
|
2197
2626
|
let next = 0;
|
|
2198
2627
|
const add = (entry, id) => {
|
|
@@ -2205,7 +2634,7 @@ function readXcodeJsonProject(xcodeproj, source) {
|
|
|
2205
2634
|
const base = /^<([A-Z]+)>\/(.*)$/.exec(raw);
|
|
2206
2635
|
if (base) {
|
|
2207
2636
|
if (base[1] === "PROJECT")
|
|
2208
|
-
return { sourceTree: "<absolute>", path:
|
|
2637
|
+
return { sourceTree: "<absolute>", path: path4.join(projectDir, base[2]) };
|
|
2209
2638
|
if (base[1] === "PRODUCTS")
|
|
2210
2639
|
return { sourceTree: "BUILT_PRODUCTS_DIR", path: base[2] };
|
|
2211
2640
|
return null;
|
|
@@ -2213,7 +2642,7 @@ function readXcodeJsonProject(xcodeproj, source) {
|
|
|
2213
2642
|
const unescaped = raw.replaceAll("\\<", "<");
|
|
2214
2643
|
if (unescaped.startsWith("/")) return { sourceTree: "<absolute>", path: unescaped };
|
|
2215
2644
|
if (unescaped.startsWith("~")) return null;
|
|
2216
|
-
return groupDir === null ? null : { sourceTree: "<absolute>", path:
|
|
2645
|
+
return groupDir === null ? null : { sourceTree: "<absolute>", path: path4.join(groupDir, unescaped) };
|
|
2217
2646
|
};
|
|
2218
2647
|
const memberships = [];
|
|
2219
2648
|
const folders = [];
|
|
@@ -2224,7 +2653,7 @@ function readXcodeJsonProject(xcodeproj, source) {
|
|
|
2224
2653
|
const kind = text(entry.kind) ?? "file-reference";
|
|
2225
2654
|
const raw = text(entry.path) ?? "";
|
|
2226
2655
|
const located = raw === "" ? null : locate(raw, parent.dir);
|
|
2227
|
-
const name = text(entry.name) ??
|
|
2656
|
+
const name = text(entry.name) ?? path4.basename(raw);
|
|
2228
2657
|
const node = { id: "", name, dir: null, parent, children: [] };
|
|
2229
2658
|
if (kind === "group" || kind === "variant-group" || kind === "version-group") {
|
|
2230
2659
|
node.dir = raw === "" ? parent.dir : located?.sourceTree === "<absolute>" ? located.path : null;
|
|
@@ -2345,8 +2774,12 @@ function readXcodeJsonProject(xcodeproj, source) {
|
|
|
2345
2774
|
if (!isObject(entry)) continue;
|
|
2346
2775
|
const repository = text(entry.repository);
|
|
2347
2776
|
const local = text(entry.path);
|
|
2348
|
-
const name = local !== void 0 ?
|
|
2349
|
-
const id = text(entry.kind) === "local" && local !== void 0 ? add({ isa: "XCLocalSwiftPackageReference", relativePath: local }) : add({
|
|
2777
|
+
const name = local !== void 0 ? path4.basename(path4.resolve(path4.dirname(xcodeproj), local)) : path4.basename(repository ?? "").replace(/\.git$/, "");
|
|
2778
|
+
const id = text(entry.kind) === "local" && local !== void 0 ? add({ isa: "XCLocalSwiftPackageReference", relativePath: local }) : add({
|
|
2779
|
+
isa: "XCRemoteSwiftPackageReference",
|
|
2780
|
+
repositoryURL: repository ?? "",
|
|
2781
|
+
...remoteVersionRequirement(entry)
|
|
2782
|
+
});
|
|
2350
2783
|
packageIds.set(name.toLowerCase(), id);
|
|
2351
2784
|
}
|
|
2352
2785
|
const productDependency = (entry) => add({
|
|
@@ -2534,28 +2967,28 @@ var CONDITIONS = {
|
|
|
2534
2967
|
variant: "normal"
|
|
2535
2968
|
};
|
|
2536
2969
|
function walkFiles(dir) {
|
|
2537
|
-
if (!
|
|
2970
|
+
if (!fs4.existsSync(dir)) return [];
|
|
2538
2971
|
const out = [];
|
|
2539
|
-
for (const entry of
|
|
2972
|
+
for (const entry of fs4.readdirSync(dir, { withFileTypes: true }).sort((left, right) => left.name.localeCompare(right.name))) {
|
|
2540
2973
|
if (entry.name.startsWith(".")) continue;
|
|
2541
|
-
const full =
|
|
2974
|
+
const full = path5.join(dir, entry.name);
|
|
2542
2975
|
if (entry.isDirectory()) out.push(...walkFiles(full));
|
|
2543
2976
|
else if (entry.isFile()) out.push(full);
|
|
2544
2977
|
}
|
|
2545
2978
|
return out;
|
|
2546
2979
|
}
|
|
2547
|
-
var isDirectory = (dir) =>
|
|
2980
|
+
var isDirectory = (dir) => fs4.existsSync(dir) && fs4.statSync(dir).isDirectory();
|
|
2548
2981
|
function readXcconfig(file, read) {
|
|
2549
|
-
if (read.includes(file) || !
|
|
2982
|
+
if (read.includes(file) || !fs4.existsSync(file)) return {};
|
|
2550
2983
|
read.push(file);
|
|
2551
2984
|
const settings = {};
|
|
2552
|
-
for (const raw of
|
|
2985
|
+
for (const raw of fs4.readFileSync(file, "utf8").split("\n")) {
|
|
2553
2986
|
const line = raw.replace(/\/\/.*$/, "").trim();
|
|
2554
2987
|
const include = /^#include\??\s+"([^"]+)"/.exec(line);
|
|
2555
2988
|
if (include) {
|
|
2556
2989
|
Object.assign(
|
|
2557
2990
|
settings,
|
|
2558
|
-
readXcconfig(
|
|
2991
|
+
readXcconfig(path5.resolve(path5.dirname(file), include[1]), read)
|
|
2559
2992
|
);
|
|
2560
2993
|
continue;
|
|
2561
2994
|
}
|
|
@@ -2605,22 +3038,22 @@ function decodeXml(text2) {
|
|
|
2605
3038
|
return text2.replaceAll(""", '"').replaceAll("'", "'").replaceAll("<", "<").replaceAll(">", ">").replaceAll("&", "&");
|
|
2606
3039
|
}
|
|
2607
3040
|
function workspaceReferences(workspace) {
|
|
2608
|
-
const data =
|
|
2609
|
-
if (!
|
|
3041
|
+
const data = path5.join(workspace, "contents.xcworkspacedata");
|
|
3042
|
+
if (!fs4.existsSync(data))
|
|
2610
3043
|
throw new Error(`${workspace} has no contents.xcworkspacedata`);
|
|
2611
|
-
const container =
|
|
3044
|
+
const container = path5.dirname(workspace);
|
|
2612
3045
|
const locate = (location, base) => {
|
|
2613
3046
|
const colon = location.indexOf(":");
|
|
2614
3047
|
const kind = location.slice(0, colon);
|
|
2615
3048
|
const rest = location.slice(colon + 1);
|
|
2616
|
-
if (kind === "group") return
|
|
2617
|
-
if (kind === "container" || kind === "self") return
|
|
2618
|
-
if (kind === "absolute") return
|
|
2619
|
-
throw new Error(`${
|
|
3049
|
+
if (kind === "group") return path5.resolve(base, rest);
|
|
3050
|
+
if (kind === "container" || kind === "self") return path5.resolve(container, rest);
|
|
3051
|
+
if (kind === "absolute") return path5.resolve(rest);
|
|
3052
|
+
throw new Error(`${path5.basename(workspace)} has an unsupported location ${location}`);
|
|
2620
3053
|
};
|
|
2621
3054
|
const groups = [container];
|
|
2622
3055
|
const references = [];
|
|
2623
|
-
for (const [, closing, tag, attributes, selfClosing] of
|
|
3056
|
+
for (const [, closing, tag, attributes, selfClosing] of fs4.readFileSync(data, "utf8").matchAll(/<(\/?)(Group|FileRef)\b([^>]*?)(\/?)>/g)) {
|
|
2624
3057
|
if (closing) {
|
|
2625
3058
|
if (tag === "Group") groups.pop();
|
|
2626
3059
|
continue;
|
|
@@ -2633,11 +3066,46 @@ function workspaceReferences(workspace) {
|
|
|
2633
3066
|
}
|
|
2634
3067
|
return references;
|
|
2635
3068
|
}
|
|
3069
|
+
function versionRequirement(url, requirement) {
|
|
3070
|
+
const kind = str(requirement.kind);
|
|
3071
|
+
const minimum = str(requirement.minimumVersion);
|
|
3072
|
+
const maximum = str(requirement.maximumVersion);
|
|
3073
|
+
const version = str(requirement.version);
|
|
3074
|
+
const branch = str(requirement.branch);
|
|
3075
|
+
const revision = str(requirement.revision);
|
|
3076
|
+
if (kind === "upToNextMajorVersion" && minimum)
|
|
3077
|
+
return { kind: "upToNextMajorVersion", minimumVersion: minimum };
|
|
3078
|
+
if (kind === "upToNextMinorVersion" && minimum)
|
|
3079
|
+
return { kind: "upToNextMinorVersion", minimumVersion: minimum };
|
|
3080
|
+
if (kind === "versionRange" && minimum && maximum)
|
|
3081
|
+
return { kind: "versionRange", minimumVersion: minimum, maximumVersion: maximum };
|
|
3082
|
+
if (kind === "exactVersion" && version) return { kind: "exactVersion", version };
|
|
3083
|
+
if (kind === "branch" && branch) return { kind: "branch", branch };
|
|
3084
|
+
if (kind === "revision" && revision) return { kind: "revision", revision };
|
|
3085
|
+
throw new Error(
|
|
3086
|
+
`${url} has an unsupported package requirement${kind ? ` (${kind})` : ""}`
|
|
3087
|
+
);
|
|
3088
|
+
}
|
|
3089
|
+
function remotePackageRequirements(projects) {
|
|
3090
|
+
const out = [];
|
|
3091
|
+
for (const project of projects) {
|
|
3092
|
+
for (const id of list(project.project.packageReferences)) {
|
|
3093
|
+
const reference = project.object(id);
|
|
3094
|
+
if (reference?.isa !== "XCRemoteSwiftPackageReference") continue;
|
|
3095
|
+
const url = str(reference.repositoryURL);
|
|
3096
|
+
if (!url) continue;
|
|
3097
|
+
const requirement = reference.requirement;
|
|
3098
|
+
if (!isDict(requirement)) throw new Error(`${url} has no version requirement`);
|
|
3099
|
+
out.push({ url, requirement: versionRequirement(url, requirement) });
|
|
3100
|
+
}
|
|
3101
|
+
}
|
|
3102
|
+
return out;
|
|
3103
|
+
}
|
|
2636
3104
|
var loaded = /* @__PURE__ */ new Map();
|
|
2637
3105
|
function xcodeProjectFile(xcodeproj) {
|
|
2638
3106
|
for (const name of ["project.pbxproj", "project.xcproj"]) {
|
|
2639
|
-
const file =
|
|
2640
|
-
if (
|
|
3107
|
+
const file = path5.join(xcodeproj, name);
|
|
3108
|
+
if (fs4.existsSync(file)) return file;
|
|
2641
3109
|
}
|
|
2642
3110
|
return null;
|
|
2643
3111
|
}
|
|
@@ -2645,8 +3113,8 @@ function loadProject(xcodeproj) {
|
|
|
2645
3113
|
const projectFile = xcodeProjectFile(xcodeproj);
|
|
2646
3114
|
if (!projectFile)
|
|
2647
3115
|
throw new Error(`${xcodeproj} has no project.pbxproj or project.xcproj`);
|
|
2648
|
-
const source =
|
|
2649
|
-
const digest =
|
|
3116
|
+
const source = fs4.readFileSync(projectFile, "utf8");
|
|
3117
|
+
const digest = createHash4("sha256").update(source).digest("hex");
|
|
2650
3118
|
const cached = loaded.get(projectFile);
|
|
2651
3119
|
if (cached?.digest === digest) return cached.project;
|
|
2652
3120
|
const root = projectFile.endsWith(".xcproj") ? readXcodeJsonProject(xcodeproj, source) : parseOpenStepPlist(source);
|
|
@@ -2662,10 +3130,10 @@ function loadProject(xcodeproj) {
|
|
|
2662
3130
|
if (!project || project.isa !== "PBXProject") {
|
|
2663
3131
|
throw new Error(`${projectFile} has no PBXProject root`);
|
|
2664
3132
|
}
|
|
2665
|
-
const projectDir =
|
|
2666
|
-
|
|
3133
|
+
const projectDir = fs4.realpathSync(
|
|
3134
|
+
path5.resolve(path5.dirname(xcodeproj), str(project.projectDirPath) ?? "")
|
|
2667
3135
|
);
|
|
2668
|
-
const resolvePath = xcodePathResolver(objects, projectDir,
|
|
3136
|
+
const resolvePath = xcodePathResolver(objects, projectDir, path5.join);
|
|
2669
3137
|
const result = {
|
|
2670
3138
|
xcodeproj,
|
|
2671
3139
|
projectFile,
|
|
@@ -2699,8 +3167,8 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
|
|
|
2699
3167
|
const relative2 = str(config.baseConfigurationReferenceRelativePath);
|
|
2700
3168
|
const own = isDict(config.buildSettings) ? config.buildSettings : {};
|
|
2701
3169
|
const directory = anchor ? project.resolvePath(anchor) : null;
|
|
2702
|
-
const baseFile = base ? project.resolvePath(base) : directory && relative2 ?
|
|
2703
|
-
if (options.requireSources !== false && (base || anchor || relative2) && (!baseFile || !
|
|
3170
|
+
const baseFile = base ? project.resolvePath(base) : directory && relative2 ? path5.resolve(directory, relative2) : null;
|
|
3171
|
+
if (options.requireSources !== false && (base || anchor || relative2) && (!baseFile || !fs4.existsSync(baseFile)))
|
|
2704
3172
|
throw new Error(
|
|
2705
3173
|
`Unable to open base configuration reference file '${baseFile ?? base ?? relative2 ?? anchor}'`
|
|
2706
3174
|
);
|
|
@@ -2779,26 +3247,26 @@ function settingList(value) {
|
|
|
2779
3247
|
return items2;
|
|
2780
3248
|
}
|
|
2781
3249
|
function expandSearchPath(directory, rules) {
|
|
2782
|
-
if (
|
|
3250
|
+
if (path5.basename(directory) !== "**") return [directory];
|
|
2783
3251
|
const expanded = [];
|
|
2784
3252
|
const seen = /* @__PURE__ */ new Set();
|
|
2785
|
-
const queue = [
|
|
3253
|
+
const queue = [path5.dirname(directory)];
|
|
2786
3254
|
for (let at = 0; at < queue.length; at++) {
|
|
2787
3255
|
const current = queue[at];
|
|
2788
3256
|
let real;
|
|
2789
3257
|
try {
|
|
2790
|
-
real =
|
|
3258
|
+
real = fs4.realpathSync(current);
|
|
2791
3259
|
} catch {
|
|
2792
3260
|
continue;
|
|
2793
3261
|
}
|
|
2794
|
-
if (!
|
|
3262
|
+
if (!fs4.statSync(real).isDirectory() || seen.has(real)) continue;
|
|
2795
3263
|
seen.add(real);
|
|
2796
3264
|
expanded.push(current);
|
|
2797
|
-
for (const entry of
|
|
3265
|
+
for (const entry of fs4.readdirSync(real, { withFileTypes: true }).sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0)) {
|
|
2798
3266
|
if (entry.isSymbolicLink() ? !rules.followLinks : !entry.isDirectory()) continue;
|
|
2799
3267
|
if (rules.excluded.some((pattern) => pattern.test(entry.name)) && !rules.included.some((pattern) => pattern.test(entry.name)))
|
|
2800
3268
|
continue;
|
|
2801
|
-
queue.push(
|
|
3269
|
+
queue.push(path5.join(current, entry.name));
|
|
2802
3270
|
}
|
|
2803
3271
|
}
|
|
2804
3272
|
return expanded;
|
|
@@ -2840,8 +3308,54 @@ function expand(value, lookup) {
|
|
|
2840
3308
|
);
|
|
2841
3309
|
}
|
|
2842
3310
|
var preparedSourcePhases = /* @__PURE__ */ new Map();
|
|
3311
|
+
function shellCopies(script, settings, projectDir) {
|
|
3312
|
+
const assigned = /* @__PURE__ */ new Map();
|
|
3313
|
+
const copies = [];
|
|
3314
|
+
let resolved = true;
|
|
3315
|
+
const lookup = (name) => {
|
|
3316
|
+
const value = assigned.get(name) ?? settings(name);
|
|
3317
|
+
if (value === "") resolved = false;
|
|
3318
|
+
return value;
|
|
3319
|
+
};
|
|
3320
|
+
const word = (token2) => {
|
|
3321
|
+
if (/\$\{[A-Za-z_][A-Za-z0-9_]*(?::?[-+=?]|[#%/^,])/.test(token2)) return null;
|
|
3322
|
+
resolved = true;
|
|
3323
|
+
const quote = token2[0];
|
|
3324
|
+
const value = quote === "'" ? token2.slice(1, -1) : expand(quote === '"' ? token2.slice(1, -1) : token2, lookup);
|
|
3325
|
+
return resolved && !value.includes("$") ? value : null;
|
|
3326
|
+
};
|
|
3327
|
+
const token = /^(?:"[^"\\`]*"|'[^']*'|[^\s"'`;&|<>()\\]+)$/;
|
|
3328
|
+
for (const raw of script.split(/\r?\n/)) {
|
|
3329
|
+
const line = raw.trim().replace(/^export\s+/, "");
|
|
3330
|
+
if (line === "" || line.startsWith("#") || /^set\s+-[A-Za-z]+(\s+\w+)?$/.test(line))
|
|
3331
|
+
continue;
|
|
3332
|
+
const tokens = line.match(/"[^"]*"|'[^']*'|\S+/g) ?? [];
|
|
3333
|
+
if (!tokens.every(
|
|
3334
|
+
(value, index) => token.test(index === 0 ? value.replace(/^[A-Za-z_][A-Za-z0-9_]*=/, "") : value)
|
|
3335
|
+
))
|
|
3336
|
+
return [];
|
|
3337
|
+
const assignment = /^([A-Za-z_][A-Za-z0-9_]*)=(.*)$/.exec(line);
|
|
3338
|
+
if (assignment) {
|
|
3339
|
+
const value = tokens.length === 1 ? word(assignment[2]) : null;
|
|
3340
|
+
if (value === null) return [];
|
|
3341
|
+
assigned.set(assignment[1], value);
|
|
3342
|
+
continue;
|
|
3343
|
+
}
|
|
3344
|
+
if (tokens[0] !== "cp" && tokens[0] !== "echo") return [];
|
|
3345
|
+
const operands = tokens.slice(1).map(word);
|
|
3346
|
+
if (operands.includes(null)) return [];
|
|
3347
|
+
if (tokens[0] === "echo") continue;
|
|
3348
|
+
if (operands.length !== 2 || operands.some((operand) => operand.startsWith("-")))
|
|
3349
|
+
return [];
|
|
3350
|
+
copies.push({
|
|
3351
|
+
from: path5.resolve(projectDir, operands[0]),
|
|
3352
|
+
to: path5.resolve(projectDir, operands[1])
|
|
3353
|
+
});
|
|
3354
|
+
}
|
|
3355
|
+
return copies;
|
|
3356
|
+
}
|
|
2843
3357
|
function fileListEntries(file, absolute) {
|
|
2844
|
-
return
|
|
3358
|
+
return fs4.readFileSync(file, "utf8").split(/\r?\n/).map((line) => line.trim()).filter((line) => line !== "" && !line.startsWith("#")).map(absolute);
|
|
2845
3359
|
}
|
|
2846
3360
|
function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
2847
3361
|
const { project, target, id: targetId } = ref;
|
|
@@ -2851,14 +3365,19 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
2851
3365
|
const headers = /* @__PURE__ */ new Set();
|
|
2852
3366
|
const resources = /* @__PURE__ */ new Set();
|
|
2853
3367
|
const scriptForOutput = /* @__PURE__ */ new Map();
|
|
3368
|
+
const copiedFiles = [];
|
|
3369
|
+
let generatedInfoPlist = false;
|
|
2854
3370
|
const declaredInfoPlist = settings("INFOPLIST_FILE");
|
|
2855
|
-
const infoPlistOutput = declaredInfoPlist ?
|
|
3371
|
+
const infoPlistOutput = declaredInfoPlist ? path5.resolve(project.projectDir, declaredInfoPlist) : null;
|
|
2856
3372
|
const isPreparedOutput = (file) => file === infoPlistOutput || options.requireSources !== false && file.endsWith(".swift");
|
|
2857
3373
|
for (const phaseId of list(target.buildPhases)) {
|
|
2858
3374
|
const phase = project.object(phaseId);
|
|
2859
3375
|
if (phase?.isa !== "PBXShellScriptBuildPhase") continue;
|
|
2860
3376
|
const script = str(phase.name) ?? phaseId;
|
|
2861
|
-
|
|
3377
|
+
copiedFiles.push(
|
|
3378
|
+
...shellCopies(str(phase.shellScript) ?? "", settings, project.projectDir)
|
|
3379
|
+
);
|
|
3380
|
+
const absolute = (raw) => path5.resolve(project.projectDir, expand(raw, settings));
|
|
2862
3381
|
const inputs = list(phase.inputPaths).map(absolute);
|
|
2863
3382
|
const outputs = list(phase.outputPaths).map(absolute);
|
|
2864
3383
|
const fileLists = /* @__PURE__ */ new Map();
|
|
@@ -2867,7 +3386,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
2867
3386
|
kind === "INPUT" ? phase.inputFileListPaths : phase.outputFileListPaths
|
|
2868
3387
|
).map((raw) => {
|
|
2869
3388
|
const file = absolute(raw);
|
|
2870
|
-
if (!
|
|
3389
|
+
if (!fs4.existsSync(file)) {
|
|
2871
3390
|
return { file, entries: [] };
|
|
2872
3391
|
}
|
|
2873
3392
|
return { file, entries: fileListEntries(file, absolute) };
|
|
@@ -2878,6 +3397,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
2878
3397
|
...outputs,
|
|
2879
3398
|
...fileLists.get("OUTPUT").flatMap((item) => item.entries)
|
|
2880
3399
|
];
|
|
3400
|
+
if (allOutputs.includes(infoPlistOutput)) generatedInfoPlist = true;
|
|
2881
3401
|
for (const output of allOutputs)
|
|
2882
3402
|
if (output.endsWith(".swift") && !scriptForOutput.has(output))
|
|
2883
3403
|
scriptForOutput.set(output, script);
|
|
@@ -2887,13 +3407,13 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
2887
3407
|
...fileLists.get("OUTPUT").map((item) => item.file)
|
|
2888
3408
|
];
|
|
2889
3409
|
if (allOutputs.some((file) => file.endsWith(".swift") || file === infoPlistOutput)) {
|
|
2890
|
-
for (const file of inputFiles) if (
|
|
3410
|
+
for (const file of inputFiles) if (fs4.existsSync(file)) projectInputs.add(file);
|
|
2891
3411
|
}
|
|
2892
|
-
if (options.prepareGeneratedSources && allOutputs.some(isPreparedOutput)) {
|
|
2893
|
-
const phaseDir =
|
|
3412
|
+
if (options.prepareGeneratedSources === true && allOutputs.some(isPreparedOutput)) {
|
|
3413
|
+
const phaseDir = path5.join(settings("TARGET_TEMP_DIR"), `Script-${phaseId}`);
|
|
2894
3414
|
for (const lists of fileLists.values())
|
|
2895
3415
|
for (const { file } of lists)
|
|
2896
|
-
if (!
|
|
3416
|
+
if (!fs4.existsSync(file))
|
|
2897
3417
|
throw new Error(
|
|
2898
3418
|
`${targetName}: Run Script "${script}" missing file list ${file}`
|
|
2899
3419
|
);
|
|
@@ -2912,48 +3432,48 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
2912
3432
|
const lists = fileLists.get(kind);
|
|
2913
3433
|
env[`SCRIPT_${kind}_FILE_LIST_COUNT`] = String(lists.length);
|
|
2914
3434
|
lists.forEach((_item, index) => {
|
|
2915
|
-
env[`SCRIPT_${kind}_FILE_LIST_${index}`] =
|
|
3435
|
+
env[`SCRIPT_${kind}_FILE_LIST_${index}`] = path5.join(
|
|
2916
3436
|
phaseDir,
|
|
2917
3437
|
`${kind}-${index}.xcfilelist`
|
|
2918
3438
|
);
|
|
2919
3439
|
});
|
|
2920
3440
|
}
|
|
2921
|
-
const signature =
|
|
3441
|
+
const signature = createHash4("sha256").update(
|
|
2922
3442
|
JSON.stringify([phase, [...settingKeys].map((key2) => [key2, settings(key2)])])
|
|
2923
3443
|
);
|
|
2924
3444
|
for (const file of inputFiles) {
|
|
2925
3445
|
signature.update(file);
|
|
2926
|
-
if (
|
|
2927
|
-
const stat =
|
|
3446
|
+
if (fs4.existsSync(file)) {
|
|
3447
|
+
const stat = fs4.statSync(file);
|
|
2928
3448
|
signature.update(`${stat.mtimeMs}:${stat.ctimeMs}:${stat.size}`);
|
|
2929
3449
|
} else signature.update("missing");
|
|
2930
3450
|
}
|
|
2931
3451
|
const stamp = signature.digest("hex");
|
|
2932
3452
|
const key = `${project.projectFile}:${targetId}:${phaseId}:${settings("CONFIGURATION")}`;
|
|
2933
|
-
if (preparedSourcePhases.get(key) === stamp && allOutputs.every((file) =>
|
|
3453
|
+
if (preparedSourcePhases.get(key) === stamp && allOutputs.every((file) => fs4.existsSync(file)))
|
|
2934
3454
|
continue;
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
3455
|
+
fs4.mkdirSync(phaseDir, { recursive: true });
|
|
3456
|
+
fs4.mkdirSync(settings("BUILT_PRODUCTS_DIR"), { recursive: true });
|
|
3457
|
+
fs4.mkdirSync(settings("DERIVED_FILE_DIR"), { recursive: true });
|
|
2938
3458
|
for (const output of allOutputs)
|
|
2939
|
-
|
|
3459
|
+
fs4.mkdirSync(path5.dirname(output), { recursive: true });
|
|
2940
3460
|
for (const [kind, lists] of fileLists)
|
|
2941
3461
|
lists.forEach((item, index) => {
|
|
2942
|
-
|
|
3462
|
+
fs4.writeFileSync(
|
|
2943
3463
|
env[`SCRIPT_${kind}_FILE_LIST_${index}`],
|
|
2944
3464
|
`${item.entries.join("\n")}
|
|
2945
3465
|
`
|
|
2946
3466
|
);
|
|
2947
3467
|
});
|
|
2948
3468
|
try {
|
|
2949
|
-
|
|
3469
|
+
execFileSync4(
|
|
2950
3470
|
str(phase.shellPath) ?? "/bin/sh",
|
|
2951
3471
|
["-c", str(phase.shellScript) ?? ""],
|
|
2952
3472
|
{
|
|
2953
3473
|
cwd: project.projectDir,
|
|
2954
3474
|
env,
|
|
2955
3475
|
stdio: ["ignore", "pipe", "pipe"],
|
|
2956
|
-
|
|
3476
|
+
maxBuffer: Infinity
|
|
2957
3477
|
}
|
|
2958
3478
|
);
|
|
2959
3479
|
} catch (error) {
|
|
@@ -2965,7 +3485,7 @@ ${output}`
|
|
|
2965
3485
|
);
|
|
2966
3486
|
}
|
|
2967
3487
|
const missing = allOutputs.filter(
|
|
2968
|
-
(file) =>
|
|
3488
|
+
(file) => file === infoPlistOutput && !fs4.existsSync(file)
|
|
2969
3489
|
);
|
|
2970
3490
|
if (missing.length > 0)
|
|
2971
3491
|
throw new Error(
|
|
@@ -2978,8 +3498,8 @@ ${output}`
|
|
|
2978
3498
|
project.objects,
|
|
2979
3499
|
targetId,
|
|
2980
3500
|
project.resolvePath,
|
|
2981
|
-
(file) => isDirectory(file) ? walkFiles(file) :
|
|
2982
|
-
|
|
3501
|
+
(file) => isDirectory(file) ? walkFiles(file) : fs4.existsSync(file) ? [file] : [],
|
|
3502
|
+
path5.join,
|
|
2983
3503
|
(file, kind) => {
|
|
2984
3504
|
if (kind === "header") {
|
|
2985
3505
|
headers.add(file);
|
|
@@ -2989,9 +3509,9 @@ ${output}`
|
|
|
2989
3509
|
resources.add(file);
|
|
2990
3510
|
return;
|
|
2991
3511
|
}
|
|
2992
|
-
if (!
|
|
3512
|
+
if (!fs4.existsSync(file)) {
|
|
2993
3513
|
if (options.requireSources === false) return;
|
|
2994
|
-
const script = scriptForOutput.get(
|
|
3514
|
+
const script = scriptForOutput.get(path5.normalize(file));
|
|
2995
3515
|
throw new Error(
|
|
2996
3516
|
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}`
|
|
2997
3517
|
);
|
|
@@ -3000,20 +3520,19 @@ ${output}`
|
|
|
3000
3520
|
if (file.endsWith(".swift")) sources.add(file);
|
|
3001
3521
|
}
|
|
3002
3522
|
);
|
|
3003
|
-
for (const [file
|
|
3523
|
+
for (const [file] of scriptForOutput) {
|
|
3004
3524
|
if (sources.has(file) || allSources.has(file)) continue;
|
|
3005
|
-
if (!
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
}
|
|
3011
|
-
allSources.add(file);
|
|
3012
|
-
sources.add(file);
|
|
3525
|
+
if (!fs4.existsSync(file)) continue;
|
|
3526
|
+
const canonical = fs4.realpathSync(file);
|
|
3527
|
+
if (sources.has(canonical) || allSources.has(canonical)) continue;
|
|
3528
|
+
allSources.add(canonical);
|
|
3529
|
+
sources.add(canonical);
|
|
3013
3530
|
}
|
|
3014
3531
|
return {
|
|
3015
3532
|
sources: [...sources].sort(),
|
|
3016
3533
|
resources: [...resources].sort(),
|
|
3534
|
+
copiedFiles,
|
|
3535
|
+
generatedInfoPlist,
|
|
3017
3536
|
allSources: [...allSources].sort(),
|
|
3018
3537
|
headers: [...headers].sort()
|
|
3019
3538
|
};
|
|
@@ -3021,37 +3540,37 @@ ${output}`
|
|
|
3021
3540
|
function commonAncestor(dirs) {
|
|
3022
3541
|
let common = dirs[0];
|
|
3023
3542
|
for (const dir of dirs) {
|
|
3024
|
-
while (common !==
|
|
3025
|
-
common =
|
|
3543
|
+
while (common !== path5.dirname(common) && path5.relative(common, dir).startsWith(".."))
|
|
3544
|
+
common = path5.dirname(common);
|
|
3026
3545
|
}
|
|
3027
3546
|
return common;
|
|
3028
3547
|
}
|
|
3029
|
-
var isPodsProject = (xcodeproj) =>
|
|
3548
|
+
var isPodsProject = (xcodeproj) => path5.basename(xcodeproj) === "Pods.xcodeproj" && path5.basename(path5.dirname(xcodeproj)) === "Pods";
|
|
3030
3549
|
function installedPodsSandbox(pods) {
|
|
3031
|
-
const podfileLock =
|
|
3032
|
-
const manifestLock =
|
|
3033
|
-
if (!
|
|
3550
|
+
const podfileLock = path5.join(path5.dirname(pods), "Podfile.lock");
|
|
3551
|
+
const manifestLock = path5.join(pods, "Manifest.lock");
|
|
3552
|
+
if (!fs4.existsSync(podfileLock))
|
|
3034
3553
|
throw new Error(
|
|
3035
|
-
`${pods} has no ${podfileLock}: run \`pod install\` in ${
|
|
3554
|
+
`${pods} has no ${podfileLock}: run \`pod install\` in ${path5.dirname(pods)}`
|
|
3036
3555
|
);
|
|
3037
|
-
if (!
|
|
3556
|
+
if (!fs4.existsSync(manifestLock) || !fs4.readFileSync(manifestLock).equals(fs4.readFileSync(podfileLock)))
|
|
3038
3557
|
throw new Error(
|
|
3039
|
-
`The sandbox is not in sync with the Podfile.lock: ${manifestLock} differs from ${podfileLock}. Run \`pod install\` in ${
|
|
3558
|
+
`The sandbox is not in sync with the Podfile.lock: ${manifestLock} differs from ${podfileLock}. Run \`pod install\` in ${path5.dirname(pods)}`
|
|
3040
3559
|
);
|
|
3041
3560
|
const specChecksums = {};
|
|
3042
|
-
const lines =
|
|
3561
|
+
const lines = fs4.readFileSync(manifestLock, "utf8").split("\n");
|
|
3043
3562
|
const start = lines.indexOf("SPEC CHECKSUMS:");
|
|
3044
3563
|
for (const line of start === -1 ? [] : lines.slice(start + 1)) {
|
|
3045
3564
|
const entry = /^ {2}"?([^":]+)"?: ([0-9a-f]+)$/.exec(line);
|
|
3046
3565
|
if (!entry) break;
|
|
3047
3566
|
specChecksums[entry[1]] = entry[2];
|
|
3048
3567
|
}
|
|
3049
|
-
const specs =
|
|
3568
|
+
const specs = path5.join(pods, "Local Podspecs");
|
|
3050
3569
|
return {
|
|
3051
3570
|
podfileLock,
|
|
3052
3571
|
manifestLock,
|
|
3053
3572
|
specChecksums,
|
|
3054
|
-
localPodspecs: isDirectory(specs) ?
|
|
3573
|
+
localPodspecs: isDirectory(specs) ? fs4.readdirSync(specs).filter((name) => name.endsWith(".podspec.json")).sort().map((name) => path5.join(specs, name)) : []
|
|
3055
3574
|
};
|
|
3056
3575
|
}
|
|
3057
3576
|
function workspaceProjects(xcodeprojOrWorkspace, installedPods = false) {
|
|
@@ -3063,14 +3582,14 @@ function workspaceProjects(xcodeprojOrWorkspace, installedPods = false) {
|
|
|
3063
3582
|
if (!xcodeProjectFile(xcodeproj)) {
|
|
3064
3583
|
if (installedPods && isPodsProject(xcodeproj))
|
|
3065
3584
|
throw new Error(
|
|
3066
|
-
`${
|
|
3585
|
+
`${path5.basename(xcodeprojOrWorkspace)} builds ${xcodeproj}, which is not installed: run \`pod install\` in ${path5.dirname(path5.dirname(xcodeproj))}`
|
|
3067
3586
|
);
|
|
3068
3587
|
return;
|
|
3069
3588
|
}
|
|
3070
|
-
const key =
|
|
3071
|
-
if (projectAt.has(key) || !installedPods && key.split(
|
|
3589
|
+
const key = fs4.realpathSync(xcodeproj);
|
|
3590
|
+
if (projectAt.has(key) || !installedPods && key.split(path5.sep).includes("Pods"))
|
|
3072
3591
|
return;
|
|
3073
|
-
if (isPodsProject(key)) cocoapods = installedPodsSandbox(
|
|
3592
|
+
if (isPodsProject(key)) cocoapods = installedPodsSandbox(path5.dirname(key));
|
|
3074
3593
|
const project = loadProject(key);
|
|
3075
3594
|
projectAt.set(key, project);
|
|
3076
3595
|
projects.push(project);
|
|
@@ -3086,12 +3605,12 @@ function workspaceProjects(xcodeprojOrWorkspace, installedPods = false) {
|
|
|
3086
3605
|
for (const reference of listed)
|
|
3087
3606
|
if (reference.endsWith(".xcodeproj")) addProject(reference);
|
|
3088
3607
|
if (projects.length === 0) {
|
|
3089
|
-
throw new Error(`${
|
|
3608
|
+
throw new Error(`${path5.basename(xcodeprojOrWorkspace)} lists no Xcode project`);
|
|
3090
3609
|
}
|
|
3091
|
-
const podfile =
|
|
3092
|
-
if (installedPods && !cocoapods &&
|
|
3610
|
+
const podfile = path5.join(path5.dirname(xcodeprojOrWorkspace), "Podfile");
|
|
3611
|
+
if (installedPods && !cocoapods && fs4.existsSync(podfile))
|
|
3093
3612
|
throw new Error(
|
|
3094
|
-
`${podfile} is not installed into ${
|
|
3613
|
+
`${podfile} is not installed into ${path5.basename(xcodeprojOrWorkspace)}: run \`pod install\` in ${path5.dirname(podfile)} and open the workspace it writes`
|
|
3095
3614
|
);
|
|
3096
3615
|
return { listed, projects, projectAt, cocoapods };
|
|
3097
3616
|
}
|
|
@@ -3127,7 +3646,7 @@ function listXcodeAppTargets(xcodeprojOrWorkspace, options = {}) {
|
|
|
3127
3646
|
return workspaceProjects(xcodeprojOrWorkspace).projects.flatMap(projectTargets).filter((ref) => isIosAppTarget(ref, options)).map((ref) => str(ref.target.name) ?? ref.id);
|
|
3128
3647
|
}
|
|
3129
3648
|
function readXcodeAppTarget(input, targetName, configurationName, options = {}) {
|
|
3130
|
-
const xcodeprojOrWorkspace =
|
|
3649
|
+
const xcodeprojOrWorkspace = fs4.realpathSync(input);
|
|
3131
3650
|
const workspace = xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : null;
|
|
3132
3651
|
const { listed, projects, projectAt, cocoapods } = workspaceProjects(
|
|
3133
3652
|
xcodeprojOrWorkspace,
|
|
@@ -3136,7 +3655,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3136
3655
|
const allTargets = projects.flatMap(projectTargets);
|
|
3137
3656
|
const appTargets = allTargets.filter((ref) => isIosAppTarget(ref, options));
|
|
3138
3657
|
const appTargetNames = appTargets.map((ref) => str(ref.target.name) ?? ref.id);
|
|
3139
|
-
const container =
|
|
3658
|
+
const container = path5.basename(xcodeprojOrWorkspace);
|
|
3140
3659
|
const named = targetName ? appTargets.filter((ref) => ref.target.name === targetName) : appTargets;
|
|
3141
3660
|
if (named.length !== 1) {
|
|
3142
3661
|
throw new Error(
|
|
@@ -3149,15 +3668,15 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3149
3668
|
for (const ref of allTargets) {
|
|
3150
3669
|
const product = ref.project.object(str(ref.target.productReference));
|
|
3151
3670
|
const file = str(product?.path);
|
|
3152
|
-
if (file && !byProduct.has(
|
|
3153
|
-
byProduct.set(
|
|
3671
|
+
if (file && !byProduct.has(path5.basename(file)))
|
|
3672
|
+
byProduct.set(path5.basename(file), ref);
|
|
3154
3673
|
}
|
|
3155
3674
|
const proxied = (project, proxyId) => {
|
|
3156
3675
|
const proxy = project.object(proxyId);
|
|
3157
3676
|
if (proxy?.isa !== "PBXContainerItemProxy") return void 0;
|
|
3158
3677
|
const portal = str(proxy.containerPortal);
|
|
3159
3678
|
const portalPath = project.resolvePath(portal ?? "");
|
|
3160
|
-
const owner = project.object(portal)?.isa === "PBXProject" ? project : portalPath &&
|
|
3679
|
+
const owner = project.object(portal)?.isa === "PBXProject" ? project : portalPath && fs4.existsSync(portalPath) ? projectAt.get(fs4.realpathSync(portalPath)) : void 0;
|
|
3161
3680
|
const remote = str(proxy.remoteGlobalIDString);
|
|
3162
3681
|
if (!owner || !remote) return void 0;
|
|
3163
3682
|
return projectTargets(owner).find(
|
|
@@ -3178,7 +3697,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3178
3697
|
if (phase?.isa !== "PBXFrameworksBuildPhase") continue;
|
|
3179
3698
|
for (const buildFileId of list(phase.files)) {
|
|
3180
3699
|
const file = project.object(str(project.object(buildFileId)?.fileRef));
|
|
3181
|
-
const resolved = file?.isa === "PBXReferenceProxy" ? proxied(project, str(file.remoteRef)) : file && str(file.sourceTree) === "BUILT_PRODUCTS_DIR" ? byProduct.get(
|
|
3700
|
+
const resolved = file?.isa === "PBXReferenceProxy" ? proxied(project, str(file.remoteRef)) : file && str(file.sourceTree) === "BUILT_PRODUCTS_DIR" ? byProduct.get(path5.basename(str(file.path) ?? "")) : void 0;
|
|
3182
3701
|
if (resolved) found.push(resolved);
|
|
3183
3702
|
}
|
|
3184
3703
|
}
|
|
@@ -3217,6 +3736,25 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3217
3736
|
{ TARGET_NAME: str(ref.target.name) ?? ref.id },
|
|
3218
3737
|
options
|
|
3219
3738
|
).get("PRODUCT_NAME");
|
|
3739
|
+
const syncHeaderCache = /* @__PURE__ */ new Map();
|
|
3740
|
+
const synchronizedHeaders = (ref) => {
|
|
3741
|
+
const key = `${ref.project.xcodeproj}\0${ref.id}`;
|
|
3742
|
+
const cached = syncHeaderCache.get(key);
|
|
3743
|
+
if (cached) return cached;
|
|
3744
|
+
const found = [];
|
|
3745
|
+
visitXcodeTargetMembers(
|
|
3746
|
+
ref.project.objects,
|
|
3747
|
+
ref.id,
|
|
3748
|
+
ref.project.resolvePath,
|
|
3749
|
+
(file) => isDirectory(file) ? walkFiles(file) : fs4.existsSync(file) ? [file] : [],
|
|
3750
|
+
path5.join,
|
|
3751
|
+
(file, kind) => {
|
|
3752
|
+
if (kind === "header") found.push(file);
|
|
3753
|
+
}
|
|
3754
|
+
);
|
|
3755
|
+
syncHeaderCache.set(key, found);
|
|
3756
|
+
return found;
|
|
3757
|
+
};
|
|
3220
3758
|
const projectHeaderMaps = /* @__PURE__ */ new Map();
|
|
3221
3759
|
const projectHeaderMap = (project) => {
|
|
3222
3760
|
const cached = projectHeaderMaps.get(project);
|
|
@@ -3225,26 +3763,41 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3225
3763
|
for (const ref of projectTargets(project)) {
|
|
3226
3764
|
const product = productName(ref);
|
|
3227
3765
|
for (const { file, visibility } of headerPhase(ref)) {
|
|
3228
|
-
const name =
|
|
3766
|
+
const name = path5.basename(file);
|
|
3229
3767
|
if (!entries.has(name))
|
|
3230
3768
|
entries.set(name, visibility !== "Project" ? `${product}/${name}` : file);
|
|
3231
3769
|
}
|
|
3770
|
+
for (const file of synchronizedHeaders(ref)) {
|
|
3771
|
+
const name = path5.basename(file);
|
|
3772
|
+
if (!entries.has(name)) entries.set(name, file);
|
|
3773
|
+
}
|
|
3774
|
+
}
|
|
3775
|
+
for (const ref of projectTargets(project)) {
|
|
3776
|
+
for (const groupId of list(ref.target.fileSystemSynchronizedGroups)) {
|
|
3777
|
+
const folder = project.resolvePath(groupId);
|
|
3778
|
+
if (folder === null) continue;
|
|
3779
|
+
for (const file of walkFiles(folder)) {
|
|
3780
|
+
if (!HEADER_FILE.test(file)) continue;
|
|
3781
|
+
const name = path5.basename(file);
|
|
3782
|
+
if (!entries.has(name)) entries.set(name, file);
|
|
3783
|
+
}
|
|
3784
|
+
}
|
|
3232
3785
|
}
|
|
3233
3786
|
for (const id of Object.keys(project.objects)) {
|
|
3234
3787
|
if (project.object(id)?.isa !== "PBXFileReference") continue;
|
|
3235
3788
|
const file = project.resolvePath(id);
|
|
3236
|
-
if (file && HEADER_FILE.test(file) && !entries.has(
|
|
3237
|
-
entries.set(
|
|
3789
|
+
if (file && HEADER_FILE.test(file) && !entries.has(path5.basename(file)))
|
|
3790
|
+
entries.set(path5.basename(file), file);
|
|
3238
3791
|
}
|
|
3239
3792
|
const map = [...entries];
|
|
3240
3793
|
projectHeaderMaps.set(project, map);
|
|
3241
3794
|
return map;
|
|
3242
3795
|
};
|
|
3243
3796
|
const xcconfigs = /* @__PURE__ */ new Set();
|
|
3244
|
-
const buildDir = (project) =>
|
|
3797
|
+
const buildDir = (project) => path5.join(project.projectDir, ".build/peach-xcode/Build");
|
|
3245
3798
|
const podsBuild = {
|
|
3246
|
-
SYMROOT:
|
|
3247
|
-
OBJROOT:
|
|
3799
|
+
SYMROOT: path5.join(buildDir(app.project), "Products"),
|
|
3800
|
+
OBJROOT: path5.join(buildDir(app.project), "Intermediates.noindex")
|
|
3248
3801
|
};
|
|
3249
3802
|
const moduleTarget = (ref) => {
|
|
3250
3803
|
const name = str(ref.target.name) ?? ref.id;
|
|
@@ -3259,15 +3812,15 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3259
3812
|
TARGET_NAME: name,
|
|
3260
3813
|
TARGETNAME: "$(TARGET_NAME)",
|
|
3261
3814
|
PROJECT: "$(PROJECT_NAME)",
|
|
3262
|
-
PROJECT_NAME:
|
|
3815
|
+
PROJECT_NAME: path5.basename(ref.project.xcodeproj, ".xcodeproj"),
|
|
3263
3816
|
PROJECT_FILE_PATH: ref.project.xcodeproj,
|
|
3264
3817
|
SRCROOT: ref.project.projectDir,
|
|
3265
3818
|
SOURCE_ROOT: ref.project.projectDir,
|
|
3266
3819
|
PROJECT_DIR: ref.project.projectDir,
|
|
3267
|
-
SYMROOT:
|
|
3820
|
+
SYMROOT: path5.join(buildDir(ref.project), "Products"),
|
|
3268
3821
|
BUILD_DIR: "$(SYMROOT)",
|
|
3269
3822
|
BUILD_ROOT: "$(SYMROOT)",
|
|
3270
|
-
OBJROOT:
|
|
3823
|
+
OBJROOT: path5.join(buildDir(ref.project), "Intermediates.noindex"),
|
|
3271
3824
|
CONFIGURATION_BUILD_DIR: "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)",
|
|
3272
3825
|
BUILT_PRODUCTS_DIR: "$(CONFIGURATION_BUILD_DIR)",
|
|
3273
3826
|
TARGET_BUILD_DIR: "$(CONFIGURATION_BUILD_DIR)",
|
|
@@ -3280,6 +3833,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3280
3833
|
TEMP_ROOT: "$(OBJROOT)",
|
|
3281
3834
|
DERIVED_FILE_DIR: "$(TARGET_TEMP_DIR)/DerivedSources",
|
|
3282
3835
|
DERIVED_FILES_DIR: "$(DERIVED_FILE_DIR)",
|
|
3836
|
+
DERIVED_SOURCES_DIR: "$(DERIVED_FILE_DIR)",
|
|
3283
3837
|
PLATFORM_NAME: "iphonesimulator",
|
|
3284
3838
|
EFFECTIVE_PLATFORM_NAME: "-iphonesimulator",
|
|
3285
3839
|
CURRENT_ARCH: "arm64",
|
|
@@ -3300,11 +3854,38 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3300
3854
|
xcconfigs
|
|
3301
3855
|
);
|
|
3302
3856
|
const searchRules = recursiveSearchRules(settings2);
|
|
3303
|
-
const absolute = (file) =>
|
|
3857
|
+
const absolute = (file) => path5.resolve(ref.project.projectDir, file);
|
|
3304
3858
|
const framework = FRAMEWORK_PRODUCTS.has(str(ref.target.productType) ?? "");
|
|
3305
3859
|
const product = settings2("PRODUCT_NAME");
|
|
3860
|
+
const moduleName = applyOperator(settings2("PRODUCT_MODULE_NAME"), "c99extidentifier");
|
|
3861
|
+
const compatibilityPhases = list(ref.target.buildPhases).flatMap((id) => {
|
|
3862
|
+
const phase = ref.project.object(id);
|
|
3863
|
+
if (phase?.isa !== "PBXShellScriptBuildPhase" || str(phase.name) !== "Copy generated compatibility header")
|
|
3864
|
+
return [];
|
|
3865
|
+
const inputs = list(phase.inputPaths).map(
|
|
3866
|
+
(file) => absolute(expand(file, settings2))
|
|
3867
|
+
);
|
|
3868
|
+
const outputs = list(phase.outputPaths).map(
|
|
3869
|
+
(file) => absolute(expand(file, settings2))
|
|
3870
|
+
);
|
|
3871
|
+
const moduleMap2 = inputs.find((file) => file.endsWith(".modulemap"));
|
|
3872
|
+
const umbrella = inputs.find((file) => file.endsWith("-umbrella.h"));
|
|
3873
|
+
const outputModuleMap = outputs.find((file) => file.endsWith(".modulemap"));
|
|
3874
|
+
const outputUmbrella = outputs.find((file) => file.endsWith("-umbrella.h"));
|
|
3875
|
+
const outputHeader = outputs.find((file) => file.endsWith(`/${moduleName}-Swift.h`));
|
|
3876
|
+
if (!moduleMap2 || !umbrella || !outputModuleMap || !outputUmbrella || !outputHeader)
|
|
3877
|
+
throw new Error(`${name}: incomplete CocoaPods Swift compatibility header phase`);
|
|
3878
|
+
return [{ id, moduleMap: moduleMap2, umbrella, outputModuleMap, outputUmbrella, outputHeader }];
|
|
3879
|
+
});
|
|
3880
|
+
if (compatibilityPhases.length > 1)
|
|
3881
|
+
throw new Error(`${name}: multiple CocoaPods Swift compatibility header phases`);
|
|
3882
|
+
const compatibility = compatibilityPhases[0];
|
|
3883
|
+
if (compatibility && members.sources.length === 0)
|
|
3884
|
+
throw new Error(
|
|
3885
|
+
`${name}: Swift compatibility header phase has no Swift producer sources`
|
|
3886
|
+
);
|
|
3306
3887
|
const building = options.prepareGeneratedSources && options.requireSources !== false;
|
|
3307
|
-
const versioning = building && allSources.length > 0 && settings2("VERSIONING_SYSTEM") === "apple-generic" ?
|
|
3888
|
+
const versioning = building && allSources.length > 0 && settings2("VERSIONING_SYSTEM") === "apple-generic" ? path5.join(settings2("DERIVED_FILE_DIR"), `${product}_vers.c`) : null;
|
|
3308
3889
|
if (versioning) {
|
|
3309
3890
|
const version = settings2("CURRENT_PROJECT_VERSION");
|
|
3310
3891
|
const custom = [
|
|
@@ -3317,7 +3898,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3317
3898
|
].filter((key) => settings2(key));
|
|
3318
3899
|
if (custom.length)
|
|
3319
3900
|
throw new Error(
|
|
3320
|
-
`${name}: Xcode generates ${
|
|
3901
|
+
`${name}: Xcode generates ${path5.basename(versioning)} with ${custom.join(", ")}; peach does not model VERSION_INFO_* overrides`
|
|
3321
3902
|
);
|
|
3322
3903
|
const symbol = product.replace(/^[^A-Za-z_]/, "_").replace(/[^A-Za-z0-9_]/g, "_");
|
|
3323
3904
|
const [major, minor] = version.split(".");
|
|
@@ -3330,9 +3911,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3330
3911
|
` const double ${symbol}VersionNumber __attribute__ ((used)) = (double)${number};`,
|
|
3331
3912
|
""
|
|
3332
3913
|
].join("\n");
|
|
3333
|
-
if (!
|
|
3334
|
-
|
|
3335
|
-
|
|
3914
|
+
if (!fs4.existsSync(versioning) || fs4.readFileSync(versioning, "utf8") !== unit) {
|
|
3915
|
+
fs4.mkdirSync(path5.dirname(versioning), { recursive: true });
|
|
3916
|
+
fs4.writeFileSync(versioning, unit);
|
|
3336
3917
|
}
|
|
3337
3918
|
allSources.push(versioning);
|
|
3338
3919
|
}
|
|
@@ -3351,29 +3932,36 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3351
3932
|
const headerFiles = headerPhase(ref);
|
|
3352
3933
|
const ownHeaders = /* @__PURE__ */ new Map();
|
|
3353
3934
|
for (const { file, visibility } of headerFiles) {
|
|
3354
|
-
const name2 =
|
|
3935
|
+
const name2 = path5.basename(file);
|
|
3355
3936
|
const published = visibility !== "Project";
|
|
3356
3937
|
if (!ownHeaders.has(name2))
|
|
3357
3938
|
ownHeaders.set(name2, published ? `${product}/${name2}` : file);
|
|
3358
3939
|
if (!published && !ownHeaders.has(`${product}/${name2}`))
|
|
3359
3940
|
ownHeaders.set(`${product}/${name2}`, file);
|
|
3360
3941
|
}
|
|
3942
|
+
for (const file of synchronizedHeaders(ref)) {
|
|
3943
|
+
const name2 = path5.basename(file);
|
|
3944
|
+
if (ownHeaders.has(name2)) continue;
|
|
3945
|
+
ownHeaders.set(name2, file);
|
|
3946
|
+
const qualified = `${product}/${name2}`;
|
|
3947
|
+
if (!ownHeaders.has(qualified)) ownHeaders.set(qualified, file);
|
|
3948
|
+
}
|
|
3361
3949
|
const nonFrameworkHeaders = /* @__PURE__ */ new Map();
|
|
3362
3950
|
for (const other of projectTargets(ref.project)) {
|
|
3363
3951
|
if (FRAMEWORK_PRODUCTS.has(str(other.target.productType) ?? "")) continue;
|
|
3364
3952
|
const otherProduct = productName(other);
|
|
3365
3953
|
for (const { file, visibility } of headerPhase(other)) {
|
|
3366
3954
|
if (visibility === "Project") continue;
|
|
3367
|
-
const key = `${otherProduct}/${
|
|
3955
|
+
const key = `${otherProduct}/${path5.basename(file)}`;
|
|
3368
3956
|
if (!nonFrameworkHeaders.has(key)) nonFrameworkHeaders.set(key, file);
|
|
3369
3957
|
}
|
|
3370
3958
|
}
|
|
3371
|
-
const wrapper =
|
|
3959
|
+
const wrapper = path5.join(settings2("BUILT_PRODUCTS_DIR"), `${product}.framework`);
|
|
3372
3960
|
const moduleMap = (settings2("DEFINES_MODULE") === "YES" || !framework) && settings2("MODULEMAP_FILE") ? absolute(settings2("MODULEMAP_FILE")) : null;
|
|
3373
|
-
const podHeaders = !framework && isPodsProject(ref.project.xcodeproj) && moduleMap &&
|
|
3961
|
+
const podHeaders = !framework && isPodsProject(ref.project.xcodeproj) && moduleMap && path5.relative(path5.join(ref.project.projectDir, "Headers", "Public"), moduleMap).split(path5.sep)[0] !== ".." && fs4.existsSync(moduleMap) ? fs4.readdirSync(path5.dirname(moduleMap)).flatMap((entry) => {
|
|
3374
3962
|
if (!/\.(h|hh|hpp|hxx|modulemap)$/.test(entry)) return [];
|
|
3375
|
-
const file =
|
|
3376
|
-
return
|
|
3963
|
+
const file = path5.join(path5.dirname(moduleMap), entry);
|
|
3964
|
+
return fs4.existsSync(file) ? [file] : [];
|
|
3377
3965
|
}) : [];
|
|
3378
3966
|
const fileFlags = {};
|
|
3379
3967
|
for (const phaseId of list(ref.target.buildPhases)) {
|
|
@@ -3396,7 +3984,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3396
3984
|
keys,
|
|
3397
3985
|
module: {
|
|
3398
3986
|
name,
|
|
3399
|
-
moduleName
|
|
3987
|
+
moduleName,
|
|
3400
3988
|
...members,
|
|
3401
3989
|
allSources,
|
|
3402
3990
|
languageMode: swiftVersion >= 6 ? 6 : 5,
|
|
@@ -3411,6 +3999,20 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3411
3999
|
)
|
|
3412
4000
|
)
|
|
3413
4001
|
},
|
|
4002
|
+
packageProducts: Array(),
|
|
4003
|
+
...members.sources.length > 0 ? {
|
|
4004
|
+
swift: {
|
|
4005
|
+
flags: settingList(settings2("OTHER_SWIFT_FLAGS")),
|
|
4006
|
+
includePaths: settingList(settings2("SWIFT_INCLUDE_PATHS")).map(absolute),
|
|
4007
|
+
compatibility: compatibility ? {
|
|
4008
|
+
moduleMap: compatibility.moduleMap,
|
|
4009
|
+
umbrella: compatibility.umbrella,
|
|
4010
|
+
outputModuleMap: compatibility.outputModuleMap,
|
|
4011
|
+
outputUmbrella: compatibility.outputUmbrella,
|
|
4012
|
+
outputHeader: compatibility.outputHeader
|
|
4013
|
+
} : null
|
|
4014
|
+
}
|
|
4015
|
+
} : {},
|
|
3414
4016
|
...native ? {
|
|
3415
4017
|
objc: {
|
|
3416
4018
|
publicHeaders: [
|
|
@@ -3424,7 +4026,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3424
4026
|
...headers,
|
|
3425
4027
|
...Object.keys(ref.project.objects).flatMap((id) => {
|
|
3426
4028
|
const file = ref.project.resolvePath(id);
|
|
3427
|
-
return file && HEADER_FILE.test(file) &&
|
|
4029
|
+
return file && HEADER_FILE.test(file) && fs4.existsSync(file) ? [file] : [];
|
|
3428
4030
|
})
|
|
3429
4031
|
])
|
|
3430
4032
|
],
|
|
@@ -3433,15 +4035,15 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3433
4035
|
// xcode searches its products' include directory before
|
|
3434
4036
|
// HEADER_SEARCH_PATHS and the target's derived sources after.
|
|
3435
4037
|
headerSearchPaths: [
|
|
3436
|
-
|
|
4038
|
+
path5.join(settings2("BUILT_PRODUCTS_DIR"), "include"),
|
|
3437
4039
|
...settingList(settings2("HEADER_SEARCH_PATHS")).flatMap(
|
|
3438
4040
|
(raw) => expandSearchPath(absolute(raw), searchRules)
|
|
3439
4041
|
),
|
|
3440
|
-
|
|
4042
|
+
path5.join(
|
|
3441
4043
|
`${settings2("DERIVED_FILE_DIR")}-normal`,
|
|
3442
4044
|
settings2("CURRENT_ARCH")
|
|
3443
4045
|
),
|
|
3444
|
-
|
|
4046
|
+
path5.join(settings2("DERIVED_FILE_DIR"), settings2("CURRENT_ARCH")),
|
|
3445
4047
|
settings2("DERIVED_FILE_DIR")
|
|
3446
4048
|
],
|
|
3447
4049
|
userHeaderSearchPaths: settingList(
|
|
@@ -3481,16 +4083,16 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3481
4083
|
...headerFiles.flatMap(
|
|
3482
4084
|
({ file, visibility }) => visibility === "Project" ? [] : [
|
|
3483
4085
|
[
|
|
3484
|
-
|
|
4086
|
+
path5.join(
|
|
3485
4087
|
wrapper,
|
|
3486
4088
|
visibility === "Public" ? "Headers" : "PrivateHeaders",
|
|
3487
|
-
|
|
4089
|
+
path5.basename(file)
|
|
3488
4090
|
),
|
|
3489
4091
|
file
|
|
3490
4092
|
]
|
|
3491
4093
|
]
|
|
3492
4094
|
),
|
|
3493
|
-
...moduleMap ? [[
|
|
4095
|
+
...moduleMap ? [[path5.join(wrapper, "Modules", "module.modulemap"), moduleMap]] : []
|
|
3494
4096
|
]) : Object.fromEntries(podHeaders.map((file) => [file, file]))
|
|
3495
4097
|
}
|
|
3496
4098
|
} : {}
|
|
@@ -3502,7 +4104,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3502
4104
|
const frameworkTargets = builtTargets.slice(0, -1).filter(({ ref }) => ref.target.isa === "PBXNativeTarget").map(({ ref, module: module2 }) => ({ ref, framework: module2 }));
|
|
3503
4105
|
const frameworks = frameworkTargets.map(({ framework }) => framework);
|
|
3504
4106
|
const podSourceDirs = frameworkTargets.flatMap(
|
|
3505
|
-
({ ref, framework }) => isPodsProject(ref.project.xcodeproj) ? [...framework.allSources, ...framework.objc?.headers ?? []].map((file) =>
|
|
4107
|
+
({ ref, framework }) => isPodsProject(ref.project.xcodeproj) ? [...framework.allSources, ...framework.objc?.headers ?? []].map((file) => path5.dirname(file)).filter((dir) => fs4.existsSync(dir)) : []
|
|
3506
4108
|
);
|
|
3507
4109
|
const expandValue = (value) => {
|
|
3508
4110
|
if (typeof value === "string") return expand(value, settings);
|
|
@@ -3514,8 +4116,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3514
4116
|
}
|
|
3515
4117
|
return value;
|
|
3516
4118
|
};
|
|
3517
|
-
const infoPlistFile = settings("INFOPLIST_FILE") ?
|
|
3518
|
-
const
|
|
4119
|
+
const infoPlistFile = settings("INFOPLIST_FILE") ? path5.resolve(app.project.projectDir, settings("INFOPLIST_FILE")) : null;
|
|
4120
|
+
const infoPlistPending = module.generatedInfoPlist && !options.prepareGeneratedSources;
|
|
4121
|
+
const sourceInfo = infoPlistFile && !infoPlistPending ? plist2.parse(fs4.readFileSync(infoPlistFile, "utf8")) : {};
|
|
3519
4122
|
if (!sourceInfo || typeof sourceInfo !== "object" || Array.isArray(sourceInfo) || sourceInfo instanceof Date || Buffer.isBuffer(sourceInfo)) {
|
|
3520
4123
|
throw new Error(`${module.name} Info.plist must contain a dictionary`);
|
|
3521
4124
|
}
|
|
@@ -3543,7 +4146,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3543
4146
|
};
|
|
3544
4147
|
}
|
|
3545
4148
|
const localPackageDirs = [
|
|
3546
|
-
...listed.filter((reference) =>
|
|
4149
|
+
...listed.filter((reference) => fs4.existsSync(path5.join(reference, "Package.swift"))),
|
|
3547
4150
|
...projects.flatMap(
|
|
3548
4151
|
(project) => Object.entries(project.objects).flatMap(([id, entry]) => {
|
|
3549
4152
|
if (!isDict(entry)) return [];
|
|
@@ -3553,19 +4156,19 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3553
4156
|
const packages = [];
|
|
3554
4157
|
while (pending.length > 0) {
|
|
3555
4158
|
const dir = pending.pop();
|
|
3556
|
-
if (
|
|
4159
|
+
if (fs4.existsSync(path5.join(dir, "Package.swift"))) {
|
|
3557
4160
|
packages.push(dir);
|
|
3558
4161
|
continue;
|
|
3559
4162
|
}
|
|
3560
4163
|
if (!isDirectory(dir)) continue;
|
|
3561
|
-
for (const child of
|
|
4164
|
+
for (const child of fs4.readdirSync(dir, { withFileTypes: true }))
|
|
3562
4165
|
if (child.isDirectory() && !child.name.startsWith("."))
|
|
3563
|
-
pending.push(
|
|
4166
|
+
pending.push(path5.join(dir, child.name));
|
|
3564
4167
|
}
|
|
3565
4168
|
return packages;
|
|
3566
4169
|
}
|
|
3567
|
-
const candidate = entry.isa === "XCLocalSwiftPackageReference" ?
|
|
3568
|
-
return candidate &&
|
|
4170
|
+
const candidate = entry.isa === "XCLocalSwiftPackageReference" ? path5.resolve(project.projectDir, str(entry.relativePath) ?? "") : entry.isa === "PBXFileReference" ? project.resolvePath(id) : null;
|
|
4171
|
+
return candidate && fs4.existsSync(path5.join(candidate, "Package.swift")) ? [candidate] : [];
|
|
3569
4172
|
})
|
|
3570
4173
|
)
|
|
3571
4174
|
];
|
|
@@ -3586,12 +4189,12 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3586
4189
|
const linkedProductKeys = /* @__PURE__ */ new Set();
|
|
3587
4190
|
const binaryFrameworks = /* @__PURE__ */ new Map();
|
|
3588
4191
|
for (const { ref, settings: settings2 } of builtTargets) {
|
|
3589
|
-
const absolute = (raw) =>
|
|
4192
|
+
const absolute = (raw) => path5.resolve(ref.project.projectDir, expand(raw, settings2));
|
|
3590
4193
|
for (const raw of settingList(settings2("SWIFT_INCLUDE_PATHS"))) {
|
|
3591
4194
|
const dir = absolute(raw);
|
|
3592
|
-
const modulemap =
|
|
3593
|
-
if (!
|
|
3594
|
-
const name = moduleMapName(
|
|
4195
|
+
const modulemap = path5.join(dir, "module.modulemap");
|
|
4196
|
+
if (!fs4.existsSync(modulemap)) continue;
|
|
4197
|
+
const name = moduleMapName(fs4.readFileSync(modulemap, "utf8"));
|
|
3595
4198
|
if (name && !binaryFrameworks.has(name)) binaryFrameworks.set(name, dir);
|
|
3596
4199
|
}
|
|
3597
4200
|
for (const phaseId of list(ref.target.buildPhases)) {
|
|
@@ -3600,7 +4203,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3600
4203
|
const inputs = list(phase.inputPaths).map(absolute);
|
|
3601
4204
|
for (const raw of list(phase.inputFileListPaths)) {
|
|
3602
4205
|
const file = absolute(raw);
|
|
3603
|
-
if (!
|
|
4206
|
+
if (!fs4.existsSync(file)) continue;
|
|
3604
4207
|
xcconfigs.add(file);
|
|
3605
4208
|
inputs.push(...fileListEntries(file, absolute));
|
|
3606
4209
|
}
|
|
@@ -3610,10 +4213,12 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3610
4213
|
}
|
|
3611
4214
|
}
|
|
3612
4215
|
}
|
|
3613
|
-
|
|
4216
|
+
const productsByTarget = /* @__PURE__ */ new Map();
|
|
4217
|
+
for (const ref of order) {
|
|
4218
|
+
const { project, target } = ref;
|
|
3614
4219
|
const productRef = (id) => {
|
|
3615
|
-
const
|
|
3616
|
-
return
|
|
4220
|
+
const ref2 = str(project.object(id)?.productRef);
|
|
4221
|
+
return ref2 ? [ref2] : [];
|
|
3617
4222
|
};
|
|
3618
4223
|
const productDependencies = [
|
|
3619
4224
|
...list(target.packageProductDependencies),
|
|
@@ -3623,6 +4228,8 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3623
4228
|
return phase?.isa === "PBXFrameworksBuildPhase" ? list(phase.files).flatMap(productRef) : [];
|
|
3624
4229
|
})
|
|
3625
4230
|
];
|
|
4231
|
+
const ownProducts = [];
|
|
4232
|
+
const ownKeys = /* @__PURE__ */ new Set();
|
|
3626
4233
|
for (const dependencyId of new Set(productDependencies)) {
|
|
3627
4234
|
const dependency = project.object(dependencyId);
|
|
3628
4235
|
const product = str(dependency?.productName)?.replace(/^plugin:/, "");
|
|
@@ -3635,7 +4242,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3635
4242
|
product,
|
|
3636
4243
|
source: reference?.isa === "XCRemoteSwiftPackageReference" ? { kind: "remote", url: str(reference.repositoryURL) ?? "" } : reference?.isa === "XCLocalSwiftPackageReference" ? {
|
|
3637
4244
|
kind: "local",
|
|
3638
|
-
dir:
|
|
4245
|
+
dir: path5.resolve(
|
|
3639
4246
|
project.projectDir,
|
|
3640
4247
|
str(reference.relativePath) ?? ""
|
|
3641
4248
|
)
|
|
@@ -3644,7 +4251,13 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3644
4251
|
productReferences.push({ project: project.projectFile, linked });
|
|
3645
4252
|
if (linked.source.kind !== "unnamed")
|
|
3646
4253
|
qualifiedProductKeys.add(`${project.projectFile}\0${product}`);
|
|
4254
|
+
const key = JSON.stringify(linked);
|
|
4255
|
+
if (!ownKeys.has(key)) {
|
|
4256
|
+
ownKeys.add(key);
|
|
4257
|
+
ownProducts.push(linked);
|
|
4258
|
+
}
|
|
3647
4259
|
}
|
|
4260
|
+
productsByTarget.set(ref, ownProducts);
|
|
3648
4261
|
for (const phaseId of list(target.buildPhases)) {
|
|
3649
4262
|
const phase = project.object(phaseId);
|
|
3650
4263
|
if (phase?.isa !== "PBXFrameworksBuildPhase") continue;
|
|
@@ -3669,26 +4282,35 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3669
4282
|
linkedProductKeys.add(key);
|
|
3670
4283
|
linkedProducts.push(linked);
|
|
3671
4284
|
}
|
|
3672
|
-
const
|
|
3673
|
-
|
|
4285
|
+
for (const built of builtTargets)
|
|
4286
|
+
built.module.packageProducts = productsByTarget.get(built.ref) ?? [];
|
|
4287
|
+
const resolvedFile = path5.join(
|
|
4288
|
+
workspace ?? path5.join(xcodeprojOrWorkspace, "project.xcworkspace"),
|
|
3674
4289
|
"xcshareddata",
|
|
3675
4290
|
"swiftpm",
|
|
3676
4291
|
"Package.resolved"
|
|
3677
4292
|
);
|
|
3678
|
-
|
|
4293
|
+
let packageResolved = fs4.existsSync(resolvedFile) ? [fs4.realpathSync(resolvedFile)] : [...new Set(localPackageDirs.map((dir) => path5.join(dir, "Package.resolved")))].filter((file) => fs4.existsSync(file)).map((file) => fs4.realpathSync(file)).sort();
|
|
4294
|
+
if (packageResolved.length === 0) {
|
|
4295
|
+
const requirements = remotePackageRequirements(projects);
|
|
4296
|
+
if (requirements.length > 0) {
|
|
4297
|
+
resolveSwiftPackageRequirements(requirements, resolvedFile);
|
|
4298
|
+
packageResolved = [fs4.realpathSync(resolvedFile)];
|
|
4299
|
+
}
|
|
4300
|
+
}
|
|
3679
4301
|
const used = order.map((ref) => ref.project);
|
|
3680
4302
|
return {
|
|
3681
4303
|
...module,
|
|
3682
4304
|
rootDir: commonAncestor(
|
|
3683
4305
|
[
|
|
3684
|
-
workspace ?
|
|
4306
|
+
workspace ? path5.dirname(workspace) : app.project.projectDir,
|
|
3685
4307
|
...used.map((project) => project.projectDir),
|
|
3686
4308
|
...localPackageDirs,
|
|
3687
4309
|
...linkedProducts.flatMap(
|
|
3688
|
-
({ source }) => source.kind === "local" &&
|
|
4310
|
+
({ source }) => source.kind === "local" && fs4.existsSync(source.dir) ? [source.dir] : []
|
|
3689
4311
|
),
|
|
3690
4312
|
...new Set(podSourceDirs)
|
|
3691
|
-
].map((dir) =>
|
|
4313
|
+
].map((dir) => fs4.realpathSync(dir))
|
|
3692
4314
|
),
|
|
3693
4315
|
projectFiles: [
|
|
3694
4316
|
.../* @__PURE__ */ new Set([
|
|
@@ -3699,12 +4321,12 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
3699
4321
|
].sort(),
|
|
3700
4322
|
projectDirs: [...new Set(used.map((project) => project.projectDir))].sort(),
|
|
3701
4323
|
appIconName: settings("ASSETCATALOG_COMPILER_APPICON_NAME"),
|
|
3702
|
-
infoPlist: plist2.build(info),
|
|
4324
|
+
infoPlist: infoPlistPending ? null : plist2.build(info),
|
|
3703
4325
|
infoPlistFile,
|
|
3704
4326
|
frameworks,
|
|
3705
4327
|
linkedProducts,
|
|
3706
4328
|
localPackageDirs: [
|
|
3707
|
-
...new Set(localPackageDirs.map((dir) =>
|
|
4329
|
+
...new Set(localPackageDirs.map((dir) => fs4.realpathSync(dir)))
|
|
3708
4330
|
].sort(),
|
|
3709
4331
|
binaryFrameworks: [...binaryFrameworks].map(([name, file]) => ({ name, path: file })).sort((left, right) => left.name.localeCompare(right.name)),
|
|
3710
4332
|
packageResolved,
|
|
@@ -3720,6 +4342,10 @@ function nonEmptyString2(value) {
|
|
|
3720
4342
|
return typeof value === "string" && value.length > 0 ? value : void 0;
|
|
3721
4343
|
}
|
|
3722
4344
|
function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSource) {
|
|
4345
|
+
if (app.infoPlist === null)
|
|
4346
|
+
throw new Error(
|
|
4347
|
+
"native app Info.plist is generated by a build phase and was not prepared"
|
|
4348
|
+
);
|
|
3723
4349
|
const dictionary = parseInfoPlist(app.infoPlist);
|
|
3724
4350
|
if (!isRecord(dictionary)) throw new Error("native app Info.plist is not a dictionary");
|
|
3725
4351
|
const settings = app.settings;
|
|
@@ -3779,7 +4405,7 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
3779
4405
|
const rtcAppGroupIdentifier = nonEmptyString2(dictionary.RTCAppGroupIdentifier);
|
|
3780
4406
|
const screenShareExtensionBundleId = typeof dictionary.ScreenShareExtensionBundleId === "string" ? dictionary.ScreenShareExtensionBundleId : void 0;
|
|
3781
4407
|
const rootModuleName = readRootModuleName(
|
|
3782
|
-
app.allSources.filter((file) => /\.(?:swift|mm|m)$/.test(file) &&
|
|
4408
|
+
app.allSources.filter((file) => /\.(?:swift|mm|m)$/.test(file) && fs5.existsSync(file)).map((file) => fs5.readFileSync(file, "utf8"))
|
|
3783
4409
|
);
|
|
3784
4410
|
return {
|
|
3785
4411
|
applicationName,
|
|
@@ -3800,7 +4426,7 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
3800
4426
|
googleSignIn: readGoogleSignInConfiguration(
|
|
3801
4427
|
dictionary,
|
|
3802
4428
|
Object.fromEntries(
|
|
3803
|
-
app.resources.filter((file) => file.endsWith(".plist")).map((file) => [file, parseInfoPlist(
|
|
4429
|
+
app.resources.filter((file) => file.endsWith(".plist")).map((file) => [file, parseInfoPlist(fs5.readFileSync(file, "utf8"))])
|
|
3804
4430
|
)
|
|
3805
4431
|
),
|
|
3806
4432
|
supportedInterfaceOrientations,
|
|
@@ -3809,11 +4435,11 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
|
|
|
3809
4435
|
alternateIconNames: [...alternateIconNames],
|
|
3810
4436
|
appIconArtwork: resolveNativeAppIconArtwork(
|
|
3811
4437
|
app.resources,
|
|
3812
|
-
(file) =>
|
|
4438
|
+
(file) => fs5.readFileSync(file, "utf8"),
|
|
3813
4439
|
(file) => {
|
|
3814
|
-
const extension =
|
|
4440
|
+
const extension = path6.extname(file).toLowerCase();
|
|
3815
4441
|
const contentType = extension === ".jpg" || extension === ".jpeg" ? "image/jpeg" : extension === ".webp" ? "image/webp" : "image/png";
|
|
3816
|
-
return `data:${contentType};base64,${
|
|
4442
|
+
return `data:${contentType};base64,${fs5.readFileSync(file).toString("base64")}`;
|
|
3817
4443
|
},
|
|
3818
4444
|
icons,
|
|
3819
4445
|
app.appIconName,
|
|
@@ -3844,22 +4470,22 @@ function readNativeAppIdentityFromSources(projectRoot, platform, parseInfoPlist,
|
|
|
3844
4470
|
const read = selectNativeAppIdentityReader(platform, {
|
|
3845
4471
|
android: () => null,
|
|
3846
4472
|
ios: () => {
|
|
3847
|
-
const iosRoot =
|
|
3848
|
-
if (!
|
|
4473
|
+
const iosRoot = path6.join(projectRoot, "ios");
|
|
4474
|
+
if (!fs5.existsSync(iosRoot)) return null;
|
|
3849
4475
|
const files = {};
|
|
3850
|
-
for (const entry of
|
|
4476
|
+
for (const entry of fs5.readdirSync(iosRoot, { withFileTypes: true })) {
|
|
3851
4477
|
if (entry.name === "Pods") continue;
|
|
3852
4478
|
if (entry.isDirectory()) {
|
|
3853
4479
|
const names = entry.name.endsWith(".xcodeproj") ? ["project.pbxproj"] : ["Info.plist", "AppDelegate.swift", "AppDelegate.mm", "AppDelegate.m"];
|
|
3854
4480
|
for (const name of names) {
|
|
3855
4481
|
const relative2 = `ios/${entry.name}/${name}`;
|
|
3856
|
-
const file =
|
|
3857
|
-
if (
|
|
4482
|
+
const file = path6.join(projectRoot, relative2);
|
|
4483
|
+
if (fs5.existsSync(file)) files[relative2] = fs5.readFileSync(file, "utf8");
|
|
3858
4484
|
}
|
|
3859
4485
|
} else if (/AppDelegate\.(?:swift|mm|m)$/.test(entry.name)) {
|
|
3860
4486
|
const relative2 = `ios/${entry.name}`;
|
|
3861
|
-
const file =
|
|
3862
|
-
if (
|
|
4487
|
+
const file = path6.join(projectRoot, relative2);
|
|
4488
|
+
if (fs5.existsSync(file)) files[relative2] = fs5.readFileSync(file, "utf8");
|
|
3863
4489
|
}
|
|
3864
4490
|
}
|
|
3865
4491
|
return extractNativeAppIdentityFromFiles(files, "ios", parseInfoPlist, iosTarget);
|
|
@@ -3870,41 +4496,41 @@ function readNativeAppIdentityFromSources(projectRoot, platform, parseInfoPlist,
|
|
|
3870
4496
|
function readAndroidNativeAppIdentity(projectRoot, androidMergedManifest) {
|
|
3871
4497
|
const files = {};
|
|
3872
4498
|
if (androidMergedManifest) {
|
|
3873
|
-
const file =
|
|
3874
|
-
if (!
|
|
3875
|
-
files[androidMergedManifest] =
|
|
4499
|
+
const file = path6.resolve(projectRoot, androidMergedManifest);
|
|
4500
|
+
if (!fs5.existsSync(file)) return null;
|
|
4501
|
+
files[androidMergedManifest] = fs5.readFileSync(file, "utf8");
|
|
3876
4502
|
} else {
|
|
3877
|
-
const androidRoot =
|
|
3878
|
-
if (!
|
|
4503
|
+
const androidRoot = path6.join(projectRoot, "android");
|
|
4504
|
+
if (!fs5.existsSync(androidRoot)) return null;
|
|
3879
4505
|
const collect = (directory) => {
|
|
3880
|
-
for (const entry of
|
|
3881
|
-
const file =
|
|
4506
|
+
for (const entry of fs5.readdirSync(directory, { withFileTypes: true })) {
|
|
4507
|
+
const file = path6.join(directory, entry.name);
|
|
3882
4508
|
if (entry.isDirectory()) collect(file);
|
|
3883
4509
|
else if (entry.isFile() && entry.name === "AndroidManifest.xml")
|
|
3884
|
-
files[
|
|
4510
|
+
files[path6.relative(projectRoot, file).split(path6.sep).join("/")] = fs5.readFileSync(file, "utf8");
|
|
3885
4511
|
}
|
|
3886
4512
|
};
|
|
3887
|
-
for (const module of
|
|
4513
|
+
for (const module of fs5.readdirSync(androidRoot, { withFileTypes: true })) {
|
|
3888
4514
|
if (!module.isDirectory()) continue;
|
|
3889
|
-
const outputs =
|
|
4515
|
+
const outputs = path6.join(
|
|
3890
4516
|
androidRoot,
|
|
3891
4517
|
module.name,
|
|
3892
4518
|
"build/intermediates/merged_manifests"
|
|
3893
4519
|
);
|
|
3894
|
-
if (
|
|
4520
|
+
if (fs5.existsSync(outputs)) collect(outputs);
|
|
3895
4521
|
}
|
|
3896
4522
|
}
|
|
3897
4523
|
for (const manifest of Object.keys(files)) {
|
|
3898
4524
|
const resourceDirectory = androidMergedResourceValuesDirectory(manifest);
|
|
3899
4525
|
if (!resourceDirectory) continue;
|
|
3900
|
-
const absolute =
|
|
3901
|
-
if (!
|
|
3902
|
-
for (const entry of
|
|
4526
|
+
const absolute = path6.resolve(projectRoot, resourceDirectory);
|
|
4527
|
+
if (!fs5.existsSync(absolute)) continue;
|
|
4528
|
+
for (const entry of fs5.readdirSync(absolute, { withFileTypes: true })) {
|
|
3903
4529
|
if (!entry.isDirectory() || !/^values(?:-|$)/.test(entry.name)) continue;
|
|
3904
|
-
for (const resource of
|
|
4530
|
+
for (const resource of fs5.readdirSync(path6.join(absolute, entry.name))) {
|
|
3905
4531
|
if (!resource.endsWith(".xml")) continue;
|
|
3906
4532
|
const file = `${resourceDirectory}/${entry.name}/${resource}`;
|
|
3907
|
-
files[file] =
|
|
4533
|
+
files[file] = fs5.readFileSync(path6.resolve(projectRoot, file), "utf8");
|
|
3908
4534
|
}
|
|
3909
4535
|
}
|
|
3910
4536
|
}
|
|
@@ -3921,7 +4547,7 @@ function readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget) {
|
|
|
3921
4547
|
const app = readIosAppTarget(projectRoot, iosTarget);
|
|
3922
4548
|
if (!app) return null;
|
|
3923
4549
|
const identity = readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist);
|
|
3924
|
-
const projectManifestPath =
|
|
4550
|
+
const projectManifestPath = path6.join(projectRoot, "package.json");
|
|
3925
4551
|
const projectRequire = createRequire(projectManifestPath);
|
|
3926
4552
|
let reanimatedManifestPath;
|
|
3927
4553
|
try {
|
|
@@ -3935,22 +4561,22 @@ function readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget) {
|
|
|
3935
4561
|
throw error;
|
|
3936
4562
|
}
|
|
3937
4563
|
const installedManifest = JSON.parse(
|
|
3938
|
-
|
|
4564
|
+
fs5.readFileSync(reanimatedManifestPath, "utf8")
|
|
3939
4565
|
);
|
|
3940
4566
|
const installedVersion = isRecord(installedManifest) ? nonEmptyString2(installedManifest.version) : void 0;
|
|
3941
4567
|
if (!installedVersion) throw new Error("Reanimated package version is malformed");
|
|
3942
4568
|
if (Number.parseInt(installedVersion, 10) < 4) return identity;
|
|
3943
4569
|
const defaults = JSON.parse(
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
4570
|
+
fs5.readFileSync(
|
|
4571
|
+
path6.join(
|
|
4572
|
+
path6.dirname(reanimatedManifestPath),
|
|
3947
4573
|
"src/featureFlags/staticFlags.json"
|
|
3948
4574
|
),
|
|
3949
4575
|
"utf8"
|
|
3950
4576
|
)
|
|
3951
4577
|
);
|
|
3952
4578
|
if (!isRecord(defaults)) throw new Error("Reanimated static flags are malformed");
|
|
3953
|
-
const manifest = JSON.parse(
|
|
4579
|
+
const manifest = JSON.parse(fs5.readFileSync(projectManifestPath, "utf8"));
|
|
3954
4580
|
const reanimated = isRecord(manifest) ? manifest.reanimated : void 0;
|
|
3955
4581
|
const overrides = isRecord(reanimated) ? reanimated.staticFeatureFlags : void 0;
|
|
3956
4582
|
if (overrides !== void 0 && !isRecord(overrides)) {
|
|
@@ -3973,9 +4599,9 @@ function readIosNativeAppIdentity(projectRoot, parseInfoPlist, iosTarget) {
|
|
|
3973
4599
|
return { ...identity, reanimatedStaticFeatureFlags: flags };
|
|
3974
4600
|
}
|
|
3975
4601
|
function readIosAppTarget(projectRoot, iosTarget) {
|
|
3976
|
-
const iosRoot =
|
|
3977
|
-
if (!
|
|
3978
|
-
const projects =
|
|
4602
|
+
const iosRoot = path6.join(projectRoot, "ios");
|
|
4603
|
+
if (!fs5.existsSync(iosRoot)) return null;
|
|
4604
|
+
const projects = fs5.readdirSync(iosRoot, { withFileTypes: true }).filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj"));
|
|
3979
4605
|
if (projects.length === 0) return null;
|
|
3980
4606
|
if (projects.length > 1 && !iosTarget) {
|
|
3981
4607
|
throw new NativeAppTargetSelectionError(
|
|
@@ -3985,7 +4611,7 @@ function readIosAppTarget(projectRoot, iosTarget) {
|
|
|
3985
4611
|
let project = projects[0];
|
|
3986
4612
|
if (iosTarget && projects.length > 1) {
|
|
3987
4613
|
const matches = projects.filter(
|
|
3988
|
-
(entry) => listXcodeAppTargets(
|
|
4614
|
+
(entry) => listXcodeAppTargets(path6.join(iosRoot, entry.name), {
|
|
3989
4615
|
requireSources: false
|
|
3990
4616
|
}).includes(iosTarget)
|
|
3991
4617
|
);
|
|
@@ -3999,7 +4625,7 @@ function readIosAppTarget(projectRoot, iosTarget) {
|
|
|
3999
4625
|
}
|
|
4000
4626
|
project = matches[0];
|
|
4001
4627
|
}
|
|
4002
|
-
const xcodeproj =
|
|
4628
|
+
const xcodeproj = path6.join(iosRoot, project.name);
|
|
4003
4629
|
const appTargets = listXcodeAppTargets(xcodeproj, { requireSources: false });
|
|
4004
4630
|
if (!iosTarget && appTargets.length > 1) {
|
|
4005
4631
|
throw new NativeAppTargetSelectionError(
|