Uh oh!
There was an error while loading. Please reload this page.
Kgp bulk update - #10412
Conversation
There was a problem hiding this comment.
Code Review
This pull request adds functionality to the dependency update tool to support bulk updates for the Android Gradle Plugin (AGP) and Kotlin Gradle Plugin (KGP). This is achieved by adding new dependency types, corresponding version validation logic, and file update mechanisms targeting settings.gradle. The PR also includes comprehensive tests for the new functionality.
My review includes two main points for improvement in script/tool/lib/src/update_dependency_command.dart:
- Refactoring duplicated code for handling AGP and KGP updates to improve maintainability.
- Making the version validation regex for KGP more flexible to support future versioning schemes, such as minor versions with two digits (e.g.,
1.10.0) or pre-release tags.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| output, | ||
| containsAllInOrder(<Matcher>[ | ||
| contains(''' | ||
| A version with a valid format (3 numbers separated by 2 periods) must be provided. |
There was a problem hiding this comment.
Can you extract this out into a constant that is referenced here.
bdf7a77 to
6614ee7CompareUh oh!
There was an error while loading. Please reload this page.
flutter/packages@799b62c...ce44ebb 2025-11-17 jessiewong401@gmail.com Kgp bulk update (flutter/packages#10412) 2025-11-16 robert.odrowaz@leancode.pl [camera_avfoundation] Wrappers swift migration - part 3 (flutter/packages#10293) 2025-11-15 stuartmorgan@google.com [ci] Update Flutter version for `release` (flutter/packages#10425) 2025-11-15 engine-flutter-autoroll@skia.org Manual roll Flutter from c3f2704 to 9b5ad80 (2 revisions) (flutter/packages#10435) 2025-11-14 engine-flutter-autoroll@skia.org Manual roll Flutter from ee23168 to c3f2704 (5 revisions) (flutter/packages#10433) 2025-11-14 stuartmorgan@google.com [ci] Remove mustache_template from allowed external deps (flutter/packages#10427) 2025-11-14 adilhanney@disroot.org [animations] Clarify that onClosed is called before transition (flutter/packages#10400) 2025-11-14 mdebbar@google.com [web_benchmarks] Report correct expected metrics for wasm (flutter/packages#10236) 2025-11-13 stuartmorgan@google.com [google_maps_flutter] Set properties before adding maps objects (flutter/packages#10347) 2025-11-13 engine-flutter-autoroll@skia.org Roll Flutter (stable) from a0e9b9d to b45fa18 (3 revisions) (flutter/packages#10420) 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-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: 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
flutter/packages@799b62c...ce44ebb 2025-11-17 jessiewong401@gmail.com Kgp bulk update (flutter/packages#10412) 2025-11-16 robert.odrowaz@leancode.pl [camera_avfoundation] Wrappers swift migration - part 3 (flutter/packages#10293) 2025-11-15 stuartmorgan@google.com [ci] Update Flutter version for `release` (flutter/packages#10425) 2025-11-15 engine-flutter-autoroll@skia.org Manual roll Flutter from c3f2704 to 9b5ad80 (2 revisions) (flutter/packages#10435) 2025-11-14 engine-flutter-autoroll@skia.org Manual roll Flutter from ee23168 to c3f2704 (5 revisions) (flutter/packages#10433) 2025-11-14 stuartmorgan@google.com [ci] Remove mustache_template from allowed external deps (flutter/packages#10427) 2025-11-14 adilhanney@disroot.org [animations] Clarify that onClosed is called before transition (flutter/packages#10400) 2025-11-14 mdebbar@google.com [web_benchmarks] Report correct expected metrics for wasm (flutter/packages#10236) 2025-11-13 stuartmorgan@google.com [google_maps_flutter] Set properties before adding maps objects (flutter/packages#10347) 2025-11-13 engine-flutter-autoroll@skia.org Roll Flutter (stable) from a0e9b9d to b45fa18 (3 revisions) (flutter/packages#10420) 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-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: 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
flutter/packages@799b62c...ce44ebb 2025-11-17 jessiewong401@gmail.com Kgp bulk update (flutter/packages#10412) 2025-11-16 robert.odrowaz@leancode.pl [camera_avfoundation] Wrappers swift migration - part 3 (flutter/packages#10293) 2025-11-15 stuartmorgan@google.com [ci] Update Flutter version for `release` (flutter/packages#10425) 2025-11-15 engine-flutter-autoroll@skia.org Manual roll Flutter from c3f2704 to 9b5ad80 (2 revisions) (flutter/packages#10435) 2025-11-14 engine-flutter-autoroll@skia.org Manual roll Flutter from ee23168 to c3f2704 (5 revisions) (flutter/packages#10433) 2025-11-14 stuartmorgan@google.com [ci] Remove mustache_template from allowed external deps (flutter/packages#10427) 2025-11-14 adilhanney@disroot.org [animations] Clarify that onClosed is called before transition (flutter/packages#10400) 2025-11-14 mdebbar@google.com [web_benchmarks] Report correct expected metrics for wasm (flutter/packages#10236) 2025-11-13 stuartmorgan@google.com [google_maps_flutter] Set properties before adding maps objects (flutter/packages#10347) 2025-11-13 engine-flutter-autoroll@skia.org Roll Flutter (stable) from a0e9b9d to b45fa18 (3 revisions) (flutter/packages#10420) 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-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: 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
flutter/packages@799b62c...ce44ebb 2025-11-17 jessiewong401@gmail.com Kgp bulk update (flutter/packages#10412) 2025-11-16 robert.odrowaz@leancode.pl [camera_avfoundation] Wrappers swift migration - part 3 (flutter/packages#10293) 2025-11-15 stuartmorgan@google.com [ci] Update Flutter version for `release` (flutter/packages#10425) 2025-11-15 engine-flutter-autoroll@skia.org Manual roll Flutter from c3f2704 to 9b5ad80 (2 revisions) (flutter/packages#10435) 2025-11-14 engine-flutter-autoroll@skia.org Manual roll Flutter from ee23168 to c3f2704 (5 revisions) (flutter/packages#10433) 2025-11-14 stuartmorgan@google.com [ci] Remove mustache_template from allowed external deps (flutter/packages#10427) 2025-11-14 adilhanney@disroot.org [animations] Clarify that onClosed is called before transition (flutter/packages#10400) 2025-11-14 mdebbar@google.com [web_benchmarks] Report correct expected metrics for wasm (flutter/packages#10236) 2025-11-13 stuartmorgan@google.com [google_maps_flutter] Set properties before adding maps objects (flutter/packages#10347) 2025-11-13 engine-flutter-autoroll@skia.org Roll Flutter (stable) from a0e9b9d to b45fa18 (3 revisions) (flutter/packages#10420) 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-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: 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
Add kgp to plugins bulk update dependency tooling. ## Pre-Review Checklist **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
Add kgp to plugins bulk update dependency tooling.
Pre-Review Checklist
[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or I have commented below to indicate which version change exemption this PR falls under1.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style, or I have commented below to indicate which CHANGELOG exemption this PR falls under1.///).If you need help, consider asking for advice on the #hackers-new channel on Discord.
Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the
gemini-code-assistbot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.Footnotes
Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩↩2↩3