flutter/packages/flutter_tools
John McCutchan acd75c0a3b Improve flutter_tools handling of the device being unplugged while syncing DevFS (#9431)
- [x] Catch SocketErrors and handle them gracefully.
- [x] Print 'Lost connection to device' when the service protocol connection is severed unexpectedly.
- [x] Print 'Application finished' when the application exits otherwise.

After this PR:

```
Launching lib/main.dart on Nexus 7 in debug mode...
Running 'gradle assembleDebug'...                     1.2s
Built build/app/outputs/apk/app-debug.apk (21.7MB).
Syncing files to device...
Application finished.
DevFS sync failed. Lost connection to device: SocketException: OS Error: Connection refused, errno = 111, address = 127.0.0.1, port = 53062
Could not perform initial file synchronization.
```

Fixes #6705
2017-04-17 15:35:01 -07:00
..
bin Support for placing an AOT dylib in the flx. Part of Fuchsia AOT sup… (#9240) 2017-04-06 11:12:12 -07:00
gradle Remove Android support library in Flutter builds. Fixes #9120, #9102, #9121. (#9123) 2017-03-31 09:35:25 -07:00
lib Improve flutter_tools handling of the device being unplugged while syncing DevFS (#9431) 2017-04-17 15:35:01 -07:00
schema Merge pubspec.yaml and flutter.yaml. (#7605) 2017-01-24 11:19:31 -08:00
templates Update project creation IDEA metadata (flutter-intellij#914) (#9422) 2017-04-17 11:42:44 -07:00
test Do less file system crawling when we have the Dart dependency set (#9424) 2017-04-17 11:20:04 -07:00
tool Declare locals final where not reassigned (flutter_tools) (#8570) 2017-03-03 17:50:46 -08:00
BUILD.gn Fix flutter_tools BUILD.gn dependencies (#9187) 2017-04-04 12:56:06 -07:00
flutter_tools.iml IntelliJ metadata cleanup (flutter-intellij#914). (#9427) 2017-04-17 13:42:31 -07:00
pubspec.yaml Start using @immutable annotations (#9152) 2017-04-14 10:38:58 -07: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