Skip to content

Conversation

@chingjun
Copy link
Contributor

Description

Move findTargetDevices implementation into DeviceManager which would make it easier to override the behavior for internal use cases.

One side effect caused by this change is that when there are no device connected, flutter run would show "No supported devices connected" instead of "No connected devices". Tests have been updated to reflect that change.

Tests

Moved the existing test from test/runner/flutter_command_test.dart to test/device_test.dart

This allows us to override the behavior internally.
@chingjun chingjun requested a review from jonahwilliams June 25, 2019 21:17
@chingjun chingjun added the tool Affects the "flutter" command-line tool. See also t: labels. label Jun 25, 2019
Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chingjun chingjun merged commit c8cefce into flutter:master Jun 26, 2019
johnsonmh pushed a commit to johnsonmh/flutter that referenced this pull request Jul 30, 2019
This allows us to override the behavior internally.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants