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:">
|
ReferencedContainer = "container:">
|
||||||
</BuildableReference>
|
</BuildableReference>
|
||||||
</BuildActionEntry>
|
</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>
|
</BuildActionEntries>
|
||||||
</BuildAction>
|
</BuildAction>
|
||||||
<TestAction
|
<TestAction
|
||||||
|
@ -20,21 +20,21 @@ let package = Package(
|
|||||||
.target(
|
.target(
|
||||||
name: "FontTool",
|
name: "FontTool",
|
||||||
dependencies: [
|
dependencies: [
|
||||||
"CLIToolCore",
|
"ToolCore",
|
||||||
.product(name: "ArgumentParser", package: "swift-argument-parser")
|
.product(name: "ArgumentParser", package: "swift-argument-parser")
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
.target(
|
.target(
|
||||||
name: "ColorTool",
|
name: "ColorTool",
|
||||||
dependencies: [
|
dependencies: [
|
||||||
"CLIToolCore",
|
"ToolCore",
|
||||||
.product(name: "ArgumentParser", package: "swift-argument-parser")
|
.product(name: "ArgumentParser", package: "swift-argument-parser")
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
.target(
|
.target(
|
||||||
name: "Strings",
|
name: "Strings",
|
||||||
dependencies: [
|
dependencies: [
|
||||||
"CLIToolCore",
|
"ToolCore",
|
||||||
.product(name: "ArgumentParser", package: "swift-argument-parser")
|
.product(name: "ArgumentParser", package: "swift-argument-parser")
|
||||||
],
|
],
|
||||||
sources: ["."] // Force include all subdirectories
|
sources: ["."] // Force include all subdirectories
|
||||||
@ -42,12 +42,12 @@ let package = Package(
|
|||||||
.target(
|
.target(
|
||||||
name: "Imagium",
|
name: "Imagium",
|
||||||
dependencies: [
|
dependencies: [
|
||||||
"CLIToolCore",
|
"ToolCore",
|
||||||
.product(name: "ArgumentParser", package: "swift-argument-parser")
|
.product(name: "ArgumentParser", package: "swift-argument-parser")
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
// Helper targets
|
// Helper targets
|
||||||
.target(name: "CLIToolCore"),
|
.target(name: "ToolCore"),
|
||||||
// Test targets
|
// Test targets
|
||||||
.testTarget(
|
.testTarget(
|
||||||
name: "ResgenSwiftTests",
|
name: "ResgenSwiftTests",
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
import ToolCore
|
||||||
|
|
||||||
struct ColorExtensionGenerator {
|
struct ColorExtensionGenerator {
|
||||||
|
|
||||||
@ -15,7 +16,7 @@ struct ColorExtensionGenerator {
|
|||||||
|
|
||||||
func getHeader() -> String {
|
func getHeader() -> String {
|
||||||
"""
|
"""
|
||||||
// Generated from ColorToolCore at \(Date())
|
// Generated by ResgenSwift.ColorToolCore \(ResgenSwiftVersion)
|
||||||
|
|
||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
import CLIToolCore
|
import ToolCore
|
||||||
|
|
||||||
struct ColorXcassetHelper {
|
struct ColorXcassetHelper {
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
import CLIToolCore
|
import ToolCore
|
||||||
import ArgumentParser
|
import ArgumentParser
|
||||||
|
|
||||||
enum ColorStyle: String, Decodable {
|
enum ColorStyle: String, Decodable {
|
||||||
|
@ -6,12 +6,13 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
import ToolCore
|
||||||
|
|
||||||
class FontToolContentGenerator {
|
class FontToolContentGenerator {
|
||||||
|
|
||||||
static func getExtensionHeader(fontsNames: [String]) -> String {
|
static func getExtensionHeader(fontsNames: [String]) -> String {
|
||||||
"""
|
"""
|
||||||
// Generated from FontToolCore
|
// Generated by ResgenSwift.FontToolCore \(ResgenSwiftVersion)
|
||||||
|
|
||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
import CLIToolCore
|
import ToolCore
|
||||||
|
|
||||||
class FontToolHelper {
|
class FontToolHelper {
|
||||||
static func getFontsFilenames(fromInputFolder inputFolder: String) -> [String] {
|
static func getFontsFilenames(fromInputFolder inputFolder: String) -> [String] {
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
import CLIToolCore
|
import ToolCore
|
||||||
import ArgumentParser
|
import ArgumentParser
|
||||||
|
|
||||||
struct FontTool: ParsableCommand {
|
struct FontTool: ParsableCommand {
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
// Created by Thibaut Schmitt on 14/02/2022.
|
// Created by Thibaut Schmitt on 14/02/2022.
|
||||||
//
|
//
|
||||||
|
|
||||||
import CLIToolCore
|
import ToolCore
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
class ImageExtensionGenerator {
|
class ImageExtensionGenerator {
|
||||||
@ -66,7 +66,7 @@ class ImageExtensionGenerator {
|
|||||||
|
|
||||||
private static func getHeader(inputFilename: String, extensionClassname: String) -> String {
|
private static func getHeader(inputFilename: String, extensionClassname: String) -> String {
|
||||||
"""
|
"""
|
||||||
// Generated from Imagium at \(Date())
|
// Generated by ResgenSwift.Imagium \(ResgenSwiftVersion)
|
||||||
// Images from \(inputFilename)
|
// Images from \(inputFilename)
|
||||||
|
|
||||||
import UIKit
|
import UIKit
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
import CLIToolCore
|
import ToolCore
|
||||||
|
|
||||||
class XcassetsGenerator {
|
class XcassetsGenerator {
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
import ArgumentParser
|
import ArgumentParser
|
||||||
import CLIToolCore
|
import ToolCore
|
||||||
|
|
||||||
enum PlatormTag: String {
|
enum PlatormTag: String {
|
||||||
case droid = "d"
|
case droid = "d"
|
||||||
|
@ -1,13 +1 @@
|
|||||||
print("Welcome ResgenSwift")
|
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 Foundation
|
||||||
import CLIToolCore
|
import ToolCore
|
||||||
|
|
||||||
class StringsFileGenerator {
|
class StringsFileGenerator {
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ class StringsFileGenerator {
|
|||||||
var stringsFileContent = """
|
var stringsFileContent = """
|
||||||
/**
|
/**
|
||||||
* Apple Strings File
|
* Apple Strings File
|
||||||
* Generated by ResgenSwift 1.0.0
|
* Generated by ResgenSwift \(ResgenSwiftVersion)
|
||||||
* Language: \(lang)
|
* Language: \(lang)
|
||||||
*/\n
|
*/\n
|
||||||
"""
|
"""
|
||||||
@ -123,7 +123,7 @@ class StringsFileGenerator {
|
|||||||
|
|
||||||
private static func getHeader(stringsFilename: String, extensionClassname: String) -> String {
|
private static func getHeader(stringsFilename: String, extensionClassname: String) -> String {
|
||||||
"""
|
"""
|
||||||
// Generated from Strings-Stringium at \(Date())
|
// Generated by ResgenSwift.Strings.Stringium \(ResgenSwiftVersion)
|
||||||
|
|
||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
import CLIToolCore
|
import ToolCore
|
||||||
import CoreVideo
|
import CoreVideo
|
||||||
|
|
||||||
class TagsGenerator {
|
class TagsGenerator {
|
||||||
@ -57,7 +57,7 @@ class TagsGenerator {
|
|||||||
|
|
||||||
private static func getHeader(extensionClassname: String) -> String {
|
private static func getHeader(extensionClassname: String) -> String {
|
||||||
"""
|
"""
|
||||||
// Generated from Strings-Tags at \(Date())
|
// Generated by ResgenSwift.Strings.Tags \(ResgenSwiftVersion)
|
||||||
|
|
||||||
// typelias Tags = String
|
// typelias Tags = String
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
import CLIToolCore
|
import ToolCore
|
||||||
import ArgumentParser
|
import ArgumentParser
|
||||||
|
|
||||||
struct Stringium: ParsableCommand {
|
struct Stringium: ParsableCommand {
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
import CLIToolCore
|
import ToolCore
|
||||||
import ArgumentParser
|
import ArgumentParser
|
||||||
|
|
||||||
struct Tags: ParsableCommand {
|
struct Tags: ParsableCommand {
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
import CLIToolCore
|
import ToolCore
|
||||||
import ArgumentParser
|
import ArgumentParser
|
||||||
|
|
||||||
struct Twine: ParsableCommand {
|
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