Skip to content

Commit

Permalink
Update CocoaTouch bindings for iOS 8.3 (#897).
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueRiverInteractive committed Apr 13, 2015
1 parent 6819cec commit 320c201
Show file tree
Hide file tree
Showing 122 changed files with 2,489 additions and 730 deletions.
3 changes: 3 additions & 0 deletions cocoatouch/src/main/bro-gen/coreanimation.yaml
Expand Up @@ -371,6 +371,9 @@ functions:
name: 'Function__#{g[0]}' name: 'Function__#{g[0]}'


values: values:
# CAEmitterBehavior
kCAEmitterBehavior.*: # exclude for now
exclude: true


# CAEmitterLayer # CAEmitterLayer
kCAEmitterLayer(Point|Line|Rectangle|Cuboid|Circle|Sphere): kCAEmitterLayer(Point|Line|Rectangle|Cuboid|Circle|Sphere):
Expand Down
29 changes: 12 additions & 17 deletions cocoatouch/src/main/bro-gen/homekit.yaml
Expand Up @@ -16,10 +16,10 @@ typedefs:
enums: enums:
HMCharacteristicValueDoorState: {} HMCharacteristicValueDoorState: {}
HMCharacteristicValueHeatingCooling: {} HMCharacteristicValueHeatingCooling: {}
HMCharacteristicValueRotationDirection: { prefix: HMCharacteristicValueRotationDirection } HMCharacteristicValueRotationDirection: {prefix: HMCharacteristicValueRotationDirection}
HMCharacteristicValueTemperatureUnit: {} HMCharacteristicValueTemperatureUnit: {}
HMCharacteristicValueLockMechanismState: {} HMCharacteristicValueLockMechanismState: {}
HMCharacteristicValueLockMechanism: {} HMCharacteristicValueLockMechanismLastKnownAction: {}
HMErrorCode: {} HMErrorCode: {}


classes: classes:
Expand Down Expand Up @@ -351,34 +351,29 @@ values:


# HMCharacteristic # HMCharacteristic
HMCharacteristicProperty(.*): HMCharacteristicProperty(.*):
class: HMCharacteristicProperty enum: HMCharacteristicProperty
name: '#{g[0]}Value' name: '#{g[0]}'
type: NSString type: NSString
visibility: protected
HMCharacteristicType(.*): HMCharacteristicType(.*):
class: HMCharacteristicType enum: HMCharacteristicType
name: '#{g[0]}Value' name: '#{g[0]}'
type: NSString type: NSString
visibility: protected


# HMCharacteristicMetadata # HMCharacteristicMetadata
HMCharacteristicMetadataFormat(.*): HMCharacteristicMetadataFormat(.*):
class: HMCharacteristicMetadataFormat enum: HMCharacteristicMetadataFormat
name: '#{g[0]}Value' name: '#{g[0]}'
type: NSString type: NSString
visibility: protected
HMCharacteristicMetadataUnits(.*): HMCharacteristicMetadataUnits(.*):
class: HMCharacteristicMetadataUnits enum: HMCharacteristicMetadataUnits
name: '#{g[0]}Value' name: '#{g[0]}'
type: NSString type: NSString
visibility: protected


# HMService # HMService
HMServiceType(.*): HMServiceType(.*):
class: HMServiceType enum: HMServiceType
name: '#{g[0]}Value' name: '#{g[0]}'
type: NSString type: NSString
visibility: protected


# Make sure we don't miss any values if new ones are introduced in a later version # Make sure we don't miss any values if new ones are introduced in a later version
(k?HM.*): (k?HM.*):
Expand Down
16 changes: 16 additions & 0 deletions cocoatouch/src/main/bro-gen/metal.yaml
Expand Up @@ -228,6 +228,14 @@ protocols:
class: true class: true
visibility: 'public final' visibility: 'public final'
methods: methods:
'-setBytes:length:atIndex:':
trim_after_first_colon: true
visibility: protected
parameters:
bytes:
type: '@Pointer long'
'-setBufferOffset:atIndex:':
trim_after_first_colon: true
'-setBuffer:offset:atIndex:': '-setBuffer:offset:atIndex:':
trim_after_first_colon: true trim_after_first_colon: true
'-setBuffers:offsets:withRange:': '-setBuffers:offsets:withRange:':
Expand Down Expand Up @@ -362,6 +370,14 @@ protocols:
class: true class: true
visibility: 'public final' visibility: 'public final'
methods: methods:
'-setVertexBytes:length:atIndex:':
trim_after_first_colon: true
visibility: protected
parameters:
bytes:
type: '@Pointer long'
'-setVertexBufferOffset:atIndex:':
trim_after_first_colon: true
'-setVertexBuffer:offset:atIndex:': '-setVertexBuffer:offset:atIndex:':
trim_after_first_colon: true trim_after_first_colon: true
'-setVertexBuffers:offsets:withRange:': '-setVertexBuffers:offsets:withRange:':
Expand Down
1 change: 1 addition & 0 deletions cocoatouch/src/main/bro-gen/networkextension.yaml
Expand Up @@ -11,6 +11,7 @@ enums:
NEVPNErrorCode: { first: NEVPNErrorConfigurationInvalid, prefix: NEVPNError } NEVPNErrorCode: { first: NEVPNErrorConfigurationInvalid, prefix: NEVPNError }
NEVPNStatus: {} NEVPNStatus: {}
NEVPNIKEAuthenticationMethod: {} NEVPNIKEAuthenticationMethod: {}
NEVPNIKEv2CertificateType: {}
NEVPNIKEv2EncryptionAlgorithm: {} NEVPNIKEv2EncryptionAlgorithm: {}
NEVPNIKEv2IntegrityAlgorithm: {} NEVPNIKEv2IntegrityAlgorithm: {}
NEVPNIKEv2DeadPeerDetectionRate: {} NEVPNIKEv2DeadPeerDetectionRate: {}
Expand Down
26 changes: 20 additions & 6 deletions cocoatouch/src/main/bro-gen/passkit.yaml
Expand Up @@ -15,9 +15,12 @@ enums:
PKPassLibraryAddPassesStatus: {first: PKPassLibraryDidAddPasses, marshaler: ValuedEnum.AsMachineSizedSIntMarshaler} PKPassLibraryAddPassesStatus: {first: PKPassLibraryDidAddPasses, marshaler: ValuedEnum.AsMachineSizedSIntMarshaler}
PKPassType: {} PKPassType: {}
PKPaymentAuthorizationStatus: {} PKPaymentAuthorizationStatus: {}
PKPaymentButtonStyle: {}
PKPaymentButtonType: {}
PKPaymentPassActivationState: {} PKPaymentPassActivationState: {}
PKAddressField: {} PKAddressField: {}
PKMerchantCapability: {} PKMerchantCapability: {}
PKShippingType: {}


classes: classes:
PKPassKitError: PKPassKitError:
Expand Down Expand Up @@ -81,6 +84,10 @@ classes:
parameters: parameters:
supportedNetworks: supportedNetworks:
type: '@org.robovm.rt.bro.annotation.Marshaler(PKPaymentNetwork.AsListMarshaler.class) List<PKPaymentNetwork>' type: '@org.robovm.rt.bro.annotation.Marshaler(PKPaymentNetwork.AsListMarshaler.class) List<PKPaymentNetwork>'
PKPaymentButton: # DONE
methods:
'+buttonWithType:style:':
name: create
PKPaymentPass: {} # DONE PKPaymentPass: {} # DONE
PKPaymentRequest: # DONE PKPaymentRequest: # DONE
properties: properties:
Expand Down Expand Up @@ -111,6 +118,8 @@ protocols:
name: didAuthorizePayment name: didAuthorizePayment
'-paymentAuthorizationViewControllerDidFinish:': '-paymentAuthorizationViewControllerDidFinish:':
name: didFinish name: didFinish
'-paymentAuthorizationViewControllerWillAuthorizePayment:':
name: willAuthorizePayment
'-paymentAuthorizationViewController:didSelectShippingMethod:completion:': '-paymentAuthorizationViewController:didSelectShippingMethod:completion:':
name: didSelectShippingMethod name: didSelectShippingMethod
parameters: parameters:
Expand Down Expand Up @@ -138,10 +147,16 @@ values:
name: '#{g[0]}' name: '#{g[0]}'
type: NSString type: NSString
PKPassLibrary(PassTypeIdentifier|SerialNumber)UserInfoKey: PKPassLibrary(PassTypeIdentifier|SerialNumber)UserInfoKey:
class: PKRemovedPassInfo dictionary: PKRemovedPassInfo
name: '#{g[0]}Key' name: '#{g[0]}'
type: NSString type: NSString
visibility: protected mutable: false
marshalers: false
methods:
PassTypeIdentifier:
type: String
SerialNumber:
type: String
PKPassLibrary(.*)UserInfoKey: PKPassLibrary(.*)UserInfoKey:
class: PKPassLibraryNotificationArgs class: PKPassLibraryNotificationArgs
name: '#{g[0]}Key' name: '#{g[0]}Key'
Expand All @@ -150,10 +165,9 @@ values:


# PKPayment # PKPayment
PKPaymentNetwork(.*): PKPaymentNetwork(.*):
class: PKPaymentNetwork enum: PKPaymentNetwork
name: '#{g[0]}Value' name: '#{g[0]}'
type: NSString type: NSString
visibility: protected


# Make sure we don't miss any values if new ones are introduced in a later version # Make sure we don't miss any values if new ones are introduced in a later version
(PK.*): (PK.*):
Expand Down
14 changes: 11 additions & 3 deletions cocoatouch/src/main/bro-gen/storekit.yaml
Expand Up @@ -170,10 +170,18 @@ values:
visibility: protected visibility: protected


SKStoreProductParameter(.*): SKStoreProductParameter(.*):
class: SKStoreProductParameters dictionary: SKStoreProductParameters
name: '#{g[0]}Key' name: '#{g[0]}'
type: NSString type: NSString
visibility: protected methods:
ITunesItemIdentifier:
type: long
AffiliateToken:
type: String
CampaignToken:
type: String
ProviderToken:
type: String


# Make sure we don't miss any values if new ones are introduced in a later version # Make sure we don't miss any values if new ones are introduced in a later version
(SK.*): (SK.*):
Expand Down
8 changes: 7 additions & 1 deletion cocoatouch/src/main/bro-gen/uikit.yaml
Expand Up @@ -1971,6 +1971,8 @@ classes:
name: init name: init
'-(adaptivePresentationStyle|presentedView)': '-(adaptivePresentationStyle|presentedView)':
property: true property: true
'-adaptivePresentationStyleForTraitCollection:':
name: getAdaptivePresentationStyleForTraitCollection
'-frameOfPresentedViewInContainerView': '-frameOfPresentedViewInContainerView':
property: true property: true
'-presentationTransitionDidEnd:': '-presentationTransitionDidEnd:':
Expand Down Expand Up @@ -3093,8 +3095,12 @@ protocols:
methods: methods:
'-adaptivePresentationStyleForPresentationController:': '-adaptivePresentationStyleForPresentationController:':
name: getAdaptivePresentationStyle name: getAdaptivePresentationStyle
'-adaptivePresentationStyleForPresentationController:traitCollection:':
name: getAdaptivePresentationStyle
'-presentationController:viewControllerForAdaptivePresentationStyle:': '-presentationController:viewControllerForAdaptivePresentationStyle:':
name: getViewController name: getViewController
'-presentationController:willPresentWithAdaptiveStyle:transitionCoordinator:':
name: willPresent
UIAlertViewDelegate: # DONE UIAlertViewDelegate: # DONE
methods: methods:
'-alertView:clickedButtonAtIndex:': '-alertView:clickedButtonAtIndex:':
Expand All @@ -3112,7 +3118,7 @@ protocols:
'-alertViewShouldEnableFirstOtherButton:': '-alertViewShouldEnableFirstOtherButton:':
name: shouldEnableFirstOtherButton name: shouldEnableFirstOtherButton
# UIAppearance is bound as a class with static methods rather than an interface. # UIAppearance is bound as a class with static methods rather than an interface.
# UIAppearance: {} # UIAppearance: {}
UIAppearanceContainer: # DONE UIAppearanceContainer: # DONE
skip_adapter: true skip_adapter: true
UIApplicationDelegate: # DONE UIApplicationDelegate: # DONE
Expand Down
Expand Up @@ -555,6 +555,9 @@ public boolean setOutputDataSource(AVAudioSessionDataSourceDescription dataSourc
*/ */
@Method(selector = "setCategory:withOptions:error:") @Method(selector = "setCategory:withOptions:error:")
protected native boolean setCategory(AVAudioSessionCategory category, AVAudioSessionCategoryOptions options, NSError.NSErrorPtr outError); protected native boolean setCategory(AVAudioSessionCategory category, AVAudioSessionCategoryOptions options, NSError.NSErrorPtr outError);
/**
* @since Available in iOS 8.0 and later.
*/
@Method(selector = "recordPermission") @Method(selector = "recordPermission")
public native AVAudioSessionRecordPermission getRecordPermission(); public native AVAudioSessionRecordPermission getRecordPermission();
/** /**
Expand Down
Expand Up @@ -107,7 +107,15 @@ public enum /*<name>*/AVErrorCode/*</name>*/ implements NSErrorCode {
/** /**
* @since Available in iOS 8.0 and later. * @since Available in iOS 8.0 and later.
*/ */
UndecodableMediaData(-11855L); UndecodableMediaData(-11855L),
/**
* @since Available in iOS 8.3 and later.
*/
AirPlayControllerRequiresInternet(-11856L),
/**
* @since Available in iOS 8.3 and later.
*/
AirPlayReceiverRequiresInternet(-11857L);
/*</values>*/ /*</values>*/


/*<bind>*/ /*<bind>*/
Expand Down
Expand Up @@ -39,7 +39,7 @@
/*</javadoc>*/ /*</javadoc>*/
/*<annotations>*/@Library("CoreAudioKit") @NativeClass/*</annotations>*/ /*<annotations>*/@Library("CoreAudioKit") @NativeClass/*</annotations>*/
/*<visibility>*/public/*</visibility>*/ class /*<name>*/CABTMIDICentralViewController/*</name>*/ /*<visibility>*/public/*</visibility>*/ class /*<name>*/CABTMIDICentralViewController/*</name>*/
extends /*<extends>*/UIViewController/*</extends>*/ extends /*<extends>*/UITableViewController/*</extends>*/
/*<implements>*//*</implements>*/ { /*<implements>*//*</implements>*/ {


/*<ptr>*/public static class CABTMIDICentralViewControllerPtr extends Ptr<CABTMIDICentralViewController, CABTMIDICentralViewControllerPtr> {}/*</ptr>*/ /*<ptr>*/public static class CABTMIDICentralViewControllerPtr extends Ptr<CABTMIDICentralViewController, CABTMIDICentralViewControllerPtr> {}/*</ptr>*/
Expand Down
Expand Up @@ -111,7 +111,7 @@ public static CIDetectorType valueOf(NSString value) {
@GlobalValue(symbol="CIDetectorTypeRectangle", optional=true) @GlobalValue(symbol="CIDetectorTypeRectangle", optional=true)
protected static native NSString RectangleValue(); protected static native NSString RectangleValue();
/** /**
* @since Available in iOS 6.0 and later. * @since Available in iOS 8.0 and later.
*/ */
@GlobalValue(symbol="CIDetectorTypeQRCode", optional=true) @GlobalValue(symbol="CIDetectorTypeQRCode", optional=true)
protected static native NSString QRCodeValue(); protected static native NSString QRCodeValue();
Expand Down
Expand Up @@ -167,6 +167,6 @@ public CMMotionManager() {}
* @since Available in iOS 5.0 and later. * @since Available in iOS 5.0 and later.
*/ */
@Method(selector = "availableAttitudeReferenceFrames") @Method(selector = "availableAttitudeReferenceFrames")
public static native @MachineSizedUInt long getAvailableAttitudeReferenceFrames(); public static native CMAttitudeReferenceFrame getAvailableAttitudeReferenceFrames();
/*</methods>*/ /*</methods>*/
} }

0 comments on commit 320c201

Please sign in to comment.