fix for sometimes packages file is an APK (#29456)

This commit is contained in:
Jonah Williams 2019-03-15 15:52:40 -07:00 committed by GitHub
parent cd803ac7f2
commit fa52f345d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -946,6 +946,10 @@ abstract class ResidentRunner {
if (device.package.packagesFile == null || !device.package.packagesFile.existsSync()) {
return true;
}
// why is this sometimes an APK.
if (!device.package.packagesFile.path.contains('.packages')) {
return true;
}
// Leave pubspec null to check all dependencies.
final ProjectFileInvalidator projectFileInvalidator = ProjectFileInvalidator(device.package.packagesFile.path, null);
projectFileInvalidator.findInvalidated();