@@ -34,7 +34,7 @@ let package = Package(
3434 platforms: [ . macOS( . v10_15) , . macCatalyst( . v13) , . iOS( . v13) , . tvOS( . v13) , . watchOS( . v6) , . visionOS( . v1) ] ,
3535 products: [ . library( name: " OpenAPIURLSession " , targets: [ " OpenAPIURLSession " ] ) ] ,
3636 dependencies: [
37- . package ( url: " https://github.com/apple/swift-openapi-runtime " , from: " 1.0.0 " ) ,
37+ . package ( url: " https://github.com/apple/swift-openapi-runtime " , from: " 1.8.2 " ) ,
3838 . package ( url: " https://github.com/apple/swift-http-types " , from: " 1.0.0 " ) ,
3939 . package ( url: " https://github.com/apple/swift-collections " , from: " 1.0.0 " ) ,
4040 ] ,
@@ -50,14 +50,21 @@ let package = Package(
5050 ) ,
5151 . testTarget(
5252 name: " OpenAPIURLSessionTests " ,
53- dependencies: [ " OpenAPIURLSession " , . product ( name : " NIOTestUtils " , package : " swift-nio " ) ] ,
53+ dependencies: [ " OpenAPIURLSession " ] ,
5454 swiftSettings: swiftSettings
5555 ) ,
5656 ]
5757)
5858
59+ #if !os(Windows) // NIO not yet supported on Windows
5960// Test-only dependencies.
6061package . dependencies += [ . package ( url: " https://github.com/apple/swift-nio " , from: " 2.62.0 " ) ]
62+ package . targets. forEach { target in
63+ if target. name == " OpenAPIURLSessionTests " {
64+ target. dependencies += [ . product( name: " NIOTestUtils " , package : " swift-nio " ) ]
65+ }
66+ }
67+ #endif
6168
6269// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
6370for target in package . targets {
0 commit comments