Skip to content

[flutter_tools] remove globals from Device and separate FlutterDeviceManager - #79454

Merged
jonahwilliams merged 2 commits into
flutter:masterfrom
jonahwilliams:device_manager
Mar 31, 2021
Merged

jonahwilliams merged 2 commits into
flutter:masterfrom
jonahwilliams:device_manager

Conversation

@jonahwilliams

@jonahwilliams jonahwilliams commented Mar 31, 2021 •

Copy link
Copy Markdown
Contributor

To make this easier to migrate to null safety, remove the globals dependencies and then move the instantiation of all of the device discovery classes into a new library.

#71511

@flutter-dashboard flutter-dashboard Bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Mar 31, 2021
@google-cla google-cla Bot added the cla: yes label Mar 31, 2021
import 'windows/windows_workflow.dart';


class FlutterDeviceManager extends DeviceManager {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The only purpose of this class is to construct dependencies for the injection, it can be one of the last things we migrate

@jonahwilliams
jonahwilliams requested a review from jmagman March 31, 2021 17:51

@jmagman jmagman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@jonahwilliams
jonahwilliams merged commit 6b3093b into flutter:master Mar 31, 2021
@jonahwilliams
jonahwilliams deleted the device_manager branch March 31, 2021 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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.

2 participants