XcodeGen/Sources/ProjectSpec/Platform.swift

19 lines
360 B
Swift

import Foundation
public enum Platform: String {
case iOS
case watchOS
case tvOS
case macOS
public var carthageDirectoryName: String {
switch self {
case .macOS:
return "Mac"
default:
return rawValue
}
}
public static var all: [Platform] = [.iOS, .tvOS, .watchOS, .macOS]
}