Skip to content

Commit d16dc2f

Browse files
authored
Add visionOS platform support (#38)
### Motivation While this isn't technically necessary, as all versions of a platform not explicitly mentioned are assumed to be supported, it's better to be explicit here. ### Modifications Add `visionOS(.v1)` to the list of supported platforms. ### Result Clearer support matrix. ### Test Plan N/A, this is basically just a documentation change.
1 parent d038c89 commit d16dc2f

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if ProcessInfo.processInfo.environment["SWIFT_OPENAPI_STRICT_CONCURRENCY"].flatM
3232
let package = Package(
3333
name: "swift-openapi-urlsession",
3434
platforms: [
35-
.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6),
35+
.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6), .visionOS(.v1)
3636
],
3737
products: [
3838
.library(

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@ Use the transport with client code generated by [Swift OpenAPI Generator](https:
1010

1111
## Supported platforms and minimum versions
1212

13-
| macOS | Linux | iOS | tvOS | watchOS |
14-
| :-: | :-: | :-: | :-: | :-: |
15-
| ✅ 10.15+ || ✅ 13+ | ✅ 13+ | ✅ 6+ |
13+
| macOS | Linux | iOS | tvOS | watchOS | visionOS |
14+
| :-: | :-: | :-: | :-: | :-: | :-: |
15+
| ✅ 10.15+ || ✅ 13+ | ✅ 13+ | ✅ 6+ | ✅ 1+ |
1616

17-
Note: Streaming support only available on macOS 12+, iOS 15+, tvOS 15+, and
18-
watchOS 8+.For streaming support on Linux, please use the [AsyncHTTPClient
19-
Transport](https://github.com/swift-server/swift-openapi-async-http-client)
17+
Note: Streaming support only available on macOS 12+, iOS 15+, tvOS 15+, watchOS 8+, and visionOS 1+. For streaming support on Linux, please use the [AsyncHTTPClient Transport](https://github.com/swift-server/swift-openapi-async-http-client)
2018

2119
## Usage
2220

Sources/OpenAPIURLSession/Documentation.docc/Documentation.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@ Use the transport with client code generated by [Swift OpenAPI Generator](https:
1010

1111
### Supported platforms and minimum versions
1212

13-
| macOS | Linux | iOS | tvOS | watchOS |
14-
| :-: | :-: | :-: | :-: | :-: |
15-
| ✅ 10.15+ || ✅ 13+ | ✅ 13+ | ✅ 6+ |
13+
| macOS | Linux | iOS | tvOS | watchOS | visionOS |
14+
| :-: | :-: | :-: | :-: | :-: | :-: |
15+
| ✅ 10.15+ || ✅ 13+ | ✅ 13+ | ✅ 6+ | ✅ 1+ |
1616

17-
Note: Streaming support only available on macOS 12+, iOS 15+, tvOS 15+, and
18-
watchOS 8+.For streaming support on Linux, please use the [AsyncHTTPClient
19-
Transport](https://github.com/swift-server/swift-openapi-async-http-client)
17+
Note: Streaming support only available on macOS 12+, iOS 15+, tvOS 15+, watchOS 8+, and visionOS 1+. For streaming support on Linux, please use the [AsyncHTTPClient Transport](https://github.com/swift-server/swift-openapi-async-http-client)
2018

2119
### Usage
2220

0 commit comments

Comments
 (0)