mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Add desktop workflows to doctor (#31283)
The 'doctor' check to determine if any devices can be listed for the device should consider desktop workflows as well. This has no effect unless the environment variable to enable desktop device listing is set.
This commit is contained in:
parent
ac36e4423e
commit
d9718aa4b9
@ -25,10 +25,13 @@ import 'globals.dart';
|
|||||||
import 'intellij/intellij.dart';
|
import 'intellij/intellij.dart';
|
||||||
import 'ios/ios_workflow.dart';
|
import 'ios/ios_workflow.dart';
|
||||||
import 'ios/plist_utils.dart';
|
import 'ios/plist_utils.dart';
|
||||||
|
import 'linux/linux_workflow.dart';
|
||||||
|
import 'macos/macos_workflow.dart';
|
||||||
import 'proxy_validator.dart';
|
import 'proxy_validator.dart';
|
||||||
import 'tester/flutter_tester.dart';
|
import 'tester/flutter_tester.dart';
|
||||||
import 'version.dart';
|
import 'version.dart';
|
||||||
import 'vscode/vscode_validator.dart';
|
import 'vscode/vscode_validator.dart';
|
||||||
|
import 'windows/windows_workflow.dart';
|
||||||
|
|
||||||
Doctor get doctor => context[Doctor];
|
Doctor get doctor => context[Doctor];
|
||||||
|
|
||||||
@ -89,6 +92,16 @@ class _DefaultDoctorValidatorsProvider implements DoctorValidatorsProvider {
|
|||||||
|
|
||||||
if (fuchsiaWorkflow.appliesToHostPlatform)
|
if (fuchsiaWorkflow.appliesToHostPlatform)
|
||||||
_workflows.add(fuchsiaWorkflow);
|
_workflows.add(fuchsiaWorkflow);
|
||||||
|
|
||||||
|
if (linuxWorkflow.appliesToHostPlatform)
|
||||||
|
_workflows.add(linuxWorkflow);
|
||||||
|
|
||||||
|
if (macOSWorkflow.appliesToHostPlatform)
|
||||||
|
_workflows.add(macOSWorkflow);
|
||||||
|
|
||||||
|
if (windowsWorkflow.appliesToHostPlatform)
|
||||||
|
_workflows.add(windowsWorkflow);
|
||||||
|
|
||||||
}
|
}
|
||||||
return _workflows;
|
return _workflows;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user