Defined the Coordinator target in the Package file.
This commit is contained in:
parent
185f779daf
commit
77a2472dbf
@ -2,22 +2,41 @@
|
|||||||
|
|
||||||
import PackageDescription
|
import PackageDescription
|
||||||
|
|
||||||
|
private var excludePlatforms: [String] = [.PlatformFolder.iOS]
|
||||||
|
|
||||||
|
#if os(iOS)
|
||||||
|
excludePlatforms = []
|
||||||
|
#endif
|
||||||
|
|
||||||
let package = Package(
|
let package = Package(
|
||||||
name: "SwiftLibs",
|
name: "SwiftLibs",
|
||||||
products: [
|
products: [
|
||||||
.library(
|
.library(
|
||||||
name: "SwiftLibs",
|
name: "SwiftLibs",
|
||||||
targets: [
|
targets: [
|
||||||
|
"Coordinator",
|
||||||
"Core"
|
"Core"
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
dependencies: [],
|
dependencies: [],
|
||||||
targets: [
|
targets: [
|
||||||
|
.target(
|
||||||
|
name: "Coordinator",
|
||||||
|
dependencies: [],
|
||||||
|
exclude: excludePlatforms
|
||||||
|
),
|
||||||
.target(
|
.target(
|
||||||
name: "Core",
|
name: "Core",
|
||||||
|
dependencies: []
|
||||||
|
),
|
||||||
|
.testTarget(
|
||||||
|
name: "CoordinatorTests",
|
||||||
dependencies: [
|
dependencies: [
|
||||||
]
|
"Coordinator"
|
||||||
|
],
|
||||||
|
path: "Tests/Coordinator",
|
||||||
|
exclude: excludePlatforms
|
||||||
),
|
),
|
||||||
.testTarget(
|
.testTarget(
|
||||||
name: "CoreTests",
|
name: "CoreTests",
|
||||||
@ -28,3 +47,11 @@ let package = Package(
|
|||||||
),
|
),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// MARK: - String+Constants
|
||||||
|
|
||||||
|
private extension String {
|
||||||
|
enum PlatformFolder {
|
||||||
|
static let iOS = "Platform/iOS"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user