From 9cf9ac077f221fac8de381b7107dbb4d797bc804 Mon Sep 17 00:00:00 2001 From: tj_devel709 Date: Mon, 12 Jul 2021 11:43:27 -0500 Subject: [PATCH] Rolf's suggestions --- src/GameKit/GameKit.cs | 1 - src/gamekit.cs | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/GameKit/GameKit.cs b/src/GameKit/GameKit.cs index 1b0f0b8b1b8b..3de674a111b3 100644 --- a/src/GameKit/GameKit.cs +++ b/src/GameKit/GameKit.cs @@ -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, } diff --git a/src/gamekit.cs b/src/gamekit.cs index f3417198dc1c..dd32a4ec6aa2 100644 --- a/src/gamekit.cs +++ b/src/gamekit.cs @@ -26,6 +26,7 @@ #else using UIKit; using NSViewController = Foundation.NSObject; +using NSWindow = Foundation.NSObject; #endif namespace GameKit { @@ -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:")]