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]}'

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

# CAEmitterLayer
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:
HMCharacteristicValueDoorState: {}
HMCharacteristicValueHeatingCooling: {}
HMCharacteristicValueRotationDirection: { prefix: HMCharacteristicValueRotationDirection }
HMCharacteristicValueRotationDirection: {prefix: HMCharacteristicValueRotationDirection}
HMCharacteristicValueTemperatureUnit: {}
HMCharacteristicValueLockMechanismState: {}
HMCharacteristicValueLockMechanism: {}
HMCharacteristicValueLockMechanismLastKnownAction: {}
HMErrorCode: {}

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

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

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

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

# Make sure we don't miss any values if new ones are introduced in a later version
(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
visibility: 'public final'
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:':
trim_after_first_colon: true
'-setBuffers:offsets:withRange:':
Expand Down Expand Up @@ -362,6 +370,14 @@ protocols:
class: true
visibility: 'public final'
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:':
trim_after_first_colon: true
'-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 }
NEVPNStatus: {}
NEVPNIKEAuthenticationMethod: {}
NEVPNIKEv2CertificateType: {}
NEVPNIKEv2EncryptionAlgorithm: {}
NEVPNIKEv2IntegrityAlgorithm: {}
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}
PKPassType: {}
PKPaymentAuthorizationStatus: {}
PKPaymentButtonStyle: {}
PKPaymentButtonType: {}
PKPaymentPassActivationState: {}
PKAddressField: {}
PKMerchantCapability: {}
PKShippingType: {}

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

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

# Make sure we don't miss any values if new ones are introduced in a later version
(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

SKStoreProductParameter(.*):
class: SKStoreProductParameters
name: '#{g[0]}Key'
dictionary: SKStoreProductParameters
name: '#{g[0]}'
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
(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
'-(adaptivePresentationStyle|presentedView)':
property: true
'-adaptivePresentationStyleForTraitCollection:':
name: getAdaptivePresentationStyleForTraitCollection
'-frameOfPresentedViewInContainerView':
property: true
'-presentationTransitionDidEnd:':
Expand Down Expand Up @@ -3093,8 +3095,12 @@ protocols:
methods:
'-adaptivePresentationStyleForPresentationController:':
name: getAdaptivePresentationStyle
'-adaptivePresentationStyleForPresentationController:traitCollection:':
name: getAdaptivePresentationStyle
'-presentationController:viewControllerForAdaptivePresentationStyle:':
name: getViewController
'-presentationController:willPresentWithAdaptiveStyle:transitionCoordinator:':
name: willPresent
UIAlertViewDelegate: # DONE
methods:
'-alertView:clickedButtonAtIndex:':
Expand All @@ -3112,7 +3118,7 @@ protocols:
'-alertViewShouldEnableFirstOtherButton:':
name: shouldEnableFirstOtherButton
# UIAppearance is bound as a class with static methods rather than an interface.
# UIAppearance: {}
# UIAppearance: {}
UIAppearanceContainer: # DONE
skip_adapter: true
UIApplicationDelegate: # DONE
Expand Down
Expand Up @@ -555,6 +555,9 @@ public boolean setOutputDataSource(AVAudioSessionDataSourceDescription dataSourc
*/
@Method(selector = "setCategory:withOptions:error:")
protected native boolean setCategory(AVAudioSessionCategory category, AVAudioSessionCategoryOptions options, NSError.NSErrorPtr outError);
/**
* @since Available in iOS 8.0 and later.
*/
@Method(selector = "recordPermission")
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.
*/
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>*/

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

/*<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)
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)
protected static native NSString QRCodeValue();
Expand Down
Expand Up @@ -167,6 +167,6 @@ public CMMotionManager() {}
* @since Available in iOS 5.0 and later.
*/
@Method(selector = "availableAttitudeReferenceFrames")
public static native @MachineSizedUInt long getAvailableAttitudeReferenceFrames();
public static native CMAttitudeReferenceFrame getAvailableAttitudeReferenceFrames();
/*</methods>*/
}

0 comments on commit 320c201

Please sign in to comment.