@@ -34,7 +34,7 @@ let package = Package(
34
34
platforms: [ . macOS( . v10_15) , . macCatalyst( . v13) , . iOS( . v13) , . tvOS( . v13) , . watchOS( . v6) , . visionOS( . v1) ] ,
35
35
products: [ . library( name: " OpenAPIURLSession " , targets: [ " OpenAPIURLSession " ] ) ] ,
36
36
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 " ) ,
38
38
. package ( url: " https://github.com/apple/swift-http-types " , from: " 1.0.0 " ) ,
39
39
. package ( url: " https://github.com/apple/swift-collections " , from: " 1.0.0 " ) ,
40
40
] ,
@@ -50,14 +50,21 @@ let package = Package(
50
50
) ,
51
51
. testTarget(
52
52
name: " OpenAPIURLSessionTests " ,
53
- dependencies: [ " OpenAPIURLSession " , . product ( name : " NIOTestUtils " , package : " swift-nio " ) ] ,
53
+ dependencies: [ " OpenAPIURLSession " ] ,
54
54
swiftSettings: swiftSettings
55
55
) ,
56
56
]
57
57
)
58
58
59
+ #if !os(Windows) // NIO not yet supported on Windows
59
60
// Test-only dependencies.
60
61
package . 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
61
68
62
69
// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
63
70
for target in package . targets {
0 commit comments