[flutter tools] Change the desktop device names and IDs (#58812)

In google3, the Linux device is always available, and it has confused
people who run the Flutter doctor and see
"• Linux • Linux • linux-x64 • Linux" listed.

Rename the Linux device name to "Linux desktop" and the device ID to
be "linux". Make similar changes to the Windows and macOS
devices for consistency.  This is also  consistent with the web
devices.

The device ID change shouldn't be break -d usage since that does a
case-insensitive prefix match.
This commit is contained in:
James D. Lin
2020-06-18 15:30:00 -07:00
committed by GitHub
parent e72d26a720
commit bdbe6774a3
6 changed files with 9 additions and 9 deletions

View File

@@ -17,7 +17,7 @@ import 'linux_workflow.dart';
/// A device that represents a desktop Linux target.
class LinuxDevice extends DesktopDevice {
LinuxDevice() : super(
'Linux',
'linux',
platformType: PlatformType.linux,
ephemeral: false,
);
@@ -26,7 +26,7 @@ class LinuxDevice extends DesktopDevice {
bool isSupported() => true;
@override
String get name => 'Linux';
String get name => 'Linux desktop';
@override
Future<TargetPlatform> get targetPlatform async => TargetPlatform.linux_x64;