Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[flutter_tools] remove globals from FlutterValidator, add documentation and move tests to new file #67234

Merged

Conversation

jonahwilliams
Copy link
Member

@jonahwilliams jonahwilliams commented Oct 3, 2020

Description

Remove globals from the flutter validator class, and refactor the tests into a separate file. Applies some other cleanup like adding doc comments, and making the doctor validator work like it is documented to work - removing the gen_snapshot check if the artifact is not downloaded instead of downloading all android artifacts.

#47161

@flutter-dashboard flutter-dashboard bot added tool Affects the "flutter" command-line tool. See also t: labels. work in progress; do not review labels Oct 3, 2020
@jonahwilliams jonahwilliams changed the title [flutter_tools] remove globals from FlutterValidatior, add documentation and move tests to new file [flutter_tools] remove globals from FlutterValidator, add documentation and move tests to new file Oct 4, 2020
@jonahwilliams jonahwilliams marked this pull request as ready for review October 5, 2020 20:42
@@ -28,16 +28,6 @@ class DoctorCommand extends FlutterCommand {
@override
final String description = 'Show information about the installed tooling.';

@override
Future<Set<DevelopmentArtifact>> get requiredArtifacts async {
Copy link
Member Author

Choose a reason for hiding this comment

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

See comment below on Flutter validator

buf.writeln(userMessages.flutterBinariesDoNotRun);
if (globals.platform.isLinux) {
buf.writeln(userMessages.flutterBinariesLinuxRepairCommands);
// If the binaries are not downloaded (because android is not enabled), then do
Copy link
Member Author

Choose a reason for hiding this comment

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

See #67352 for the issue where we fix + remove this.

Do not need to worry about the binaries being up to date, because gen_snapshot is a native binary and does not need a matching Dart SDK

Copy link
Member

@christopherfujino christopherfujino left a comment

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 1271447 into flutter:master Oct 6, 2020
@jonahwilliams jonahwilliams deleted the split_flutter_version_validator branch October 6, 2020 00: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.

3 participants