Replace projectReference.path as relativePath correctly

This commit is contained in:
Yuta Saito 2019-12-11 20:05:17 +09:00
parent 99ce87db58
commit ce92dd69b4
2 changed files with 12 additions and 0 deletions

View File

@ -223,6 +223,7 @@ extension Project: PathContainer {
.object("targets", Target.pathProperties),
.object("targetTemplates", Target.pathProperties),
.object("aggregateTargets", AggregateTarget.pathProperties),
.object("projectReferences", ProjectReference.pathProperties),
]
}
}

View File

@ -11,6 +11,17 @@ public struct ProjectReference: Hashable {
}
}
extension ProjectReference: PathContainer {
static var pathProperties: [PathProperty] {
[
.dictionary([
.string("path"),
]),
]
}
}
extension ProjectReference: NamedJSONDictionaryConvertible {
public init(name: String, jsonDictionary: JSONDictionary) throws {
self.name = name