Merge pull request #348 from yonaskolb/parse-xcode-version

Parse xcodeVersion from yaml
This commit is contained in:
Yonas Kolb
2018-07-22 12:15:35 +10:00
committed by GitHub
+1
View File
@@ -87,6 +87,7 @@ extension SpecOptions: JSONObjectConvertible {
createIntermediateGroups = jsonDictionary.json(atKeyPath: "createIntermediateGroups") ?? false
developmentLanguage = jsonDictionary.json(atKeyPath: "developmentLanguage")
usesTabs = jsonDictionary.json(atKeyPath: "usesTabs")
xcodeVersion = jsonDictionary.json(atKeyPath: "xcodeVersion")
indentWidth = (jsonDictionary.json(atKeyPath: "indentWidth") as Int?).flatMap(UInt.init)
tabWidth = (jsonDictionary.json(atKeyPath: "tabWidth") as Int?).flatMap(UInt.init)
deploymentTarget = jsonDictionary.json(atKeyPath: "deploymentTarget") ?? DeploymentTarget()