peachsim 0.1.1801 → 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 +24 -3
- 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 +7119 -5408
- 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 +5112 -3979
- 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 +7167 -5513
- 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 +7869 -6149
- package/dist-lib/swift-compile.cjs +922 -610
- package/dist-lib/swift-compile.mjs +884 -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 +3230 -2160
- 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/node.d.ts +1 -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/electronBridgeContract.d.ts +1 -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/appPackageContract.ts +5 -0
- package/src/bundle-channel.mjs +10 -4
- package/src/dns-over-https.ts +70 -0
- package/src/expo-native-workspace.ts +6 -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 +124 -8
- 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 +66 -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 -142
- 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 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,16 @@ 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 });
|
|
4145
|
+
return touchSdkView(options);
|
|
4146
|
+
}
|
|
4147
|
+
function touchSdkView(options) {
|
|
4148
|
+
const now = /* @__PURE__ */ new Date();
|
|
4149
|
+
import_node_fs7.default.utimesSync(options[1], now, now);
|
|
4038
4150
|
return options;
|
|
4039
4151
|
}
|
|
4040
4152
|
function swiftSharedSdkInputFiles(moduleRoot) {
|
|
@@ -4063,8 +4175,7 @@ function compileDarwinRecords(args) {
|
|
|
4063
4175
|
"-g0",
|
|
4064
4176
|
// malloc.h's zone records carry their block members under
|
|
4065
4177
|
// __BLOCKS__, as ios builds libmalloc
|
|
4066
|
-
"-fblocks",
|
|
4067
|
-
...file.endsWith(".m") ? [swiftObjCRuntime, "-fwasm-exceptions"] : [],
|
|
4178
|
+
...file.endsWith(".m") ? [...swiftObjCRuntimeFlags, "-fwasm-exceptions"] : ["-fblocks"],
|
|
4068
4179
|
// assert() keeps __FILE__, which would carry the builder's checkout
|
|
4069
4180
|
`-ffile-prefix-map=${records}${import_node_path10.default.sep}=DarwinRecords/`,
|
|
4070
4181
|
// apple's headers select on the ios identity original units compile
|
|
@@ -4437,9 +4548,9 @@ var EXCERPT = /^(\s*)(\d+)( \| )(.*)$/;
|
|
|
4437
4548
|
var MARKER = /^(\s*)( \| )(.*)$/;
|
|
4438
4549
|
function designTimeDiagnostic(output, files) {
|
|
4439
4550
|
const rewritten = /* @__PURE__ */ new Map();
|
|
4440
|
-
const linesOf = (
|
|
4551
|
+
const linesOf = (path19) => {
|
|
4441
4552
|
const file = Object.keys(files).find(
|
|
4442
|
-
(name2) => name2.endsWith(".swift") && (
|
|
4553
|
+
(name2) => name2.endsWith(".swift") && (path19 === name2 || path19.endsWith(`/${name2}`))
|
|
4443
4554
|
);
|
|
4444
4555
|
if (file === void 0) return null;
|
|
4445
4556
|
let lines = rewritten.get(file);
|
|
@@ -4518,6 +4629,16 @@ function parseSwiftDistributionManifest(value) {
|
|
|
4518
4629
|
};
|
|
4519
4630
|
}
|
|
4520
4631
|
|
|
4632
|
+
// src/swift-foundation.ts
|
|
4633
|
+
var foundationCategoryObjects = [
|
|
4634
|
+
"NSStringFormatting",
|
|
4635
|
+
"NSOrderedSet",
|
|
4636
|
+
"NSUUID",
|
|
4637
|
+
"NSCoderPrimitives",
|
|
4638
|
+
"NSProgressFactories",
|
|
4639
|
+
"NSOperationFactories"
|
|
4640
|
+
];
|
|
4641
|
+
|
|
4521
4642
|
// src/swift-icu.ts
|
|
4522
4643
|
var import_node_child_process8 = require("node:child_process");
|
|
4523
4644
|
var import_node_crypto5 = require("node:crypto");
|
|
@@ -4793,7 +4914,9 @@ function swiftObjcRootObjects(id, root, objects) {
|
|
|
4793
4914
|
empty.set(name2, Math.min(empty.get(name2) ?? size, size));
|
|
4794
4915
|
const roots = new Set(
|
|
4795
4916
|
measured.filter(
|
|
4796
|
-
([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))
|
|
4797
4920
|
).map(([object]) => object)
|
|
4798
4921
|
);
|
|
4799
4922
|
rootsByDistribution.set(id, roots);
|
|
@@ -5087,12 +5210,40 @@ async function withSwiftRootLock(root, work, signal, wait = true) {
|
|
|
5087
5210
|
}
|
|
5088
5211
|
}
|
|
5089
5212
|
|
|
5090
|
-
// src/swift-
|
|
5213
|
+
// src/swift-uniform-type-constants.ts
|
|
5091
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");
|
|
5092
5243
|
var import_node_crypto7 = require("node:crypto");
|
|
5093
5244
|
var import_node_fs14 = __toESM(require("node:fs"), 1);
|
|
5094
5245
|
var import_node_os8 = __toESM(require("node:os"), 1);
|
|
5095
|
-
var
|
|
5246
|
+
var import_node_path16 = __toESM(require("node:path"), 1);
|
|
5096
5247
|
function readULEB2(b, o) {
|
|
5097
5248
|
let res = 0;
|
|
5098
5249
|
let shift = 0;
|
|
@@ -5751,12 +5902,12 @@ function parseWasmObjectCached(file, isDist, useCache) {
|
|
|
5751
5902
|
}
|
|
5752
5903
|
function peachHome2() {
|
|
5753
5904
|
const override = process.env.PEACH_HOME;
|
|
5754
|
-
return override ?
|
|
5905
|
+
return override ? import_node_path16.default.resolve(override) : import_node_path16.default.join(import_node_os8.default.homedir(), ".peach");
|
|
5755
5906
|
}
|
|
5756
5907
|
function ensureUnpackedSdkObjects(sdkWasiDir) {
|
|
5757
5908
|
const sdkKey = (0, import_node_crypto7.createHash)("sha256").update(sdkWasiDir).digest("hex").slice(0, 16);
|
|
5758
|
-
const outDir =
|
|
5759
|
-
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");
|
|
5760
5911
|
if (import_node_fs14.default.existsSync(stamp)) return outDir;
|
|
5761
5912
|
const tmpDir = `${outDir}.${process.pid}.${Date.now()}.tmp`;
|
|
5762
5913
|
import_node_fs14.default.mkdirSync(tmpDir, { recursive: true });
|
|
@@ -5764,7 +5915,7 @@ function ensureUnpackedSdkObjects(sdkWasiDir) {
|
|
|
5764
5915
|
for (const archive of archives) {
|
|
5765
5916
|
const aBase = archive.replace(/\.a$/, "");
|
|
5766
5917
|
const members = readArMembers(
|
|
5767
|
-
new Uint8Array(import_node_fs14.default.readFileSync(
|
|
5918
|
+
new Uint8Array(import_node_fs14.default.readFileSync(import_node_path16.default.join(sdkWasiDir, archive)))
|
|
5768
5919
|
);
|
|
5769
5920
|
const seen = /* @__PURE__ */ new Map();
|
|
5770
5921
|
for (const m of members) {
|
|
@@ -5773,11 +5924,11 @@ function ensureUnpackedSdkObjects(sdkWasiDir) {
|
|
|
5773
5924
|
const suffix = count > 1 ? `_${count}` : "";
|
|
5774
5925
|
const safeName = m.name.replaceAll("/", "__");
|
|
5775
5926
|
const outName = `${aBase}__${safeName}${suffix}`;
|
|
5776
|
-
import_node_fs14.default.writeFileSync(
|
|
5927
|
+
import_node_fs14.default.writeFileSync(import_node_path16.default.join(tmpDir, outName), m.bytes);
|
|
5777
5928
|
}
|
|
5778
5929
|
}
|
|
5779
|
-
import_node_fs14.default.writeFileSync(
|
|
5780
|
-
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 });
|
|
5781
5932
|
if (import_node_fs14.default.existsSync(stamp)) {
|
|
5782
5933
|
import_node_fs14.default.rmSync(tmpDir, { recursive: true, force: true });
|
|
5783
5934
|
return outDir;
|
|
@@ -5787,7 +5938,7 @@ function ensureUnpackedSdkObjects(sdkWasiDir) {
|
|
|
5787
5938
|
return outDir;
|
|
5788
5939
|
}
|
|
5789
5940
|
function isPrunableSdkFile(file) {
|
|
5790
|
-
const base =
|
|
5941
|
+
const base = import_node_path16.default.basename(file);
|
|
5791
5942
|
const aBase = base.split("__")[0];
|
|
5792
5943
|
if (PRUNED_SDK_ARCHIVES.has(aBase)) return true;
|
|
5793
5944
|
if (base === "libswiftCore__Swift.o" || base === "libswift_Concurrency___Concurrency.o") {
|
|
@@ -5796,14 +5947,14 @@ function isPrunableSdkFile(file) {
|
|
|
5796
5947
|
return false;
|
|
5797
5948
|
}
|
|
5798
5949
|
function getModulePrefix(file) {
|
|
5799
|
-
const base =
|
|
5950
|
+
const base = import_node_path16.default.basename(file);
|
|
5800
5951
|
const dbl = base.indexOf("__");
|
|
5801
5952
|
if (dbl > 0) return base.slice(0, dbl);
|
|
5802
5953
|
const dash = base.indexOf("-");
|
|
5803
5954
|
return dash > 0 ? base.slice(0, dash) : base;
|
|
5804
5955
|
}
|
|
5805
5956
|
function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTargets = []) {
|
|
5806
|
-
const rspPath =
|
|
5957
|
+
const rspPath = import_node_path16.default.join(directory, ".peach-link.rsp");
|
|
5807
5958
|
if (!import_node_fs14.default.existsSync(rspPath)) return;
|
|
5808
5959
|
const origRsp = import_node_fs14.default.readFileSync(rspPath, "utf8");
|
|
5809
5960
|
const tokens = Array.from(origRsp.matchAll(/"([^"]+)"|(\S+)/g), (m) => m[1] ?? m[2]);
|
|
@@ -5814,8 +5965,8 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
5814
5965
|
if (!sdkFlag) return;
|
|
5815
5966
|
const sdkWasiDir = sdkFlag.slice(2);
|
|
5816
5967
|
const sdkObjsDir = ensureUnpackedSdkObjects(sdkWasiDir);
|
|
5817
|
-
const distDir =
|
|
5818
|
-
const prunedObjsDir =
|
|
5968
|
+
const distDir = import_node_path16.default.join(moduleRoot, "lib");
|
|
5969
|
+
const prunedObjsDir = import_node_path16.default.join(directory, ".peach-pruned-objs");
|
|
5819
5970
|
import_node_fs14.default.rmSync(prunedObjsDir, { recursive: true, force: true });
|
|
5820
5971
|
import_node_fs14.default.mkdirSync(prunedObjsDir, { recursive: true });
|
|
5821
5972
|
const distFiles = [];
|
|
@@ -5835,7 +5986,9 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
5835
5986
|
}
|
|
5836
5987
|
if (t.endsWith(".o")) {
|
|
5837
5988
|
if (t.startsWith(distDir)) {
|
|
5838
|
-
if (
|
|
5989
|
+
if (!foundationCategoryObjects.some(
|
|
5990
|
+
(name2) => import_node_path16.default.basename(t) === `Foundation-${name2}.o`
|
|
5991
|
+
)) {
|
|
5839
5992
|
distFiles.push(t);
|
|
5840
5993
|
}
|
|
5841
5994
|
if (!inStartLib) eagerFiles.push(t);
|
|
@@ -5855,12 +6008,12 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
5855
6008
|
}
|
|
5856
6009
|
}
|
|
5857
6010
|
}
|
|
5858
|
-
const distBaseNames = new Set(distFiles.map((f) =>
|
|
6011
|
+
const distBaseNames = new Set(distFiles.map((f) => import_node_path16.default.basename(f)));
|
|
5859
6012
|
const libDirs = tokens.filter((t) => t.startsWith("-L")).map((t) => t.slice(2));
|
|
5860
6013
|
const supersededLibFlags = /* @__PURE__ */ new Set();
|
|
5861
6014
|
for (const t of tokens) {
|
|
5862
6015
|
if (!t.startsWith("-l") || OMIT_SDK_LIB_FLAGS.has(t)) continue;
|
|
5863
|
-
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));
|
|
5864
6017
|
if (!archive) continue;
|
|
5865
6018
|
const members = readArMembers(new Uint8Array(import_node_fs14.default.readFileSync(archive)));
|
|
5866
6019
|
if (members.length > 0 && members.every((m) => distBaseNames.has(m.name))) {
|
|
@@ -5869,7 +6022,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
5869
6022
|
}
|
|
5870
6023
|
let patchedSwiftrtPath = "";
|
|
5871
6024
|
if (swiftrtOrigPath && import_node_fs14.default.existsSync(swiftrtOrigPath)) {
|
|
5872
|
-
patchedSwiftrtPath =
|
|
6025
|
+
patchedSwiftrtPath = import_node_path16.default.join(prunedObjsDir, "swiftrt-patched.o");
|
|
5873
6026
|
import_node_fs14.default.writeFileSync(
|
|
5874
6027
|
patchedSwiftrtPath,
|
|
5875
6028
|
patchSwiftrtObject(new Uint8Array(import_node_fs14.default.readFileSync(swiftrtOrigPath)))
|
|
@@ -5877,7 +6030,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
5877
6030
|
eagerFiles.push(patchedSwiftrtPath);
|
|
5878
6031
|
}
|
|
5879
6032
|
const allSdkObjFiles = import_node_fs14.default.readdirSync(sdkObjsDir).filter((f) => f.endsWith(".o") || f.endsWith(".obj")).sort();
|
|
5880
|
-
const sdkFiles = allSdkObjFiles.map((f) =>
|
|
6033
|
+
const sdkFiles = allSdkObjFiles.map((f) => import_node_path16.default.join(sdkObjsDir, f));
|
|
5881
6034
|
const distObjs = /* @__PURE__ */ new Map();
|
|
5882
6035
|
const lazyProviders = /* @__PURE__ */ new Map();
|
|
5883
6036
|
const registerLazyProvider = (obj) => {
|
|
@@ -6126,7 +6279,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6126
6279
|
hasClangObjCEager = true;
|
|
6127
6280
|
}
|
|
6128
6281
|
if (isDist) {
|
|
6129
|
-
const base =
|
|
6282
|
+
const base = import_node_path16.default.basename(f);
|
|
6130
6283
|
if (base.startsWith("PeachFoundation-") || base.startsWith("PeachObjC-") || base.startsWith("PeachICU-") || base.startsWith("Darwin-")) {
|
|
6131
6284
|
for (let i = 0; i < obj.symNames.length; i++) {
|
|
6132
6285
|
const sName = obj.symNames[i];
|
|
@@ -6139,13 +6292,10 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6139
6292
|
}
|
|
6140
6293
|
const eagerSdkCategoryFiles = [];
|
|
6141
6294
|
if (hasClangObjCEager) {
|
|
6142
|
-
for (const name2 of
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
"libFoundation__NSCoderPrimitives.objc.o"
|
|
6147
|
-
]) {
|
|
6148
|
-
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);
|
|
6149
6299
|
const obj = distObjs.get(sdkFile);
|
|
6150
6300
|
if (obj) {
|
|
6151
6301
|
extractObject(obj);
|
|
@@ -6508,21 +6658,21 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6508
6658
|
const reachedPrunableObjs = prunableCandidates.map((f) => distObjs.get(f)).filter((o) => extractedObjs.has(o));
|
|
6509
6659
|
const prunedMap = /* @__PURE__ */ new Map();
|
|
6510
6660
|
for (const o of reachedPrunableObjs) {
|
|
6511
|
-
const outPath =
|
|
6661
|
+
const outPath = import_node_path16.default.join(prunedObjsDir, import_node_path16.default.basename(o.file));
|
|
6512
6662
|
writePrunedObject(o, outPath);
|
|
6513
6663
|
prunedMap.set(o.file, outPath);
|
|
6514
6664
|
}
|
|
6515
6665
|
for (const o of eagerBuildPrunable) {
|
|
6516
|
-
const outPath =
|
|
6666
|
+
const outPath = import_node_path16.default.join(
|
|
6517
6667
|
prunedObjsDir,
|
|
6518
|
-
`build-${
|
|
6668
|
+
`build-${import_node_path16.default.basename(import_node_path16.default.dirname(o.file))}-${import_node_path16.default.basename(o.file)}`
|
|
6519
6669
|
);
|
|
6520
6670
|
writePrunedObject(o, outPath);
|
|
6521
6671
|
prunedMap.set(o.file, outPath);
|
|
6522
6672
|
}
|
|
6523
6673
|
const extraCoreConcurrencyObjs = allSdkObjFiles.filter(
|
|
6524
6674
|
(f) => f.startsWith("libswiftCore__") && f !== "libswiftCore__Swift.o" || f.startsWith("libswift_Concurrency__") && f !== "libswift_Concurrency___Concurrency.o"
|
|
6525
|
-
).map((f) =>
|
|
6675
|
+
).map((f) => import_node_path16.default.join(sdkObjsDir, f));
|
|
6526
6676
|
const outTokens = [];
|
|
6527
6677
|
const emittedPruned = /* @__PURE__ */ new Set();
|
|
6528
6678
|
inStartLib = false;
|
|
@@ -6570,9 +6720,9 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6570
6720
|
outTokens.push(t);
|
|
6571
6721
|
}
|
|
6572
6722
|
}
|
|
6573
|
-
const prunedRspPath =
|
|
6723
|
+
const prunedRspPath = import_node_path16.default.join(directory, ".peach-link.pruned.rsp");
|
|
6574
6724
|
import_node_fs14.default.writeFileSync(prunedRspPath, outTokens.map((t) => JSON.stringify(t)).join(" "));
|
|
6575
|
-
(0,
|
|
6725
|
+
(0, import_node_child_process12.execFileSync)(import_node_path16.default.join(toolchainBin, "wasm-ld"), [`@${prunedRspPath}`], {
|
|
6576
6726
|
stdio: "pipe"
|
|
6577
6727
|
});
|
|
6578
6728
|
import_node_fs14.default.rmSync(rspPath, { force: true });
|
|
@@ -6581,17 +6731,40 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6581
6731
|
// src/swiftContract.ts
|
|
6582
6732
|
var SWIFT_REMOTE_PACKAGES_DIR = "__packages__";
|
|
6583
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
|
+
}
|
|
6584
6738
|
function isSwiftPackageFiles(value) {
|
|
6585
6739
|
return value !== null && typeof value === "object" && !Array.isArray(value) && Object.entries(value).every(
|
|
6586
|
-
([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)
|
|
6587
6741
|
);
|
|
6588
6742
|
}
|
|
6589
|
-
|
|
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
|
+
}
|
|
6590
6755
|
function isSwiftProjectFiles(value) {
|
|
6591
6756
|
return value !== null && typeof value === "object" && !Array.isArray(value) && Object.entries(value).every(
|
|
6592
|
-
([file, bytes]) =>
|
|
6757
|
+
([file, bytes]) => swiftProjectEntryProblem(file, bytes) === void 0
|
|
6593
6758
|
);
|
|
6594
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
|
+
}
|
|
6595
6768
|
var SWIFT_NATIVE_INPUT_ROOT = "$(PEACH_INPUT_ROOT)";
|
|
6596
6769
|
var SWIFT_NATIVE_SDK_INCLUDE = "$(PEACH_SDK_INCLUDE)";
|
|
6597
6770
|
function isSwiftHeaderAliases(value) {
|
|
@@ -6661,6 +6834,7 @@ function swiftNativeTargetsRefusal(value) {
|
|
|
6661
6834
|
))
|
|
6662
6835
|
return at("productHeaders");
|
|
6663
6836
|
if (!strings(field("flags"))) return at("flags");
|
|
6837
|
+
if (!strings(field("importerFlags"))) return at("importerFlags");
|
|
6664
6838
|
if (!strings(field("cxxFlags"))) return at("cxxFlags");
|
|
6665
6839
|
if (!perFile || typeof perFile !== "object" || Array.isArray(perFile) || !Object.entries(perFile).every(
|
|
6666
6840
|
([file, flags]) => isSwiftResourcePath(file) && strings(flags)
|
|
@@ -6680,7 +6854,7 @@ function isSwiftBundlePath(value) {
|
|
|
6680
6854
|
return typeof value === "string" && (value === "." || isSwiftResourcePath(value) && /\.(bundle|framework)$/.test(value));
|
|
6681
6855
|
}
|
|
6682
6856
|
function isSwiftResourceBundles(value) {
|
|
6683
|
-
return Array.isArray(value) && value.
|
|
6857
|
+
return Array.isArray(value) && value.every(
|
|
6684
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)
|
|
6685
6859
|
) && new Set(value.map((bundle) => bundle.target)).size === value.length && new Set(value.map((bundle) => bundle.path)).size === value.length;
|
|
6686
6860
|
}
|
|
@@ -6712,9 +6886,19 @@ async function optimizeWasm(file, output) {
|
|
|
6712
6886
|
throw new Error(`wasm-opt exited ${result.status}: ${result.stderr}`);
|
|
6713
6887
|
}
|
|
6714
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
|
+
|
|
6715
6899
|
// src/xcode-header-search.ts
|
|
6716
|
-
var
|
|
6717
|
-
var
|
|
6900
|
+
var import_node_fs16 = __toESM(require("node:fs"), 1);
|
|
6901
|
+
var import_node_path18 = __toESM(require("node:path"), 1);
|
|
6718
6902
|
function headerMap(entries) {
|
|
6719
6903
|
const unique = /* @__PURE__ */ new Map();
|
|
6720
6904
|
for (const entry of entries)
|
|
@@ -6757,7 +6941,7 @@ function headerMap(entries) {
|
|
|
6757
6941
|
return Buffer.concat([table, ...strings]);
|
|
6758
6942
|
}
|
|
6759
6943
|
function writeXcodeHeaderSearch(directory, targets, headerAliases = {}) {
|
|
6760
|
-
|
|
6944
|
+
import_node_fs16.default.mkdirSync(directory, { recursive: true });
|
|
6761
6945
|
const productDirectories = /* @__PURE__ */ new Map();
|
|
6762
6946
|
for (const [product, original] of new Map([
|
|
6763
6947
|
...Object.entries(headerAliases),
|
|
@@ -6770,12 +6954,12 @@ function writeXcodeHeaderSearch(directory, targets, headerAliases = {}) {
|
|
|
6770
6954
|
seen.add(file);
|
|
6771
6955
|
file = headerAliases[file];
|
|
6772
6956
|
}
|
|
6773
|
-
const listed = productDirectories.get(
|
|
6774
|
-
productDirectories.set(
|
|
6775
|
-
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 });
|
|
6776
6960
|
}
|
|
6777
|
-
const overlay =
|
|
6778
|
-
|
|
6961
|
+
const overlay = import_node_path18.default.join(directory, "all-product-headers.yaml");
|
|
6962
|
+
writeBuildFile(
|
|
6779
6963
|
overlay,
|
|
6780
6964
|
JSON.stringify({
|
|
6781
6965
|
"case-sensitive": "false",
|
|
@@ -6794,8 +6978,8 @@ function writeXcodeHeaderSearch(directory, targets, headerAliases = {}) {
|
|
|
6794
6978
|
const files = [overlay];
|
|
6795
6979
|
const flags = targets.map((target, index) => {
|
|
6796
6980
|
const maps = target.headerMaps.map((map, order) => {
|
|
6797
|
-
const file =
|
|
6798
|
-
|
|
6981
|
+
const file = import_node_path18.default.join(directory, `${index}-${order}.hmap`);
|
|
6982
|
+
writeBuildFile(file, headerMap(map.entries));
|
|
6799
6983
|
files.push(file);
|
|
6800
6984
|
return { flag: map.flag, file };
|
|
6801
6985
|
});
|
|
@@ -6822,7 +7006,7 @@ async function runCompiler(command, args, options, stream = false, quiet) {
|
|
|
6822
7006
|
detached: true,
|
|
6823
7007
|
stdio: ["ignore", "pipe", "pipe"]
|
|
6824
7008
|
};
|
|
6825
|
-
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);
|
|
6826
7010
|
let stopping;
|
|
6827
7011
|
try {
|
|
6828
7012
|
return await new Promise((resolve, reject) => {
|
|
@@ -6900,70 +7084,82 @@ var WASM_TRIPLE = "wasm32-unknown-wasip1";
|
|
|
6900
7084
|
var SWIFTPM_PROGRESS = /^\[\d+\/\d+\] /;
|
|
6901
7085
|
var SWIFTPM_NOISE = /^(?:\[\d+\/\d+\] |Building for production\.\.\.$|warning: '--build-system native' has been deprecated)/;
|
|
6902
7086
|
var admittedCores = Number(process.env.TM_EXEC_CPU_CORES);
|
|
6903
|
-
var
|
|
6904
|
-
|
|
6905
|
-
|
|
6906
|
-
|
|
6907
|
-
Number.isInteger(admittedCores) && admittedCores > 0 ? admittedCores : 4
|
|
6908
|
-
)
|
|
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
|
|
6909
7091
|
);
|
|
7092
|
+
var BUILD_JOBS = String(SWIFT_BUILD_JOBS);
|
|
6910
7093
|
var SWIFT_BUILDER_TRANSPORT_MARGIN_MS = 3e5;
|
|
6911
7094
|
var SWIFT_BUILDER_DEFAULT_COMPILE_MS = 18e5;
|
|
6912
7095
|
function swiftBuilderHopTimeoutMs(compileTimeoutMs) {
|
|
6913
7096
|
return (compileTimeoutMs ?? SWIFT_BUILDER_DEFAULT_COMPILE_MS) + SWIFT_BUILDER_TRANSPORT_MARGIN_MS;
|
|
6914
7097
|
}
|
|
6915
7098
|
function swiftDistributionAt(root) {
|
|
6916
|
-
const file =
|
|
6917
|
-
if (!(0,
|
|
6918
|
-
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")));
|
|
6919
7102
|
}
|
|
6920
7103
|
function swiftModuleInterface(moduleRoot, name2, interfaceRoot) {
|
|
6921
7104
|
if (swiftDistributionAt(moduleRoot)) {
|
|
6922
|
-
const file =
|
|
6923
|
-
interfaceRoot ??
|
|
7105
|
+
const file = import_node_path19.default.join(
|
|
7106
|
+
interfaceRoot ?? import_node_path19.default.join(moduleRoot, "modules"),
|
|
6924
7107
|
`${name2}-Swift.h`
|
|
6925
7108
|
);
|
|
6926
|
-
if (!(0,
|
|
6927
|
-
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"));
|
|
6928
7111
|
return { declared: swiftInterfaceDeclarations(header), header };
|
|
6929
7112
|
}
|
|
6930
|
-
const sources =
|
|
6931
|
-
if (!(0,
|
|
7113
|
+
const sources = import_node_path19.default.join(moduleRoot, "Sources", name2);
|
|
7114
|
+
if (!(0, import_node_fs17.existsSync)(sources)) return null;
|
|
6932
7115
|
const declared = /* @__PURE__ */ new Set();
|
|
6933
|
-
for (const file of (0,
|
|
7116
|
+
for (const file of (0, import_node_fs17.readdirSync)(sources, { recursive: true, encoding: "utf8" }))
|
|
6934
7117
|
if (file.endsWith(".swift"))
|
|
6935
|
-
for (const [, objc] of (0,
|
|
7118
|
+
for (const [, objc] of (0, import_node_fs17.readFileSync)(import_node_path19.default.join(sources, file), "utf8").matchAll(
|
|
6936
7119
|
/@objc\((\w+)\)\s+(?:\w+\s+)*?(?:protocol|class)\s/g
|
|
6937
7120
|
))
|
|
6938
7121
|
declared.add(objc);
|
|
6939
7122
|
if (declared.size === 0) return null;
|
|
6940
|
-
const built =
|
|
7123
|
+
const built = import_node_path19.default.join(moduleRoot, ".build/host", `${name2}-Swift.h`);
|
|
6941
7124
|
return {
|
|
6942
7125
|
declared,
|
|
6943
|
-
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
|
|
6944
7127
|
`
|
|
6945
7128
|
};
|
|
6946
7129
|
}
|
|
6947
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");
|
|
6948
7131
|
var swiftInterfaceDeclarations = (header) => /* @__PURE__ */ new Set([
|
|
6949
|
-
...[
|
|
6950
|
-
|
|
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])
|
|
6951
7142
|
]);
|
|
6952
7143
|
function withoutSwiftDeclarations(text2, declared, interfaceImport) {
|
|
6953
7144
|
const out = [];
|
|
6954
|
-
let skipping
|
|
7145
|
+
let skipping;
|
|
6955
7146
|
let imported = false;
|
|
6956
7147
|
let regionStart = -1;
|
|
6957
7148
|
for (const line of text2.split("\n")) {
|
|
6958
7149
|
if (skipping) {
|
|
6959
|
-
if (/^@end\b/.test(line)
|
|
7150
|
+
if (skipping === "objc" ? /^@end\b/.test(line) : /^\s*};/.test(line))
|
|
7151
|
+
skipping = void 0;
|
|
6960
7152
|
continue;
|
|
6961
7153
|
}
|
|
6962
7154
|
if (regionStart < 0 && /^NS_ASSUME_NONNULL_BEGIN\b/.test(line))
|
|
6963
7155
|
regionStart = out.length;
|
|
6964
7156
|
const name2 = /^@(?:protocol|interface)\s+(\w+)\s*(?=[:<{]|$)/.exec(line)?.[1];
|
|
6965
|
-
|
|
6966
|
-
|
|
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();
|
|
6967
7163
|
if (!imported)
|
|
6968
7164
|
out.splice(regionStart < 0 ? out.length : regionStart, 0, interfaceImport);
|
|
6969
7165
|
imported = true;
|
|
@@ -6995,6 +7191,9 @@ function swiftModuleInputFiles(root) {
|
|
|
6995
7191
|
...swiftSharedSdkInputFiles(root),
|
|
6996
7192
|
"../peachsim/src/swift-shared-sdk.ts",
|
|
6997
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",
|
|
6998
7197
|
"../../scripts/generate/swift-sdk-module/darwin-mach.json",
|
|
6999
7198
|
"../../scripts/generate/swift-sdk-module/darwin-socketvar.json",
|
|
7000
7199
|
"../../scripts/ops/swift-distribution-publish.ts",
|
|
@@ -7002,8 +7201,7 @@ function swiftModuleInputFiles(root) {
|
|
|
7002
7201
|
"scripts/contrast-app-Package.swift",
|
|
7003
7202
|
"scripts/build-distribution.ts",
|
|
7004
7203
|
"scripts/distribution-clang.ts",
|
|
7005
|
-
"
|
|
7006
|
-
"scripts/distribution-libxml2.json",
|
|
7204
|
+
"runtime/UniformTypeIdentifiersConstants.m",
|
|
7007
7205
|
"Sources/libxml2/include/module.modulemap",
|
|
7008
7206
|
"Sources/libxml2/COPYING",
|
|
7009
7207
|
"scripts/build-distribution-plugins.sh",
|
|
@@ -7012,7 +7210,7 @@ function swiftModuleInputFiles(root) {
|
|
|
7012
7210
|
"toolchain.json"
|
|
7013
7211
|
];
|
|
7014
7212
|
const walk = (dir) => {
|
|
7015
|
-
for (const entry of (0,
|
|
7213
|
+
for (const entry of (0, import_node_fs17.readdirSync)(import_node_path19.default.join(root, dir), {
|
|
7016
7214
|
withFileTypes: true
|
|
7017
7215
|
})) {
|
|
7018
7216
|
const relative = `${dir}/${entry.name}`;
|
|
@@ -7030,43 +7228,43 @@ function swiftMacroPlugins(moduleRoot) {
|
|
|
7030
7228
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
7031
7229
|
if (distribution)
|
|
7032
7230
|
return {
|
|
7033
|
-
libraries: distribution.plugins.filter((plugin) =>
|
|
7034
|
-
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)),
|
|
7035
7233
|
stale: false
|
|
7036
7234
|
};
|
|
7037
|
-
const dir =
|
|
7235
|
+
const dir = import_node_path19.default.join(moduleRoot, ".build/host/RnxPreviewMacros");
|
|
7038
7236
|
const release = JSON.parse(
|
|
7039
|
-
(0,
|
|
7237
|
+
(0, import_node_fs17.readFileSync)(import_node_path19.default.join(moduleRoot, "toolchain.json"), "utf8")
|
|
7040
7238
|
).release;
|
|
7041
|
-
const compilerStamp =
|
|
7042
|
-
const pluginScript =
|
|
7043
|
-
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");
|
|
7044
7242
|
const ext = process.platform === "darwin" ? "dylib" : "so";
|
|
7045
7243
|
const plugins = [
|
|
7046
7244
|
{
|
|
7047
|
-
library:
|
|
7048
|
-
sources: [
|
|
7245
|
+
library: import_node_path19.default.join(dir, `libRnxPreviewMacros.${ext}`),
|
|
7246
|
+
sources: [import_node_path19.default.join(moduleRoot, "Sources/RnxPreviewMacros/PreviewMacro.swift")]
|
|
7049
7247
|
},
|
|
7050
7248
|
{
|
|
7051
|
-
library:
|
|
7249
|
+
library: import_node_path19.default.join(dir, `libFoundationMacros.${ext}`),
|
|
7052
7250
|
sources: [
|
|
7053
|
-
|
|
7054
|
-
|
|
7251
|
+
import_node_path19.default.join(moduleRoot, "Sources/FoundationMacros/PredicateMacro.swift"),
|
|
7252
|
+
import_node_path19.default.join(moduleRoot, "Sources/SwiftMacroSupport/PredicateExpression.swift")
|
|
7055
7253
|
]
|
|
7056
7254
|
},
|
|
7057
7255
|
{
|
|
7058
|
-
library:
|
|
7256
|
+
library: import_node_path19.default.join(dir, `libTipKitMacros.${ext}`),
|
|
7059
7257
|
sources: [
|
|
7060
|
-
|
|
7061
|
-
|
|
7258
|
+
import_node_path19.default.join(moduleRoot, "Sources/TipKitMacros/TipKitMacros.swift"),
|
|
7259
|
+
import_node_path19.default.join(moduleRoot, "Sources/SwiftMacroSupport/PredicateExpression.swift")
|
|
7062
7260
|
]
|
|
7063
7261
|
}
|
|
7064
7262
|
];
|
|
7065
7263
|
return {
|
|
7066
7264
|
libraries: plugins.map(({ library }) => library),
|
|
7067
7265
|
executables: [expoPlugin],
|
|
7068
|
-
stale: !(0,
|
|
7069
|
-
({ 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)
|
|
7070
7268
|
)
|
|
7071
7269
|
};
|
|
7072
7270
|
}
|
|
@@ -7076,14 +7274,14 @@ async function ensureMacroPlugins(moduleRoot, toolchainBin, release, signal, lea
|
|
|
7076
7274
|
await runCompiler(
|
|
7077
7275
|
"sh",
|
|
7078
7276
|
[
|
|
7079
|
-
|
|
7277
|
+
import_node_path19.default.join(moduleRoot, "scripts/build-preview-plugin.sh"),
|
|
7080
7278
|
toolchainBin,
|
|
7081
7279
|
libraries[0]
|
|
7082
7280
|
],
|
|
7083
7281
|
{ signal, lease }
|
|
7084
7282
|
);
|
|
7085
|
-
(0,
|
|
7086
|
-
|
|
7283
|
+
(0, import_node_fs17.writeFileSync)(
|
|
7284
|
+
import_node_path19.default.join(import_node_path19.default.dirname(libraries[0]), "compiler-release"),
|
|
7087
7285
|
`${release}
|
|
7088
7286
|
`
|
|
7089
7287
|
);
|
|
@@ -7099,7 +7297,7 @@ function swiftModuleDigest(root) {
|
|
|
7099
7297
|
const files = swiftModuleInputFiles(root);
|
|
7100
7298
|
const stampHash = (0, import_node_crypto8.createHash)("sha256");
|
|
7101
7299
|
for (const file of files) {
|
|
7102
|
-
const stat = (0,
|
|
7300
|
+
const stat = (0, import_node_fs17.statSync)(import_node_path19.default.join(root, file), { bigint: true });
|
|
7103
7301
|
stampHash.update(file);
|
|
7104
7302
|
stampHash.update(
|
|
7105
7303
|
`${stat.dev}:${stat.ino}:${stat.size}:${stat.mtimeNs}:${stat.ctimeNs}
|
|
@@ -7109,13 +7307,13 @@ function swiftModuleDigest(root) {
|
|
|
7109
7307
|
const stamp = stampHash.digest("hex");
|
|
7110
7308
|
const cached = linkedModuleDigests.get(root);
|
|
7111
7309
|
if (cached?.stamp === stamp) return cached.digest;
|
|
7112
|
-
const record =
|
|
7310
|
+
const record = import_node_path19.default.join(
|
|
7113
7311
|
swiftCacheDir(),
|
|
7114
7312
|
"swift-module-digests",
|
|
7115
7313
|
`${(0, import_node_crypto8.createHash)("sha256").update(root).digest("hex")}.json`
|
|
7116
7314
|
);
|
|
7117
|
-
if ((0,
|
|
7118
|
-
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"));
|
|
7119
7317
|
if (saved && typeof saved === "object" && Reflect.get(saved, "stamp") === stamp && typeof Reflect.get(saved, "digest") === "string") {
|
|
7120
7318
|
const digest2 = Buffer.from(String(Reflect.get(saved, "digest")), "hex");
|
|
7121
7319
|
linkedModuleDigests.set(root, { stamp, digest: digest2 });
|
|
@@ -7126,15 +7324,15 @@ function swiftModuleDigest(root) {
|
|
|
7126
7324
|
for (const file of files) {
|
|
7127
7325
|
hash.update((0, import_node_crypto8.createHash)("sha256").update(file).digest());
|
|
7128
7326
|
hash.update(
|
|
7129
|
-
(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()
|
|
7130
7328
|
);
|
|
7131
7329
|
}
|
|
7132
7330
|
const digest = hash.digest();
|
|
7133
7331
|
linkedModuleDigests.set(root, { stamp, digest });
|
|
7134
|
-
(0,
|
|
7332
|
+
(0, import_node_fs17.mkdirSync)(import_node_path19.default.dirname(record), { recursive: true });
|
|
7135
7333
|
const partial = `${record}.${process.pid}.${(0, import_node_crypto8.randomUUID)()}`;
|
|
7136
|
-
(0,
|
|
7137
|
-
(0,
|
|
7334
|
+
(0, import_node_fs17.writeFileSync)(partial, JSON.stringify({ stamp, digest: digest.toString("hex") }));
|
|
7335
|
+
(0, import_node_fs17.renameSync)(partial, record);
|
|
7138
7336
|
return digest;
|
|
7139
7337
|
}
|
|
7140
7338
|
function swiftProjectBuildKey(moduleRoot, release) {
|
|
@@ -7183,20 +7381,26 @@ function withNativeSourceGlue(input, glue) {
|
|
|
7183
7381
|
...input,
|
|
7184
7382
|
files: {
|
|
7185
7383
|
...input.files,
|
|
7186
|
-
[
|
|
7384
|
+
[import_node_path19.default.posix.join(targetPath, "OneNativeSource.generated.swift")]: glue
|
|
7187
7385
|
},
|
|
7188
7386
|
oneModule: true
|
|
7189
7387
|
};
|
|
7190
7388
|
}
|
|
7191
7389
|
var OPTIONAL_FRAMEWORK_DEPENDENCIES = {
|
|
7390
|
+
PDFKit: [],
|
|
7391
|
+
CFNetwork: ["PeachCFNetwork"],
|
|
7392
|
+
PeachCFNetwork: [],
|
|
7393
|
+
JavaScriptCore: ["PeachJavaScriptCore"],
|
|
7394
|
+
PeachJavaScriptCore: [],
|
|
7192
7395
|
GameplayKit: [],
|
|
7193
7396
|
simd: [],
|
|
7194
7397
|
ModelIO: ["simd"],
|
|
7195
7398
|
GLKit: ["ModelIO"],
|
|
7196
7399
|
Accelerate: [],
|
|
7197
|
-
|
|
7400
|
+
CryptoTokenKit: [],
|
|
7198
7401
|
CommonCrypto: [],
|
|
7199
7402
|
ImagePlayground: [],
|
|
7403
|
+
QuickLook: ["QuickLookThumbnailing"],
|
|
7200
7404
|
QuickLookThumbnailing: [],
|
|
7201
7405
|
libxml2: [],
|
|
7202
7406
|
Compression: [],
|
|
@@ -7325,7 +7529,7 @@ function swiftImportNames(contents, available) {
|
|
|
7325
7529
|
function swiftPeachModules(moduleRoot) {
|
|
7326
7530
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
7327
7531
|
return distribution ? distribution.modules : swiftManifestDeclarations(
|
|
7328
|
-
(0,
|
|
7532
|
+
(0, import_node_fs17.readFileSync)(import_node_path19.default.join(moduleRoot, "Package.swift"), "utf8")
|
|
7329
7533
|
).filter((target) => !target.executable && !target.path.startsWith("fixtures/")).map((target) => target.name);
|
|
7330
7534
|
}
|
|
7331
7535
|
var sdkPaths = /* @__PURE__ */ new Map();
|
|
@@ -7335,8 +7539,8 @@ function swiftSdkPaths(moduleRoot, toolchainBin) {
|
|
|
7335
7539
|
const key = JSON.stringify([toolchainBin, sdk, options]);
|
|
7336
7540
|
const cached = sdkPaths.get(key);
|
|
7337
7541
|
if (cached) return cached;
|
|
7338
|
-
const configuration = (0,
|
|
7339
|
-
|
|
7542
|
+
const configuration = (0, import_node_child_process13.execFileSync)(
|
|
7543
|
+
import_node_path19.default.join(toolchainBin, "swift"),
|
|
7340
7544
|
[
|
|
7341
7545
|
"sdk",
|
|
7342
7546
|
"configure",
|
|
@@ -7361,7 +7565,7 @@ function swiftSdkPaths(moduleRoot, toolchainBin) {
|
|
|
7361
7565
|
if (!Array.isArray(toolsets) || !toolsets.every((value) => typeof value === "string"))
|
|
7362
7566
|
throw new Error(`swift sdk ${sdk} reports invalid toolset paths`);
|
|
7363
7567
|
for (const toolset of toolsets) {
|
|
7364
|
-
const config = JSON.parse((0,
|
|
7568
|
+
const config = JSON.parse((0, import_node_fs17.readFileSync)(toolset, "utf8"));
|
|
7365
7569
|
if (!config || typeof config !== "object" || !("swiftCompiler" in config)) continue;
|
|
7366
7570
|
const compiler = config.swiftCompiler;
|
|
7367
7571
|
if (!compiler || typeof compiler !== "object" || !("extraCLIOptions" in compiler))
|
|
@@ -7377,7 +7581,7 @@ function swiftSdkPaths(moduleRoot, toolchainBin) {
|
|
|
7377
7581
|
if (flag !== "-fwasm-exceptions") cFlags.push(flag);
|
|
7378
7582
|
if (flag === "-iframeworkwithsysroot" && options2[index + 2] === "-Xcc" && typeof options2[index + 3] === "string") {
|
|
7379
7583
|
cFlags.push(options2[index + 3]);
|
|
7380
|
-
frameworks.push(
|
|
7584
|
+
frameworks.push(import_node_path19.default.join(sysroot, options2[index + 3]));
|
|
7381
7585
|
index += 3;
|
|
7382
7586
|
continue;
|
|
7383
7587
|
}
|
|
@@ -7394,7 +7598,7 @@ function swiftSdkPaths(moduleRoot, toolchainBin) {
|
|
|
7394
7598
|
}
|
|
7395
7599
|
const paths = {
|
|
7396
7600
|
sysroot,
|
|
7397
|
-
darwin:
|
|
7601
|
+
darwin: import_node_path19.default.join(sysroot, "darwin"),
|
|
7398
7602
|
resources: field("swiftResourcesPath"),
|
|
7399
7603
|
frameworks,
|
|
7400
7604
|
cFlags
|
|
@@ -7410,29 +7614,29 @@ function swiftAvailableModules(moduleRoot, toolchainBin) {
|
|
|
7410
7614
|
if (cached) return cached;
|
|
7411
7615
|
const modules = new Set(swiftPeachModules(moduleRoot));
|
|
7412
7616
|
const { darwin, resources, frameworks } = swiftSdkPaths(moduleRoot, toolchainBin);
|
|
7413
|
-
for (const entry of (0,
|
|
7617
|
+
for (const entry of (0, import_node_fs17.readdirSync)(import_node_path19.default.join(resources, "wasi"))) {
|
|
7414
7618
|
if (entry.endsWith(".swiftmodule"))
|
|
7415
7619
|
modules.add(entry.slice(0, -".swiftmodule".length));
|
|
7416
7620
|
}
|
|
7417
|
-
for (const entry of (0,
|
|
7418
|
-
const map =
|
|
7419
|
-
if (!(0,
|
|
7420
|
-
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))
|
|
7421
7625
|
modules.add(match[1]);
|
|
7422
7626
|
}
|
|
7423
|
-
const libc =
|
|
7424
|
-
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)) {
|
|
7425
7629
|
if (!entry.endsWith(".modulemap")) continue;
|
|
7426
|
-
for (const match of (0,
|
|
7630
|
+
for (const match of (0, import_node_fs17.readFileSync)(import_node_path19.default.join(libc, entry), "utf8").matchAll(
|
|
7427
7631
|
/^module\s+([A-Za-z_]\w*)/gm
|
|
7428
7632
|
))
|
|
7429
7633
|
modules.add(match[1]);
|
|
7430
7634
|
}
|
|
7431
7635
|
for (const directory of frameworks) {
|
|
7432
|
-
for (const entry of (0,
|
|
7433
|
-
const map =
|
|
7434
|
-
if (!(0,
|
|
7435
|
-
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(
|
|
7436
7640
|
/^framework\s+module\s+([A-Za-z_]\w*)/gm
|
|
7437
7641
|
))
|
|
7438
7642
|
modules.add(match[1]);
|
|
@@ -7483,20 +7687,20 @@ function swiftSystemLibraryExclusions(files, targets, distributionModules) {
|
|
|
7483
7687
|
);
|
|
7484
7688
|
}
|
|
7485
7689
|
function distributionModulesPath(root, moduleRoot, excluded) {
|
|
7486
|
-
const modules =
|
|
7690
|
+
const modules = import_node_path19.default.join(moduleRoot, "modules");
|
|
7487
7691
|
if (!excluded || excluded.size === 0) return modules;
|
|
7488
7692
|
const key = (0, import_node_crypto8.createHash)("sha256").update([...excluded].sort().join("\0")).digest("hex").slice(0, 16);
|
|
7489
|
-
const directory =
|
|
7490
|
-
const complete =
|
|
7491
|
-
if (!(0,
|
|
7492
|
-
(0,
|
|
7493
|
-
for (const entry of (0,
|
|
7494
|
-
(0,
|
|
7495
|
-
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)) {
|
|
7496
7700
|
if (excluded.has(entry.replace(/\.swiftmodule$/, ""))) continue;
|
|
7497
|
-
(0,
|
|
7701
|
+
(0, import_node_fs17.symlinkSync)(import_node_path19.default.join(modules, entry), import_node_path19.default.join(directory, entry));
|
|
7498
7702
|
}
|
|
7499
|
-
(0,
|
|
7703
|
+
(0, import_node_fs17.writeFileSync)(complete, "");
|
|
7500
7704
|
}
|
|
7501
7705
|
return directory;
|
|
7502
7706
|
}
|
|
@@ -7516,7 +7720,8 @@ function swiftTargetDependencies(files, targets) {
|
|
|
7516
7720
|
(candidate) => candidate.name !== target.name && candidate.path !== "." && candidate.path.startsWith(prefix) && file.startsWith(`${candidate.path}/`)
|
|
7517
7721
|
))
|
|
7518
7722
|
continue;
|
|
7519
|
-
|
|
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) {
|
|
7520
7725
|
if (names.has(name2) && name2 !== target.name) deps.add(name2);
|
|
7521
7726
|
}
|
|
7522
7727
|
}
|
|
@@ -7541,7 +7746,7 @@ var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
|
7541
7746
|
).join("");
|
|
7542
7747
|
var ONE_IMPLICIT_FLAGS = ', "-Xfrontend", "-import-module", "-Xfrontend", "One"';
|
|
7543
7748
|
var executableLinkFlags = (root) => ` "-Xclang-linker", "-O0",
|
|
7544
|
-
"-Xclang-linker", ${JSON.stringify(`-fuse-ld=${
|
|
7749
|
+
"-Xclang-linker", ${JSON.stringify(`-fuse-ld=${import_node_path19.default.join(root, SWIFT_AUTOLINK_LINKER)}`)},
|
|
7545
7750
|
"-Xlinker", "-z", "-Xlinker", "stack-size=8372224",
|
|
7546
7751
|
"-Xlinker", "--stack-first",
|
|
7547
7752
|
"-Xlinker", "--global-base=8372224",
|
|
@@ -7551,8 +7756,9 @@ var executableLinkFlags = (root) => ` "-Xclang-linker", "-O0",
|
|
|
7551
7756
|
`;
|
|
7552
7757
|
var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quoted, "-Wl,--end-lib"] : [];
|
|
7553
7758
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
7554
|
-
var MULTI_MANIFEST_VERSION =
|
|
7555
|
-
var
|
|
7759
|
+
var MULTI_MANIFEST_VERSION = 64;
|
|
7760
|
+
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
7761
|
+
var compilerSourceDigest = true ? "c30b94c39ef2c57dd0f163385e565e0340acb99365cc16c5091e712d04e7fe68" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
7556
7762
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
7557
7763
|
const hash = (0, import_node_crypto8.createHash)("sha256");
|
|
7558
7764
|
hash.update(`swift-compile
|
|
@@ -7638,17 +7844,17 @@ ${target}
|
|
|
7638
7844
|
return hash.digest("hex");
|
|
7639
7845
|
}
|
|
7640
7846
|
function swiftCrossImportFlags(moduleRoot, distribution) {
|
|
7641
|
-
const overlayRoot =
|
|
7847
|
+
const overlayRoot = import_node_path19.default.join(
|
|
7642
7848
|
moduleRoot,
|
|
7643
7849
|
distribution ? "modules" : "cross-import-overlays"
|
|
7644
7850
|
);
|
|
7645
|
-
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) => [
|
|
7646
7852
|
"-Xfrontend",
|
|
7647
7853
|
"-swift-module-cross-import",
|
|
7648
7854
|
"-Xfrontend",
|
|
7649
|
-
|
|
7855
|
+
import_node_path19.default.basename(import_node_path19.default.dirname(file), ".swiftcrossimport"),
|
|
7650
7856
|
"-Xfrontend",
|
|
7651
|
-
|
|
7857
|
+
import_node_path19.default.join(overlayRoot, file)
|
|
7652
7858
|
]);
|
|
7653
7859
|
}
|
|
7654
7860
|
function withoutWasmOverlayIsystem(flags) {
|
|
@@ -7690,21 +7896,33 @@ function emitSwiftPackageManifest(args) {
|
|
|
7690
7896
|
const distributionLink = args.distributionLink;
|
|
7691
7897
|
if (distribution && distributionLink) {
|
|
7692
7898
|
const isProvider = (object) => object.startsWith(`lib/${DARWIN_RECORDS_PREFIX}`);
|
|
7693
|
-
const
|
|
7694
|
-
|
|
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(
|
|
7695
7902
|
(name2) => !object.startsWith(`lib/${name2}-`) || reachedFrameworks.has(name2)
|
|
7696
7903
|
)
|
|
7697
7904
|
);
|
|
7698
|
-
const
|
|
7699
|
-
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
|
+
);
|
|
7700
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
|
+
);
|
|
7701
7914
|
const list = [
|
|
7702
7915
|
...roots ? [
|
|
7703
|
-
...
|
|
7916
|
+
...[...eager].map(quoted),
|
|
7917
|
+
"-Wl,--start-lib",
|
|
7918
|
+
...available.filter((object) => !eager.has(object)).map(quoted),
|
|
7919
|
+
"-Wl,--end-lib"
|
|
7920
|
+
] : [
|
|
7921
|
+
...objects.map(quoted),
|
|
7704
7922
|
"-Wl,--start-lib",
|
|
7705
|
-
...
|
|
7923
|
+
...available.filter((object) => !selectedObjects.has(object)).map(quoted),
|
|
7706
7924
|
"-Wl,--end-lib"
|
|
7707
|
-
]
|
|
7925
|
+
],
|
|
7708
7926
|
...darwinRecordsRegion(distribution.objects.filter(isProvider).map(quoted))
|
|
7709
7927
|
].join("\n") + "\n";
|
|
7710
7928
|
distributionLinkPath = distributionLink.path.replace(
|
|
@@ -7719,11 +7937,32 @@ function emitSwiftPackageManifest(args) {
|
|
|
7719
7937
|
const linkedNativeModules = [...args.native?.entries() ?? []].flatMap(
|
|
7720
7938
|
([name2, value]) => value.clang ? [name2] : []
|
|
7721
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
|
+
);
|
|
7722
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("");
|
|
7723
7962
|
const stanza = (target) => {
|
|
7724
7963
|
const native = args.native?.get(target.name);
|
|
7725
7964
|
if (target.systemLibrary || native?.clang?.sources.length === 0)
|
|
7726
|
-
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)}),`;
|
|
7727
7966
|
const isolation = target.mainActorIsolation ? " .defaultIsolation(MainActor.self)," : "";
|
|
7728
7967
|
const interoperability = target.cxxInterop ? " .interoperabilityMode(.Cxx)," : "";
|
|
7729
7968
|
const defines = (target.defines ?? []).map((name2) => ` .define(${JSON.stringify(name2)}),`).join("");
|
|
@@ -7740,9 +7979,6 @@ function emitSwiftPackageManifest(args) {
|
|
|
7740
7979
|
...args.nativeHeaderFlags ?? []
|
|
7741
7980
|
];
|
|
7742
7981
|
const clang = native && !native.mixed;
|
|
7743
|
-
const nativeImports = (siblings.get(target.name) ?? []).filter((name2) => args.native?.has(name2) && !args.native.get(name2)?.mixed).map(
|
|
7744
|
-
(name2) => `, "-Xfrontend", "-import-module", "-Xfrontend", ${JSON.stringify(swiftTargetModuleName(name2))}`
|
|
7745
|
-
).join("");
|
|
7746
7982
|
const importContext = /* @__PURE__ */ new Set();
|
|
7747
7983
|
const includeImportContext = (name2) => {
|
|
7748
7984
|
if (importContext.has(name2)) return;
|
|
@@ -7770,10 +8006,11 @@ function emitSwiftPackageManifest(args) {
|
|
|
7770
8006
|
...native?.swiftFlags ?? [],
|
|
7771
8007
|
...args.objcImplementationModules?.has(target.name) ? ["-enable-experimental-feature", "ObjCImplementation"] : []
|
|
7772
8008
|
].map((flag) => `, ${JSON.stringify(flag)}`).join("");
|
|
7773
|
-
const header = args.headerDirectory && [...args.native?.values() ?? []].some(
|
|
8009
|
+
const header = args.headerDirectory && (args.nativeHeaderDeclarations?.[target.name] || [...args.native?.values() ?? []].some(
|
|
7774
8010
|
(value) => value.late?.producers.includes(target.name)
|
|
7775
|
-
) ? `, "-emit-objc-header-path", ${JSON.stringify(
|
|
7776
|
-
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}]`)})]`;
|
|
7777
8014
|
const deps = [
|
|
7778
8015
|
.../* @__PURE__ */ new Set([
|
|
7779
8016
|
...(target.dependencies ?? []).flatMap(
|
|
@@ -7800,9 +8037,12 @@ function emitSwiftPackageManifest(args) {
|
|
|
7800
8037
|
...spriteKit ? [SPRITEKIT_PRODUCT] : []
|
|
7801
8038
|
],
|
|
7802
8039
|
...(siblings.get(target.name) ?? []).flatMap(
|
|
7803
|
-
(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(
|
|
7804
8044
|
(value) => value.late?.producers.includes(dependency)
|
|
7805
|
-
) ? [] : 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}"`]
|
|
7806
8046
|
)
|
|
7807
8047
|
])
|
|
7808
8048
|
].join(", ");
|
|
@@ -7816,14 +8056,16 @@ function emitSwiftPackageManifest(args) {
|
|
|
7816
8056
|
);
|
|
7817
8057
|
const librarySettings = [
|
|
7818
8058
|
...linkedLibraries,
|
|
7819
|
-
...args.libraries?.has(target.name) ? [
|
|
8059
|
+
...args.libraries?.has(target.name) ? [
|
|
8060
|
+
`.unsafeFlags(${flagArray(`[${JSON.stringify(args.libraries.get(target.name))}]`)})`
|
|
8061
|
+
] : []
|
|
7820
8062
|
];
|
|
7821
8063
|
const link = target.executable ? `,
|
|
7822
8064
|
linkerSettings: [
|
|
7823
8065
|
${librarySettings.map((setting) => `${setting},`).join("\n ")}
|
|
7824
|
-
.unsafeFlags([
|
|
8066
|
+
.unsafeFlags(${flagArray(`[
|
|
7825
8067
|
${REACTOR_FLAG}${executableLinkFlags(args.root)} "-Xlinker", "--export-if-defined=__main_argc_argv"${library},
|
|
7826
|
-
]),
|
|
8068
|
+
]`)}),
|
|
7827
8069
|
.unsafeFlags(["-Xlinker", "--strip-all"], .when(configuration: .release)),
|
|
7828
8070
|
]` : librarySettings.length > 0 ? `,
|
|
7829
8071
|
linkerSettings: [${librarySettings.join(", ")}]` : "";
|
|
@@ -7832,30 +8074,16 @@ function emitSwiftPackageManifest(args) {
|
|
|
7832
8074
|
const nativeCxx = native?.clang?.sources.some(
|
|
7833
8075
|
(source) => /\.(?:cc|cpp|cxx|mm)$/.test(source)
|
|
7834
8076
|
);
|
|
7835
|
-
const declared = (tool) => clangSettingEntries(
|
|
7836
|
-
target.clangSettings?.map(
|
|
7837
|
-
(setting) => "flags" in setting ? {
|
|
7838
|
-
...setting,
|
|
7839
|
-
flags: setting.flags.map(
|
|
7840
|
-
(flag) => flag.replaceAll(SWIFT_NATIVE_INPUT_ROOT, args.root)
|
|
7841
|
-
)
|
|
7842
|
-
} : setting
|
|
7843
|
-
),
|
|
7844
|
-
tool
|
|
7845
|
-
).map((entry) => ` ${entry},`).join("");
|
|
7846
8077
|
const nativeSettings = native?.clang ? [
|
|
7847
|
-
`cSettings: [${cDefines} .unsafeFlags(${JSON.stringify([...nativeFlags, ...native.clang.flags])})]`,
|
|
8078
|
+
`cSettings: [${cDefines} .unsafeFlags(${flagArray(JSON.stringify([...nativeFlags, ...native.clang.flags]))})]`,
|
|
7848
8079
|
...nativeCxx ? [
|
|
7849
|
-
`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]))})]`
|
|
7850
8081
|
] : []
|
|
7851
8082
|
].join(", ") : [
|
|
7852
|
-
`cSettings: [${cDefines}${
|
|
7853
|
-
`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 ?? []]))})]`
|
|
7854
8085
|
].join(", ");
|
|
7855
|
-
const exclusions = native?.clang ? [
|
|
7856
|
-
...native.exclude ?? native.lateSources,
|
|
7857
|
-
...args.nativeResourceExclusions ?? []
|
|
7858
|
-
] : [
|
|
8086
|
+
const exclusions = native?.clang ? [] : [
|
|
7859
8087
|
...native ? native.exclude ?? native.lateSources : [],
|
|
7860
8088
|
...target.exclude ?? []
|
|
7861
8089
|
];
|
|
@@ -7863,11 +8091,11 @@ function emitSwiftPackageManifest(args) {
|
|
|
7863
8091
|
` ${kind}(`,
|
|
7864
8092
|
` name: "${target.name}",`,
|
|
7865
8093
|
` dependencies: [${deps}],`,
|
|
7866
|
-
` path: ${JSON.stringify(native?.clang ?
|
|
8094
|
+
` path: ${JSON.stringify(native?.clang ? native.clang.path : target.path)},`,
|
|
7867
8095
|
...exclusions.length ? [` exclude: ${JSON.stringify(exclusions)},`] : [],
|
|
7868
8096
|
...native?.clang ? [
|
|
7869
|
-
` sources: ${JSON.stringify(native.clang.sources
|
|
7870
|
-
|
|
8097
|
+
` sources: ${JSON.stringify(native.clang.sources)},`,
|
|
8098
|
+
' publicHeadersPath: "include",'
|
|
7871
8099
|
] : native?.flags ? [` sources: ${JSON.stringify(native.sources)},`] : [],
|
|
7872
8100
|
...!native?.clang && target.publicHeadersPath !== void 0 ? [` publicHeadersPath: ${JSON.stringify(target.publicHeadersPath)},`] : [],
|
|
7873
8101
|
// the native backend supplies dependency module maps without their
|
|
@@ -7879,6 +8107,11 @@ function emitSwiftPackageManifest(args) {
|
|
|
7879
8107
|
return [
|
|
7880
8108
|
"// swift-tools-version: 6.2",
|
|
7881
8109
|
"import PackageDescription",
|
|
8110
|
+
"import Foundation",
|
|
8111
|
+
"",
|
|
8112
|
+
"func peachCompilerArguments(_ json: String) -> [String] {",
|
|
8113
|
+
" try! JSONDecoder().decode([String].self, from: Data(json.utf8))",
|
|
8114
|
+
"}",
|
|
7882
8115
|
"",
|
|
7883
8116
|
"// generated by swift-compile from the project package partition.",
|
|
7884
8117
|
"let package = Package(",
|
|
@@ -7893,6 +8126,9 @@ function emitSwiftPackageManifest(args) {
|
|
|
7893
8126
|
].join(", ")}],`,
|
|
7894
8127
|
" targets: [",
|
|
7895
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
|
+
] : [],
|
|
7896
8132
|
...[...args.native?.entries() ?? []].flatMap(([name2, native]) => {
|
|
7897
8133
|
const late = native.late;
|
|
7898
8134
|
const nativeFlags = [
|
|
@@ -7903,6 +8139,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
7903
8139
|
return late ? (native.groups ?? [
|
|
7904
8140
|
{
|
|
7905
8141
|
name: late.name,
|
|
8142
|
+
path: native.path,
|
|
7906
8143
|
sources: native.lateSources,
|
|
7907
8144
|
flags: ["-fmodules"],
|
|
7908
8145
|
cxxFlags: ["-fmodules"]
|
|
@@ -7910,13 +8147,12 @@ function emitSwiftPackageManifest(args) {
|
|
|
7910
8147
|
]).flatMap((group) => [
|
|
7911
8148
|
` .target(name: ${JSON.stringify(group.name)},`,
|
|
7912
8149
|
` dependencies: ${JSON.stringify(native.mixed ? [] : [name2])},`,
|
|
7913
|
-
` path: ${JSON.stringify(
|
|
7914
|
-
|
|
7915
|
-
|
|
7916
|
-
`
|
|
7917
|
-
` 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]))})],`,
|
|
7918
8154
|
...group.sources.some((source) => /\.(?:cc|cpp|cxx|mm)$/.test(source)) ? [
|
|
7919
|
-
` 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]))})]),`
|
|
7920
8156
|
] : [" ),"]
|
|
7921
8157
|
]) : [];
|
|
7922
8158
|
}),
|
|
@@ -7927,22 +8163,19 @@ function emitSwiftPackageManifest(args) {
|
|
|
7927
8163
|
].join("\n");
|
|
7928
8164
|
}
|
|
7929
8165
|
function syncSwiftTree(base, files) {
|
|
7930
|
-
(0,
|
|
8166
|
+
(0, import_node_fs17.mkdirSync)(base, { recursive: true });
|
|
7931
8167
|
const walk = (dir) => {
|
|
7932
|
-
for (const entry of (0,
|
|
7933
|
-
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);
|
|
7934
8170
|
if (dir === base && (entry.name === ".build" || entry.name.startsWith(".peach-modules-") || entry.name === SWIFT_LINK_STAMP))
|
|
7935
8171
|
continue;
|
|
7936
8172
|
if (entry.isDirectory()) walk(full);
|
|
7937
|
-
else if (!files.has(full)) (0,
|
|
8173
|
+
else if (!files.has(full)) (0, import_node_fs17.rmSync)(full, { force: true });
|
|
7938
8174
|
}
|
|
7939
8175
|
};
|
|
7940
8176
|
walk(base);
|
|
7941
8177
|
for (const [full, contents] of files) {
|
|
7942
|
-
|
|
7943
|
-
continue;
|
|
7944
|
-
(0, import_node_fs16.mkdirSync)(import_node_path17.default.dirname(full), { recursive: true });
|
|
7945
|
-
(0, import_node_fs16.writeFileSync)(full, contents);
|
|
8178
|
+
writeBuildFile(full, contents);
|
|
7946
8179
|
}
|
|
7947
8180
|
}
|
|
7948
8181
|
var DIRECTIVE = /^[ \t]*#(?:if|elseif)\b/;
|
|
@@ -7971,7 +8204,10 @@ function compiledSwiftSources(files, targets) {
|
|
|
7971
8204
|
const manifest = /(?:^|\/)Package(?:@swift-[\d.]+)?\.swift$/.test(file);
|
|
7972
8205
|
return [
|
|
7973
8206
|
file,
|
|
7974
|
-
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
|
+
)
|
|
7975
8211
|
];
|
|
7976
8212
|
})
|
|
7977
8213
|
);
|
|
@@ -7988,80 +8224,6 @@ function lowerAVAssetURLCluster(source) {
|
|
|
7988
8224
|
out = out.slice(0, at) + insert + out.slice(at + remove);
|
|
7989
8225
|
return out;
|
|
7990
8226
|
}
|
|
7991
|
-
function lowerNSDictionaryLiteralReturn(source) {
|
|
7992
|
-
if (!source.includes("NSDictionary")) return source;
|
|
7993
|
-
const masked = swiftCodeMask(source);
|
|
7994
|
-
const edits = [];
|
|
7995
|
-
const wrapDictAt = (bracketStart, limit) => {
|
|
7996
|
-
let bDepth = 1;
|
|
7997
|
-
let j = bracketStart + 1;
|
|
7998
|
-
let hasColon = false;
|
|
7999
|
-
while (j < limit && bDepth > 0) {
|
|
8000
|
-
if (masked[j] === "[" || masked[j] === "(" || masked[j] === "{") bDepth++;
|
|
8001
|
-
else if (masked[j] === "]" || masked[j] === ")" || masked[j] === "}") bDepth--;
|
|
8002
|
-
else if (bDepth === 1 && masked[j] === ":") hasColon = true;
|
|
8003
|
-
j++;
|
|
8004
|
-
}
|
|
8005
|
-
if (bDepth === 0 && hasColon) {
|
|
8006
|
-
edits.push([
|
|
8007
|
-
bracketStart,
|
|
8008
|
-
j - bracketStart,
|
|
8009
|
-
`NSDictionary(dictionary: ${source.slice(bracketStart, j)})`
|
|
8010
|
-
]);
|
|
8011
|
-
}
|
|
8012
|
-
};
|
|
8013
|
-
const fnPattern = /\bfunc\b[^{]*->\s*NSDictionary\??\s*\{/g;
|
|
8014
|
-
let fnMatch;
|
|
8015
|
-
while ((fnMatch = fnPattern.exec(masked)) !== null) {
|
|
8016
|
-
const openBrace = fnMatch.index + fnMatch[0].length - 1;
|
|
8017
|
-
let depth = 1;
|
|
8018
|
-
let i = openBrace + 1;
|
|
8019
|
-
while (i < masked.length && depth > 0) {
|
|
8020
|
-
if (masked[i] === "{") depth++;
|
|
8021
|
-
else if (masked[i] === "}") depth--;
|
|
8022
|
-
i++;
|
|
8023
|
-
}
|
|
8024
|
-
const bodyEnd = i - 1;
|
|
8025
|
-
const bodyMasked = masked.slice(openBrace + 1, bodyEnd);
|
|
8026
|
-
const retPattern = /\breturn\s*\[/g;
|
|
8027
|
-
let retMatch;
|
|
8028
|
-
while ((retMatch = retPattern.exec(bodyMasked)) !== null) {
|
|
8029
|
-
const bracketStart = openBrace + 1 + retMatch.index + retMatch[0].length - 1;
|
|
8030
|
-
wrapDictAt(bracketStart, bodyEnd);
|
|
8031
|
-
}
|
|
8032
|
-
}
|
|
8033
|
-
const varPattern = /:\s*NSDictionary\??\s*=\s*\[/g;
|
|
8034
|
-
let varMatch;
|
|
8035
|
-
while ((varMatch = varPattern.exec(masked)) !== null) {
|
|
8036
|
-
wrapDictAt(varMatch.index + varMatch[0].length - 1, masked.length);
|
|
8037
|
-
}
|
|
8038
|
-
const nsDictLabels = /* @__PURE__ */ new Set();
|
|
8039
|
-
for (const m of masked.matchAll(/\b(\w+)\s*:\s*NSDictionary\??\b/g)) {
|
|
8040
|
-
if (m[1]) nsDictLabels.add(m[1]);
|
|
8041
|
-
}
|
|
8042
|
-
for (const label of nsDictLabels) {
|
|
8043
|
-
const argPattern = new RegExp(`\\b${label}\\s*:\\s*\\[`, "g");
|
|
8044
|
-
let argMatch;
|
|
8045
|
-
while ((argMatch = argPattern.exec(masked)) !== null) {
|
|
8046
|
-
const before = masked.slice(0, argMatch.index).trimEnd();
|
|
8047
|
-
if (!before.endsWith("(") && !before.endsWith(",")) continue;
|
|
8048
|
-
wrapDictAt(argMatch.index + argMatch[0].length - 1, masked.length);
|
|
8049
|
-
}
|
|
8050
|
-
}
|
|
8051
|
-
if (/\btypealias\s+\w+\s*=\s*\([^)]*,\s*NSDictionary\??\s*\)/.test(masked)) {
|
|
8052
|
-
const cbPattern = /\b\w+\s*\(\s*\.[A-Za-z_]\w*\s*,\s*\[/g;
|
|
8053
|
-
let cbMatch;
|
|
8054
|
-
while ((cbMatch = cbPattern.exec(masked)) !== null) {
|
|
8055
|
-
wrapDictAt(cbMatch.index + cbMatch[0].length - 1, masked.length);
|
|
8056
|
-
}
|
|
8057
|
-
}
|
|
8058
|
-
const unique = /* @__PURE__ */ new Map();
|
|
8059
|
-
for (const edit of edits) unique.set(edit[0], edit);
|
|
8060
|
-
let out = source;
|
|
8061
|
-
for (const [at, remove, insert] of [...unique.values()].sort((a, b) => b[0] - a[0]))
|
|
8062
|
-
out = out.slice(0, at) + insert + out.slice(at + remove);
|
|
8063
|
-
return out;
|
|
8064
|
-
}
|
|
8065
8227
|
function lowerNSValueTimeBox(source) {
|
|
8066
8228
|
const masked = swiftCodeMask(source);
|
|
8067
8229
|
const pattern = /\bNSValue\s*\(\s*time\s*:/g;
|
|
@@ -8235,9 +8397,6 @@ var FOUNDATION_OVERLAY_TYPES = /* @__PURE__ */ new Set([
|
|
|
8235
8397
|
"NSHashEnumerator",
|
|
8236
8398
|
"NSHashTable",
|
|
8237
8399
|
"NSHashTableCallBacks",
|
|
8238
|
-
"NSItemProvider",
|
|
8239
|
-
"NSItemProviderFileOptions",
|
|
8240
|
-
"NSItemProviderRepresentationVisibility",
|
|
8241
8400
|
"NSKeyValueOperator",
|
|
8242
8401
|
"NSKeyValueSetMutationKind",
|
|
8243
8402
|
"NSKeyValueSharedObservers",
|
|
@@ -8268,8 +8427,6 @@ var FOUNDATION_OVERLAY_TYPES = /* @__PURE__ */ new Set([
|
|
|
8268
8427
|
"NSSwappedFloat",
|
|
8269
8428
|
"NSURLRequest",
|
|
8270
8429
|
"NSUbiquitousKeyValueStore",
|
|
8271
|
-
"NSUserActivity",
|
|
8272
|
-
"NSUserActivityDelegate",
|
|
8273
8430
|
"NSValueTransformerName",
|
|
8274
8431
|
"NSXPCCoder",
|
|
8275
8432
|
"NSXPCConnection",
|
|
@@ -8844,14 +9001,15 @@ function foundationOwnerOf(name2) {
|
|
|
8844
9001
|
return "PeachFoundation";
|
|
8845
9002
|
return void 0;
|
|
8846
9003
|
}
|
|
8847
|
-
function swiftSourceAsIOS(source) {
|
|
9004
|
+
function swiftSourceAsIOS(source, swiftPackage) {
|
|
8848
9005
|
const { lineStarts, tokens } = swiftCodeScan(source);
|
|
8849
9006
|
let offset = 0;
|
|
8850
9007
|
const conditioned = source.split("\n").map((line) => {
|
|
8851
9008
|
const start = offset;
|
|
8852
9009
|
offset += line.length + 1;
|
|
8853
9010
|
if (!lineStarts.has(start) || !DIRECTIVE.test(line)) return line;
|
|
8854
|
-
|
|
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;
|
|
8855
9013
|
}).join("\n");
|
|
8856
9014
|
let out = "";
|
|
8857
9015
|
let copied = 0;
|
|
@@ -8957,9 +9115,7 @@ function swiftSourceAsIOS(source) {
|
|
|
8957
9115
|
continue;
|
|
8958
9116
|
}
|
|
8959
9117
|
}
|
|
8960
|
-
return
|
|
8961
|
-
lowerNSValueTimeBox(lowerAVAssetURLCluster(out + conditioned.slice(copied)))
|
|
8962
|
-
);
|
|
9118
|
+
return lowerNSValueTimeBox(lowerAVAssetURLCluster(out + conditioned.slice(copied)));
|
|
8963
9119
|
}
|
|
8964
9120
|
function swiftSourceClosure(files, roots) {
|
|
8965
9121
|
const sources = /* @__PURE__ */ new Map();
|
|
@@ -9013,7 +9169,7 @@ function swiftApplicationEntry(file, source) {
|
|
|
9013
9169
|
else if (source[at] === "}") depth--;
|
|
9014
9170
|
else if (depth === 0 && /^@(?:main|UIApplicationMain)\b/.test(source.slice(at)))
|
|
9015
9171
|
return true;
|
|
9016
|
-
else if (depth === 0 &&
|
|
9172
|
+
else if (depth === 0 && import_node_path19.default.basename(file) === "main.swift" && /^UIApplicationMain\s*\(/.test(source.slice(at)))
|
|
9017
9173
|
return true;
|
|
9018
9174
|
}
|
|
9019
9175
|
return false;
|
|
@@ -9482,33 +9638,33 @@ function swiftCodeScan(source) {
|
|
|
9482
9638
|
return { lineStarts: starts, tokens };
|
|
9483
9639
|
}
|
|
9484
9640
|
function prepareSwiftDependency(source, destination) {
|
|
9485
|
-
(0,
|
|
9641
|
+
(0, import_node_fs17.rmSync)(destination, { recursive: true, force: true });
|
|
9486
9642
|
const origins = {};
|
|
9487
9643
|
const gather = (from) => {
|
|
9488
|
-
for (const entry of (0,
|
|
9644
|
+
for (const entry of (0, import_node_fs17.readdirSync)(from, { withFileTypes: true })) {
|
|
9489
9645
|
if (entry.name === ".git" || entry.name === ".build" || entry.name === ".swiftpm")
|
|
9490
9646
|
continue;
|
|
9491
|
-
const file =
|
|
9647
|
+
const file = import_node_path19.default.join(from, entry.name);
|
|
9492
9648
|
if (entry.isDirectory()) gather(file);
|
|
9493
9649
|
else if (entry.isFile() && entry.name.endsWith(".swift"))
|
|
9494
|
-
origins[
|
|
9650
|
+
origins[import_node_path19.default.relative(source, file)] = (0, import_node_fs17.readFileSync)(file, "utf8");
|
|
9495
9651
|
}
|
|
9496
9652
|
};
|
|
9497
9653
|
gather(source);
|
|
9498
|
-
const manifest =
|
|
9499
|
-
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")) : [];
|
|
9500
9656
|
const compiled = compiledSwiftSources(origins, targets);
|
|
9501
9657
|
const copy = (from, to) => {
|
|
9502
|
-
(0,
|
|
9503
|
-
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 })) {
|
|
9504
9660
|
if (entry.name === ".git" || entry.name === ".build" || entry.name === ".swiftpm")
|
|
9505
9661
|
continue;
|
|
9506
|
-
const file =
|
|
9507
|
-
const target =
|
|
9662
|
+
const file = import_node_path19.default.join(from, entry.name);
|
|
9663
|
+
const target = import_node_path19.default.join(to, entry.name);
|
|
9508
9664
|
if (entry.isDirectory()) copy(file, target);
|
|
9509
9665
|
else if (entry.isFile() && entry.name.endsWith(".swift"))
|
|
9510
|
-
(0,
|
|
9511
|
-
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 });
|
|
9512
9668
|
}
|
|
9513
9669
|
};
|
|
9514
9670
|
copy(source, destination);
|
|
@@ -9516,19 +9672,19 @@ function prepareSwiftDependency(source, destination) {
|
|
|
9516
9672
|
var HIDDEN_UNITS = "PeachHiddenUnits";
|
|
9517
9673
|
function clangImportModuleMapFlags(settings, layoutRoot, written, generated) {
|
|
9518
9674
|
const searched = new Set(settings.headerSearchPaths);
|
|
9519
|
-
const directory =
|
|
9675
|
+
const directory = import_node_path19.default.join(layoutRoot, ".build", "peach-clang-modulemaps");
|
|
9520
9676
|
return (settings.moduleMaps ?? []).flatMap((map) => {
|
|
9521
|
-
const headers =
|
|
9522
|
-
if (!(0,
|
|
9523
|
-
const published =
|
|
9524
|
-
if (searched.has(map.headers) && (0,
|
|
9525
|
-
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))
|
|
9526
9682
|
return [`-fmodule-map-file=${published}`];
|
|
9527
9683
|
const cached = written.get(headers);
|
|
9528
9684
|
if (cached) return [cached];
|
|
9529
|
-
(0,
|
|
9530
|
-
const output =
|
|
9531
|
-
(
|
|
9685
|
+
(0, import_node_fs17.mkdirSync)(directory, { recursive: true });
|
|
9686
|
+
const output = import_node_path19.default.join(directory, `module-${written.size}.modulemap`);
|
|
9687
|
+
writeBuildFile(
|
|
9532
9688
|
output,
|
|
9533
9689
|
swiftPackageClangModuleMap(swiftTargetModuleName(map.module), {
|
|
9534
9690
|
kind: "directory",
|
|
@@ -9541,6 +9697,21 @@ function clangImportModuleMapFlags(settings, layoutRoot, written, generated) {
|
|
|
9541
9697
|
return [flag];
|
|
9542
9698
|
});
|
|
9543
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
|
+
}
|
|
9544
9715
|
function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
9545
9716
|
if (input.headerAliases !== void 0 && !isSwiftHeaderAliases(input.headerAliases))
|
|
9546
9717
|
throw new Error("swift compile input has invalid original header aliases");
|
|
@@ -9549,7 +9720,10 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9549
9720
|
if (input.packageFiles !== void 0 && !isSwiftPackageFiles(input.packageFiles))
|
|
9550
9721
|
throw new Error("swift compile input has invalid original package files");
|
|
9551
9722
|
if (input.projectFiles !== void 0 && !isSwiftProjectFiles(input.projectFiles))
|
|
9552
|
-
throw new Error(
|
|
9723
|
+
throw new Error(
|
|
9724
|
+
`swift compile input has invalid project files:
|
|
9725
|
+
${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
9726
|
+
);
|
|
9553
9727
|
const packages = input.packageFiles ? swiftManifestPackages(input.files["Package.swift"] ?? "") : /* @__PURE__ */ new Map();
|
|
9554
9728
|
for (const directory of packages.values())
|
|
9555
9729
|
if (!isSwiftResourcePath(directory) || !Object.hasOwn(input.packageFiles ?? {}, `${directory}/Package.swift`))
|
|
@@ -9566,7 +9740,7 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9566
9740
|
const targets = distribution && compileTargets(input).length === 0 ? [
|
|
9567
9741
|
{
|
|
9568
9742
|
name: "App",
|
|
9569
|
-
path:
|
|
9743
|
+
path: import_node_path19.default.relative(layout.root, layout.sources),
|
|
9570
9744
|
executable: true,
|
|
9571
9745
|
languageMode: 5,
|
|
9572
9746
|
mainActorIsolation: false,
|
|
@@ -9576,7 +9750,7 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9576
9750
|
const distributionExcludes = distribution ? /* @__PURE__ */ new Set([
|
|
9577
9751
|
...swiftSystemLibraryExclusions(input.files, targets, distribution.modules),
|
|
9578
9752
|
...distribution.modules.filter(
|
|
9579
|
-
(name2) =>
|
|
9753
|
+
(name2) => targets.some((target) => target.name === name2)
|
|
9580
9754
|
)
|
|
9581
9755
|
]) : void 0;
|
|
9582
9756
|
const files = /* @__PURE__ */ new Map();
|
|
@@ -9610,24 +9784,24 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9610
9784
|
clangImportedModules.add(name2);
|
|
9611
9785
|
}
|
|
9612
9786
|
}
|
|
9613
|
-
const headerDirectory =
|
|
9787
|
+
const headerDirectory = import_node_path19.default.join(layout.root, ".build", "peach-cxx-headers");
|
|
9614
9788
|
const flattenedHeaders = /* @__PURE__ */ new Set();
|
|
9615
|
-
if ((0,
|
|
9616
|
-
for (const entry of (0,
|
|
9617
|
-
if (entry.isDirectory())
|
|
9618
|
-
(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 });
|
|
9619
9793
|
}
|
|
9620
9794
|
let checkedToolchain;
|
|
9621
9795
|
const nativeToolchain = () => {
|
|
9622
9796
|
if (checkedToolchain) return checkedToolchain;
|
|
9623
|
-
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"));
|
|
9624
9798
|
checkedToolchain = swiftToolchain(pin.release, swiftModuleSdk(moduleRoot));
|
|
9625
9799
|
return checkedToolchain;
|
|
9626
9800
|
};
|
|
9627
9801
|
const deploymentTarget = (name2) => input.nativeTargets?.find((value) => value.name === name2)?.deploymentTarget ?? targets.find((value) => value.name === name2)?.iosDeploymentTarget ?? null;
|
|
9628
9802
|
const targetStagedFiles = /* @__PURE__ */ new Map();
|
|
9629
9803
|
const stageTargetFile = (target, file, contents, options) => {
|
|
9630
|
-
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);
|
|
9631
9805
|
const prior = files.has(file) ? files.get(file) : Object.hasOwn(input.files, relative) ? input.files[relative] : void 0;
|
|
9632
9806
|
if (!options?.allowExisting && prior !== void 0)
|
|
9633
9807
|
throw new Error(`target ${target} already contains generated output ${relative}`);
|
|
@@ -9656,7 +9830,7 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9656
9830
|
targetStagedFiles.delete(target.name);
|
|
9657
9831
|
if (entries.some(([file]) => isSwiftNativeTranslationUnit(file)) && (swift || input.nativeTargets?.some((value) => value.name === target.name))) {
|
|
9658
9832
|
if (!swift) {
|
|
9659
|
-
const unprepared =
|
|
9833
|
+
const unprepared = import_node_path19.default.join(
|
|
9660
9834
|
layout.root,
|
|
9661
9835
|
target.path,
|
|
9662
9836
|
"PeachUnprepared.generated.swift"
|
|
@@ -9671,7 +9845,7 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9671
9845
|
native.set(target.name, {
|
|
9672
9846
|
mixed: true,
|
|
9673
9847
|
path: target.path,
|
|
9674
|
-
includeDirectory:
|
|
9848
|
+
includeDirectory: import_node_path19.default.join(layout.root, target.path, "include"),
|
|
9675
9849
|
sources: [],
|
|
9676
9850
|
lateSources: [],
|
|
9677
9851
|
exclude: entries.filter(([file]) => !file.endsWith(".swift") && !file.endsWith(".metal")).map(([file]) => file.slice(prefix.length))
|
|
@@ -9688,6 +9862,8 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9688
9862
|
};
|
|
9689
9863
|
for (const settings of input.nativeTargets ?? []) {
|
|
9690
9864
|
for (const file of settings.headers) {
|
|
9865
|
+
const destination = import_node_path19.default.join(layout.root, file);
|
|
9866
|
+
if (files.has(destination)) continue;
|
|
9691
9867
|
const interfaceModule = /(?:^|\/)(\w+)-Swift\.h$/.exec(file)?.[1];
|
|
9692
9868
|
const frameworkHeader = !interfaceModule && /(?:^|\/)(\w+)\.framework\/Headers\/[\w+.-]+\.h$/.exec(file)?.[1];
|
|
9693
9869
|
const frameworkInterface = frameworkHeader ? moduleInterface(frameworkHeader) : null;
|
|
@@ -9699,17 +9875,15 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9699
9875
|
frameworkInterface.declared,
|
|
9700
9876
|
`#import <${frameworkHeader}/${frameworkHeader}-Swift.h>`
|
|
9701
9877
|
) : rawContents;
|
|
9702
|
-
|
|
9703
|
-
(0, import_node_fs16.mkdirSync)(import_node_path17.default.dirname(destination), { recursive: true });
|
|
9704
|
-
(0, import_node_fs16.writeFileSync)(destination, contents);
|
|
9878
|
+
writeBuildFile(destination, contents);
|
|
9705
9879
|
files.set(destination, contents);
|
|
9706
9880
|
}
|
|
9707
9881
|
if (settings.flattensPublicHeaders)
|
|
9708
9882
|
for (const header of settings.publicHeaders) {
|
|
9709
|
-
const destination =
|
|
9883
|
+
const destination = import_node_path19.default.join(
|
|
9710
9884
|
headerDirectory,
|
|
9711
9885
|
settings.name,
|
|
9712
|
-
|
|
9886
|
+
import_node_path19.default.basename(header)
|
|
9713
9887
|
);
|
|
9714
9888
|
if (flattenedHeaders.has(destination))
|
|
9715
9889
|
throw new Error(`duplicate product header ${destination}`);
|
|
@@ -9717,9 +9891,9 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9717
9891
|
}
|
|
9718
9892
|
}
|
|
9719
9893
|
const nativeTargets = input.nativeTargets ?? [];
|
|
9720
|
-
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;
|
|
9721
9895
|
const headerSearch = writeXcodeHeaderSearch(
|
|
9722
|
-
|
|
9896
|
+
import_node_path19.default.join(layout.root, ".build", "peach-xcode-headers"),
|
|
9723
9897
|
nativeTargets.map((settings) => ({
|
|
9724
9898
|
headerMaps: settings.headerMaps.map((map) => ({
|
|
9725
9899
|
flag: map.flag,
|
|
@@ -9730,22 +9904,22 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9730
9904
|
})),
|
|
9731
9905
|
productHeaders: Object.fromEntries([
|
|
9732
9906
|
...Object.entries(settings.productHeaders).map(([product, file]) => [
|
|
9733
|
-
|
|
9734
|
-
|
|
9907
|
+
import_node_path19.default.join(layout.root, product),
|
|
9908
|
+
import_node_path19.default.join(layout.root, file)
|
|
9735
9909
|
]),
|
|
9736
9910
|
...settings.flattensPublicHeaders ? settings.publicHeaders.map((header) => [
|
|
9737
|
-
|
|
9738
|
-
|
|
9911
|
+
import_node_path19.default.join(headerDirectory, settings.name, import_node_path19.default.basename(header)),
|
|
9912
|
+
import_node_path19.default.join(layout.root, header)
|
|
9739
9913
|
]) : []
|
|
9740
9914
|
]),
|
|
9741
9915
|
userHeaderSearchPaths: settings.userHeaderSearchPaths.map(
|
|
9742
|
-
(directory) =>
|
|
9916
|
+
(directory) => import_node_path19.default.join(layout.root, directory)
|
|
9743
9917
|
)
|
|
9744
9918
|
})),
|
|
9745
9919
|
Object.fromEntries(
|
|
9746
9920
|
Object.entries(input.headerAliases ?? {}).map(([alias, file]) => [
|
|
9747
|
-
|
|
9748
|
-
|
|
9921
|
+
import_node_path19.default.join(layout.root, alias),
|
|
9922
|
+
import_node_path19.default.join(layout.root, file)
|
|
9749
9923
|
])
|
|
9750
9924
|
)
|
|
9751
9925
|
);
|
|
@@ -9773,7 +9947,7 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9773
9947
|
if (producer && targets.some((value) => value.name === producer))
|
|
9774
9948
|
producers2.add(producer);
|
|
9775
9949
|
const local = [
|
|
9776
|
-
|
|
9950
|
+
import_node_path19.default.posix.join(import_node_path19.default.posix.dirname(file), include2),
|
|
9777
9951
|
`${includes}${include2}`
|
|
9778
9952
|
].find((candidate) => input.files[candidate] !== void 0);
|
|
9779
9953
|
if (local) {
|
|
@@ -9804,15 +9978,9 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9804
9978
|
throw new Error(
|
|
9805
9979
|
`mixed target ${target.name} requires its original native target settings; SwiftPM does not compile mixed source targets`
|
|
9806
9980
|
);
|
|
9807
|
-
const headers = settings.headers;
|
|
9808
9981
|
const roots2 = settings.bridgingHeader ? [settings.bridgingHeader] : entries.some(([file]) => file.endsWith(".swift")) || importedModules.has(swiftTargetModuleName(target.name)) ? settings.publicHeaders : [];
|
|
9809
|
-
for (const file of headers) {
|
|
9810
|
-
const destination = import_node_path17.default.join(layout.root, file);
|
|
9811
|
-
(0, import_node_fs16.mkdirSync)(import_node_path17.default.dirname(destination), { recursive: true });
|
|
9812
|
-
(0, import_node_fs16.writeFileSync)(destination, files.get(destination) ?? input.files[file]);
|
|
9813
|
-
}
|
|
9814
9982
|
const search = [.../* @__PURE__ */ new Set([...settings?.headerSearchPaths ?? []])].flatMap(
|
|
9815
|
-
(dir) => ["-I",
|
|
9983
|
+
(dir) => ["-I", import_node_path19.default.join(layout.root, dir)]
|
|
9816
9984
|
);
|
|
9817
9985
|
const toolchainBin = nativeToolchain();
|
|
9818
9986
|
const stageFlags = (flags2, sdkInclude2) => flags2.map(
|
|
@@ -9824,24 +9992,34 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9824
9992
|
...search,
|
|
9825
9993
|
...(settings?.frameworkSearchPaths ?? []).flatMap((dir) => [
|
|
9826
9994
|
"-F",
|
|
9827
|
-
|
|
9995
|
+
import_node_path19.default.join(layout.root, dir)
|
|
9828
9996
|
]),
|
|
9829
9997
|
"-I",
|
|
9830
9998
|
headerDirectory
|
|
9831
9999
|
];
|
|
9832
|
-
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
|
+
] : (() => {
|
|
9833
10011
|
const kept = [];
|
|
9834
|
-
for (let index = 0; index < settings.
|
|
9835
|
-
const flag = settings.
|
|
10012
|
+
for (let index = 0; index < settings.importerFlags.length; index++) {
|
|
10013
|
+
const flag = settings.importerFlags[index];
|
|
9836
10014
|
if (flag === "-I" || flag === "-iquote") {
|
|
9837
|
-
const directory = settings.
|
|
9838
|
-
if (directory === void 0 || !
|
|
10015
|
+
const directory = settings.importerFlags[index + 1];
|
|
10016
|
+
if (directory === void 0 || !import_node_path19.default.isAbsolute(directory)) {
|
|
9839
10017
|
index++;
|
|
9840
10018
|
continue;
|
|
9841
10019
|
}
|
|
9842
10020
|
}
|
|
9843
10021
|
const joined = /^-(?:I|iquote)(.+)$/.exec(flag);
|
|
9844
|
-
if (joined && !
|
|
10022
|
+
if (joined && !import_node_path19.default.isAbsolute(joined[1])) continue;
|
|
9845
10023
|
kept.push(flag);
|
|
9846
10024
|
}
|
|
9847
10025
|
return [
|
|
@@ -9850,13 +10028,13 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9850
10028
|
...search,
|
|
9851
10029
|
...(settings?.frameworkSearchPaths ?? []).flatMap((dir) => [
|
|
9852
10030
|
"-F",
|
|
9853
|
-
|
|
10031
|
+
import_node_path19.default.join(layout.root, dir)
|
|
9854
10032
|
]),
|
|
9855
10033
|
"-I",
|
|
9856
10034
|
headerDirectory
|
|
9857
10035
|
];
|
|
9858
10036
|
})();
|
|
9859
|
-
const sdkInclude =
|
|
10037
|
+
const sdkInclude = import_node_path19.default.join(
|
|
9860
10038
|
swiftSdkPaths(moduleRoot, toolchainBin).sysroot,
|
|
9861
10039
|
"darwin/usr/include"
|
|
9862
10040
|
);
|
|
@@ -9867,7 +10045,7 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9867
10045
|
generatedModuleMaps
|
|
9868
10046
|
);
|
|
9869
10047
|
const flags = [...stageFlags(originalFlags, sdkInclude), ...dependencyModuleMaps];
|
|
9870
|
-
const prefixHeader = settings?.prefixHeader ? ["-include",
|
|
10048
|
+
const prefixHeader = settings?.prefixHeader ? ["-include", import_node_path19.default.join(layout.root, settings.prefixHeader)] : [];
|
|
9871
10049
|
const bundleName = entries.some(([file]) => file.endsWith(".swift")) ? void 0 : swiftObjCResourceBundleName({
|
|
9872
10050
|
target: target.name,
|
|
9873
10051
|
path: target.path,
|
|
@@ -9878,7 +10056,7 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9878
10056
|
bundles: input.resourceBundles
|
|
9879
10057
|
});
|
|
9880
10058
|
const accessor = bundleName === void 0 ? void 0 : swiftObjCResourceAccessor(bundleName);
|
|
9881
|
-
const accessorHeader =
|
|
10059
|
+
const accessorHeader = import_node_path19.default.join(
|
|
9882
10060
|
layout.root,
|
|
9883
10061
|
target.path,
|
|
9884
10062
|
OBJC_RESOURCE_ACCESSOR_HEADER
|
|
@@ -9889,7 +10067,7 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9889
10067
|
const nativeUnits = accessor ? [...units, [accessorUnit, accessor.body]] : units;
|
|
9890
10068
|
const unitSource = (file) => {
|
|
9891
10069
|
const relative = file.slice(prefix.length);
|
|
9892
|
-
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;
|
|
9893
10071
|
};
|
|
9894
10072
|
const accessorFlags = accessor ? ["-include", accessorHeader] : [];
|
|
9895
10073
|
const nativeC = !entries.some(([file]) => file.endsWith(".swift"));
|
|
@@ -9919,20 +10097,20 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9919
10097
|
)
|
|
9920
10098
|
].sort();
|
|
9921
10099
|
const topHeaders = settings.publicHeaders.filter(
|
|
9922
|
-
(file) =>
|
|
10100
|
+
(file) => import_node_path19.default.posix.dirname(file) === headerDir
|
|
9923
10101
|
);
|
|
9924
10102
|
if (input.files[custom] !== void 0) {
|
|
9925
10103
|
swiftpmModuleMap = { path: custom, contents: input.files[custom] };
|
|
9926
10104
|
} else if (input.files[umbrella] !== void 0) {
|
|
9927
10105
|
if (siblingDirs.length > 0)
|
|
9928
10106
|
throw new Error(
|
|
9929
|
-
`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`
|
|
9930
10108
|
);
|
|
9931
10109
|
swiftpmModuleMap = {
|
|
9932
10110
|
path: custom,
|
|
9933
10111
|
contents: swiftPackageClangModuleMap(moduleName, {
|
|
9934
10112
|
kind: "header",
|
|
9935
|
-
path:
|
|
10113
|
+
path: import_node_path19.default.join(layout.root, umbrella)
|
|
9936
10114
|
})
|
|
9937
10115
|
};
|
|
9938
10116
|
} else if (input.files[nestedUmbrella] !== void 0 && siblingDirs.length === 1 && siblingDirs[0] === moduleName && topHeaders.length === 0) {
|
|
@@ -9940,7 +10118,7 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9940
10118
|
path: custom,
|
|
9941
10119
|
contents: swiftPackageClangModuleMap(moduleName, {
|
|
9942
10120
|
kind: "header",
|
|
9943
|
-
path:
|
|
10121
|
+
path: import_node_path19.default.join(layout.root, nestedUmbrella)
|
|
9944
10122
|
})
|
|
9945
10123
|
};
|
|
9946
10124
|
} else {
|
|
@@ -9948,12 +10126,12 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9948
10126
|
path: custom,
|
|
9949
10127
|
contents: swiftPackageClangModuleMap(moduleName, {
|
|
9950
10128
|
kind: "directory",
|
|
9951
|
-
path:
|
|
10129
|
+
path: import_node_path19.default.join(layout.root, headerDir)
|
|
9952
10130
|
})
|
|
9953
10131
|
};
|
|
9954
10132
|
}
|
|
9955
10133
|
}
|
|
9956
|
-
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(
|
|
9957
10135
|
".build",
|
|
9958
10136
|
"peach-objc-originals",
|
|
9959
10137
|
target.name,
|
|
@@ -9961,49 +10139,50 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
9961
10139
|
);
|
|
9962
10140
|
const moduleContents = originalModuleMap ? input.files[originalModuleMap[1]] : swiftpmModuleMap?.contents ?? packageModuleMap?.[1] ?? swiftObjCModuleMap(
|
|
9963
10141
|
swiftTargetModuleName(target.name),
|
|
9964
|
-
roots2.map((file) =>
|
|
10142
|
+
roots2.map((file) => import_node_path19.default.join(layout.root, file))
|
|
9965
10143
|
);
|
|
9966
10144
|
if (moduleContents === void 0)
|
|
9967
10145
|
throw new Error("missing original module map " + modulemap);
|
|
9968
|
-
stageTargetFile(target.name,
|
|
10146
|
+
stageTargetFile(target.name, import_node_path19.default.join(layout.root, modulemap), moduleContents, {
|
|
9969
10147
|
allowExisting: true
|
|
9970
10148
|
});
|
|
9971
|
-
if (nativeC &&
|
|
10149
|
+
if (nativeC && import_node_path19.default.posix.basename(modulemap) !== "module.modulemap") {
|
|
9972
10150
|
stageTargetFile(
|
|
9973
10151
|
target.name,
|
|
9974
|
-
|
|
9975
|
-
`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))}
|
|
9976
10154
|
`
|
|
9977
10155
|
);
|
|
9978
10156
|
}
|
|
9979
10157
|
const importFlags = [
|
|
9980
10158
|
...swiftClangImporterFlags(stageFlags(importOriginalFlags, sdkInclude)),
|
|
9981
|
-
"-fmodule-map-file=" +
|
|
10159
|
+
"-fmodule-map-file=" + import_node_path19.default.join(layout.root, modulemap),
|
|
9982
10160
|
...dependencyModuleMaps
|
|
9983
10161
|
];
|
|
9984
10162
|
const groups = /* @__PURE__ */ new Map();
|
|
9985
10163
|
for (const [file, contents] of nativeUnits) {
|
|
9986
10164
|
const origin = settings?.sourceDirectories[file];
|
|
9987
10165
|
if (origin) {
|
|
9988
|
-
const original =
|
|
9989
|
-
(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 });
|
|
9990
10168
|
stageTargetFile(target.name, original, contents, { allowExisting: true });
|
|
9991
10169
|
}
|
|
9992
10170
|
const source = unitSource(file);
|
|
9993
10171
|
if (source !== file.slice(prefix.length))
|
|
9994
10172
|
stageTargetFile(
|
|
9995
10173
|
target.name,
|
|
9996
|
-
|
|
10174
|
+
import_node_path19.default.join(layout.root, target.path, source),
|
|
9997
10175
|
contents,
|
|
9998
10176
|
{
|
|
9999
10177
|
allowExisting: true
|
|
10000
10178
|
}
|
|
10001
10179
|
);
|
|
10180
|
+
const quoteFlags = origin ? ["-iquote", import_node_path19.default.join(layout.root, origin)] : [];
|
|
10002
10181
|
const perFile = [
|
|
10003
|
-
|
|
10182
|
+
.../\.mm?$/.test(file) ? ["-fobjc-exceptions"] : [],
|
|
10004
10183
|
...stageFlags(
|
|
10005
10184
|
settings?.fileFlags[file] ?? [],
|
|
10006
|
-
|
|
10185
|
+
import_node_path19.default.join(
|
|
10007
10186
|
swiftSdkPaths(moduleRoot, toolchainBin).sysroot,
|
|
10008
10187
|
"darwin/usr/include"
|
|
10009
10188
|
)
|
|
@@ -10011,11 +10190,24 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
10011
10190
|
];
|
|
10012
10191
|
const cxx = /\.(?:cc|cpp|cxx|mm)$/.test(file);
|
|
10013
10192
|
const moduleFlag = perFile.some((flag) => flag.startsWith("-fmodule-name=")) ? [] : [`-fmodule-name=${swiftTargetModuleName(target.name)}`];
|
|
10014
|
-
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)}`;
|
|
10015
10204
|
const group = groups.get(identity) ?? {
|
|
10016
|
-
name:
|
|
10205
|
+
name: name2,
|
|
10206
|
+
path: groupPath,
|
|
10017
10207
|
sources: [],
|
|
10018
10208
|
flags: [
|
|
10209
|
+
...quoteFlags,
|
|
10210
|
+
sourceIdentity,
|
|
10019
10211
|
...flags,
|
|
10020
10212
|
...prefixHeader,
|
|
10021
10213
|
...accessorFlags,
|
|
@@ -10023,12 +10215,14 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
10023
10215
|
...moduleFlag
|
|
10024
10216
|
],
|
|
10025
10217
|
cxxFlags: [
|
|
10218
|
+
...quoteFlags,
|
|
10219
|
+
sourceIdentity,
|
|
10026
10220
|
...flags,
|
|
10027
10221
|
...prefixHeader,
|
|
10028
10222
|
...accessorFlags,
|
|
10029
10223
|
...stageFlags(
|
|
10030
10224
|
cxx ? settings.cxxFlags : [],
|
|
10031
|
-
|
|
10225
|
+
import_node_path19.default.join(
|
|
10032
10226
|
swiftSdkPaths(moduleRoot, toolchainBin).sysroot,
|
|
10033
10227
|
"darwin/usr/include"
|
|
10034
10228
|
)
|
|
@@ -10037,6 +10231,18 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
10037
10231
|
...moduleFlag
|
|
10038
10232
|
]
|
|
10039
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
|
+
);
|
|
10040
10246
|
group.sources.push(source);
|
|
10041
10247
|
groups.set(identity, group);
|
|
10042
10248
|
}
|
|
@@ -10044,7 +10250,7 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
10044
10250
|
stageTargetFile(target.name, accessorHeader, accessor.header);
|
|
10045
10251
|
stageTargetFile(
|
|
10046
10252
|
target.name,
|
|
10047
|
-
|
|
10253
|
+
import_node_path19.default.join(layout.root, accessorUnit),
|
|
10048
10254
|
accessor.body
|
|
10049
10255
|
);
|
|
10050
10256
|
}
|
|
@@ -10059,12 +10265,13 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
10059
10265
|
].sort();
|
|
10060
10266
|
native.set(target.name, {
|
|
10061
10267
|
path: target.path,
|
|
10062
|
-
includeDirectory:
|
|
10268
|
+
includeDirectory: import_node_path19.default.dirname(import_node_path19.default.join(layout.root, modulemap)),
|
|
10063
10269
|
importFlags,
|
|
10064
10270
|
sources: nativeUnits.map(([file]) => unitSource(file)),
|
|
10065
10271
|
lateSources: implementations.flatMap((group) => group.sources),
|
|
10066
10272
|
exclude: [],
|
|
10067
10273
|
clang: {
|
|
10274
|
+
path: owner?.path ?? target.path,
|
|
10068
10275
|
modulemap,
|
|
10069
10276
|
sources: owner?.sources ?? [],
|
|
10070
10277
|
flags: owner?.flags ?? flags,
|
|
@@ -10075,17 +10282,29 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
10075
10282
|
late: { name: `${target.name}NativeImplementation`, producers: producers2 }
|
|
10076
10283
|
} : {}
|
|
10077
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
|
+
}
|
|
10078
10297
|
continue;
|
|
10079
10298
|
}
|
|
10080
|
-
const implementationHeaders =
|
|
10299
|
+
const implementationHeaders = import_node_path19.default.posix.join(
|
|
10081
10300
|
".build",
|
|
10082
10301
|
"peach-objc-implementations",
|
|
10083
10302
|
target.name
|
|
10084
10303
|
);
|
|
10085
|
-
const include2 =
|
|
10304
|
+
const include2 = import_node_path19.default.join(layout.root, implementationHeaders);
|
|
10086
10305
|
stageTargetFile(
|
|
10087
10306
|
target.name,
|
|
10088
|
-
|
|
10307
|
+
import_node_path19.default.join(include2, "module.modulemap"),
|
|
10089
10308
|
`module ${target.name}ImplementationDeclarations { export * }
|
|
10090
10309
|
`
|
|
10091
10310
|
);
|
|
@@ -10093,10 +10312,9 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
10093
10312
|
mixed: true,
|
|
10094
10313
|
path: target.path,
|
|
10095
10314
|
includeDirectory: include2,
|
|
10096
|
-
implementationHeaders,
|
|
10097
10315
|
importFlags,
|
|
10098
10316
|
swiftFlags: [
|
|
10099
|
-
...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"] : [],
|
|
10100
10318
|
...importFlags.flatMap((flag) => ["-Xcc", flag])
|
|
10101
10319
|
],
|
|
10102
10320
|
sources: nativeUnits.map(([file]) => unitSource(file)),
|
|
@@ -10126,7 +10344,7 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
10126
10344
|
}
|
|
10127
10345
|
native.set(target.name, {
|
|
10128
10346
|
path: target.path,
|
|
10129
|
-
includeDirectory:
|
|
10347
|
+
includeDirectory: import_node_path19.default.join(layout.root, includes),
|
|
10130
10348
|
sources: units.map(([file]) => file.slice(prefix.length)),
|
|
10131
10349
|
lateSources: late.map(([file]) => file.slice(prefix.length)),
|
|
10132
10350
|
...late.length > 0 ? {
|
|
@@ -10144,7 +10362,7 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
10144
10362
|
([file]) => file.startsWith(includes) && /\.(?:h|hpp|hh|hxx)$/.test(file) && consumers.get(file).size === 0
|
|
10145
10363
|
);
|
|
10146
10364
|
files.set(
|
|
10147
|
-
|
|
10365
|
+
import_node_path19.default.join(layout.root, includes, "module.modulemap"),
|
|
10148
10366
|
[
|
|
10149
10367
|
`module ${target.name} {`,
|
|
10150
10368
|
...roots.map(
|
|
@@ -10159,14 +10377,14 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
10159
10377
|
for (const map of generatedModuleMaps)
|
|
10160
10378
|
if (files.has(map.published) || Object.hasOwn(
|
|
10161
10379
|
input.files,
|
|
10162
|
-
|
|
10380
|
+
import_node_path19.default.relative(layout.root, map.published).split(import_node_path19.default.sep).join(import_node_path19.default.posix.sep)
|
|
10163
10381
|
))
|
|
10164
|
-
(
|
|
10382
|
+
writeBuildFile(
|
|
10165
10383
|
map.output,
|
|
10166
10384
|
`extern module ${map.module} ${JSON.stringify(map.published)}
|
|
10167
10385
|
`
|
|
10168
10386
|
);
|
|
10169
|
-
if (native.size > 0) (0,
|
|
10387
|
+
if (native.size > 0) (0, import_node_fs17.mkdirSync)(headerDirectory, { recursive: true });
|
|
10170
10388
|
const headerAliasFlags = Object.keys(input.headerAliases ?? {}).length > 0 ? ["-ivfsoverlay", headerSearch.files[0]] : [];
|
|
10171
10389
|
const nativeHeaderFlags = [...headerAliasFlags];
|
|
10172
10390
|
const originalMaps = /* @__PURE__ */ new Map();
|
|
@@ -10187,10 +10405,10 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
10187
10405
|
[...native.values()].flatMap((value) => value.late?.producers ?? [])
|
|
10188
10406
|
)) {
|
|
10189
10407
|
files.set(
|
|
10190
|
-
|
|
10408
|
+
import_node_path19.default.join(headerDirectory, name2, name2 + "-Swift.h"),
|
|
10191
10409
|
'#include "../' + name2 + '-Swift.h"\n'
|
|
10192
10410
|
);
|
|
10193
|
-
const modulemap =
|
|
10411
|
+
const modulemap = import_node_path19.default.join(
|
|
10194
10412
|
layout.root,
|
|
10195
10413
|
".build",
|
|
10196
10414
|
"peach-objc-swift-headers",
|
|
@@ -10199,16 +10417,23 @@ function writeSwiftProject(layout, input, moduleRoot, prebuilt) {
|
|
|
10199
10417
|
);
|
|
10200
10418
|
const moduleName = swiftTargetModuleName(name2);
|
|
10201
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
|
+
}
|
|
10202
10427
|
files.set(
|
|
10203
10428
|
modulemap,
|
|
10204
|
-
originalMap ? `extern module ${moduleName} ${JSON.stringify(
|
|
10429
|
+
originalMap ? `extern module ${moduleName} ${JSON.stringify(import_node_path19.default.join(layout.root, originalMap))}
|
|
10205
10430
|
module ${moduleName}.Swift {
|
|
10206
|
-
header ${JSON.stringify(
|
|
10431
|
+
header ${JSON.stringify(import_node_path19.default.join(headerDirectory, name2 + "-Swift.h"))}
|
|
10207
10432
|
requires objc
|
|
10208
10433
|
}
|
|
10209
10434
|
` : swiftObjCModuleMap(moduleName, [
|
|
10210
|
-
...(input.nativeTargets?.find((target) => target.name === name2)?.publicHeaders ?? []).map((header) =>
|
|
10211
|
-
|
|
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")
|
|
10212
10437
|
])
|
|
10213
10438
|
);
|
|
10214
10439
|
nativeHeaderFlags.push("-fmodule-map-file=" + modulemap);
|
|
@@ -10217,7 +10442,7 @@ module ${moduleName}.Swift {
|
|
|
10217
10442
|
swiftModuleInputFiles(moduleRoot).join("\n")
|
|
10218
10443
|
);
|
|
10219
10444
|
if (!distribution) {
|
|
10220
|
-
modulePlan.update((0,
|
|
10445
|
+
modulePlan.update((0, import_node_fs17.readFileSync)(import_node_path19.default.join(moduleRoot, "Package.swift")));
|
|
10221
10446
|
}
|
|
10222
10447
|
const resourcePlan = (0, import_node_crypto8.createHash)("sha256").update(
|
|
10223
10448
|
JSON.stringify(
|
|
@@ -10265,7 +10490,7 @@ module ${moduleName}.Swift {
|
|
|
10265
10490
|
`;
|
|
10266
10491
|
} else if (mains.length === 0) {
|
|
10267
10492
|
const procedural = entries.filter(
|
|
10268
|
-
([file, source]) =>
|
|
10493
|
+
([file, source]) => import_node_path19.default.basename(file) === "main.swift" && swiftApplicationEntry(file, source)
|
|
10269
10494
|
);
|
|
10270
10495
|
const wrapped = procedural.length === 1 ? wrapUIApplicationMainEntry(procedural[0][1]) : null;
|
|
10271
10496
|
if (wrapped) {
|
|
@@ -10286,7 +10511,7 @@ module ${moduleName}.Swift {
|
|
|
10286
10511
|
`mixed executable ${target.name} requires one typed Swift application entry`
|
|
10287
10512
|
);
|
|
10288
10513
|
files.set(
|
|
10289
|
-
|
|
10514
|
+
import_node_path19.default.join(layout.root, nativeMains[0][0]),
|
|
10290
10515
|
neutralizedNativeMain(nativeMains[0][1])
|
|
10291
10516
|
);
|
|
10292
10517
|
nativeEntry = true;
|
|
@@ -10311,7 +10536,7 @@ module ${moduleName}.Swift {
|
|
|
10311
10536
|
exclude: []
|
|
10312
10537
|
});
|
|
10313
10538
|
files.set(
|
|
10314
|
-
|
|
10539
|
+
import_node_path19.default.join(layout.root, `PeachApplication/${name2}/Entry.swift`),
|
|
10315
10540
|
!nativeEntry ? `import ${swiftTargetModuleName(target.name)}
|
|
10316
10541
|
@main struct __PeachApplicationEntry { @MainActor static func main() { __peachRunApplication() } }
|
|
10317
10542
|
` : `import ${swiftTargetModuleName(target.name)}
|
|
@@ -10323,10 +10548,24 @@ module ${moduleName}.Swift {
|
|
|
10323
10548
|
const nativeImportFlags = /* @__PURE__ */ new Map();
|
|
10324
10549
|
for (const target of targets)
|
|
10325
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
|
+
}
|
|
10326
10565
|
const nativeFlags = native.size > 0 ? /* @__PURE__ */ new Map() : void 0;
|
|
10327
10566
|
if (nativeFlags) {
|
|
10328
10567
|
const toolchainBin = nativeToolchain();
|
|
10329
|
-
const headers =
|
|
10568
|
+
const headers = import_node_path19.default.join(swiftSdkPaths(moduleRoot, toolchainBin).sysroot, "darwin");
|
|
10330
10569
|
const dependencies2 = swiftTargetDependencies(input.files, targets);
|
|
10331
10570
|
const reachesNative = (name2, seen = /* @__PURE__ */ new Set()) => {
|
|
10332
10571
|
if (native.has(name2)) return true;
|
|
@@ -10354,7 +10593,6 @@ module ${moduleName}.Swift {
|
|
|
10354
10593
|
nativeImportFlags.set(target.name, intake);
|
|
10355
10594
|
nativeFlags.set(target.name, [
|
|
10356
10595
|
...swiftObjCRuntimeFlags,
|
|
10357
|
-
"-fobjc-exceptions",
|
|
10358
10596
|
"-fexceptions",
|
|
10359
10597
|
"-fwasm-exceptions",
|
|
10360
10598
|
// the backend lowers direct setjmp-family calls; -lsetjmp is already
|
|
@@ -10369,10 +10607,10 @@ module ${moduleName}.Swift {
|
|
|
10369
10607
|
if (targets.length === 0 && !prebuilt) {
|
|
10370
10608
|
for (const [file, contents] of Object.entries(input.files)) {
|
|
10371
10609
|
if (file === "Package.swift") continue;
|
|
10372
|
-
files.set(
|
|
10610
|
+
files.set(import_node_path19.default.join(layout.sources, file), compiled.get(file) ?? contents);
|
|
10373
10611
|
}
|
|
10374
|
-
let manifest = (0,
|
|
10375
|
-
|
|
10612
|
+
let manifest = (0, import_node_fs17.readFileSync)(
|
|
10613
|
+
import_node_path19.default.join(moduleRoot, "scripts/contrast-app-Package.swift"),
|
|
10376
10614
|
"utf8"
|
|
10377
10615
|
).replaceAll("__SOOTSIM_SWIFT_PACKAGE__", moduleRoot);
|
|
10378
10616
|
const reactor = ` ${REACTOR_FLAG}`;
|
|
@@ -10416,44 +10654,51 @@ module ${moduleName}.Swift {
|
|
|
10416
10654
|
manifest = manifest.replace(anchor, `${anchor}
|
|
10417
10655
|
${SPRITEKIT_PRODUCT},`);
|
|
10418
10656
|
}
|
|
10419
|
-
files.set(
|
|
10657
|
+
files.set(import_node_path19.default.join(layout.root, "Package.swift"), manifest + moduleFiles);
|
|
10420
10658
|
} else {
|
|
10421
10659
|
const base = layout.multi ? layout.root : layout.sources;
|
|
10422
10660
|
const libraries = /* @__PURE__ */ new Map();
|
|
10423
10661
|
for (const [target, data] of Object.entries(input.libraries ?? {})) {
|
|
10424
10662
|
const bytes = Buffer.from(data, "base64");
|
|
10425
10663
|
const digest = (0, import_node_crypto8.createHash)("sha256").update(bytes).digest("hex");
|
|
10426
|
-
const file =
|
|
10664
|
+
const file = import_node_path19.default.join(layout.root, ".peach-libraries", `lib${target}-${digest}.a`);
|
|
10427
10665
|
files.set(file, bytes);
|
|
10428
10666
|
libraries.set(target, file);
|
|
10429
10667
|
}
|
|
10430
10668
|
for (const [file, contents] of Object.entries(input.files)) {
|
|
10431
10669
|
if (file === "Package.swift") continue;
|
|
10432
|
-
const destination =
|
|
10670
|
+
const destination = import_node_path19.default.join(base, file);
|
|
10433
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;
|
|
10434
10679
|
files.set(
|
|
10435
10680
|
destination,
|
|
10436
|
-
compiled.get(file) ?? files.get(destination) ?? (interfaceModule && moduleInterface(interfaceModule)?.header) ?? contents
|
|
10681
|
+
localInterface ?? compiled.get(file) ?? files.get(destination) ?? (interfaceModule && moduleInterface(interfaceModule)?.header) ?? contents
|
|
10437
10682
|
);
|
|
10438
10683
|
}
|
|
10439
10684
|
const manifestTargets = targets.length > 0 ? targets : [
|
|
10440
10685
|
{
|
|
10441
10686
|
name: "App",
|
|
10442
|
-
path:
|
|
10687
|
+
path: import_node_path19.default.relative(layout.root, layout.sources).split(import_node_path19.default.sep).join("/"),
|
|
10443
10688
|
executable: true,
|
|
10444
10689
|
languageMode: 5,
|
|
10445
10690
|
mainActorIsolation: false,
|
|
10446
10691
|
resources: false
|
|
10447
10692
|
}
|
|
10448
10693
|
];
|
|
10449
|
-
const reachesFrameworks = !distribution || Object.entries(input.files).some(
|
|
10694
|
+
const reachesFrameworks = !distribution || swiftImportedModules.has("Foundation") || Object.entries(input.files).some(
|
|
10450
10695
|
([file, source]) => file.endsWith(".swift") && file !== input.entry && file !== "Package.swift" || /\.mm?$/.test(file) || source.includes("dispatch_")
|
|
10451
10696
|
) || [...importedModules].some(
|
|
10452
|
-
(name2) => distribution.modules.includes(name2) && !targets.some((target) => target.name === name2) && !(clangImportedModules.has(name2) && !swiftImportedModules.has(name2) && (0,
|
|
10453
|
-
|
|
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)
|
|
10454
10699
|
))
|
|
10455
10700
|
);
|
|
10456
|
-
const frameworkLink = prebuilt ?
|
|
10701
|
+
const frameworkLink = prebuilt ? import_node_path19.default.join(layout.root, ".peach-framework-objects.rsp") : void 0;
|
|
10457
10702
|
if (prebuilt && frameworkLink) {
|
|
10458
10703
|
const quote = (object) => `"${object.replaceAll("\\", "\\\\").replaceAll('"', '\\"')}"`;
|
|
10459
10704
|
files.set(
|
|
@@ -10464,29 +10709,29 @@ module ${moduleName}.Swift {
|
|
|
10464
10709
|
].join("\n") + "\n"
|
|
10465
10710
|
);
|
|
10466
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
|
+
}
|
|
10467
10724
|
files.set(
|
|
10468
|
-
|
|
10725
|
+
import_node_path19.default.join(layout.root, "Package.swift"),
|
|
10469
10726
|
emitSwiftPackageManifest({
|
|
10470
10727
|
root: layout.root,
|
|
10471
10728
|
targets: manifestTargets,
|
|
10472
10729
|
packages,
|
|
10473
10730
|
native,
|
|
10474
|
-
nativeResourceExclusions: [
|
|
10475
|
-
...new Set(
|
|
10476
|
-
swiftImplicitResourcePaths([
|
|
10477
|
-
...Object.keys(input.files),
|
|
10478
|
-
...Object.keys(input.packageFiles ?? {}),
|
|
10479
|
-
...Object.keys(input.projectFiles ?? {})
|
|
10480
|
-
]).map(
|
|
10481
|
-
(file) => /^(.*?\.(?:lproj|xcassets|xcdatamodeld|xcdatamodel|xcmappingmodel))(?:\/|$)/.exec(
|
|
10482
|
-
file
|
|
10483
|
-
)?.[1] ?? file
|
|
10484
|
-
)
|
|
10485
|
-
)
|
|
10486
|
-
],
|
|
10487
10731
|
nativeFlags,
|
|
10488
10732
|
nativeImportFlags,
|
|
10489
10733
|
nativeHeaderFlags,
|
|
10734
|
+
nativeHeaderDeclarations,
|
|
10490
10735
|
objcImplementationModules: new Set(
|
|
10491
10736
|
targets.filter(
|
|
10492
10737
|
(target) => targetEntries(target).some(
|
|
@@ -10498,10 +10743,7 @@ module ${moduleName}.Swift {
|
|
|
10498
10743
|
cxxLanguageStandard: swiftManifestCxxLanguageStandard(
|
|
10499
10744
|
input.files["Package.swift"] ?? ""
|
|
10500
10745
|
),
|
|
10501
|
-
siblings:
|
|
10502
|
-
input.files,
|
|
10503
|
-
layout.multi ? manifestTargets : manifestTargets.map((target) => ({ ...target, path: "." }))
|
|
10504
|
-
),
|
|
10746
|
+
siblings: moduleSiblings,
|
|
10505
10747
|
moduleRoot,
|
|
10506
10748
|
oneModule: input.oneModule,
|
|
10507
10749
|
spriteKit: importsSpriteKit(input.files),
|
|
@@ -10512,7 +10754,7 @@ module ${moduleName}.Swift {
|
|
|
10512
10754
|
),
|
|
10513
10755
|
...reachesFrameworks ? {
|
|
10514
10756
|
distributionLink: {
|
|
10515
|
-
path:
|
|
10757
|
+
path: import_node_path19.default.join(layout.root, ".peach-distribution-objects.rsp"),
|
|
10516
10758
|
files
|
|
10517
10759
|
},
|
|
10518
10760
|
lazyDistribution: input.lazyDistribution
|
|
@@ -10531,15 +10773,15 @@ module ${moduleName}.Swift {
|
|
|
10531
10773
|
);
|
|
10532
10774
|
}
|
|
10533
10775
|
for (const [file, bytes] of Object.entries(input.packageFiles ?? {}))
|
|
10534
|
-
files.set(
|
|
10776
|
+
files.set(import_node_path19.default.join(layout.root, file), Buffer.from(bytes, "base64"));
|
|
10535
10777
|
for (const [file, bytes] of Object.entries(input.projectFiles ?? {})) {
|
|
10536
|
-
const destination =
|
|
10778
|
+
const destination = import_node_path19.default.join(layout.root, file);
|
|
10537
10779
|
if (files.has(destination)) continue;
|
|
10538
10780
|
files.set(destination, Buffer.from(bytes, "base64"));
|
|
10539
10781
|
}
|
|
10540
10782
|
if (input.packageFiles || prebuilt) {
|
|
10541
10783
|
files.set(
|
|
10542
|
-
|
|
10784
|
+
import_node_path19.default.join(layout.root, ".peach-target-toolset.json"),
|
|
10543
10785
|
JSON.stringify({
|
|
10544
10786
|
schemaVersion: "1.0",
|
|
10545
10787
|
...headerAliasFlags.length > 0 ? {
|
|
@@ -10550,7 +10792,7 @@ module ${moduleName}.Swift {
|
|
|
10550
10792
|
extraCLIOptions: [
|
|
10551
10793
|
...headerAliasFlags.flatMap((flag) => ["-Xcc", flag]),
|
|
10552
10794
|
distribution || prebuilt ? "-Isystem" : "-I",
|
|
10553
|
-
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"),
|
|
10554
10796
|
...prebuilt?.moduleMaps.flatMap((map) => [
|
|
10555
10797
|
"-Xcc",
|
|
10556
10798
|
`-fmodule-map-file=${map}`
|
|
@@ -10579,9 +10821,9 @@ module ${moduleName}.Swift {
|
|
|
10579
10821
|
throw new Error(
|
|
10580
10822
|
`swift resource target ${target.name} has no matching bundle assignment`
|
|
10581
10823
|
);
|
|
10582
|
-
const directory = layout.multi ?
|
|
10824
|
+
const directory = layout.multi ? import_node_path19.default.join(layout.root, target.path) : layout.sources;
|
|
10583
10825
|
files.set(
|
|
10584
|
-
|
|
10826
|
+
import_node_path19.default.join(directory, "ResourceBundleAccessor.generated.swift"),
|
|
10585
10827
|
[
|
|
10586
10828
|
"import Foundation",
|
|
10587
10829
|
"",
|
|
@@ -10598,12 +10840,27 @@ module ${moduleName}.Swift {
|
|
|
10598
10840
|
}
|
|
10599
10841
|
for (const [file, source] of compiled)
|
|
10600
10842
|
if (!Object.hasOwn(input.files, file))
|
|
10601
|
-
files.set(
|
|
10602
|
-
syncSwiftTree(layout.root, files);
|
|
10843
|
+
files.set(import_node_path19.default.join(layout.multi ? layout.root : layout.sources, file), source);
|
|
10603
10844
|
const producers = [
|
|
10604
10845
|
.../* @__PURE__ */ new Set([...[...native.values()].flatMap((value) => value.late?.producers ?? [])])
|
|
10605
10846
|
];
|
|
10606
|
-
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
|
+
);
|
|
10607
10864
|
const included = /* @__PURE__ */ new Set();
|
|
10608
10865
|
const include = (name2) => {
|
|
10609
10866
|
if (included.has(name2)) return;
|
|
@@ -10613,7 +10870,14 @@ module ${moduleName}.Swift {
|
|
|
10613
10870
|
for (const producer of producers)
|
|
10614
10871
|
for (const dependency of dependencies.get(producer) ?? []) include(dependency);
|
|
10615
10872
|
return {
|
|
10616
|
-
headerProducers:
|
|
10873
|
+
headerProducers: [
|
|
10874
|
+
.../* @__PURE__ */ new Set([
|
|
10875
|
+
...Object.keys(nativeHeaderDeclarations),
|
|
10876
|
+
...producers.filter((name2) => !included.has(name2))
|
|
10877
|
+
])
|
|
10878
|
+
],
|
|
10879
|
+
nativeHeaderDeclarations,
|
|
10880
|
+
headerProductTarget,
|
|
10617
10881
|
targetFailures
|
|
10618
10882
|
};
|
|
10619
10883
|
}
|
|
@@ -10634,17 +10898,17 @@ function outputOf(error) {
|
|
|
10634
10898
|
return error instanceof Error ? error.message : String(error);
|
|
10635
10899
|
}
|
|
10636
10900
|
function builtArtifact(layout) {
|
|
10637
|
-
const binDir =
|
|
10638
|
-
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");
|
|
10639
10903
|
const executable = swiftManifestTargets(manifest).find((target) => target.executable);
|
|
10640
10904
|
if (executable === void 0) {
|
|
10641
10905
|
throw new Error("swift-compile: the written manifest names no executable target");
|
|
10642
10906
|
}
|
|
10643
|
-
return
|
|
10907
|
+
return import_node_path19.default.join(binDir, `${executable.name}.wasm`);
|
|
10644
10908
|
}
|
|
10645
10909
|
function projectDiagnostic(output, layout, files) {
|
|
10646
10910
|
const base = layout.multi ? layout.root : layout.sources;
|
|
10647
|
-
const prefix = `${base}${
|
|
10911
|
+
const prefix = `${base}${import_node_path19.default.sep}`;
|
|
10648
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();
|
|
10649
10913
|
}
|
|
10650
10914
|
var ROOT_LOCKS = Symbol.for("peachsim.swiftCompile.rootLocks");
|
|
@@ -10680,12 +10944,12 @@ function serialize(root, work, signal) {
|
|
|
10680
10944
|
function readCompiledArtifact(directory, hash) {
|
|
10681
10945
|
try {
|
|
10682
10946
|
const receipt = JSON.parse(
|
|
10683
|
-
(0,
|
|
10947
|
+
(0, import_node_fs17.readFileSync)(import_node_path19.default.join(directory, "artifact.json"), "utf8")
|
|
10684
10948
|
);
|
|
10685
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")
|
|
10686
10950
|
return null;
|
|
10687
|
-
const bytes = (0,
|
|
10688
|
-
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"));
|
|
10689
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)
|
|
10690
10954
|
return null;
|
|
10691
10955
|
return { hash, bytes, icu: { sha256: receipt.icu, gzip: gzip2 } };
|
|
@@ -10696,14 +10960,14 @@ function readCompiledArtifact(directory, hash) {
|
|
|
10696
10960
|
}
|
|
10697
10961
|
}
|
|
10698
10962
|
function saveCompiledArtifact(root, artifact) {
|
|
10699
|
-
const directory =
|
|
10700
|
-
(0,
|
|
10701
|
-
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-"));
|
|
10702
10966
|
try {
|
|
10703
|
-
(0,
|
|
10704
|
-
(0,
|
|
10705
|
-
(0,
|
|
10706
|
-
|
|
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"),
|
|
10707
10971
|
JSON.stringify({
|
|
10708
10972
|
hash: artifact.hash,
|
|
10709
10973
|
wasm: (0, import_node_crypto8.createHash)("sha256").update(artifact.bytes).digest("hex"),
|
|
@@ -10711,10 +10975,10 @@ function saveCompiledArtifact(root, artifact) {
|
|
|
10711
10975
|
})
|
|
10712
10976
|
);
|
|
10713
10977
|
for (const file of ["app.wasm", "icu.gz", "artifact.json"]) {
|
|
10714
|
-
(0,
|
|
10978
|
+
(0, import_node_fs17.renameSync)(import_node_path19.default.join(pending, file), import_node_path19.default.join(directory, file));
|
|
10715
10979
|
}
|
|
10716
10980
|
} finally {
|
|
10717
|
-
(0,
|
|
10981
|
+
(0, import_node_fs17.rmSync)(pending, { recursive: true, force: true });
|
|
10718
10982
|
}
|
|
10719
10983
|
}
|
|
10720
10984
|
var SHARED_ARTIFACT_BUDGET_BYTES = 4 * 1024 ** 3;
|
|
@@ -10725,29 +10989,29 @@ function vanished(error) {
|
|
|
10725
10989
|
}
|
|
10726
10990
|
function renewSharedArtifact(sharedRoot) {
|
|
10727
10991
|
try {
|
|
10728
|
-
(0,
|
|
10992
|
+
(0, import_node_fs17.utimesSync)(sharedRoot, /* @__PURE__ */ new Date(), /* @__PURE__ */ new Date());
|
|
10729
10993
|
} catch (error) {
|
|
10730
10994
|
if (!vanished(error)) throw error;
|
|
10731
10995
|
}
|
|
10732
10996
|
}
|
|
10733
10997
|
function pruneSharedArtifacts(parent, keep) {
|
|
10734
10998
|
const entries = [];
|
|
10735
|
-
for (const name2 of (0,
|
|
10736
|
-
const directory =
|
|
10999
|
+
for (const name2 of (0, import_node_fs17.readdirSync)(parent)) {
|
|
11000
|
+
const directory = import_node_path19.default.join(parent, name2);
|
|
10737
11001
|
if (name2.startsWith(RETIRED_PREFIX)) {
|
|
10738
11002
|
reapRetiredCacheDirectory(parent, name2);
|
|
10739
11003
|
continue;
|
|
10740
11004
|
}
|
|
10741
11005
|
try {
|
|
10742
11006
|
let bytes = 0;
|
|
10743
|
-
for (const file of (0,
|
|
11007
|
+
for (const file of (0, import_node_fs17.readdirSync)(import_node_path19.default.join(directory, "artifact"))) {
|
|
10744
11008
|
try {
|
|
10745
|
-
bytes += (0,
|
|
11009
|
+
bytes += (0, import_node_fs17.statSync)(import_node_path19.default.join(directory, "artifact", file)).size;
|
|
10746
11010
|
} catch (error) {
|
|
10747
11011
|
if (!vanished(error)) throw error;
|
|
10748
11012
|
}
|
|
10749
11013
|
}
|
|
10750
|
-
entries.push({ directory, used: (0,
|
|
11014
|
+
entries.push({ directory, used: (0, import_node_fs17.statSync)(directory).mtimeMs, bytes });
|
|
10751
11015
|
} catch (error) {
|
|
10752
11016
|
if (!vanished(error)) throw error;
|
|
10753
11017
|
}
|
|
@@ -10757,13 +11021,13 @@ function pruneSharedArtifacts(parent, keep) {
|
|
|
10757
11021
|
if (total <= SHARED_ARTIFACT_BUDGET_BYTES) break;
|
|
10758
11022
|
if (entry.directory === keep || Date.now() - entry.used < SHARED_ARTIFACT_GRACE_MS)
|
|
10759
11023
|
continue;
|
|
10760
|
-
const retired =
|
|
11024
|
+
const retired = import_node_path19.default.join(
|
|
10761
11025
|
parent,
|
|
10762
|
-
`${RETIRED_PREFIX}${process.pid}-${
|
|
11026
|
+
`${RETIRED_PREFIX}${process.pid}-${import_node_path19.default.basename(entry.directory)}`
|
|
10763
11027
|
);
|
|
10764
11028
|
try {
|
|
10765
|
-
if ((0,
|
|
10766
|
-
(0,
|
|
11029
|
+
if ((0, import_node_fs17.statSync)(entry.directory).mtimeMs !== entry.used) continue;
|
|
11030
|
+
(0, import_node_fs17.renameSync)(entry.directory, retired);
|
|
10767
11031
|
} catch (error) {
|
|
10768
11032
|
if (vanished(error)) continue;
|
|
10769
11033
|
throw error;
|
|
@@ -10775,7 +11039,7 @@ function pruneSharedArtifacts(parent, keep) {
|
|
|
10775
11039
|
function saveSharedArtifact(sharedRoot, artifact) {
|
|
10776
11040
|
saveCompiledArtifact(sharedRoot, artifact);
|
|
10777
11041
|
renewSharedArtifact(sharedRoot);
|
|
10778
|
-
pruneSharedArtifacts(
|
|
11042
|
+
pruneSharedArtifacts(import_node_path19.default.dirname(sharedRoot), sharedRoot);
|
|
10779
11043
|
}
|
|
10780
11044
|
var retainedArtifacts = /* @__PURE__ */ new Map();
|
|
10781
11045
|
function retain(root, artifact) {
|
|
@@ -10803,7 +11067,7 @@ function frameworkLibraryTargets(manifest) {
|
|
|
10803
11067
|
}
|
|
10804
11068
|
function linkedFrameworkTargets(moduleRoot, input) {
|
|
10805
11069
|
const libraries = frameworkLibraryTargets(
|
|
10806
|
-
(0,
|
|
11070
|
+
(0, import_node_fs17.readFileSync)(import_node_path19.default.join(moduleRoot, "Package.swift"), "utf8")
|
|
10807
11071
|
);
|
|
10808
11072
|
const targets = compileTargets(input);
|
|
10809
11073
|
const planning = targets.length > 0 ? targets : [{ name: "App", path: "." }];
|
|
@@ -10844,7 +11108,7 @@ function linkedFrameworkTargets(moduleRoot, input) {
|
|
|
10844
11108
|
return { products: linked, targets: linkedMembers };
|
|
10845
11109
|
}
|
|
10846
11110
|
function writeFrameworkLinkPackage(linkRoot, moduleRoot, products) {
|
|
10847
|
-
const identity =
|
|
11111
|
+
const identity = import_node_path19.default.basename(moduleRoot).toLowerCase();
|
|
10848
11112
|
const swiftString = (value) => `"${value.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
|
|
10849
11113
|
const dependencies = products.map(
|
|
10850
11114
|
(name2) => ` .product(name: ${swiftString(name2)}, package: ${swiftString(identity)}),`
|
|
@@ -10866,13 +11130,13 @@ ${dependencies}
|
|
|
10866
11130
|
]
|
|
10867
11131
|
)
|
|
10868
11132
|
`;
|
|
10869
|
-
const sourceDir =
|
|
10870
|
-
(0,
|
|
10871
|
-
const manifestPath =
|
|
10872
|
-
if (!(0,
|
|
10873
|
-
(0,
|
|
10874
|
-
const source =
|
|
10875
|
-
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, "");
|
|
10876
11140
|
}
|
|
10877
11141
|
function frameworkLinkClosure(scratch2, roots) {
|
|
10878
11142
|
const suffix = `${WASM_TRIPLE}-release`;
|
|
@@ -10883,7 +11147,7 @@ function frameworkLinkClosure(scratch2, roots) {
|
|
|
10883
11147
|
const moduleMaps = /* @__PURE__ */ new Map();
|
|
10884
11148
|
let pending = null;
|
|
10885
11149
|
let compiling = null;
|
|
10886
|
-
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(
|
|
10887
11151
|
"\n"
|
|
10888
11152
|
)) {
|
|
10889
11153
|
const phony = phonyHeader.exec(line);
|
|
@@ -10942,7 +11206,7 @@ function frameworkLinkClosure(scratch2, roots) {
|
|
|
10942
11206
|
for (const file of own) {
|
|
10943
11207
|
if (seen.has(file)) continue;
|
|
10944
11208
|
seen.add(file);
|
|
10945
|
-
if (!(0,
|
|
11209
|
+
if (!(0, import_node_fs17.existsSync)(file))
|
|
10946
11210
|
throw new Error(`swift-compile: framework object ${file} was not built`);
|
|
10947
11211
|
files.push(file);
|
|
10948
11212
|
}
|
|
@@ -10952,26 +11216,26 @@ function frameworkLinkClosure(scratch2, roots) {
|
|
|
10952
11216
|
return { objects: files, modules, moduleMaps: [...maps].sort() };
|
|
10953
11217
|
}
|
|
10954
11218
|
function removeCaseCollidingModuleArtifacts(modulesDir, keep) {
|
|
10955
|
-
if (!(0,
|
|
11219
|
+
if (!(0, import_node_fs17.existsSync)(modulesDir)) return;
|
|
10956
11220
|
const folded = new Set([...keep].map((name2) => name2.toLowerCase()));
|
|
10957
|
-
for (const name2 of (0,
|
|
11221
|
+
for (const name2 of (0, import_node_fs17.readdirSync)(modulesDir)) {
|
|
10958
11222
|
const dot = name2.indexOf(".");
|
|
10959
11223
|
if (dot <= 0) continue;
|
|
10960
11224
|
const module2 = name2.slice(0, dot);
|
|
10961
11225
|
if (keep.has(module2) || !folded.has(module2.toLowerCase())) continue;
|
|
10962
|
-
(0,
|
|
11226
|
+
(0, import_node_fs17.rmSync)(import_node_path19.default.join(modulesDir, name2), { recursive: true, force: true });
|
|
10963
11227
|
}
|
|
10964
11228
|
}
|
|
10965
11229
|
async function compileFrameworkProducts(args) {
|
|
10966
11230
|
const scratch2 = swiftFrameworkScratch(args.frameworkKey);
|
|
10967
|
-
(0,
|
|
11231
|
+
(0, import_node_fs17.mkdirSync)(scratch2, { recursive: true });
|
|
10968
11232
|
const now = /* @__PURE__ */ new Date();
|
|
10969
|
-
(0,
|
|
11233
|
+
(0, import_node_fs17.utimesSync)(scratch2, now, now);
|
|
10970
11234
|
return buildFrameworkProducts(scratch2, args);
|
|
10971
11235
|
}
|
|
10972
11236
|
async function buildFrameworkProducts(scratch2, args) {
|
|
10973
11237
|
const linkedTargets = linkedFrameworkTargets(args.moduleRoot, args.input);
|
|
10974
|
-
const linkRoot =
|
|
11238
|
+
const linkRoot = import_node_path19.default.join(scratch2, "link");
|
|
10975
11239
|
writeFrameworkLinkPackage(linkRoot, args.moduleRoot, linkedTargets.products);
|
|
10976
11240
|
await runCompiler(
|
|
10977
11241
|
args.swift,
|
|
@@ -11000,7 +11264,7 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
11000
11264
|
"-Xswiftc",
|
|
11001
11265
|
BUILD_JOBS,
|
|
11002
11266
|
...swiftReproducibleBuildFlags([
|
|
11003
|
-
[
|
|
11267
|
+
[import_node_path19.default.dirname(args.toolchainBin), "toolchain"],
|
|
11004
11268
|
[args.moduleRoot, "framework"],
|
|
11005
11269
|
[scratch2, "framework-scratch"]
|
|
11006
11270
|
]),
|
|
@@ -11025,30 +11289,46 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
11025
11289
|
).catch((error) => {
|
|
11026
11290
|
throw new Error(outputOf(error), { cause: error });
|
|
11027
11291
|
});
|
|
11028
|
-
const release =
|
|
11292
|
+
const release = import_node_path19.default.join(scratch2, WASM_TRIPLE, "release");
|
|
11029
11293
|
const linked = frameworkLinkClosure(scratch2, linkedTargets.targets);
|
|
11030
11294
|
const objects = linked.objects;
|
|
11031
|
-
|
|
11032
|
-
|
|
11033
|
-
|
|
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");
|
|
11034
11313
|
const extracted = await runCompiler(
|
|
11035
|
-
|
|
11314
|
+
import_node_path19.default.join(args.toolchainBin, "swift-autolink-extract"),
|
|
11036
11315
|
[`@${response}`, "-o", "-"],
|
|
11037
11316
|
args.buildOptions
|
|
11038
11317
|
);
|
|
11039
|
-
(0,
|
|
11318
|
+
(0, import_node_fs17.rmSync)(response, { force: true });
|
|
11040
11319
|
const link = extracted.split("\n").map((line) => line.trim()).filter((flag, index, all) => flag.length > 0 && all.indexOf(flag) === index);
|
|
11041
11320
|
if (link.includes("-lFoundation"))
|
|
11042
|
-
|
|
11043
|
-
|
|
11044
|
-
|
|
11045
|
-
|
|
11046
|
-
|
|
11047
|
-
|
|
11048
|
-
|
|
11049
|
-
|
|
11050
|
-
|
|
11051
|
-
(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);
|
|
11052
11332
|
const sdkPaths2 = swiftSdkPaths(args.moduleRoot, args.toolchainBin);
|
|
11053
11333
|
compileDarwinRecords({
|
|
11054
11334
|
bin: args.toolchainBin,
|
|
@@ -11058,12 +11338,12 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
11058
11338
|
minimum: darwinRecordsMinimum(),
|
|
11059
11339
|
out: providerDir
|
|
11060
11340
|
});
|
|
11061
|
-
(0,
|
|
11341
|
+
(0, import_node_fs17.writeFileSync)(import_node_path19.default.join(providerDir, ".complete"), "");
|
|
11062
11342
|
}
|
|
11063
11343
|
return {
|
|
11064
|
-
modules:
|
|
11344
|
+
modules: import_node_path19.default.join(release, "Modules"),
|
|
11065
11345
|
objects,
|
|
11066
|
-
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)),
|
|
11067
11347
|
link,
|
|
11068
11348
|
moduleMaps: linked.moduleMaps
|
|
11069
11349
|
};
|
|
@@ -11071,35 +11351,35 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
11071
11351
|
var SWIFT_LINK_STAMP = ".peach-link-stamp";
|
|
11072
11352
|
var SWIFT_FRAMEWORK_SCRATCHES_KEPT = 3;
|
|
11073
11353
|
function swiftFrameworksDir() {
|
|
11074
|
-
return
|
|
11354
|
+
return import_node_path19.default.join(swiftCacheDir(), "swift-frameworks");
|
|
11075
11355
|
}
|
|
11076
11356
|
function swiftFrameworkScratch(frameworkKey) {
|
|
11077
|
-
return
|
|
11357
|
+
return import_node_path19.default.join(swiftFrameworksDir(), frameworkKey);
|
|
11078
11358
|
}
|
|
11079
11359
|
function stageFrameworkSource(moduleRoot, frameworkKey) {
|
|
11080
11360
|
if (swiftDistributionAt(moduleRoot)) return moduleRoot;
|
|
11081
|
-
const staged =
|
|
11082
|
-
const stagedModule =
|
|
11083
|
-
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;
|
|
11084
11364
|
const partial = `${staged}.${(0, import_node_crypto8.randomUUID)()}`;
|
|
11085
|
-
(0,
|
|
11086
|
-
(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)), {
|
|
11087
11367
|
recursive: true,
|
|
11088
11368
|
preserveTimestamps: true,
|
|
11089
|
-
filter: (source) =>
|
|
11369
|
+
filter: (source) => import_node_path19.default.relative(moduleRoot, source) !== ".build"
|
|
11090
11370
|
});
|
|
11091
|
-
(0,
|
|
11371
|
+
(0, import_node_fs17.cpSync)(
|
|
11092
11372
|
swiftSharedSdkRoot(moduleRoot, false),
|
|
11093
|
-
|
|
11373
|
+
import_node_path19.default.join(partial, "packages/peachsim/sdk/ios"),
|
|
11094
11374
|
{ recursive: true, preserveTimestamps: true }
|
|
11095
11375
|
);
|
|
11096
|
-
(0,
|
|
11097
|
-
(0,
|
|
11098
|
-
|
|
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")
|
|
11099
11379
|
);
|
|
11100
|
-
(0,
|
|
11101
|
-
(0,
|
|
11102
|
-
(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);
|
|
11103
11383
|
return stagedModule;
|
|
11104
11384
|
}
|
|
11105
11385
|
function swiftLinkStamp(args) {
|
|
@@ -11109,7 +11389,7 @@ ${args.frameworkKey}
|
|
|
11109
11389
|
`);
|
|
11110
11390
|
if (!args.prebuilt) return hash.digest("hex");
|
|
11111
11391
|
const statOf = (file) => {
|
|
11112
|
-
const stat = (0,
|
|
11392
|
+
const stat = (0, import_node_fs17.statSync)(file, { bigint: true });
|
|
11113
11393
|
return `${stat.size}:${stat.mtimeNs}`;
|
|
11114
11394
|
};
|
|
11115
11395
|
for (const object of args.prebuilt.objects)
|
|
@@ -11130,50 +11410,60 @@ ${args.prebuilt.link.join("\n")}
|
|
|
11130
11410
|
hash.update(`modules
|
|
11131
11411
|
${args.prebuilt.modules}
|
|
11132
11412
|
`);
|
|
11133
|
-
for (const entry of (0,
|
|
11413
|
+
for (const entry of (0, import_node_fs17.readdirSync)(args.prebuilt.modules).sort())
|
|
11134
11414
|
hash.update(`${entry}
|
|
11135
|
-
${statOf(
|
|
11415
|
+
${statOf(import_node_path19.default.join(args.prebuilt.modules, entry))}`);
|
|
11136
11416
|
return hash.digest("hex");
|
|
11137
11417
|
}
|
|
11138
11418
|
async function pruneFrameworkScratches(keep) {
|
|
11139
11419
|
const dir = swiftFrameworksDir();
|
|
11140
|
-
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);
|
|
11141
11421
|
for (const { name: name2 } of idle)
|
|
11142
11422
|
await withSwiftRootLock(
|
|
11143
|
-
|
|
11144
|
-
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 }),
|
|
11145
11425
|
void 0,
|
|
11146
11426
|
false
|
|
11147
11427
|
);
|
|
11148
11428
|
}
|
|
11149
11429
|
function retireStaleSwiftLink(root, stamp) {
|
|
11150
|
-
const receipt =
|
|
11430
|
+
const receipt = import_node_path19.default.join(root, SWIFT_LINK_STAMP);
|
|
11151
11431
|
let previous = null;
|
|
11152
11432
|
try {
|
|
11153
|
-
previous = (0,
|
|
11433
|
+
previous = (0, import_node_fs17.readFileSync)(receipt, "utf8").trim();
|
|
11154
11434
|
} catch (error) {
|
|
11155
11435
|
if (!vanished(error)) throw error;
|
|
11156
11436
|
}
|
|
11157
|
-
(0,
|
|
11437
|
+
(0, import_node_fs17.writeFileSync)(receipt, `${stamp}
|
|
11158
11438
|
`);
|
|
11159
|
-
const retired =
|
|
11160
|
-
if (previous === stamp || !(0,
|
|
11161
|
-
(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 });
|
|
11162
11442
|
return true;
|
|
11163
11443
|
}
|
|
11164
11444
|
function compileSwiftProjectUnit(input, options) {
|
|
11165
11445
|
options.signal?.throwIfAborted();
|
|
11166
|
-
(0,
|
|
11167
|
-
const root = (0,
|
|
11168
|
-
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
|
+
}
|
|
11169
11459
|
const layout = {
|
|
11170
11460
|
root,
|
|
11171
|
-
sources:
|
|
11461
|
+
sources: import_node_path19.default.join(root, "Sources", "App"),
|
|
11172
11462
|
multi: compileTargets(input).length > 0
|
|
11173
11463
|
};
|
|
11174
11464
|
const hash = swiftArtifactHash(input, options.release, moduleRoot);
|
|
11175
11465
|
const frameworkKey = swiftProjectBuildKey(moduleRoot, options.release);
|
|
11176
|
-
const sharedRoot =
|
|
11466
|
+
const sharedRoot = import_node_path19.default.join(swiftCacheDir(), "swift-projects", hash);
|
|
11177
11467
|
const report = (message) => {
|
|
11178
11468
|
console.error(`[swift-project ${hash.slice(0, 16)}] ${message}`);
|
|
11179
11469
|
options.onStage?.(message);
|
|
@@ -11187,8 +11477,8 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11187
11477
|
report("reusing memory artifact");
|
|
11188
11478
|
return retain(root, retained);
|
|
11189
11479
|
}
|
|
11190
|
-
const cached = readCompiledArtifact(
|
|
11191
|
-
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));
|
|
11192
11482
|
if (previous) {
|
|
11193
11483
|
if (cached) renewSharedArtifact(sharedRoot);
|
|
11194
11484
|
else saveSharedArtifact(sharedRoot, previous);
|
|
@@ -11196,10 +11486,10 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11196
11486
|
return retain(root, previous);
|
|
11197
11487
|
}
|
|
11198
11488
|
if (process.platform === "darwin" && process.env.TM_SESSION && !windowAdmission() && process.env.CI !== "true" && moduleRoot === sourceSwiftCheckout() && !swiftDistributionAt(moduleRoot)) {
|
|
11199
|
-
const requestRoot = (0,
|
|
11200
|
-
const output =
|
|
11201
|
-
const request =
|
|
11202
|
-
(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)(
|
|
11203
11493
|
request,
|
|
11204
11494
|
JSON.stringify({
|
|
11205
11495
|
input,
|
|
@@ -11212,12 +11502,12 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11212
11502
|
})
|
|
11213
11503
|
);
|
|
11214
11504
|
try {
|
|
11215
|
-
const repo =
|
|
11505
|
+
const repo = import_node_path19.default.resolve(moduleRoot, "../..");
|
|
11216
11506
|
report("requesting builder admission or cached result");
|
|
11217
11507
|
await runCompiler(
|
|
11218
11508
|
"bun",
|
|
11219
11509
|
[
|
|
11220
|
-
|
|
11510
|
+
import_node_path19.default.join(repo, "scripts/build/swift-project.ts"),
|
|
11221
11511
|
"--request",
|
|
11222
11512
|
request,
|
|
11223
11513
|
"--output",
|
|
@@ -11245,19 +11535,19 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11245
11535
|
report("builder artifact verified");
|
|
11246
11536
|
return retain(root, artifact);
|
|
11247
11537
|
} finally {
|
|
11248
|
-
(0,
|
|
11538
|
+
(0, import_node_fs17.rmSync)(requestRoot, { recursive: true, force: true });
|
|
11249
11539
|
}
|
|
11250
11540
|
}
|
|
11251
11541
|
return withSwiftRootLock(
|
|
11252
11542
|
root,
|
|
11253
11543
|
async (lease) => {
|
|
11254
|
-
const built = readCompiledArtifact(
|
|
11544
|
+
const built = readCompiledArtifact(import_node_path19.default.join(sharedRoot, "artifact"), hash);
|
|
11255
11545
|
if (built) {
|
|
11256
11546
|
report("reusing verified disk artifact");
|
|
11257
11547
|
return retain(root, built);
|
|
11258
11548
|
}
|
|
11259
|
-
const swift =
|
|
11260
|
-
if (!(0,
|
|
11549
|
+
const swift = import_node_path19.default.join(options.toolchainBin, "swift");
|
|
11550
|
+
if (!(0, import_node_fs17.existsSync)(swift)) {
|
|
11261
11551
|
throw new Error(
|
|
11262
11552
|
`swift-compile: no swift.org toolchain at ${options.toolchainBin}; install ${options.release} and its matching wasm sdk`
|
|
11263
11553
|
);
|
|
@@ -11282,8 +11572,8 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11282
11572
|
// shipped host plugins resolve against the selected compiler's runtime.
|
|
11283
11573
|
...process.platform === "linux" ? {
|
|
11284
11574
|
LD_LIBRARY_PATH: [
|
|
11285
|
-
|
|
11286
|
-
|
|
11575
|
+
import_node_path19.default.resolve(options.toolchainBin, "../lib/swift/linux"),
|
|
11576
|
+
import_node_path19.default.resolve(options.toolchainBin, "../lib/swift/host"),
|
|
11287
11577
|
process.env.LD_LIBRARY_PATH
|
|
11288
11578
|
].filter(Boolean).join(":")
|
|
11289
11579
|
} : {},
|
|
@@ -11336,6 +11626,16 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11336
11626
|
const unprepared = preparation.targetFailures.map(
|
|
11337
11627
|
(failure) => `error: target ${failure}`
|
|
11338
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
|
+
}
|
|
11339
11639
|
const buildArgs = [
|
|
11340
11640
|
"build",
|
|
11341
11641
|
...projectProcess?.cacheOptions ?? swiftPackageCacheOptions(),
|
|
@@ -11348,7 +11648,7 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11348
11648
|
...swiftCompileSdkOptions(frameworkRoot, options.toolchainBin),
|
|
11349
11649
|
"--swift-sdk",
|
|
11350
11650
|
sdk,
|
|
11351
|
-
...input.packageFiles || prebuilt ? ["--toolset",
|
|
11651
|
+
...input.packageFiles || prebuilt ? ["--toolset", import_node_path19.default.join(root, ".peach-target-toolset.json")] : [],
|
|
11352
11652
|
"-c",
|
|
11353
11653
|
"release",
|
|
11354
11654
|
"-Xswiftc",
|
|
@@ -11356,9 +11656,10 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11356
11656
|
"-Xswiftc",
|
|
11357
11657
|
BUILD_JOBS,
|
|
11358
11658
|
...swiftReproducibleBuildFlags([
|
|
11359
|
-
[
|
|
11659
|
+
[import_node_path19.default.dirname(options.toolchainBin), "toolchain"],
|
|
11360
11660
|
[frameworkRoot, "framework"],
|
|
11361
|
-
[root, "build"]
|
|
11661
|
+
[root, "build"],
|
|
11662
|
+
...forwarders
|
|
11362
11663
|
]),
|
|
11363
11664
|
...macroPlugins.libraries.flatMap((plugin) => [
|
|
11364
11665
|
"-Xswiftc",
|
|
@@ -11375,31 +11676,42 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11375
11676
|
];
|
|
11376
11677
|
const linked = builtArtifact(layout);
|
|
11377
11678
|
if (input.lazyDistribution) {
|
|
11378
|
-
(0,
|
|
11379
|
-
if ((0,
|
|
11380
|
-
(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 });
|
|
11381
11682
|
}
|
|
11382
11683
|
report("compiling and linking Swift modules");
|
|
11383
11684
|
try {
|
|
11384
|
-
|
|
11685
|
+
const headerBuilds = preparation.headerProductTarget ? [
|
|
11686
|
+
...Object.keys(preparation.nativeHeaderDeclarations),
|
|
11687
|
+
preparation.headerProductTarget
|
|
11688
|
+
] : preparation.headerProducers;
|
|
11689
|
+
for (const build of headerBuilds) {
|
|
11385
11690
|
await runCompiler(
|
|
11386
11691
|
swift,
|
|
11387
|
-
[...buildArgs, "--target",
|
|
11692
|
+
[...buildArgs, "--target", build],
|
|
11388
11693
|
appOptions,
|
|
11389
11694
|
SWIFTPM_PROGRESS,
|
|
11390
11695
|
SWIFTPM_NOISE
|
|
11391
11696
|
);
|
|
11392
|
-
const
|
|
11393
|
-
|
|
11394
|
-
|
|
11395
|
-
|
|
11396
|
-
|
|
11397
|
-
|
|
11398
|
-
if ((0, import_node_fs16.existsSync)(emitted))
|
|
11399
|
-
(0, import_node_fs16.writeFileSync)(
|
|
11400
|
-
emitted,
|
|
11401
|
-
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`
|
|
11402
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
|
+
}
|
|
11403
11715
|
}
|
|
11404
11716
|
await runCompiler(
|
|
11405
11717
|
swift,
|
|
@@ -11410,15 +11722,15 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11410
11722
|
);
|
|
11411
11723
|
} catch (error) {
|
|
11412
11724
|
const output2 = outputOf(error);
|
|
11413
|
-
const moduleCache =
|
|
11725
|
+
const moduleCache = import_node_path19.default.join(
|
|
11414
11726
|
root,
|
|
11415
11727
|
".build",
|
|
11416
11728
|
WASM_TRIPLE,
|
|
11417
11729
|
"release",
|
|
11418
11730
|
"ModuleCache"
|
|
11419
11731
|
);
|
|
11420
|
-
if (output2.includes("was compiled with module cache path") && (0,
|
|
11421
|
-
(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 });
|
|
11422
11734
|
try {
|
|
11423
11735
|
await runCompiler(
|
|
11424
11736
|
swift,
|
|
@@ -11448,11 +11760,11 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11448
11760
|
if (options.project) endSwiftProjectProcesses(options.project);
|
|
11449
11761
|
}
|
|
11450
11762
|
if (unprepared.length) throw new Error(unprepared.join("\n"));
|
|
11451
|
-
if (!(0,
|
|
11452
|
-
const binDir =
|
|
11453
|
-
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() : [];
|
|
11454
11766
|
throw new Error(
|
|
11455
|
-
`swift-compile: the build produced no ${
|
|
11767
|
+
`swift-compile: the build produced no ${import_node_path19.default.basename(linked)} (found: ${found.join(", ") || "none"})`
|
|
11456
11768
|
);
|
|
11457
11769
|
}
|
|
11458
11770
|
if (options.project) removeProjectLinks(root);
|
|
@@ -11469,7 +11781,7 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11469
11781
|
}
|
|
11470
11782
|
const artifact = {
|
|
11471
11783
|
hash,
|
|
11472
|
-
bytes: (0,
|
|
11784
|
+
bytes: (0, import_node_fs17.readFileSync)(input.lazyDistribution ? optimized : output),
|
|
11473
11785
|
icu: await icu
|
|
11474
11786
|
};
|
|
11475
11787
|
if (!options.project) saveCompiledArtifact(root, artifact);
|
|
@@ -11490,6 +11802,7 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11490
11802
|
0 && (module.exports = {
|
|
11491
11803
|
FOUNDATION_IMPLICIT_MODULES,
|
|
11492
11804
|
MULTI_MANIFEST_VERSION,
|
|
11805
|
+
SWIFT_BUILD_JOBS,
|
|
11493
11806
|
WASM_TRIPLE,
|
|
11494
11807
|
brotliCompressQ11,
|
|
11495
11808
|
brotliCompressQ4,
|
|
@@ -11500,7 +11813,6 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
11500
11813
|
ensureMacroPlugins,
|
|
11501
11814
|
foundationOwnerOf,
|
|
11502
11815
|
lowerAVAssetURLCluster,
|
|
11503
|
-
lowerNSDictionaryLiteralReturn,
|
|
11504
11816
|
lowerNSValueTimeBox,
|
|
11505
11817
|
missingSwiftModules,
|
|
11506
11818
|
neutralizedNativeMain,
|