Skip to content

Conversation

@blasten
Copy link

@blasten blasten commented Apr 23, 2022

Shows custom error messages when a bump of Kotlin or Gradle is required.
Once the migration tool is available, we can tell folks to run it to find more mismatches.

Screen Shot 2022-04-22 at 6 01 56 PM

@blasten blasten requested a review from GaryQian April 23, 2022 01:11
@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Apr 23, 2022
@blasten blasten force-pushed the gradle_error_messages branch from 38d9505 to d13e005 Compare April 23, 2022 01:14
@blasten
Copy link
Author

blasten commented Apr 29, 2022

PTAL @GaryQian

@christopherfujino
Copy link
Contributor

friendly ping @GaryQian

Copy link
Contributor

@GaryQian GaryQian left a comment

Choose a reason for hiding this comment

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

Lgtm

'${globals.logger.terminal.warningMark} Your project needs to upgrade Gradle and the Android Gradle plugin.\n\n'
'To fix this issue, replace the following content:\n'
'${gradleFile.path}:\n'
' ${globals.terminal.color("- classpath 'com.android.tools.build:gradle:<current-version>'", TerminalColor.red)}\n'
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Using <current-version> may mislead dev to search for specifically this string since it is presented as a +- diff. But i don't really see any obviously better way to display it.

@christopherfujino
Copy link
Contributor

@blasten is this one ready to merge?

@fluttergithubbot fluttergithubbot merged commit 0052566 into flutter:master May 19, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 19, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request May 21, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 30, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Aug 30, 2022
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.

4 participants