Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
879d035
Enable nullable context for binding definition compilers
rolfbjarne Sep 24, 2026
987551f
Update
rolfbjarne Sep 24, 2026
a9223f2
Share nullable compiler mode across source build rules
rolfbjarne Sep 24, 2026
b525b8e
Merge remote-tracking branch 'origin/main' into dev/rolf/repository-n…
rolfbjarne Oct 1, 2026
6c56f29
Updates
rolfbjarne Oct 1, 2026
3885905
[Network] Document ten network state and result enums (#26791)
rolfbjarne Oct 1, 2026
4c40f9b
[GameKit] Correct nullable authentication callback parameters
rolfbjarne Oct 1, 2026
2f2a7cc
[GameKit] Annotate nullable completion-handler results
rolfbjarne Oct 1, 2026
26ac998
[xtro] Drop resolved GameKit nullable callback suppressions
rolfbjarne Oct 1, 2026
18e440d
[GameKit] Fix remaining nullable delegate callbacks
rolfbjarne Oct 1, 2026
19e4e9c
[GameKit] Defer the incorrect DeclineInvite callback signature
rolfbjarne Oct 1, 2026
279590a
Merge remote-tracking branch 'origin/main' into dev/rolf/fix-gklocalp…
rolfbjarne Oct 1, 2026
005c331
Merge branch 'main' into dev/rolf/fix-gklocalplayer-handler-nullability
rolfbjarne Oct 13, 2026
658f021
[GameKit] Update deprecation guidance for nullable callbacks
rolfbjarne Oct 20, 2026
7991be1
Merge remote-tracking branch 'origin/main' into dev/rolf/fix-gklocalp…
rolfbjarne Oct 20, 2026
db54ad8
Merge origin/main into dev/rolf/fix-gklocalplayer-handler-nullability
rolfbjarne Oct 21, 2026
0a2c2ac
Merge branch 'main' into dev/rolf/fix-gklocalplayer-handler-nullability
rolfbjarne Oct 23, 2026
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
168 changes: 84 additions & 84 deletions src/gamekit.cs

Large diffs are not rendered by default.

This file was deleted.

46 changes: 0 additions & 46 deletions tests/xtro-sharpie/api-annotations-dotnet/common-GameKit.ignore
Original file line number Diff line number Diff line change
@@ -1,47 +1 @@
## All GKSessionError values were deprecated in iOS7 and we never bound then (no point in adding it now)

# results from initial block parameter nullability analysis
!missing-null-allowed! 'System.Void GameKit.GKAchievement::ReportAchievements(GameKit.GKAchievement[],System.Action`1<Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKAchievement::ResetAchivements(System.Action`1<Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKLeaderboard::SubmitScore(System.IntPtr,System.UIntPtr,GameKit.GKPlayer,System.Action`1<Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKLeaderboard::SubmitScore(System.IntPtr,System.UIntPtr,GameKit.GKPlayer,System.String[],System.Action`1<Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::LoadChallengeableFriends(System.Action`2<GameKit.GKPlayer[],Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::LoadChallengeableFriends(System.Action`2<GameKit.GKPlayer[],Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1
!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::LoadFriendsAuthorizationStatus(System.Action`2<GameKit.GKFriendsAuthorizationStatus,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1
!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::LoadFriendsList(System.Action`2<GameKit.GKPlayer[],Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::LoadFriendsList(System.Action`2<GameKit.GKPlayer[],Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1
!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::LoadFriendsList(System.String[],System.Action`2<GameKit.GKPlayer[],Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::LoadFriendsList(System.String[],System.Action`2<GameKit.GKPlayer[],Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1
!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::LoadRecentPlayers(System.Action`2<GameKit.GKPlayer[],Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::LoadRecentPlayers(System.Action`2<GameKit.GKPlayer[],Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1
!missing-null-allowed! 'System.Void GameKit.GKMatch::ChooseBestHostingPlayer(System.Action`1<GameKit.GKPlayer>)' is missing a '?' on parameter 'completionHandler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKMatch::Rematch(System.Action`2<GameKit.GKMatch,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKMatch::Rematch(System.Action`2<GameKit.GKMatch,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1
!missing-null-allowed! 'System.Void GameKit.GKMatchmaker::AddPlayers(GameKit.GKMatch,GameKit.GKMatchRequest,System.Action`1<Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKMatchmaker::FindMatchedPlayers(GameKit.GKMatchRequest,System.Action`2<GameKit.GKMatchedPlayers,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKMatchmaker::FindMatchedPlayers(GameKit.GKMatchRequest,System.Action`2<GameKit.GKMatchedPlayers,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1
!missing-null-allowed! 'System.Void GameKit.GKMatchmaker::FindPlayersForHostedRequest(GameKit.GKMatchRequest,System.Action`2<GameKit.GKPlayer[],Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKMatchmaker::FindPlayersForHostedRequest(GameKit.GKMatchRequest,System.Action`2<GameKit.GKPlayer[],Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1
!missing-null-allowed! 'System.Void GameKit.GKMatchmaker::Match(GameKit.GKInvite,System.Action`2<GameKit.GKMatch,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKMatchmaker::Match(GameKit.GKInvite,System.Action`2<GameKit.GKMatch,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1
!missing-null-allowed! 'System.Void GameKit.GKMatchmaker::QueryQueueActivity(System.String,System.Action`2<System.IntPtr,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1
!missing-null-allowed! 'System.Void GameKit.GKTurnBasedExchange::Cancel(System.String,Foundation.NSObject[],System.Action`1<Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKTurnBasedExchange::Reply(System.String,Foundation.NSObject[],Foundation.NSData,System.Action`1<Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::AcceptInvite(System.Action`2<GameKit.GKTurnBasedMatch,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::AcceptInvite(System.Action`2<GameKit.GKTurnBasedMatch,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1
!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::DeclineInvite(System.Action`2<GameKit.GKTurnBasedMatch,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::EndMatchInTurn(Foundation.NSData,GameKit.GKLeaderboardScore[],Foundation.NSObject[],System.Action`1<Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::EndMatchInTurn(Foundation.NSData,System.Action`1<Foundation.NSError>)' is missing a '?' on parameter 'onCompletion' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::EndTurn(GameKit.GKTurnBasedParticipant[],System.Double,Foundation.NSData,System.Action`1<Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::LoadMatch(System.String,System.Action`2<GameKit.GKTurnBasedMatch,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::LoadMatch(System.String,System.Action`2<GameKit.GKTurnBasedMatch,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1
!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::ParticipantQuitInTurn(GameKit.GKTurnBasedMatchOutcome,GameKit.GKTurnBasedParticipant[],System.Double,Foundation.NSData,System.Action`1<Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::ParticipantQuitOutOfTurn(GameKit.GKTurnBasedMatchOutcome,System.Action`1<Foundation.NSError>)' is missing a '?' on parameter 'onCompletion' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::Rematch(System.Action`2<GameKit.GKTurnBasedMatch,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::Rematch(System.Action`2<GameKit.GKTurnBasedMatch,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1
!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::Remove(System.Action`1<Foundation.NSError>)' is missing a '?' on parameter 'onCompletion' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::SaveCurrentTurn(Foundation.NSData,System.Action`1<Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::SaveMergedMatchData(Foundation.NSData,GameKit.GKTurnBasedExchange[],System.Action`1<Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::SendExchange(GameKit.GKTurnBasedParticipant[],Foundation.NSData,System.String,Foundation.NSObject[],System.Double,System.Action`2<GameKit.GKTurnBasedExchange,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::SendExchange(GameKit.GKTurnBasedParticipant[],Foundation.NSData,System.String,Foundation.NSObject[],System.Double,System.Action`2<GameKit.GKTurnBasedExchange,Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #1
!missing-null-allowed! 'System.Void GameKit.GKTurnBasedMatch::SendReminder(GameKit.GKTurnBasedParticipant[],System.String,Foundation.NSObject[],System.Action`1<Foundation.NSError>)' is missing a '?' on parameter 'completionHandler' block parameter #0
20 changes: 0 additions & 20 deletions tests/xtro-sharpie/api-annotations-dotnet/iOS-GameKit.ignore

This file was deleted.

12 changes: 0 additions & 12 deletions tests/xtro-sharpie/api-annotations-dotnet/macOS-GameKit.ignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,3 @@
# We have bound GKVoiceChatServiceError as GKVoiceChatServiceError which has no support for macOS
# https://developer.apple.com/documentation/gamekit/gkvoicechatserviceerror?language=objc

!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::DeleteSavedGames(System.String,System.Action`1<Foundation.NSError>)' is missing a '?' on parameter 'handler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::FetchSavedGames(System.Action`2<GameKit.GKSavedGame[],Foundation.NSError>)' is missing a '?' on parameter 'handler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::FetchSavedGames(System.Action`2<GameKit.GKSavedGame[],Foundation.NSError>)' is missing a '?' on parameter 'handler' block parameter #1
!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::ResolveConflictingSavedGames(GameKit.GKSavedGame[],Foundation.NSData,System.Action`2<GameKit.GKSavedGame[],Foundation.NSError>)' is missing a '?' on parameter 'handler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::ResolveConflictingSavedGames(GameKit.GKSavedGame[],Foundation.NSData,System.Action`2<GameKit.GKSavedGame[],Foundation.NSError>)' is missing a '?' on parameter 'handler' block parameter #1
!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::SaveGameData(Foundation.NSData,System.String,System.Action`2<GameKit.GKSavedGame,Foundation.NSError>)' is missing a '?' on parameter 'handler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::SaveGameData(Foundation.NSData,System.String,System.Action`2<GameKit.GKSavedGame,Foundation.NSError>)' is missing a '?' on parameter 'handler' block parameter #1
!missing-null-allowed! 'System.Void GameKit.GKSavedGame::LoadData(System.Action`2<Foundation.NSData,Foundation.NSError>)' is missing a '?' on parameter 'handler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKSavedGame::LoadData(System.Action`2<Foundation.NSData,Foundation.NSError>)' is missing a '?' on parameter 'handler' block parameter #1
!missing-null-allowed! 'System.Void GameKit.GKChallengeDefinition::LoadDefinitions(GameKit.GKChallengeDefinitionLoadDefinitionsHandler)' is missing a '?' on parameter 'completionHandler' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::set_AuthenticateHandler(System.Action`2<AppKit.NSViewController,Foundation.NSError>)' is missing a '?' on parameter 'value' block parameter #0
!missing-null-allowed! 'System.Void GameKit.GKLocalPlayer::set_AuthenticateHandler(System.Action`2<AppKit.NSViewController,Foundation.NSError>)' is missing a '?' on parameter 'value' block parameter #1
Loading
Loading