-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Add macOS to TargetPlatform #43457
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
gspencergoog
merged 10 commits into
flutter:master
from
gspencergoog:add_macos_platform
Nov 27, 2019
Merged
Add macOS to TargetPlatform #43457
gspencergoog
merged 10 commits into
flutter:master
from
gspencergoog:add_macos_platform
Nov 27, 2019
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55c001e to
ca81173
Compare
f685d3e to
2a9d056
Compare
Contributor
Contributor
Author
|
Thanks @stuartmorgan, I'll add those changes. |
f430664 to
d929ff3
Compare
f2b92c2 to
f6a9903
Compare
8f4545f to
937fb9d
Compare
Contributor
|
Should we just go ahead and pre-emptively add |
Contributor
Author
|
@dnfield No, we're not ready to do that for those platforms yet, since they're not at alpha quality yet. Once they get there, we'll add them. |
HansMuller
approved these changes
Nov 26, 2019
Contributor
HansMuller
left a comment
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.
LGTM
d9c6d06 to
965ad41
Compare
This was referenced Jan 16, 2020
gspencergoog
added a commit
that referenced
this pull request
Jan 17, 2020
This contains the test changes for adding TargetPlatform.macOS, which was done in #43457. The main goal of this PR is to enable tests in the material library that are currently running only on iOS to also run on macOS, but only for the tests where that makes sense. For instance, we don't run any of the haptic feedback tests on macOS.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
a: desktop
Running on desktop
framework
flutter/packages/flutter repository. See also f: labels.
platform-mac
Building on or for macOS specifically
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds
TargetPlatform.macOSto theTargetPlatformenum. This allows us to begin implementation of some adaptive UI based on which target platform is desired.I haven't updated the tests here, that will come in a follow-up PR.
Related Issues
Addresses part of #31366 (the
macOSpart).Tests
Breaking Change
switchstatement onTargetPlatformwill have to addTargetPlatform.macOSto avoid getting a lint warning and possible runtime problems.