• Jakob Andersen's avatar
    Remove SHA1 check from AndroidDevice.isAppInstalled() (#8290) · 421258ba
    Jakob Andersen authored
    * 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
    421258ba
Name
Last commit
Last update
..
flutter Loading commit data...
flutter_driver Loading commit data...
flutter_markdown Loading commit data...
flutter_test Loading commit data...
flutter_tools Loading commit data...
.gitignore Loading commit data...