peachsim 0.1.1802 → 0.1.1808
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/README.md +1 -0
- package/cli/bin.ts +1 -1
- package/cli/cloud-test-tunnel.ts +36 -10
- package/cli/commands/coverage-swift.ts +1 -1
- package/cli/commands/cpu-profile.ts +2 -2
- package/cli/commands/daemon.ts +8 -7
- package/cli/commands/inspect/env.ts +4 -2
- package/cli/commands/inspect/wait-ready.ts +3 -1
- package/cli/commands/inspect.ts +14 -66
- package/cli/commands/package.ts +7 -1
- package/cli/commands/shell-url.ts +8 -1
- package/cli/drivers/playwright-provisioning.ts +1 -1
- package/cli/drivers/playwright.ts +1 -1
- package/cli/internal-child-contract.ts +13 -0
- package/cli/internal-child.ts +23 -10
- package/cli/maestro-js.ts +1 -1
- package/cli/native-input.ts +9 -0
- package/cli/outbound-endpoints.ts +11 -0
- package/detox/index.ts +6 -9
- 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 +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -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 +7186 -5499
- 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 +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +7 -9
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +5103 -3976
- 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 +7172 -5542
- package/dist-lib/host/fetch-proxy-handler.cjs +82 -34
- 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 +1 -1
- package/dist-lib/host/websocket-proxy.cjs +3 -1
- package/dist-lib/index.cjs +695 -470
- 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 +1 -1
- package/dist-lib/menu.mjs +1 -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 +702 -477
- package/dist-lib/native-app-identity-project.cjs +454 -276
- package/dist-lib/native-app-identity-project.mjs +503 -320
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +106 -0
- package/dist-lib/pdfium-raster.mjs +81 -0
- 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 +37 -24
- package/dist-lib/public-origins-lib.json +146 -80
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +7874 -6178
- package/dist-lib/swift-compile.cjs +917 -610
- package/dist-lib/swift-compile.mjs +879 -572
- package/dist-lib/swift-package.cjs +32 -15
- package/dist-lib/swift-package.mjs +32 -15
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +52 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +3226 -2161
- package/dist-lib/vite.cjs +88 -40
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/screen-transition-math.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/engine/fontDataContract.d.ts +51 -0
- package/dist-types/packages/peach-engine/src/engine/scroll-velocity.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +2 -0
- package/dist-types/packages/peach-globals/src/appLifecycleBridgeContract.d.ts +5 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +10 -2
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioApplication.h +143 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioBuffer.h +268 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioChannelLayout.h +85 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioConnectionPoint.h +54 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioConverter.h +355 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioEngine.h +1064 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioEnvironmentNode.h +311 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioFile.h +192 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioFormat.h +241 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioIONode.h +304 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioMixerNode.h +43 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioMixing.h +339 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioNode.h +244 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioPlayer.h +155 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioPlayerNode.h +434 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioRecorder.h +243 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioRoutingArbiter.h +114 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSequencer.h +640 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSettings.h +111 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSinkNode.h +93 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSourceNode.h +122 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioTime.h +145 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioTypes.h +173 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnit.h +114 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitComponent.h +269 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitDelay.h +62 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitDistortion.h +71 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitEQ.h +166 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitEffect.h +53 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitGenerator.h +43 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitMIDIInstrument.h +147 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitReverb.h +56 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitSampler.h +112 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitTimeEffect.h +42 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitTimePitch.h +56 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioUnitVarispeed.h +41 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVFAudio.h +58 -3
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVMIDIPlayer.h +94 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVMusicEvents.h +612 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVSpeechSynthesis.h +340 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVSpeechSynthesisProvider.h +172 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAsset.h +1003 -9
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetCache.h +56 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetDownloadStorageManager.h +93 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetDownloadTask.h +403 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetExportSession.h +484 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetImageGenerator.h +244 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetPlaybackAssistant.h +74 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetReader.h +232 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetReaderOutput.h +857 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetResourceLoader.h +497 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetSegmentReport.h +146 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetTrack.h +408 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetTrackGroup.h +57 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetTrackSegment.h +47 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetVariant.h +262 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetWriter.h +531 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetWriterInput.h +868 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAssetWritingPlanner.h +434 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAsynchronousKeyValueLoading.h +69 -9
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioBuffer.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioChannelLayout.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioConnectionPoint.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioConverter.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioEngine.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioEnvironmentNode.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioFile.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioFormat.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioIONode.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioMix.h +175 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioMixerNode.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioMixing.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioNode.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioPlayer.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioPlayerNode.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioProcessingSettings.h +76 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioRecorder.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioSequencer.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioSessionDeprecated.h +12 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioSessionRoute.h +12 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioSessionTypes.h +12 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioSettings.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioTime.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioTypes.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnit.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitComponent.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitDelay.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitDistortion.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitEQ.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitEffect.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitGenerator.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitMIDIInstrument.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitReverb.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitSampler.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitTimeEffect.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitTimePitch.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioUnitVarispeed.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCameraCalibrationData.h +184 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaption.h +917 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptionConversionValidator.h +235 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptionFormatConformer.h +80 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptionGroup.h +103 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptionGrouper.h +39 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptionRenderer.h +127 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptionSettings.h +66 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureAncillaryDataEncoder.h +116 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureAudioDataOutput.h +157 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureAudioPreviewOutput.h +63 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureBroadcastVideoOutput.h +183 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureControl.h +49 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDataOutputSynchronizer.h +359 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDepthDataOutput.h +164 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDeskViewApplication.h +98 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h +4119 -13
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureExternalDisplayConfigurator.h +114 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureFileOutput.h +743 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureIndexPicker.h +156 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureInput.h +641 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureMetadataOutput.h +155 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureOutput.h +23 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureOutputBase.h +163 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCapturePhotoOutput.h +2470 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureReactions.h +131 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSlider.h +169 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSpatialAudioMetadataSampleGenerator.h +53 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureStillImageOutput.h +356 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSystemExposureBiasSlider.h +66 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSystemPressure.h +111 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSystemZoomSlider.h +66 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureTimecodeGenerator.h +226 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoDataOutput.h +337 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureVideoPreviewLayer.h +288 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVComposition.h +440 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCompositionTrack.h +329 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCompositionTrackSegment.h +112 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVContentKeySession.h +713 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVContinuityDevice.h +73 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVDepthData.h +239 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVDisplayCriteria.h +50 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVError.h +138 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVExternalStorageDevice.h +252 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVExternalSyncDevice.h +127 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVFAudio.h +59 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVFCapture.h +48 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVFCore.h +97 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes +2785 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.h +26 -18
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVGeometry.h +66 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMIDIPlayer.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMediaSelection.h +79 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMediaSelectionGroup.h +287 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataFormat.h +398 -8
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataIdentifiers.h +392 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataItem.h +365 -9
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataObject.h +699 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetrics.h +521 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMovie.h +744 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMovieTrack.h +526 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVOutputSettingsAssistant.h +179 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlaybackCoordinationMedium.h +38 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlaybackCoordinator.h +518 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayer.h +960 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerInterstitialEventController.h +550 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItem.h +1147 -3
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItemIntegratedTimeline.h +309 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItemMediaDataCollector.h +127 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItemOutput.h +669 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItemSampleBufferOutput.h +124 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItemTrack.h +101 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerLayer.h +117 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerLooper.h +220 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerMediaSelectionCriteria.h +86 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerOutput.h +229 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPortraitEffectsMatte.h +126 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVProVideoStorage.h +90 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVQueuedSampleBufferRendering.h +124 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVRenderedCaptionImage.h +62 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVRouteDetector.h +69 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleBufferAudioRenderer.h +248 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleBufferDisplayLayer.h +242 -3
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleBufferGenerator.h +230 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleBufferRenderSynchronizer.h +199 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleBufferVideoRenderer.h +276 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleCursor.h +327 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSemanticSegmentationMatte.h +164 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSpatialVideoConfiguration.h +57 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSpeechSynthesis.h +9 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSynchronizedLayer.h +89 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVTextStyleRule.h +112 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVTime.h +58 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVTimedMetadataGroup.h +179 -2
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVUtilities.h +17 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVVideoCompositing.h +392 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVVideoComposition.h +924 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVVideoPerformanceMetrics.h +108 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVVideoSettings.h +332 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Modules/module.modulemap +3 -2
- package/sdk/ios/System/Library/Frameworks/AVRouting.framework/Headers/AVCustomDeviceRoute.h +53 -0
- package/sdk/ios/System/Library/Frameworks/AVRouting.framework/Headers/AVCustomRoutingActionItem.h +59 -0
- package/sdk/ios/System/Library/Frameworks/AVRouting.framework/Headers/AVCustomRoutingController.h +261 -0
- package/sdk/ios/System/Library/Frameworks/AVRouting.framework/Headers/AVCustomRoutingEvent.h +62 -0
- package/sdk/ios/System/Library/Frameworks/AVRouting.framework/Headers/AVRouting.h +18 -0
- package/sdk/ios/System/Library/Frameworks/AVRouting.framework/Headers/AVRoutingDefines.h +14 -0
- package/sdk/ios/System/Library/Frameworks/AVRouting.framework/Headers/AVRoutingPlaybackArbiter.h +63 -0
- package/sdk/ios/System/Library/Frameworks/AVRouting.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AUAudioUnit.h +1621 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AUAudioUnitImplementation.h +481 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AUComponent.h +1999 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AUGraph.h +726 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AUHeadTrackingBinauralRenderer.h +73 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AUParameters.h +386 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioCodec.h +1454 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioComponent.h +743 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioConverter.h +1099 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioFile.h +1563 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioFileStream.h +499 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioFormat.h +537 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioOutputUnit.h +56 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioQueue.h +1888 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioServices.h +441 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioSession.h +863 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes +6 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.h +153 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnit.h +38 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnitParameters.h +1091 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnitProperties.h +4194 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioUnitUtilities.h +611 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioWorkInterval.h +102 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/CAFFile.h +368 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/CAShow.h +40 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/CASpatialAudioExperience.h +167 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/ExtendedAudioFile.h +610 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/MusicDevice.h +491 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Headers/MusicPlayer.h +1732 -0
- package/sdk/ios/System/Library/Frameworks/AudioToolbox.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +6 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFProxySupport.h +604 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPActionSheetTemplate.h +40 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPAlertAction.h +64 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPAlertTemplate.h +53 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPBarButton.h +91 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPBarButtonProviding.h +36 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPButton.h +65 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPChargingStationConnection.h +38 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPContact.h +109 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPContactTemplate.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPDashboardButton.h +52 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPDashboardController.h +30 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPGridButton.h +95 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPGridTemplate.h +65 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPImageOverlay.h +80 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPImageSet.h +26 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPInformationItem.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPInformationRatingItem.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPInformationTemplate.h +80 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPInstrumentClusterController.h +76 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPInterfaceController.h +288 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPLane.h +57 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPLaneGuidance.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItem.h +229 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemCardElement.h +101 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemCondensedElement.h +70 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemElement.h +53 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemGridElement.h +39 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemImageGridElement.h +77 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemRowElement.h +52 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListItem.h +273 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListItemTypes.h +55 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListSection.h +117 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListTemplate.h +289 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPListTemplateDetailsHeader.h +164 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPLocation.h +32 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPManeuver.h +254 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMapButton.h +56 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMapPanel.h +65 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMapPanelButtonConfiguration.h +46 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMapPanelItem.h +56 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMapPanelSection.h +47 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMapTemplate.h +518 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMapTemplateWaypoint.h +44 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMessageComposeBarButton.h +41 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMessageListItem.h +213 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPMultiStopCardConfiguration.h +62 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPNavigationAlert.h +182 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPNavigationEnum.h +23 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPNavigationSession.h +173 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPNavigationWaypoint.h +105 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPNowPlayingButton.h +122 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPNowPlayingMode.h +333 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPNowPlayingTemplate.h +122 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPPanel.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPPanelButtonConfiguration.h +46 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPPanelItem.h +51 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPPlaybackConfiguration.h +89 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPPointOfInterest.h +161 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPPointOfInterestTemplate.h +85 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPRerouteReason.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPRouteDetail.h +371 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPRouteInformation.h +61 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPRouteSegment.h +92 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPRouteSource.h +43 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPSearchTemplate.h +57 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPSessionConfiguration.h +59 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPSportsOverlay.h +51 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPTabBarTemplate.h +90 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPTemplate.h +65 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPTemplateApplicationDashboardScene.h +60 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPTemplateApplicationInstrumentClusterScene.h +61 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPTemplateApplicationScene.h +109 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPTextButton.h +57 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPThumbnailImage.h +66 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPTravelEstimates.h +63 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPTrip.h +172 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPTripPreviewTextConfiguration.h +25 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPVoiceControlTemplate.h +173 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CPWindow.h +37 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CarPlay.apinotes +68 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Headers/CarPlay.h +89 -0
- package/sdk/ios/System/Library/Frameworks/CarPlay.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardwareBase.h +1459 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudio.framework/Headers/AudioServerPlugIn.h +1195 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudio.framework/Headers/CoreAudioTypes.h +4 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudio.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAttributedString.h +167 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBag.h +97 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBinaryHeap.h +294 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBitVector.h +49 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBundle.h +360 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h +193 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFFileDescriptor.h +54 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFFileSecurity.h +294 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFMachPort.h +53 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFMessagePort.h +69 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNumberFormatter.h +188 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPlugIn.h +124 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPlugInCOM.h +117 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPreferences.h +140 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h +158 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStringEncodingExt.h +184 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStringTokenizer.h +263 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFTree.h +330 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURLAccess.h +128 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURLEnumerator.h +108 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFUUID.h +78 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFUserNotification.h +197 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFUtilities.h +27 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFXMLNode.h +201 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFXMLParser.h +278 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +110 -57
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIBarcodeDescriptor.h +436 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIColor.h +305 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIContext.h +949 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIDetector.h +219 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIFeature.h +355 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIFilter.h +567 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIFilterBuiltins.h +2734 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIFilterConstructor.h +27 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIFilterGenerator.h +160 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIFilterShape.h +69 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h +860 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIImageAccumulator.h +72 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIImageProcessor.h +589 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIImageProvider.h +187 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIKernel.h +342 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIKernelMetalLib.h +311 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIPlugIn.h +63 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIPlugInInterface.h +45 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIRAWFilter.h +223 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIRAWFilter_Deprecated.h +195 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIRenderDestination.h +348 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CISampler.h +88 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CIVector.h +265 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes +1231 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.h +34 -46
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CoreImageDefines.h +69 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/CoreMIDI.h +44 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIBluetoothConnection.h +82 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDICIDevice.h +124 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDICIDeviceManager.h +143 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDICapabilityInquiry.h +336 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIDriver.h +566 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIMessages.h +784 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDINetworkSession.h +137 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIServices.h +2759 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDISetup.h +478 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIThruConnection.h +378 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIUMPCI.h +243 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIUMPCIProfile.h +161 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIUMPEndpoint.h +200 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIUMPEndpointManager.h +146 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIUMPFunctionBlock.h +152 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIUMPMutableEndpoint.h +167 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIUMPMutableFunctionBlock.h +179 -0
- package/sdk/ios/System/Library/Frameworks/CoreMIDI.framework/Modules/module.modulemap +7 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMAttachment.h +118 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMAudioClock.h +46 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMAudioDeviceClock.h +105 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMBlockBuffer.h +580 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMBufferQueue.h +946 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMFormatDescription.h +2090 -5
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMFormatDescriptionBridge.h +734 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMGenlockClock.h +65 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMMemoryPool.h +120 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMMetadata.h +668 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMSampleBuffer.h +1967 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMSimpleQueue.h +204 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTag.h +631 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTagCollection.h +560 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTaggedBufferGroup.h +294 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTextMarkup.h +431 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTime.h +627 -34
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTimeRange.h +442 -6
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.apinotes +1267 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.h +33 -6
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Modules/module.modulemap +5 -3
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMAbsoluteAltitude.h +48 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMAccelerometer.h +61 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMAltimeter.h +109 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMAltitude.h +44 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMAmbientPressure.h +38 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMAttitude.h +138 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMAuthorization.h +28 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMAvailability.h +22 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMBatchedSensorManager.h +147 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMBody.h +25 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMDeviceMotion.h +160 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMError.h +30 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMErrorDomain.h +21 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMFallDetectionEvent.h +59 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMFallDetectionManager.h +101 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMGyro.h +70 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMHeadphoneActivityManager.h +129 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMHeadphoneMotionManager.h +131 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMHeadphoneMotionManagerDelegate.h +47 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMHighFrequencyHeartRateData.h +53 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMLogItem.h +33 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMMagnetometer.h +62 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMMotionActivity.h +122 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMMotionActivityManager.h +112 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMMotionManager.h +424 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMMovementDisorderManager.h +183 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMOdometer.h +146 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMPedometer.h +326 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMRecordedAccelerometerData.h +43 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMRecordedDeviceMotion.h +45 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMRecordedPressureData.h +46 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMRotationRateData.h +58 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMSensorRecorder.h +88 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMStepCounter.h +103 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMWaterSubmersionData.h +71 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CMWaterSubmersionManager.h +122 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Headers/CoreMotion.h +46 -0
- package/sdk/ios/System/Library/Frameworks/CoreMotion.framework/Modules/module.modulemap +7 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVBase.h +371 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVBuffer.h +186 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVHostTime.h +64 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVImageBuffer.h +394 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVMetalBuffer.h +59 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVMetalBufferCache.h +98 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVMetalTexture.h +97 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVMetalTextureCache.h +136 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVOpenGLESTexture.h +87 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVOpenGLESTextureCache.h +146 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h +661 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBufferIOSurface.h +81 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBufferPool.h +167 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelFormatDescription.h +175 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CVReturn.h +97 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h +62 -0
- package/sdk/ios/System/Library/Frameworks/CoreVideo.framework/Modules/module.modulemap +12 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/CryptoTokenKit.apinotes +79 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/CryptoTokenKit.h +21 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKBase.h +12 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKError.h +32 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKSmartCard.h +423 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKSmartCardATR.h +81 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKSmartCardSlotNFCSession.h +35 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKSmartCardToken.h +124 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKSmartCardTokenRegistrationManager.h +46 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKTLVRecord.h +100 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKToken.h +323 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKTokenConfiguration.h +74 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKTokenKeychainItem.h +152 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Headers/TKTokenWatcher.h +61 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Modules/CryptoTokenKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +32 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Modules/CryptoTokenKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +32 -0
- package/sdk/ios/System/Library/Frameworks/CryptoTokenKit.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +194 -5105
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/FoundationErrors.h +234 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/FoundationLegacySwiftCompatibility.h +1 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h +1466 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSAttributedString.h +867 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h +76 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h +800 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSByteCountFormatter.h +160 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSByteOrder.h +584 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSCache.h +97 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSCalendar.h +859 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSCharacterSet.h +321 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSCoder.h +476 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSComparisonPredicate.h +123 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSCompoundPredicate.h +63 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSCorelibsRuntime.h +30 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSData.h +727 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDate.h +217 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDateComponentsFormatter.h +247 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDateFormatter.h +507 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDateInterval.h +124 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDateIntervalFormatter.h +118 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDecimal.h +110 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDecimalNumber.h +329 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDictionary.h +764 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSEnergyFormatter.h +65 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h +48 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSError.h +209 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSException.h +610 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSExpression.h +249 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSExtensionContext.h +58 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSExtensionItem.h +44 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSExtensionRequestHandling.h +25 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSFileCoordinator.h +330 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSFileHandle.h +455 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h +1407 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSFilePresenter.h +165 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSFileVersion.h +169 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSFileWrapper.h +371 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSFormatter.h +101 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSHTTPCookie.h +241 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSHTTPCookieStorage.h +159 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSHashTable.h +242 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h +137 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSIndexPath.h +106 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSIndexSet.h +291 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSInflectionRule.h +50 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSInvocation.h +134 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSItemProvider.h +402 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSItemProviderReadingWriting.h +8 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSJSONSerialization.h +95 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSKeyValueCoding.h +249 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSKeyValueObserving.h +272 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSKeyValueSharedObservers.h +77 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSKeyedArchiver.h +418 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSLengthFormatter.h +73 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSLinguisticTagger.h +432 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSListFormatter.h +64 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSLocale.h +331 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSLocalizedNumberFormatRule.h +25 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSLock.h +112 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMapTable.h +275 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMassFormatter.h +69 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMeasurement.h +60 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMeasurementFormatter.h +93 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMetadata.h +281 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMetadataAttributes.h +256 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMethodSignature.h +36 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMorphology.h +215 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSNetServices.h +488 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSNotification.h +189 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSNotificationQueue.h +66 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSNull.h +20 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSNumberFormatter.h +490 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h +867 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h +212 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSOperation.h +634 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSOrderedCollectionChange.h +96 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSOrderedCollectionDifference.h +114 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSOrderedSet.h +822 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSOrthography.h +83 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPathUtilities.h +278 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPersonNameComponents.h +149 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPersonNameComponentsFormatter.h +248 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPointerArray.h +137 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPointerFunctions.h +191 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPort.h +222 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPredicate.h +125 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPredicateValidating.h +33 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSProcessInfo.h +541 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSProgress.h +559 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSPropertyList.h +88 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSProxy.h +56 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSRange.h +83 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSRegularExpression.h +641 -15
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSRelativeDateTimeFormatter.h +101 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSRunLoop.h +202 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSScanner.h +244 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSSet.h +481 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSSortDescriptor.h +160 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSStream.h +437 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSString.h +1362 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSTermOfAddress.h +64 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSTextCheckingResult.h +179 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSThread.h +208 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSTimeZone.h +221 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSTimer.h +178 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h +1582 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLAuthenticationChallenge.h +117 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLCache.h +211 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLConnection.h +432 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h +147 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLCredentialStorage.h +124 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLError.h +226 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLProtectionSpace.h +153 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLProtocol.h +297 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLRequest.h +464 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLResponse.h +153 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h +2203 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSUUID.h +60 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSUbiquitousKeyValueStore.h +116 -8
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSUndoManager.h +302 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSUnit.h +1491 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSUserActivity.h +199 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSUserDefaults.h +474 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSValue.h +321 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSValueTransformer.h +81 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSXMLParser.h +510 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSXPCConnection.h +304 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h +125 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAnchoredObjectQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAttachment.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAttachmentStore.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSample.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSensitivityPoint.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSensitivityPointClampingRange.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSensitivityTest.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCharacteristicObjects.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKClinicalType.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKContactsLensSpecification.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKContactsPrescription.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKDeletedObject.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKGAD7Assessment.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKGlassesLensSpecification.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKGlassesPrescription.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKLensSpecification.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObjectType.h +7 -7
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKPHQ9Assessment.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySeriesSampleQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQueryAnchor.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKScoredAssessment.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsCollectionQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKUserAnnotatedMedicationQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKVisionPrescription.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKVisionPrism.h +1 -1
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LABase.h +18 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LABiometryType.h +26 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LACompanionType.h +22 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAContext.h +406 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LADomainState.h +93 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAEnvironment.h +49 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAEnvironmentMechanism.h +33 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAEnvironmentMechanismBiometry.h +48 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAEnvironmentMechanismCompanion.h +27 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAEnvironmentMechanismUserPassword.h +20 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAEnvironmentState.h +49 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAError.h +83 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPersistedRight.h +30 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPrivateKey.h +61 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPublicDefines.h +65 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LAPublicKey.h +52 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LARequirement.h +58 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LARight.h +75 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LARightStore.h +57 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LASecret.h +24 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LocalAuthentication.apinotes +5 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Headers/LocalAuthentication.h +24 -0
- package/sdk/ios/System/Library/Frameworks/LocalAuthentication.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKAddress.h +25 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKAddressFilter.h +36 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKAddressRepresentations.h +52 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKAnnotation.h +31 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKAnnotationView.h +168 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKCircle.h +30 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKCircleRenderer.h +30 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKCircleView.h +29 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKClusterAnnotation.h +25 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKCompassButton.h +38 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKDirections.h +36 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKDirectionsRequest.h +53 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKDirectionsResponse.h +79 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKDirectionsTypes.h +16 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKDistanceFormatter.h +42 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKFoundation.h +19 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKGeoJSONSerialization.h +65 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKGeocodingRequest.h +34 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKGeodesicPolyline.h +24 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKGeometry.h +186 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKGradientPolylineRenderer.h +28 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKHybridMapConfiguration.h +25 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKIconStyle.h +23 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKImageryMapConfiguration.h +21 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLocalPointsOfInterestRequest.h +30 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLocalSearch.h +38 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLocalSearchCompleter.h +85 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLocalSearchRequest.h +40 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLocalSearchResponse.h +25 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLookAroundScene.h +20 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLookAroundSceneRequest.h +36 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLookAroundSnapshot.h +29 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLookAroundSnapshotOptions.h +32 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLookAroundSnapshotter.h +32 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKLookAroundViewController.h +69 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapCamera.h +43 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapCameraBoundary.h +29 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapCameraZoomRange.h +32 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapConfiguration.h +30 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapFeatureAnnotation.h +32 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapItem.h +95 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapItemAnnotation.h +33 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapItemDetailViewController.h +76 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapItemIdentifier.h +25 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapItemRequest.h +40 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapSnapshot.h +34 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapSnapshotOptions.h +57 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapSnapshotter.h +30 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMapView.h +351 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMarkerAnnotationView.h +45 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMultiPoint.h +32 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMultiPolygon.h +23 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMultiPolygonRenderer.h +22 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMultiPolyline.h +23 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKMultiPolylineRenderer.h +22 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKOverlay.h +36 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKOverlayPathRenderer.h +63 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKOverlayPathView.h +50 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKOverlayRenderer.h +61 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKOverlayView.h +60 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPinAnnotationView.h +60 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPitchControl.h +37 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPlacemark.h +36 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPointAnnotation.h +26 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPointOfInterestCategory.h +95 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPointOfInterestFilter.h +27 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPolygon.h +27 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPolygonRenderer.h +30 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPolygonView.h +27 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPolyline.h +22 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPolylineRenderer.h +32 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKPolylineView.h +30 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKReverseGeocoder.h +50 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKReverseGeocodingRequest.h +32 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKScaleView.h +39 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKSelectionAccessory.h +95 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKShape.h +21 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKStandardMapConfiguration.h +36 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKTileOverlay.h +51 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKTileOverlayRenderer.h +23 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKTypes.h +43 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKUserLocation.h +41 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKUserLocationView.h +23 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKUserTrackingBarButtonItem.h +28 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKUserTrackingButton.h +30 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MKZoomControl.h +37 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MapKit.apinotes +359 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/MapKit.h +116 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Headers/NSUserActivity+MKMapItem.h +16 -0
- package/sdk/ios/System/Library/Frameworks/MapKit.framework/Modules/module.modulemap +7 -0
- package/sdk/ios/System/Library/Frameworks/MediaToolbox.framework/Headers/MTAudioProcessingTap.h +416 -0
- package/sdk/ios/System/Library/Frameworks/MediaToolbox.framework/Headers/MTFormatNames.h +32 -0
- package/sdk/ios/System/Library/Frameworks/MediaToolbox.framework/Headers/MTProfessionalVideoWorkflow.h +40 -0
- package/sdk/ios/System/Library/Frameworks/MediaToolbox.framework/Headers/MediaToolbox.apinotes +9 -0
- package/sdk/ios/System/Library/Frameworks/MediaToolbox.framework/Headers/MediaToolbox.h +13 -0
- package/sdk/ios/System/Library/Frameworks/MediaToolbox.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/MetalKit.framework/Headers/MTKDefines.h +19 -0
- package/sdk/ios/System/Library/Frameworks/MetalKit.framework/Headers/MTKModel.h +299 -0
- package/sdk/ios/System/Library/Frameworks/MetalKit.framework/Headers/MTKTextureLoader.h +369 -0
- package/sdk/ios/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h +269 -0
- package/sdk/ios/System/Library/Frameworks/MetalKit.framework/Headers/MetalKit.apinotes +181 -0
- package/sdk/ios/System/Library/Frameworks/MetalKit.framework/Headers/MetalKit.h +10 -0
- package/sdk/ios/System/Library/Frameworks/MetalKit.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/MobileCoreServices.framework/Headers/UTCoreTypes.h +20 -0
- package/sdk/ios/System/Library/Frameworks/MobileCoreServices.framework/Modules/module.modulemap +14 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLAnimatedValueTypes.h +224 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLAnimation.h +63 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLAsset.h +335 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLAssetResolver.h +75 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLCamera.h +441 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLLight.h +171 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLMaterial.h +414 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLMesh.h +700 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLMeshBuffer.h +283 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLObject.h +167 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLSubmesh.h +217 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLTexture.h +396 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLTransform.h +129 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLTransformStack.h +134 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLTypes.h +100 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLUtility.h +20 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLValueTypes.h +32 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLVertexDescriptor.h +342 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/MDLVoxelArray.h +277 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/ModelIO.apinotes +57 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/ModelIO.h +26 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Headers/ModelIOExports.h +18 -0
- package/sdk/ios/System/Library/Frameworks/ModelIO.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/EAGL.h +93 -0
- package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/EAGLDrawable.h +72 -0
- package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/EAGLIOSurface.h +28 -0
- package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/ES1/gl.h +812 -0
- package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/ES1/glext.h +365 -0
- package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/gl.h +629 -0
- package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/glext.h +479 -0
- package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/ES3/gl.h +1040 -0
- package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/ES3/glext.h +310 -0
- package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes +53 -0
- package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLESAvailability.h +13 -0
- package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Headers/gltypes.h +39 -0
- package/sdk/ios/System/Library/Frameworks/OpenGLES.framework/Modules/module.modulemap +23 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFAction.h +33 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFActionGoTo.h +31 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFActionNamed.h +51 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFActionRemoteGoTo.h +41 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFActionResetForm.h +41 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFActionURL.h +28 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFAnnotation.h +307 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFAnnotationUtilities.h +289 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFAppearanceCharacteristics.h +74 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFBorder.h +66 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFDestination.h +54 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFDocument.h +347 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFKit.apinotes +32 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFKit.h +28 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFKitPlatform.h +142 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFOutline.h +87 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFPage.h +220 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFPageOverlayViewProvider.h +35 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFSelection.h +107 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFThumbnailView.h +75 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Headers/PDFView.h +461 -0
- package/sdk/ios/System/Library/Frameworks/PDFKit.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEDRMetadata.h +117 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMetalLayer.h +180 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h +22 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h +19 -22
- package/sdk/ios/System/Library/Frameworks/React.framework/Headers/React.h +93 -0
- package/sdk/ios/System/Library/Frameworks/React.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/Symbols.framework/Headers/NSSymbolEffect.h +566 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/CaptiveNetwork.h +189 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/DHCPClientPreferences.h +83 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStoreCopyDHCPInfo.h +119 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Modules/module.modulemap +21 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/DocumentManager.h +11 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSAdaptiveImageGlyph.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSAttributedString.h +231 -19
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSDataAsset.h +49 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSDiffableDataSourceSectionSnapshot.h +158 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSFileProviderExtension.h +21 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSIndexPath+UIKitAdditions.h +33 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSItemProvider+UIKitAdditions.h +68 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutAnchor.h +132 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutConstraint.h +227 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutManager.h +367 -6
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h +458 -86
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSShadow.h +37 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSStringDrawing.h +82 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSText.h +39 -24
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextAttachment.h +337 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h +208 -11
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextContentManager.h +390 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextElement.h +86 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextLayoutFragment.h +185 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextLayoutManager.h +396 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextLineFragment.h +100 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextList.h +140 -9
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextListElement.h +94 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextRange.h +141 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextSelection.h +118 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextSelectionNavigation.h +312 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextStorage.h +191 -5
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextTable.h +96 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextViewportLayoutController.h +192 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextViewportRenderingSurface.h +30 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTouchBar+UIKitAdditions.h +61 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSUserActivity+NSItemProvider.h +18 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/PrintKitUI.h +20 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/ShareSheet.h +15 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h +53 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibility.h +644 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityAdditions.h +76 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityConstants.h +228 -22
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityContainer.h +110 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityContentSizeCategoryImageAdjusting.h +54 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityCustomAction.h +78 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityCustomRotor.h +101 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityElement.h +49 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityIdentification.h +53 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityLocationDescriptor.h +69 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityZoom.h +35 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActionSheet.h +82 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivity.h +66 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivityCollaborationModeRestriction.h +90 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivityIndicatorView.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivityItemProvider.h +1 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivityItemsConfiguration.h +47 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivityItemsConfigurationReading+ShareSheet.h +20 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivityItemsConfigurationReading.h +67 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIActivityViewController.h +56 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAlert.h +14 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAlertController.h +64 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h +88 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAppearance.h +55 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +653 -34
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplicationShortcutItem.h +84 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIArrangementViewController.h +124 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAttachmentBehavior.h +112 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBackgroundConfiguration.h +129 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBackgroundExtensionView.h +46 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBandSelectionInteraction.h +53 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarAppearance.h +24 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarButtonItem.h +285 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarButtonItemAppearance.h +71 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarButtonItemBadge.h +56 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarButtonItemGroup.h +72 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarCommon.h +43 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarItem.h +49 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarMinimization.h +61 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBehavioralStyle.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBezierPath.h +94 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBlurEffect.h +71 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIButton.h +188 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIButtonConfiguration.h +173 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarSelection.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarSelectionMultiDate.h +79 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarSelectionSingleDate.h +63 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarSelectionWeekOfYear.h +63 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarView.h +103 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICalendarViewDecoration.h +64 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICanvasFeedbackGenerator.h +31 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICellAccessory.h +241 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICellConfigurationState.h +50 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICloudSharingController.h +84 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionLayoutList.h +143 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionView.h +770 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewCell.h +120 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewCompositionalLayout.h +614 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewController.h +50 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewFlowLayout.h +68 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewItemRegistration.h +51 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h +192 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewListCell.h +59 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewTransitionLayout.h +39 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewUpdateItem.h +30 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICollisionBehavior.h +69 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h +161 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIColorPickerViewController.h +71 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIColorWell.h +43 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICommand.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIConfigurationColorTransformer.h +37 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIConfigurationState.h +40 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentConfiguration.h +51 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentSizeCategory.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentSizeCategoryAdjusting.h +31 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentUnavailableButtonProperties.h +39 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentUnavailableConfiguration.h +90 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentUnavailableConfigurationState.h +36 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentUnavailableImageProperties.h +46 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentUnavailableTextProperties.h +53 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContentUnavailableView.h +37 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuConfiguration.h +73 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuInteraction.h +181 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuSystem.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextualAction.h +42 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIControl.h +177 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIConversationContext.h +41 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIConversationEntry.h +46 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICornerConfiguration.h +77 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICornerRadius.h +36 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDataDetectors.h +15 -19
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDataSourceTranslating.h +55 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDatePicker.h +55 -13
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDeferredMenuElement.h +84 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h +88 -16
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDiffableDataSource.h +252 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocument.h +204 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentBrowserAction.h +44 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentBrowserViewController.h +199 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentInteractionController.h +104 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentMenuViewController.h +47 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentPickerExtensionViewController.h +47 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentPickerViewController.h +77 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentProperties.h +48 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentViewController.h +48 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentViewControllerLaunchOptions.h +59 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDragInteraction.h +247 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDragItem.h +59 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDragPreview.h +52 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDragPreviewParameters.h +22 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDragSession.h +118 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDropInteraction.h +166 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDynamicAnimator.h +70 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDynamicBehavior.h +75 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDynamicItemBehavior.h +62 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEditMenuInteraction.h +149 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h +4 -24
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEventAttribution.h +68 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEventAttributionView.h +23 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFeedbackGenerator.h +37 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFieldBehavior.h +169 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFindInteraction.h +90 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFindSession.h +134 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocus.h +198 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusAnimationCoordinator.h +66 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusDebugger.h +66 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusDefines.h +19 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusEffect.h +62 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusGuide.h +36 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusMovementHint.h +37 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusSystem+UIKitAdditions.h +32 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusSystem.h +57 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFocusUpdateContext+UIKitAdditions.h +31 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFont.h +11 -5
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFontDescriptor.h +14 -7
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFontMetrics.h +40 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFontPickerViewController.h +50 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFontPickerViewControllerConfiguration.h +38 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFoundation.h +32 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGeometry.h +10 -40
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizer.h +3 -14
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGlassEffect.h +58 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGraphics.h +57 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGraphicsImageRenderer.h +65 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGraphicsPDFRenderer.h +47 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGraphicsRenderer.h +72 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGraphicsRendererSubclass.h +39 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGravityBehavior.h +39 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGuidedAccess.h +91 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGuidedAccessRestrictions.h +14 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHinge.h +76 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHingeInteraction.h +77 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverEffect.h +63 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverEffectLayer.h +74 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverGestureRecognizer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverStyle.h +64 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImage.h +374 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImageAsset.h +37 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImageConfiguration.h +58 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController.h +121 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImageReader.h +57 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImageSymbolConfiguration.h +84 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImageView.h +119 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImpactFeedbackGenerator.h +46 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIIndirectScribbleInteraction.h +117 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInputSuggestion.h +26 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInputView.h +33 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInputViewController.h +77 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h +219 -23
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKey.h +43 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKeyCommand.h +121 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKeyConstants.h +34 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKeyboardLayoutGuide.h +42 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes +4 -172
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +19 -926
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKitCore.h +435 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h +13 -20
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILabel.h +116 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILargeContentViewer.h +121 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILetterformAwareAdjusting.h +38 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILexicon.h +34 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIListContentConfiguration.h +154 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIListContentImageProperties.h +87 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIListContentTextProperties.h +77 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIListSeparatorConfiguration.h +68 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILocalNotification.h +68 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILocalizedIndexedCollation.h +46 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILongPressGestureRecognizer.h +36 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILookToScrollInteraction.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMailConversationContext.h +34 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMailConversationEntry.h +35 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMainMenuSystem.h +73 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIManagedDocument.h +68 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h +5 -24
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuBuilder.h +173 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuController.h +66 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h +6 -34
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuSystem.h +58 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMessageConversationContext.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMessageConversationEntry.h +35 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMotionEffect.h +80 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINavigationBar.h +166 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINavigationBarAppearance.h +61 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINavigationController.h +165 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINavigationItem.h +268 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINib.h +36 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINibDeclarations.h +36 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINibLoading.h +33 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINotificationFeedbackGenerator.h +33 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIOpenURLContext.h +30 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h +51 -14
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIOverlayArrangement.h +60 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPageControl.h +112 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPageControlProgress.h +118 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPageViewController.h +123 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPanGestureRecognizer.h +43 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPasteConfiguration.h +35 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPasteConfigurationSupporting.h +31 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPasteControl.h +52 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPasteboard.h +193 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPencilInteraction.h +170 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPhotoSearchSuggestion.h +68 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPickerView.h +8 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPinchGestureRecognizer.h +31 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerAccessory.h +73 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerInteraction.h +106 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerLockState.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerRegion.h +41 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerStyle.h +153 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverBackgroundView.h +51 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverController.h +104 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverPresentationController.h +92 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverPresentationControllerSourceItem.h +56 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverSupport.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPresentationController.h +132 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPress.h +70 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPressesEvent.h +28 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPreviewInteraction.h +51 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPreviewParameters.h +56 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintError.h +27 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintFormatter.h +93 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintInfo.h +54 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintInteractionController.h +97 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintPageRenderer.h +57 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintPaper.h +35 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintServiceExtension.h +38 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrinter.h +131 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrinterPickerController.h +77 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIProgressView.h +46 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPushBehavior.h +49 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIReferenceLibraryViewController.h +35 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIRefreshControl.h +42 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIRegion.h +59 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIResponder+UIActivityItemsConfiguration.h +25 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h +228 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIRotationGestureRecognizer.h +31 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScene+AVAudioSession.h +30 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScene.h +122 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneAccessory.h +83 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneAccessoryRegistration.h +41 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneActivationConditions.h +41 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneClosureConfirmation.h +65 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneConfiguration.h +52 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneDefinitions.h +38 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneDestructionCondition.h +35 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneEnhancedStateRestoration.h +25 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneOptions.h +116 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneSession.h +43 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneSessionActivationRequest.h +55 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneSizeRestrictions.h +39 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneSystemProtectionManager.h +42 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneWindowingBehaviors.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISceneWindowingControlStyle.h +38 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h +109 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScreenEdgePanGestureRecognizer.h +24 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScreenMode.h +23 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScreenshotService.h +66 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScribbleInteraction.h +86 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScrollEdgeElementContainerInteraction.h +41 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h +348 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchBar.h +212 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchContainerViewController.h +27 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchController.h +162 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchDisplayController.h +75 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchSuggestion.h +90 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchTab.h +35 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchTextField.h +131 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISegmentedControl.h +134 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISelectionFeedbackGenerator.h +30 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIShadowProperties.h +43 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIShape.h +176 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISheetPresentationController.h +173 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISlider.h +73 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISliderTrackConfiguration.h +49 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISmartReplySuggestion.h +32 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISnapBehavior.h +31 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISplitArrangement.h +114 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISplitViewController.h +314 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISplitViewControllerLayoutEnvironment.h +31 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISpringLoadedInteraction.h +144 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISpringLoadedInteractionSupporting.h +25 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStackView.h +236 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStandardTextCursorView.h +25 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStateRestoration.h +95 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStatusBarManager.h +36 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStepper.h +51 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStoryboard.h +35 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStoryboardPopoverSegue.h +28 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStoryboardSegue.h +52 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStringDrawing.h +98 -12
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISwipeActionsConfiguration.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISwipeGestureRecognizer.h +42 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISwitch.h +52 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISymbolContentTransition.h +41 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISymbolEffectCompletion.h +53 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITab.h +148 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabAccessory.h +65 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBar.h +158 -6
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarAppearance.h +31 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarController.h +232 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarControllerSidebar.h +250 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarItem.h +75 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabGroup.h +116 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabSidebarItem.h +79 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITableView.h +802 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITableViewCell.h +200 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITableViewController.h +38 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITableViewHeaderFooterView.h +87 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITapGestureRecognizer.h +36 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITargetedDragPreview.h +37 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITargetedPreview.h +98 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextChecker.h +53 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextCursorDropPositionAnimator.h +43 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextCursorView.h +31 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextDragPreviewRenderer.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextDragURLPreviews.h +46 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextDragging.h +129 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextDropProposal.h +102 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextDropping.h +143 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextField.h +227 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextFormattingCoordinator.h +51 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextFormattingViewController.h +89 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextFormattingViewControllerChangeValue.h +95 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextFormattingViewControllerComponent.h +92 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextFormattingViewControllerConfiguration.h +48 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextFormattingViewControllerFormattingDescriptor.h +94 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextFormattingViewControllerFormattingStyle.h +39 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInput.h +379 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInputContext.h +26 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInputTraits.h +290 -29
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInteraction.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextItem.h +98 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextItemInteraction.h +14 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextLoupeSession.h +41 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextPasteConfigurationSupporting.h +28 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextPasteDelegate.h +147 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextSearching.h +161 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextSelectionDisplayInteraction.h +81 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextSelectionHandleView.h +39 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextSelectionHighlightView.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextView.h +369 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITimingCurveProvider.h +31 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITimingParameters.h +84 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIToolTipInteraction.h +78 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIToolbar.h +91 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIToolbarAppearance.h +35 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h +11 -12
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITrackingLayoutGuide.h +46 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITrait.h +142 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h +306 -18
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITraitListEnvironment.h +28 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIUpdateActionPhase.h +102 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIUpdateInfo.h +82 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIUpdateLink.h +95 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIUserActivity.h +27 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h +128 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVerticalBarEdge.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVibrancyEffect.h +44 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVideoEditorController.h +47 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIView.h +696 -17
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewAnimating.h +84 -12
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewConfigurationState.h +40 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h +880 -16
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransition.h +83 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitionCoordinator.h +138 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitioning.h +253 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewLayoutRegion.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewPropertyAnimator.h +109 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewReservedRegion.h +81 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVisualEffect.h +35 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVisualEffectView.h +44 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWebView.h +106 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h +156 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h +153 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneActivationAction.h +51 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneActivationConfiguration.h +41 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneActivationInteraction.h +43 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneActivationRequestOptions.h +37 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneDragInteraction.h +28 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometry.h +65 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferences.h +27 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesIOS.h +31 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesMac.h +31 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesVision.h +49 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScenePlacement.h +28 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneProminentPlacement.h +26 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScenePushPlacement.h +38 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneReplacePlacement.h +32 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneStandardPlacement.h +27 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWritingToolsCoordinator.h +1140 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWritingToolsCoordinatorAnimationParameters.h +67 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWritingToolsCoordinatorContext.h +143 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIZoomTransitionOptions.h +72 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UNNotificationResponse+UIKitAdditions.h +25 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Modules/module.modulemap +7 -0
- package/sdk/ios/System/Library/Frameworks/UIKitActivity.framework/Headers/UIKitActivity.h +49 -0
- package/sdk/ios/System/Library/Frameworks/UIKitActivity.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/UIKitAnimationOptions.framework/Headers/UIKitAnimationOptions.apinotes +6 -0
- package/sdk/ios/System/Library/Frameworks/UIKitAnimationOptions.framework/Headers/UIViewAnimationOptions.h +3 -0
- package/sdk/ios/System/Library/Frameworks/UIKitAnimationOptions.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/UIKitGeometry.framework/Headers/UIEdgeInsets.h +21 -0
- package/sdk/ios/System/Library/Frameworks/UIKitGeometry.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/UIKitText.apinotes +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Headers/UIKitTypes.h +2209 -0
- package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Headers/UIWindowLevel.h +5 -0
- package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/UIUtilities.framework/Headers/UICoordinateSpace.h +24 -0
- package/sdk/ios/System/Library/Frameworks/UIUtilities.framework/Headers/UIDefines.h +26 -0
- package/sdk/ios/System/Library/Frameworks/UIUtilities.framework/Headers/UIGeometry.h +22 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/NSItemProvider+UTType.h +128 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.h +2 -0
- package/sdk/ios/usr/include/MacTypes.h +815 -10
- package/sdk/ios/usr/include/libxml2/libxml/DOCBparser.h +96 -0
- package/sdk/ios/usr/include/libxml2/libxml/HTMLparser.h +306 -0
- package/sdk/ios/usr/include/libxml2/libxml/HTMLtree.h +147 -0
- package/sdk/ios/usr/include/libxml2/libxml/SAX.h +173 -0
- package/sdk/ios/usr/include/libxml2/libxml/SAX2.h +178 -0
- package/sdk/ios/usr/include/libxml2/libxml/c14n.h +128 -0
- package/sdk/ios/usr/include/libxml2/libxml/catalog.h +182 -0
- package/sdk/ios/usr/include/libxml2/libxml/chvalid.h +230 -0
- package/sdk/ios/usr/include/libxml2/libxml/debugXML.h +217 -0
- package/sdk/ios/usr/include/libxml2/libxml/dict.h +79 -0
- package/sdk/ios/usr/include/libxml2/libxml/encoding.h +245 -0
- package/sdk/ios/usr/include/libxml2/libxml/entities.h +151 -0
- package/sdk/ios/usr/include/libxml2/libxml/globals.h +508 -0
- package/sdk/ios/usr/include/libxml2/libxml/hash.h +236 -0
- package/sdk/ios/usr/include/libxml2/libxml/list.h +137 -0
- package/sdk/ios/usr/include/libxml2/libxml/nanoftp.h +163 -0
- package/sdk/ios/usr/include/libxml2/libxml/nanohttp.h +81 -0
- package/sdk/ios/usr/include/libxml2/libxml/parser.h +1243 -0
- package/sdk/ios/usr/include/libxml2/libxml/parserInternals.h +644 -0
- package/sdk/ios/usr/include/libxml2/libxml/pattern.h +100 -0
- package/sdk/ios/usr/include/libxml2/libxml/relaxng.h +217 -0
- package/sdk/ios/usr/include/libxml2/libxml/schemasInternals.h +958 -0
- package/sdk/ios/usr/include/libxml2/libxml/schematron.h +142 -0
- package/sdk/ios/usr/include/libxml2/libxml/threads.h +89 -0
- package/sdk/ios/usr/include/libxml2/libxml/tree.h +1311 -0
- package/sdk/ios/usr/include/libxml2/libxml/uri.h +94 -0
- package/sdk/ios/usr/include/libxml2/libxml/valid.h +458 -0
- package/sdk/ios/usr/include/libxml2/libxml/xinclude.h +129 -0
- package/sdk/ios/usr/include/libxml2/libxml/xlink.h +189 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlIO.h +368 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlautomata.h +146 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlerror.h +945 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlexports.h +77 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlmemory.h +224 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlmodule.h +57 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlreader.h +428 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlregexp.h +222 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlsave.h +88 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlschemas.h +246 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlschemastypes.h +151 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlstring.h +140 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlunicode.h +202 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlversion.h +485 -0
- package/sdk/ios/usr/include/libxml2/libxml/xmlwriter.h +488 -0
- package/sdk/ios/usr/include/libxml2/libxml/xpath.h +564 -0
- package/sdk/ios/usr/include/libxml2/libxml/xpathInternals.h +632 -0
- package/sdk/ios/usr/include/libxml2/libxml/xpointer.h +114 -0
- package/sdk/ios/usr/include/libxml2/module.modulemap +5 -0
- package/sdk/ios/usr/include/mach-o/compact_unwind_encoding.h +542 -0
- package/sdk/ios/usr/include/objc/NSObject.h +0 -6
- package/sdk/ios/usr/include/simd/base.h +160 -0
- package/sdk/ios/usr/include/simd/common.h +5617 -0
- package/sdk/ios/usr/include/simd/conversion.h +2472 -0
- package/sdk/ios/usr/include/simd/extern.h +65 -0
- package/sdk/ios/usr/include/simd/geometry.h +1524 -0
- package/sdk/ios/usr/include/simd/logic.h +1399 -0
- package/sdk/ios/usr/include/simd/math.h +6595 -0
- package/sdk/ios/usr/include/simd/matrix.h +2865 -0
- package/sdk/ios/usr/include/simd/matrix_types.h +758 -0
- package/sdk/ios/usr/include/simd/module.modulemap +6 -0
- package/sdk/ios/usr/include/simd/packed.h +1111 -0
- package/sdk/ios/usr/include/simd/quaternion.h +1780 -0
- package/sdk/ios/usr/include/simd/simd.h +30 -0
- package/sdk/ios/usr/include/simd/types.h +158 -0
- package/sdk/ios/usr/include/simd/vector.h +52 -0
- package/sdk/ios/usr/include/simd/vector_make.h +8759 -0
- package/sdk/ios/usr/include/simd/vector_types.h +1381 -0
- package/sdk/ios/usr/include/sys/cdefs.h +3 -0
- package/sdk/ios/usr/include/tgmath.h +1441 -0
- package/sdk/ios/usr/include/unicode/localpointer.h +607 -0
- package/sdk/ios/usr/include/unicode/parseerr.h +94 -0
- package/sdk/ios/usr/include/unicode/platform.h +852 -0
- package/sdk/ios/usr/include/unicode/ptypes.h +66 -0
- package/sdk/ios/usr/include/unicode/putil.h +183 -0
- package/sdk/ios/usr/include/unicode/stringoptions.h +190 -0
- package/sdk/ios/usr/include/unicode/uchar.h +4421 -0
- package/sdk/ios/usr/include/unicode/uconfig.h +504 -0
- package/sdk/ios/usr/include/unicode/ucpmap.h +158 -0
- package/sdk/ios/usr/include/unicode/uidna.h +794 -0
- package/sdk/ios/usr/include/unicode/uiter.h +709 -0
- package/sdk/ios/usr/include/unicode/umachine.h +513 -0
- package/sdk/ios/usr/include/unicode/uregex.h +1617 -0
- package/sdk/ios/usr/include/unicode/urename.h +2057 -0
- package/sdk/ios/usr/include/unicode/ustring.h +1719 -0
- package/sdk/ios/usr/include/unicode/utext.h +1613 -0
- package/sdk/ios/usr/include/unicode/utf.h +256 -0
- package/sdk/ios/usr/include/unicode/utf16.h +740 -0
- package/sdk/ios/usr/include/unicode/utf8.h +908 -0
- package/sdk/ios/usr/include/unicode/utf_old.h +1209 -0
- package/sdk/ios/usr/include/unicode/utypes.h +913 -0
- package/sdk/ios/usr/include/unicode/uvernum.h +191 -0
- package/sdk/ios/usr/include/unicode/uversion.h +254 -0
- package/sdk/ios/wasm/include/__header_time.h +12 -0
- package/sdk/ios/wasm/include/__locale_dir/locale_base_api/musl.h +6 -0
- package/sdk/ios/wasm/include/__typedef_clockid_t.h +18 -0
- package/sdk/ios/wasm/include/fts.h +22 -0
- package/sdk/ios/wasm/include/math.h +53 -0
- package/sdk/ios/wasm/include/pthread/pthread.h +2 -0
- package/sdk/ios/wasm/include/pthread.h +13 -0
- package/sdk/ios/wasm/include/string.h +6 -0
- package/sdk/ios/wasm/include/swiftToCxx/_SwiftCxxInteroperability.h +319 -0
- package/sdk/ios/wasm/include/sys/mman.h +4 -4
- package/sdk/ios/wasm/include/sys/resource.h +2 -1
- package/sdk/ios/wasm/include/sys/socket.h +10 -0
- package/sdk/ios/wasm/include/sys/ucontext.h +4 -0
- package/sdk/ios/wasm/include/tgmath.h +3 -0
- package/sdk/ios/wasm/include/time.h +12 -0
- package/sdk/ios/wasm/include/unistd.h +1 -0
- package/sdk/ios/wasm/storage-include/mach/machine/thread_status.h +4 -1
- package/sdk/ios/wasm/storage-include/mach/machine/vm_types.h +4 -0
- package/sdk/native-hashes.json +2 -1
- package/src/bundle-channel.mjs +10 -4
- package/src/dns-over-https.ts +70 -0
- package/src/expo-native-workspace.ts +4 -0
- package/src/expo-swift-host.ts +130 -70
- package/src/host/bridge-host.ts +8 -0
- package/src/host/fetch-proxy-handler.ts +9 -0
- package/src/host/fetch-proxy-transport.ts +8 -0
- package/src/host/hostname-resolver.ts +44 -0
- package/src/host/network-policy.ts +4 -0
- package/src/installed-native-libraries.ts +193 -0
- package/src/native-static-libraries.ts +121 -8
- package/src/nitro-adapter.lock.json +316 -260
- package/src/nitro-bundle.ts +25 -6
- package/src/nitro-compile.ts +134 -147
- package/src/nitro-compiler-digest.ts +4 -0
- package/src/nitro-source.ts +35 -12
- package/src/nitro-superset.lock.json +133 -36
- package/src/nitro-superset.ts +33 -6
- package/src/nitroContract.ts +11 -2
- package/src/pdfium-raster.ts +97 -0
- package/src/react-native-bridge-modules.ts +8 -0
- package/src/swift-binary-modules.ts +2 -2
- package/src/swift-compile.ts +465 -255
- package/src/swift-compiler-digest.ts +2 -0
- package/src/swift-coverage/xcode-asset-symbols.ts +6 -2
- package/src/swift-coverage/xcode-assets.ts +4 -2
- package/src/swift-cxx-reachable.ts +3 -3
- package/src/swift-darwin-records.ts +4 -3
- package/src/swift-distribution.lock.json +34 -15
- package/src/swift-distribution.ts +23 -0
- package/src/swift-foundation.ts +9 -0
- package/src/swift-host.ts +189 -60
- package/src/swift-installed-targets.ts +188 -0
- package/src/swift-link-roots.ts +6 -3
- package/src/swift-objc-compile.ts +128 -43
- package/src/swift-objc-standin.ts +69 -30
- package/src/swift-package.ts +43 -14
- package/src/swift-pdf-raster.ts +34 -15
- package/src/swift-reproducible.ts +2 -2
- package/src/swift-runtime-products.ts +87 -0
- package/src/swift-shared-sdk.ts +56 -14
- package/src/swift-source-file.ts +12 -0
- package/src/swift-source-pods.ts +28 -29
- package/src/swift-standin-emit.ts +205 -36
- package/src/swift-standins.ts +221 -86
- package/src/swift-submit.ts +2 -1
- package/src/swift-toolchain.ts +51 -0
- package/src/swift-uniform-type-constants.ts +37 -0
- package/src/swift-wasm-prune.ts +10 -8
- package/src/swift-xcframework.ts +37 -0
- package/src/swiftContract.ts +50 -13
- package/src/swiftRuntimeProductContract.ts +92 -0
- package/src/turbo-codegen-intake.ts +1 -0
- package/src/turbo-compile.ts +96 -60
- package/src/turbo-runtime.lock.json +23 -16
- package/src/turbo-source.ts +276 -141
- package/src/worker-system-chunks.ts +6 -1
- package/src/write-build-file.ts +15 -0
- package/src/xcode-header-search.ts +3 -2
- package/src/xcode-project.ts +131 -15
- package/src/turbo-native-libraries.ts +0 -98
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1808 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -34,6 +34,7 @@ var swift_compile_exports = {};
|
|
|
34
34
|
__export(swift_compile_exports, {
|
|
35
35
|
FOUNDATION_IMPLICIT_MODULES: () => FOUNDATION_IMPLICIT_MODULES,
|
|
36
36
|
MULTI_MANIFEST_VERSION: () => MULTI_MANIFEST_VERSION,
|
|
37
|
+
SWIFT_BUILD_JOBS: () => SWIFT_BUILD_JOBS,
|
|
37
38
|
WASM_TRIPLE: () => WASM_TRIPLE,
|
|
38
39
|
brotliCompressQ11: () => brotliCompressQ11,
|
|
39
40
|
brotliCompressQ4: () => brotliCompressQ4,
|
|
@@ -44,7 +45,6 @@ __export(swift_compile_exports, {
|
|
|
44
45
|
ensureMacroPlugins: () => ensureMacroPlugins,
|
|
45
46
|
foundationOwnerOf: () => foundationOwnerOf,
|
|
46
47
|
lowerAVAssetURLCluster: () => lowerAVAssetURLCluster,
|
|
47
|
-
lowerNSDictionaryLiteralReturn: () => lowerNSDictionaryLiteralReturn,
|
|
48
48
|
lowerNSValueTimeBox: () => lowerNSValueTimeBox,
|
|
49
49
|
missingSwiftModules: () => missingSwiftModules,
|
|
50
50
|
neutralizedNativeMain: () => neutralizedNativeMain,
|
|
@@ -86,11 +86,11 @@ __export(swift_compile_exports, {
|
|
|
86
86
|
writeSwiftProject: () => writeSwiftProject
|
|
87
87
|
});
|
|
88
88
|
module.exports = __toCommonJS(swift_compile_exports);
|
|
89
|
-
var
|
|
89
|
+
var import_node_child_process13 = require("node:child_process");
|
|
90
90
|
var import_node_crypto8 = require("node:crypto");
|
|
91
|
-
var
|
|
91
|
+
var import_node_fs17 = require("node:fs");
|
|
92
92
|
var import_node_os9 = __toESM(require("node:os"), 1);
|
|
93
|
-
var
|
|
93
|
+
var import_node_path19 = __toESM(require("node:path"), 1);
|
|
94
94
|
|
|
95
95
|
// src/admitted-mac-build.ts
|
|
96
96
|
var import_node_child_process = require("node:child_process");
|
|
@@ -2793,6 +2793,57 @@ var compilerArchives = {
|
|
|
2793
2793
|
}
|
|
2794
2794
|
}
|
|
2795
2795
|
},
|
|
2796
|
+
"swift-6.4.0-RELEASE-custom-bd49e2f77434e7b1": {
|
|
2797
|
+
identity: "bd49e2f77434e7b1",
|
|
2798
|
+
hosts: {
|
|
2799
|
+
"darwin-arm64": {
|
|
2800
|
+
checksum: "e815b06394566e8125475afc8f1807f7f465318c845549c5831043cdc28eca64",
|
|
2801
|
+
manifest: "6e3ae00102c67f2f9761b1462aab63580f2ca010469300a7c4a620765573e4e0"
|
|
2802
|
+
},
|
|
2803
|
+
"linux-x64": {
|
|
2804
|
+
checksum: "9336e0b0aefaa0171799d4b5d4215c711a24c79ac9e91baa362ba100fc22534f",
|
|
2805
|
+
manifest: "3802c631f593eda1d79dc4af55a8667356eece954d2ea59b62b1f8f981fa538e"
|
|
2806
|
+
},
|
|
2807
|
+
"linux-arm64": {
|
|
2808
|
+
checksum: "851b5a756472ad53d833e8f0ab3ae55c05d3e6b49871bb982c977b7582cc117f",
|
|
2809
|
+
manifest: "4162656192a2881e5ccc763e3e66ce46646a84ff42cdf2de50bd6424ebac5e34"
|
|
2810
|
+
}
|
|
2811
|
+
}
|
|
2812
|
+
},
|
|
2813
|
+
"swift-6.4.0-RELEASE-custom-13450179a7e01c81": {
|
|
2814
|
+
identity: "13450179a7e01c81",
|
|
2815
|
+
hosts: {
|
|
2816
|
+
"darwin-arm64": {
|
|
2817
|
+
checksum: "a29be6b722f15c7aafac26ba5703a7392f49ce7ea5e1c56548846b7e458290f7",
|
|
2818
|
+
manifest: "9d89bc39d80d13c8bdb93ad5c306bb87e83bac34090f9bcec57476fd90a6a115"
|
|
2819
|
+
},
|
|
2820
|
+
"linux-x64": {
|
|
2821
|
+
checksum: "b9e9e3ed855f6a8c85f5fe24016b83792a0088e2d0ea632482426c4dc6031b98",
|
|
2822
|
+
manifest: "5de3bb6bf131e68862539195fbb4fce9d4de2b528fa882495b27fd4bdd02e5ab"
|
|
2823
|
+
},
|
|
2824
|
+
"linux-arm64": {
|
|
2825
|
+
checksum: "844f5ead2854d4ac2d1fc9fb13c366450a2ed4b8fa641719822d74f9150575b4",
|
|
2826
|
+
manifest: "1fcfb353679186a3e631b83085e5e8c3dde8cb32d25052b3c8b7896339a4378b"
|
|
2827
|
+
}
|
|
2828
|
+
}
|
|
2829
|
+
},
|
|
2830
|
+
"swift-6.4.0-RELEASE-custom-f6868fa6054e83d6": {
|
|
2831
|
+
identity: "f6868fa6054e83d6",
|
|
2832
|
+
hosts: {
|
|
2833
|
+
"darwin-arm64": {
|
|
2834
|
+
checksum: "bd80c2f35864ec29883dd22001d0165821e80d78002fc12f92406c3c708694a4",
|
|
2835
|
+
manifest: "daad0da2a296084307769b59719dbe83e45755871438fad129b20421b111657b"
|
|
2836
|
+
},
|
|
2837
|
+
"linux-x64": {
|
|
2838
|
+
checksum: "39707ef599835ae2d9ce5aea026b7a96d43e51b4c4dcd2ca62d5fc11c520e871",
|
|
2839
|
+
manifest: "065405edd9b02a84ce01c09e68531834dbe190232e6387b056a481354c44fe81"
|
|
2840
|
+
},
|
|
2841
|
+
"linux-arm64": {
|
|
2842
|
+
checksum: "a91f2947d560b49b56334938d0efdcb22286557da63d65389129030b2a4e146d",
|
|
2843
|
+
manifest: "4dfbc167c96f30c7de19cc280948786fb79a888b666ca200b0788803902361ce"
|
|
2844
|
+
}
|
|
2845
|
+
}
|
|
2846
|
+
},
|
|
2796
2847
|
[SWIFT_HOST_COMPILER_RELEASE]: {
|
|
2797
2848
|
identity: SWIFT_HOST_COMPILER_ID,
|
|
2798
2849
|
hosts: {
|
|
@@ -3430,17 +3481,35 @@ function settingsBlocks(call, tool) {
|
|
|
3430
3481
|
bodies.push(bracketBody(call, open.index + open[0].length));
|
|
3431
3482
|
return bodies;
|
|
3432
3483
|
}
|
|
3484
|
+
function unsafeFlagsAt(body, start, encoded, target) {
|
|
3485
|
+
if (!encoded)
|
|
3486
|
+
return [...bracketBody(body, start).matchAll(/"((?:[^"\\]|\\.)*)"/g)].map(
|
|
3487
|
+
(match) => swiftStringValue(match[1], `unsafeFlags of target ${target} (${match[0]})`)
|
|
3488
|
+
);
|
|
3489
|
+
const literal = /^((?:[^"\\]|\\.)*)"/.exec(body.slice(start));
|
|
3490
|
+
if (!literal) throw new Error(`Unterminated peachCompilerArguments of target ${target}`);
|
|
3491
|
+
const decoded = JSON.parse(
|
|
3492
|
+
swiftStringValue(literal[1], `peachCompilerArguments of target ${target}`)
|
|
3493
|
+
);
|
|
3494
|
+
const flags = Array.isArray(decoded) ? decoded.filter((flag) => typeof flag === "string") : [];
|
|
3495
|
+
if (!Array.isArray(decoded) || flags.length !== decoded.length)
|
|
3496
|
+
throw new Error(`peachCompilerArguments of target ${target} is not a string array`);
|
|
3497
|
+
return flags;
|
|
3498
|
+
}
|
|
3499
|
+
var unsafeFlagsOpen = /\.unsafeFlags\(\s*(?:(\[)|peachCompilerArguments\(\s*")/g;
|
|
3433
3500
|
function settingFeatures(call, setting, target) {
|
|
3434
3501
|
const found = [];
|
|
3435
3502
|
for (const body of settingsBlocks(call, "swift")) {
|
|
3436
3503
|
if (setting === ".unsafeFlags") {
|
|
3437
|
-
for (const open of body.matchAll(
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3504
|
+
for (const open of body.matchAll(unsafeFlagsOpen))
|
|
3505
|
+
found.push(
|
|
3506
|
+
...unsafeFlagsAt(
|
|
3507
|
+
body,
|
|
3508
|
+
open.index + open[0].length,
|
|
3509
|
+
open[1] === void 0,
|
|
3510
|
+
target
|
|
3511
|
+
)
|
|
3512
|
+
);
|
|
3444
3513
|
} else {
|
|
3445
3514
|
const name2 = "([A-Za-z_][A-Za-z0-9_]*(?:=[A-Za-z_][A-Za-z0-9_.-]*)?)";
|
|
3446
3515
|
const pattern = setting === ".enableExperimentalFeature" ? new RegExp(`\\.enableExperimentalFeature\\(\\s*"${name2}"\\s*\\)`, "g") : new RegExp(`\\.enableUpcomingFeature\\(\\s*"${name2}"\\s*\\)`, "g");
|
|
@@ -3454,7 +3523,7 @@ function settingClang(call, target) {
|
|
|
3454
3523
|
for (const tool of ["c", "cxx"])
|
|
3455
3524
|
for (const body of settingsBlocks(call, tool))
|
|
3456
3525
|
for (const match of body.matchAll(
|
|
3457
|
-
/\.headerSearchPath\(\s*"((?:[^"\\]|\\.)*)"\s*\)|\.unsafeFlags\(\s
|
|
3526
|
+
/\.headerSearchPath\(\s*"((?:[^"\\]|\\.)*)"\s*\)|\.unsafeFlags\(\s*(?:(\[)|peachCompilerArguments\(\s*")/g
|
|
3458
3527
|
)) {
|
|
3459
3528
|
if (match[1] !== void 0) {
|
|
3460
3529
|
found.push({
|
|
@@ -3467,14 +3536,13 @@ function settingClang(call, target) {
|
|
|
3467
3536
|
continue;
|
|
3468
3537
|
}
|
|
3469
3538
|
const open = match.index + match[0].length;
|
|
3539
|
+
if (match[2] === void 0) {
|
|
3540
|
+
found.push({ tool, flags: unsafeFlagsAt(body, open, true, target) });
|
|
3541
|
+
continue;
|
|
3542
|
+
}
|
|
3470
3543
|
const list = bracketBody(body, open);
|
|
3471
3544
|
if (!/^\s*\)/.test(body.slice(open + list.length + 1))) continue;
|
|
3472
|
-
found.push({
|
|
3473
|
-
tool,
|
|
3474
|
-
flags: [...list.matchAll(/"((?:[^"\\]|\\.)*)"/g)].map(
|
|
3475
|
-
(flag) => swiftStringValue(flag[1], `unsafeFlags of target ${target} (${flag[0]})`)
|
|
3476
|
-
)
|
|
3477
|
-
});
|
|
3545
|
+
found.push({ tool, flags: unsafeFlagsAt(body, open, false, target) });
|
|
3478
3546
|
}
|
|
3479
3547
|
return found;
|
|
3480
3548
|
}
|
|
@@ -3759,6 +3827,10 @@ function objcSdkIntakeFlags(headers, toolchainBin, minimum) {
|
|
|
3759
3827
|
import_node_path8.default.join(headers, "System/Library/Frameworks"),
|
|
3760
3828
|
"-isystem",
|
|
3761
3829
|
import_node_path8.default.join(headers, "wasm/include"),
|
|
3830
|
+
// libxml2 headers sit one level deeper, as in the iOS sdk: a unit
|
|
3831
|
+
// includes <libxml/parser.h> through usr/include/libxml2, never the parent.
|
|
3832
|
+
"-I",
|
|
3833
|
+
import_node_path8.default.join(headers, "usr/include/libxml2"),
|
|
3762
3834
|
"-idirafter",
|
|
3763
3835
|
import_node_path8.default.join(headers, "usr/include")
|
|
3764
3836
|
];
|
|
@@ -3774,8 +3846,39 @@ var import_node_child_process6 = require("node:child_process");
|
|
|
3774
3846
|
var import_node_crypto4 = require("node:crypto");
|
|
3775
3847
|
var import_node_fs7 = __toESM(require("node:fs"), 1);
|
|
3776
3848
|
var import_node_path9 = __toESM(require("node:path"), 1);
|
|
3849
|
+
var distributionHeaderRoots = /* @__PURE__ */ new Map();
|
|
3777
3850
|
function swiftSharedSdkRoot(moduleRoot, distribution) {
|
|
3778
|
-
|
|
3851
|
+
const root = import_node_path9.default.resolve(moduleRoot, distribution ? "sdk/ios" : "../peachsim/sdk/ios");
|
|
3852
|
+
if (!distribution) return root;
|
|
3853
|
+
let headers = distributionHeaderRoots.get(root);
|
|
3854
|
+
if (!headers || !import_node_fs7.default.existsSync(headers)) {
|
|
3855
|
+
const files = (0, import_node_fs7.readdirSync)(root, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => import_node_path9.default.relative(root, import_node_path9.default.join(entry.parentPath, entry.name))).sort();
|
|
3856
|
+
const hash = (0, import_node_crypto4.createHash)("sha256");
|
|
3857
|
+
for (const file of files) {
|
|
3858
|
+
const bytes = (0, import_node_fs7.readFileSync)(import_node_path9.default.join(root, file));
|
|
3859
|
+
hash.update(JSON.stringify([file, bytes.length])).update(bytes);
|
|
3860
|
+
}
|
|
3861
|
+
headers = import_node_path9.default.join(
|
|
3862
|
+
swiftCacheDir(),
|
|
3863
|
+
"swift-sdk-views",
|
|
3864
|
+
`headers-${hash.digest("hex")}`
|
|
3865
|
+
);
|
|
3866
|
+
if (!import_node_fs7.default.existsSync(headers)) {
|
|
3867
|
+
import_node_fs7.default.mkdirSync(import_node_path9.default.dirname(headers), { recursive: true });
|
|
3868
|
+
const staging = import_node_fs7.default.mkdtempSync(`${headers}-`);
|
|
3869
|
+
import_node_fs7.default.cpSync(root, staging, { recursive: true, preserveTimestamps: true });
|
|
3870
|
+
try {
|
|
3871
|
+
import_node_fs7.default.renameSync(staging, headers);
|
|
3872
|
+
} catch (error) {
|
|
3873
|
+
import_node_fs7.default.rmSync(staging, { recursive: true, force: true });
|
|
3874
|
+
if (!import_node_fs7.default.existsSync(headers)) throw error;
|
|
3875
|
+
}
|
|
3876
|
+
}
|
|
3877
|
+
distributionHeaderRoots.set(root, headers);
|
|
3878
|
+
}
|
|
3879
|
+
const now = /* @__PURE__ */ new Date();
|
|
3880
|
+
import_node_fs7.default.utimesSync(headers, now, now);
|
|
3881
|
+
return headers;
|
|
3779
3882
|
}
|
|
3780
3883
|
function swiftSharedSdkFlags(moduleRoot, distribution) {
|
|
3781
3884
|
const root = swiftSharedSdkRoot(moduleRoot, distribution);
|
|
@@ -3949,9 +4052,18 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
|
|
|
3949
4052
|
swiftSharedSdkRoot(moduleRoot, distribution),
|
|
3950
4053
|
"System/Library/Frameworks"
|
|
3951
4054
|
);
|
|
3952
|
-
const
|
|
4055
|
+
const overlay = import_node_path9.default.join(swiftSharedSdkRoot(moduleRoot, distribution), "wasm/include");
|
|
4056
|
+
const overlayFiles = (0, import_node_fs7.readdirSync)(overlay, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => import_node_path9.default.join(entry.parentPath, entry.name)).sort();
|
|
4057
|
+
const key = JSON.stringify([
|
|
4058
|
+
"v10",
|
|
4059
|
+
toolchainBin,
|
|
4060
|
+
sdk,
|
|
4061
|
+
frameworks,
|
|
4062
|
+
overlayFiles,
|
|
4063
|
+
swiftSdkOptions()
|
|
4064
|
+
]);
|
|
3953
4065
|
const cached = sdkViews.get(key);
|
|
3954
|
-
if (cached) return touchSdkView(cached);
|
|
4066
|
+
if (cached && import_node_fs7.default.existsSync(cached.manifest)) return touchSdkView(cached.options);
|
|
3955
4067
|
const configuration = (0, import_node_child_process6.execFileSync)(
|
|
3956
4068
|
import_node_path9.default.join(toolchainBin, "swift"),
|
|
3957
4069
|
[
|
|
@@ -3978,7 +4090,8 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
|
|
|
3978
4090
|
"swift-sdk-views",
|
|
3979
4091
|
(0, import_node_crypto4.createHash)("sha256").update(key).digest("hex").slice(0, 16)
|
|
3980
4092
|
);
|
|
3981
|
-
|
|
4093
|
+
const manifest = import_node_path9.default.join(view, import_node_path9.default.basename(bundle), "info.json");
|
|
4094
|
+
if (!import_node_fs7.default.existsSync(manifest)) {
|
|
3982
4095
|
import_node_fs7.default.mkdirSync(import_node_path9.default.dirname(view), { recursive: true });
|
|
3983
4096
|
const staging = import_node_fs7.default.mkdtempSync(`${view}-`);
|
|
3984
4097
|
const realRoot = import_node_path9.default.dirname(bundle);
|
|
@@ -3989,13 +4102,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
|
|
|
3989
4102
|
import_node_path9.default.join(swiftSharedSdkRoot(moduleRoot, distribution), "usr/include/MacTypes.h")
|
|
3990
4103
|
]
|
|
3991
4104
|
]);
|
|
3992
|
-
const
|
|
3993
|
-
swiftSharedSdkRoot(moduleRoot, distribution),
|
|
3994
|
-
"wasm/include"
|
|
3995
|
-
);
|
|
3996
|
-
for (const entry of (0, import_node_fs7.readdirSync)(overlay, { recursive: true, withFileTypes: true })) {
|
|
3997
|
-
if (!entry.isFile()) continue;
|
|
3998
|
-
const file = import_node_path9.default.join(entry.parentPath, entry.name);
|
|
4105
|
+
for (const file of overlayFiles) {
|
|
3999
4106
|
overrides.set(
|
|
4000
4107
|
import_node_path9.default.join(sysroot, "darwin/wasm/include", import_node_path9.default.relative(overlay, file)),
|
|
4001
4108
|
file
|
|
@@ -4030,11 +4137,11 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
|
|
|
4030
4137
|
import_node_fs7.default.renameSync(staging, view);
|
|
4031
4138
|
} catch (error) {
|
|
4032
4139
|
import_node_fs7.default.rmSync(staging, { recursive: true, force: true });
|
|
4033
|
-
if (!import_node_fs7.default.existsSync(
|
|
4140
|
+
if (!import_node_fs7.default.existsSync(manifest)) throw error;
|
|
4034
4141
|
}
|
|
4035
4142
|
}
|
|
4036
4143
|
const options = ["--swift-sdks-path", view];
|
|
4037
|
-
sdkViews.set(key, options);
|
|
4144
|
+
sdkViews.set(key, { options, manifest });
|
|
4038
4145
|
return touchSdkView(options);
|
|
4039
4146
|
}
|
|
4040
4147
|
function touchSdkView(options) {
|
|
@@ -4068,8 +4175,7 @@ function compileDarwinRecords(args) {
|
|
|
4068
4175
|
"-g0",
|
|
4069
4176
|
// malloc.h's zone records carry their block members under
|
|
4070
4177
|
// __BLOCKS__, as ios builds libmalloc
|
|
4071
|
-
"-fblocks",
|
|
4072
|
-
...file.endsWith(".m") ? [swiftObjCRuntime, "-fwasm-exceptions"] : [],
|
|
4178
|
+
...file.endsWith(".m") ? [...swiftObjCRuntimeFlags, "-fwasm-exceptions"] : ["-fblocks"],
|
|
4073
4179
|
// assert() keeps __FILE__, which would carry the builder's checkout
|
|
4074
4180
|
`-ffile-prefix-map=${records}${import_node_path10.default.sep}=DarwinRecords/`,
|
|
4075
4181
|
// apple's headers select on the ios identity original units compile
|
|
@@ -4442,9 +4548,9 @@ var EXCERPT = /^(\s*)(\d+)( \| )(.*)$/;
|
|
|
4442
4548
|
var MARKER = /^(\s*)( \| )(.*)$/;
|
|
4443
4549
|
function designTimeDiagnostic(output, files) {
|
|
4444
4550
|
const rewritten = /* @__PURE__ */ new Map();
|
|
4445
|
-
const linesOf = (
|
|
4551
|
+
const linesOf = (path19) => {
|
|
4446
4552
|
const file = Object.keys(files).find(
|
|
4447
|
-
(name2) => name2.endsWith(".swift") && (
|
|
4553
|
+
(name2) => name2.endsWith(".swift") && (path19 === name2 || path19.endsWith(`/${name2}`))
|
|
4448
4554
|
);
|
|
4449
4555
|
if (file === void 0) return null;
|
|
4450
4556
|
let lines = rewritten.get(file);
|
|
@@ -4523,6 +4629,16 @@ function parseSwiftDistributionManifest(value) {
|
|
|
4523
4629
|
};
|
|
4524
4630
|
}
|
|
4525
4631
|
|
|
4632
|
+
// src/swift-foundation.ts
|
|
4633
|
+
var foundationCategoryObjects = [
|
|
4634
|
+
"NSStringFormatting",
|
|
4635
|
+
"NSOrderedSet",
|
|
4636
|
+
"NSUUID",
|
|
4637
|
+
"NSCoderPrimitives",
|
|
4638
|
+
"NSProgressFactories",
|
|
4639
|
+
"NSOperationFactories"
|
|
4640
|
+
];
|
|
4641
|
+
|
|
4526
4642
|
// src/swift-icu.ts
|
|
4527
4643
|
var import_node_child_process8 = require("node:child_process");
|
|
4528
4644
|
var import_node_crypto5 = require("node:crypto");
|
|
@@ -4798,7 +4914,9 @@ function swiftObjcRootObjects(id, root, objects) {
|
|
|
4798
4914
|
empty.set(name2, Math.min(empty.get(name2) ?? size, size));
|
|
4799
4915
|
const roots = new Set(
|
|
4800
4916
|
measured.filter(
|
|
4801
|
-
([object, sizes]) =>
|
|
4917
|
+
([object, sizes]) => !foundationCategoryObjects.some(
|
|
4918
|
+
(name2) => object === `lib/Foundation-${name2}.o`
|
|
4919
|
+
) && object !== "lib/FoundationNetworking-Session.o" && object !== "lib/SwiftUI-MetalExecution.o" && object !== "lib/UIKitCore-NativeStub.o" && [...sizes].some(([name2, size]) => size > (empty.get(name2) ?? 0))
|
|
4802
4920
|
).map(([object]) => object)
|
|
4803
4921
|
);
|
|
4804
4922
|
rootsByDistribution.set(id, roots);
|
|
@@ -5092,12 +5210,40 @@ async function withSwiftRootLock(root, work, signal, wait = true) {
|
|
|
5092
5210
|
}
|
|
5093
5211
|
}
|
|
5094
5212
|
|
|
5095
|
-
// src/swift-
|
|
5213
|
+
// src/swift-uniform-type-constants.ts
|
|
5096
5214
|
var import_node_child_process11 = require("node:child_process");
|
|
5215
|
+
var import_node_path15 = __toESM(require("node:path"), 1);
|
|
5216
|
+
function compileUniformTypeConstants(args) {
|
|
5217
|
+
const source = import_node_path15.default.join(args.packageRoot, "runtime/UniformTypeIdentifiersConstants.m");
|
|
5218
|
+
const object = import_node_path15.default.join(args.out, "UniformTypeIdentifiers-NativeConstants.o");
|
|
5219
|
+
(0, import_node_child_process11.execFileSync)(
|
|
5220
|
+
import_node_path15.default.join(args.bin, "clang"),
|
|
5221
|
+
[
|
|
5222
|
+
"--target=wasm32-unknown-wasip1",
|
|
5223
|
+
`--sysroot=${args.sysroot}`,
|
|
5224
|
+
"-Oz",
|
|
5225
|
+
"-g0",
|
|
5226
|
+
...swiftObjCRuntimeFlags,
|
|
5227
|
+
"-fwasm-exceptions",
|
|
5228
|
+
"-F",
|
|
5229
|
+
import_node_path15.default.resolve(args.packageRoot, "../peachsim/sdk/ios/System/Library/Frameworks"),
|
|
5230
|
+
...objcSdkIntakeFlags(args.darwin, args.bin, args.minimum),
|
|
5231
|
+
"-c",
|
|
5232
|
+
source,
|
|
5233
|
+
"-o",
|
|
5234
|
+
object
|
|
5235
|
+
],
|
|
5236
|
+
{ stdio: ["ignore", "pipe", "inherit"] }
|
|
5237
|
+
);
|
|
5238
|
+
return object;
|
|
5239
|
+
}
|
|
5240
|
+
|
|
5241
|
+
// src/swift-wasm-prune.ts
|
|
5242
|
+
var import_node_child_process12 = require("node:child_process");
|
|
5097
5243
|
var import_node_crypto7 = require("node:crypto");
|
|
5098
5244
|
var import_node_fs14 = __toESM(require("node:fs"), 1);
|
|
5099
5245
|
var import_node_os8 = __toESM(require("node:os"), 1);
|
|
5100
|
-
var
|
|
5246
|
+
var import_node_path16 = __toESM(require("node:path"), 1);
|
|
5101
5247
|
function readULEB2(b, o) {
|
|
5102
5248
|
let res = 0;
|
|
5103
5249
|
let shift = 0;
|
|
@@ -5756,12 +5902,12 @@ function parseWasmObjectCached(file, isDist, useCache) {
|
|
|
5756
5902
|
}
|
|
5757
5903
|
function peachHome2() {
|
|
5758
5904
|
const override = process.env.PEACH_HOME;
|
|
5759
|
-
return override ?
|
|
5905
|
+
return override ? import_node_path16.default.resolve(override) : import_node_path16.default.join(import_node_os8.default.homedir(), ".peach");
|
|
5760
5906
|
}
|
|
5761
5907
|
function ensureUnpackedSdkObjects(sdkWasiDir) {
|
|
5762
5908
|
const sdkKey = (0, import_node_crypto7.createHash)("sha256").update(sdkWasiDir).digest("hex").slice(0, 16);
|
|
5763
|
-
const outDir =
|
|
5764
|
-
const stamp =
|
|
5909
|
+
const outDir = import_node_path16.default.join(peachHome2(), "cache", "swift-builds", `sdk-objs-${sdkKey}`);
|
|
5910
|
+
const stamp = import_node_path16.default.join(outDir, ".complete");
|
|
5765
5911
|
if (import_node_fs14.default.existsSync(stamp)) return outDir;
|
|
5766
5912
|
const tmpDir = `${outDir}.${process.pid}.${Date.now()}.tmp`;
|
|
5767
5913
|
import_node_fs14.default.mkdirSync(tmpDir, { recursive: true });
|
|
@@ -5769,7 +5915,7 @@ function ensureUnpackedSdkObjects(sdkWasiDir) {
|
|
|
5769
5915
|
for (const archive of archives) {
|
|
5770
5916
|
const aBase = archive.replace(/\.a$/, "");
|
|
5771
5917
|
const members = readArMembers(
|
|
5772
|
-
new Uint8Array(import_node_fs14.default.readFileSync(
|
|
5918
|
+
new Uint8Array(import_node_fs14.default.readFileSync(import_node_path16.default.join(sdkWasiDir, archive)))
|
|
5773
5919
|
);
|
|
5774
5920
|
const seen = /* @__PURE__ */ new Map();
|
|
5775
5921
|
for (const m of members) {
|
|
@@ -5778,11 +5924,11 @@ function ensureUnpackedSdkObjects(sdkWasiDir) {
|
|
|
5778
5924
|
const suffix = count > 1 ? `_${count}` : "";
|
|
5779
5925
|
const safeName = m.name.replaceAll("/", "__");
|
|
5780
5926
|
const outName = `${aBase}__${safeName}${suffix}`;
|
|
5781
|
-
import_node_fs14.default.writeFileSync(
|
|
5927
|
+
import_node_fs14.default.writeFileSync(import_node_path16.default.join(tmpDir, outName), m.bytes);
|
|
5782
5928
|
}
|
|
5783
5929
|
}
|
|
5784
|
-
import_node_fs14.default.writeFileSync(
|
|
5785
|
-
import_node_fs14.default.mkdirSync(
|
|
5930
|
+
import_node_fs14.default.writeFileSync(import_node_path16.default.join(tmpDir, ".complete"), "1\n");
|
|
5931
|
+
import_node_fs14.default.mkdirSync(import_node_path16.default.dirname(outDir), { recursive: true });
|
|
5786
5932
|
if (import_node_fs14.default.existsSync(stamp)) {
|
|
5787
5933
|
import_node_fs14.default.rmSync(tmpDir, { recursive: true, force: true });
|
|
5788
5934
|
return outDir;
|
|
@@ -5792,7 +5938,7 @@ function ensureUnpackedSdkObjects(sdkWasiDir) {
|
|
|
5792
5938
|
return outDir;
|
|
5793
5939
|
}
|
|
5794
5940
|
function isPrunableSdkFile(file) {
|
|
5795
|
-
const base =
|
|
5941
|
+
const base = import_node_path16.default.basename(file);
|
|
5796
5942
|
const aBase = base.split("__")[0];
|
|
5797
5943
|
if (PRUNED_SDK_ARCHIVES.has(aBase)) return true;
|
|
5798
5944
|
if (base === "libswiftCore__Swift.o" || base === "libswift_Concurrency___Concurrency.o") {
|
|
@@ -5801,14 +5947,14 @@ function isPrunableSdkFile(file) {
|
|
|
5801
5947
|
return false;
|
|
5802
5948
|
}
|
|
5803
5949
|
function getModulePrefix(file) {
|
|
5804
|
-
const base =
|
|
5950
|
+
const base = import_node_path16.default.basename(file);
|
|
5805
5951
|
const dbl = base.indexOf("__");
|
|
5806
5952
|
if (dbl > 0) return base.slice(0, dbl);
|
|
5807
5953
|
const dash = base.indexOf("-");
|
|
5808
5954
|
return dash > 0 ? base.slice(0, dash) : base;
|
|
5809
5955
|
}
|
|
5810
5956
|
function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTargets = []) {
|
|
5811
|
-
const rspPath =
|
|
5957
|
+
const rspPath = import_node_path16.default.join(directory, ".peach-link.rsp");
|
|
5812
5958
|
if (!import_node_fs14.default.existsSync(rspPath)) return;
|
|
5813
5959
|
const origRsp = import_node_fs14.default.readFileSync(rspPath, "utf8");
|
|
5814
5960
|
const tokens = Array.from(origRsp.matchAll(/"([^"]+)"|(\S+)/g), (m) => m[1] ?? m[2]);
|
|
@@ -5819,8 +5965,8 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
5819
5965
|
if (!sdkFlag) return;
|
|
5820
5966
|
const sdkWasiDir = sdkFlag.slice(2);
|
|
5821
5967
|
const sdkObjsDir = ensureUnpackedSdkObjects(sdkWasiDir);
|
|
5822
|
-
const distDir =
|
|
5823
|
-
const prunedObjsDir =
|
|
5968
|
+
const distDir = import_node_path16.default.join(moduleRoot, "lib");
|
|
5969
|
+
const prunedObjsDir = import_node_path16.default.join(directory, ".peach-pruned-objs");
|
|
5824
5970
|
import_node_fs14.default.rmSync(prunedObjsDir, { recursive: true, force: true });
|
|
5825
5971
|
import_node_fs14.default.mkdirSync(prunedObjsDir, { recursive: true });
|
|
5826
5972
|
const distFiles = [];
|
|
@@ -5840,7 +5986,9 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
5840
5986
|
}
|
|
5841
5987
|
if (t.endsWith(".o")) {
|
|
5842
5988
|
if (t.startsWith(distDir)) {
|
|
5843
|
-
if (
|
|
5989
|
+
if (!foundationCategoryObjects.some(
|
|
5990
|
+
(name2) => import_node_path16.default.basename(t) === `Foundation-${name2}.o`
|
|
5991
|
+
)) {
|
|
5844
5992
|
distFiles.push(t);
|
|
5845
5993
|
}
|
|
5846
5994
|
if (!inStartLib) eagerFiles.push(t);
|
|
@@ -5860,12 +6008,12 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
5860
6008
|
}
|
|
5861
6009
|
}
|
|
5862
6010
|
}
|
|
5863
|
-
const distBaseNames = new Set(distFiles.map((f) =>
|
|
6011
|
+
const distBaseNames = new Set(distFiles.map((f) => import_node_path16.default.basename(f)));
|
|
5864
6012
|
const libDirs = tokens.filter((t) => t.startsWith("-L")).map((t) => t.slice(2));
|
|
5865
6013
|
const supersededLibFlags = /* @__PURE__ */ new Set();
|
|
5866
6014
|
for (const t of tokens) {
|
|
5867
6015
|
if (!t.startsWith("-l") || OMIT_SDK_LIB_FLAGS.has(t)) continue;
|
|
5868
|
-
const archive = libDirs.map((d) =>
|
|
6016
|
+
const archive = libDirs.map((d) => import_node_path16.default.join(d, `lib${t.slice(2)}.a`)).find((f) => import_node_fs14.default.existsSync(f));
|
|
5869
6017
|
if (!archive) continue;
|
|
5870
6018
|
const members = readArMembers(new Uint8Array(import_node_fs14.default.readFileSync(archive)));
|
|
5871
6019
|
if (members.length > 0 && members.every((m) => distBaseNames.has(m.name))) {
|
|
@@ -5874,7 +6022,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
5874
6022
|
}
|
|
5875
6023
|
let patchedSwiftrtPath = "";
|
|
5876
6024
|
if (swiftrtOrigPath && import_node_fs14.default.existsSync(swiftrtOrigPath)) {
|
|
5877
|
-
patchedSwiftrtPath =
|
|
6025
|
+
patchedSwiftrtPath = import_node_path16.default.join(prunedObjsDir, "swiftrt-patched.o");
|
|
5878
6026
|
import_node_fs14.default.writeFileSync(
|
|
5879
6027
|
patchedSwiftrtPath,
|
|
5880
6028
|
patchSwiftrtObject(new Uint8Array(import_node_fs14.default.readFileSync(swiftrtOrigPath)))
|
|
@@ -5882,7 +6030,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
5882
6030
|
eagerFiles.push(patchedSwiftrtPath);
|
|
5883
6031
|
}
|
|
5884
6032
|
const allSdkObjFiles = import_node_fs14.default.readdirSync(sdkObjsDir).filter((f) => f.endsWith(".o") || f.endsWith(".obj")).sort();
|
|
5885
|
-
const sdkFiles = allSdkObjFiles.map((f) =>
|
|
6033
|
+
const sdkFiles = allSdkObjFiles.map((f) => import_node_path16.default.join(sdkObjsDir, f));
|
|
5886
6034
|
const distObjs = /* @__PURE__ */ new Map();
|
|
5887
6035
|
const lazyProviders = /* @__PURE__ */ new Map();
|
|
5888
6036
|
const registerLazyProvider = (obj) => {
|
|
@@ -6131,7 +6279,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6131
6279
|
hasClangObjCEager = true;
|
|
6132
6280
|
}
|
|
6133
6281
|
if (isDist) {
|
|
6134
|
-
const base =
|
|
6282
|
+
const base = import_node_path16.default.basename(f);
|
|
6135
6283
|
if (base.startsWith("PeachFoundation-") || base.startsWith("PeachObjC-") || base.startsWith("PeachICU-") || base.startsWith("Darwin-")) {
|
|
6136
6284
|
for (let i = 0; i < obj.symNames.length; i++) {
|
|
6137
6285
|
const sName = obj.symNames[i];
|
|
@@ -6144,13 +6292,10 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6144
6292
|
}
|
|
6145
6293
|
const eagerSdkCategoryFiles = [];
|
|
6146
6294
|
if (hasClangObjCEager) {
|
|
6147
|
-
for (const name2 of
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
"libFoundation__NSCoderPrimitives.objc.o"
|
|
6152
|
-
]) {
|
|
6153
|
-
const sdkFile = import_node_path15.default.join(sdkObjsDir, name2);
|
|
6295
|
+
for (const name2 of foundationCategoryObjects.map(
|
|
6296
|
+
(name3) => `libFoundation__${name3}.objc.o`
|
|
6297
|
+
)) {
|
|
6298
|
+
const sdkFile = import_node_path16.default.join(sdkObjsDir, name2);
|
|
6154
6299
|
const obj = distObjs.get(sdkFile);
|
|
6155
6300
|
if (obj) {
|
|
6156
6301
|
extractObject(obj);
|
|
@@ -6513,21 +6658,21 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6513
6658
|
const reachedPrunableObjs = prunableCandidates.map((f) => distObjs.get(f)).filter((o) => extractedObjs.has(o));
|
|
6514
6659
|
const prunedMap = /* @__PURE__ */ new Map();
|
|
6515
6660
|
for (const o of reachedPrunableObjs) {
|
|
6516
|
-
const outPath =
|
|
6661
|
+
const outPath = import_node_path16.default.join(prunedObjsDir, import_node_path16.default.basename(o.file));
|
|
6517
6662
|
writePrunedObject(o, outPath);
|
|
6518
6663
|
prunedMap.set(o.file, outPath);
|
|
6519
6664
|
}
|
|
6520
6665
|
for (const o of eagerBuildPrunable) {
|
|
6521
|
-
const outPath =
|
|
6666
|
+
const outPath = import_node_path16.default.join(
|
|
6522
6667
|
prunedObjsDir,
|
|
6523
|
-
`build-${
|
|
6668
|
+
`build-${import_node_path16.default.basename(import_node_path16.default.dirname(o.file))}-${import_node_path16.default.basename(o.file)}`
|
|
6524
6669
|
);
|
|
6525
6670
|
writePrunedObject(o, outPath);
|
|
6526
6671
|
prunedMap.set(o.file, outPath);
|
|
6527
6672
|
}
|
|
6528
6673
|
const extraCoreConcurrencyObjs = allSdkObjFiles.filter(
|
|
6529
6674
|
(f) => f.startsWith("libswiftCore__") && f !== "libswiftCore__Swift.o" || f.startsWith("libswift_Concurrency__") && f !== "libswift_Concurrency___Concurrency.o"
|
|
6530
|
-
).map((f) =>
|
|
6675
|
+
).map((f) => import_node_path16.default.join(sdkObjsDir, f));
|
|
6531
6676
|
const outTokens = [];
|
|
6532
6677
|
const emittedPruned = /* @__PURE__ */ new Set();
|
|
6533
6678
|
inStartLib = false;
|
|
@@ -6575,9 +6720,9 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6575
6720
|
outTokens.push(t);
|
|
6576
6721
|
}
|
|
6577
6722
|
}
|
|
6578
|
-
const prunedRspPath =
|
|
6723
|
+
const prunedRspPath = import_node_path16.default.join(directory, ".peach-link.pruned.rsp");
|
|
6579
6724
|
import_node_fs14.default.writeFileSync(prunedRspPath, outTokens.map((t) => JSON.stringify(t)).join(" "));
|
|
6580
|
-
(0,
|
|
6725
|
+
(0, import_node_child_process12.execFileSync)(import_node_path16.default.join(toolchainBin, "wasm-ld"), [`@${prunedRspPath}`], {
|
|
6581
6726
|
stdio: "pipe"
|
|
6582
6727
|
});
|
|
6583
6728
|
import_node_fs14.default.rmSync(rspPath, { force: true });
|
|
@@ -6586,17 +6731,40 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6586
6731
|
// src/swiftContract.ts
|
|
6587
6732
|
var SWIFT_REMOTE_PACKAGES_DIR = "__packages__";
|
|
6588
6733
|
var SWIFT_LOCAL_PACKAGES_DIR = "__local_packages__";
|
|
6734
|
+
var SWIFT_XCODE_BUILD_CONDITION = "__PEACH_XCODE_BUILD";
|
|
6735
|
+
function isBase64Bytes(value) {
|
|
6736
|
+
return value.length % 4 === 0 && /^[A-Za-z0-9+/]*={0,2}(?![\s\S])/.test(value);
|
|
6737
|
+
}
|
|
6589
6738
|
function isSwiftPackageFiles(value) {
|
|
6590
6739
|
return value !== null && typeof value === "object" && !Array.isArray(value) && Object.entries(value).every(
|
|
6591
|
-
([file, bytes]) => isSwiftResourcePath(file) && (file.startsWith(`${SWIFT_REMOTE_PACKAGES_DIR}/`) || file.startsWith(`${SWIFT_LOCAL_PACKAGES_DIR}/`)) && typeof bytes === "string" &&
|
|
6740
|
+
([file, bytes]) => isSwiftResourcePath(file) && (file.startsWith(`${SWIFT_REMOTE_PACKAGES_DIR}/`) || file.startsWith(`${SWIFT_LOCAL_PACKAGES_DIR}/`)) && typeof bytes === "string" && isBase64Bytes(bytes)
|
|
6592
6741
|
);
|
|
6593
6742
|
}
|
|
6594
|
-
|
|
6743
|
+
function swiftProjectFileProblem(file) {
|
|
6744
|
+
if (!isSwiftResourcePath(file)) return "not a relative path of plain segments";
|
|
6745
|
+
if (file === "Package.swift") return "would replace the generated manifest";
|
|
6746
|
+
if (file.split("/").includes(".build")) return "is build output (.build)";
|
|
6747
|
+
if (file.startsWith(".")) return 'starts with "." (hidden file or peach output)';
|
|
6748
|
+
if (file.startsWith(`${SWIFT_REMOTE_PACKAGES_DIR}/`) || file.startsWith(`${SWIFT_LOCAL_PACKAGES_DIR}/`))
|
|
6749
|
+
return "collides with a transported package checkout";
|
|
6750
|
+
return void 0;
|
|
6751
|
+
}
|
|
6752
|
+
function swiftProjectEntryProblem(file, bytes) {
|
|
6753
|
+
return swiftProjectFileProblem(file) ?? (typeof bytes === "string" && isBase64Bytes(bytes) ? void 0 : "bytes are not base64");
|
|
6754
|
+
}
|
|
6595
6755
|
function isSwiftProjectFiles(value) {
|
|
6596
6756
|
return value !== null && typeof value === "object" && !Array.isArray(value) && Object.entries(value).every(
|
|
6597
|
-
([file, bytes]) =>
|
|
6757
|
+
([file, bytes]) => swiftProjectEntryProblem(file, bytes) === void 0
|
|
6598
6758
|
);
|
|
6599
6759
|
}
|
|
6760
|
+
function swiftProjectFilesProblems(value) {
|
|
6761
|
+
if (value === null || typeof value !== "object" || Array.isArray(value))
|
|
6762
|
+
return ["projectFiles is not an object"];
|
|
6763
|
+
return Object.entries(value).flatMap(([file, bytes]) => {
|
|
6764
|
+
const problem = swiftProjectEntryProblem(file, bytes);
|
|
6765
|
+
return problem ? [`${file}: ${problem}`] : [];
|
|
6766
|
+
});
|
|
6767
|
+
}
|
|
6600
6768
|
var SWIFT_NATIVE_INPUT_ROOT = "$(PEACH_INPUT_ROOT)";
|
|
6601
6769
|
var SWIFT_NATIVE_SDK_INCLUDE = "$(PEACH_SDK_INCLUDE)";
|
|
6602
6770
|
function isSwiftHeaderAliases(value) {
|
|
@@ -6666,6 +6834,7 @@ function swiftNativeTargetsRefusal(value) {
|
|
|
6666
6834
|
))
|
|
6667
6835
|
return at("productHeaders");
|
|
6668
6836
|
if (!strings(field("flags"))) return at("flags");
|
|
6837
|
+
if (!strings(field("importerFlags"))) return at("importerFlags");
|
|
6669
6838
|
if (!strings(field("cxxFlags"))) return at("cxxFlags");
|
|
6670
6839
|
if (!perFile || typeof perFile !== "object" || Array.isArray(perFile) || !Object.entries(perFile).every(
|
|
6671
6840
|
([file, flags]) => isSwiftResourcePath(file) && strings(flags)
|
|
@@ -6685,7 +6854,7 @@ function isSwiftBundlePath(value) {
|
|
|
6685
6854
|
return typeof value === "string" && (value === "." || isSwiftResourcePath(value) && /\.(bundle|framework)$/.test(value));
|
|
6686
6855
|
}
|
|
6687
6856
|
function isSwiftResourceBundles(value) {
|
|
6688
|
-
return Array.isArray(value) && value.
|
|
6857
|
+
return Array.isArray(value) && value.every(
|
|
6689
6858
|
(bundle) => typeof bundle === "object" && bundle !== null && typeof bundle.target === "string" && /^[A-Za-z_][A-Za-z0-9_-]*$/.test(bundle.target) && (bundle.sourcePath === "." || isSwiftResourcePath(bundle.sourcePath)) && isSwiftBundlePath(bundle.path)
|
|
6690
6859
|
) && new Set(value.map((bundle) => bundle.target)).size === value.length && new Set(value.map((bundle) => bundle.path)).size === value.length;
|
|
6691
6860
|
}
|
|
@@ -6717,9 +6886,19 @@ async function optimizeWasm(file, output) {
|
|
|
6717
6886
|
throw new Error(`wasm-opt exited ${result.status}: ${result.stderr}`);
|
|
6718
6887
|
}
|
|
6719
6888
|
|
|
6889
|
+
// src/write-build-file.ts
|
|
6890
|
+
var import_node_fs15 = require("node:fs");
|
|
6891
|
+
var import_node_path17 = __toESM(require("node:path"), 1);
|
|
6892
|
+
function writeBuildFile(file, contents) {
|
|
6893
|
+
if ((0, import_node_fs15.existsSync)(file) && (typeof contents === "string" ? (0, import_node_fs15.readFileSync)(file, "utf8") === contents : (0, import_node_fs15.readFileSync)(file).equals(contents)))
|
|
6894
|
+
return;
|
|
6895
|
+
(0, import_node_fs15.mkdirSync)(import_node_path17.default.dirname(file), { recursive: true });
|
|
6896
|
+
(0, import_node_fs15.writeFileSync)(file, contents);
|
|
6897
|
+
}
|
|
6898
|
+
|
|
6720
6899
|
// src/xcode-header-search.ts
|
|
6721
|
-
var
|
|
6722
|
-
var
|
|
6900
|
+
var import_node_fs16 = __toESM(require("node:fs"), 1);
|
|
6901
|
+
var import_node_path18 = __toESM(require("node:path"), 1);
|
|
6723
6902
|
function headerMap(entries) {
|
|
6724
6903
|
const unique = /* @__PURE__ */ new Map();
|
|
6725
6904
|
for (const entry of entries)
|
|
@@ -6762,7 +6941,7 @@ function headerMap(entries) {
|
|
|
6762
6941
|
return Buffer.concat([table, ...strings]);
|
|
6763
6942
|
}
|
|
6764
6943
|
function writeXcodeHeaderSearch(directory, targets, headerAliases = {}) {
|
|
6765
|
-
|
|
6944
|
+
import_node_fs16.default.mkdirSync(directory, { recursive: true });
|
|
6766
6945
|
const productDirectories = /* @__PURE__ */ new Map();
|
|
6767
6946
|
for (const [product, original] of new Map([
|
|
6768
6947
|
...Object.entries(headerAliases),
|
|
@@ -6775,12 +6954,12 @@ function writeXcodeHeaderSearch(directory, targets, headerAliases = {}) {
|
|
|
6775
6954
|
seen.add(file);
|
|
6776
6955
|
file = headerAliases[file];
|
|
6777
6956
|
}
|
|
6778
|
-
const listed = productDirectories.get(
|
|
6779
|
-
productDirectories.set(
|
|
6780
|
-
listed.push({ name:
|
|
6957
|
+
const listed = productDirectories.get(import_node_path18.default.dirname(product)) ?? [];
|
|
6958
|
+
productDirectories.set(import_node_path18.default.dirname(product), listed);
|
|
6959
|
+
listed.push({ name: import_node_path18.default.basename(product), file });
|
|
6781
6960
|
}
|
|
6782
|
-
const overlay =
|
|
6783
|
-
|
|
6961
|
+
const overlay = import_node_path18.default.join(directory, "all-product-headers.yaml");
|
|
6962
|
+
writeBuildFile(
|
|
6784
6963
|
overlay,
|
|
6785
6964
|
JSON.stringify({
|
|
6786
6965
|
"case-sensitive": "false",
|
|
@@ -6799,8 +6978,8 @@ function writeXcodeHeaderSearch(directory, targets, headerAliases = {}) {
|
|
|
6799
6978
|
const files = [overlay];
|
|
6800
6979
|
const flags = targets.map((target, index) => {
|
|
6801
6980
|
const maps = target.headerMaps.map((map, order) => {
|
|
6802
|
-
const file =
|
|
6803
|
-
|
|
6981
|
+
const file = import_node_path18.default.join(directory, `${index}-${order}.hmap`);
|
|
6982
|
+
writeBuildFile(file, headerMap(map.entries));
|
|
6804
6983
|
files.push(file);
|
|
6805
6984
|
return { flag: map.flag, file };
|
|
6806
6985
|
});
|
|
@@ -6827,7 +7006,7 @@ async function runCompiler(command, args, options, stream = false, quiet) {
|
|
|
6827
7006
|
detached: true,
|
|
6828
7007
|
stdio: ["ignore", "pipe", "pipe"]
|
|
6829
7008
|
};
|
|
6830
|
-
const child = options.lease ? options.lease.spawn(command, args, launch, options.frameworkLease) : (0,
|
|
7009
|
+
const child = options.lease ? options.lease.spawn(command, args, launch, options.frameworkLease) : (0, import_node_child_process13.spawn)(command, args, launch);
|
|
6831
7010
|
let stopping;
|
|
6832
7011
|
try {
|
|
6833
7012
|
return await new Promise((resolve, reject) => {
|
|
@@ -6905,70 +7084,82 @@ var WASM_TRIPLE = "wasm32-unknown-wasip1";
|
|
|
6905
7084
|
var SWIFTPM_PROGRESS = /^\[\d+\/\d+\] /;
|
|
6906
7085
|
var SWIFTPM_NOISE = /^(?:\[\d+\/\d+\] |Building for production\.\.\.$|warning: '--build-system native' has been deprecated)/;
|
|
6907
7086
|
var admittedCores = Number(process.env.TM_EXEC_CPU_CORES);
|
|
6908
|
-
var
|
|
6909
|
-
|
|
6910
|
-
|
|
6911
|
-
|
|
6912
|
-
Number.isInteger(admittedCores) && admittedCores > 0 ? admittedCores : 4
|
|
6913
|
-
)
|
|
7087
|
+
var SWIFT_BUILD_JOBS = Math.min(
|
|
7088
|
+
4,
|
|
7089
|
+
Math.max(1, Math.floor(import_node_os9.default.availableParallelism() / 2)),
|
|
7090
|
+
Number.isInteger(admittedCores) && admittedCores > 0 ? admittedCores : 4
|
|
6914
7091
|
);
|
|
7092
|
+
var BUILD_JOBS = String(SWIFT_BUILD_JOBS);
|
|
6915
7093
|
var SWIFT_BUILDER_TRANSPORT_MARGIN_MS = 3e5;
|
|
6916
7094
|
var SWIFT_BUILDER_DEFAULT_COMPILE_MS = 18e5;
|
|
6917
7095
|
function swiftBuilderHopTimeoutMs(compileTimeoutMs) {
|
|
6918
7096
|
return (compileTimeoutMs ?? SWIFT_BUILDER_DEFAULT_COMPILE_MS) + SWIFT_BUILDER_TRANSPORT_MARGIN_MS;
|
|
6919
7097
|
}
|
|
6920
7098
|
function swiftDistributionAt(root) {
|
|
6921
|
-
const file =
|
|
6922
|
-
if (!(0,
|
|
6923
|
-
return parseSwiftDistributionManifest(JSON.parse((0,
|
|
7099
|
+
const file = import_node_path19.default.join(root, SWIFT_DISTRIBUTION_MANIFEST);
|
|
7100
|
+
if (!(0, import_node_fs17.existsSync)(file)) return null;
|
|
7101
|
+
return parseSwiftDistributionManifest(JSON.parse((0, import_node_fs17.readFileSync)(file, "utf8")));
|
|
6924
7102
|
}
|
|
6925
7103
|
function swiftModuleInterface(moduleRoot, name2, interfaceRoot) {
|
|
6926
7104
|
if (swiftDistributionAt(moduleRoot)) {
|
|
6927
|
-
const file =
|
|
6928
|
-
interfaceRoot ??
|
|
7105
|
+
const file = import_node_path19.default.join(
|
|
7106
|
+
interfaceRoot ?? import_node_path19.default.join(moduleRoot, "modules"),
|
|
6929
7107
|
`${name2}-Swift.h`
|
|
6930
7108
|
);
|
|
6931
|
-
if (!(0,
|
|
6932
|
-
const header = clangInterfaceHeader((0,
|
|
7109
|
+
if (!(0, import_node_fs17.existsSync)(file)) return null;
|
|
7110
|
+
const header = clangInterfaceHeader((0, import_node_fs17.readFileSync)(file, "utf8"));
|
|
6933
7111
|
return { declared: swiftInterfaceDeclarations(header), header };
|
|
6934
7112
|
}
|
|
6935
|
-
const sources =
|
|
6936
|
-
if (!(0,
|
|
7113
|
+
const sources = import_node_path19.default.join(moduleRoot, "Sources", name2);
|
|
7114
|
+
if (!(0, import_node_fs17.existsSync)(sources)) return null;
|
|
6937
7115
|
const declared = /* @__PURE__ */ new Set();
|
|
6938
|
-
for (const file of (0,
|
|
7116
|
+
for (const file of (0, import_node_fs17.readdirSync)(sources, { recursive: true, encoding: "utf8" }))
|
|
6939
7117
|
if (file.endsWith(".swift"))
|
|
6940
|
-
for (const [, objc] of (0,
|
|
7118
|
+
for (const [, objc] of (0, import_node_fs17.readFileSync)(import_node_path19.default.join(sources, file), "utf8").matchAll(
|
|
6941
7119
|
/@objc\((\w+)\)\s+(?:\w+\s+)*?(?:protocol|class)\s/g
|
|
6942
7120
|
))
|
|
6943
7121
|
declared.add(objc);
|
|
6944
7122
|
if (declared.size === 0) return null;
|
|
6945
|
-
const built =
|
|
7123
|
+
const built = import_node_path19.default.join(moduleRoot, ".build/host", `${name2}-Swift.h`);
|
|
6946
7124
|
return {
|
|
6947
7125
|
declared,
|
|
6948
|
-
header: (0,
|
|
7126
|
+
header: (0, import_node_fs17.existsSync)(built) ? clangInterfaceHeader((0, import_node_fs17.readFileSync)(built, "utf8")) : `// ${name2}-Swift.h is generated when ${name2} builds
|
|
6949
7127
|
`
|
|
6950
7128
|
};
|
|
6951
7129
|
}
|
|
6952
7130
|
var clangInterfaceHeader = (header) => header.replace(/^@import (?:UIKitCore|UIKitText);$/gm, "@import UIKit;").replace(/^@import CoreFoundation;$/gm, "@import Foundation;").replace(/\b_TtC10Foundation\d+(NS\w+)\b/g, "$1");
|
|
6953
7131
|
var swiftInterfaceDeclarations = (header) => /* @__PURE__ */ new Set([
|
|
6954
|
-
...[
|
|
6955
|
-
|
|
7132
|
+
...[
|
|
7133
|
+
...header.matchAll(
|
|
7134
|
+
/^[ \t]*(?:[A-Z_]\w*(?:\([^()\n]*\))?[ \t]+)*@protocol\s+(\w+)\b(?![^\n]*;\s*$)/gm
|
|
7135
|
+
)
|
|
7136
|
+
].map((m) => m[1]),
|
|
7137
|
+
...[
|
|
7138
|
+
...header.matchAll(
|
|
7139
|
+
/^[ \t]*(?:[A-Z_]\w*(?:\([^()\n]*\))?[ \t]+)*@interface\s+(\w+)\s*(?=[:<{]|$)/gm
|
|
7140
|
+
)
|
|
7141
|
+
].map((m) => m[1])
|
|
6956
7142
|
]);
|
|
6957
7143
|
function withoutSwiftDeclarations(text2, declared, interfaceImport) {
|
|
6958
7144
|
const out = [];
|
|
6959
|
-
let skipping
|
|
7145
|
+
let skipping;
|
|
6960
7146
|
let imported = false;
|
|
6961
7147
|
let regionStart = -1;
|
|
6962
7148
|
for (const line of text2.split("\n")) {
|
|
6963
7149
|
if (skipping) {
|
|
6964
|
-
if (/^@end\b/.test(line)
|
|
7150
|
+
if (skipping === "objc" ? /^@end\b/.test(line) : /^\s*};/.test(line))
|
|
7151
|
+
skipping = void 0;
|
|
6965
7152
|
continue;
|
|
6966
7153
|
}
|
|
6967
7154
|
if (regionStart < 0 && /^NS_ASSUME_NONNULL_BEGIN\b/.test(line))
|
|
6968
7155
|
regionStart = out.length;
|
|
6969
7156
|
const name2 = /^@(?:protocol|interface)\s+(\w+)\s*(?=[:<{]|$)/.exec(line)?.[1];
|
|
6970
|
-
|
|
6971
|
-
|
|
7157
|
+
const enumeration = /^\s*typedef\s+(?:NS_ENUM|NS_OPTIONS|SWIFT_ENUM(?:_NAMED)?)\s*\(\s*\w+\s*,\s*(\w+)\b/.exec(
|
|
7158
|
+
line
|
|
7159
|
+
)?.[1];
|
|
7160
|
+
if (name2 && declared.has(name2) || enumeration && declared.has(enumeration)) {
|
|
7161
|
+
skipping = name2 ? "objc" : line.includes("};") ? void 0 : "enum";
|
|
7162
|
+
while (/^SWIFT_[A-Z_]+(?:\(.*\))?\s*$/.test(out.at(-1) ?? "")) out.pop();
|
|
6972
7163
|
if (!imported)
|
|
6973
7164
|
out.splice(regionStart < 0 ? out.length : regionStart, 0, interfaceImport);
|
|
6974
7165
|
imported = true;
|
|
@@ -7000,6 +7191,9 @@ function swiftModuleInputFiles(root) {
|
|
|
7000
7191
|
...swiftSharedSdkInputFiles(root),
|
|
7001
7192
|
"../peachsim/src/swift-shared-sdk.ts",
|
|
7002
7193
|
"../peachsim/src/swift-darwin-records.ts",
|
|
7194
|
+
"../peachsim/src/swift-uniform-type-constants.ts",
|
|
7195
|
+
"../peachsim/src/swift-runtime-products.ts",
|
|
7196
|
+
"../peachsim/src/swiftRuntimeProductContract.ts",
|
|
7003
7197
|
"../../scripts/generate/swift-sdk-module/darwin-mach.json",
|
|
7004
7198
|
"../../scripts/generate/swift-sdk-module/darwin-socketvar.json",
|
|
7005
7199
|
"../../scripts/ops/swift-distribution-publish.ts",
|
|
@@ -7007,8 +7201,7 @@ function swiftModuleInputFiles(root) {
|
|
|
7007
7201
|
"scripts/contrast-app-Package.swift",
|
|
7008
7202
|
"scripts/build-distribution.ts",
|
|
7009
7203
|
"scripts/distribution-clang.ts",
|
|
7010
|
-
"
|
|
7011
|
-
"scripts/distribution-libxml2.json",
|
|
7204
|
+
"runtime/UniformTypeIdentifiersConstants.m",
|
|
7012
7205
|
"Sources/libxml2/include/module.modulemap",
|
|
7013
7206
|
"Sources/libxml2/COPYING",
|
|
7014
7207
|
"scripts/build-distribution-plugins.sh",
|
|
@@ -7017,7 +7210,7 @@ function swiftModuleInputFiles(root) {
|
|
|
7017
7210
|
"toolchain.json"
|
|
7018
7211
|
];
|
|
7019
7212
|
const walk = (dir) => {
|
|
7020
|
-
for (const entry of (0,
|
|
7213
|
+
for (const entry of (0, import_node_fs17.readdirSync)(import_node_path19.default.join(root, dir), {
|
|
7021
7214
|
withFileTypes: true
|
|
7022
7215
|
})) {
|
|
7023
7216
|
const relative = `${dir}/${entry.name}`;
|
|
@@ -7035,43 +7228,43 @@ function swiftMacroPlugins(moduleRoot) {
|
|
|
7035
7228
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
7036
7229
|
if (distribution)
|
|
7037
7230
|
return {
|
|
7038
|
-
libraries: distribution.plugins.filter((plugin) =>
|
|
7039
|
-
executables: distribution.plugins.filter((plugin) =>
|
|
7231
|
+
libraries: distribution.plugins.filter((plugin) => import_node_path19.default.basename(plugin) !== "ExpoModulesMacros").map((plugin) => import_node_path19.default.join(moduleRoot, plugin)),
|
|
7232
|
+
executables: distribution.plugins.filter((plugin) => import_node_path19.default.basename(plugin) === "ExpoModulesMacros").map((plugin) => import_node_path19.default.join(moduleRoot, plugin)),
|
|
7040
7233
|
stale: false
|
|
7041
7234
|
};
|
|
7042
|
-
const dir =
|
|
7235
|
+
const dir = import_node_path19.default.join(moduleRoot, ".build/host/RnxPreviewMacros");
|
|
7043
7236
|
const release = JSON.parse(
|
|
7044
|
-
(0,
|
|
7237
|
+
(0, import_node_fs17.readFileSync)(import_node_path19.default.join(moduleRoot, "toolchain.json"), "utf8")
|
|
7045
7238
|
).release;
|
|
7046
|
-
const compilerStamp =
|
|
7047
|
-
const pluginScript =
|
|
7048
|
-
const expoPlugin =
|
|
7239
|
+
const compilerStamp = import_node_path19.default.join(dir, "compiler-release");
|
|
7240
|
+
const pluginScript = import_node_path19.default.join(moduleRoot, "scripts/build-preview-plugin.sh");
|
|
7241
|
+
const expoPlugin = import_node_path19.default.join(dir, "ExpoModulesMacros");
|
|
7049
7242
|
const ext = process.platform === "darwin" ? "dylib" : "so";
|
|
7050
7243
|
const plugins = [
|
|
7051
7244
|
{
|
|
7052
|
-
library:
|
|
7053
|
-
sources: [
|
|
7245
|
+
library: import_node_path19.default.join(dir, `libRnxPreviewMacros.${ext}`),
|
|
7246
|
+
sources: [import_node_path19.default.join(moduleRoot, "Sources/RnxPreviewMacros/PreviewMacro.swift")]
|
|
7054
7247
|
},
|
|
7055
7248
|
{
|
|
7056
|
-
library:
|
|
7249
|
+
library: import_node_path19.default.join(dir, `libFoundationMacros.${ext}`),
|
|
7057
7250
|
sources: [
|
|
7058
|
-
|
|
7059
|
-
|
|
7251
|
+
import_node_path19.default.join(moduleRoot, "Sources/FoundationMacros/PredicateMacro.swift"),
|
|
7252
|
+
import_node_path19.default.join(moduleRoot, "Sources/SwiftMacroSupport/PredicateExpression.swift")
|
|
7060
7253
|
]
|
|
7061
7254
|
},
|
|
7062
7255
|
{
|
|
7063
|
-
library:
|
|
7256
|
+
library: import_node_path19.default.join(dir, `libTipKitMacros.${ext}`),
|
|
7064
7257
|
sources: [
|
|
7065
|
-
|
|
7066
|
-
|
|
7258
|
+
import_node_path19.default.join(moduleRoot, "Sources/TipKitMacros/TipKitMacros.swift"),
|
|
7259
|
+
import_node_path19.default.join(moduleRoot, "Sources/SwiftMacroSupport/PredicateExpression.swift")
|
|
7067
7260
|
]
|
|
7068
7261
|
}
|
|
7069
7262
|
];
|
|
7070
7263
|
return {
|
|
7071
7264
|
libraries: plugins.map(({ library }) => library),
|
|
7072
7265
|
executables: [expoPlugin],
|
|
7073
|
-
stale: !(0,
|
|
7074
|
-
({ library, sources }) => !(0,
|
|
7266
|
+
stale: !(0, import_node_fs17.existsSync)(compilerStamp) || !(0, import_node_fs17.existsSync)(expoPlugin) || (0, import_node_fs17.statSync)(pluginScript).mtimeMs > (0, import_node_fs17.statSync)(expoPlugin).mtimeMs || (0, import_node_fs17.readFileSync)(compilerStamp, "utf8").trim() !== release || plugins.some(
|
|
7267
|
+
({ library, sources }) => !(0, import_node_fs17.existsSync)(library) || sources.some((source) => (0, import_node_fs17.statSync)(source).mtimeMs > (0, import_node_fs17.statSync)(library).mtimeMs)
|
|
7075
7268
|
)
|
|
7076
7269
|
};
|
|
7077
7270
|
}
|
|
@@ -7081,14 +7274,14 @@ async function ensureMacroPlugins(moduleRoot, toolchainBin, release, signal, lea
|
|
|
7081
7274
|
await runCompiler(
|
|
7082
7275
|
"sh",
|
|
7083
7276
|
[
|
|
7084
|
-
|
|
7277
|
+
import_node_path19.default.join(moduleRoot, "scripts/build-preview-plugin.sh"),
|
|
7085
7278
|
toolchainBin,
|
|
7086
7279
|
libraries[0]
|
|
7087
7280
|
],
|
|
7088
7281
|
{ signal, lease }
|
|
7089
7282
|
);
|
|
7090
|
-
(0,
|
|
7091
|
-
|
|
7283
|
+
(0, import_node_fs17.writeFileSync)(
|
|
7284
|
+
import_node_path19.default.join(import_node_path19.default.dirname(libraries[0]), "compiler-release"),
|
|
7092
7285
|
`${release}
|
|
7093
7286
|
`
|
|
7094
7287
|
);
|
|
@@ -7104,7 +7297,7 @@ function swiftModuleDigest(root) {
|
|
|
7104
7297
|
const files = swiftModuleInputFiles(root);
|
|
7105
7298
|
const stampHash = (0, import_node_crypto8.createHash)("sha256");
|
|
7106
7299
|
for (const file of files) {
|
|
7107
|
-
const stat = (0,
|
|
7300
|
+
const stat = (0, import_node_fs17.statSync)(import_node_path19.default.join(root, file), { bigint: true });
|
|
7108
7301
|
stampHash.update(file);
|
|
7109
7302
|
stampHash.update(
|
|
7110
7303
|
`${stat.dev}:${stat.ino}:${stat.size}:${stat.mtimeNs}:${stat.ctimeNs}
|
|
@@ -7114,13 +7307,13 @@ function swiftModuleDigest(root) {
|
|
|
7114
7307
|
const stamp = stampHash.digest("hex");
|
|
7115
7308
|
const cached = linkedModuleDigests.get(root);
|
|
7116
7309
|
if (cached?.stamp === stamp) return cached.digest;
|
|
7117
|
-
const record =
|
|
7310
|
+
const record = import_node_path19.default.join(
|
|
7118
7311
|
swiftCacheDir(),
|
|
7119
7312
|
"swift-module-digests",
|
|
7120
7313
|
`${(0, import_node_crypto8.createHash)("sha256").update(root).digest("hex")}.json`
|
|
7121
7314
|
);
|
|
7122
|
-
if ((0,
|
|
7123
|
-
const saved = JSON.parse((0,
|
|
7315
|
+
if ((0, import_node_fs17.existsSync)(record)) {
|
|
7316
|
+
const saved = JSON.parse((0, import_node_fs17.readFileSync)(record, "utf8"));
|
|
7124
7317
|
if (saved && typeof saved === "object" && Reflect.get(saved, "stamp") === stamp && typeof Reflect.get(saved, "digest") === "string") {
|
|
7125
7318
|
const digest2 = Buffer.from(String(Reflect.get(saved, "digest")), "hex");
|
|
7126
7319
|
linkedModuleDigests.set(root, { stamp, digest: digest2 });
|
|
@@ -7131,15 +7324,15 @@ function swiftModuleDigest(root) {
|
|
|
7131
7324
|
for (const file of files) {
|
|
7132
7325
|
hash.update((0, import_node_crypto8.createHash)("sha256").update(file).digest());
|
|
7133
7326
|
hash.update(
|
|
7134
|
-
(0, import_node_crypto8.createHash)("sha256").update((0,
|
|
7327
|
+
(0, import_node_crypto8.createHash)("sha256").update((0, import_node_fs17.readFileSync)(import_node_path19.default.join(root, file))).digest()
|
|
7135
7328
|
);
|
|
7136
7329
|
}
|
|
7137
7330
|
const digest = hash.digest();
|
|
7138
7331
|
linkedModuleDigests.set(root, { stamp, digest });
|
|
7139
|
-
(0,
|
|
7332
|
+
(0, import_node_fs17.mkdirSync)(import_node_path19.default.dirname(record), { recursive: true });
|
|
7140
7333
|
const partial = `${record}.${process.pid}.${(0, import_node_crypto8.randomUUID)()}`;
|
|
7141
|
-
(0,
|
|
7142
|
-
(0,
|
|
7334
|
+
(0, import_node_fs17.writeFileSync)(partial, JSON.stringify({ stamp, digest: digest.toString("hex") }));
|
|
7335
|
+
(0, import_node_fs17.renameSync)(partial, record);
|
|
7143
7336
|
return digest;
|
|
7144
7337
|
}
|
|
7145
7338
|
function swiftProjectBuildKey(moduleRoot, release) {
|
|
@@ -7188,20 +7381,26 @@ function withNativeSourceGlue(input, glue) {
|
|
|
7188
7381
|
...input,
|
|
7189
7382
|
files: {
|
|
7190
7383
|
...input.files,
|
|
7191
|
-
[
|
|
7384
|
+
[import_node_path19.default.posix.join(targetPath, "OneNativeSource.generated.swift")]: glue
|
|
7192
7385
|
},
|
|
7193
7386
|
oneModule: true
|
|
7194
7387
|
};
|
|
7195
7388
|
}
|
|
7196
7389
|
var OPTIONAL_FRAMEWORK_DEPENDENCIES = {
|
|
7390
|
+
PDFKit: [],
|
|
7391
|
+
CFNetwork: ["PeachCFNetwork"],
|
|
7392
|
+
PeachCFNetwork: [],
|
|
7393
|
+
JavaScriptCore: ["PeachJavaScriptCore"],
|
|
7394
|
+
PeachJavaScriptCore: [],
|
|
7197
7395
|
GameplayKit: [],
|
|
7198
7396
|
simd: [],
|
|
7199
7397
|
ModelIO: ["simd"],
|
|
7200
7398
|
GLKit: ["ModelIO"],
|
|
7201
7399
|
Accelerate: [],
|
|
7202
|
-
|
|
7400
|
+
CryptoTokenKit: [],
|
|
7203
7401
|
CommonCrypto: [],
|
|
7204
7402
|
ImagePlayground: [],
|
|
7403
|
+
QuickLook: ["QuickLookThumbnailing"],
|
|
7205
7404
|
QuickLookThumbnailing: [],
|
|
7206
7405
|
libxml2: [],
|
|
7207
7406
|
Compression: [],
|
|
@@ -7330,7 +7529,7 @@ function swiftImportNames(contents, available) {
|
|
|
7330
7529
|
function swiftPeachModules(moduleRoot) {
|
|
7331
7530
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
7332
7531
|
return distribution ? distribution.modules : swiftManifestDeclarations(
|
|
7333
|
-
(0,
|
|
7532
|
+
(0, import_node_fs17.readFileSync)(import_node_path19.default.join(moduleRoot, "Package.swift"), "utf8")
|
|
7334
7533
|
).filter((target) => !target.executable && !target.path.startsWith("fixtures/")).map((target) => target.name);
|
|
7335
7534
|
}
|
|
7336
7535
|
var sdkPaths = /* @__PURE__ */ new Map();
|
|
@@ -7340,8 +7539,8 @@ function swiftSdkPaths(moduleRoot, toolchainBin) {
|
|
|
7340
7539
|
const key = JSON.stringify([toolchainBin, sdk, options]);
|
|
7341
7540
|
const cached = sdkPaths.get(key);
|
|
7342
7541
|
if (cached) return cached;
|
|
7343
|
-
const configuration = (0,
|
|
7344
|
-
|
|
7542
|
+
const configuration = (0, import_node_child_process13.execFileSync)(
|
|
7543
|
+
import_node_path19.default.join(toolchainBin, "swift"),
|
|
7345
7544
|
[
|
|
7346
7545
|
"sdk",
|
|
7347
7546
|
"configure",
|
|
@@ -7366,7 +7565,7 @@ function swiftSdkPaths(moduleRoot, toolchainBin) {
|
|
|
7366
7565
|
if (!Array.isArray(toolsets) || !toolsets.every((value) => typeof value === "string"))
|
|
7367
7566
|
throw new Error(`swift sdk ${sdk} reports invalid toolset paths`);
|
|
7368
7567
|
for (const toolset of toolsets) {
|
|
7369
|
-
const config = JSON.parse((0,
|
|
7568
|
+
const config = JSON.parse((0, import_node_fs17.readFileSync)(toolset, "utf8"));
|
|
7370
7569
|
if (!config || typeof config !== "object" || !("swiftCompiler" in config)) continue;
|
|
7371
7570
|
const compiler = config.swiftCompiler;
|
|
7372
7571
|
if (!compiler || typeof compiler !== "object" || !("extraCLIOptions" in compiler))
|
|
@@ -7382,7 +7581,7 @@ function swiftSdkPaths(moduleRoot, toolchainBin) {
|
|
|
7382
7581
|
if (flag !== "-fwasm-exceptions") cFlags.push(flag);
|
|
7383
7582
|
if (flag === "-iframeworkwithsysroot" && options2[index + 2] === "-Xcc" && typeof options2[index + 3] === "string") {
|
|
7384
7583
|
cFlags.push(options2[index + 3]);
|
|
7385
|
-
frameworks.push(
|
|
7584
|
+
frameworks.push(import_node_path19.default.join(sysroot, options2[index + 3]));
|
|
7386
7585
|
index += 3;
|
|
7387
7586
|
continue;
|
|
7388
7587
|
}
|
|
@@ -7399,7 +7598,7 @@ function swiftSdkPaths(moduleRoot, toolchainBin) {
|
|
|
7399
7598
|
}
|
|
7400
7599
|
const paths = {
|
|
7401
7600
|
sysroot,
|
|
7402
|
-
darwin:
|
|
7601
|
+
darwin: import_node_path19.default.join(sysroot, "darwin"),
|
|
7403
7602
|
resources: field("swiftResourcesPath"),
|
|
7404
7603
|
frameworks,
|
|
7405
7604
|
cFlags
|
|
@@ -7415,29 +7614,29 @@ function swiftAvailableModules(moduleRoot, toolchainBin) {
|
|
|
7415
7614
|
if (cached) return cached;
|
|
7416
7615
|
const modules = new Set(swiftPeachModules(moduleRoot));
|
|
7417
7616
|
const { darwin, resources, frameworks } = swiftSdkPaths(moduleRoot, toolchainBin);
|
|
7418
|
-
for (const entry of (0,
|
|
7617
|
+
for (const entry of (0, import_node_fs17.readdirSync)(import_node_path19.default.join(resources, "wasi"))) {
|
|
7419
7618
|
if (entry.endsWith(".swiftmodule"))
|
|
7420
7619
|
modules.add(entry.slice(0, -".swiftmodule".length));
|
|
7421
7620
|
}
|
|
7422
|
-
for (const entry of (0,
|
|
7423
|
-
const map =
|
|
7424
|
-
if (!(0,
|
|
7425
|
-
for (const match of (0,
|
|
7621
|
+
for (const entry of (0, import_node_fs17.readdirSync)(resources)) {
|
|
7622
|
+
const map = import_node_path19.default.join(resources, entry, "module.modulemap");
|
|
7623
|
+
if (!(0, import_node_fs17.existsSync)(map)) continue;
|
|
7624
|
+
for (const match of (0, import_node_fs17.readFileSync)(map, "utf8").matchAll(/^module\s+([A-Za-z_]\w*)/gm))
|
|
7426
7625
|
modules.add(match[1]);
|
|
7427
7626
|
}
|
|
7428
|
-
const libc =
|
|
7429
|
-
for (const entry of (0,
|
|
7627
|
+
const libc = import_node_path19.default.join(darwin, "usr/include");
|
|
7628
|
+
for (const entry of (0, import_node_fs17.readdirSync)(libc)) {
|
|
7430
7629
|
if (!entry.endsWith(".modulemap")) continue;
|
|
7431
|
-
for (const match of (0,
|
|
7630
|
+
for (const match of (0, import_node_fs17.readFileSync)(import_node_path19.default.join(libc, entry), "utf8").matchAll(
|
|
7432
7631
|
/^module\s+([A-Za-z_]\w*)/gm
|
|
7433
7632
|
))
|
|
7434
7633
|
modules.add(match[1]);
|
|
7435
7634
|
}
|
|
7436
7635
|
for (const directory of frameworks) {
|
|
7437
|
-
for (const entry of (0,
|
|
7438
|
-
const map =
|
|
7439
|
-
if (!(0,
|
|
7440
|
-
for (const match of (0,
|
|
7636
|
+
for (const entry of (0, import_node_fs17.readdirSync)(directory)) {
|
|
7637
|
+
const map = import_node_path19.default.join(directory, entry, "Modules/module.modulemap");
|
|
7638
|
+
if (!(0, import_node_fs17.existsSync)(map)) continue;
|
|
7639
|
+
for (const match of (0, import_node_fs17.readFileSync)(map, "utf8").matchAll(
|
|
7441
7640
|
/^framework\s+module\s+([A-Za-z_]\w*)/gm
|
|
7442
7641
|
))
|
|
7443
7642
|
modules.add(match[1]);
|
|
@@ -7488,20 +7687,20 @@ function swiftSystemLibraryExclusions(files, targets, distributionModules) {
|
|
|
7488
7687
|
);
|
|
7489
7688
|
}
|
|
7490
7689
|
function distributionModulesPath(root, moduleRoot, excluded) {
|
|
7491
|
-
const modules =
|
|
7690
|
+
const modules = import_node_path19.default.join(moduleRoot, "modules");
|
|
7492
7691
|
if (!excluded || excluded.size === 0) return modules;
|
|
7493
7692
|
const key = (0, import_node_crypto8.createHash)("sha256").update([...excluded].sort().join("\0")).digest("hex").slice(0, 16);
|
|
7494
|
-
const directory =
|
|
7495
|
-
const complete =
|
|
7496
|
-
if (!(0,
|
|
7497
|
-
(0,
|
|
7498
|
-
for (const entry of (0,
|
|
7499
|
-
(0,
|
|
7500
|
-
for (const entry of (0,
|
|
7693
|
+
const directory = import_node_path19.default.join(root, `.peach-modules-${key}`);
|
|
7694
|
+
const complete = import_node_path19.default.join(directory, ".complete");
|
|
7695
|
+
if (!(0, import_node_fs17.existsSync)(complete)) {
|
|
7696
|
+
(0, import_node_fs17.mkdirSync)(directory, { recursive: true });
|
|
7697
|
+
for (const entry of (0, import_node_fs17.readdirSync)(directory))
|
|
7698
|
+
(0, import_node_fs17.rmSync)(import_node_path19.default.join(directory, entry), { recursive: true, force: true });
|
|
7699
|
+
for (const entry of (0, import_node_fs17.readdirSync)(modules)) {
|
|
7501
7700
|
if (excluded.has(entry.replace(/\.swiftmodule$/, ""))) continue;
|
|
7502
|
-
(0,
|
|
7701
|
+
(0, import_node_fs17.symlinkSync)(import_node_path19.default.join(modules, entry), import_node_path19.default.join(directory, entry));
|
|
7503
7702
|
}
|
|
7504
|
-
(0,
|
|
7703
|
+
(0, import_node_fs17.writeFileSync)(complete, "");
|
|
7505
7704
|
}
|
|
7506
7705
|
return directory;
|
|
7507
7706
|
}
|
|
@@ -7521,7 +7720,8 @@ function swiftTargetDependencies(files, targets) {
|
|
|
7521
7720
|
(candidate) => candidate.name !== target.name && candidate.path !== "." && candidate.path.startsWith(prefix) && file.startsWith(`${candidate.path}/`)
|
|
7522
7721
|
))
|
|
7523
7722
|
continue;
|
|
7524
|
-
|
|
7723
|
+
const imports = file.endsWith(".swift") ? swiftImportNames(contents) : SWIFT_NATIVE_SOURCE_EXTENSIONS.some((extension) => file.endsWith(extension)) ? clangImportNames(contents) : [];
|
|
7724
|
+
for (const name2 of imports) {
|
|
7525
7725
|
if (names.has(name2) && name2 !== target.name) deps.add(name2);
|
|
7526
7726
|
}
|
|
7527
7727
|
}
|
|
@@ -7546,7 +7746,7 @@ var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
|
7546
7746
|
).join("");
|
|
7547
7747
|
var ONE_IMPLICIT_FLAGS = ', "-Xfrontend", "-import-module", "-Xfrontend", "One"';
|
|
7548
7748
|
var executableLinkFlags = (root) => ` "-Xclang-linker", "-O0",
|
|
7549
|
-
"-Xclang-linker", ${JSON.stringify(`-fuse-ld=${
|
|
7749
|
+
"-Xclang-linker", ${JSON.stringify(`-fuse-ld=${import_node_path19.default.join(root, SWIFT_AUTOLINK_LINKER)}`)},
|
|
7550
7750
|
"-Xlinker", "-z", "-Xlinker", "stack-size=8372224",
|
|
7551
7751
|
"-Xlinker", "--stack-first",
|
|
7552
7752
|
"-Xlinker", "--global-base=8372224",
|
|
@@ -7556,8 +7756,9 @@ var executableLinkFlags = (root) => ` "-Xclang-linker", "-O0",
|
|
|
7556
7756
|
`;
|
|
7557
7757
|
var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quoted, "-Wl,--end-lib"] : [];
|
|
7558
7758
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
7559
|
-
var MULTI_MANIFEST_VERSION =
|
|
7560
|
-
var
|
|
7759
|
+
var MULTI_MANIFEST_VERSION = 64;
|
|
7760
|
+
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
7761
|
+
var compilerSourceDigest = true ? "c30b94c39ef2c57dd0f163385e565e0340acb99365cc16c5091e712d04e7fe68" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
7561
7762
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
7562
7763
|
const hash = (0, import_node_crypto8.createHash)("sha256");
|
|
7563
7764
|
hash.update(`swift-compile
|
|
@@ -7643,17 +7844,17 @@ ${target}
|
|
|
7643
7844
|
return hash.digest("hex");
|
|
7644
7845
|
}
|
|
7645
7846
|
function swiftCrossImportFlags(moduleRoot, distribution) {
|
|
7646
|
-
const overlayRoot =
|
|
7847
|
+
const overlayRoot = import_node_path19.default.join(
|
|
7647
7848
|
moduleRoot,
|
|
7648
7849
|
distribution ? "modules" : "cross-import-overlays"
|
|
7649
7850
|
);
|
|
7650
|
-
return (0,
|
|
7851
|
+
return (0, import_node_fs17.readdirSync)(overlayRoot, { encoding: "utf8", recursive: true }).filter((file) => file.endsWith(".swiftoverlay")).sort((left, right) => left.localeCompare(right)).flatMap((file) => [
|
|
7651
7852
|
"-Xfrontend",
|
|
7652
7853
|
"-swift-module-cross-import",
|
|
7653
7854
|
"-Xfrontend",
|
|
7654
|
-
|
|
7855
|
+
import_node_path19.default.basename(import_node_path19.default.dirname(file), ".swiftcrossimport"),
|
|
7655
7856
|
"-Xfrontend",
|
|
7656
|
-
|
|
7857
|
+
import_node_path19.default.join(overlayRoot, file)
|
|
7657
7858
|
]);
|
|
7658
7859
|
}
|
|
7659
7860
|
function withoutWasmOverlayIsystem(flags) {
|
|
@@ -7695,21 +7896,33 @@ function emitSwiftPackageManifest(args) {
|
|
|
7695
7896
|
const distributionLink = args.distributionLink;
|
|
7696
7897
|
if (distribution && distributionLink) {
|
|
7697
7898
|
const isProvider = (object) => object.startsWith(`lib/${DARWIN_RECORDS_PREFIX}`);
|
|
7698
|
-
const
|
|
7699
|
-
|
|
7899
|
+
const available = distribution.objects.filter((object) => !isProvider(object));
|
|
7900
|
+
const objects = available.filter(
|
|
7901
|
+
(object) => !targets.some((target) => object.startsWith(`lib/${target.name}-`)) && [...OPTIONAL_FRAMEWORKS, "SpriteKit", "PeachBox2D"].every(
|
|
7700
7902
|
(name2) => !object.startsWith(`lib/${name2}-`) || reachedFrameworks.has(name2)
|
|
7701
7903
|
)
|
|
7702
7904
|
);
|
|
7703
|
-
const
|
|
7704
|
-
const
|
|
7905
|
+
const selectedObjects = new Set(objects);
|
|
7906
|
+
const quoted = (object) => `"${import_node_path19.default.join(moduleRoot, object).replaceAll("\\", "\\\\").replaceAll('"', '\\"')}"`;
|
|
7907
|
+
const categoryObjects = new Set(
|
|
7908
|
+
foundationCategoryObjects.map((name2) => `lib/Foundation-${name2}.o`)
|
|
7909
|
+
);
|
|
7705
7910
|
const roots = args.lazyDistribution ? swiftObjcRootObjects(distribution.id, moduleRoot, distribution.objects) : null;
|
|
7911
|
+
const eager = new Set(
|
|
7912
|
+
objects.filter((object) => roots?.has(object) || categoryObjects.has(object))
|
|
7913
|
+
);
|
|
7706
7914
|
const list = [
|
|
7707
7915
|
...roots ? [
|
|
7708
|
-
...
|
|
7916
|
+
...[...eager].map(quoted),
|
|
7709
7917
|
"-Wl,--start-lib",
|
|
7710
|
-
...
|
|
7918
|
+
...available.filter((object) => !eager.has(object)).map(quoted),
|
|
7711
7919
|
"-Wl,--end-lib"
|
|
7712
|
-
] :
|
|
7920
|
+
] : [
|
|
7921
|
+
...objects.map(quoted),
|
|
7922
|
+
"-Wl,--start-lib",
|
|
7923
|
+
...available.filter((object) => !selectedObjects.has(object)).map(quoted),
|
|
7924
|
+
"-Wl,--end-lib"
|
|
7925
|
+
],
|
|
7713
7926
|
...darwinRecordsRegion(distribution.objects.filter(isProvider).map(quoted))
|
|
7714
7927
|
].join("\n") + "\n";
|
|
7715
7928
|
distributionLinkPath = distributionLink.path.replace(
|
|
@@ -7724,11 +7937,32 @@ function emitSwiftPackageManifest(args) {
|
|
|
7724
7937
|
const linkedNativeModules = [...args.native?.entries() ?? []].flatMap(
|
|
7725
7938
|
([name2, value]) => value.clang ? [name2] : []
|
|
7726
7939
|
);
|
|
7940
|
+
const headerProducers = [
|
|
7941
|
+
...new Set(
|
|
7942
|
+
[...args.native?.values() ?? []].flatMap((value) => value.late?.producers ?? [])
|
|
7943
|
+
)
|
|
7944
|
+
];
|
|
7945
|
+
if (headerProducers.length > 1 && targets.some((target) => target.name === SWIFT_HEADER_PRODUCTS_TARGET))
|
|
7946
|
+
throw new Error(
|
|
7947
|
+
`native header product target collides with ${SWIFT_HEADER_PRODUCTS_TARGET}`
|
|
7948
|
+
);
|
|
7727
7949
|
const macroSettings = (values) => (values ?? []).map((value) => ` ${clangMacroSetting(value)},`).join("");
|
|
7950
|
+
const flagArray = (literal) => `peachCompilerArguments(${JSON.stringify(literal.replace(/,\s*]$/, "]"))})`;
|
|
7951
|
+
const declaredClangSettings = (target, tool) => clangSettingEntries(
|
|
7952
|
+
target?.clangSettings?.map(
|
|
7953
|
+
(setting) => "flags" in setting ? {
|
|
7954
|
+
...setting,
|
|
7955
|
+
flags: setting.flags.map(
|
|
7956
|
+
(flag) => flag.replaceAll(SWIFT_NATIVE_INPUT_ROOT, args.root)
|
|
7957
|
+
)
|
|
7958
|
+
} : setting
|
|
7959
|
+
),
|
|
7960
|
+
tool
|
|
7961
|
+
).map((entry) => ` ${entry},`).join("");
|
|
7728
7962
|
const stanza = (target) => {
|
|
7729
7963
|
const native = args.native?.get(target.name);
|
|
7730
7964
|
if (target.systemLibrary || native?.clang?.sources.length === 0)
|
|
7731
|
-
return ` .systemLibrary(name: ${JSON.stringify(target.name)}, path: ${JSON.stringify(native?.clang ?
|
|
7965
|
+
return ` .systemLibrary(name: ${JSON.stringify(target.name)}, path: ${JSON.stringify(native?.clang ? import_node_path19.default.posix.dirname(native.clang.modulemap) : target.path)}),`;
|
|
7732
7966
|
const isolation = target.mainActorIsolation ? " .defaultIsolation(MainActor.self)," : "";
|
|
7733
7967
|
const interoperability = target.cxxInterop ? " .interoperabilityMode(.Cxx)," : "";
|
|
7734
7968
|
const defines = (target.defines ?? []).map((name2) => ` .define(${JSON.stringify(name2)}),`).join("");
|
|
@@ -7745,9 +7979,6 @@ function emitSwiftPackageManifest(args) {
|
|
|
7745
7979
|
...args.nativeHeaderFlags ?? []
|
|
7746
7980
|
];
|
|
7747
7981
|
const clang = native && !native.mixed;
|
|
7748
|
-
const nativeImports = (siblings.get(target.name) ?? []).filter((name2) => args.native?.has(name2) && !args.native.get(name2)?.mixed).map(
|
|
7749
|
-
(name2) => `, "-Xfrontend", "-import-module", "-Xfrontend", ${JSON.stringify(swiftTargetModuleName(name2))}`
|
|
7750
|
-
).join("");
|
|
7751
7982
|
const importContext = /* @__PURE__ */ new Set();
|
|
7752
7983
|
const includeImportContext = (name2) => {
|
|
7753
7984
|
if (importContext.has(name2)) return;
|
|
@@ -7775,10 +8006,11 @@ function emitSwiftPackageManifest(args) {
|
|
|
7775
8006
|
...native?.swiftFlags ?? [],
|
|
7776
8007
|
...args.objcImplementationModules?.has(target.name) ? ["-enable-experimental-feature", "ObjCImplementation"] : []
|
|
7777
8008
|
].map((flag) => `, ${JSON.stringify(flag)}`).join("");
|
|
7778
|
-
const header = args.headerDirectory && [...args.native?.values() ?? []].some(
|
|
8009
|
+
const header = args.headerDirectory && (args.nativeHeaderDeclarations?.[target.name] || [...args.native?.values() ?? []].some(
|
|
7779
8010
|
(value) => value.late?.producers.includes(target.name)
|
|
7780
|
-
) ? `, "-emit-objc-header-path", ${JSON.stringify(
|
|
7781
|
-
const
|
|
8011
|
+
)) ? `, "-emit-objc-header-path", ${JSON.stringify(import_node_path19.default.join(args.headerDirectory, `${target.name}-Swift${args.nativeHeaderDeclarations?.[target.name] ? ".original" : ""}.h`))}` : "";
|
|
8012
|
+
const clangMode = target.cxxInterop ? "" : ', "-Xcc", "-fno-cxx-modules"';
|
|
8013
|
+
const swiftSettings = `swiftSettings: [.swiftLanguageMode(.v${target.languageMode}),${isolation}${interoperability}${defines}${features}${upcoming} .unsafeFlags(${flagArray(`["-Osize", "-Xfrontend", "-enable-cross-import-overlays"${overlayFlags}${FOUNDATION_IMPLICIT_FLAGS}${oneModule ? ONE_IMPLICIT_FLAGS : ""}${imports}${nativeImportFlags}${objcFlags}${header}${clangMode}${upstream}]`)})]`;
|
|
7782
8014
|
const deps = [
|
|
7783
8015
|
.../* @__PURE__ */ new Set([
|
|
7784
8016
|
...(target.dependencies ?? []).flatMap(
|
|
@@ -7805,9 +8037,12 @@ function emitSwiftPackageManifest(args) {
|
|
|
7805
8037
|
...spriteKit ? [SPRITEKIT_PRODUCT] : []
|
|
7806
8038
|
],
|
|
7807
8039
|
...(siblings.get(target.name) ?? []).flatMap(
|
|
7808
|
-
(dependency) => clang &&
|
|
8040
|
+
(dependency) => clang && // textual native headers can include one another without imposing
|
|
8041
|
+
// an object build order. the executable already links every native
|
|
8042
|
+
// target; only generated Swift headers require producer ordering.
|
|
8043
|
+
(args.native?.get(dependency)?.clang || [...args.native?.values() ?? []].some(
|
|
7809
8044
|
(value) => value.late?.producers.includes(dependency)
|
|
7810
|
-
) ? [] : OPTIONAL_FRAMEWORKS.has(dependency) && !targets.some((candidate) => candidate.name === dependency) ? linkedObjects ? [] : [`.product(name: "${dependency}", package: "sootsim-swift")`] : [`"${dependency}"`]
|
|
8045
|
+
)) ? [] : OPTIONAL_FRAMEWORKS.has(dependency) && !targets.some((candidate) => candidate.name === dependency) ? linkedObjects ? [] : [`.product(name: "${dependency}", package: "sootsim-swift")`] : [`"${dependency}"`]
|
|
7811
8046
|
)
|
|
7812
8047
|
])
|
|
7813
8048
|
].join(", ");
|
|
@@ -7821,14 +8056,16 @@ function emitSwiftPackageManifest(args) {
|
|
|
7821
8056
|
);
|
|
7822
8057
|
const librarySettings = [
|
|
7823
8058
|
...linkedLibraries,
|
|
7824
|
-
...args.libraries?.has(target.name) ? [
|
|
8059
|
+
...args.libraries?.has(target.name) ? [
|
|
8060
|
+
`.unsafeFlags(${flagArray(`[${JSON.stringify(args.libraries.get(target.name))}]`)})`
|
|
8061
|
+
] : []
|
|
7825
8062
|
];
|
|
7826
8063
|
const link = target.executable ? `,
|
|
7827
8064
|
linkerSettings: [
|
|
7828
8065
|
${librarySettings.map((setting) => `${setting},`).join("\n ")}
|
|
7829
|
-
.unsafeFlags([
|
|
8066
|
+
.unsafeFlags(${flagArray(`[
|
|
7830
8067
|
${REACTOR_FLAG}${executableLinkFlags(args.root)} "-Xlinker", "--export-if-defined=__main_argc_argv"${library},
|
|
7831
|
-
]),
|
|
8068
|
+
]`)}),
|
|
7832
8069
|
.unsafeFlags(["-Xlinker", "--strip-all"], .when(configuration: .release)),
|
|
7833
8070
|
]` : librarySettings.length > 0 ? `,
|
|
7834
8071
|
linkerSettings: [${librarySettings.join(", ")}]` : "";
|
|
@@ -7837,30 +8074,16 @@ function emitSwiftPackageManifest(args) {
|
|
|
7837
8074
|
const nativeCxx = native?.clang?.sources.some(
|
|
7838
8075
|
(source) => /\.(?:cc|cpp|cxx|mm)$/.test(source)
|
|
7839
8076
|
);
|
|
7840
|
-
const declared = (tool) => clangSettingEntries(
|
|
7841
|
-
target.clangSettings?.map(
|
|
7842
|
-
(setting) => "flags" in setting ? {
|
|
7843
|
-
...setting,
|
|
7844
|
-
flags: setting.flags.map(
|
|
7845
|
-
(flag) => flag.replaceAll(SWIFT_NATIVE_INPUT_ROOT, args.root)
|
|
7846
|
-
)
|
|
7847
|
-
} : setting
|
|
7848
|
-
),
|
|
7849
|
-
tool
|
|
7850
|
-
).map((entry) => ` ${entry},`).join("");
|
|
7851
8077
|
const nativeSettings = native?.clang ? [
|
|
7852
|
-
`cSettings: [${cDefines} .unsafeFlags(${JSON.stringify([...nativeFlags, ...native.clang.flags])})]`,
|
|
8078
|
+
`cSettings: [${cDefines} .unsafeFlags(${flagArray(JSON.stringify([...nativeFlags, ...native.clang.flags]))})]`,
|
|
7853
8079
|
...nativeCxx ? [
|
|
7854
|
-
`cxxSettings: [${cxxDefines} .unsafeFlags(${JSON.stringify(["-fno-cxx-modules", ...cxxFlagsFor(nativeFlags), ...native.clang.cxxFlags])})]`
|
|
8080
|
+
`cxxSettings: [${cxxDefines} .unsafeFlags(${flagArray(JSON.stringify(["-fno-cxx-modules", ...cxxFlagsFor(nativeFlags), ...native.clang.cxxFlags]))})]`
|
|
7855
8081
|
] : []
|
|
7856
8082
|
].join(", ") : [
|
|
7857
|
-
`cSettings: [${cDefines}${
|
|
7858
|
-
`cxxSettings: [${cxxDefines}${
|
|
8083
|
+
`cSettings: [${cDefines}${declaredClangSettings(target, "c")} .unsafeFlags(${flagArray(JSON.stringify([...nativeFlags, ...native?.flags ?? []]))})]`,
|
|
8084
|
+
`cxxSettings: [${cxxDefines}${declaredClangSettings(target, "cxx")} .unsafeFlags(${flagArray(JSON.stringify(["-fno-cxx-modules", ...cxxFlagsFor(nativeFlags), ...native?.cxxFlags ?? []]))})]`
|
|
7859
8085
|
].join(", ");
|
|
7860
|
-
const exclusions = native?.clang ? [
|
|
7861
|
-
...native.exclude ?? native.lateSources,
|
|
7862
|
-
...args.nativeResourceExclusions ?? []
|
|
7863
|
-
] : [
|
|
8086
|
+
const exclusions = native?.clang ? [] : [
|
|
7864
8087
|
...native ? native.exclude ?? native.lateSources : [],
|
|
7865
8088
|
...target.exclude ?? []
|
|
7866
8089
|
];
|
|
@@ -7868,11 +8091,11 @@ function emitSwiftPackageManifest(args) {
|
|
|
7868
8091
|
` ${kind}(`,
|
|
7869
8092
|
` name: "${target.name}",`,
|
|
7870
8093
|
` dependencies: [${deps}],`,
|
|
7871
|
-
` path: ${JSON.stringify(native?.clang ?
|
|
8094
|
+
` path: ${JSON.stringify(native?.clang ? native.clang.path : target.path)},`,
|
|
7872
8095
|
...exclusions.length ? [` exclude: ${JSON.stringify(exclusions)},`] : [],
|
|
7873
8096
|
...native?.clang ? [
|
|
7874
|
-
` sources: ${JSON.stringify(native.clang.sources
|
|
7875
|
-
|
|
8097
|
+
` sources: ${JSON.stringify(native.clang.sources)},`,
|
|
8098
|
+
' publicHeadersPath: "include",'
|
|
7876
8099
|
] : native?.flags ? [` sources: ${JSON.stringify(native.sources)},`] : [],
|
|
7877
8100
|
...!native?.clang && target.publicHeadersPath !== void 0 ? [` publicHeadersPath: ${JSON.stringify(target.publicHeadersPath)},`] : [],
|
|
7878
8101
|
// the native backend supplies dependency module maps without their
|
|
@@ -7884,6 +8107,11 @@ function emitSwiftPackageManifest(args) {
|
|
|
7884
8107
|
return [
|
|
7885
8108
|
"// swift-tools-version: 6.2",
|
|
7886
8109
|
"import PackageDescription",
|
|
8110
|
+
"import Foundation",
|
|
8111
|
+
"",
|
|
8112
|
+
"func peachCompilerArguments(_ json: String) -> [String] {",
|
|
8113
|
+
" try! JSONDecoder().decode([String].self, from: Data(json.utf8))",
|
|
8114
|
+
"}",
|
|
7887
8115
|
"",
|
|
7888
8116
|
"// generated by swift-compile from the project package partition.",
|
|
7889
8117
|
"let package = Package(",
|
|
@@ -7898,6 +8126,9 @@ function emitSwiftPackageManifest(args) {
|
|
|
7898
8126
|
].join(", ")}],`,
|
|
7899
8127
|
" targets: [",
|
|
7900
8128
|
...targets.map(stanza),
|
|
8129
|
+
...headerProducers.length > 1 ? [
|
|
8130
|
+
` .target(name: ${JSON.stringify(SWIFT_HEADER_PRODUCTS_TARGET)}, dependencies: ${JSON.stringify(headerProducers)}, path: ${JSON.stringify(SWIFT_HEADER_PRODUCTS_TARGET)}, swiftSettings: [.swiftLanguageMode(.v5)]),`
|
|
8131
|
+
] : [],
|
|
7901
8132
|
...[...args.native?.entries() ?? []].flatMap(([name2, native]) => {
|
|
7902
8133
|
const late = native.late;
|
|
7903
8134
|
const nativeFlags = [
|
|
@@ -7908,6 +8139,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
7908
8139
|
return late ? (native.groups ?? [
|
|
7909
8140
|
{
|
|
7910
8141
|
name: late.name,
|
|
8142
|
+
path: native.path,
|
|
7911
8143
|
sources: native.lateSources,
|
|
7912
8144
|
flags: ["-fmodules"],
|
|
7913
8145
|
cxxFlags: ["-fmodules"]
|
|
@@ -7915,13 +8147,12 @@ function emitSwiftPackageManifest(args) {
|
|
|
7915
8147
|
]).flatMap((group) => [
|
|
7916
8148
|
` .target(name: ${JSON.stringify(group.name)},`,
|
|
7917
8149
|
` dependencies: ${JSON.stringify(native.mixed ? [] : [name2])},`,
|
|
7918
|
-
` path: ${JSON.stringify(
|
|
7919
|
-
|
|
7920
|
-
|
|
7921
|
-
`
|
|
7922
|
-
` cSettings: [${macroSettings(owner?.cDefines)} .unsafeFlags(${JSON.stringify([...nativeFlags, "-I", native.includeDirectory, "-I", args.headerDirectory, ...group.flags])})],`,
|
|
8150
|
+
` path: ${JSON.stringify(group.path)},`,
|
|
8151
|
+
` sources: ${JSON.stringify(group.sources)},`,
|
|
8152
|
+
' publicHeadersPath: "include",',
|
|
8153
|
+
` cSettings: [${macroSettings(owner?.cDefines)}${declaredClangSettings(owner, "c")} .unsafeFlags(${flagArray(JSON.stringify([...nativeFlags, "-I", native.includeDirectory, "-I", args.headerDirectory, ...group.flags]))})],`,
|
|
7923
8154
|
...group.sources.some((source) => /\.(?:cc|cpp|cxx|mm)$/.test(source)) ? [
|
|
7924
|
-
` cxxSettings: [${macroSettings(owner?.cxxDefines)} .unsafeFlags(${JSON.stringify(["-fno-cxx-modules", ...cxxFlagsFor(nativeFlags), ...group.cxxFlags])})]),`
|
|
8155
|
+
` cxxSettings: [${macroSettings(owner?.cxxDefines)}${declaredClangSettings(owner, "cxx")} .unsafeFlags(${flagArray(JSON.stringify(["-fno-cxx-modules", ...cxxFlagsFor(nativeFlags), ...group.cxxFlags]))})]),`
|
|
7925
8156
|
] : [" ),"]
|
|
7926
8157
|
]) : [];
|
|
7927
8158
|
}),
|
|
@@ -7932,22 +8163,19 @@ function emitSwiftPackageManifest(args) {
|
|
|
7932
8163
|
].join("\n");
|
|
7933
8164
|
}
|
|
7934
8165
|
function syncSwiftTree(base, files) {
|
|
7935
|
-
(0,
|
|
8166
|
+
(0, import_node_fs17.mkdirSync)(base, { recursive: true });
|
|
7936
8167
|
const walk = (dir) => {
|
|
7937
|
-
for (const entry of (0,
|
|
7938
|
-
const full =
|
|
8168
|
+
for (const entry of (0, import_node_fs17.readdirSync)(dir, { withFileTypes: true })) {
|
|
8169
|
+
const full = import_node_path19.default.join(dir, entry.name);
|
|
7939
8170
|
if (dir === base && (entry.name === ".build" || entry.name.startsWith(".peach-modules-") || entry.name === SWIFT_LINK_STAMP))
|
|
7940
8171
|
continue;
|
|
7941
8172
|
if (entry.isDirectory()) walk(full);
|
|
7942
|
-
else if (!files.has(full)) (0,
|
|
8173
|
+
else if (!files.has(full)) (0, import_node_fs17.rmSync)(full, { force: true });
|
|
7943
8174
|
}
|
|
7944
8175
|
};
|
|
7945
8176
|
walk(base);
|
|
7946
8177
|
for (const [full, contents] of files) {
|
|
7947
|
-
|
|
7948
|
-
continue;
|
|
7949
|
-
(0, import_node_fs16.mkdirSync)(import_node_path17.default.dirname(full), { recursive: true });
|
|
7950
|
-
(0, import_node_fs16.writeFileSync)(full, contents);
|
|
8178
|
+
writeBuildFile(full, contents);
|
|
7951
8179
|
}
|
|
7952
8180
|
}
|
|
7953
8181
|
var DIRECTIVE = /^[ \t]*#(?:if|elseif)\b/;
|
|
@@ -7976,7 +8204,10 @@ function compiledSwiftSources(files, targets) {
|
|
|
7976
8204
|
const manifest = /(?:^|\/)Package(?:@swift-[\d.]+)?\.swift$/.test(file);
|
|
7977
8205
|
return [
|
|
7978
8206
|
file,
|
|
7979
|
-
manifest && (!owner || /^Package(?:@swift-[\d.]+)?\.swift$/.test(file)) ? source : swiftSourceAsIOS(
|
|
8207
|
+
manifest && (!owner || /^Package(?:@swift-[\d.]+)?\.swift$/.test(file)) ? source : swiftSourceAsIOS(
|
|
8208
|
+
source,
|
|
8209
|
+
owner?.defines?.includes(SWIFT_XCODE_BUILD_CONDITION) && !owner.defines.includes("SWIFT_PACKAGE") ? false : void 0
|
|
8210
|
+
)
|
|
7980
8211
|
];
|
|
7981
8212
|
})
|
|
7982
8213
|
);
|
|
@@ -7993,80 +8224,6 @@ function lowerAVAssetURLCluster(source) {
|
|
|
7993
8224
|
out = out.slice(0, at) + insert + out.slice(at + remove);
|
|
7994
8225
|
return out;
|
|
7995
8226
|
}
|
|
7996
|
-
function lowerNSDictionaryLiteralReturn(source) {
|
|
7997
|
-
if (!source.includes("NSDictionary")) return source;
|
|
7998
|
-
const masked = swiftCodeMask(source);
|
|
7999
|
-
const edits = [];
|
|
8000
|
-
const wrapDictAt = (bracketStart, limit) => {
|
|
8001
|
-
let bDepth = 1;
|
|
8002
|
-
let j = bracketStart + 1;
|
|
8003
|
-
let hasColon = false;
|
|
8004
|
-
while (j < limit && bDepth > 0) {
|
|
8005
|
-
if (masked[j] === "[" || masked[j] === "(" || masked[j] === "{") bDepth++;
|
|
8006
|
-
else if (masked[j] === "]" || masked[j] === ")" || masked[j] === "}") bDepth--;
|
|
8007
|
-
else if (bDepth === 1 && masked[j] === ":") hasColon = true;
|
|
8008
|
-
j++;
|
|
8009
|
-
}
|
|
8010
|
-
if (bDepth === 0 && hasColon) {
|
|
8011
|
-
edits.push([
|
|
8012
|
-
bracketStart,
|
|
8013
|
-
j - bracketStart,
|
|
8014
|
-
`NSDictionary(dictionary: ${source.slice(bracketStart, j)})`
|
|
8015
|
-
]);
|
|
8016
|
-
}
|
|
8017
|
-
};
|
|
8018
|
-
const fnPattern = /\bfunc\b[^{]*->\s*NSDictionary\??\s*\{/g;
|
|
8019
|
-
let fnMatch;
|
|
8020
|
-
while ((fnMatch = fnPattern.exec(masked)) !== null) {
|
|
8021
|
-
const openBrace = fnMatch.index + fnMatch[0].length - 1;
|
|
8022
|
-
let depth = 1;
|
|
8023
|
-
let i = openBrace + 1;
|
|
8024
|
-
while (i < masked.length && depth > 0) {
|
|
8025
|
-
if (masked[i] === "{") depth++;
|
|
8026
|
-
else if (masked[i] === "}") depth--;
|
|
8027
|
-
i++;
|
|
8028
|
-
}
|
|
8029
|
-
const bodyEnd = i - 1;
|
|
8030
|
-
const bodyMasked = masked.slice(openBrace + 1, bodyEnd);
|
|
8031
|
-
const retPattern = /\breturn\s*\[/g;
|
|
8032
|
-
let retMatch;
|
|
8033
|
-
while ((retMatch = retPattern.exec(bodyMasked)) !== null) {
|
|
8034
|
-
const bracketStart = openBrace + 1 + retMatch.index + retMatch[0].length - 1;
|
|
8035
|
-
wrapDictAt(bracketStart, bodyEnd);
|
|
8036
|
-
}
|
|
8037
|
-
}
|
|
8038
|
-
const varPattern = /:\s*NSDictionary\??\s*=\s*\[/g;
|
|
8039
|
-
let varMatch;
|
|
8040
|
-
while ((varMatch = varPattern.exec(masked)) !== null) {
|
|
8041
|
-
wrapDictAt(varMatch.index + varMatch[0].length - 1, masked.length);
|
|
8042
|
-
}
|
|
8043
|
-
const nsDictLabels = /* @__PURE__ */ new Set();
|
|
8044
|
-
for (const m of masked.matchAll(/\b(\w+)\s*:\s*NSDictionary\??\b/g)) {
|
|
8045
|
-
if (m[1]) nsDictLabels.add(m[1]);
|
|
8046
|
-
}
|
|
8047
|
-
for (const label of nsDictLabels) {
|
|
8048
|
-
const argPattern = new RegExp(`\\b${label}\\s*:\\s*\\[`, "g");
|
|
8049
|
-
let argMatch;
|
|
8050
|
-
while ((argMatch = argPattern.exec(masked)) !== null) {
|
|
8051
|
-
const before = masked.slice(0, argMatch.index).trimEnd();
|
|
8052
|
-
if (!before.endsWith("(") && !before.endsWith(",")) continue;
|
|
8053
|
-
wrapDictAt(argMatch.index + argMatch[0].length - 1, masked.length);
|
|
8054
|
-
}
|
|
8055
|
-
}
|
|
8056
|
-
if (/\btypealias\s+\w+\s*=\s*\([^)]*,\s*NSDictionary\??\s*\)/.test(masked)) {
|
|
8057
|
-
const cbPattern = /\b\w+\s*\(\s*\.[A-Za-z_]\w*\s*,\s*\[/g;
|
|
8058
|
-
let cbMatch;
|
|
8059
|
-
while ((cbMatch = cbPattern.exec(masked)) !== null) {
|
|
8060
|
-
wrapDictAt(cbMatch.index + cbMatch[0].length - 1, masked.length);
|
|
8061
|
-
}
|
|
8062
|
-
}
|
|
8063
|
-
const unique = /* @__PURE__ */ new Map();
|
|
8064
|
-
for (const edit of edits) unique.set(edit[0], edit);
|
|
8065
|
-
let out = source;
|
|
8066
|
-
for (const [at, remove, insert] of [...unique.values()].sort((a, b) => b[0] - a[0]))
|
|
8067
|
-
out = out.slice(0, at) + insert + out.slice(at + remove);
|
|
8068
|
-
return out;
|
|
8069
|
-
}
|
|
8070
8227
|
function lowerNSValueTimeBox(source) {
|
|
8071
8228
|
const masked = swiftCodeMask(source);
|
|
8072
8229
|
const pattern = /\bNSValue\s*\(\s*time\s*:/g;
|
|
@@ -8240,9 +8397,6 @@ var FOUNDATION_OVERLAY_TYPES = /* @__PURE__ */ new Set([
|
|
|
8240
8397
|
"NSHashEnumerator",
|
|
8241
8398
|
"NSHashTable",
|
|
8242
8399
|
"NSHashTableCallBacks",
|
|
8243
|
-
"NSItemProvider",
|
|
8244
|
-
"NSItemProviderFileOptions",
|
|
8245
|
-
"NSItemProviderRepresentationVisibility",
|
|
8246
8400
|
"NSKeyValueOperator",
|
|
8247
8401
|
"NSKeyValueSetMutationKind",
|
|
8248
8402
|
"NSKeyValueSharedObservers",
|
|
@@ -8273,8 +8427,6 @@ var FOUNDATION_OVERLAY_TYPES = /* @__PURE__ */ new Set([
|
|
|
8273
8427
|
"NSSwappedFloat",
|
|
8274
8428
|
"NSURLRequest",
|
|
8275
8429
|
"NSUbiquitousKeyValueStore",
|
|
8276
|
-
"NSUserActivity",
|
|
8277
|
-
"NSUserActivityDelegate",
|
|
8278
8430
|
"NSValueTransformerName",
|
|
8279
8431
|
"NSXPCCoder",
|
|
8280
8432
|
"NSXPCConnection",
|
|
@@ -8849,14 +9001,15 @@ function foundationOwnerOf(name2) {
|
|
|
8849
9001
|
return "PeachFoundation";
|
|
8850
9002
|
return void 0;
|
|
8851
9003
|
}
|
|
8852
|
-
function swiftSourceAsIOS(source) {
|
|
9004
|
+
function swiftSourceAsIOS(source, swiftPackage) {
|
|
8853
9005
|
const { lineStarts, tokens } = swiftCodeScan(source);
|
|
8854
9006
|
let offset = 0;
|
|
8855
9007
|
const conditioned = source.split("\n").map((line) => {
|
|
8856
9008
|
const start = offset;
|
|
8857
9009
|
offset += line.length + 1;
|
|
8858
9010
|
if (!lineStarts.has(start) || !DIRECTIVE.test(line)) return line;
|
|
8859
|
-
|
|
9011
|
+
const platform = line.replace(OS_IOS, (match) => "true".padEnd(match.length));
|
|
9012
|
+
return swiftPackage === false ? platform.replace(/\bSWIFT_PACKAGE\b/g, (match) => "false".padEnd(match.length)) : platform;
|
|
8860
9013
|
}).join("\n");
|
|
8861
9014
|
let out = "";
|
|
8862
9015
|
let copied = 0;
|
|
@@ -8962,9 +9115,7 @@ function swiftSourceAsIOS(source) {
|
|
|
8962
9115
|
continue;
|
|
8963
9116
|
}
|
|
8964
9117
|
}
|
|
8965
|
-
return
|
|
8966
|
-
lowerNSValueTimeBox(lowerAVAssetURLCluster(out + conditioned.slice(copied)))
|
|
8967
|
-
);
|
|
9118
|
+
return lowerNSValueTimeBox(lowerAVAssetURLCluster(out + conditioned.slice(copied)));
|
|
8968
9119
|
}
|
|
8969
9120
|
function swiftSourceClosure(files, roots) {
|
|
8970
9121
|
const sources = /* @__PURE__ */ new Map();
|
|
@@ -9018,7 +9169,7 @@ function swiftApplicationEntry(file, source) {
|
|
|
9018
9169
|
else if (source[at] === "}") depth--;
|
|
9019
9170
|
else if (depth === 0 && /^@(?:main|UIApplicationMain)\b/.test(source.slice(at)))
|
|
9020
9171
|
return true;
|
|
9021
|
-
else if (depth === 0 &&
|
|
9172
|
+
else if (depth === 0 && import_node_path19.default.basename(file) === "main.swift" && /^UIApplicationMain\s*\(/.test(source.slice(at)))
|
|
9022
9173
|
return true;
|
|
9023
9174
|
}
|
|
9024
9175
|
return false;
|
|
@@ -9487,33 +9638,33 @@ function swiftCodeScan(source) {
|
|
|
9487
9638
|
return { lineStarts: starts, tokens };
|
|
9488
9639
|
}
|
|
9489
9640
|
function prepareSwiftDependency(source, destination) {
|
|
9490
|
-
(0,
|
|
9641
|
+
(0, import_node_fs17.rmSync)(destination, { recursive: true, force: true });
|
|
9491
9642
|
const origins = {};
|
|
9492
9643
|
const gather = (from) => {
|
|
9493
|
-
for (const entry of (0,
|
|
9644
|
+
for (const entry of (0, import_node_fs17.readdirSync)(from, { withFileTypes: true })) {
|
|
9494
9645
|
if (entry.name === ".git" || entry.name === ".build" || entry.name === ".swiftpm")
|
|
9495
9646
|
continue;
|
|
9496
|
-
const file =
|
|
9647
|
+
const file = import_node_path19.default.join(from, entry.name);
|
|
9497
9648
|
if (entry.isDirectory()) gather(file);
|
|
9498
9649
|
else if (entry.isFile() && entry.name.endsWith(".swift"))
|
|
9499
|
-
origins[
|
|
9650
|
+
origins[import_node_path19.default.relative(source, file)] = (0, import_node_fs17.readFileSync)(file, "utf8");
|
|
9500
9651
|
}
|
|
9501
9652
|
};
|
|
9502
9653
|
gather(source);
|
|
9503
|
-
const manifest =
|
|
9504
|
-
const targets = (0,
|
|
9654
|
+
const manifest = import_node_path19.default.join(source, "Package.swift");
|
|
9655
|
+
const targets = (0, import_node_fs17.existsSync)(manifest) ? swiftManifestTargets((0, import_node_fs17.readFileSync)(manifest, "utf8")) : [];
|
|
9505
9656
|
const compiled = compiledSwiftSources(origins, targets);
|
|
9506
9657
|
const copy = (from, to) => {
|
|
9507
|
-
(0,
|
|
9508
|
-
for (const entry of (0,
|
|
9658
|
+
(0, import_node_fs17.mkdirSync)(to, { recursive: true });
|
|
9659
|
+
for (const entry of (0, import_node_fs17.readdirSync)(from, { withFileTypes: true })) {
|
|
9509
9660
|
if (entry.name === ".git" || entry.name === ".build" || entry.name === ".swiftpm")
|
|
9510
9661
|
continue;
|
|
9511
|
-
const file =
|
|
9512
|
-
const target =
|
|
9662
|
+
const file = import_node_path19.default.join(from, entry.name);
|
|
9663
|
+
const target = import_node_path19.default.join(to, entry.name);
|
|
9513
9664
|
if (entry.isDirectory()) copy(file, target);
|
|
9514
9665
|
else if (entry.isFile() && entry.name.endsWith(".swift"))
|
|
9515
|
-
(0,
|
|
9516
|
-
else (0,
|
|
9666
|
+
(0, import_node_fs17.writeFileSync)(target, compiled.get(import_node_path19.default.relative(source, file)));
|
|
9667
|
+
else (0, import_node_fs17.cpSync)(file, target, { verbatimSymlinks: true });
|
|
9517
9668
|
}
|
|
9518
9669
|
};
|
|
9519
9670
|
copy(source, destination);
|
|
@@ -9521,19 +9672,19 @@ function prepareSwiftDependency(source, destination) {
|
|
|
9521
9672
|
var HIDDEN_UNITS = "PeachHiddenUnits";
|
|
9522
9673
|
function clangImportModuleMapFlags(settings, layoutRoot, written, generated) {
|
|
9523
9674
|
const searched = new Set(settings.headerSearchPaths);
|
|
9524
|
-
const directory =
|
|
9675
|
+
const directory = import_node_path19.default.join(layoutRoot, ".build", "peach-clang-modulemaps");
|
|
9525
9676
|
return (settings.moduleMaps ?? []).flatMap((map) => {
|
|
9526
|
-
const headers =
|
|
9527
|
-
if (!(0,
|
|
9528
|
-
const published =
|
|
9529
|
-
if (searched.has(map.headers) && (0,
|
|
9530
|
-
if (!searched.has(map.headers) && (0,
|
|
9677
|
+
const headers = import_node_path19.default.join(layoutRoot, map.headers);
|
|
9678
|
+
if (!(0, import_node_fs17.existsSync)(headers)) return [];
|
|
9679
|
+
const published = import_node_path19.default.join(headers, "module.modulemap");
|
|
9680
|
+
if (searched.has(map.headers) && (0, import_node_fs17.existsSync)(published)) return [];
|
|
9681
|
+
if (!searched.has(map.headers) && (0, import_node_fs17.existsSync)(published))
|
|
9531
9682
|
return [`-fmodule-map-file=${published}`];
|
|
9532
9683
|
const cached = written.get(headers);
|
|
9533
9684
|
if (cached) return [cached];
|
|
9534
|
-
(0,
|
|
9535
|
-
const output =
|
|
9536
|
-
(
|
|
9685
|
+
(0, import_node_fs17.mkdirSync)(directory, { recursive: true });
|
|
9686
|
+
const output = import_node_path19.default.join(directory, `module-${written.size}.modulemap`);
|
|
9687
|
+
writeBuildFile(
|
|
9537
9688
|
output,
|
|
9538
9689
|
swiftPackageClangModuleMap(swiftTargetModuleName(map.module), {
|
|
9539
9690
|
kind: "directory",
|
|
@@ -9546,6 +9697,21 @@ function clangImportModuleMapFlags(settings, layoutRoot, written, generated) {
|
|
|
9546
9697
|
return [flag];
|
|
9547
9698
|
});
|
|
9548
9699
|
}
|
|
9700
|
+
var LIBXML_REFERENCE = /(?:^|\n)[ \t]*#[ \t]*(?:include|import)[ \t]*["<][ \t]*libxml\/|@import[ \t]+libxml2[ \t]*;|(?:^|\n)[ \t]*import[ \t]+libxml2(?![\w.])/;
|
|
9701
|
+
var LIBXML_SOURCE = /\.(?:c|m|mm|cc|cpp|cxx|h|hh|hpp|hxx|swift)$/;
|
|
9702
|
+
function namesLibxml2(input) {
|
|
9703
|
+
const names = (source) => source.includes("libxml") && LIBXML_REFERENCE.test(source);
|
|
9704
|
+
for (const [file, source] of Object.entries(input.files)) {
|
|
9705
|
+
if (LIBXML_SOURCE.test(file) && names(source)) return true;
|
|
9706
|
+
}
|
|
9707
|
+
for (const files of [input.packageFiles, input.projectFiles]) {
|
|
9708
|
+
for (const [file, contents] of Object.entries(files ?? {})) {
|
|
9709
|
+
if (!LIBXML_SOURCE.test(file)) continue;
|
|
9710
|
+
if (names(Buffer.from(contents, "base64").toString("utf8"))) return true;
|
|
9711
|
+
}
|
|
9712
|
+
}
|
|
9713
|
+
return false;
|
|
9714
|
+
}
|
|
9549
9715
|
function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
9550
9716
|
if (input.headerAliases !== void 0 && !isSwiftHeaderAliases(input.headerAliases))
|
|
9551
9717
|
throw new Error("swift compile input has invalid original header aliases");
|
|
@@ -9554,7 +9720,10 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9554
9720
|
if (input.packageFiles !== void 0 && !isSwiftPackageFiles(input.packageFiles))
|
|
9555
9721
|
throw new Error("swift compile input has invalid original package files");
|
|
9556
9722
|
if (input.projectFiles !== void 0 && !isSwiftProjectFiles(input.projectFiles))
|
|
9557
|
-
throw new Error(
|
|
9723
|
+
throw new Error(
|
|
9724
|
+
`swift compile input has invalid project files:
|
|
9725
|
+
${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
9726
|
+
);
|
|
9558
9727
|
const packages = input.packageFiles ? swiftManifestPackages(input.files["Package.swift"] ?? "") : /* @__PURE__ */ new Map();
|
|
9559
9728
|
for (const directory of packages.values())
|
|
9560
9729
|
if (!isSwiftResourcePath(directory) || !Object.hasOwn(input.packageFiles ?? {}, `${directory}/Package.swift`))
|
|
@@ -9571,7 +9740,7 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9571
9740
|
const targets = distribution && compileTargets(input).length === 0 ? [
|
|
9572
9741
|
{
|
|
9573
9742
|
name: "App",
|
|
9574
|
-
path:
|
|
9743
|
+
path: import_node_path19.default.relative(layout.root, layout.sources),
|
|
9575
9744
|
executable: true,
|
|
9576
9745
|
languageMode: 5,
|
|
9577
9746
|
mainActorIsolation: false,
|
|
@@ -9581,7 +9750,7 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9581
9750
|
const distributionExcludes = distribution ? /* @__PURE__ */ new Set([
|
|
9582
9751
|
...swiftSystemLibraryExclusions(input.files, targets, distribution.modules),
|
|
9583
9752
|
...distribution.modules.filter(
|
|
9584
|
-
(name2) =>
|
|
9753
|
+
(name2) => targets.some((target) => target.name === name2)
|
|
9585
9754
|
)
|
|
9586
9755
|
]) : void 0;
|
|
9587
9756
|
const files = /* @__PURE__ */ new Map();
|
|
@@ -9615,24 +9784,24 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9615
9784
|
clangImportedModules.add(name2);
|
|
9616
9785
|
}
|
|
9617
9786
|
}
|
|
9618
|
-
const headerDirectory =
|
|
9787
|
+
const headerDirectory = import_node_path19.default.join(layout.root, ".build", "peach-cxx-headers");
|
|
9619
9788
|
const flattenedHeaders = /* @__PURE__ */ new Set();
|
|
9620
|
-
if ((0,
|
|
9621
|
-
for (const entry of (0,
|
|
9622
|
-
if (entry.isDirectory())
|
|
9623
|
-
(0,
|
|
9789
|
+
if ((0, import_node_fs17.existsSync)(headerDirectory)) {
|
|
9790
|
+
for (const entry of (0, import_node_fs17.readdirSync)(headerDirectory, { withFileTypes: true }))
|
|
9791
|
+
if (entry.isDirectory() && !targets.some((target) => target.name === entry.name))
|
|
9792
|
+
(0, import_node_fs17.rmSync)(import_node_path19.default.join(headerDirectory, entry.name), { recursive: true, force: true });
|
|
9624
9793
|
}
|
|
9625
9794
|
let checkedToolchain;
|
|
9626
9795
|
const nativeToolchain = () => {
|
|
9627
9796
|
if (checkedToolchain) return checkedToolchain;
|
|
9628
|
-
const pin = distribution ?? JSON.parse((0,
|
|
9797
|
+
const pin = distribution ?? JSON.parse((0, import_node_fs17.readFileSync)(import_node_path19.default.join(moduleRoot, "toolchain.json"), "utf8"));
|
|
9629
9798
|
checkedToolchain = swiftToolchain(pin.release, swiftModuleSdk(moduleRoot));
|
|
9630
9799
|
return checkedToolchain;
|
|
9631
9800
|
};
|
|
9632
9801
|
const deploymentTarget = (name2) => input.nativeTargets?.find((value) => value.name === name2)?.deploymentTarget ?? targets.find((value) => value.name === name2)?.iosDeploymentTarget ?? null;
|
|
9633
9802
|
const targetStagedFiles = /* @__PURE__ */ new Map();
|
|
9634
9803
|
const stageTargetFile = (target, file, contents, options) => {
|
|
9635
|
-
const relative =
|
|
9804
|
+
const relative = import_node_path19.default.relative(layout.root, file).split(import_node_path19.default.sep).join(import_node_path19.default.posix.sep);
|
|
9636
9805
|
const prior = files.has(file) ? files.get(file) : Object.hasOwn(input.files, relative) ? input.files[relative] : void 0;
|
|
9637
9806
|
if (!options?.allowExisting && prior !== void 0)
|
|
9638
9807
|
throw new Error(`target ${target} already contains generated output ${relative}`);
|
|
@@ -9661,7 +9830,7 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9661
9830
|
targetStagedFiles.delete(target.name);
|
|
9662
9831
|
if (entries.some(([file]) => isSwiftNativeTranslationUnit(file)) && (swift || input.nativeTargets?.some((value) => value.name === target.name))) {
|
|
9663
9832
|
if (!swift) {
|
|
9664
|
-
const unprepared =
|
|
9833
|
+
const unprepared = import_node_path19.default.join(
|
|
9665
9834
|
layout.root,
|
|
9666
9835
|
target.path,
|
|
9667
9836
|
"PeachUnprepared.generated.swift"
|
|
@@ -9676,7 +9845,7 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9676
9845
|
native.set(target.name, {
|
|
9677
9846
|
mixed: true,
|
|
9678
9847
|
path: target.path,
|
|
9679
|
-
includeDirectory:
|
|
9848
|
+
includeDirectory: import_node_path19.default.join(layout.root, target.path, "include"),
|
|
9680
9849
|
sources: [],
|
|
9681
9850
|
lateSources: [],
|
|
9682
9851
|
exclude: entries.filter(([file]) => !file.endsWith(".swift") && !file.endsWith(".metal")).map(([file]) => file.slice(prefix.length))
|
|
@@ -9693,6 +9862,8 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9693
9862
|
};
|
|
9694
9863
|
for (const settings of input.nativeTargets ?? []) {
|
|
9695
9864
|
for (const file of settings.headers) {
|
|
9865
|
+
const destination = import_node_path19.default.join(layout.root, file);
|
|
9866
|
+
if (files.has(destination)) continue;
|
|
9696
9867
|
const interfaceModule = /(?:^|\/)(\w+)-Swift\.h$/.exec(file)?.[1];
|
|
9697
9868
|
const frameworkHeader = !interfaceModule && /(?:^|\/)(\w+)\.framework\/Headers\/[\w+.-]+\.h$/.exec(file)?.[1];
|
|
9698
9869
|
const frameworkInterface = frameworkHeader ? moduleInterface(frameworkHeader) : null;
|
|
@@ -9704,17 +9875,15 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9704
9875
|
frameworkInterface.declared,
|
|
9705
9876
|
`#import <${frameworkHeader}/${frameworkHeader}-Swift.h>`
|
|
9706
9877
|
) : rawContents;
|
|
9707
|
-
|
|
9708
|
-
(0, import_node_fs16.mkdirSync)(import_node_path17.default.dirname(destination), { recursive: true });
|
|
9709
|
-
(0, import_node_fs16.writeFileSync)(destination, contents);
|
|
9878
|
+
writeBuildFile(destination, contents);
|
|
9710
9879
|
files.set(destination, contents);
|
|
9711
9880
|
}
|
|
9712
9881
|
if (settings.flattensPublicHeaders)
|
|
9713
9882
|
for (const header of settings.publicHeaders) {
|
|
9714
|
-
const destination =
|
|
9883
|
+
const destination = import_node_path19.default.join(
|
|
9715
9884
|
headerDirectory,
|
|
9716
9885
|
settings.name,
|
|
9717
|
-
|
|
9886
|
+
import_node_path19.default.basename(header)
|
|
9718
9887
|
);
|
|
9719
9888
|
if (flattenedHeaders.has(destination))
|
|
9720
9889
|
throw new Error(`duplicate product header ${destination}`);
|
|
@@ -9722,9 +9891,9 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9722
9891
|
}
|
|
9723
9892
|
}
|
|
9724
9893
|
const nativeTargets = input.nativeTargets ?? [];
|
|
9725
|
-
const fromInputRoot = (file) => file.startsWith(`${SWIFT_NATIVE_INPUT_ROOT}/`) ?
|
|
9894
|
+
const fromInputRoot = (file) => file.startsWith(`${SWIFT_NATIVE_INPUT_ROOT}/`) ? import_node_path19.default.join(layout.root, file.slice(SWIFT_NATIVE_INPUT_ROOT.length + 1)) : file;
|
|
9726
9895
|
const headerSearch = writeXcodeHeaderSearch(
|
|
9727
|
-
|
|
9896
|
+
import_node_path19.default.join(layout.root, ".build", "peach-xcode-headers"),
|
|
9728
9897
|
nativeTargets.map((settings) => ({
|
|
9729
9898
|
headerMaps: settings.headerMaps.map((map) => ({
|
|
9730
9899
|
flag: map.flag,
|
|
@@ -9735,22 +9904,22 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9735
9904
|
})),
|
|
9736
9905
|
productHeaders: Object.fromEntries([
|
|
9737
9906
|
...Object.entries(settings.productHeaders).map(([product, file]) => [
|
|
9738
|
-
|
|
9739
|
-
|
|
9907
|
+
import_node_path19.default.join(layout.root, product),
|
|
9908
|
+
import_node_path19.default.join(layout.root, file)
|
|
9740
9909
|
]),
|
|
9741
9910
|
...settings.flattensPublicHeaders ? settings.publicHeaders.map((header) => [
|
|
9742
|
-
|
|
9743
|
-
|
|
9911
|
+
import_node_path19.default.join(headerDirectory, settings.name, import_node_path19.default.basename(header)),
|
|
9912
|
+
import_node_path19.default.join(layout.root, header)
|
|
9744
9913
|
]) : []
|
|
9745
9914
|
]),
|
|
9746
9915
|
userHeaderSearchPaths: settings.userHeaderSearchPaths.map(
|
|
9747
|
-
(directory) =>
|
|
9916
|
+
(directory) => import_node_path19.default.join(layout.root, directory)
|
|
9748
9917
|
)
|
|
9749
9918
|
})),
|
|
9750
9919
|
Object.fromEntries(
|
|
9751
9920
|
Object.entries(input.headerAliases ?? {}).map(([alias, file]) => [
|
|
9752
|
-
|
|
9753
|
-
|
|
9921
|
+
import_node_path19.default.join(layout.root, alias),
|
|
9922
|
+
import_node_path19.default.join(layout.root, file)
|
|
9754
9923
|
])
|
|
9755
9924
|
)
|
|
9756
9925
|
);
|
|
@@ -9778,7 +9947,7 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9778
9947
|
if (producer && targets.some((value) => value.name === producer))
|
|
9779
9948
|
producers2.add(producer);
|
|
9780
9949
|
const local = [
|
|
9781
|
-
|
|
9950
|
+
import_node_path19.default.posix.join(import_node_path19.default.posix.dirname(file), include2),
|
|
9782
9951
|
`${includes}${include2}`
|
|
9783
9952
|
].find((candidate) => input.files[candidate] !== void 0);
|
|
9784
9953
|
if (local) {
|
|
@@ -9809,15 +9978,9 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9809
9978
|
throw new Error(
|
|
9810
9979
|
`mixed target ${target.name} requires its original native target settings; SwiftPM does not compile mixed source targets`
|
|
9811
9980
|
);
|
|
9812
|
-
const headers = settings.headers;
|
|
9813
9981
|
const roots2 = settings.bridgingHeader ? [settings.bridgingHeader] : entries.some(([file]) => file.endsWith(".swift")) || importedModules.has(swiftTargetModuleName(target.name)) ? settings.publicHeaders : [];
|
|
9814
|
-
for (const file of headers) {
|
|
9815
|
-
const destination = import_node_path17.default.join(layout.root, file);
|
|
9816
|
-
(0, import_node_fs16.mkdirSync)(import_node_path17.default.dirname(destination), { recursive: true });
|
|
9817
|
-
(0, import_node_fs16.writeFileSync)(destination, files.get(destination) ?? input.files[file]);
|
|
9818
|
-
}
|
|
9819
9982
|
const search = [.../* @__PURE__ */ new Set([...settings?.headerSearchPaths ?? []])].flatMap(
|
|
9820
|
-
(dir) => ["-I",
|
|
9983
|
+
(dir) => ["-I", import_node_path19.default.join(layout.root, dir)]
|
|
9821
9984
|
);
|
|
9822
9985
|
const toolchainBin = nativeToolchain();
|
|
9823
9986
|
const stageFlags = (flags2, sdkInclude2) => flags2.map(
|
|
@@ -9829,24 +9992,34 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9829
9992
|
...search,
|
|
9830
9993
|
...(settings?.frameworkSearchPaths ?? []).flatMap((dir) => [
|
|
9831
9994
|
"-F",
|
|
9832
|
-
|
|
9995
|
+
import_node_path19.default.join(layout.root, dir)
|
|
9833
9996
|
]),
|
|
9834
9997
|
"-I",
|
|
9835
9998
|
headerDirectory
|
|
9836
9999
|
];
|
|
9837
|
-
const importOriginalFlags = settings.flattensPublicHeaders ?
|
|
10000
|
+
const importOriginalFlags = settings.flattensPublicHeaders ? [
|
|
10001
|
+
...settings.importerFlags,
|
|
10002
|
+
...headerSearch.flags[nativeTargets.indexOf(settings)],
|
|
10003
|
+
...search,
|
|
10004
|
+
...settings.frameworkSearchPaths.flatMap((dir) => [
|
|
10005
|
+
"-F",
|
|
10006
|
+
import_node_path19.default.join(layout.root, dir)
|
|
10007
|
+
]),
|
|
10008
|
+
"-I",
|
|
10009
|
+
headerDirectory
|
|
10010
|
+
] : (() => {
|
|
9838
10011
|
const kept = [];
|
|
9839
|
-
for (let index = 0; index < settings.
|
|
9840
|
-
const flag = settings.
|
|
10012
|
+
for (let index = 0; index < settings.importerFlags.length; index++) {
|
|
10013
|
+
const flag = settings.importerFlags[index];
|
|
9841
10014
|
if (flag === "-I" || flag === "-iquote") {
|
|
9842
|
-
const directory = settings.
|
|
9843
|
-
if (directory === void 0 || !
|
|
10015
|
+
const directory = settings.importerFlags[index + 1];
|
|
10016
|
+
if (directory === void 0 || !import_node_path19.default.isAbsolute(directory)) {
|
|
9844
10017
|
index++;
|
|
9845
10018
|
continue;
|
|
9846
10019
|
}
|
|
9847
10020
|
}
|
|
9848
10021
|
const joined = /^-(?:I|iquote)(.+)$/.exec(flag);
|
|
9849
|
-
if (joined && !
|
|
10022
|
+
if (joined && !import_node_path19.default.isAbsolute(joined[1])) continue;
|
|
9850
10023
|
kept.push(flag);
|
|
9851
10024
|
}
|
|
9852
10025
|
return [
|
|
@@ -9855,13 +10028,13 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9855
10028
|
...search,
|
|
9856
10029
|
...(settings?.frameworkSearchPaths ?? []).flatMap((dir) => [
|
|
9857
10030
|
"-F",
|
|
9858
|
-
|
|
10031
|
+
import_node_path19.default.join(layout.root, dir)
|
|
9859
10032
|
]),
|
|
9860
10033
|
"-I",
|
|
9861
10034
|
headerDirectory
|
|
9862
10035
|
];
|
|
9863
10036
|
})();
|
|
9864
|
-
const sdkInclude =
|
|
10037
|
+
const sdkInclude = import_node_path19.default.join(
|
|
9865
10038
|
swiftSdkPaths(moduleRoot, toolchainBin).sysroot,
|
|
9866
10039
|
"darwin/usr/include"
|
|
9867
10040
|
);
|
|
@@ -9872,7 +10045,7 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9872
10045
|
generatedModuleMaps
|
|
9873
10046
|
);
|
|
9874
10047
|
const flags = [...stageFlags(originalFlags, sdkInclude), ...dependencyModuleMaps];
|
|
9875
|
-
const prefixHeader = settings?.prefixHeader ? ["-include",
|
|
10048
|
+
const prefixHeader = settings?.prefixHeader ? ["-include", import_node_path19.default.join(layout.root, settings.prefixHeader)] : [];
|
|
9876
10049
|
const bundleName = entries.some(([file]) => file.endsWith(".swift")) ? void 0 : swiftObjCResourceBundleName({
|
|
9877
10050
|
target: target.name,
|
|
9878
10051
|
path: target.path,
|
|
@@ -9883,7 +10056,7 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9883
10056
|
bundles: input.resourceBundles
|
|
9884
10057
|
});
|
|
9885
10058
|
const accessor = bundleName === void 0 ? void 0 : swiftObjCResourceAccessor(bundleName);
|
|
9886
|
-
const accessorHeader =
|
|
10059
|
+
const accessorHeader = import_node_path19.default.join(
|
|
9887
10060
|
layout.root,
|
|
9888
10061
|
target.path,
|
|
9889
10062
|
OBJC_RESOURCE_ACCESSOR_HEADER
|
|
@@ -9894,7 +10067,7 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9894
10067
|
const nativeUnits = accessor ? [...units, [accessorUnit, accessor.body]] : units;
|
|
9895
10068
|
const unitSource = (file) => {
|
|
9896
10069
|
const relative = file.slice(prefix.length);
|
|
9897
|
-
return relative.split("/").some((part) => part.startsWith(".")) ?
|
|
10070
|
+
return relative.split("/").some((part) => part.startsWith(".")) ? import_node_path19.default.posix.join(HIDDEN_UNITS, relative.replaceAll(/(^|\/)\./g, "$1%2E")) : relative;
|
|
9898
10071
|
};
|
|
9899
10072
|
const accessorFlags = accessor ? ["-include", accessorHeader] : [];
|
|
9900
10073
|
const nativeC = !entries.some(([file]) => file.endsWith(".swift"));
|
|
@@ -9924,20 +10097,20 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9924
10097
|
)
|
|
9925
10098
|
].sort();
|
|
9926
10099
|
const topHeaders = settings.publicHeaders.filter(
|
|
9927
|
-
(file) =>
|
|
10100
|
+
(file) => import_node_path19.default.posix.dirname(file) === headerDir
|
|
9928
10101
|
);
|
|
9929
10102
|
if (input.files[custom] !== void 0) {
|
|
9930
10103
|
swiftpmModuleMap = { path: custom, contents: input.files[custom] };
|
|
9931
10104
|
} else if (input.files[umbrella] !== void 0) {
|
|
9932
10105
|
if (siblingDirs.length > 0)
|
|
9933
10106
|
throw new Error(
|
|
9934
|
-
`target ${target.name} has invalid header layout: umbrella header found at '${
|
|
10107
|
+
`target ${target.name} has invalid header layout: umbrella header found at '${import_node_path19.default.join(layout.root, umbrella)}', but directories exist next to it: ${siblingDirs.map((name2) => import_node_path19.default.join(layout.root, headerDir, name2)).join(", ")}; consider removing them`
|
|
9935
10108
|
);
|
|
9936
10109
|
swiftpmModuleMap = {
|
|
9937
10110
|
path: custom,
|
|
9938
10111
|
contents: swiftPackageClangModuleMap(moduleName, {
|
|
9939
10112
|
kind: "header",
|
|
9940
|
-
path:
|
|
10113
|
+
path: import_node_path19.default.join(layout.root, umbrella)
|
|
9941
10114
|
})
|
|
9942
10115
|
};
|
|
9943
10116
|
} else if (input.files[nestedUmbrella] !== void 0 && siblingDirs.length === 1 && siblingDirs[0] === moduleName && topHeaders.length === 0) {
|
|
@@ -9945,7 +10118,7 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9945
10118
|
path: custom,
|
|
9946
10119
|
contents: swiftPackageClangModuleMap(moduleName, {
|
|
9947
10120
|
kind: "header",
|
|
9948
|
-
path:
|
|
10121
|
+
path: import_node_path19.default.join(layout.root, nestedUmbrella)
|
|
9949
10122
|
})
|
|
9950
10123
|
};
|
|
9951
10124
|
} else {
|
|
@@ -9953,12 +10126,12 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9953
10126
|
path: custom,
|
|
9954
10127
|
contents: swiftPackageClangModuleMap(moduleName, {
|
|
9955
10128
|
kind: "directory",
|
|
9956
|
-
path:
|
|
10129
|
+
path: import_node_path19.default.join(layout.root, headerDir)
|
|
9957
10130
|
})
|
|
9958
10131
|
};
|
|
9959
10132
|
}
|
|
9960
10133
|
}
|
|
9961
|
-
const modulemap = (originalModuleMap ? originalModuleMap[0].endsWith("/Modules/module.modulemap") ? originalModuleMap[0] : originalModuleMap[1] : void 0) ?? swiftpmModuleMap?.path ?? packageModuleMap?.[0] ??
|
|
10134
|
+
const modulemap = (originalModuleMap ? originalModuleMap[0].endsWith("/Modules/module.modulemap") ? originalModuleMap[0] : originalModuleMap[1] : void 0) ?? swiftpmModuleMap?.path ?? packageModuleMap?.[0] ?? import_node_path19.default.posix.join(
|
|
9962
10135
|
".build",
|
|
9963
10136
|
"peach-objc-originals",
|
|
9964
10137
|
target.name,
|
|
@@ -9966,49 +10139,50 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9966
10139
|
);
|
|
9967
10140
|
const moduleContents = originalModuleMap ? input.files[originalModuleMap[1]] : swiftpmModuleMap?.contents ?? packageModuleMap?.[1] ?? swiftObjCModuleMap(
|
|
9968
10141
|
swiftTargetModuleName(target.name),
|
|
9969
|
-
roots2.map((file) =>
|
|
10142
|
+
roots2.map((file) => import_node_path19.default.join(layout.root, file))
|
|
9970
10143
|
);
|
|
9971
10144
|
if (moduleContents === void 0)
|
|
9972
10145
|
throw new Error("missing original module map " + modulemap);
|
|
9973
|
-
stageTargetFile(target.name,
|
|
10146
|
+
stageTargetFile(target.name, import_node_path19.default.join(layout.root, modulemap), moduleContents, {
|
|
9974
10147
|
allowExisting: true
|
|
9975
10148
|
});
|
|
9976
|
-
if (nativeC &&
|
|
10149
|
+
if (nativeC && import_node_path19.default.posix.basename(modulemap) !== "module.modulemap") {
|
|
9977
10150
|
stageTargetFile(
|
|
9978
10151
|
target.name,
|
|
9979
|
-
|
|
9980
|
-
`extern module ${swiftTargetModuleName(target.name)} ${JSON.stringify(
|
|
10152
|
+
import_node_path19.default.join(layout.root, import_node_path19.default.posix.dirname(modulemap), "module.modulemap"),
|
|
10153
|
+
`extern module ${swiftTargetModuleName(target.name)} ${JSON.stringify(import_node_path19.default.join(layout.root, modulemap))}
|
|
9981
10154
|
`
|
|
9982
10155
|
);
|
|
9983
10156
|
}
|
|
9984
10157
|
const importFlags = [
|
|
9985
10158
|
...swiftClangImporterFlags(stageFlags(importOriginalFlags, sdkInclude)),
|
|
9986
|
-
"-fmodule-map-file=" +
|
|
10159
|
+
"-fmodule-map-file=" + import_node_path19.default.join(layout.root, modulemap),
|
|
9987
10160
|
...dependencyModuleMaps
|
|
9988
10161
|
];
|
|
9989
10162
|
const groups = /* @__PURE__ */ new Map();
|
|
9990
10163
|
for (const [file, contents] of nativeUnits) {
|
|
9991
10164
|
const origin = settings?.sourceDirectories[file];
|
|
9992
10165
|
if (origin) {
|
|
9993
|
-
const original =
|
|
9994
|
-
(0,
|
|
10166
|
+
const original = import_node_path19.default.join(layout.root, origin, import_node_path19.default.posix.basename(file));
|
|
10167
|
+
(0, import_node_fs17.mkdirSync)(import_node_path19.default.dirname(original), { recursive: true });
|
|
9995
10168
|
stageTargetFile(target.name, original, contents, { allowExisting: true });
|
|
9996
10169
|
}
|
|
9997
10170
|
const source = unitSource(file);
|
|
9998
10171
|
if (source !== file.slice(prefix.length))
|
|
9999
10172
|
stageTargetFile(
|
|
10000
10173
|
target.name,
|
|
10001
|
-
|
|
10174
|
+
import_node_path19.default.join(layout.root, target.path, source),
|
|
10002
10175
|
contents,
|
|
10003
10176
|
{
|
|
10004
10177
|
allowExisting: true
|
|
10005
10178
|
}
|
|
10006
10179
|
);
|
|
10180
|
+
const quoteFlags = origin ? ["-iquote", import_node_path19.default.join(layout.root, origin)] : [];
|
|
10007
10181
|
const perFile = [
|
|
10008
|
-
|
|
10182
|
+
.../\.mm?$/.test(file) ? ["-fobjc-exceptions"] : [],
|
|
10009
10183
|
...stageFlags(
|
|
10010
10184
|
settings?.fileFlags[file] ?? [],
|
|
10011
|
-
|
|
10185
|
+
import_node_path19.default.join(
|
|
10012
10186
|
swiftSdkPaths(moduleRoot, toolchainBin).sysroot,
|
|
10013
10187
|
"darwin/usr/include"
|
|
10014
10188
|
)
|
|
@@ -10016,11 +10190,24 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
10016
10190
|
];
|
|
10017
10191
|
const cxx = /\.(?:cc|cpp|cxx|mm)$/.test(file);
|
|
10018
10192
|
const moduleFlag = perFile.some((flag) => flag.startsWith("-fmodule-name=")) ? [] : [`-fmodule-name=${swiftTargetModuleName(target.name)}`];
|
|
10019
|
-
const identity = (0, import_node_crypto8.createHash)("sha256").update(
|
|
10193
|
+
const identity = (0, import_node_crypto8.createHash)("sha256").update(
|
|
10194
|
+
JSON.stringify([
|
|
10195
|
+
cxx,
|
|
10196
|
+
quoteFlags,
|
|
10197
|
+
perFile,
|
|
10198
|
+
(consumers.get(file)?.size ?? 0) > 0
|
|
10199
|
+
])
|
|
10200
|
+
).digest("hex").slice(0, 12);
|
|
10201
|
+
const name2 = `${target.name}${nativeC ? "Native" : "Swift"}Implementation_${identity}`;
|
|
10202
|
+
const groupPath = import_node_path19.default.posix.join("PeachNativeSources", name2);
|
|
10203
|
+
const sourceIdentity = `-ffile-prefix-map=${import_node_path19.default.join(layout.root, groupPath)}=${import_node_path19.default.join(layout.root, target.path)}`;
|
|
10020
10204
|
const group = groups.get(identity) ?? {
|
|
10021
|
-
name:
|
|
10205
|
+
name: name2,
|
|
10206
|
+
path: groupPath,
|
|
10022
10207
|
sources: [],
|
|
10023
10208
|
flags: [
|
|
10209
|
+
...quoteFlags,
|
|
10210
|
+
sourceIdentity,
|
|
10024
10211
|
...flags,
|
|
10025
10212
|
...prefixHeader,
|
|
10026
10213
|
...accessorFlags,
|
|
@@ -10028,12 +10215,14 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
10028
10215
|
...moduleFlag
|
|
10029
10216
|
],
|
|
10030
10217
|
cxxFlags: [
|
|
10218
|
+
...quoteFlags,
|
|
10219
|
+
sourceIdentity,
|
|
10031
10220
|
...flags,
|
|
10032
10221
|
...prefixHeader,
|
|
10033
10222
|
...accessorFlags,
|
|
10034
10223
|
...stageFlags(
|
|
10035
10224
|
cxx ? settings.cxxFlags : [],
|
|
10036
|
-
|
|
10225
|
+
import_node_path19.default.join(
|
|
10037
10226
|
swiftSdkPaths(moduleRoot, toolchainBin).sysroot,
|
|
10038
10227
|
"darwin/usr/include"
|
|
10039
10228
|
)
|
|
@@ -10042,6 +10231,18 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
10042
10231
|
...moduleFlag
|
|
10043
10232
|
]
|
|
10044
10233
|
};
|
|
10234
|
+
stageTargetFile(
|
|
10235
|
+
target.name,
|
|
10236
|
+
import_node_path19.default.join(layout.root, group.path, source),
|
|
10237
|
+
contents
|
|
10238
|
+
);
|
|
10239
|
+
stageTargetFile(
|
|
10240
|
+
target.name,
|
|
10241
|
+
import_node_path19.default.join(layout.root, group.path, "include/module.modulemap"),
|
|
10242
|
+
`module ${swiftTargetModuleName(group.name)} { export * }
|
|
10243
|
+
`,
|
|
10244
|
+
{ allowExisting: true }
|
|
10245
|
+
);
|
|
10045
10246
|
group.sources.push(source);
|
|
10046
10247
|
groups.set(identity, group);
|
|
10047
10248
|
}
|
|
@@ -10049,7 +10250,7 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
10049
10250
|
stageTargetFile(target.name, accessorHeader, accessor.header);
|
|
10050
10251
|
stageTargetFile(
|
|
10051
10252
|
target.name,
|
|
10052
|
-
|
|
10253
|
+
import_node_path19.default.join(layout.root, accessorUnit),
|
|
10053
10254
|
accessor.body
|
|
10054
10255
|
);
|
|
10055
10256
|
}
|
|
@@ -10064,12 +10265,13 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
10064
10265
|
].sort();
|
|
10065
10266
|
native.set(target.name, {
|
|
10066
10267
|
path: target.path,
|
|
10067
|
-
includeDirectory:
|
|
10268
|
+
includeDirectory: import_node_path19.default.dirname(import_node_path19.default.join(layout.root, modulemap)),
|
|
10068
10269
|
importFlags,
|
|
10069
10270
|
sources: nativeUnits.map(([file]) => unitSource(file)),
|
|
10070
10271
|
lateSources: implementations.flatMap((group) => group.sources),
|
|
10071
10272
|
exclude: [],
|
|
10072
10273
|
clang: {
|
|
10274
|
+
path: owner?.path ?? target.path,
|
|
10073
10275
|
modulemap,
|
|
10074
10276
|
sources: owner?.sources ?? [],
|
|
10075
10277
|
flags: owner?.flags ?? flags,
|
|
@@ -10080,17 +10282,29 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
10080
10282
|
late: { name: `${target.name}NativeImplementation`, producers: producers2 }
|
|
10081
10283
|
} : {}
|
|
10082
10284
|
});
|
|
10285
|
+
if (owner) {
|
|
10286
|
+
const exportedModule = moduleMapName(moduleContents.toString());
|
|
10287
|
+
if (!exportedModule)
|
|
10288
|
+
throw new Error(`original module map declares no module: ${modulemap}`);
|
|
10289
|
+
stageTargetFile(
|
|
10290
|
+
target.name,
|
|
10291
|
+
import_node_path19.default.join(layout.root, owner.path, "include/module.modulemap"),
|
|
10292
|
+
`extern module ${exportedModule} ${JSON.stringify(import_node_path19.default.join(layout.root, modulemap))}
|
|
10293
|
+
`,
|
|
10294
|
+
{ allowExisting: true }
|
|
10295
|
+
);
|
|
10296
|
+
}
|
|
10083
10297
|
continue;
|
|
10084
10298
|
}
|
|
10085
|
-
const implementationHeaders =
|
|
10299
|
+
const implementationHeaders = import_node_path19.default.posix.join(
|
|
10086
10300
|
".build",
|
|
10087
10301
|
"peach-objc-implementations",
|
|
10088
10302
|
target.name
|
|
10089
10303
|
);
|
|
10090
|
-
const include2 =
|
|
10304
|
+
const include2 = import_node_path19.default.join(layout.root, implementationHeaders);
|
|
10091
10305
|
stageTargetFile(
|
|
10092
10306
|
target.name,
|
|
10093
|
-
|
|
10307
|
+
import_node_path19.default.join(include2, "module.modulemap"),
|
|
10094
10308
|
`module ${target.name}ImplementationDeclarations { export * }
|
|
10095
10309
|
`
|
|
10096
10310
|
);
|
|
@@ -10098,10 +10312,9 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
10098
10312
|
mixed: true,
|
|
10099
10313
|
path: target.path,
|
|
10100
10314
|
includeDirectory: include2,
|
|
10101
|
-
implementationHeaders,
|
|
10102
10315
|
importFlags,
|
|
10103
10316
|
swiftFlags: [
|
|
10104
|
-
...settings.bridgingHeader ? ["-import-objc-header",
|
|
10317
|
+
...settings.bridgingHeader ? ["-import-objc-header", import_node_path19.default.join(layout.root, settings.bridgingHeader)] : roots2.length ? ["-import-underlying-module"] : [],
|
|
10105
10318
|
...importFlags.flatMap((flag) => ["-Xcc", flag])
|
|
10106
10319
|
],
|
|
10107
10320
|
sources: nativeUnits.map(([file]) => unitSource(file)),
|
|
@@ -10131,7 +10344,7 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
10131
10344
|
}
|
|
10132
10345
|
native.set(target.name, {
|
|
10133
10346
|
path: target.path,
|
|
10134
|
-
includeDirectory:
|
|
10347
|
+
includeDirectory: import_node_path19.default.join(layout.root, includes),
|
|
10135
10348
|
sources: units.map(([file]) => file.slice(prefix.length)),
|
|
10136
10349
|
lateSources: late.map(([file]) => file.slice(prefix.length)),
|
|
10137
10350
|
...late.length > 0 ? {
|
|
@@ -10149,7 +10362,7 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
10149
10362
|
([file]) => file.startsWith(includes) && /\.(?:h|hpp|hh|hxx)$/.test(file) && consumers.get(file).size === 0
|
|
10150
10363
|
);
|
|
10151
10364
|
files.set(
|
|
10152
|
-
|
|
10365
|
+
import_node_path19.default.join(layout.root, includes, "module.modulemap"),
|
|
10153
10366
|
[
|
|
10154
10367
|
`module ${target.name} {`,
|
|
10155
10368
|
...roots.map(
|
|
@@ -10164,14 +10377,14 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
10164
10377
|
for (const map of generatedModuleMaps)
|
|
10165
10378
|
if (files.has(map.published) || Object.hasOwn(
|
|
10166
10379
|
input.files,
|
|
10167
|
-
|
|
10380
|
+
import_node_path19.default.relative(layout.root, map.published).split(import_node_path19.default.sep).join(import_node_path19.default.posix.sep)
|
|
10168
10381
|
))
|
|
10169
|
-
(
|
|
10382
|
+
writeBuildFile(
|
|
10170
10383
|
map.output,
|
|
10171
10384
|
`extern module ${map.module} ${JSON.stringify(map.published)}
|
|
10172
10385
|
`
|
|
10173
10386
|
);
|
|
10174
|
-
if (native.size > 0) (0,
|
|
10387
|
+
if (native.size > 0) (0, import_node_fs17.mkdirSync)(headerDirectory, { recursive: true });
|
|
10175
10388
|
const headerAliasFlags = Object.keys(input.headerAliases ?? {}).length > 0 ? ["-ivfsoverlay", headerSearch.files[0]] : [];
|
|
10176
10389
|
const nativeHeaderFlags = [...headerAliasFlags];
|
|
10177
10390
|
const originalMaps = /* @__PURE__ */ new Map();
|
|
@@ -10192,10 +10405,10 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
10192
10405
|
[...native.values()].flatMap((value) => value.late?.producers ?? [])
|
|
10193
10406
|
)) {
|
|
10194
10407
|
files.set(
|
|
10195
|
-
|
|
10408
|
+
import_node_path19.default.join(headerDirectory, name2, name2 + "-Swift.h"),
|
|
10196
10409
|
'#include "../' + name2 + '-Swift.h"\n'
|
|
10197
10410
|
);
|
|
10198
|
-
const modulemap =
|
|
10411
|
+
const modulemap = import_node_path19.default.join(
|
|
10199
10412
|
layout.root,
|
|
10200
10413
|
".build",
|
|
10201
10414
|
"peach-objc-swift-headers",
|
|
@@ -10204,16 +10417,23 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
10204
10417
|
);
|
|
10205
10418
|
const moduleName = swiftTargetModuleName(name2);
|
|
10206
10419
|
const originalMap = originalMaps.get(moduleName);
|
|
10420
|
+
const originalTokens = originalMap ? moduleMapTokens(input.files[originalMap]) : [];
|
|
10421
|
+
if (originalMap && originalTokens.some(
|
|
10422
|
+
(token, index) => token === "module" && (originalTokens[index + 1] === "Swift" || originalTokens[index + 1] === `${moduleName}.Swift`)
|
|
10423
|
+
)) {
|
|
10424
|
+
nativeHeaderFlags.push("-fmodule-map-file=" + import_node_path19.default.join(layout.root, originalMap));
|
|
10425
|
+
continue;
|
|
10426
|
+
}
|
|
10207
10427
|
files.set(
|
|
10208
10428
|
modulemap,
|
|
10209
|
-
originalMap ? `extern module ${moduleName} ${JSON.stringify(
|
|
10429
|
+
originalMap ? `extern module ${moduleName} ${JSON.stringify(import_node_path19.default.join(layout.root, originalMap))}
|
|
10210
10430
|
module ${moduleName}.Swift {
|
|
10211
|
-
header ${JSON.stringify(
|
|
10431
|
+
header ${JSON.stringify(import_node_path19.default.join(headerDirectory, name2 + "-Swift.h"))}
|
|
10212
10432
|
requires objc
|
|
10213
10433
|
}
|
|
10214
10434
|
` : swiftObjCModuleMap(moduleName, [
|
|
10215
|
-
...(input.nativeTargets?.find((target) => target.name === name2)?.publicHeaders ?? []).map((header) =>
|
|
10216
|
-
|
|
10435
|
+
...(input.nativeTargets?.find((target) => target.name === name2)?.publicHeaders ?? []).map((header) => import_node_path19.default.join(layout.root, header)),
|
|
10436
|
+
import_node_path19.default.join(headerDirectory, name2 + "-Swift.h")
|
|
10217
10437
|
])
|
|
10218
10438
|
);
|
|
10219
10439
|
nativeHeaderFlags.push("-fmodule-map-file=" + modulemap);
|
|
@@ -10222,7 +10442,7 @@ module ${moduleName}.Swift {
|
|
|
10222
10442
|
swiftModuleInputFiles(moduleRoot).join("\n")
|
|
10223
10443
|
);
|
|
10224
10444
|
if (!distribution) {
|
|
10225
|
-
modulePlan.update((0,
|
|
10445
|
+
modulePlan.update((0, import_node_fs17.readFileSync)(import_node_path19.default.join(moduleRoot, "Package.swift")));
|
|
10226
10446
|
}
|
|
10227
10447
|
const resourcePlan = (0, import_node_crypto8.createHash)("sha256").update(
|
|
10228
10448
|
JSON.stringify(
|
|
@@ -10270,7 +10490,7 @@ module ${moduleName}.Swift {
|
|
|
10270
10490
|
`;
|
|
10271
10491
|
} else if (mains.length === 0) {
|
|
10272
10492
|
const procedural = entries.filter(
|
|
10273
|
-
([file, source]) =>
|
|
10493
|
+
([file, source]) => import_node_path19.default.basename(file) === "main.swift" && swiftApplicationEntry(file, source)
|
|
10274
10494
|
);
|
|
10275
10495
|
const wrapped = procedural.length === 1 ? wrapUIApplicationMainEntry(procedural[0][1]) : null;
|
|
10276
10496
|
if (wrapped) {
|
|
@@ -10291,7 +10511,7 @@ module ${moduleName}.Swift {
|
|
|
10291
10511
|
`mixed executable ${target.name} requires one typed Swift application entry`
|
|
10292
10512
|
);
|
|
10293
10513
|
files.set(
|
|
10294
|
-
|
|
10514
|
+
import_node_path19.default.join(layout.root, nativeMains[0][0]),
|
|
10295
10515
|
neutralizedNativeMain(nativeMains[0][1])
|
|
10296
10516
|
);
|
|
10297
10517
|
nativeEntry = true;
|
|
@@ -10316,7 +10536,7 @@ module ${moduleName}.Swift {
|
|
|
10316
10536
|
exclude: []
|
|
10317
10537
|
});
|
|
10318
10538
|
files.set(
|
|
10319
|
-
|
|
10539
|
+
import_node_path19.default.join(layout.root, `PeachApplication/${name2}/Entry.swift`),
|
|
10320
10540
|
!nativeEntry ? `import ${swiftTargetModuleName(target.name)}
|
|
10321
10541
|
@main struct __PeachApplicationEntry { @MainActor static func main() { __peachRunApplication() } }
|
|
10322
10542
|
` : `import ${swiftTargetModuleName(target.name)}
|
|
@@ -10328,10 +10548,24 @@ module ${moduleName}.Swift {
|
|
|
10328
10548
|
const nativeImportFlags = /* @__PURE__ */ new Map();
|
|
10329
10549
|
for (const target of targets)
|
|
10330
10550
|
if (headerAliasFlags.length > 0) nativeImportFlags.set(target.name, headerAliasFlags);
|
|
10551
|
+
const nativeHeaderDeclarations = {};
|
|
10552
|
+
for (const [file, source] of Object.entries(input.files)) {
|
|
10553
|
+
const module2 = /(?:^|\/)(\w+)\.framework\/Headers\/(?!.*-Swift\.h$).*\.h$/.exec(
|
|
10554
|
+
file
|
|
10555
|
+
)?.[1];
|
|
10556
|
+
if (!module2 || !swiftTargets.has(module2) || native.has(module2)) continue;
|
|
10557
|
+
const declared = new Set(nativeHeaderDeclarations[module2]);
|
|
10558
|
+
for (const name2 of swiftInterfaceDeclarations(source)) declared.add(name2);
|
|
10559
|
+
for (const match of source.matchAll(
|
|
10560
|
+
/\btypedef\s+(?:NS_ENUM|NS_OPTIONS)\s*\(\s*\w+\s*,\s*(\w+)\b/g
|
|
10561
|
+
))
|
|
10562
|
+
declared.add(match[1]);
|
|
10563
|
+
nativeHeaderDeclarations[module2] = [...declared];
|
|
10564
|
+
}
|
|
10331
10565
|
const nativeFlags = native.size > 0 ? /* @__PURE__ */ new Map() : void 0;
|
|
10332
10566
|
if (nativeFlags) {
|
|
10333
10567
|
const toolchainBin = nativeToolchain();
|
|
10334
|
-
const headers =
|
|
10568
|
+
const headers = import_node_path19.default.join(swiftSdkPaths(moduleRoot, toolchainBin).sysroot, "darwin");
|
|
10335
10569
|
const dependencies2 = swiftTargetDependencies(input.files, targets);
|
|
10336
10570
|
const reachesNative = (name2, seen = /* @__PURE__ */ new Set()) => {
|
|
10337
10571
|
if (native.has(name2)) return true;
|
|
@@ -10359,7 +10593,6 @@ module ${moduleName}.Swift {
|
|
|
10359
10593
|
nativeImportFlags.set(target.name, intake);
|
|
10360
10594
|
nativeFlags.set(target.name, [
|
|
10361
10595
|
...swiftObjCRuntimeFlags,
|
|
10362
|
-
"-fobjc-exceptions",
|
|
10363
10596
|
"-fexceptions",
|
|
10364
10597
|
"-fwasm-exceptions",
|
|
10365
10598
|
// the backend lowers direct setjmp-family calls; -lsetjmp is already
|
|
@@ -10374,10 +10607,10 @@ module ${moduleName}.Swift {
|
|
|
10374
10607
|
if (targets.length === 0 && !prebuilt) {
|
|
10375
10608
|
for (const [file, contents] of Object.entries(input.files)) {
|
|
10376
10609
|
if (file === "Package.swift") continue;
|
|
10377
|
-
files.set(
|
|
10610
|
+
files.set(import_node_path19.default.join(layout.sources, file), compiled.get(file) ?? contents);
|
|
10378
10611
|
}
|
|
10379
|
-
let manifest = (0,
|
|
10380
|
-
|
|
10612
|
+
let manifest = (0, import_node_fs17.readFileSync)(
|
|
10613
|
+
import_node_path19.default.join(moduleRoot, "scripts/contrast-app-Package.swift"),
|
|
10381
10614
|
"utf8"
|
|
10382
10615
|
).replaceAll("__SOOTSIM_SWIFT_PACKAGE__", moduleRoot);
|
|
10383
10616
|
const reactor = ` ${REACTOR_FLAG}`;
|
|
@@ -10421,44 +10654,51 @@ module ${moduleName}.Swift {
|
|
|
10421
10654
|
manifest = manifest.replace(anchor, `${anchor}
|
|
10422
10655
|
${SPRITEKIT_PRODUCT},`);
|
|
10423
10656
|
}
|
|
10424
|
-
files.set(
|
|
10657
|
+
files.set(import_node_path19.default.join(layout.root, "Package.swift"), manifest + moduleFiles);
|
|
10425
10658
|
} else {
|
|
10426
10659
|
const base = layout.multi ? layout.root : layout.sources;
|
|
10427
10660
|
const libraries = /* @__PURE__ */ new Map();
|
|
10428
10661
|
for (const [target, data] of Object.entries(input.libraries ?? {})) {
|
|
10429
10662
|
const bytes = Buffer.from(data, "base64");
|
|
10430
10663
|
const digest = (0, import_node_crypto8.createHash)("sha256").update(bytes).digest("hex");
|
|
10431
|
-
const file =
|
|
10664
|
+
const file = import_node_path19.default.join(layout.root, ".peach-libraries", `lib${target}-${digest}.a`);
|
|
10432
10665
|
files.set(file, bytes);
|
|
10433
10666
|
libraries.set(target, file);
|
|
10434
10667
|
}
|
|
10435
10668
|
for (const [file, contents] of Object.entries(input.files)) {
|
|
10436
10669
|
if (file === "Package.swift") continue;
|
|
10437
|
-
const destination =
|
|
10670
|
+
const destination = import_node_path19.default.join(base, file);
|
|
10438
10671
|
const interfaceModule = /(?:^|\/)(\w+)-Swift\.h$/.exec(file)?.[1];
|
|
10672
|
+
const localInterface = interfaceModule && swiftTargets.has(interfaceModule) ? `#include ${JSON.stringify(
|
|
10673
|
+
import_node_path19.default.relative(
|
|
10674
|
+
import_node_path19.default.dirname(destination),
|
|
10675
|
+
import_node_path19.default.join(headerDirectory, `${interfaceModule}-Swift.h`)
|
|
10676
|
+
).split(import_node_path19.default.sep).join("/")
|
|
10677
|
+
)}
|
|
10678
|
+
` : void 0;
|
|
10439
10679
|
files.set(
|
|
10440
10680
|
destination,
|
|
10441
|
-
compiled.get(file) ?? files.get(destination) ?? (interfaceModule && moduleInterface(interfaceModule)?.header) ?? contents
|
|
10681
|
+
localInterface ?? compiled.get(file) ?? files.get(destination) ?? (interfaceModule && moduleInterface(interfaceModule)?.header) ?? contents
|
|
10442
10682
|
);
|
|
10443
10683
|
}
|
|
10444
10684
|
const manifestTargets = targets.length > 0 ? targets : [
|
|
10445
10685
|
{
|
|
10446
10686
|
name: "App",
|
|
10447
|
-
path:
|
|
10687
|
+
path: import_node_path19.default.relative(layout.root, layout.sources).split(import_node_path19.default.sep).join("/"),
|
|
10448
10688
|
executable: true,
|
|
10449
10689
|
languageMode: 5,
|
|
10450
10690
|
mainActorIsolation: false,
|
|
10451
10691
|
resources: false
|
|
10452
10692
|
}
|
|
10453
10693
|
];
|
|
10454
|
-
const reachesFrameworks = !distribution || Object.entries(input.files).some(
|
|
10694
|
+
const reachesFrameworks = !distribution || swiftImportedModules.has("Foundation") || Object.entries(input.files).some(
|
|
10455
10695
|
([file, source]) => file.endsWith(".swift") && file !== input.entry && file !== "Package.swift" || /\.mm?$/.test(file) || source.includes("dispatch_")
|
|
10456
10696
|
) || [...importedModules].some(
|
|
10457
|
-
(name2) => distribution.modules.includes(name2) && !targets.some((target) => target.name === name2) && !(clangImportedModules.has(name2) && !swiftImportedModules.has(name2) && (0,
|
|
10458
|
-
|
|
10697
|
+
(name2) => distribution.modules.includes(name2) && !targets.some((target) => target.name === name2) && !(clangImportedModules.has(name2) && !swiftImportedModules.has(name2) && (0, import_node_fs17.existsSync)(
|
|
10698
|
+
import_node_path19.default.join(swiftSharedSdkRoot(moduleRoot, true), "usr/include", name2)
|
|
10459
10699
|
))
|
|
10460
10700
|
);
|
|
10461
|
-
const frameworkLink = prebuilt ?
|
|
10701
|
+
const frameworkLink = prebuilt ? import_node_path19.default.join(layout.root, ".peach-framework-objects.rsp") : void 0;
|
|
10462
10702
|
if (prebuilt && frameworkLink) {
|
|
10463
10703
|
const quote = (object) => `"${object.replaceAll("\\", "\\\\").replaceAll('"', '\\"')}"`;
|
|
10464
10704
|
files.set(
|
|
@@ -10469,29 +10709,29 @@ module ${moduleName}.Swift {
|
|
|
10469
10709
|
].join("\n") + "\n"
|
|
10470
10710
|
);
|
|
10471
10711
|
}
|
|
10712
|
+
const moduleSiblings = swiftTargetDependencies(
|
|
10713
|
+
input.files,
|
|
10714
|
+
layout.multi ? manifestTargets : manifestTargets.map((target) => ({ ...target, path: "." }))
|
|
10715
|
+
);
|
|
10716
|
+
if (namesLibxml2(input) && !manifestTargets.some((target) => target.name === "libxml2")) {
|
|
10717
|
+
const executable = manifestTargets.find((target) => target.executable);
|
|
10718
|
+
if (executable) {
|
|
10719
|
+
const reached = moduleSiblings.get(executable.name) ?? [];
|
|
10720
|
+
if (!reached.includes("libxml2"))
|
|
10721
|
+
moduleSiblings.set(executable.name, [...reached, "libxml2"]);
|
|
10722
|
+
}
|
|
10723
|
+
}
|
|
10472
10724
|
files.set(
|
|
10473
|
-
|
|
10725
|
+
import_node_path19.default.join(layout.root, "Package.swift"),
|
|
10474
10726
|
emitSwiftPackageManifest({
|
|
10475
10727
|
root: layout.root,
|
|
10476
10728
|
targets: manifestTargets,
|
|
10477
10729
|
packages,
|
|
10478
10730
|
native,
|
|
10479
|
-
nativeResourceExclusions: [
|
|
10480
|
-
...new Set(
|
|
10481
|
-
swiftImplicitResourcePaths([
|
|
10482
|
-
...Object.keys(input.files),
|
|
10483
|
-
...Object.keys(input.packageFiles ?? {}),
|
|
10484
|
-
...Object.keys(input.projectFiles ?? {})
|
|
10485
|
-
]).map(
|
|
10486
|
-
(file) => /^(.*?\.(?:lproj|xcassets|xcdatamodeld|xcdatamodel|xcmappingmodel))(?:\/|$)/.exec(
|
|
10487
|
-
file
|
|
10488
|
-
)?.[1] ?? file
|
|
10489
|
-
)
|
|
10490
|
-
)
|
|
10491
|
-
],
|
|
10492
10731
|
nativeFlags,
|
|
10493
10732
|
nativeImportFlags,
|
|
10494
10733
|
nativeHeaderFlags,
|
|
10734
|
+
nativeHeaderDeclarations,
|
|
10495
10735
|
objcImplementationModules: new Set(
|
|
10496
10736
|
targets.filter(
|
|
10497
10737
|
(target) => targetEntries(target).some(
|
|
@@ -10503,10 +10743,7 @@ module ${moduleName}.Swift {
|
|
|
10503
10743
|
cxxLanguageStandard: swiftManifestCxxLanguageStandard(
|
|
10504
10744
|
input.files["Package.swift"] ?? ""
|
|
10505
10745
|
),
|
|
10506
|
-
siblings:
|
|
10507
|
-
input.files,
|
|
10508
|
-
layout.multi ? manifestTargets : manifestTargets.map((target) => ({ ...target, path: "." }))
|
|
10509
|
-
),
|
|
10746
|
+
siblings: moduleSiblings,
|
|
10510
10747
|
moduleRoot,
|
|
10511
10748
|
oneModule: input.oneModule,
|
|
10512
10749
|
spriteKit: importsSpriteKit(input.files),
|
|
@@ -10517,7 +10754,7 @@ module ${moduleName}.Swift {
|
|
|
10517
10754
|
),
|
|
10518
10755
|
...reachesFrameworks ? {
|
|
10519
10756
|
distributionLink: {
|
|
10520
|
-
path:
|
|
10757
|
+
path: import_node_path19.default.join(layout.root, ".peach-distribution-objects.rsp"),
|
|
10521
10758
|
files
|
|
10522
10759
|
},
|
|
10523
10760
|
lazyDistribution: input.lazyDistribution
|
|
@@ -10536,15 +10773,15 @@ module ${moduleName}.Swift {
|
|
|
10536
10773
|
);
|
|
10537
10774
|
}
|
|
10538
10775
|
for (const [file, bytes] of Object.entries(input.packageFiles ?? {}))
|
|
10539
|
-
files.set(
|
|
10776
|
+
files.set(import_node_path19.default.join(layout.root, file), Buffer.from(bytes, "base64"));
|
|
10540
10777
|
for (const [file, bytes] of Object.entries(input.projectFiles ?? {})) {
|
|
10541
|
-
const destination =
|
|
10778
|
+
const destination = import_node_path19.default.join(layout.root, file);
|
|
10542
10779
|
if (files.has(destination)) continue;
|
|
10543
10780
|
files.set(destination, Buffer.from(bytes, "base64"));
|
|
10544
10781
|
}
|
|
10545
10782
|
if (input.packageFiles || prebuilt) {
|
|
10546
10783
|
files.set(
|
|
10547
|
-
|
|
10784
|
+
import_node_path19.default.join(layout.root, ".peach-target-toolset.json"),
|
|
10548
10785
|
JSON.stringify({
|
|
10549
10786
|
schemaVersion: "1.0",
|
|
10550
10787
|
...headerAliasFlags.length > 0 ? {
|
|
@@ -10555,7 +10792,7 @@ module ${moduleName}.Swift {
|
|
|
10555
10792
|
extraCLIOptions: [
|
|
10556
10793
|
...headerAliasFlags.flatMap((flag) => ["-Xcc", flag]),
|
|
10557
10794
|
distribution || prebuilt ? "-Isystem" : "-I",
|
|
10558
|
-
distribution ? distributionModulesPath(layout.root, moduleRoot, distributionExcludes) : prebuilt ? prebuilt.modules :
|
|
10795
|
+
distribution ? distributionModulesPath(layout.root, moduleRoot, distributionExcludes) : prebuilt ? prebuilt.modules : import_node_path19.default.join(layout.root, ".build", WASM_TRIPLE, "release", "Modules"),
|
|
10559
10796
|
...prebuilt?.moduleMaps.flatMap((map) => [
|
|
10560
10797
|
"-Xcc",
|
|
10561
10798
|
`-fmodule-map-file=${map}`
|
|
@@ -10584,9 +10821,9 @@ module ${moduleName}.Swift {
|
|
|
10584
10821
|
throw new Error(
|
|
10585
10822
|
`swift resource target ${target.name} has no matching bundle assignment`
|
|
10586
10823
|
);
|
|
10587
|
-
const directory = layout.multi ?
|
|
10824
|
+
const directory = layout.multi ? import_node_path19.default.join(layout.root, target.path) : layout.sources;
|
|
10588
10825
|
files.set(
|
|
10589
|
-
|
|
10826
|
+
import_node_path19.default.join(directory, "ResourceBundleAccessor.generated.swift"),
|
|
10590
10827
|
[
|
|
10591
10828
|
"import Foundation",
|
|
10592
10829
|
"",
|
|
@@ -10603,12 +10840,27 @@ module ${moduleName}.Swift {
|
|
|
10603
10840
|
}
|
|
10604
10841
|
for (const [file, source] of compiled)
|
|
10605
10842
|
if (!Object.hasOwn(input.files, file))
|
|
10606
|
-
files.set(
|
|
10607
|
-
syncSwiftTree(layout.root, files);
|
|
10843
|
+
files.set(import_node_path19.default.join(layout.multi ? layout.root : layout.sources, file), source);
|
|
10608
10844
|
const producers = [
|
|
10609
10845
|
.../* @__PURE__ */ new Set([...[...native.values()].flatMap((value) => value.late?.producers ?? [])])
|
|
10610
10846
|
];
|
|
10611
|
-
const
|
|
10847
|
+
const headerProductTarget = layout.multi && producers.length > 1 ? SWIFT_HEADER_PRODUCTS_TARGET : void 0;
|
|
10848
|
+
if (headerProductTarget)
|
|
10849
|
+
files.set(
|
|
10850
|
+
import_node_path19.default.join(layout.root, headerProductTarget, "Products.swift"),
|
|
10851
|
+
"// dependency targets emit their native compatibility headers.\n"
|
|
10852
|
+
);
|
|
10853
|
+
syncSwiftTree(layout.root, files);
|
|
10854
|
+
const dependencies = new Map(
|
|
10855
|
+
swiftManifestTargets(
|
|
10856
|
+
(0, import_node_fs17.readFileSync)(import_node_path19.default.join(layout.root, "Package.swift"), "utf8")
|
|
10857
|
+
).map((target) => [
|
|
10858
|
+
target.name,
|
|
10859
|
+
(target.dependencies ?? []).flatMap(
|
|
10860
|
+
(dependency) => dependency.kind === "target" ? [dependency.name] : []
|
|
10861
|
+
)
|
|
10862
|
+
])
|
|
10863
|
+
);
|
|
10612
10864
|
const included = /* @__PURE__ */ new Set();
|
|
10613
10865
|
const include = (name2) => {
|
|
10614
10866
|
if (included.has(name2)) return;
|
|
@@ -10618,7 +10870,14 @@ module ${moduleName}.Swift {
|
|
|
10618
10870
|
for (const producer of producers)
|
|
10619
10871
|
for (const dependency of dependencies.get(producer) ?? []) include(dependency);
|
|
10620
10872
|
return {
|
|
10621
|
-
headerProducers:
|
|
10873
|
+
headerProducers: [
|
|
10874
|
+
.../* @__PURE__ */ new Set([
|
|
10875
|
+
...Object.keys(nativeHeaderDeclarations),
|
|
10876
|
+
...producers.filter((name2) => !included.has(name2))
|
|
10877
|
+
])
|
|
10878
|
+
],
|
|
10879
|
+
nativeHeaderDeclarations,
|
|
10880
|
+
headerProductTarget,
|
|
10622
10881
|
targetFailures
|
|
10623
10882
|
};
|
|
10624
10883
|
}
|
|
@@ -10639,17 +10898,17 @@ function outputOf(error) {
|
|
|
10639
10898
|
return error instanceof Error ? error.message : String(error);
|
|
10640
10899
|
}
|
|
10641
10900
|
function builtArtifact(layout) {
|
|
10642
|
-
const binDir =
|
|
10643
|
-
const manifest = (0,
|
|
10901
|
+
const binDir = import_node_path19.default.join(layout.root, ".build", WASM_TRIPLE, "release");
|
|
10902
|
+
const manifest = (0, import_node_fs17.readFileSync)(import_node_path19.default.join(layout.root, "Package.swift"), "utf8");
|
|
10644
10903
|
const executable = swiftManifestTargets(manifest).find((target) => target.executable);
|
|
10645
10904
|
if (executable === void 0) {
|
|
10646
10905
|
throw new Error("swift-compile: the written manifest names no executable target");
|
|
10647
10906
|
}
|
|
10648
|
-
return
|
|
10907
|
+
return import_node_path19.default.join(binDir, `${executable.name}.wasm`);
|
|
10649
10908
|
}
|
|
10650
10909
|
function projectDiagnostic(output, layout, files) {
|
|
10651
10910
|
const base = layout.multi ? layout.root : layout.sources;
|
|
10652
|
-
const prefix = `${base}${
|
|
10911
|
+
const prefix = `${base}${import_node_path19.default.sep}`;
|
|
10653
10912
|
return designTimeDiagnostic(output, files).split("\n").filter((line) => !SWIFTPM_NOISE.test(line)).map((line) => line.startsWith(prefix) ? line.slice(prefix.length) : line).join("\n").trim();
|
|
10654
10913
|
}
|
|
10655
10914
|
var ROOT_LOCKS = Symbol.for("peachsim.swiftCompile.rootLocks");
|
|
@@ -10685,12 +10944,12 @@ function serialize(root, work, signal) {
|
|
|
10685
10944
|
function readCompiledArtifact(directory, hash) {
|
|
10686
10945
|
try {
|
|
10687
10946
|
const receipt = JSON.parse(
|
|
10688
|
-
(0,
|
|
10947
|
+
(0, import_node_fs17.readFileSync)(import_node_path19.default.join(directory, "artifact.json"), "utf8")
|
|
10689
10948
|
);
|
|
10690
10949
|
if (!receipt || typeof receipt !== "object" || !("hash" in receipt) || receipt.hash !== hash || !("icu" in receipt) || typeof receipt.icu !== "string" || !("wasm" in receipt) || typeof receipt.wasm !== "string")
|
|
10691
10950
|
return null;
|
|
10692
|
-
const bytes = (0,
|
|
10693
|
-
const gzip2 = (0,
|
|
10951
|
+
const bytes = (0, import_node_fs17.readFileSync)(import_node_path19.default.join(directory, "app.wasm"));
|
|
10952
|
+
const gzip2 = (0, import_node_fs17.readFileSync)(import_node_path19.default.join(directory, "icu.gz"));
|
|
10694
10953
|
if ((0, import_node_crypto8.createHash)("sha256").update(bytes).digest("hex") !== receipt.wasm || (0, import_node_crypto8.createHash)("sha256").update(gzip2).digest("hex") !== receipt.icu || bytes.length < 8 || bytes.readUInt32LE(0) !== 1836278016 || bytes.readUInt32LE(4) !== 1)
|
|
10695
10954
|
return null;
|
|
10696
10955
|
return { hash, bytes, icu: { sha256: receipt.icu, gzip: gzip2 } };
|
|
@@ -10701,14 +10960,14 @@ function readCompiledArtifact(directory, hash) {
|
|
|
10701
10960
|
}
|
|
10702
10961
|
}
|
|
10703
10962
|
function saveCompiledArtifact(root, artifact) {
|
|
10704
|
-
const directory =
|
|
10705
|
-
(0,
|
|
10706
|
-
const pending = (0,
|
|
10963
|
+
const directory = import_node_path19.default.join(root, "artifact");
|
|
10964
|
+
(0, import_node_fs17.mkdirSync)(directory, { recursive: true });
|
|
10965
|
+
const pending = (0, import_node_fs17.mkdtempSync)(import_node_path19.default.join(root, ".artifact-"));
|
|
10707
10966
|
try {
|
|
10708
|
-
(0,
|
|
10709
|
-
(0,
|
|
10710
|
-
(0,
|
|
10711
|
-
|
|
10967
|
+
(0, import_node_fs17.writeFileSync)(import_node_path19.default.join(pending, "app.wasm"), artifact.bytes);
|
|
10968
|
+
(0, import_node_fs17.writeFileSync)(import_node_path19.default.join(pending, "icu.gz"), artifact.icu.gzip);
|
|
10969
|
+
(0, import_node_fs17.writeFileSync)(
|
|
10970
|
+
import_node_path19.default.join(pending, "artifact.json"),
|
|
10712
10971
|
JSON.stringify({
|
|
10713
10972
|
hash: artifact.hash,
|
|
10714
10973
|
wasm: (0, import_node_crypto8.createHash)("sha256").update(artifact.bytes).digest("hex"),
|
|
@@ -10716,10 +10975,10 @@ function saveCompiledArtifact(root, artifact) {
|
|
|
10716
10975
|
})
|
|
10717
10976
|
);
|
|
10718
10977
|
for (const file of ["app.wasm", "icu.gz", "artifact.json"]) {
|
|
10719
|
-
(0,
|
|
10978
|
+
(0, import_node_fs17.renameSync)(import_node_path19.default.join(pending, file), import_node_path19.default.join(directory, file));
|
|
10720
10979
|
}
|
|
10721
10980
|
} finally {
|
|
10722
|
-
(0,
|
|
10981
|
+
(0, import_node_fs17.rmSync)(pending, { recursive: true, force: true });
|
|
10723
10982
|
}
|
|
10724
10983
|
}
|
|
10725
10984
|
var SHARED_ARTIFACT_BUDGET_BYTES = 4 * 1024 ** 3;
|
|
@@ -10730,29 +10989,29 @@ function vanished(error) {
|
|
|
10730
10989
|
}
|
|
10731
10990
|
function renewSharedArtifact(sharedRoot) {
|
|
10732
10991
|
try {
|
|
10733
|
-
(0,
|
|
10992
|
+
(0, import_node_fs17.utimesSync)(sharedRoot, /* @__PURE__ */ new Date(), /* @__PURE__ */ new Date());
|
|
10734
10993
|
} catch (error) {
|
|
10735
10994
|
if (!vanished(error)) throw error;
|
|
10736
10995
|
}
|
|
10737
10996
|
}
|
|
10738
10997
|
function pruneSharedArtifacts(parent, keep) {
|
|
10739
10998
|
const entries = [];
|
|
10740
|
-
for (const name2 of (0,
|
|
10741
|
-
const directory =
|
|
10999
|
+
for (const name2 of (0, import_node_fs17.readdirSync)(parent)) {
|
|
11000
|
+
const directory = import_node_path19.default.join(parent, name2);
|
|
10742
11001
|
if (name2.startsWith(RETIRED_PREFIX)) {
|
|
10743
11002
|
reapRetiredCacheDirectory(parent, name2);
|
|
10744
11003
|
continue;
|
|
10745
11004
|
}
|
|
10746
11005
|
try {
|
|
10747
11006
|
let bytes = 0;
|
|
10748
|
-
for (const file of (0,
|
|
11007
|
+
for (const file of (0, import_node_fs17.readdirSync)(import_node_path19.default.join(directory, "artifact"))) {
|
|
10749
11008
|
try {
|
|
10750
|
-
bytes += (0,
|
|
11009
|
+
bytes += (0, import_node_fs17.statSync)(import_node_path19.default.join(directory, "artifact", file)).size;
|
|
10751
11010
|
} catch (error) {
|
|
10752
11011
|
if (!vanished(error)) throw error;
|
|
10753
11012
|
}
|
|
10754
11013
|
}
|
|
10755
|
-
entries.push({ directory, used: (0,
|
|
11014
|
+
entries.push({ directory, used: (0, import_node_fs17.statSync)(directory).mtimeMs, bytes });
|
|
10756
11015
|
} catch (error) {
|
|
10757
11016
|
if (!vanished(error)) throw error;
|
|
10758
11017
|
}
|
|
@@ -10762,13 +11021,13 @@ function pruneSharedArtifacts(parent, keep) {
|
|
|
10762
11021
|
if (total <= SHARED_ARTIFACT_BUDGET_BYTES) break;
|
|
10763
11022
|
if (entry.directory === keep || Date.now() - entry.used < SHARED_ARTIFACT_GRACE_MS)
|
|
10764
11023
|
continue;
|
|
10765
|
-
const retired =
|
|
11024
|
+
const retired = import_node_path19.default.join(
|
|
10766
11025
|
parent,
|
|
10767
|
-
`${RETIRED_PREFIX}${process.pid}-${
|
|
11026
|
+
`${RETIRED_PREFIX}${process.pid}-${import_node_path19.default.basename(entry.directory)}`
|
|
10768
11027
|
);
|
|
10769
11028
|
try {
|
|
10770
|
-
if ((0,
|
|
10771
|
-
(0,
|
|
11029
|
+
if ((0, import_node_fs17.statSync)(entry.directory).mtimeMs !== entry.used) continue;
|
|
11030
|
+
(0, import_node_fs17.renameSync)(entry.directory, retired);
|
|
10772
11031
|
} catch (error) {
|
|
10773
11032
|
if (vanished(error)) continue;
|
|
10774
11033
|
throw error;
|
|
@@ -10780,7 +11039,7 @@ function pruneSharedArtifacts(parent, keep) {
|
|
|
10780
11039
|
function saveSharedArtifact(sharedRoot, artifact) {
|
|
10781
11040
|
saveCompiledArtifact(sharedRoot, artifact);
|
|
10782
11041
|
renewSharedArtifact(sharedRoot);
|
|
10783
|
-
pruneSharedArtifacts(
|
|
11042
|
+
pruneSharedArtifacts(import_node_path19.default.dirname(sharedRoot), sharedRoot);
|
|
10784
11043
|
}
|
|
10785
11044
|
var retainedArtifacts = /* @__PURE__ */ new Map();
|
|
10786
11045
|
function retain(root, artifact) {
|
|
@@ -10808,7 +11067,7 @@ function frameworkLibraryTargets(manifest) {
|
|
|
10808
11067
|
}
|
|
10809
11068
|
function linkedFrameworkTargets(moduleRoot, input) {
|
|
10810
11069
|
const libraries = frameworkLibraryTargets(
|
|
10811
|
-
(0,
|
|
11070
|
+
(0, import_node_fs17.readFileSync)(import_node_path19.default.join(moduleRoot, "Package.swift"), "utf8")
|
|
10812
11071
|
);
|
|
10813
11072
|
const targets = compileTargets(input);
|
|
10814
11073
|
const planning = targets.length > 0 ? targets : [{ name: "App", path: "." }];
|
|
@@ -10849,7 +11108,7 @@ function linkedFrameworkTargets(moduleRoot, input) {
|
|
|
10849
11108
|
return { products: linked, targets: linkedMembers };
|
|
10850
11109
|
}
|
|
10851
11110
|
function writeFrameworkLinkPackage(linkRoot, moduleRoot, products) {
|
|
10852
|
-
const identity =
|
|
11111
|
+
const identity = import_node_path19.default.basename(moduleRoot).toLowerCase();
|
|
10853
11112
|
const swiftString = (value) => `"${value.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
|
|
10854
11113
|
const dependencies = products.map(
|
|
10855
11114
|
(name2) => ` .product(name: ${swiftString(name2)}, package: ${swiftString(identity)}),`
|
|
@@ -10871,13 +11130,13 @@ ${dependencies}
|
|
|
10871
11130
|
]
|
|
10872
11131
|
)
|
|
10873
11132
|
`;
|
|
10874
|
-
const sourceDir =
|
|
10875
|
-
(0,
|
|
10876
|
-
const manifestPath =
|
|
10877
|
-
if (!(0,
|
|
10878
|
-
(0,
|
|
10879
|
-
const source =
|
|
10880
|
-
if (!(0,
|
|
11133
|
+
const sourceDir = import_node_path19.default.join(linkRoot, "Sources", FRAMEWORK_LINK_TARGET);
|
|
11134
|
+
(0, import_node_fs17.mkdirSync)(sourceDir, { recursive: true });
|
|
11135
|
+
const manifestPath = import_node_path19.default.join(linkRoot, "Package.swift");
|
|
11136
|
+
if (!(0, import_node_fs17.existsSync)(manifestPath) || (0, import_node_fs17.readFileSync)(manifestPath, "utf8") !== manifest)
|
|
11137
|
+
(0, import_node_fs17.writeFileSync)(manifestPath, manifest);
|
|
11138
|
+
const source = import_node_path19.default.join(sourceDir, "Link.swift");
|
|
11139
|
+
if (!(0, import_node_fs17.existsSync)(source)) (0, import_node_fs17.writeFileSync)(source, "");
|
|
10881
11140
|
}
|
|
10882
11141
|
function frameworkLinkClosure(scratch2, roots) {
|
|
10883
11142
|
const suffix = `${WASM_TRIPLE}-release`;
|
|
@@ -10888,7 +11147,7 @@ function frameworkLinkClosure(scratch2, roots) {
|
|
|
10888
11147
|
const moduleMaps = /* @__PURE__ */ new Map();
|
|
10889
11148
|
let pending = null;
|
|
10890
11149
|
let compiling = null;
|
|
10891
|
-
for (const line of (0,
|
|
11150
|
+
for (const line of (0, import_node_fs17.readFileSync)(import_node_path19.default.join(scratch2, "release.yaml"), "utf8").split(
|
|
10892
11151
|
"\n"
|
|
10893
11152
|
)) {
|
|
10894
11153
|
const phony = phonyHeader.exec(line);
|
|
@@ -10947,7 +11206,7 @@ function frameworkLinkClosure(scratch2, roots) {
|
|
|
10947
11206
|
for (const file of own) {
|
|
10948
11207
|
if (seen.has(file)) continue;
|
|
10949
11208
|
seen.add(file);
|
|
10950
|
-
if (!(0,
|
|
11209
|
+
if (!(0, import_node_fs17.existsSync)(file))
|
|
10951
11210
|
throw new Error(`swift-compile: framework object ${file} was not built`);
|
|
10952
11211
|
files.push(file);
|
|
10953
11212
|
}
|
|
@@ -10957,26 +11216,26 @@ function frameworkLinkClosure(scratch2, roots) {
|
|
|
10957
11216
|
return { objects: files, modules, moduleMaps: [...maps].sort() };
|
|
10958
11217
|
}
|
|
10959
11218
|
function removeCaseCollidingModuleArtifacts(modulesDir, keep) {
|
|
10960
|
-
if (!(0,
|
|
11219
|
+
if (!(0, import_node_fs17.existsSync)(modulesDir)) return;
|
|
10961
11220
|
const folded = new Set([...keep].map((name2) => name2.toLowerCase()));
|
|
10962
|
-
for (const name2 of (0,
|
|
11221
|
+
for (const name2 of (0, import_node_fs17.readdirSync)(modulesDir)) {
|
|
10963
11222
|
const dot = name2.indexOf(".");
|
|
10964
11223
|
if (dot <= 0) continue;
|
|
10965
11224
|
const module2 = name2.slice(0, dot);
|
|
10966
11225
|
if (keep.has(module2) || !folded.has(module2.toLowerCase())) continue;
|
|
10967
|
-
(0,
|
|
11226
|
+
(0, import_node_fs17.rmSync)(import_node_path19.default.join(modulesDir, name2), { recursive: true, force: true });
|
|
10968
11227
|
}
|
|
10969
11228
|
}
|
|
10970
11229
|
async function compileFrameworkProducts(args) {
|
|
10971
11230
|
const scratch2 = swiftFrameworkScratch(args.frameworkKey);
|
|
10972
|
-
(0,
|
|
11231
|
+
(0, import_node_fs17.mkdirSync)(scratch2, { recursive: true });
|
|
10973
11232
|
const now = /* @__PURE__ */ new Date();
|
|
10974
|
-
(0,
|
|
11233
|
+
(0, import_node_fs17.utimesSync)(scratch2, now, now);
|
|
10975
11234
|
return buildFrameworkProducts(scratch2, args);
|
|
10976
11235
|
}
|
|
10977
11236
|
async function buildFrameworkProducts(scratch2, args) {
|
|
10978
11237
|
const linkedTargets = linkedFrameworkTargets(args.moduleRoot, args.input);
|
|
10979
|
-
const linkRoot =
|
|
11238
|
+
const linkRoot = import_node_path19.default.join(scratch2, "link");
|
|
10980
11239
|
writeFrameworkLinkPackage(linkRoot, args.moduleRoot, linkedTargets.products);
|
|
10981
11240
|
await runCompiler(
|
|
10982
11241
|
args.swift,
|
|
@@ -11005,7 +11264,7 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
11005
11264
|
"-Xswiftc",
|
|
11006
11265
|
BUILD_JOBS,
|
|
11007
11266
|
...swiftReproducibleBuildFlags([
|
|
11008
|
-
[
|
|
11267
|
+
[import_node_path19.default.dirname(args.toolchainBin), "toolchain"],
|
|
11009
11268
|
[args.moduleRoot, "framework"],
|
|
11010
11269
|
[scratch2, "framework-scratch"]
|
|
11011
11270
|
]),
|
|
@@ -11030,30 +11289,46 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
11030
11289
|
).catch((error) => {
|
|
11031
11290
|
throw new Error(outputOf(error), { cause: error });
|
|
11032
11291
|
});
|
|
11033
|
-
const release =
|
|
11292
|
+
const release = import_node_path19.default.join(scratch2, WASM_TRIPLE, "release");
|
|
11034
11293
|
const linked = frameworkLinkClosure(scratch2, linkedTargets.targets);
|
|
11035
11294
|
const objects = linked.objects;
|
|
11036
|
-
|
|
11037
|
-
|
|
11038
|
-
|
|
11295
|
+
if (linked.modules.has("UniformTypeIdentifiers")) {
|
|
11296
|
+
const object = import_node_path19.default.join(scratch2, "UniformTypeIdentifiers-NativeConstants.o");
|
|
11297
|
+
if (!(0, import_node_fs17.existsSync)(object)) {
|
|
11298
|
+
const sdkPaths2 = swiftSdkPaths(args.moduleRoot, args.toolchainBin);
|
|
11299
|
+
compileUniformTypeConstants({
|
|
11300
|
+
bin: args.toolchainBin,
|
|
11301
|
+
sysroot: sdkPaths2.sysroot,
|
|
11302
|
+
darwin: sdkPaths2.darwin,
|
|
11303
|
+
packageRoot: args.moduleRoot,
|
|
11304
|
+
minimum: darwinRecordsMinimum(),
|
|
11305
|
+
out: scratch2
|
|
11306
|
+
});
|
|
11307
|
+
}
|
|
11308
|
+
objects.push(object);
|
|
11309
|
+
}
|
|
11310
|
+
removeCaseCollidingModuleArtifacts(import_node_path19.default.join(release, "Modules"), linked.modules);
|
|
11311
|
+
const response = import_node_path19.default.join(scratch2, "autolink-objects.rsp");
|
|
11312
|
+
(0, import_node_fs17.writeFileSync)(response, objects.map((file) => JSON.stringify(file)).join("\n") + "\n");
|
|
11039
11313
|
const extracted = await runCompiler(
|
|
11040
|
-
|
|
11314
|
+
import_node_path19.default.join(args.toolchainBin, "swift-autolink-extract"),
|
|
11041
11315
|
[`@${response}`, "-o", "-"],
|
|
11042
11316
|
args.buildOptions
|
|
11043
11317
|
);
|
|
11044
|
-
(0,
|
|
11318
|
+
(0, import_node_fs17.rmSync)(response, { force: true });
|
|
11045
11319
|
const link = extracted.split("\n").map((line) => line.trim()).filter((flag, index, all) => flag.length > 0 && all.indexOf(flag) === index);
|
|
11046
11320
|
if (link.includes("-lFoundation"))
|
|
11047
|
-
|
|
11048
|
-
|
|
11049
|
-
|
|
11050
|
-
|
|
11051
|
-
|
|
11052
|
-
|
|
11053
|
-
|
|
11054
|
-
|
|
11055
|
-
|
|
11056
|
-
(0,
|
|
11321
|
+
for (const name2 of foundationCategoryObjects)
|
|
11322
|
+
objects.push(
|
|
11323
|
+
import_node_path19.default.join(
|
|
11324
|
+
swiftSdkPaths(args.moduleRoot, args.toolchainBin).resources,
|
|
11325
|
+
`wasi/${name2}.objc.o`
|
|
11326
|
+
)
|
|
11327
|
+
);
|
|
11328
|
+
const providerDir = import_node_path19.default.join(scratch2, "darwin-records");
|
|
11329
|
+
if (!(0, import_node_fs17.existsSync)(import_node_path19.default.join(providerDir, ".complete"))) {
|
|
11330
|
+
(0, import_node_fs17.rmSync)(providerDir, { recursive: true, force: true });
|
|
11331
|
+
(0, import_node_fs17.mkdirSync)(providerDir);
|
|
11057
11332
|
const sdkPaths2 = swiftSdkPaths(args.moduleRoot, args.toolchainBin);
|
|
11058
11333
|
compileDarwinRecords({
|
|
11059
11334
|
bin: args.toolchainBin,
|
|
@@ -11063,12 +11338,12 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
11063
11338
|
minimum: darwinRecordsMinimum(),
|
|
11064
11339
|
out: providerDir
|
|
11065
11340
|
});
|
|
11066
|
-
(0,
|
|
11341
|
+
(0, import_node_fs17.writeFileSync)(import_node_path19.default.join(providerDir, ".complete"), "");
|
|
11067
11342
|
}
|
|
11068
11343
|
return {
|
|
11069
|
-
modules:
|
|
11344
|
+
modules: import_node_path19.default.join(release, "Modules"),
|
|
11070
11345
|
objects,
|
|
11071
|
-
providers: (0,
|
|
11346
|
+
providers: (0, import_node_fs17.readdirSync)(providerDir).filter((file) => file.endsWith(".o")).sort().map((file) => import_node_path19.default.join(providerDir, file)),
|
|
11072
11347
|
link,
|
|
11073
11348
|
moduleMaps: linked.moduleMaps
|
|
11074
11349
|
};
|
|
@@ -11076,35 +11351,35 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
11076
11351
|
var SWIFT_LINK_STAMP = ".peach-link-stamp";
|
|
11077
11352
|
var SWIFT_FRAMEWORK_SCRATCHES_KEPT = 3;
|
|
11078
11353
|
function swiftFrameworksDir() {
|
|
11079
|
-
return
|
|
11354
|
+
return import_node_path19.default.join(swiftCacheDir(), "swift-frameworks");
|
|
11080
11355
|
}
|
|
11081
11356
|
function swiftFrameworkScratch(frameworkKey) {
|
|
11082
|
-
return
|
|
11357
|
+
return import_node_path19.default.join(swiftFrameworksDir(), frameworkKey);
|
|
11083
11358
|
}
|
|
11084
11359
|
function stageFrameworkSource(moduleRoot, frameworkKey) {
|
|
11085
11360
|
if (swiftDistributionAt(moduleRoot)) return moduleRoot;
|
|
11086
|
-
const staged =
|
|
11087
|
-
const stagedModule =
|
|
11088
|
-
if ((0,
|
|
11361
|
+
const staged = import_node_path19.default.join(swiftFrameworkScratch(frameworkKey), "source");
|
|
11362
|
+
const stagedModule = import_node_path19.default.join(staged, "packages", import_node_path19.default.basename(moduleRoot));
|
|
11363
|
+
if ((0, import_node_fs17.existsSync)(import_node_path19.default.join(staged, ".complete"))) return stagedModule;
|
|
11089
11364
|
const partial = `${staged}.${(0, import_node_crypto8.randomUUID)()}`;
|
|
11090
|
-
(0,
|
|
11091
|
-
(0,
|
|
11365
|
+
(0, import_node_fs17.mkdirSync)(partial, { recursive: true });
|
|
11366
|
+
(0, import_node_fs17.cpSync)(moduleRoot, import_node_path19.default.join(partial, "packages", import_node_path19.default.basename(moduleRoot)), {
|
|
11092
11367
|
recursive: true,
|
|
11093
11368
|
preserveTimestamps: true,
|
|
11094
|
-
filter: (source) =>
|
|
11369
|
+
filter: (source) => import_node_path19.default.relative(moduleRoot, source) !== ".build"
|
|
11095
11370
|
});
|
|
11096
|
-
(0,
|
|
11371
|
+
(0, import_node_fs17.cpSync)(
|
|
11097
11372
|
swiftSharedSdkRoot(moduleRoot, false),
|
|
11098
|
-
|
|
11373
|
+
import_node_path19.default.join(partial, "packages/peachsim/sdk/ios"),
|
|
11099
11374
|
{ recursive: true, preserveTimestamps: true }
|
|
11100
11375
|
);
|
|
11101
|
-
(0,
|
|
11102
|
-
(0,
|
|
11103
|
-
|
|
11376
|
+
(0, import_node_fs17.symlinkSync)(
|
|
11377
|
+
(0, import_node_fs17.realpathSync)(import_node_path19.default.join(moduleRoot, "../../node_modules")),
|
|
11378
|
+
import_node_path19.default.join(partial, "node_modules")
|
|
11104
11379
|
);
|
|
11105
|
-
(0,
|
|
11106
|
-
(0,
|
|
11107
|
-
(0,
|
|
11380
|
+
(0, import_node_fs17.writeFileSync)(import_node_path19.default.join(partial, ".complete"), "");
|
|
11381
|
+
(0, import_node_fs17.rmSync)(staged, { recursive: true, force: true });
|
|
11382
|
+
(0, import_node_fs17.renameSync)(partial, staged);
|
|
11108
11383
|
return stagedModule;
|
|
11109
11384
|
}
|
|
11110
11385
|
function swiftLinkStamp(args) {
|
|
@@ -11114,7 +11389,7 @@ ${args.frameworkKey}
|
|
|
11114
11389
|
`);
|
|
11115
11390
|
if (!args.prebuilt) return hash.digest("hex");
|
|
11116
11391
|
const statOf = (file) => {
|
|
11117
|
-
const stat = (0,
|
|
11392
|
+
const stat = (0, import_node_fs17.statSync)(file, { bigint: true });
|
|
11118
11393
|
return `${stat.size}:${stat.mtimeNs}`;
|
|
11119
11394
|
};
|
|
11120
11395
|
for (const object of args.prebuilt.objects)
|
|
@@ -11135,50 +11410,60 @@ ${args.prebuilt.link.join("\n")}
|
|
|
11135
11410
|
hash.update(`modules
|
|
11136
11411
|
${args.prebuilt.modules}
|
|
11137
11412
|
`);
|
|
11138
|
-
for (const entry of (0,
|
|
11413
|
+
for (const entry of (0, import_node_fs17.readdirSync)(args.prebuilt.modules).sort())
|
|
11139
11414
|
hash.update(`${entry}
|
|
11140
|
-
${statOf(
|
|
11415
|
+
${statOf(import_node_path19.default.join(args.prebuilt.modules, entry))}`);
|
|
11141
11416
|
return hash.digest("hex");
|
|
11142
11417
|
}
|
|
11143
11418
|
async function pruneFrameworkScratches(keep) {
|
|
11144
11419
|
const dir = swiftFrameworksDir();
|
|
11145
|
-
const idle = (0,
|
|
11420
|
+
const idle = (0, import_node_fs17.readdirSync)(dir).filter((name2) => name2 !== keep).map((name2) => ({ name: name2, modified: (0, import_node_fs17.statSync)(import_node_path19.default.join(dir, name2)).mtimeMs })).sort((left, right) => right.modified - left.modified).slice(SWIFT_FRAMEWORK_SCRATCHES_KEPT - 1);
|
|
11146
11421
|
for (const { name: name2 } of idle)
|
|
11147
11422
|
await withSwiftRootLock(
|
|
11148
|
-
|
|
11149
|
-
async () => (0,
|
|
11423
|
+
import_node_path19.default.join(dir, name2),
|
|
11424
|
+
async () => (0, import_node_fs17.rmSync)(import_node_path19.default.join(dir, name2), { recursive: true, force: true }),
|
|
11150
11425
|
void 0,
|
|
11151
11426
|
false
|
|
11152
11427
|
);
|
|
11153
11428
|
}
|
|
11154
11429
|
function retireStaleSwiftLink(root, stamp) {
|
|
11155
|
-
const receipt =
|
|
11430
|
+
const receipt = import_node_path19.default.join(root, SWIFT_LINK_STAMP);
|
|
11156
11431
|
let previous = null;
|
|
11157
11432
|
try {
|
|
11158
|
-
previous = (0,
|
|
11433
|
+
previous = (0, import_node_fs17.readFileSync)(receipt, "utf8").trim();
|
|
11159
11434
|
} catch (error) {
|
|
11160
11435
|
if (!vanished(error)) throw error;
|
|
11161
11436
|
}
|
|
11162
|
-
(0,
|
|
11437
|
+
(0, import_node_fs17.writeFileSync)(receipt, `${stamp}
|
|
11163
11438
|
`);
|
|
11164
|
-
const retired =
|
|
11165
|
-
if (previous === stamp || !(0,
|
|
11166
|
-
(0,
|
|
11439
|
+
const retired = import_node_path19.default.join(root, ".build");
|
|
11440
|
+
if (previous === stamp || !(0, import_node_fs17.existsSync)(retired)) return false;
|
|
11441
|
+
(0, import_node_fs17.rmSync)(retired, { recursive: true, force: true });
|
|
11167
11442
|
return true;
|
|
11168
11443
|
}
|
|
11169
11444
|
function compileSwiftProjectUnit(input, options) {
|
|
11170
11445
|
options.signal?.throwIfAborted();
|
|
11171
|
-
(0,
|
|
11172
|
-
const root = (0,
|
|
11173
|
-
const moduleRoot =
|
|
11446
|
+
(0, import_node_fs17.mkdirSync)(options.buildRoot, { recursive: true });
|
|
11447
|
+
const root = (0, import_node_fs17.realpathSync)(options.buildRoot);
|
|
11448
|
+
const moduleRoot = import_node_path19.default.resolve(options.moduleRoot);
|
|
11449
|
+
const distribution = swiftDistributionAt(moduleRoot);
|
|
11450
|
+
const entrySource = input.files[input.entry];
|
|
11451
|
+
if (distribution && entrySource && !input.lazyDistribution) {
|
|
11452
|
+
const imports = swiftImportNames(entrySource);
|
|
11453
|
+
const sources = Object.keys(input.files).filter(
|
|
11454
|
+
(file) => /\.(?:swift|c|cc|cpp|cxx|m|mm)$/.test(file) && file !== "Package.swift"
|
|
11455
|
+
);
|
|
11456
|
+
if (sources.length === 1 && sources[0] === input.entry && imports.includes("Foundation") && !imports.some((name2) => distribution.modules.includes(name2)))
|
|
11457
|
+
input = { ...input, lazyDistribution: true };
|
|
11458
|
+
}
|
|
11174
11459
|
const layout = {
|
|
11175
11460
|
root,
|
|
11176
|
-
sources:
|
|
11461
|
+
sources: import_node_path19.default.join(root, "Sources", "App"),
|
|
11177
11462
|
multi: compileTargets(input).length > 0
|
|
11178
11463
|
};
|
|
11179
11464
|
const hash = swiftArtifactHash(input, options.release, moduleRoot);
|
|
11180
11465
|
const frameworkKey = swiftProjectBuildKey(moduleRoot, options.release);
|
|
11181
|
-
const sharedRoot =
|
|
11466
|
+
const sharedRoot = import_node_path19.default.join(swiftCacheDir(), "swift-projects", hash);
|
|
11182
11467
|
const report = (message) => {
|
|
11183
11468
|
console.error(`[swift-project ${hash.slice(0, 16)}] ${message}`);
|
|
11184
11469
|
options.onStage?.(message);
|
|
@@ -11192,8 +11477,8 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11192
11477
|
report("reusing memory artifact");
|
|
11193
11478
|
return retain(root, retained);
|
|
11194
11479
|
}
|
|
11195
|
-
const cached = readCompiledArtifact(
|
|
11196
|
-
const previous = cached ?? (options.project ? null : readCompiledArtifact(
|
|
11480
|
+
const cached = readCompiledArtifact(import_node_path19.default.join(sharedRoot, "artifact"), hash);
|
|
11481
|
+
const previous = cached ?? (options.project ? null : readCompiledArtifact(import_node_path19.default.join(root, "artifact"), hash));
|
|
11197
11482
|
if (previous) {
|
|
11198
11483
|
if (cached) renewSharedArtifact(sharedRoot);
|
|
11199
11484
|
else saveSharedArtifact(sharedRoot, previous);
|
|
@@ -11201,10 +11486,10 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11201
11486
|
return retain(root, previous);
|
|
11202
11487
|
}
|
|
11203
11488
|
if (process.platform === "darwin" && process.env.TM_SESSION && !windowAdmission() && process.env.CI !== "true" && moduleRoot === sourceSwiftCheckout() && !swiftDistributionAt(moduleRoot)) {
|
|
11204
|
-
const requestRoot = (0,
|
|
11205
|
-
const output =
|
|
11206
|
-
const request =
|
|
11207
|
-
(0,
|
|
11489
|
+
const requestRoot = (0, import_node_fs17.mkdtempSync)(`${root}.builder-request-`);
|
|
11490
|
+
const output = import_node_path19.default.join(requestRoot, "output");
|
|
11491
|
+
const request = import_node_path19.default.join(requestRoot, "request.json");
|
|
11492
|
+
(0, import_node_fs17.writeFileSync)(
|
|
11208
11493
|
request,
|
|
11209
11494
|
JSON.stringify({
|
|
11210
11495
|
input,
|
|
@@ -11217,12 +11502,12 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11217
11502
|
})
|
|
11218
11503
|
);
|
|
11219
11504
|
try {
|
|
11220
|
-
const repo =
|
|
11505
|
+
const repo = import_node_path19.default.resolve(moduleRoot, "../..");
|
|
11221
11506
|
report("requesting builder admission or cached result");
|
|
11222
11507
|
await runCompiler(
|
|
11223
11508
|
"bun",
|
|
11224
11509
|
[
|
|
11225
|
-
|
|
11510
|
+
import_node_path19.default.join(repo, "scripts/build/swift-project.ts"),
|
|
11226
11511
|
"--request",
|
|
11227
11512
|
request,
|
|
11228
11513
|
"--output",
|
|
@@ -11250,19 +11535,19 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11250
11535
|
report("builder artifact verified");
|
|
11251
11536
|
return retain(root, artifact);
|
|
11252
11537
|
} finally {
|
|
11253
|
-
(0,
|
|
11538
|
+
(0, import_node_fs17.rmSync)(requestRoot, { recursive: true, force: true });
|
|
11254
11539
|
}
|
|
11255
11540
|
}
|
|
11256
11541
|
return withSwiftRootLock(
|
|
11257
11542
|
root,
|
|
11258
11543
|
async (lease) => {
|
|
11259
|
-
const built = readCompiledArtifact(
|
|
11544
|
+
const built = readCompiledArtifact(import_node_path19.default.join(sharedRoot, "artifact"), hash);
|
|
11260
11545
|
if (built) {
|
|
11261
11546
|
report("reusing verified disk artifact");
|
|
11262
11547
|
return retain(root, built);
|
|
11263
11548
|
}
|
|
11264
|
-
const swift =
|
|
11265
|
-
if (!(0,
|
|
11549
|
+
const swift = import_node_path19.default.join(options.toolchainBin, "swift");
|
|
11550
|
+
if (!(0, import_node_fs17.existsSync)(swift)) {
|
|
11266
11551
|
throw new Error(
|
|
11267
11552
|
`swift-compile: no swift.org toolchain at ${options.toolchainBin}; install ${options.release} and its matching wasm sdk`
|
|
11268
11553
|
);
|
|
@@ -11287,8 +11572,8 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11287
11572
|
// shipped host plugins resolve against the selected compiler's runtime.
|
|
11288
11573
|
...process.platform === "linux" ? {
|
|
11289
11574
|
LD_LIBRARY_PATH: [
|
|
11290
|
-
|
|
11291
|
-
|
|
11575
|
+
import_node_path19.default.resolve(options.toolchainBin, "../lib/swift/linux"),
|
|
11576
|
+
import_node_path19.default.resolve(options.toolchainBin, "../lib/swift/host"),
|
|
11292
11577
|
process.env.LD_LIBRARY_PATH
|
|
11293
11578
|
].filter(Boolean).join(":")
|
|
11294
11579
|
} : {},
|
|
@@ -11341,6 +11626,16 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11341
11626
|
const unprepared = preparation.targetFailures.map(
|
|
11342
11627
|
(failure) => `error: target ${failure}`
|
|
11343
11628
|
);
|
|
11629
|
+
const forwarders = /* @__PURE__ */ new Map();
|
|
11630
|
+
for (const [file, text2] of Object.entries(input.files)) {
|
|
11631
|
+
const parents = /^#include "((?:\.\.\/)+)[^"\n]+"\n$/.exec(text2)?.[1];
|
|
11632
|
+
if (!parents) continue;
|
|
11633
|
+
const directory = import_node_path19.default.posix.dirname(file);
|
|
11634
|
+
forwarders.set(
|
|
11635
|
+
`${import_node_path19.default.join(root, directory)}/${parents.slice(0, -1)}`,
|
|
11636
|
+
import_node_path19.default.posix.join("build", directory, parents).replace(/\/$/, "")
|
|
11637
|
+
);
|
|
11638
|
+
}
|
|
11344
11639
|
const buildArgs = [
|
|
11345
11640
|
"build",
|
|
11346
11641
|
...projectProcess?.cacheOptions ?? swiftPackageCacheOptions(),
|
|
@@ -11353,7 +11648,7 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11353
11648
|
...swiftCompileSdkOptions(frameworkRoot, options.toolchainBin),
|
|
11354
11649
|
"--swift-sdk",
|
|
11355
11650
|
sdk,
|
|
11356
|
-
...input.packageFiles || prebuilt ? ["--toolset",
|
|
11651
|
+
...input.packageFiles || prebuilt ? ["--toolset", import_node_path19.default.join(root, ".peach-target-toolset.json")] : [],
|
|
11357
11652
|
"-c",
|
|
11358
11653
|
"release",
|
|
11359
11654
|
"-Xswiftc",
|
|
@@ -11361,9 +11656,10 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11361
11656
|
"-Xswiftc",
|
|
11362
11657
|
BUILD_JOBS,
|
|
11363
11658
|
...swiftReproducibleBuildFlags([
|
|
11364
|
-
[
|
|
11659
|
+
[import_node_path19.default.dirname(options.toolchainBin), "toolchain"],
|
|
11365
11660
|
[frameworkRoot, "framework"],
|
|
11366
|
-
[root, "build"]
|
|
11661
|
+
[root, "build"],
|
|
11662
|
+
...forwarders
|
|
11367
11663
|
]),
|
|
11368
11664
|
...macroPlugins.libraries.flatMap((plugin) => [
|
|
11369
11665
|
"-Xswiftc",
|
|
@@ -11380,31 +11676,42 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11380
11676
|
];
|
|
11381
11677
|
const linked = builtArtifact(layout);
|
|
11382
11678
|
if (input.lazyDistribution) {
|
|
11383
|
-
(0,
|
|
11384
|
-
if ((0,
|
|
11385
|
-
(0,
|
|
11679
|
+
(0, import_node_fs17.rmSync)(import_node_path19.default.join(root, ".peach-link.rsp"), { force: true });
|
|
11680
|
+
if ((0, import_node_fs17.existsSync)(linked) && (0, import_node_fs17.statSync)(linked).size <= 8)
|
|
11681
|
+
(0, import_node_fs17.rmSync)(linked, { force: true });
|
|
11386
11682
|
}
|
|
11387
11683
|
report("compiling and linking Swift modules");
|
|
11388
11684
|
try {
|
|
11389
|
-
|
|
11685
|
+
const headerBuilds = preparation.headerProductTarget ? [
|
|
11686
|
+
...Object.keys(preparation.nativeHeaderDeclarations),
|
|
11687
|
+
preparation.headerProductTarget
|
|
11688
|
+
] : preparation.headerProducers;
|
|
11689
|
+
for (const build of headerBuilds) {
|
|
11390
11690
|
await runCompiler(
|
|
11391
11691
|
swift,
|
|
11392
|
-
[...buildArgs, "--target",
|
|
11692
|
+
[...buildArgs, "--target", build],
|
|
11393
11693
|
appOptions,
|
|
11394
11694
|
SWIFTPM_PROGRESS,
|
|
11395
11695
|
SWIFTPM_NOISE
|
|
11396
11696
|
);
|
|
11397
|
-
const
|
|
11398
|
-
|
|
11399
|
-
|
|
11400
|
-
|
|
11401
|
-
|
|
11402
|
-
|
|
11403
|
-
if ((0, import_node_fs16.existsSync)(emitted))
|
|
11404
|
-
(0, import_node_fs16.writeFileSync)(
|
|
11405
|
-
emitted,
|
|
11406
|
-
clangInterfaceHeader((0, import_node_fs16.readFileSync)(emitted, "utf8"))
|
|
11697
|
+
for (const producer of build === preparation.headerProductTarget ? preparation.headerProducers : [build]) {
|
|
11698
|
+
const emitted = import_node_path19.default.join(
|
|
11699
|
+
root,
|
|
11700
|
+
".build",
|
|
11701
|
+
"peach-cxx-headers",
|
|
11702
|
+
`${producer}-Swift.h`
|
|
11407
11703
|
);
|
|
11704
|
+
const original = preparation.nativeHeaderDeclarations[producer] ? emitted.replace(/-Swift\.h$/, "-Swift.original.h") : emitted;
|
|
11705
|
+
if ((0, import_node_fs17.existsSync)(original))
|
|
11706
|
+
writeBuildFile(
|
|
11707
|
+
emitted,
|
|
11708
|
+
withoutSwiftDeclarations(
|
|
11709
|
+
clangInterfaceHeader((0, import_node_fs17.readFileSync)(original, "utf8")),
|
|
11710
|
+
new Set(preparation.nativeHeaderDeclarations[producer]),
|
|
11711
|
+
`#import <${producer}/${producer}.h>`
|
|
11712
|
+
)
|
|
11713
|
+
);
|
|
11714
|
+
}
|
|
11408
11715
|
}
|
|
11409
11716
|
await runCompiler(
|
|
11410
11717
|
swift,
|
|
@@ -11415,15 +11722,15 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11415
11722
|
);
|
|
11416
11723
|
} catch (error) {
|
|
11417
11724
|
const output2 = outputOf(error);
|
|
11418
|
-
const moduleCache =
|
|
11725
|
+
const moduleCache = import_node_path19.default.join(
|
|
11419
11726
|
root,
|
|
11420
11727
|
".build",
|
|
11421
11728
|
WASM_TRIPLE,
|
|
11422
11729
|
"release",
|
|
11423
11730
|
"ModuleCache"
|
|
11424
11731
|
);
|
|
11425
|
-
if (output2.includes("was compiled with module cache path") && (0,
|
|
11426
|
-
(0,
|
|
11732
|
+
if (output2.includes("was compiled with module cache path") && (0, import_node_fs17.existsSync)(moduleCache)) {
|
|
11733
|
+
(0, import_node_fs17.rmSync)(moduleCache, { recursive: true, force: true });
|
|
11427
11734
|
try {
|
|
11428
11735
|
await runCompiler(
|
|
11429
11736
|
swift,
|
|
@@ -11453,11 +11760,11 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11453
11760
|
if (options.project) endSwiftProjectProcesses(options.project);
|
|
11454
11761
|
}
|
|
11455
11762
|
if (unprepared.length) throw new Error(unprepared.join("\n"));
|
|
11456
|
-
if (!(0,
|
|
11457
|
-
const binDir =
|
|
11458
|
-
const found = (0,
|
|
11763
|
+
if (!(0, import_node_fs17.existsSync)(linked)) {
|
|
11764
|
+
const binDir = import_node_path19.default.dirname(linked);
|
|
11765
|
+
const found = (0, import_node_fs17.existsSync)(binDir) ? (0, import_node_fs17.readdirSync)(binDir).filter((name2) => name2.endsWith(".wasm")).sort() : [];
|
|
11459
11766
|
throw new Error(
|
|
11460
|
-
`swift-compile: the build produced no ${
|
|
11767
|
+
`swift-compile: the build produced no ${import_node_path19.default.basename(linked)} (found: ${found.join(", ") || "none"})`
|
|
11461
11768
|
);
|
|
11462
11769
|
}
|
|
11463
11770
|
if (options.project) removeProjectLinks(root);
|
|
@@ -11474,7 +11781,7 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11474
11781
|
}
|
|
11475
11782
|
const artifact = {
|
|
11476
11783
|
hash,
|
|
11477
|
-
bytes: (0,
|
|
11784
|
+
bytes: (0, import_node_fs17.readFileSync)(input.lazyDistribution ? optimized : output),
|
|
11478
11785
|
icu: await icu
|
|
11479
11786
|
};
|
|
11480
11787
|
if (!options.project) saveCompiledArtifact(root, artifact);
|
|
@@ -11495,6 +11802,7 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11495
11802
|
0 && (module.exports = {
|
|
11496
11803
|
FOUNDATION_IMPLICIT_MODULES,
|
|
11497
11804
|
MULTI_MANIFEST_VERSION,
|
|
11805
|
+
SWIFT_BUILD_JOBS,
|
|
11498
11806
|
WASM_TRIPLE,
|
|
11499
11807
|
brotliCompressQ11,
|
|
11500
11808
|
brotliCompressQ4,
|
|
@@ -11505,7 +11813,6 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11505
11813
|
ensureMacroPlugins,
|
|
11506
11814
|
foundationOwnerOf,
|
|
11507
11815
|
lowerAVAssetURLCluster,
|
|
11508
|
-
lowerNSDictionaryLiteralReturn,
|
|
11509
11816
|
lowerNSValueTimeBox,
|
|
11510
11817
|
missingSwiftModules,
|
|
11511
11818
|
neutralizedNativeMain,
|