Establish watch relay contracts and platform package wiring

This commit is contained in:
2026-09-18 09:34:26 +04:00
parent a92698e1e6
commit 9b87299bf5
22 changed files with 778 additions and 159 deletions
+27
View File
@@ -0,0 +1,27 @@
// 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")
]
)