Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
cf8fbc36
Unverified
Commit
cf8fbc36
authored
Jun 30, 2020
by
James D. Lin
Committed by
GitHub
Jun 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter tools] Revert desktop device name changes and print the category instead (#60395)
parent
ca713557
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
9 additions
and
9 deletions
+9
-9
device.dart
packages/flutter_tools/lib/src/device.dart
+1
-1
linux_device.dart
packages/flutter_tools/lib/src/linux/linux_device.dart
+1
-1
macos_device.dart
packages/flutter_tools/lib/src/macos/macos_device.dart
+1
-1
windows_device.dart
packages/flutter_tools/lib/src/windows/windows_device.dart
+1
-1
devices_test.dart
...tter_tools/test/commands.shard/hermetic/devices_test.dart
+2
-2
linux_device_test.dart
...ter_tools/test/general.shard/linux/linux_device_test.dart
+1
-1
macos_device_test.dart
...ter_tools/test/general.shard/macos/macos_device_test.dart
+1
-1
windows_device_test.dart
...tools/test/general.shard/windows/windows_device_test.dart
+1
-1
No files found.
packages/flutter_tools/lib/src/device.dart
View file @
cf8fbc36
...
...
@@ -559,7 +559,7 @@ abstract class Device {
supportIndicator
+=
' (
$type
)'
;
}
table
.
add
(<
String
>[
device
.
name
,
'
${device.name}
(
${device.category}
)'
,
device
.
id
,
getNameForTargetPlatform
(
targetPlatform
),
'
${await device.sdkNameAndVersion}$supportIndicator
'
,
...
...
packages/flutter_tools/lib/src/linux/linux_device.dart
View file @
cf8fbc36
...
...
@@ -26,7 +26,7 @@ class LinuxDevice extends DesktopDevice {
bool
isSupported
()
=>
true
;
@override
String
get
name
=>
'Linux
desktop
'
;
String
get
name
=>
'Linux'
;
@override
Future
<
TargetPlatform
>
get
targetPlatform
async
=>
TargetPlatform
.
linux_x64
;
...
...
packages/flutter_tools/lib/src/macos/macos_device.dart
View file @
cf8fbc36
...
...
@@ -24,7 +24,7 @@ class MacOSDevice extends DesktopDevice {
bool
isSupported
()
=>
true
;
@override
String
get
name
=>
'macOS
desktop
'
;
String
get
name
=>
'macOS'
;
@override
Future
<
TargetPlatform
>
get
targetPlatform
async
=>
TargetPlatform
.
darwin_x64
;
...
...
packages/flutter_tools/lib/src/windows/windows_device.dart
View file @
cf8fbc36
...
...
@@ -27,7 +27,7 @@ class WindowsDevice extends DesktopDevice {
bool
isSupported
()
=>
true
;
@override
String
get
name
=>
'Windows
desktop
'
;
String
get
name
=>
'Windows'
;
@override
Future
<
TargetPlatform
>
get
targetPlatform
async
=>
TargetPlatform
.
windows_x64
;
...
...
packages/flutter_tools/test/commands.shard/hermetic/devices_test.dart
View file @
cf8fbc36
...
...
@@ -120,8 +120,8 @@ void main() {
'''
2 connected devices:
ephemeral • ephemeral • android-arm • Test SDK (1.2.3) (emulator)
webby • webby • web-javascript • Web SDK (1.2.4) (emulator)
ephemeral
(mobile)
• ephemeral • android-arm • Test SDK (1.2.3) (emulator)
webby
(mobile)
• webby • web-javascript • Web SDK (1.2.4) (emulator)
• Cannot connect to device ABC
'''
...
...
packages/flutter_tools/test/general.shard/linux/linux_device_test.dart
View file @
cf8fbc36
...
...
@@ -28,7 +28,7 @@ void main() {
testWithoutContext
(
'LinuxDevice defaults'
,
()
async
{
final
PrebuiltLinuxApp
linuxApp
=
PrebuiltLinuxApp
(
executable:
'foo'
);
expect
(
await
device
.
targetPlatform
,
TargetPlatform
.
linux_x64
);
expect
(
device
.
name
,
'Linux
desktop
'
);
expect
(
device
.
name
,
'Linux'
);
expect
(
await
device
.
installApp
(
linuxApp
),
true
);
expect
(
await
device
.
uninstallApp
(
linuxApp
),
true
);
expect
(
await
device
.
isLatestBuildInstalled
(
linuxApp
),
true
);
...
...
packages/flutter_tools/test/general.shard/macos/macos_device_test.dart
View file @
cf8fbc36
...
...
@@ -40,7 +40,7 @@ void main() {
testUsingContext
(
'defaults'
,
()
async
{
final
MockMacOSApp
mockMacOSApp
=
MockMacOSApp
();
expect
(
await
device
.
targetPlatform
,
TargetPlatform
.
darwin_x64
);
expect
(
device
.
name
,
'macOS
desktop
'
);
expect
(
device
.
name
,
'macOS'
);
expect
(
await
device
.
installApp
(
mockMacOSApp
),
true
);
expect
(
await
device
.
uninstallApp
(
mockMacOSApp
),
true
);
expect
(
await
device
.
isLatestBuildInstalled
(
mockMacOSApp
),
true
);
...
...
packages/flutter_tools/test/general.shard/windows/windows_device_test.dart
View file @
cf8fbc36
...
...
@@ -32,7 +32,7 @@ void main() {
testUsingContext
(
'defaults'
,
()
async
{
final
PrebuiltWindowsApp
windowsApp
=
PrebuiltWindowsApp
(
executable:
'foo'
);
expect
(
await
device
.
targetPlatform
,
TargetPlatform
.
windows_x64
);
expect
(
device
.
name
,
'Windows
desktop
'
);
expect
(
device
.
name
,
'Windows'
);
expect
(
await
device
.
installApp
(
windowsApp
),
true
);
expect
(
await
device
.
uninstallApp
(
windowsApp
),
true
);
expect
(
await
device
.
isLatestBuildInstalled
(
windowsApp
),
true
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment