Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
162 changes: 116 additions & 46 deletions compiler/cocoatouch/src/main/bro-gen/gamekit.yaml

Large diffs are not rendered by default.

8 changes: 1 addition & 7 deletions compiler/cocoatouch/src/main/java/org/robovm/apple/gamekit/GKAchievement.java
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
/*<constants>*//*</constants>*/
/*<constructors>*/
public GKAchievement() {}
protected GKAchievement(Handle h, long handle) { super(h, handle); }
protected GKAchievement(SkipInit skipInit) { super(skipInit); }
public GKAchievement(String identifier) { super((SkipInit) null); initObject(init(identifier)); }
/**
Expand Down Expand Up @@ -88,13 +89,6 @@ public GKAchievement() {}
*/
@Property(selector = "player")
public native GKPlayer getPlayer();
/**
* @since Available in iOS 4.1 and later.
* @deprecated Deprecated in iOS 6.0.
*/
@Deprecated
@Property(selector = "isHidden")
public native boolean isHidden();
/**
* @since Available in iOS 7.0 and later.
* @deprecated Deprecated in iOS 8.0.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
/*<constants>*//*</constants>*/
/*<constructors>*/
public GKAchievementChallenge() {}
protected GKAchievementChallenge(Handle h, long handle) { super(h, handle); }
protected GKAchievementChallenge(SkipInit skipInit) { super(skipInit); }
/*</constructors>*/
/*<properties>*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
/*<constants>*//*</constants>*/
/*<constructors>*/
public GKAchievementDescription() {}
protected GKAchievementDescription(Handle h, long handle) { super(h, handle); }
protected GKAchievementDescription(SkipInit skipInit) { super(skipInit); }
public GKAchievementDescription(NSCoder aDecoder) { super((SkipInit) null); initObject(init(aDecoder)); }
/*</constructors>*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
/*<constants>*//*</constants>*/
/*<constructors>*/
public GKAchievementViewController() {}
protected GKAchievementViewController(Handle h, long handle) { super(h, handle); }
protected GKAchievementViewController(SkipInit skipInit) { super(skipInit); }
/*</constructors>*/
/*<properties>*/
Expand Down
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/*
* Copyright (C) 2013-2015 RoboVM AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.robovm.apple.gamekit;

/*<imports>*/
import java.io.*;
import java.nio.*;
import java.util.*;
import org.robovm.objc.*;
import org.robovm.objc.annotation.*;
import org.robovm.objc.block.*;
import org.robovm.rt.*;
import org.robovm.rt.annotation.*;
import org.robovm.rt.bro.*;
import org.robovm.rt.bro.annotation.*;
import org.robovm.rt.bro.ptr.*;
import org.robovm.apple.foundation.*;
import org.robovm.apple.uikit.*;
/*</imports>*/

