mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
28 lines
599 B
Swift
28 lines
599 B
Swift
import Foundation
|
|
import XcodeProj
|
|
import JSONUtilities
|
|
import Version
|
|
|
|
public struct LocalSwiftPackage: Equatable {
|
|
public let path: String
|
|
|
|
public init(path: String) {
|
|
self.path = path
|
|
}
|
|
}
|
|
|
|
extension LocalSwiftPackage: JSONObjectConvertible {
|
|
public init(jsonDictionary: JSONDictionary) throws {
|
|
path = try jsonDictionary.json(atKeyPath: "path")
|
|
}
|
|
}
|
|
|
|
extension LocalSwiftPackage: JSONEncodable {
|
|
public func toJSONValue() -> Any {
|
|
var dictionary: JSONDictionary = [:]
|
|
dictionary["path"] = path
|
|
|
|
return dictionary
|
|
}
|
|
}
|