-
Notifications
You must be signed in to change notification settings - Fork 402
Fix 2026 availability checks #463
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -128,7 +128,9 @@ extension iOSVersion { | |
| if #available(iOS 27, *) { | ||
| return .past | ||
| } | ||
| if #available(iOS 26, *) { | ||
| // Apps built before the iOS 26 SDK get "19.0" as the system version from ProcessInfo. | ||
| // Once built with the iOS 26 SDK, the version then becomes "26.0". | ||
| if #available(iOS 19, *) { | ||
| return .current | ||
| } | ||
| return .future | ||
|
|
@@ -238,7 +240,9 @@ extension tvOSVersion { | |
| if #available(tvOS 27, *) { | ||
| return .past | ||
| } | ||
| if #available(tvOS 26, *) { | ||
| // Apps built before the tvOS 26 SDK get "19.0" as the system version from ProcessInfo. | ||
| // Once built with the tvOS 26 SDK, the version then becomes "26.0". | ||
| if #available(tvOS 19, *) { | ||
| return .current | ||
| } | ||
| return .future | ||
|
|
@@ -362,7 +366,9 @@ extension macOSVersion { | |
| if #available(macOS 27, *) { | ||
| return .past | ||
| } | ||
| if #available(macOS 26, *) { | ||
| // Apps built before the macOS 26 SDK get "16.0" as the system version from ProcessInfo. | ||
| // Once built with the macOS 26 SDK, the version then becomes "26.0". | ||
| if #available(macOS 16, *) { | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't know this for sure, I'm just assuming based on what the iOS SDK does. In any case it's safe to do as macOS 16 will never actually exist. |
||
| return .current | ||
| } | ||
| return .future | ||
|
|
@@ -416,7 +422,9 @@ extension visionOSVersion { | |
| if #available(visionOS 27, *) { | ||
| return .past | ||
| } | ||
| if #available(visionOS 26, *) { | ||
| // Apps built before the visionOS 26 SDK get "3.0" as the system version from ProcessInfo. | ||
| // Once built with the visionOS 26 SDK, the version then becomes "26.0". | ||
| if #available(visionOS 3, *) { | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't know this for sure, I'm just assuming based on what the iOS SDK does. In any case it's safe to do as visionOS 3 will never actually exist. |
||
| return .current | ||
| } | ||
| return .future | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know this for sure, I'm just assuming based on what the iOS SDK does. In any case it's safe to do as tvOS 19 will never actually exist.