/*<javadoc>*/
/**
* @since Available in iOS 10.0 and later.
*/
/*</javadoc>*/
/*<annotations>*/@Library("GameKit") @NativeClass/*</annotations>*/
/*<visibility>*/public/*</visibility>*/ class /*<name>*/GKBasePlayer/*</name>*/
extends /*<extends>*/NSObject/*</extends>*/
/*<implements>*//*</implements>*/ {

/*<ptr>*/public static class GKBasePlayerPtr extends Ptr<GKBasePlayer, GKBasePlayerPtr> {}/*</ptr>*/
/*<bind>*/static { ObjCRuntime.bind(GKBasePlayer.class); }/*</bind>*/
/*<constants>*//*</constants>*/
/*<constructors>*/
public GKBasePlayer() {}
protected GKBasePlayer(Handle h, long handle) { super(h, handle); }
protected GKBasePlayer(SkipInit skipInit) { super(skipInit); }
/*</constructors>*/
/*<properties>*/
@Property(selector = "playerID")
public native String getPlayerID();
@Property(selector = "displayName")
public native String getDisplayName();
/*</properties>*/
/*<members>*//*</members>*/
/*<methods>*/

/*</methods>*/
}
1 change: 1 addition & 0 deletions compiler/cocoatouch/src/main/java/org/robovm/apple/gamekit/GKChallenge.java
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
/*<constants>*//*</constants>*/
/*<constructors>*/
public GKChallenge() {}
protected GKChallenge(Handle h, long handle) { super(h, handle); }
protected GKChallenge(SkipInit skipInit) { super(skipInit); }
public GKChallenge(NSCoder aDecoder) { super((SkipInit) null); initObject(init(aDecoder)); }
/*</constructors>*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
/*<constants>*//*</constants>*/
/*<constructors>*/
public GKChallengeEventHandler() {}
protected GKChallengeEventHandler(Handle h, long handle) { super(h, handle); }
protected GKChallengeEventHandler(SkipInit skipInit) { super(skipInit); }
/*</constructors>*/
/*<properties>*/
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/*
* Copyright (C) 2013-2015 RoboVM AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.robovm.apple.gamekit;

/*<imports>*/
import java.io.*;
import java.nio.*;
import java.util.*;
import org.robovm.objc.*;
import org.robovm.objc.annotation.*;
import org.robovm.objc.block.*;
import org.robovm.rt.*;
import org.robovm.rt.annotation.*;
import org.robovm.rt.bro.*;
import org.robovm.rt.bro.annotation.*;
import org.robovm.rt.bro.ptr.*;
import org.robovm.apple.foundation.*;
import org.robovm.apple.uikit.*;
/*</imports>*/

