Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game Center Manager 2022 - Update for iOS 14+ Objective-C GameKit #80

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

danoli3
Copy link
Contributor

@danoli3 danoli3 commented Aug 4, 2022

For the Objective-C / C++ GameCenter game dev users: here's some fresh working code

Update for iOS 14+ Objective-C GameKit

  • Fixes crashes associated with old API's on iOS 14 where targeting new builds + Fixes: Update to Game Center 2020 API changes for iOS 14 #78
  • Updates Game Center GameKit API usage to latest
  • Changes Leaderboard setup methods where leaderboards in use
  • Removes Ancient Deprecated Functions
  • GameCenterManager - Deprecates old API usage for < iOS 12 GKScore etc
  • iOS Example Updated
  • Xcode Project Upgraded
  • Updated Graphics in Example to use Required Apple Game Center Logos / Guidelines as of 2022
  • Updates Obj-c NSArchive to latest API's / Fixes crashes

Bug Fixes:

  • Fixes authentication view if already authenticated

iOS Tested working on Devices

  • iOS 12
  • iOS 14
  • iOS 15
  • iOS 16 BETA

_macOS examples not yet updated / tvOS examples not yet updated / code fixes not yet fully fixed or tested or macOS _

- Fixes crashes associated with old API's on iOS 14 +
- Updates Game Center GameKit API usage
- Changes Leaderboard setup methods where leaderboards in use
- Removes Ancient Deprecated Functions
- GameCenterManager - Deprecates old API usage for < iOS 12 GKScore etc
- iOS Example Updated
- Xcode Project Upgraded
@danoli3
Copy link
Contributor Author

danoli3 commented Aug 4, 2022

Summon @nihalahmed @Sam-Spencer

…enticated - Fix NSKeyArchiver with old Obj-c Code in reportScore if not logged in
…nd fixed serialisation, crashes and security

Fixes for iOS 13 and syncing
Fixes for serialisation and saving of GKLeaderboardScore* with NSCoder Objective-C Conditional
Fixes for unknownPlayer returned when known / last logged in / store NSDefaults (for offline scores etc)
Fixes for reporting Offline scores
Upgraded API
@danoli3
Copy link
Contributor Author

danoli3 commented Aug 31, 2022

More updates:

  • Updated further with fixes for iOS 13.0 (crashing old api code)
  • Feature fixes for NSDefaults saving
  • Fixes Serialisation via Conditional class overload of GKLeaderScore* which apple has not provided a serialisation NSCoder method by default which was causing inoperable saved leaderboards for offline scores
  • Added NSDefaults Encryption for scores
  • Added context for scores passed through

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to Game Center 2020 API changes for iOS 14
1 participant