mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
Unify encoding protocols into JSONEncodable
https://github.com/yonaskolb/XcodeGen/pull/545#discussion_r271690085
This commit is contained in:
@@ -61,8 +61,8 @@ extension BuildScript: JSONObjectConvertible {
|
||||
showEnvVars = jsonDictionary.json(atKeyPath: "showEnvVars") ?? true
|
||||
}
|
||||
}
|
||||
extension BuildScript: JSONDictionaryEncodable {
|
||||
public func toJSONDictionary() -> JSONDictionary {
|
||||
extension BuildScript: JSONEncodable {
|
||||
public func toJSONValue() -> Any {
|
||||
var dict: JSONDictionary = [:]
|
||||
|
||||
if runOnlyWhenInstalling {
|
||||
|
||||
Reference in New Issue
Block a user