-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Update AGP version validation code to support KGP and kotlin build files. #142357
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
| // Expected content: | ||
| // "classpath 'com.android.tools.build:gradle:7.3.0'" | ||
| // Groovy DSL - classpath 'com.android.tools.build:gradle:{{agpVersion}}' | ||
| // Kotlin DSL - classpath("com.android.tools.build.gradle:{{agpVersion}}") |
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.
I think this can also be compileOnly
| // * AGP version constants in packages/flutter_tools/lib/src/android/gradle_utils.dart |
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.
Good catch! I updated the regex to include either classpath or compileOnly and it can be easily extended in the future if we discover more variations.
| /// [settings.gradle] file within the project's | ||
| /// Android directory ([androidDirectory]). | ||
| /// The Android plugin version is specified in the [build.gradle], | ||
| /// [build.gradle.kts], [settings.gradle] or [settings.gradle.kts] |
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.
Thank you for discovering and documenting this.
|
Marked google testing as passing since it had hung for 2 weeks. |
Manual roll requested by [email protected] flutter/flutter@0b5cd50...e6ba809 2024-02-06 [email protected] Roll Packages from ae3494d to 1a5a7ce (2 revisions) (flutter/flutter#142985) 2024-02-06 [email protected] TextField context menu should fade on scroll on mobile devices (flutter/flutter#138313) 2024-02-06 [email protected] Roll Flutter Engine from 9c1b6c98f7f0 to 808886312e2b (1 revision) (flutter/flutter#142959) 2024-02-06 [email protected] Roll Flutter Engine from 9bd98bc2fcdf to 9c1b6c98f7f0 (4 revisions) (flutter/flutter#142954) 2024-02-06 [email protected] Roll Flutter Engine from f34c658b9600 to 9bd98bc2fcdf (1 revision) (flutter/flutter#142950) 2024-02-05 [email protected] Grey out non-selectable days in CupertinoDatePicker (flutter/flutter#136181) 2024-02-05 49699333+dependabot[bot]@users.noreply.github.com Bump actions/upload-artifact from 4.3.0 to 4.3.1 (flutter/flutter#142944) 2024-02-05 [email protected] Run examples_smoke_test on Linux (flutter/flutter#142736) 2024-02-05 [email protected] Update AGP version validation code to support KGP and kotlin build files. (flutter/flutter#142357) 2024-02-05 [email protected] Fixed test in language_version_test.dart that failed when shuffling, � (flutter/flutter#142904) 2024-02-05 [email protected] Move Mac_build_test flutter_gallery__transition_perf_e2e_ios to staging (flutter/flutter#142918) 2024-02-05 [email protected] Roll Packages from d37fb0a to ae3494d (3 revisions) (flutter/flutter#142915) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Addresses: #141410
Pre-launch Checklist
///).