/*<javadoc>*/
/**
* @since Available in iOS 10.0 and later.
*/
/*</javadoc>*/
/*<annotations>*/@Library("GameKit") @NativeClass/*</annotations>*/
/*<visibility>*/public/*</visibility>*/ class /*<name>*/GKCloudPlayer/*</name>*/
extends /*<extends>*/GKBasePlayer/*</extends>*/
/*<implements>*//*</implements>*/ {

/*<ptr>*/public static class GKCloudPlayerPtr extends Ptr<GKCloudPlayer, GKCloudPlayerPtr> {}/*</ptr>*/
/*<bind>*/static { ObjCRuntime.bind(GKCloudPlayer.class); }/*</bind>*/
/*<constants>*//*</constants>*/
/*<constructors>*/
public GKCloudPlayer() {}
protected GKCloudPlayer(Handle h, long handle) { super(h, handle); }
protected GKCloudPlayer(SkipInit skipInit) { super(skipInit); }
/*</constructors>*/
/*<properties>*/

/*</properties>*/
/*<members>*//*</members>*/
/*<methods>*/
@Method(selector = "getCurrentSignedInPlayerForContainer:completionHandler:")
public static native void getCurrentSignedInPlayerForContainer(String containerName, @Block VoidBlock2<GKCloudPlayer, NSError> handler);
/*</methods>*/
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/*
* Copyright (C) 2013-2015 RoboVM AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.robovm.apple.gamekit;

/*<imports>*/
import java.io.*;
import java.nio.*;
import java.util.*;
import org.robovm.objc.*;
import org.robovm.objc.annotation.*;
import org.robovm.objc.block.*;
import org.robovm.rt.*;
import org.robovm.rt.annotation.*;
import org.robovm.rt.bro.*;
import org.robovm.rt.bro.annotation.*;
import org.robovm.rt.bro.ptr.*;
import org.robovm.apple.foundation.*;
import org.robovm.apple.uikit.*;
/*</imports>*/

/*<javadoc>*/

/*</javadoc>*/
/*<annotations>*/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/*</annotations>*/
public enum /*<name>*/GKConnectionState/*</name>*/ implements ValuedEnum {
/*<values>*/
NotConnected(0L),
Connected(1L);
/*</values>*/

/*<bind>*/
/*</bind>*/
/*<constants>*//*</constants>*/
/*<methods>*//*</methods>*/

private final long n;

private /*<name>*/GKConnectionState/*</name>*/(long n) { this.n = n; }
public long value() { return n; }
public static /*<name>*/GKConnectionState/*</name>*/ valueOf(long n) {
for (/*<name>*/GKConnectionState/*</name>*/ v : values()) {
if (v.n == n) {
return v;
}
}
throw new IllegalArgumentException("No constant with value " + n + " found in "
+ /*<name>*/GKConnectionState/*</name>*/.class.getName());
}
}
14 changes: 0 additions & 14 deletions compiler/cocoatouch/src/main/java/org/robovm/apple/gamekit/GKError.java
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -38,27 +38,13 @@
extends /*<extends>*/NSError/*</extends>*/
/*<implements>*//*</implements>*/ {

protected GKError(SkipInit skipInit) {
super(skipInit);
}

/*<ptr>*/
/*</ptr>*/
/*<bind>*/static { Bro.bind(GKError.class); }/*</bind>*/
/*<constants>*//*</constants>*/
/*<constructors>*//*</constructors>*/
/*<properties>*//*</properties>*/
/*<members>*//*</members>*/
@Override
public GKErrorCode getErrorCode() {
GKErrorCode code = null;
try {
code = GKErrorCode.valueOf(getCode());
} catch (IllegalArgumentException e) {
// ignore
}
return code;
}
/*<methods>*/
@GlobalValue(symbol="GKErrorDomain", optional=true)
public static native String getClassDomain();
Expand Down
7 changes: 4 additions & 3 deletions compiler/cocoatouch/src/main/java/org/robovm/apple/gamekit/GKErrorCode.java
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@
/*<javadoc>*/

/*</javadoc>*/
@ForceLinkClass(GKError.class)
/*<annotations>*/@Marshaler(ValuedEnum.AsMachineSizedSIntMarshaler.class)/*</annotations>*/
public enum /*<name>*/GKErrorCode/*</name>*/ implements NSErrorCode {
public enum /*<name>*/GKErrorCode/*</name>*/ implements ValuedEnum {
/*<values>*/
Unknown(1L),
Cancelled(2L),
Expand Down Expand Up @@ -64,7 +63,9 @@ public enum /*<name>*/GKErrorCode/*</name>*/ implements NSErrorCode {
TurnBasedInvalidState(24L),
InvitationsDisabled(25L),
PlayerPhotoFailure(26L),
UbiquityContainerUnavailable(27L);
UbiquityContainerUnavailable(27L),
MatchNotConnected(28L),
GameSessionRequestInvalid(29L);
/*</values>*/

/*<bind>*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
/*<javadoc>*/
/**
* @since Available in iOS 4.2 and later.
* @deprecated Deprecated in iOS 10.0.
*/
@Deprecated
/*</javadoc>*/
/*<annotations>*/@Library("GameKit") @NativeClass/*</annotations>*/
/*<visibility>*/public/*</visibility>*/ class /*<name>*/GKFriendRequestComposeViewController/*</name>*/
Expand All @@ -46,6 +48,7 @@
/*<constants>*//*</constants>*/
/*<constructors>*/
public GKFriendRequestComposeViewController() {}
protected GKFriendRequestComposeViewController(Handle h, long handle) { super(h, handle); }
protected GKFriendRequestComposeViewController(SkipInit skipInit) { super(skipInit); }
/*</constructors>*/
/*<properties>*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
/*<methods>*/
/**
* @since Available in iOS 4.2 and later.
* @deprecated Deprecated in iOS 10.0.
*/
@Deprecated
@Method(selector = "friendRequestComposeViewControllerDidFinish:")
void didFinish(GKFriendRequestComposeViewController viewController);
/*</methods>*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@
/*<methods>*/
/**
* @since Available in iOS 4.2 and later.
* @deprecated Deprecated in iOS 10.0.
*/
@Deprecated
@NotImplemented("friendRequestComposeViewControllerDidFinish:")
public void didFinish(GKFriendRequestComposeViewController viewController) {}
/*</methods>*/
Expand Down
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
/*<constants>*//*</constants>*/
/*<constructors>*/
public GKGameCenterViewController() {}
protected GKGameCenterViewController(Handle h, long handle) { super(h, handle); }
protected GKGameCenterViewController(SkipInit skipInit) { super(skipInit); }
/*</constructors>*/
/*<properties>*/
Expand Down
Empty file.
Loading