Unverified Commit 4c3d1583 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

add desktop devices to daemon behind flag (#27665)

parent c58e31a7
...@@ -17,18 +17,22 @@ import '../base/utils.dart'; ...@@ -17,18 +17,22 @@ import '../base/utils.dart';
import '../build_info.dart'; import '../build_info.dart';
import '../cache.dart'; import '../cache.dart';
import '../convert.dart'; import '../convert.dart';
import '../desktop.dart';
import '../device.dart'; import '../device.dart';
import '../emulator.dart'; import '../emulator.dart';
import '../fuchsia/fuchsia_device.dart'; import '../fuchsia/fuchsia_device.dart';
import '../globals.dart'; import '../globals.dart';
import '../ios/devices.dart'; import '../ios/devices.dart';
import '../ios/simulators.dart'; import '../ios/simulators.dart';
import '../linux/linux_device.dart';
import '../macos/macos_device.dart';
import '../resident_runner.dart'; import '../resident_runner.dart';
import '../run_cold.dart'; import '../run_cold.dart';
import '../run_hot.dart'; import '../run_hot.dart';
import '../runner/flutter_command.dart'; import '../runner/flutter_command.dart';
import '../tester/flutter_tester.dart'; import '../tester/flutter_tester.dart';
import '../vmservice.dart'; import '../vmservice.dart';
import '../windows/windows_device.dart';
const String protocolVersion = '0.4.2'; const String protocolVersion = '0.4.2';
...@@ -582,6 +586,11 @@ class DeviceDomain extends Domain { ...@@ -582,6 +586,11 @@ class DeviceDomain extends Domain {
addDeviceDiscoverer(IOSDevices()); addDeviceDiscoverer(IOSDevices());
addDeviceDiscoverer(IOSSimulators()); addDeviceDiscoverer(IOSSimulators());
addDeviceDiscoverer(FlutterTesterDevices()); addDeviceDiscoverer(FlutterTesterDevices());
if (flutterDesktopEnabled) {
addDeviceDiscoverer(MacOSDevices());
addDeviceDiscoverer(LinuxDevices());
addDeviceDiscoverer(WindowsDevices());
}
} }
void addDeviceDiscoverer(PollingDeviceDiscovery discoverer) { void addDeviceDiscoverer(PollingDeviceDiscovery discoverer) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment