Allow filtering devices to only those supported by current project (#31446)
diff --git a/packages/flutter_tools/lib/src/device.dart b/packages/flutter_tools/lib/src/device.dart index 29bb3e7..028894e 100644 --- a/packages/flutter_tools/lib/src/device.dart +++ b/packages/flutter_tools/lib/src/device.dart
@@ -19,6 +19,7 @@ import 'ios/simulators.dart'; import 'linux/linux_device.dart'; import 'macos/macos_device.dart'; +import 'project.dart'; import 'tester/flutter_tester.dart'; import 'web/web_device.dart'; import 'windows/windows_device.dart'; @@ -235,6 +236,9 @@ } } + /// Whether the device is supported for the current project directory. + bool isSupportedForProject(FlutterProject flutterProject); + /// Check if a version of the given app is already installed Future<bool> isAppInstalled(ApplicationPackage app);