~ Tuist updated to `4.50.2`

This commit is contained in:
David Bureš 2025-05-24 14:12:58 +02:00
parent a60c212d34
commit 94dc42441b
9 changed files with 126 additions and 98 deletions

View File

@ -1,2 +1,2 @@
[tools]
tuist = "4.25.0"
tuist = "4.50.2"

View File

@ -4,8 +4,6 @@
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>

View File

@ -1,3 +1,4 @@
// swiftlint:disable:this file_name
// swiftlint:disable all
// swift-format-ignore-file
// swiftformat:disable all
@ -14,11 +15,8 @@
import SwiftUI
#endif
// swiftlint:disable superfluous_disable_command file_length implicit_return
// MARK: - Asset Catalogs
// swiftlint:disable identifier_name line_length nesting type_body_length type_name
public enum CorkAsset: Sendable {
public enum Assets {
public static let accentColor = CorkColors(name: "AccentColor")
@ -38,7 +36,6 @@ public enum CorkAsset: Sendable {
public enum PreviewAssets {
}
}
// swiftlint:enable identifier_name line_length nesting type_body_length type_name
// MARK: - Implementation Details
@ -147,5 +144,5 @@ public extension SwiftUI.Image {
}
#endif
// swiftlint:enable all
// swiftformat:enable all
// swiftlint:enable all

View File

@ -1,3 +1,4 @@
// swiftlint:disable:this file_name
// swiftlint:disable all
// swift-format-ignore-file
// swiftformat:disable all
@ -14,11 +15,8 @@
import SwiftUI
#endif
// swiftlint:disable superfluous_disable_command file_length implicit_return
// MARK: - Asset Catalogs
// swiftlint:disable identifier_name line_length nesting type_body_length type_name
public enum CorkAsset: Sendable {
public enum Assets {
public static let accentColor = CorkColors(name: "AccentColor")
@ -38,7 +36,6 @@ public enum CorkAsset: Sendable {
public enum PreviewAssets {
}
}
// swiftlint:enable identifier_name line_length nesting type_body_length type_name
// MARK: - Implementation Details
@ -147,5 +144,5 @@ public extension SwiftUI.Image {
}
#endif
// swiftlint:enable all
// swiftformat:enable all
// swiftlint:enable all

View File

@ -1,16 +1,25 @@
// periphery:ignore:all
// swiftlint:disable:this file_name
// swiftlint:disable all
// swift-format-ignore-file
// swiftformat:disable all
import Foundation// MARK: - Swift Bundle Accessor for Frameworks
#if hasFeature(InternalImportsByDefault)
public import Foundation
#else
import Foundation
#endif
// MARK: - Swift Bundle Accessor for Frameworks
private class BundleFinder {}
extension Foundation.Bundle {
/// Since Cork is a application, the bundle for classes within this module can be used directly.
static let module = Bundle(for: BundleFinder.self)
}// MARK: - Objective-C Bundle Accessor
}
// MARK: - Objective-C Bundle Accessor
@objc
public class CorkResources: NSObject {
@objc public class var bundle: Bundle {
return .module
}
}// swiftlint:enable all
}
// swiftformat:enable all
// swiftlint:enable all

View File

@ -1,16 +1,25 @@
// periphery:ignore:all
// swiftlint:disable:this file_name
// swiftlint:disable all
// swift-format-ignore-file
// swiftformat:disable all
import Foundation// MARK: - Swift Bundle Accessor for Frameworks
#if hasFeature(InternalImportsByDefault)
public import Foundation
#else
import Foundation
#endif
// MARK: - Swift Bundle Accessor for Frameworks
private class BundleFinder {}
extension Foundation.Bundle {
/// Since Self-Compiled is a application, the bundle for classes within this module can be used directly.
static let module = Bundle(for: BundleFinder.self)
}// MARK: - Objective-C Bundle Accessor
}
// MARK: - Objective-C Bundle Accessor
@objc
public class CorkResources: NSObject {
@objc public class var bundle: Bundle {
return .module
}
}// swiftlint:enable all
}
// swiftformat:enable all
// swiftlint:enable all

View File

