We can launch if the flutter-tester device is enabled. (#17019)

This commit is contained in:
Konstantin Scheglov
2018-04-27 09:33:42 -07:00
committed by GitHub
parent bf3bd7667f
commit 31156aed43

View File

@@ -21,6 +21,7 @@ import 'globals.dart';
import 'intellij/intellij.dart';
import 'ios/ios_workflow.dart';
import 'ios/plist_utils.dart';
import 'tester/flutter_tester.dart';
import 'version.dart';
import 'vscode/vscode_validator.dart';
@@ -191,7 +192,11 @@ class Doctor {
bool get canListAnything => workflows.any((Workflow workflow) => workflow.canListDevices);
bool get canLaunchAnything => workflows.any((Workflow workflow) => workflow.canLaunchDevices);
bool get canLaunchAnything {
if (FlutterTesterDevices.showFlutterTesterDevice)
return true;
return workflows.any((Workflow workflow) => workflow.canLaunchDevices);
}
}
/// A series of tools and required install steps for a target platform (iOS or Android).