swift-libs/Package.swift

58 lines
1.1 KiB
Swift
Raw Normal View History

2023-04-15 00:45:32 +02:00
// swift-tools-version: 5.8
import PackageDescription
private var excludePlatforms: [String] = [.PlatformFolder.iOS]
#if os(iOS)
excludePlatforms = []
#endif
2023-04-15 00:45:32 +02:00
let package = Package(
name: "SwiftLibs",
products: [
.library(
name: "SwiftLibs",
targets: [
"Coordinator",
"Core"
2023-04-15 00:45:32 +02:00
]
),
],
dependencies: [],
targets: [
.target(
name: "Coordinator",
dependencies: [],
exclude: excludePlatforms
),
2023-04-15 00:45:32 +02:00
.target(
name: "Core",
dependencies: []
),
.testTarget(
name: "CoordinatorTests",
2023-04-15 00:45:32 +02:00
dependencies: [
"Coordinator"
],
path: "Tests/Coordinator",
exclude: excludePlatforms
2023-04-15 00:45:32 +02:00
),
.testTarget(
name: "CoreTests",
2023-04-15 00:45:32 +02:00
dependencies: [
"Core"
],
path: "Tests/Core"
2023-04-15 00:45:32 +02:00
),
]
)
// MARK: - String+Constants
private extension String {
enum PlatformFolder {
static let iOS = "Platform/iOS"
}
}