forked from Carthage/Carthage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove (depreciated immediately)
XCDBLD.Platform
and the non-dynami…
…c SDK enum. The non-dynamic SDK enum has replacement in commit 883f1c8. Eliminate declaration of `XCDBLD.Platform` — we were using Platform wrong, twisting it into a simulatorless instance of the SDK. • instead, we just derive a method for that — `SDK.platformSimulatorlessFromHeuristic` • all the info needed for that gets parsed from -showsdks -json and stored in the SDK type See `SDK.platformSimulatorlessFromHeuristic` from commit 883f1c8.
- Loading branch information
Showing
4 changed files
with
8 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,12 @@ | ||
import Foundation | ||
|
||
/// Represents a platform to build for. | ||
internal enum Platform: String { | ||
/// macOS. | ||
case macOS = "Mac" | ||
/* | ||
Former file of `XCDBLD.Platform` — previously, platform functioned as somewhat of a | ||
simulator-removed instance of an SDK. | ||
|
||
/// iOS for device and simulator. | ||
case iOS = "iOS" | ||
This is dissimilar (in spirit and practice) to how Xcode Build Settings and | ||
`xcodebuild -showsdks -json` employed the term `Platform`. | ||
|
||
/// Apple Watch device and simulator. | ||
case watchOS = "watchOS" | ||
|
||
/// Apple TV device and simulator. | ||
case tvOS = "tvOS" | ||
|
||
/// All supported build platforms. | ||
public static let supportedPlatforms: [Platform] = [ .macOS, .iOS, .watchOS, .tvOS ] | ||
|
||
/// The SDKs that need to be built for this platform. | ||
public var SDKs: [SD_K] { | ||
switch self { | ||
case .macOS: | ||
return [ .macOSX ] | ||
|
||
case .iOS: | ||
return [ .iPhoneSimulator, .iPhoneOS ] | ||
|
||
case .watchOS: | ||
return [ .watchOS, .watchSimulator ] | ||
|
||
case .tvOS: | ||
return [ .tvOS, .tvSimulator ] | ||
} | ||
} | ||
} | ||
Functionality previously provided by this type is mostly now accomodated by | ||
`SDK.platformSimulatorlessFromHeuristic`. | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters