XcodeGen/Sources/ProjectSpec/Config.swift

31 lines
546 B
Swift

//
// Config.swift
// XcodeGen
//
// Created by Yonas Kolb on 20/7/17.
//
//
import Foundation
import xcodeproj
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 enum ConfigType: String {
case debug
case release
}