// swift-tools-version: 6.0
// T-iOS-4: test doubles leaned on by every W1-W3 task. Depends ONLY on
// WireProtocol (the frozen contract) — never on SessionCore/HostRegistry/
// APIClient, so it compiles in W0 and leaf packages stay decoupled (plan §6).
import PackageDescription

let package = Package(
    name: "TestSupport",
    platforms: [.iOS(.v17), .macOS(.v14)],
    products: [
        .library(name: "TestSupport", targets: ["TestSupport"]),
    ],
    dependencies: [
        .package(path: "../WireProtocol"),
    ],
    targets: [
        .target(name: "TestSupport", dependencies: ["WireProtocol"]),
        .testTarget(name: "TestSupportTests", dependencies: ["TestSupport"]),
    ],
    swiftLanguageModes: [.v6]
)
