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
Some checks failed
gitea-openium/resgen.swift/pipeline/head There was a failure building this commit
This commit is contained in:
parent
0775be88b0
commit
efd04299a8
@ -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
|
||||
|
@ -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",
|
||||
|
@ -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
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import CLIToolCore
|
||||
import ToolCore
|
||||
|
||||
struct ColorXcassetHelper {
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import CLIToolCore
|
||||
import ToolCore
|
||||
import ArgumentParser
|
||||
|
||||
enum ColorStyle: String, Decodable {
|
||||
|
@ -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
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import CLIToolCore
|
||||
import ToolCore
|
||||
|
||||
class FontToolHelper {
|
||||
static func getFontsFilenames(fromInputFolder inputFolder: String) -> [String] {
|
||||
|
@ -6,7 +6,7 @@
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import CLIToolCore
|
||||
import ToolCore
|
||||
import ArgumentParser
|
||||
|
||||
struct FontTool: ParsableCommand {
|
||||
|
@ -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
|
||||
|
@ -6,7 +6,7 @@
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import CLIToolCore
|
||||
import ToolCore
|
||||
|
||||
class XcassetsGenerator {
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
import Foundation
|
||||
import ArgumentParser
|
||||
import CLIToolCore
|
||||
import ToolCore
|
||||
|
||||
enum PlatormTag: String {
|
||||
case droid = "d"
|
||||
|
@ -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
|
||||
*/
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import CLIToolCore
|
||||
import ToolCore
|
||||
import ArgumentParser
|
||||
|
||||
struct Stringium: ParsableCommand {
|
||||
|
@ -6,7 +6,7 @@
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import CLIToolCore
|
||||
import ToolCore
|
||||
import ArgumentParser
|
||||
|
||||
struct Tags: ParsableCommand {
|
||||
|
@ -6,7 +6,7 @@
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import CLIToolCore
|
||||
import ToolCore
|
||||
import ArgumentParser
|
||||
|
||||
struct Twine: ParsableCommand {
|
||||
|
10
Sources/ToolCore/Version.swift
Normal file
10
Sources/ToolCore/Version.swift
Normal file
@ -0,0 +1,10 @@
|
||||
//
|
||||
// Version.swift
|
||||
//
|
||||
//
|
||||
// Created by Thibaut Schmitt on 25/07/2022.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
public let ResgenSwiftVersion = "1.0.0"
|
Loading…
x
Reference in New Issue
Block a user