-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add DriverKit as a supported platform #3293
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
Conversation
@@ -31,6 +31,9 @@ public struct Platform: Encodable, Equatable { | |||
/// The watchOS platform. | |||
public static let watchOS: Platform = Platform(name: "watchos") | |||
|
|||
/// The DriverKit platform | |||
public static let driverKit: Platform = Platform(name: "driverkit") |
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.
Not sure how to deal with availability here since it seems like if #available
does not work for _PackageDescription
. That means if I add availability here, the static functions can't be compiled.
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 just recently found out that _PackageDescription
is a special thing — is it a bug that #ifavailable
doesn't work for it, do you think?
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.
Yah, that's what I was thinking. It seems we so far only added platform constants for platforms without versioning, so we may not have noticed that something is missing here.
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 think it's not too bad to leave this without availability for now, but we will have to figure something out before we ship another release in the future.
@swift-ci please smoke test |
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.
Nice. Does it make sense to also updated PackageDescription.md and ChangeLog.md at the same time?
Not sure what the process should be, but it doesn't seem right to add API scoped to 999 to the |
db4073f
to
86fdd2b
Compare
@swift-ci please smoke test |
@swift-ci please smoke test linux |
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.
Just one small nit in the version example comment, otherwise LGTM! Thanks!
This adds DriverKit as a support platform, so that a minimum deployment target can be specified and conditional build settings can be configured. rdar://66656200
86fdd2b
to
66fee51
Compare
@swift-ci please smoke test |
🕺 |
@swift-ci please smoke test |
@swift-ci please smoke test macOS |
This adds DriverKit as a support platform, so that a minimum deployment target can be specified and conditional build settings can be configured.
rdar://66656200