Skip to content

Commit

Permalink
Move GameKit overlay to GameCenter.
Browse files Browse the repository at this point in the history
In iOS 9 and OS X 10.11 the old GameKit was effectively renamed GameCenter, while
the new GameKit is a sort of umbrella framework like Cocoa. We need to support
backwards deployment, though, so the GameCenter overlay links to GameKit.framework.
(This is essentially the same solution implemented for CoreImage moving out of
QuartzCore in r28449)

rdar://problem/21340738

Swift SVN r30322
  • Loading branch information
jrose-apple committed Jul 17, 2015
1 parent 78c1961 commit 965285f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apinotes/GameKit.apinotes → apinotes/GameCenter.apinotes
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Name: GameKit
Name: GameCenter
Classes:
- Name: GKLocalPlayer
Methods:
Expand Down
2 changes: 1 addition & 1 deletion stdlib/public/SDK/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ add_subdirectory(Darwin)
add_subdirectory(Dispatch)
add_subdirectory(EventKit)
add_subdirectory(Foundation)
add_subdirectory(GameKit)
add_subdirectory(GameCenter)
add_subdirectory(GameplayKit)
add_subdirectory(GLKit)
add_subdirectory(HomeKit)
Expand Down
8 changes: 8 additions & 0 deletions stdlib/public/SDK/GameCenter/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
add_swift_library(swiftGameCenter IS_SDK_OVERLAY
GameCenter.swift
TARGET_SDKS OSX IOS IOS_SIMULATOR TVOS TVOS_SIMULATOR
SWIFT_MODULE_DEPENDS Foundation
SWIFT_MODULE_DEPENDS_OSX AppKit
SWIFT_MODULE_DEPENDS_IOS_TVOS UIKit
FRAMEWORK_DEPENDS GameKit # some of these types used to be in GameKit
)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@exported import GameKit
@exported import GameCenter
import Foundation

extension GKErrorCode : _BridgedNSError {
Expand Down
7 changes: 0 additions & 7 deletions stdlib/public/SDK/GameKit/CMakeLists.txt

This file was deleted.

0 comments on commit 965285f

Please sign in to comment.