Mise à jour des headers des fichiers générés
Some checks failed
gitea-openium/resgen.swift/pipeline/head There was a failure building this commit

This commit is contained in:
Thibaut Schmitt 2022-07-25 09:56:54 +02:00
parent 0775be88b0
commit efd04299a8
22 changed files with 49 additions and 35 deletions

View File

@ -146,6 +146,20 @@
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "ToolCore"
BuildableName = "ToolCore"
BlueprintName = "ToolCore"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction

View File

@ -20,21 +20,21 @@ let package = Package(
.target(
name: "FontTool",
dependencies: [
"CLIToolCore",
"ToolCore",
.product(name: "ArgumentParser", package: "swift-argument-parser")
]
),
.target(
name: "ColorTool",
dependencies: [
"CLIToolCore",
"ToolCore",
.product(name: "ArgumentParser", package: "swift-argument-parser")
]
),
.target(
name: "Strings",
dependencies: [
"CLIToolCore",
"ToolCore",
.product(name: "ArgumentParser", package: "swift-argument-parser")
],
sources: ["."] // Force include all subdirectories
@ -42,12 +42,12 @@ let package = Package(
.target(
name: "Imagium",
dependencies: [
"CLIToolCore",
"ToolCore",
.product(name: "ArgumentParser", package: "swift-argument-parser")
]
),
// Helper targets
.target(name: "CLIToolCore"),
.target(name: "ToolCore"),
// Test targets
.testTarget(
name: "ResgenSwiftTests",

View File

@ -6,6 +6,7 @@
//
import Foundation
import ToolCore
struct ColorExtensionGenerator {
@ -15,7 +16,7 @@ struct ColorExtensionGenerator {
func getHeader() -> String {
"""
// Generated from ColorToolCore at \(Date())
// Generated by ResgenSwift.ColorToolCore \(ResgenSwiftVersion)
import UIKit

View File

@ -6,7 +6,7 @@
//
import Foundation
import CLIToolCore
import ToolCore
struct ColorXcassetHelper {

View File

@ -6,7 +6,7 @@
//
import Foundation
import CLIToolCore
import ToolCore
import ArgumentParser
enum ColorStyle: String, Decodable {

View File

@ -6,12 +6,13 @@
//
import Foundation
import ToolCore
class FontToolContentGenerator {
static func getExtensionHeader(fontsNames: [String]) -> String {
"""
// Generated from FontToolCore
// Generated by ResgenSwift.FontToolCore \(ResgenSwiftVersion)
import UIKit

View File

@ -6,7 +6,7 @@
//
import Foundation
import CLIToolCore
import ToolCore
class FontToolHelper {
static func getFontsFilenames(fromInputFolder inputFolder: String) -> [String] {

View File

@ -6,7 +6,7 @@
//
import Foundation
import CLIToolCore
import ToolCore
import ArgumentParser
struct FontTool: ParsableCommand {

View File

@ -5,7 +5,7 @@
// Created by Thibaut Schmitt on 14/02/2022.
//
import CLIToolCore
import ToolCore
import Foundation
class ImageExtensionGenerator {
@ -66,7 +66,7 @@ class ImageExtensionGenerator {
private static func getHeader(inputFilename: String, extensionClassname: String) -> String {
"""
// Generated from Imagium at \(Date())
// Generated by ResgenSwift.Imagium \(ResgenSwiftVersion)
// Images from \(inputFilename)
import UIKit

View File

@ -6,7 +6,7 @@
//
import Foundation
import CLIToolCore
import ToolCore
class XcassetsGenerator {

View File

@ -7,7 +7,7 @@
import Foundation
import ArgumentParser
import CLIToolCore
import ToolCore
enum PlatormTag: String {
case droid = "d"

View File

@ -1,13 +1 @@
print("Welcome ResgenSwift")
/*
Make resgen as main command and font/color... as subcommands. It could look like:
Resgen
-> ColorTool
-> FontTool
-> ImageTool
-> Strings
-> Twine
-> Stringium
-> Tag
*/

View File

@ -6,7 +6,7 @@
//
import Foundation
import CLIToolCore
import ToolCore
class StringsFileGenerator {
@ -41,7 +41,7 @@ class StringsFileGenerator {
var stringsFileContent = """
/**
* Apple Strings File
* Generated by ResgenSwift 1.0.0
* Generated by ResgenSwift \(ResgenSwiftVersion)
* Language: \(lang)
*/\n
"""
@ -123,7 +123,7 @@ class StringsFileGenerator {
private static func getHeader(stringsFilename: String, extensionClassname: String) -> String {
"""
// Generated from Strings-Stringium at \(Date())
// Generated by ResgenSwift.Strings.Stringium \(ResgenSwiftVersion)
import UIKit

View File

@ -6,7 +6,7 @@
//
import Foundation
import CLIToolCore
import ToolCore
import CoreVideo
class TagsGenerator {
@ -57,7 +57,7 @@ class TagsGenerator {
private static func getHeader(extensionClassname: String) -> String {
"""
// Generated from Strings-Tags at \(Date())
// Generated by ResgenSwift.Strings.Tags \(ResgenSwiftVersion)
// typelias Tags = String

View File

@ -6,7 +6,7 @@
//
import Foundation
import CLIToolCore
import ToolCore
import ArgumentParser
struct Stringium: ParsableCommand {

View File

@ -6,7 +6,7 @@
//
import Foundation
import CLIToolCore
import ToolCore
import ArgumentParser
struct Tags: ParsableCommand {

View File

@ -6,7 +6,7 @@
//
import Foundation
import CLIToolCore
import ToolCore
import ArgumentParser
struct Twine: ParsableCommand {

View File

@ -0,0 +1,10 @@
//
// Version.swift
//
//
// Created by Thibaut Schmitt on 25/07/2022.
//
import Foundation
public let ResgenSwiftVersion = "1.0.0"