From e85cedda9c2934042bb3921921b3cdc7c7e22d09 Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Wed, 30 Dec 2020 16:05:18 +0100 Subject: [PATCH] Use own bundle ID instead of "xcode" as author --- .../Generators/AssetCatalogGenerator.swift | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/Sources/LibMakeColors/Generators/AssetCatalogGenerator.swift b/Sources/LibMakeColors/Generators/AssetCatalogGenerator.swift index 3be34f9..7851575 100644 --- a/Sources/LibMakeColors/Generators/AssetCatalogGenerator.swift +++ b/Sources/LibMakeColors/Generators/AssetCatalogGenerator.swift @@ -51,6 +51,13 @@ final class AssetCatalogGenerator: Generator { } } +private let infoTag = """ +"info" : { + "author" : "de.5sw.MakeColors", + "version" : 1 +} +""" + private extension Color { func json() -> String { """ @@ -69,10 +76,7 @@ private extension Color { "idiom" : "universal" } ], - "info" : { - "author" : "xcode", - "version" : 1 - } + \(infoTag) } """ } @@ -86,21 +90,15 @@ private extension Color { private let group = """ { - "info" : { - "author" : "xcode", - "version" : 1 - }, "properties" : { "provides-namespace" : true - } + }, + \(infoTag) } """ private let catalog = """ { - "info" : { - "author" : "xcode", - "version" : 1 - } +\(infoTag) } """