@ -50,6 +50,85 @@ func corkTarget(configureWithSelfCompiled: Bool) -> ProjectDescription.Target {
)
}
let corkSharedTarget: ProjectDescription.Target = .target(
name: "CorkShared",
destinations: [.mac],
product: .staticLibrary,
bundleId: "eu.davidbures.cork-shared",
deploymentTargets: .macOS("14.0.0"),
sources: [
"Modules/Shared/**/*.swift"
],
dependencies: [
.external(name: "Defaults")
],
settings: .settings(configurations: [
.debug(
name: "Debug",
xcconfig: .relativeToRoot("xcconfigs/Cork.xcconfig")
),
.release(
name: "Release",
xcconfig: .relativeToRoot("xcconfigs/Cork.xcconfig")
)
])
)
let corkNotificationsTarget: ProjectDescription.Target = .target(
name: "CorkNotifications",
destinations: [.mac],
product: .staticLibrary,
bundleId: "eu.davidbures.cork-notifications",
deploymentTargets: .macOS("14.0.0"),
sources: [
"Modules/Notifications/**/*.swift"
],
dependencies: [
.target(name: "CorkShared")
],
settings: .settings(configurations: [
.debug(
name: "Debug",
xcconfig: .relativeToRoot("xcconfigs/Cork.xcconfig")
),
.release(
name: "Release",
xcconfig: .relativeToRoot("xcconfigs/Cork.xcconfig")
)
])
)
let corkHelpTarget: ProjectDescription.Target = .target(
name: "CorkHelp",
destinations: [.mac],
product: .bundle,
bundleId: "eu.davidbures.corkhelp",
settings: .settings(configurations: [
.debug(
name: "Debug",
xcconfig: .relativeToRoot("xcconfigs/CorkHelp.xcconfig")
),
.release(
name: "Release",
xcconfig: .relativeToRoot("xcconfigs/CorkHelp.xcconfig")
),
])
)
let corkTestsTarget: ProjectDescription.Target = .target(
name: "CorkTests",
destinations: [.mac],
product: .unitTests,
bundleId: "eu.davidbures.cork-tests",
sources: [
"Tests/**",
"Cork/**/*.swift"
],
dependencies: [
.target(name: "Cork")
]
)
let project = Project(
name: "Cork",
options: .options(
@ -79,81 +158,10 @@ let project = Project(
targets: [
corkTarget(configureWithSelfCompiled: false),
corkTarget(configureWithSelfCompiled: true),
.target(
name: "CorkShared",
destinations: [.mac],
product: .staticLibrary,
bundleId: "eu.davidbures.cork-shared",
deploymentTargets: .macOS("14.0.0"),
sources: [
"Modules/Shared/**/*.swift"
],
dependencies: [
.external(name: "Defaults")
],
settings: .settings(configurations: [
.debug(
name: "Debug",
xcconfig: .relativeToRoot("xcconfigs/Cork.xcconfig")
),
.release(
name: "Release",
xcconfig: .relativeToRoot("xcconfigs/Cork.xcconfig")
)
])
),
.target(
name: "CorkNotifications",
destinations: [.mac],
product: .staticLibrary,
bundleId: "eu.davidbures.cork-notifications",
deploymentTargets: .macOS("14.0.0"),
sources: [
"Modules/Notifications/**/*.swift"
],
dependencies: [
.target(name: "CorkShared")
],
settings: .settings(configurations: [
.debug(
name: "Debug",
xcconfig: .relativeToRoot("xcconfigs/Cork.xcconfig")
),
.release(
name: "Release",
xcconfig: .relativeToRoot("xcconfigs/Cork.xcconfig")
)
])
),
.target(
name: "CorkHelp",
destinations: [.mac],
product: .bundle,
bundleId: "eu.davidbures.corkhelp",
settings: .settings(configurations: [
.debug(
name: "Debug",
xcconfig: .relativeToRoot("xcconfigs/CorkHelp.xcconfig")
),
.release(
name: "Release",
xcconfig: .relativeToRoot("xcconfigs/CorkHelp.xcconfig")
),
])
),
.target(
name: "CorkTests",
destinations: [.mac],
product: .unitTests,
bundleId: "eu.davidbures.cork-tests",
sources: [
"Tests/**",
"Cork/**/*.swift"
],
dependencies: [
.target(name: "Cork")
]
)
corkSharedTarget,
corkNotificationsTarget,
corkHelpTarget,
corkTestsTarget
]
)

10
Tuist.swift Normal file
View File

@ -0,0 +1,10 @@
import ProjectDescription
let config: Config = .init(
project: .tuist(
compatibleXcodeVersions: .upToNextMajor(.init(16, 0, 0)),
swiftVersion: .init(6, 0, 0),
plugins: .init(),
generationOptions: .options(),
installOptions: .options())
)