Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS 17 bindings #758

Merged
merged 30 commits into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
21bb95f
* ios17 bindings: Foundation processed
dkimitsa Oct 26, 2023
689e31d
* ios17 bindings: UIKit processed (not all UITrait api provided due t…
dkimitsa Oct 28, 2023
7b28c99
* ios17 bindings: new framework Symbols
dkimitsa Oct 28, 2023
3cb1e69
* ios17 bindings: Social processed
dkimitsa Oct 28, 2023
5938ba3
* ios17 bindings: Accessibility, CoreImage, HomeKit, NearbyInteractio…
dkimitsa Oct 28, 2023
ecafded
* ios17 bindings: CoreImage, Network processed
dkimitsa Oct 28, 2023
2e6780b
* ios17 bindings: CoreMedia, ImageCaptureCore, NetworkExtension proce…
dkimitsa Oct 29, 2023
e7ce7d4
* ios17 bindings: CoreMidi, Intents, ImageIO, PassKit processed
dkimitsa Oct 29, 2023
4c7577a
* ios17 bindings: AudioToolBox, CoreML, PDFKit, PencilKit
dkimitsa Oct 29, 2023
b2fadfb
* ios17 bindings: AuthServices, CoreMotion, Photos
dkimitsa Oct 29, 2023
6f4e4e7
* ios17 bindings: AVFoundation, CoreNFc, LinkPresentation, LocalAuthe…
dkimitsa Oct 29, 2023
ab9985f
* ios17 bindings: AVKit, BackgroundTasks, CoreSpotlight, CoreTelephon…
dkimitsa Oct 29, 2023
d09897d
* ios17 bindings: CallKit, CarPlay, CoreVideo, Messages, Metal, Scene…
dkimitsa Oct 29, 2023
98e0db3
* ios17 bindings: CloudKit, EventKit, MetalKit processed
dkimitsa Oct 29, 2023
3044fb3
* ios17 bindings: Contacts, CoreAnimation, MetalPS, Security, SensorK…
dkimitsa Oct 29, 2023
cd30815
* ios17 bindings: GameController processed -- probably breaking chang…
dkimitsa Oct 31, 2023
3d748f9
* ios17 bindings: MetakPerformanceShaderGraph, CoreAudio, ShazamKit p…
dkimitsa Oct 31, 2023
0c58155
* ios17 bindings: CoreBlueTooth, GameKit, MetricKit, Speech processed
dkimitsa Oct 31, 2023
ad251d6
* ios17 bindings: CoreData, HealthKit, MLCompute, StoreKit processed
dkimitsa Nov 4, 2023
afef639
* ios17 bindings: CoreFoundation, CoreGraphics, NaturalLanguage, Thre…
dkimitsa Nov 4, 2023
f530492
* ios17 bindings: UniformTypeId, Vision processed
dkimitsa Nov 4, 2023
95b1a40
* ios17 bindings: WebKit processed
dkimitsa Nov 4, 2023
bdaf5dc
* ios17 bindings: new framework SensitiveContentAnalysis
dkimitsa Nov 4, 2023
d5c31d3
* ios17 bindings: new framework PHASE (ios 15) - Create dynamic audio…
dkimitsa Nov 4, 2023
df4c955
* ios17 bindings: new framework MediaAccessibility
dkimitsa Nov 4, 2023
8fb4a41
* ios17 bindings: new framework Matter - Communicate with and control…
dkimitsa Nov 4, 2023
d7334fe
* ios17 bindings: new framework Cinematic - Integrate playback and ed…
dkimitsa Nov 5, 2023
307b37d
* ios17 bindings: new framework Background Assets - Schedule backgrou…
dkimitsa Nov 5, 2023
9c20b15
* ios17 bindings: post-processing run, with latest Bro-gen changes
dkimitsa Nov 6, 2023
83b0282
* fixed 735: Missing Bindings for UIAccessibilityTraits
dkimitsa Nov 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
16 changes: 11 additions & 5 deletions compiler/cocoatouch/src/main/bro-gen/accessibility.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,21 +90,27 @@ functions:
AXMFiHearingDevicePairedUUIDs:
class: AXHearingUtilities
name: getMFiHearingDevicePairedUUIDs
AXPrefersHorizontalTextLayout:
class: AXSettings
name: prefersHorizontalTextLayout
AXAnimatedImagesEnabled:
class: AXSettings
name: isAnimatedImagesEnabled

# Make sure we don't miss any functions if new ones are introduced in a later version
(k?AX.*):
class: FIXME
name: 'Function__#{g[0]}'

values:
AXMFiHearingDeviceStreamingEarDidChangeNotification:
AX(MFiHearingDeviceStreamingEarDidChange|MFiHearingDevicePairedUUIDsDidChange)Notification:
class: AXHearingUtilities
static_class: Notifications
name: MFiHearingDeviceStreamingEarDidChange
AXMFiHearingDevicePairedUUIDsDidChangeNotification:
class: AXHearingUtilities
name: '#{g[0]}'
AX(PrefersHorizontalTextLayoutDidChange|AnimatedImagesEnabledDidChange)Notification:
class: AXSettings
static_class: Notifications
name: MFiHearingDevicePairedUUIDsDidChange
name: '#{g[0]}'

# Make sure we don't miss any values if new ones are introduced in a later version
(k?AX.*):
Expand Down
3 changes: 3 additions & 0 deletions compiler/cocoatouch/src/main/bro-gen/audiotoolbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ enums:
AUVoiceIOProperty2: {first: kAUVoiceIOProperty_DuckNonVoiceAudio, prefix: kAUVoiceIOProperty_, merge_with: AUVoiceIOProperty}
AUVoiceIOProperty3: {first: kAUVoiceIOProperty_VoiceProcessingQuality, prefix: kAUVoiceIOProperty_, merge_with: AUVoiceIOProperty}
AUVoiceIOProperty4: {first: kAUVoiceIOProperty_MutedSpeechActivityEventListener, prefix: kAUVoiceIOProperty_, merge_with: AUVoiceIOProperty}
AUVoiceIOProperty5: {first: kAUVoiceIOProperty_OtherAudioDuckingConfiguration, prefix: kAUVoiceIOProperty_, merge_with: AUVoiceIOProperty}
AUNBandEQProperty: {first: kAUNBandEQProperty_NumberOfBands}
AUMIDISynthProperty: {first: kAUMIDISynthProperty_EnablePreload, prefix: kAUMIDISynthProperty_}
AUSamplerProperty: {first: kAUSamplerProperty_LoadInstrument}
Expand Down Expand Up @@ -209,6 +210,8 @@ enums:
AUSpatialMixerOutputType: {prefix: kSpatialMixerOutputType_}
AUSpatialMixerPointSourceInHeadMode: {prefix: kSpatialMixerPointSourceInHeadMode_}
AudioUnitEventType: {}
AUVoiceIOOtherAudioDuckingLevel: {}

# excludes as either deprecated or not to be used
Excluded2: {prefix: kNumberOfResponseFrequencies, first: kNumberOfResponseFrequencies, exclude: true}
# Excluded3: {prefix: kAudioUnitParameterName_Full, first: kAudioUnitParameterName_Full, exclude: true} -- will convert to constant
Expand Down
69 changes: 69 additions & 0 deletions compiler/cocoatouch/src/main/bro-gen/authservices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ enums:
ASAuthorizationAppleIDButtonType: {} #since 13.0
ASAuthorizationAppleIDButtonStyle: {} #since 13.0
ASAuthorizationControllerRequestOptions: {prefix: ASAuthorizationControllerRequestOption} #since 16.0
ASAuthorizationPublicKeyCredentialAttachment: {}
ASCredentialRequestType: {} #since 17.0
ASAuthorizationPublicKeyCredentialLargeBlobAssertionOperation: {} #since 17.0
ASAuthorizationPublicKeyCredentialLargeBlobSupportRequirement: {} #since 17.0
ASAuthorizationWebBrowserPublicKeyCredentialManagerAuthorizationState: {}
ASPublicKeyCredentialClientDataCrossOriginValue: {}
typed_enums:
ASAuthorizationOpenIDOperation:
enum: ASAuthorizationOpenIDOperation
Expand Down Expand Up @@ -67,15 +73,29 @@ classes:
name: getCredentialIdentityStoreState
'-removeAllCredentialIdentitiesWithCompletion:':
name: removeAllCredentialIdentities
'-saveCredentialIdentityEntries:completion:':
name: saveCredentialIdentityEntries
'-removeCredentialIdentityEntries:completion:':
name: removeCredentialIdentityEntries
'-replaceCredentialIdentityEntries:completion:':
name: replaceCredentialIdentityEntries
ASCredentialIdentityStoreState: {} #since 12.0
ASCredentialProviderExtensionContext: #since 12.0
methods:
'-completeRequestWithSelectedCredential:completionHandler:':
name: completeRequest
'-completeAssertionRequestWithSelectedPasskeyCredential:completionHandler:':
name: completeAssertionRequest
'-completeRegistrationRequestWithSelectedPasskeyCredential:completionHandler:':
name: completeRegistrationRequest
ASCredentialProviderViewController: #since 12.0
methods:
'-provideCredentialWithoutUserInteractionForIdentity:':
name: provideCredentialWithoutUserInteraction
'-prepareCredentialListForServiceIdentifiers:requestParameters:':
name: prepareCredentialList
'-provideCredentialWithoutUserInteractionForRequest:':
name: provideCredentialWithoutUserInteraction
ASCredentialServiceIdentifier: #since 12.0
methods:
'-initWithIdentifier:type:':
Expand Down Expand Up @@ -209,6 +229,53 @@ classes:
name: createCredentialAssertionRequest
ASAuthorizationSecurityKeyPublicKeyCredentialRegistration: {} #since 15.0
ASAuthorizationSecurityKeyPublicKeyCredentialRegistrationRequest: {} #since 15.0
ASAuthorizationPublicKeyCredentialLargeBlobAssertionInput: #since 17.0
methods:
'-initWithOperation:':
name: init
ASAuthorizationPublicKeyCredentialLargeBlobAssertionOutput: {} #since 17.0
ASAuthorizationPublicKeyCredentialLargeBlobRegistrationInput: #since 17.0
methods:
'-initWithSupportRequirement:':
name: init
ASAuthorizationPublicKeyCredentialLargeBlobRegistrationOutput: {} #since 17.0
ASPasskeyAssertionCredential: #since 17.0
methods:
'-initWithUserHandle:relyingParty:signature:clientDataHash:authenticatorData:credentialID:':
name: init
'+credentialWithUserHandle:relyingParty:signature:clientDataHash:authenticatorData:credentialID:':
exclude: true # same as init
ASPasskeyCredentialIdentity: #since 17.0
methods:
'-initWithRelyingPartyIdentifier:userName:credentialID:userHandle:recordIdentifier:':
name: init
'+identityWithRelyingPartyIdentifier:userName:credentialID:userHandle:recordIdentifier:':
exclude: true # same as init
ASPasskeyCredentialRequest: #since 17.0
methods:
'-initWithCredentialIdentity:clientDataHash:userVerificationPreference:supportedAlgorithms:':
name: init
'+requestWithCredentialIdentity:clientDataHash:userVerificationPreference:supportedAlgorithms:':
exclude: true # same as init
ASPasskeyCredentialRequestParameters: {} #since 17.0
ASPasskeyRegistrationCredential: #since 17.0
methods:
'-initWithRelyingParty:clientDataHash:credentialID:attestationObject:':
name: init
'+credentialWithRelyingParty:clientDataHash:credentialID:attestationObject:':
exclude: true # same as init
ASPasswordCredentialRequest: #since 17.0
methods:
'-initWithCredentialIdentity:':
name: init
'+requestWithCredentialIdentity:':
exclude: true # same as init
ASSettingsHelper: #since 17.0
methods:
'+openCredentialProviderAppSettingsWithCompletionHandler:':
name: openCredentialProviderAppSettings
'+openVerificationCodeAppSettingsWithCompletionHandler:':
name: openVerificationCodeAppSettings
protocols:
ASAuthorizationControllerDelegate: #since 13.0
methods:
Expand Down Expand Up @@ -246,6 +313,8 @@ protocols:
ASAuthorizationPublicKeyCredentialRegistration: {} #since 15.0
ASAuthorizationPublicKeyCredentialRegistrationRequest: {} #since 15.0
ASPublicKeyCredential: {} #since 15.0
ASCredentialIdentity: {} #since 17.0
ASCredentialRequest: {} #since 17.0
functions:
ASAuthorizationAllSupportedPublicKeyCredentialDescriptorTransports:
class: ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport
Expand Down
120 changes: 120 additions & 0 deletions compiler/cocoatouch/src/main/bro-gen/avfoundation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,15 @@ enums:
AVMIDIControlChangeMessageType: { }
AVMIDIMetaEventType: { }
AVSpeechSynthesisMarkerMark: { } #since 16.0
# ios 17
AVPlayerLooperItemOrdering: {} #since 17.0
AVPlayerInterstitialEventAssetListResponseStatus: {} #since 16.4
AVAudioVoiceProcessingSpeechActivityEvent: {prefix: AVAudioVoiceProcessingSpeechActivity} #since 17.0
AVAudioVoiceProcessingOtherAudioDuckingLevel: {} #since 17.0
AVSpeechSynthesisPersonalVoiceAuthorizationStatus: {} #since 17.0
AVSpeechSynthesisVoiceTraits: {prefix: AVSpeechSynthesisVoiceTrait} #since 17.0
AVAudioApplicationRecordPermission: {}
AVCapturePhotoOutputCaptureReadiness: {} #since 17.0

typed_enums:
AVAssetDownloadedAssetEvictionPriority:
Expand Down Expand Up @@ -179,6 +188,14 @@ typed_enums:
enum: AVCoordinatedPlaybackSuspensionReason
type: NSString
prefix: AVCoordinatedPlaybackSuspensionReason
AVVideoCompositionPerFrameHDRDisplayMetadataPolicy:
enum: AVVideoCompositionPerFrameHDRDisplayMetadataPolicy
type: NSString
prefix: AVVideoCompositionPerFrameHDRDisplayMetadataPolicy
AVCaptureReactionType:
enum: AVCaptureReactionType
type: NSString
prefix: AVCaptureReactionType
categories:
NSValueAVFoundationExtensions: # DONE
methods:
Expand Down Expand Up @@ -211,6 +228,7 @@ classes:
AVCaptureWhiteBalanceTemperatureAndTintValues: {}
AVEdgeWidths: {}
AVPixelAspectRatio: {}
AVAudioVoiceProcessingOtherAudioDuckingConfiguration: {} #since 17.0

AVError:
extends: NSError
Expand Down Expand Up @@ -1142,6 +1160,9 @@ classes:
'-setSupportsMultichannelContent:error:':
name: setSupportsMultichannelContent
throws: NSErrorException
'-setPrefersInterruptionOnRouteDisconnect:error:':
name: setPrefersInterruptionOnRouteDisconnect
throws: NSErrorException
AVAudioSessionChannelDescription: {} # DONE
AVAudioSessionDataSourceDescription: # DONE
properties:
Expand Down Expand Up @@ -1629,6 +1650,8 @@ classes:
name: getRecommendedVideoSettings
'-availableVideoCodecTypesForAssetWriterWithOutputFileType:':
name: getAvailableVideoCodecTypes
'-recommendedVideoSettingsForVideoCodecType:assetWriterOutputFileType:outputFileURL:':
name: getRecommendedVideoSettings
AVCaptureVideoPreviewLayer: # DONE
properties:
'videoGravity':
Expand Down Expand Up @@ -2360,6 +2383,8 @@ classes:
methods:
'-initWithPlayer:templateItem:timeRange:':
name: init
'-initWithPlayer:templateItem:timeRange:existingItemsOrdering:':
name: init
'+playerLooperWithPlayer:templateItem:timeRange:':
exclude: true
'+playerLooperWithPlayer:templateItem:':
Expand Down Expand Up @@ -2439,6 +2464,8 @@ classes:
name: writeUtterance
'-writeUtterance:toBufferCallback:toMarkerCallback:':
name: writeUtterance
'+requestPersonalVoiceAuthorizationWithCompletionHandler:':
name: requestPersonalVoiceAuthorization
AVSpeechUtterance: # DONE
methods:
'-initWithString:':
Expand Down Expand Up @@ -2973,6 +3000,12 @@ classes:
name: predicateForPresentationWidth
'+predicateForPresentationHeight:operatorType:':
name: predicateForPresentationHeight
'+predicateForBinauralAudio:mediaSelectionOption:':
name: predicateForBinauralAudio
'+predicateForImmersiveAudio:mediaSelectionOption:':
name: predicateForImmersiveAudio
'+predicateForDownmixAudio:mediaSelectionOption:':
name: predicateForDownmixAudio
AVAssetVariantVideoAttributes: {} #since 15.0
AVCoordinatedPlaybackParticipant: {} #since 15.0
AVCoordinatedPlaybackSuspension: {} #since 15.0
Expand Down Expand Up @@ -3106,6 +3139,21 @@ classes:
methods:
'-initWithMarkerType:forTextRange:atByteSampleOffset:':
name: init
'-initWithWordRange:atByteSampleOffset:':
static_constructor_name: createWithWordRange
name: initWithWordRange
'-initWithSentenceRange:atByteSampleOffset:':
static_constructor_name: createWithSentenceRange
name: initWithSentenceRange
'-initWithParagraphRange:atByteSampleOffset:':
static_constructor_name: createWithParagraphRange
name: initWithParagraphRange
'-initWithPhonemeString:atByteSampleOffset:':
static_constructor_name: createWithPhonemeString
name: initWithPhonemeString
'-initWithBookmarkName:atByteSampleOffset:':
static_constructor_name: createWithBookmarkName
name: initWithBookmarkName
AVSpeechSynthesisProviderAudioUnit: {} #since 16.0
AVSpeechSynthesisProviderRequest: #since 16.0
methods:
Expand All @@ -3115,6 +3163,45 @@ classes:
methods:
'-initWithName:identifier:primaryLanguages:supportedLanguages:':
name: init
AVAssetVariantVideoLayoutAttributes: {} #since 17.0
AVAssetWriterInputTaggedPixelBufferGroupAdaptor: #since 17.0
methods:
'-initWithAssetWriterInput:sourcePixelBufferAttributes:':
name: init
'-appendTaggedPixelBufferGroup:withPresentationTime:':
name: appendTaggedPixelBufferGroup
'+assetWriterInputTaggedPixelBufferGroupAdaptorWithAssetWriterInput:sourcePixelBufferAttributes:':
name: assetWriterInputTaggedPixelBufferGroupAdaptor
AVAudioApplication: #since 17.0
methods:
'-setInputMuted:error:':
name: setInputMuted
throws: NSErrorException
'+requestRecordPermissionWithCompletionHandler:':
name: requestRecordPermission
AVCaptureDeferredPhotoProxy: {} #since 17.0
AVCaptureDeviceRotationCoordinator: #since 17.0
methods:
'-initWithDevice:previewLayer:':
name: init
AVCapturePhotoOutputReadinessCoordinator: #since 17.0
methods:
'-initWithPhotoOutput:':
name: init
AVCaptureReactionEffectState: {} #since 17.0
AVExternalStorageDevice: #since 17.0
methods:
'-nextAvailableURLsWithPathExtensions:error:':
throws: NSErrorException
name: getNextAvailableURLs
'+requestAccessWithCompletionHandler:':
name: requestAccess
AVExternalStorageDeviceDiscoverySession: {} #since 17.0
AVMetadataHumanFullBodyObject: {} #since 17.0
AVSampleBufferVideoRenderer: #since 17.0
methods:
'-flushWithRemovalOfDisplayedImage:completionHandler:':
name: flush
protocols:
AVCapturePhotoCaptureDelegate:
methods:
Expand All @@ -3136,6 +3223,8 @@ protocols:
name: didFinishCaptureForResolvedSettings
'-captureOutput:didFinishProcessingPhoto:error:':
name: didFinishProcessingPhoto
'-captureOutput:didFinishCapturingDeferredPhotoProxy:error:':
name: didFinishCapturingDeferredPhotoProxy

AVContentKeyRecipient:
skip_adapter: true
Expand Down Expand Up @@ -3332,6 +3421,8 @@ protocols:
name: didCancelSpeechUtterance
'-speechSynthesizer:willSpeakRangeOfSpeechString:utterance:':
name: willSpeak
'-speechSynthesizer:willSpeakMarker:utterance:':
name: willSpeakMarker
AVVideoCompositionValidationHandling: # DONE
methods:
'-videoComposition:shouldContinueValidatingAfterFindingInvalidValueForKey:':
Expand Down Expand Up @@ -3399,6 +3490,10 @@ protocols:
name: identifierForPlayerItem
'-playbackCoordinator:interstitialTimeRangesForPlayerItem:':
name: interstitialTimeRangesForPlayerItem
AVCapturePhotoOutputReadinessCoordinatorDelegate: #since 17.0
methods:
'-readinessCoordinator:captureReadinessDidChange:':
name: captureReadinessDidChange
functions:
AVMake(RectWithAspectRatioInsideRect):
class: AVFoundation
Expand Down Expand Up @@ -3762,6 +3857,10 @@ values:
class: AVSpeechSynthesisAttributes
name: '#{g[0]}'
type: NSString
AVSpeechSynthesis(.*)Notification:
class: AVSpeechSynthesisNotifications
name: '#{g[0]}'
type: NSString



Expand Down Expand Up @@ -4031,6 +4130,27 @@ values:
static_class: Keys
name: '#{g[0]}'
type: NSString
AVSampleBufferVideoRenderer(.*)Notification:
class: AVSampleBufferVideoRenderer
static_class: Notifications
name: '#{g[0]}'
type: NSString
AVSampleBufferVideoRenderer(.*)Key:
class: AVSampleBufferVideoRenderer
static_class: Keys
name: '#{g[0]}'
type: NSString
AVAudioApplication(.*)Notification:
class: AVAudioApplication
static_class: Notifications
name: '#{g[0]}'
type: NSString
AVAudioApplication(.*)Key:
class: AVAudioApplication
static_class: Keys
name: '#{g[0]}'
type: NSString


# Make sure we don't miss any values if new ones are introduced in a later version
(k?AV.*):
Expand Down
2 changes: 1 addition & 1 deletion compiler/cocoatouch/src/main/bro-gen/avkit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ typedefs: {}
enums:
AVKitError: {name: AVKitErrorCode}
AVAudioSessionRouteSelection: {} #since 13.0

AVVideoFrameAnalysisType: {} #since 17.0
classes:
AVKitError: # DONE
annotations: ['@StronglyLinked']
Expand Down
Loading
Loading