Compare commits

..

No commits in common. "master" and "2.0.0" have entirely different histories.

4 changed files with 6 additions and 4 deletions

View File

@ -55,7 +55,7 @@ struct ConfigurationArchitecture: Codable {
func getClass(generateStaticProperty: Bool = true) -> String {
guard children?.isEmpty == false else {
return "final class \(classname): Sendable {}"
return "class \(classname) {}"
}
let classDefinition = [

View File

@ -36,7 +36,7 @@ enum ImagesError: Error {
return "error: [\(Images.toolName)] Getting file attributes of \(filename) failed with error: \(errorDescription)"
case .rsvgConvertNotFound:
return "error: [\(Images.toolName)] Can't find rsvg-convert (can be installed with 'brew remove imagemagick && brew install librsvg')"
return "error: [\(Images.toolName)] Can't find rsvg-convert (can be installed with 'brew remove imagemagick && brew install imagemagick --with-librsvg')"
case .writeFile(let subErrorDescription, let filename):
return "error: [\(Images.toolName)] An error occured while writing content to \(filename): \(subErrorDescription)"

View File

@ -73,7 +73,7 @@ struct ParsedImage {
Images.exit(withError: error)
}
return String(decoding: data, as: UTF8.self)
return String(data: data, encoding: .utf8)
}
func generateImageContent(isVector: Bool) -> AssetContent {

View File

@ -137,7 +137,9 @@ class StringsFileGenerator {
let json = try encoder.encode(rootObject)
return String(decoding: json, as: UTF8.self)
if let jsonString = String(data: json, encoding: .utf8) {
return jsonString
}
} catch {
debugPrint("Failed to encode: \(error)")