Skip to content

Commit

Permalink
iOS 17 bindings (#758)
Browse files Browse the repository at this point in the history
* * ios17 bindings: Foundation processed

* * ios17 bindings: UIKit processed (not all UITrait api provided due to adaptations of NSArray is required)

* * ios17 bindings: new framework Symbols

* * ios17 bindings: Social processed

* * ios17 bindings: Accessibility, CoreImage, HomeKit, NearbyInteraction processed

* * ios17 bindings: CoreImage, Network processed

* * ios17 bindings: CoreMedia, ImageCaptureCore, NetworkExtension processed

* * ios17 bindings: CoreMidi, Intents, ImageIO, PassKit processed

* * ios17 bindings: AudioToolBox, CoreML, PDFKit, PencilKit

* * ios17 bindings: AuthServices, CoreMotion, Photos

* * ios17 bindings: AVFoundation, CoreNFc, LinkPresentation, LocalAuthentication, PhotosUI processed

* * ios17 bindings: AVKit, BackgroundTasks, CoreSpotlight, CoreTelephony, MapKit, MediaPlayer, SafariServices processed

* * ios17 bindings: CallKit, CarPlay, CoreVideo, Messages, Metal, SceneKit processed

* * ios17 bindings: CloudKit, EventKit, MetalKit processed

* * ios17 bindings: Contacts, CoreAnimation, MetalPS, Security, SensorKit processed

* * ios17 bindings: GameController processed -- probably breaking changes as migrated from String to NSString to keep it compatible with NS collection APIs

* * ios17 bindings: MetakPerformanceShaderGraph, CoreAudio, ShazamKit processed

* * ios17 bindings: CoreBlueTooth, GameKit, MetricKit, Speech processed

* * ios17 bindings: CoreData, HealthKit, MLCompute, StoreKit processed

* * ios17 bindings: CoreFoundation, CoreGraphics, NaturalLanguage, ThreadNetwork processed

* * ios17 bindings: UniformTypeId, Vision processed

* * ios17 bindings: WebKit processed

* * ios17 bindings: new framework SensitiveContentAnalysis

* * ios17 bindings: new framework PHASE (ios 15) - Create dynamic audio experiences in your game or app that react to events and cues in the environment

* * ios17 bindings: new framework MediaAccessibility

* * ios17 bindings: new framework Matter - Communicate with and control smart home devices from a variety of manufacturers.

* * ios17 bindings: new framework Cinematic - Integrate playback and editing of assets captured in Cinematic mode into your app.

* * ios17 bindings: new framework Background Assets - Schedule background downloads of large assets after app installation, when the app updates, and periodically while the app remains on-device.

* * ios17 bindings: post-processing run, with latest Bro-gen changes

* * fixed 735: Missing Bindings for UIAccessibilityTraits
  • Loading branch information
dkimitsa authored Dec 19, 2023
1 parent 204304f commit d9eefc5
Show file tree
Hide file tree
Showing 3,044 changed files with 148,016 additions and 1,333 deletions.
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

0 comments on commit d9eefc5

Please sign in to comment.