Skip to content

Commit

Permalink
Rolf's suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
tj_devel709 committed Jul 12, 2021
1 parent a7c9099 commit 9cf9ac0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/GameKit/GameKit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ public enum GKError : long {
FriendListDescriptionMissing = 100,
FriendListRestricted = 101,
FriendListDenied = 102,
[iOS (15,0), Mac (12,0), MacCatalyst (15,0), Watch (8,0), TV (15,0)]
FriendRequestNotAvailable = 103,
}

Expand Down
4 changes: 1 addition & 3 deletions src/gamekit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#else
using UIKit;
using NSViewController = Foundation.NSObject;
using NSWindow = Foundation.NSObject;
#endif

namespace GameKit {
Expand Down Expand Up @@ -857,16 +858,13 @@ interface GKLocalPlayer
[Export ("isPresentingFriendRequestViewController")]
bool IsPresentingFriendRequestViewController { get; }

#if !MONOMAC
[NoWatch, NoTV, NoMac, iOS (15,0), NoMacCatalyst]
[Export ("presentFriendRequestCreatorFromViewController:error:")]
bool PresentFriendRequestCreator (UIViewController viewController, [NullAllowed] out NSError error);

#else
[NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst]
[Export ("presentFriendRequestCreatorFromWindow:error:")]
bool PresentFriendRequestCreator ([NullAllowed] NSWindow window, [NullAllowed] out NSError error);
#endif

[iOS (7,0)][Mac (10,10)] // Mismarked in header, 17613142
[Export ("loadDefaultLeaderboardIdentifierWithCompletionHandler:")]
Expand Down

0 comments on commit 9cf9ac0

Please sign in to comment.