flutter/packages/flutter_tools/lib/src
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
..
android Remove SHA1 check from AndroidDevice.isAppInstalled() (#8290) 2017-02-21 10:18:12 +01:00
base prefer const constructor (#8292) 2017-02-20 14:07:16 -08:00
commands prefer const constructor (#8292) 2017-02-20 14:07:16 -08:00
dart Refactor how Artifacts are located (#8234) 2017-02-16 23:10:11 -08:00
ios prefer const constructor (#8292) 2017-02-20 14:07:16 -08:00
runner Refactor how Artifacts are located (#8234) 2017-02-16 23:10:11 -08:00
test Catch crashes during or before coverage collection. (#8207) 2017-02-15 18:50:19 -08:00
application_package.dart Ban package:path from Flutter Tools (#8119) 2017-02-13 17:45:50 -08:00
artifacts.dart Refactor how Artifacts are located (#8234) 2017-02-16 23:10:11 -08:00
asset.dart Fail tests with an actionable message when FLUTTER_ROOT is not set (#8236) 2017-02-16 18:50:28 -08:00
build_info.dart Ban package:path from Flutter Tools (#8119) 2017-02-13 17:45:50 -08:00
cache.dart add windows binaries to allPlatforms (#8250) 2017-02-17 13:40:56 -08:00
dependency_checker.dart Ban package:path from Flutter Tools (#8119) 2017-02-13 17:45:50 -08:00
devfs.dart Add retry writing to DevFS. (#8142) 2017-02-14 09:59:43 -08:00
device.dart new --kernel option for flutter run to use precompiled kernel code (#8191) 2017-02-15 17:37:00 -05:00
doctor.dart Teach flutter tools to find gradle (#8241) 2017-02-20 11:02:50 +01:00
flx.dart Refactor how Artifacts are located (#8234) 2017-02-16 23:10:11 -08:00
globals.dart Refactor how Artifacts are located (#8234) 2017-02-16 23:10:11 -08:00
protocol_discovery.dart Change --debug-port to --observatory-port (#7675) 2017-01-26 16:42:48 -08:00
resident_runner.dart prefer const constructor (#8292) 2017-02-20 14:07:16 -08:00
run_cold.dart fix app launch in intellij (#7737) 2017-01-30 13:01:41 -08:00
run_hot.dart prefer const constructor (#8292) 2017-02-20 14:07:16 -08:00
services.dart Ban package:path from Flutter Tools (#8119) 2017-02-13 17:45:50 -08:00
template.dart Ban package:path from Flutter Tools (#8119) 2017-02-13 17:45:50 -08:00
usage.dart prefer const constructor (#8292) 2017-02-20 14:07:16 -08:00
version.dart Update to package:process v1.0.1 (#7607) 2017-01-24 10:09:29 -08:00
vmservice.dart Introduce a quick way to test across platforms (#8262) 2017-02-17 17:47:49 -08:00
zip.dart Ban package:path from Flutter Tools (#8119) 2017-02-13 17:45:50 -08:00