Skip to content

Commit

Permalink
Add visionOS platform support (#38)
Browse files Browse the repository at this point in the history
### 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.
  • Loading branch information
czechboy0 authored Nov 30, 2023
1 parent d038c89 commit d16dc2f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if ProcessInfo.processInfo.environment["SWIFT_OPENAPI_STRICT_CONCURRENCY"].flatM
let package = Package(
name: "swift-openapi-urlsession",
platforms: [
.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6),
.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6), .visionOS(.v1)
],
products: [
.library(
Expand Down
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ Use the transport with client code generated by [Swift OpenAPI Generator](https:

## Supported platforms and minimum versions

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

Note: Streaming support only available on macOS 12+, iOS 15+, tvOS 15+, and
watchOS 8+.For streaming support on Linux, please use the [AsyncHTTPClient
Transport](https://github.com/swift-server/swift-openapi-async-http-client)
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)

## Usage

Expand Down
10 changes: 4 additions & 6 deletions Sources/OpenAPIURLSession/Documentation.docc/Documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ Use the transport with client code generated by [Swift OpenAPI Generator](https:

### Supported platforms and minimum versions

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

Note: Streaming support only available on macOS 12+, iOS 15+, tvOS 15+, and
watchOS 8+.For streaming support on Linux, please use the [AsyncHTTPClient
Transport](https://github.com/swift-server/swift-openapi-async-http-client)
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)

### Usage

Expand Down

0 comments on commit d16dc2f

Please sign in to comment.