Allow filtering devices to only those supported by current project (#31446)

This commit is contained in:
Jonah Williams
2019-04-25 12:25:12 -07:00
committed by GitHub
parent 5ec33654b1
commit 6b191841f3
24 changed files with 278 additions and 8 deletions

View File

@@ -108,6 +108,11 @@ class LinuxDevice extends Device {
@override
Future<bool> uninstallApp(ApplicationPackage app) async => true;
@override
bool isSupportedForProject(FlutterProject flutterProject) {
return flutterProject.linux.existsSync();
}
// Track the last built mode from startApp.
BuildMode _lastBuiltMode;
}