28 lines
1.5 KiB
Swift
28 lines
1.5 KiB
Swift
// swift-tools-version: 6.0
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "WatchBridge",
|
|
platforms: [.iOS(.v17), .watchOS(.v10), .macOS(.v14)],
|
|
products: [
|
|
.library(name: "WatchBridgeCommon", targets: ["WatchBridgeCommon"]),
|
|
.library(name: "WatchBridgePhone", targets: ["WatchBridgePhone"]),
|
|
.library(name: "WatchBridgeWatch", targets: ["WatchBridgeWatch"])
|
|
],
|
|
dependencies: [.package(path: "../../Packages/WristivoKit")],
|
|
targets: [
|
|
.target(name: "WatchBridgeCommon", dependencies: [
|
|
.product(name: "RemoteCore", package: "WristivoKit")
|
|
], path: "Sources/Common"),
|
|
.target(name: "WatchBridgePhone", dependencies: [
|
|
"WatchBridgeCommon", .product(name: "RemoteCore", package: "WristivoKit")
|
|
], path: "Sources/iPhone"),
|
|
.target(name: "WatchBridgeWatch", dependencies: [
|
|
"WatchBridgeCommon", .product(name: "RemoteCore", package: "WristivoKit")
|
|
], path: "Sources/Watch"),
|
|
.testTarget(name: "WatchBridgeCommonTests", dependencies: ["WatchBridgeCommon", .product(name: "RemoteCore", package: "WristivoKit")], path: "Tests/Common"),
|
|
.testTarget(name: "WatchBridgePhoneTests", dependencies: ["WatchBridgePhone", .product(name: "RemoteCore", package: "WristivoKit")], path: "Tests/iPhone"),
|
|
.testTarget(name: "WatchBridgeWatchTests", dependencies: ["WatchBridgeWatch", "WatchBridgeCommon", .product(name: "RemoteCore", package: "WristivoKit")], path: "Tests/Watch")
|
|
]
|
|
)
|