Skip to content

Use deployment target instead of 9999 for min OS version #384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

parkera
Copy link
Contributor

@parkera parkera commented Jan 17, 2024

Instead of using the placeholder 9999 availability, use the min deployment target. This simplifies implementation inside the package -- we no longer need to check for availability of something which is entirely contained within the package itself due to an availability marker on public API.

@parkera
Copy link
Contributor Author

parkera commented Jan 17, 2024

@swift-ci test

"FoundationPreview 0.3:macOS 9999, iOS 9999, tvOS 9999, watchOS 9999",
"FoundationPreview 0.4:macOS 9999, iOS 9999, tvOS 9999, watchOS 9999",
"FoundationPreview 0.1:macOS 13.3, iOS 16.4, tvOS 16.4, watchOS 9.4",
"FoundationPredicate 0.1:macOS 14, iOS 17, tvOS 17, watchOS 10",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Predicate has an actual OS dependency of macOS 14 (et. al.) and higher. We use a different macro for it.

@parkera parkera merged commit d090eef into swiftlang:main Jan 18, 2024
@parkera parkera deleted the parkera/change_availability_mins branch January 18, 2024 00:14
parkera added a commit to parkera/swift-foundation that referenced this pull request Jan 18, 2024
parkera added a commit that referenced this pull request Jan 18, 2024
* Calendar Sequence API

* Add Calendar_Gregorian support and placeholders for dayOfYear

* Address review feedback and fix test failure

* Disable day of year for in-progress Gregorian calendar implementation

* Adjust the Calendar_Gregorian use of dayOfYear pending some more work there

* Remove if available FoundationPreview 0.4 checks (see #384)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants