flutter/packages/flutter_tools
Jakob Andersen 421258baea Remove SHA1 check from AndroidDevice.isAppInstalled() (#8290)
* Remove SHA1 check from AndroidDevice.isAppInstalled()

The docs for isAppInstalled say 'check if a version of the given app is
already installed', however the current code returns true only if it's
the latest build that's installed.

This made sense in the past, when the use pattern was:

  if (!isAppInstalled(...)) installApp(...);

but now the usage is:

  if (isAppInstalled(...)) uninstallApp(...);
  installApp(...);

This has the probably unintended consequence that if you run `flutter
install` or `flutter run` two times in a row with no source changes, the
second invocation will uninstall the app, but the first invocation might
not.

Removing the SHA1 check makes us always uninstall the app if it's
installed.

Fixes #8172
2017-02-21 10:18:12 +01:00
..
bin prefer const constructor (#8292) 2017-02-20 14:07:16 -08:00
gradle Enable Gradle Workflow on Windows (#8201) 2017-02-16 14:17:09 -08:00
lib Remove SHA1 check from AndroidDevice.isAppInstalled() (#8290) 2017-02-21 10:18:12 +01:00
schema Merge pubspec.yaml and flutter.yaml. (#7605) 2017-01-24 11:19:31 -08:00
templates Revert back IntelliJ .iml file to project root (#8139) 2017-02-14 18:15:26 +01:00
test prefer const constructor (#8292) 2017-02-20 14:07:16 -08:00
tool Increase the strictness of our requiring explicit types (#7585) 2017-01-23 01:04:31 -08:00
BUILD.gn Added missing dependency. (#7651) 2017-01-25 20:23:19 -08:00
flutter_tools.iml Update IML files (#7835) 2017-02-02 15:54:11 -08:00
pubspec.yaml Update package:test dependencies to 0.12.18+2 (#8247) 2017-02-17 17:35:11 -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