Skip to content

[5.9] Add visionOS as a platform alongside iOS, tvOS, watchOS, and the others#6663

Merged
abertelrud merged 1 commit into
swiftlang:release/5.9from
abertelrud:eng/anders/5.9-add-visionos-platform
Jun 22, 2023
Merged

[5.9] Add visionOS as a platform alongside iOS, tvOS, watchOS, and the others#6663
abertelrud merged 1 commit into
swiftlang:release/5.9from
abertelrud:eng/anders/5.9-add-visionos-platform

Conversation

@abertelrud

Copy link
Copy Markdown
Contributor

This is a 5.9 nomination of a cherry-pick of #6662.

…the others (swiftlang#6662)

Add new enum constants for visionOS in all the places where it is appropriate.

This includes the `platforms` parameter in the manifest, whose purpose is to list the minimum deployment targets that a package requires. Since there is initially only visionOS 1.0, and because absence of a platform in the `platforms` parameter means that the default version is supported (not that the platform is unsupported), all packages implicitly support visionOS 1.0 whether or not they list it in the `platforms` parameter. But having the enum constant alongside those for the other Apple platforms makes everything consistent, and will become important for any future versions.

This change also makes the `visionOS` platform available for use in conditional target dependencies.

rdar://107064954
(cherry picked from commit 809cb15)
@abertelrud abertelrud self-assigned this Jun 21, 2023
@abertelrud abertelrud added the swift 5.9 This PR targets the 5.9 branch label Jun 21, 2023
@abertelrud

Copy link
Copy Markdown
Contributor Author

@swift-ci please smoke test

@abertelrud abertelrud requested a review from zkiraly June 21, 2023 23:46
@neonichu

Copy link
Copy Markdown
Contributor

@swift-ci please smoke test windows

@abertelrud abertelrud merged commit 6db9761 into swiftlang:release/5.9 Jun 22, 2023
@abertelrud abertelrud deleted the eng/anders/5.9-add-visionos-platform branch June 22, 2023 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

swift 5.9 This PR targets the 5.9 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants