Skip to content

Commit

Permalink
Remove #if compiler(>=5.5)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnadoba committed Oct 13, 2022
1 parent 8fda939 commit 4c7c6d8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,20 @@ declaring [SwiftNIO's Public API](https://github.com/apple/swift-nio/blob/main/d

### `swift-nio-transport-services ` 1.x

`swift-nio-transport-services` versions 1.x is part of the SwiftNIO 2 family of repositories and does not have any dependencies besides [`swift-nio`](https://github.com/apple/swift-nio), Swift 5.5, and an Apple OS supporting `Network.framework`. As the latest version, it lives on the [`main`](https://github.com/apple/swift-nio-transport-services) branch.
`swift-nio-transport-services` versions 1.x is part of the SwiftNIO 2 family of repositories and does not have any dependencies besides [`swift-nio`](https://github.com/apple/swift-nio), Swift 5.5.2, and an Apple OS supporting `Network.framework`. As the latest version, it lives on the [`main`](https://github.com/apple/swift-nio-transport-services) branch.

To depend on `swift-nio-transport-services `, put the following in the `dependencies` of your `Package.swift`:

.package(url: "https://github.com/apple/swift-nio-transport-services.git", from: "1.0.0"),

The most recent versions of SwiftNIO Transport Services support Swift 5.5 and newer. The minimum Swift version supported by SwiftNIO Transport Services releases are detailed below:
The most recent versions of SwiftNIO Transport Services support Swift 5.5.2 and newer. The minimum Swift version supported by SwiftNIO Transport Services releases are detailed below:

SwiftNIO Extras | Minimum Swift Version
--------------------|----------------------
`1.0.0 ..< 1.11.0` | 5.0
`1.11.0 ..< 1.12.0` | 5.2
`1.12.0 ..< 1.15.0` | 5.4
`1.15.0 ...` | 5.5
`1.15.0 ...` | 5.5.2

### `swift-nio-transport-services ` 0.x

Expand Down
6 changes: 3 additions & 3 deletions Sources/NIOTransportServices/Docs.docc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,20 @@ declaring [SwiftNIO's Public API](https://github.com/apple/swift-nio/blob/main/d

### NIO Transport Services 1.x

`swift-nio-transport-services` versions 1.x is part of the SwiftNIO 2 family of repositories and does not have any dependencies besides [`swift-nio`](https://github.com/apple/swift-nio), Swift 5.5, and an Apple OS supporting `Network.framework`. As the latest version, it lives on the [`main`](https://github.com/apple/swift-nio-transport-services) branch.
`swift-nio-transport-services` versions 1.x is part of the SwiftNIO 2 family of repositories and does not have any dependencies besides [`swift-nio`](https://github.com/apple/swift-nio), Swift 5.5.2, and an Apple OS supporting `Network.framework`. As the latest version, it lives on the [`main`](https://github.com/apple/swift-nio-transport-services) branch.

To depend on `swift-nio-transport-services `, put the following in the `dependencies` of your `Package.swift`:

.package(url: "https://github.com/apple/swift-nio-transport-services.git", from: "1.0.0"),

The most recent versions of SwiftNIO Transport Services support Swift 5.5 and newer. The minimum Swift version supported by SwiftNIO Transport Services releases are detailed below:
The most recent versions of SwiftNIO Transport Services support Swift 5.5.2 and newer. The minimum Swift version supported by SwiftNIO Transport Services releases are detailed below:

SwiftNIO Extras | Minimum Swift Version
--------------------|----------------------
`1.0.0 ..< 1.11.0` | 5.0
`1.11.0 ..< 1.12.0` | 5.2
`1.12.0 ..< 1.14.0` | 5.4
`1.14.0 ...` | 5.5
`1.14.0 ...` | 5.5.2

### NIO Transport Services 0.x

Expand Down
2 changes: 0 additions & 2 deletions Sources/NIOTransportServices/NIOTSEventLoopGroup.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,5 @@ public struct NIOTSClientTLSProvider: NIOClientTLSProvider {
}
#endif

#if swift(>=5.5) && canImport(_Concurrency) && canImport(Network)
@available(OSX 10.14, iOS 12.0, tvOS 12.0, watchOS 6.0, *)
extension NIOTSEventLoopGroup: @unchecked Sendable {}
#endif
2 changes: 0 additions & 2 deletions Sources/NIOTransportServices/NIOTSListenerChannel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,5 @@ extension NIOTSListenerChannel {
}
#endif

#if swift(>=5.5) && canImport(_Concurrency) && canImport(Network)
@available(OSX 10.14, iOS 12.0, tvOS 12.0, watchOS 6.0, *)
extension NIOTSListenerChannel: @unchecked Sendable {}
#endif
2 changes: 0 additions & 2 deletions Sources/NIOTransportServices/NIOTSNetworkEvents.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ public enum NIOTSNetworkEvents {
}
}

#if swift(>=5.6)
@available(OSX 10.14, iOS 12.0, tvOS 12.0, watchOS 6.0, *)
extension NIOTSNetworkEvents.BetterPathAvailable: Sendable {}
@available(OSX 10.14, iOS 12.0, tvOS 12.0, watchOS 6.0, *)
Expand All @@ -116,6 +115,5 @@ extension NIOTSNetworkEvents.ConnectToNWEndpoint: Sendable {}
extension NIOTSNetworkEvents.BindToNWEndpoint: Sendable {}
@available(OSX 10.14, iOS 12.0, tvOS 12.0, watchOS 6.0, *)
extension NIOTSNetworkEvents.WaitingForConnectivity: Sendable {}
#endif

#endif

0 comments on commit 4c7c6d8

Please sign in to comment.