mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2024-09-21 01:28:24 +03:00
31 lines
546 B
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
|
|
}
|