-
Notifications
You must be signed in to change notification settings - Fork 224
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
Flutter SDK constraint #1432
Comments
My original syntax for this doesn't work; it'll cause older pub versions to fail because they don't expect environment:
sdk: ">=1.19.0 <2.0.0"
flutter: "^0.1.2" This isn't super semantic, since Flutter is also an SDK and the term "environment" is pretty broad, but it's the best option I can see. We also need to add a validator to ensure that if a flutter SDK exists, the "SDK" constraint has a minimum of whatever version this support first gets released in. Otherwise past SDKs may incorrectly install packages that require Flutter. |
This brings these tests in line with others, making them integration tests that invoke a pub process rather than testing the version solver APIs directly. This will make it easier to add Flutter support in the future (see #1431 and #1432). R=rnystrom@google.com Review URL: https://codereview.chromium.org//2172523002 .
We still need to verify that a Flutter SDK constraint is only used with an appropriate Dart SDK constraint. See #1432 R=rnystrom@google.com Review URL: https://codereview.chromium.org//2165423002 .
Thanks! |
As part of #1431, we need to add support for packages declaring constraints on the Flutter SDK. See this comment for details.
The text was updated successfully, but these errors were encountered: