diff --git a/Package.swift b/Package.swift index 5a8c7c1e..402f301a 100644 --- a/Package.swift +++ b/Package.swift @@ -8,10 +8,10 @@ let package = Package( ], dependencies: [ .package(url: "https://github.com/apple/swift-nio.git", from: "2.0.0"), - .package(url: "https://github.com/vapor/swift-nio-http-client.git", from: "0.0.0") + .package(url: "https://github.com/swift-server/async-http-client.git", from: "1.0.0-alpha.1"), ], targets: [ - .target(name: "StripeKit", dependencies: ["NIOHTTPClient", "NIOFoundationCompat"]), - .testTarget(name: "StripeKitTests", dependencies: ["NIOHTTPClient", "StripeKit"]) + .target(name: "StripeKit", dependencies: ["AsyncHTTPClient", "NIOFoundationCompat"]), + .testTarget(name: "StripeKitTests", dependencies: ["AsyncHTTPClient", "StripeKit"]) ] ) diff --git a/Sources/StripeKit/API/StripeClient.swift b/Sources/StripeKit/API/StripeClient.swift index b4db6ebf..63fb7895 100644 --- a/Sources/StripeKit/API/StripeClient.swift +++ b/Sources/StripeKit/API/StripeClient.swift @@ -6,7 +6,7 @@ // import NIO -import NIOHTTPClient +import AsyncHTTPClient public final class StripeClient { public var balances: BalanceRoutes diff --git a/Sources/StripeKit/API/StripeRequest.swift b/Sources/StripeKit/API/StripeRequest.swift index f53baaaf..5fc59ace 100644 --- a/Sources/StripeKit/API/StripeRequest.swift +++ b/Sources/StripeKit/API/StripeRequest.swift @@ -10,7 +10,7 @@ import Foundation import NIO import NIOFoundationCompat import NIOHTTP1 -import NIOHTTPClient +import AsyncHTTPClient public protocol StripeAPIHandler { func send(method: HTTPMethod,