-
Notifications
You must be signed in to change notification settings - Fork 29.7k
IntelliJ and Flutter plugin version checks #10454
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
Conversation
| final Version version = new Version.parse(versionText); | ||
| if (version != null && minVersion != null && version < minVersion) { | ||
| messages.add(new ValidationMessage.error( | ||
| '$title plugin ${version != null ? "version $versionText" : "installed"}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
version is guaranteed to be non-null here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
| final List<ValidationMessage> messages = <ValidationMessage>[]; | ||
| ValidationType type = ValidationType.missing; | ||
| final String studioVersionText = 'version ${_studio.version}'; | ||
| final String studioVersionText = Version.unknown == _studio.version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: _studio.version == Version.unknown
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
tvolkert
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
version unknownwhen we don't discover a version for android studio, just don't print a version