Skip to content

Commit 0843e6f

Browse files
authored
[Documentation] When updating kgp minimum document additional changes that are required (#171819)
## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [x] All existing and new tests are passing.
1 parent c7d8149 commit 0843e6f

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

packages/flutter_tools/gradle/src/main/kotlin/DependencyVersionChecker.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ object DependencyVersionChecker {
8888
// Before updating any "error" version, ensure that you have updated the corresponding
8989
// "warn" version for a full release to provide advanced warning. See
9090
// flutter.dev/go/android-dependency-versions for more.
91+
// Advice for maintainers for other areas of code that are impacted are documented
92+
// in packages/flutter_tools/lib/src/android/README.md.
9193
@VisibleForTesting internal val warnGradleVersion: Version = Version(8, 7, 2)
9294

9395
@VisibleForTesting internal val errorGradleVersion: Version = Version(8, 3, 0)

packages/flutter_tools/lib/src/android/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ When updating the Kotlin Gradle Plugin (KGP) version used in project templates
5050
(`templateKotlinGradlePluginVersion`), make sure that the framework integration
5151
& benchmark tests are running with at least this KGP version.
5252

53+
When updating the `warnKGPVersion` or `errorKGPVersion` ensure that versions used in
54+
`dev/tools/bin/generate_gradle_lockfiles.dart` are updated if needed then regenerate
55+
build.gradle(.kts) files.
56+
5357
For information about the latest version, check https://kotlinlang.org/docs/releases.html#release-details.
5458

5559
#### The Android Gradle Plugin (AGP)

0 commit comments

Comments
 (0)