mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
fix for sometimes packages file is an APK (#29456)
This commit is contained in:
parent
cd803ac7f2
commit
fa52f345d6
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user