commit | a44fe3f778f6636cb3e0966f2d1340b2b7904b63 | [log] [tgz] |
---|---|---|
author | Paul Berry <paulberry@google.com> | Wed Nov 04 18:26:57 2020 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Wed Nov 04 18:26:57 2020 +0000 |
tree | 0d02a290b3c2d6e21344e0d0d771edaf22f890b2 | |
parent | b499c76516cf8ff4adb7c43804cf048a8beb2bf0 [diff] |
Migration: set SDK min constraint appropriately. As discussed in https://github.com/dart-lang/sdk/issues/44031#issuecomment-720967259, we want to encourage users to publish null safe packages with an SDK min constraint matching the SDK version that was used for the migration, e.g. `2.12.0-18.0.beta`. However, we also want to make sure that users doing migration via internal, dev, or bleeding edge builds publish their null safe packages don't wind up inadvertently publishing packages that are un-resolvable with the latest beta SDK, so if the user is on one of those versions, we'll set their SDK min constraint to `2.12.0-0`. And of course, once the feature ships to stable, we'll want users to publish their null safe packages with an SDK min constraint matching the version in which null safety shipped to stable. This CL implements all of that functionality, and tests it by overriding the `version` file in the analyzer's mock SDK. Change-Id: Ib9ed97e691271da0ed391a6c1a5fe209aa959dce Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/170380 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Samuel Rawlins <srawlins@google.com> Commit-Queue: Paul Berry <paulberry@google.com>
Dart is:
Optimized for UI: Develop with a programming language specialized around the needs of user interface creation
Productive: Make changes iteratively: use hot reload to see the result instantly in your running app
Fast on all platforms: Compile to ARM & x64 machine code for mobile, desktop, and backend. Or compile to JavaScript for the web
Dart's flexible compiler technology lets you run Dart code in different ways, depending on your target platform and goals:
Dart Native: For programs targeting devices (mobile, desktop, server, and more), Dart Native includes both a Dart VM with JIT (just-in-time) compilation and an AOT (ahead-of-time) compiler for producing machine code.
Dart Web: For programs targeting the web, Dart Web includes both a development time compiler (dartdevc) and a production time compiler (dart2js).
Dart is free and open source.
See LICENSE and PATENT_GRANT.
Visit dart.dev to learn more about the language, tools, getting started, and more.
Browse pub.dev for more packages and libraries contributed by the community and the Dart team.
If you want to build Dart yourself, here is a guide to getting the source, preparing your machine to build the SDK, and building.
There are more documents on our wiki.
The easiest way to contribute to Dart is to file issues.
You can also contribute patches, as described in Contributing.