Skip to content

Conversation

@jesswrd
Copy link
Contributor

@jesswrd jesswrd commented Nov 12, 2025

Add kgp to plugins bulk update dependency tooling.

Pre-Review Checklist

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-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.

Footnotes

  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. 2 3

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

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:

  1. Refactoring duplicated code for handling AGP and KGP updates to improve maintainability.
  2. 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.

@jesswrd jesswrd requested a review from a team November 14, 2025 01:14
output,
containsAllInOrder(<Matcher>[
contains('''
A version with a valid format (3 numbers separated by 2 periods) must be provided.
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you extract this out into a constant that is referenced here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@jesswrd jesswrd added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 17, 2025
@auto-submit auto-submit bot merged commit ce44ebb into flutter:main Nov 17, 2025
80 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 17, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Nov 17, 2025
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants