mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
Add Discovered Dependency File (#1012)
* Upgrade XCodeProj to 7.14.0 * Bump to XcodeProj to fork * Add script discoveredDependencyFile * Align cfbundle test * Add changelog mock * Update Documentation * Update SPM manifest * Change property name * Verify defult dependency file to nil * Add JSON encodable test * Add PR number Co-authored-by: Fernanda Geraissate <fernandag@spotify.com>
This commit is contained in:
co-authored by
Fernanda Geraissate
parent
50aedc4511
commit
2c600a7c64
@@ -16,6 +16,7 @@ public struct BuildScript: Equatable {
|
||||
public var runOnlyWhenInstalling: Bool
|
||||
public let showEnvVars: Bool
|
||||
public let basedOnDependencyAnalysis: Bool
|
||||
public let discoveredDependencyFile: String?
|
||||
|
||||
public enum ScriptType: Equatable {
|
||||
case path(String)
|
||||
@@ -32,7 +33,8 @@ public struct BuildScript: Equatable {
|
||||
shell: String? = nil,
|
||||
runOnlyWhenInstalling: Bool = runOnlyWhenInstallingDefault,
|
||||
showEnvVars: Bool = showEnvVarsDefault,
|
||||
basedOnDependencyAnalysis: Bool = basedOnDependencyAnalysisDefault
|
||||
basedOnDependencyAnalysis: Bool = basedOnDependencyAnalysisDefault,
|
||||
discoveredDependencyFile: String? = nil
|
||||
) {
|
||||
self.script = script
|
||||
self.name = name
|
||||
@@ -44,6 +46,7 @@ public struct BuildScript: Equatable {
|
||||
self.runOnlyWhenInstalling = runOnlyWhenInstalling
|
||||
self.showEnvVars = showEnvVars
|
||||
self.basedOnDependencyAnalysis = basedOnDependencyAnalysis
|
||||
self.discoveredDependencyFile = discoveredDependencyFile
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,6 +69,7 @@ extension BuildScript: JSONObjectConvertible {
|
||||
runOnlyWhenInstalling = jsonDictionary.json(atKeyPath: "runOnlyWhenInstalling") ?? BuildScript.runOnlyWhenInstallingDefault
|
||||
showEnvVars = jsonDictionary.json(atKeyPath: "showEnvVars") ?? BuildScript.showEnvVarsDefault
|
||||
basedOnDependencyAnalysis = jsonDictionary.json(atKeyPath: "basedOnDependencyAnalysis") ?? BuildScript.basedOnDependencyAnalysisDefault
|
||||
discoveredDependencyFile = jsonDictionary.json(atKeyPath: "discoveredDependencyFile")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,6 +100,10 @@ extension BuildScript: JSONEncodable {
|
||||
dict["script"] = string
|
||||
}
|
||||
|
||||
if let discoveredDependencyFile = discoveredDependencyFile {
|
||||
dict["discoveredDependencyFile"] = discoveredDependencyFile
|
||||
}
|
||||
|
||||
return dict
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user