~ Better Tuist definition for versions

This commit is contained in:
David Bureš 2025-09-08 21:03:50 +02:00
parent 8a41ffddd3
commit 1a97c74220
No known key found for this signature in database
1 changed files with 5 additions and 2 deletions

View File

@ -2,6 +2,9 @@ import ProjectDescription
let settings = Environment.selfCompiled.getBoolean(default: false)
let version: Version = .init(1, 6, 1, buildMetadataIdentifiers: ["Sonoma"])
let build: String = "101_S"
func corkTarget(configureWithSelfCompiled: Bool) -> ProjectDescription.Target {
var additionalCompilationConditions = [String]()
if configureWithSelfCompiled {
@ -141,8 +144,8 @@ let project = Project(
settings: .settings(
base: [
"SWIFT_VERSION": "6.0",
"MARKETING_VERSION": "1.6.0",
"CURRENT_PROJECT_VERSION": "100"
"MARKETING_VERSION": .init(stringLiteral: version.description),
"CURRENT_PROJECT_VERSION": .init(stringLiteral: build)
],
configurations: [
.debug(