// swift-tools-version:5.9
import PackageDescription

let package = Package(
    name: "SynorSDK",
    platforms: [
        .macOS(.v12),
        .iOS(.v15),
        .tvOS(.v15),
        .watchOS(.v8)
    ],
    products: [
        .library(
            name: "SynorSDK",
            targets: ["SynorCompute", "SynorWallet", "SynorRpc", "SynorStorage"]
        ),
        .library(name: "SynorCompute", targets: ["SynorCompute"]),
        .library(name: "SynorWallet", targets: ["SynorWallet"]),
        .library(name: "SynorRpc", targets: ["SynorRpc"]),
        .library(name: "SynorStorage", targets: ["SynorStorage"])
    ],
    dependencies: [],
    targets: [
        .target(
            name: "SynorCompute",
            dependencies: [],
            path: "Sources/SynorCompute"
        ),
        .target(
            name: "SynorWallet",
            dependencies: [],
            path: "Sources/Synor/Wallet"
        ),
        .target(
            name: "SynorRpc",
            dependencies: [],
            path: "Sources/Synor/Rpc"
        ),
        .target(
            name: "SynorStorage",
            dependencies: [],
            path: "Sources/Synor/Storage"
        ),
        .testTarget(
            name: "SynorTests",
            dependencies: ["SynorCompute", "SynorWallet", "SynorRpc", "SynorStorage"],
            path: "Tests/SynorTests"
        )
    ]
)
