mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
25 lines
592 B
Swift
25 lines
592 B
Swift
import Foundation
|
|
import xcproj
|
|
import JSONUtilities
|
|
|
|
public struct Config: Equatable {
|
|
public var name: String
|
|
public var type: ConfigType?
|
|
|
|
public init(name: String, type: ConfigType? = nil) {
|
|
self.name = name
|
|
self.type = type
|
|
}
|
|
|
|
public static func == (lhs: Config, rhs: Config) -> Bool {
|
|
return lhs.name == rhs.name && lhs.type == rhs.type
|
|
}
|
|
|
|
public static var defaultConfigs: [Config] = [Config(name: "Debug", type: .debug), Config(name: "Release", type: .release)]
|
|
}
|
|
|
|
public enum ConfigType: String {
|
|
case debug
|
|
case release
|
|
}
|