// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "NetworkingLayerAlamofire",
    platforms: [
      .iOS(.v10)
    ],
    products: [
        .library(
            name: "NetworkingLayerAlamofire",
            targets: ["NetworkingLayerAlamofire"]),
    ],
    dependencies: [
        .package(url: "https://github.com/Alamofire/Alamofire.git", .exact("5.4.2")),
        .package(url: "https://github.com/ReactiveX/RxSwift.git", .exact("6.1.0"))
    ],
    targets: [
        .target(
            name: "NetworkingLayerAlamofire",
            dependencies: [
                "Alamofire",
                "RxSwift",
                .product(name: "RxCocoa", package: "RxSwift")
            ],
            path: "Sources"
        ),
        .testTarget(
            name: "NetworkingLayerAlamofireTests",
            dependencies: ["NetworkingLayerAlamofire"]),
    ],
    swiftLanguageVersions: [
        .version("5")
    ]
)
