Skip to content

[flutter_tools] remove globals from compile and devices - #67485

Merged
jonahwilliams merged 4 commits into
flutter:masterfrom
jonahwilliams:remove_globals_from_compile
Oct 8, 2020
Merged

jonahwilliams merged 4 commits into
flutter:masterfrom
jonahwilliams:remove_globals_from_compile

Conversation

@jonahwilliams

@jonahwilliams jonahwilliams commented Oct 7, 2020 •

Copy link
Copy Markdown
Contributor

Description

Remove global variables from compile.dart and devices.dart (except for dds which needs more changes).

#47161

@flutter-dashboard flutter-dashboard Bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Oct 7, 2020
@flutter-dashboard

This comment has been minimized.

@google-cla google-cla Bot added the cla: yes label Oct 7, 2020
@jonahwilliams jonahwilliams changed the title [flutter_tools] remove globals from compile [flutter_tools] remove globals from compile and devices Oct 7, 2020
_logger.printStatus(_userMessages.flutterMultipleDevicesFound);
await Device.printDevices(devices, _logger);
final Device chosenDevice = await _chooseOneOfAvailableDevices(devices);
globals.deviceManager.specifiedDeviceId = chosenDevice.id;

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.

huh

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.

🤷‍♂️

}
}

class MockProcess extends Mock implements Process {}

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.

Woo!

@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 30c0fc1 into flutter:master Oct 8, 2020
@jonahwilliams
jonahwilliams deleted the remove_globals_from_compile branch October 8, 2020 19:29
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