mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
Use the Spec struct rather than dictionaries directly
This commit is contained in:
@@ -16,11 +16,11 @@ public class SpecLoader {
|
||||
}
|
||||
|
||||
public func loadProject(path: Path) throws -> Project {
|
||||
let dictionary = try Project.loadDictionary(path: path)
|
||||
let project = try Project(basePath: path.parent(), jsonDictionary: dictionary)
|
||||
let template = try Project.Spec(filename: path.lastComponent, basePath: path.parent())
|
||||
let project = try Project(spec: template, basePath: path.parent())
|
||||
|
||||
self.project = project
|
||||
projectDictionary = dictionary
|
||||
projectDictionary = template.jsonDictionary
|
||||
|
||||
return project
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user