Skip to content

Commit

Permalink
Merge pull request #300 from XcodesOrg/matt/xrOSRuntimeSupport
Browse files Browse the repository at this point in the history
feat: add support for VisionOS download
  • Loading branch information
MattKiazyk authored Jun 23, 2023
2 parents 6835cde + bca393b commit fe98e73
Show file tree
Hide file tree
Showing 6 changed files with 788 additions and 174 deletions.
6 changes: 3 additions & 3 deletions .swiftpm/xcode/xcshareddata/xcschemes/xcodes.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@
isEnabled = "NO">
</CommandLineArgument>
<CommandLineArgument
argument = "runtimes"
isEnabled = "NO">
argument = "runtimes install &quot;visionOS 1.0-beta1&quot;"
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "install --help"
isEnabled = "YES">
isEnabled = "NO">
</CommandLineArgument>
<CommandLineArgument
argument = "update"
Expand Down
5 changes: 5 additions & 0 deletions Sources/XcodesKit/Models+Runtimes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,15 @@ extension DownloadableRuntime {
case macOS = "com.apple.platform.macosx"
case watchOS = "com.apple.platform.watchos"
case tvOS = "com.apple.platform.appletvos"
case visionOS = "com.apple.platform.xros"

var order: Int {
switch self {
case .iOS: return 1
case .macOS: return 2
case .watchOS: return 3
case .tvOS: return 4
case .visionOS: return 5
}
}

Expand All @@ -102,6 +104,7 @@ extension DownloadableRuntime {
case .macOS: return "macOS"
case .watchOS: return "watchOS"
case .tvOS: return "tvOS"
case .visionOS: return "visionOS"
}
}
}
Expand Down Expand Up @@ -134,12 +137,14 @@ extension InstalledRuntime {
case tvOS = "com.apple.platform.appletvsimulator"
case iOS = "com.apple.platform.iphonesimulator"
case watchOS = "com.apple.platform.watchsimulator"
case visionOS = "com.apple.platform.visionsimulator"

var asPlatformOS: DownloadableRuntime.Platform {
switch self {
case .watchOS: return .watchOS
case .iOS: return .iOS
case .tvOS: return .tvOS
case .visionOS: return .visionOS
}
}
}
Expand Down
Loading

0 comments on commit fe98e73

Please sign in to comment.