flutter/packages/flutter_tools
Jakob Andersen 9c6ffc8281 Use snapshot's .d file as source inputs in Gradle build. (#8756)
* Use snapshot's .d file as source inputs in Gradle build.

If we don't yet have a .d file (first build), fall back to using the
.dart files in the current directory. This enables us to detect changes
in dependent source files (Flutter framework, packages outside the
source directory, etc.), and re-generate the snapshots as needed.

Unfortunately, Gradle requires knowing the source files before executing
the task, and can't update them after building, so Gradle considers the
second build to be out-of-date (because it has more input files than the
first build). Sub-sequent builds have the correct dependency
information, and will be skipped if the source files haven't changed.

Also added a dependency on gen_snapshot. The snapshot ABI isn't stable,
so we need to re-generate the snapshots when we roll the Dart SDK
dependency.

Fixes #8315
Fixes #8687
Fixes #8607
2017-03-14 12:49:30 +01:00
..
bin Set derived dir Flutter.framework directory readonly (#8748) 2017-03-13 15:26:35 -07:00
gradle Use snapshot's .d file as source inputs in Gradle build. (#8756) 2017-03-14 12:49:30 +01:00
lib Use snapshot's .d file as source inputs in Gradle build. (#8756) 2017-03-14 12:49:30 +01:00
schema Merge pubspec.yaml and flutter.yaml. (#7605) 2017-01-24 11:19:31 -08:00
templates Declare Xcode 8.3.x compatibility in project files (#8622) 2017-03-07 13:11:41 -08:00
test Make hot mode a little less aggressive about catching errors. (#8743) 2017-03-13 14:50:30 -07:00
tool Declare locals final where not reassigned (flutter_tools) (#8570) 2017-03-03 17:50:46 -08:00
BUILD.gn remove unneded deps to pub_semver (#8688) 2017-03-09 12:57:56 -08:00
flutter_tools.iml Update IML files (#7835) 2017-02-02 15:54:11 -08:00
pubspec.yaml Bump mockito to version 2.0.2 (#8713) 2017-03-10 13:53:22 -08:00
README.md Update test instructions for flutter_tools (#8126) 2017-02-13 21:31:53 -08:00

Flutter tools

Tools for building Flutter applications.

To run the tests, ensure that no devices are connected and run:

pub get
FLUTTER_ROOT=$PWD/../.. dart --checked test/all.dart