From 35a93f3b19148021b35ab1bcca5d4df16055187c Mon Sep 17 00:00:00 2001 From: Nikita Vasilev Date: Sat, 11 May 2024 18:33:16 +0400 Subject: [PATCH] Add `Package@swift-5.8.swift` --- .swiftlint.yml | 1 + Package@swift-5.8.swift | 50 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 Package@swift-5.8.swift diff --git a/.swiftlint.yml b/.swiftlint.yml index 297f875..2eb9605 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -2,6 +2,7 @@ excluded: - Tests - Package.swift - Package@swift-5.7.swift + - Package@swift-5.8.swift - .build # Rules diff --git a/Package@swift-5.8.swift b/Package@swift-5.8.swift new file mode 100644 index 0000000..6a8767f --- /dev/null +++ b/Package@swift-5.8.swift @@ -0,0 +1,50 @@ +// swift-tools-version: 5.8 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "NetworkLayer", + platforms: [ + .macOS(.v10_15), + .iOS(.v13), + .watchOS(.v7), + .tvOS(.v13), + ], + products: [ + .library(name: "NetworkLayer", targets: ["NetworkLayer"]), + .library(name: "NetworkLayerInterfaces", targets: ["NetworkLayerInterfaces"]), + ], + dependencies: [ + .package(url: "https://github.com/space-code/atomic", .upToNextMajor(from: "1.0.0")), + .package(url: "https://github.com/space-code/typhoon", .upToNextMajor(from: "1.0.0")), + .package(url: "https://github.com/WeTransfer/Mocker", .upToNextMajor(from: "3.0.1")), + ], + targets: [ + .target( + name: "NetworkLayer", + dependencies: [ + "NetworkLayerInterfaces", + .product(name: "Atomic", package: "atomic"), + .product(name: "Typhoon", package: "typhoon"), + ] + ), + .target( + name: "NetworkLayerInterfaces", + dependencies: [ + .product(name: "Typhoon", package: "typhoon"), + ] + ), + .testTarget( + name: "NetworkLayerTests", + dependencies: [ + "NetworkLayer", + .product(name: "Mocker", package: "Mocker"), + .product(name: "Typhoon", package: "typhoon"), + ], + resources: [ + .process("Resources"), + ] + ), + ] +)