forked from firka/flutter
fix flutter not finding custom device (#108884)
This commit is contained in:
@@ -21,6 +21,7 @@ import 'base/terminal.dart';
|
||||
import 'base/user_messages.dart';
|
||||
import 'base/utils.dart';
|
||||
import 'cache.dart';
|
||||
import 'custom_devices/custom_device_workflow.dart';
|
||||
import 'device.dart';
|
||||
import 'doctor_validator.dart';
|
||||
import 'features.dart';
|
||||
@@ -93,6 +94,10 @@ class _DefaultDoctorValidatorsProvider implements DoctorValidatorsProvider {
|
||||
featureFlags: featureFlags,
|
||||
);
|
||||
|
||||
late final CustomDeviceWorkflow customDeviceWorkflow = CustomDeviceWorkflow(
|
||||
featureFlags: featureFlags,
|
||||
);
|
||||
|
||||
@override
|
||||
List<DoctorValidator> get validators {
|
||||
if (_validators != null) {
|
||||
@@ -200,6 +205,9 @@ class _DefaultDoctorValidatorsProvider implements DoctorValidatorsProvider {
|
||||
_workflows!.add(webWorkflow);
|
||||
}
|
||||
|
||||
if (customDeviceWorkflow.appliesToHostPlatform) {
|
||||
_workflows!.add(customDeviceWorkflow);
|
||||
}
|
||||
}
|
||||
return _workflows!;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user