From c808fa9ab35fde98d592acf74e74055f5f4a18c5 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Sat, 16 Dec 2023 22:00:38 -0700 Subject: Refactor --- Package.swift | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'Package.swift') diff --git a/Package.swift b/Package.swift index 0e72b20..f0cb070 100644 --- a/Package.swift +++ b/Package.swift @@ -16,10 +16,16 @@ let package = Package( .package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.2.0"), .package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"), .package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"), + .package(url: "https://github.com/apple/swift-nio-transport-services.git", from: "1.20.0") + ], targets: [ - // Targets are the basic building blocks of a package, defining a module or a test suite. - // Targets can depend on other targets in this package and products from dependencies. + .target( + name: "GopherHelpers", + dependencies: [ + .product(name: "NIOCore", package: "swift-nio") + ] + ), .executableTarget( name: "swift-gopher", dependencies: [ @@ -29,12 +35,15 @@ let package = Package( ), .product(name: "ArgumentParser", package: "swift-argument-parser"), .product(name: "Logging", package: "swift-log"), + "GopherHelpers", ] ), .target( name: "swiftGopherClient", dependencies: [ - .product(name: "NIO", package: "swift-nio") + .product(name: "NIO", package: "swift-nio"), + .product(name: "NIOTransportServices", package: "swift-nio-transport-services"), + "GopherHelpers" ] ), .testTarget( -- cgit v1.2.3