Skip to content

Commit 70e31b4

Browse files
Bump AGP/Gradle/Kotlin warn versions (#158839)
Bumps the versions up a bit, so we can keep people moving forward. ## 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]. - [ ] 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. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. <!-- Links --> [Contributor Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview [Tree Hygiene]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md [test-exempt]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests [Flutter Style Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md [Features we expect every widget to implement]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md [Data Driven Fixes]: https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md --------- Co-authored-by: Gray Mackall <mackall@google.com>
1 parent 3d896d8 commit 70e31b4

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

packages/flutter_tools/gradle/src/main/kotlin/dependency_version_checker.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,16 @@ class 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-
val warnGradleVersion: Version = Version(7, 1, 0)
91+
val warnGradleVersion: Version = Version(7, 4, 2)
9292
val errorGradleVersion: Version = Version(7, 0, 2)
9393

9494
val warnJavaVersion: JavaVersion = JavaVersion.VERSION_11
9595
val errorJavaVersion: JavaVersion = JavaVersion.VERSION_1_1
9696

97-
val warnAGPVersion: Version = Version(7, 0, 1)
97+
val warnAGPVersion: Version = Version(7, 3, 1)
9898
val errorAGPVersion: Version = Version(7, 0, 0)
9999

100-
val warnKGPVersion: Version = Version(1, 7, 10)
100+
val warnKGPVersion: Version = Version(1, 8, 10)
101101
val errorKGPVersion: Version = Version(1, 7, 0)
102102

103103
/**

packages/flutter_tools/test/android_java11_integration.shard/android_dependency_version_checking_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void main() {
3030
testUsingContext(
3131
'AGP version out of "warn" support band but in "error" band builds '
3232
'successfully and prints warning', () async {
33-
final VersionTuple versionTuple = VersionTuple(agpVersion: '7.0.0', gradleVersion: '7.5', kotlinVersion: '1.7.10', compileSdkVersion: '34');
33+
final VersionTuple versionTuple = VersionTuple(agpVersion: '7.3.0', gradleVersion: '7.5', kotlinVersion: '1.7.10', compileSdkVersion: '34');
3434
final ProcessResult result = await buildFlutterApkWithSpecifiedDependencyVersions(
3535
versions: versionTuple,
3636
tempDir: tempDir
@@ -43,7 +43,7 @@ void main() {
4343
'Gradle version out of "warn" support band but in "error" band builds '
4444
'successfully and prints warning', () async {
4545
// Create a new flutter project.
46-
final VersionTuple versionTuple = VersionTuple(agpVersion: '7.0.0', gradleVersion: '7.0.2', kotlinVersion: '1.7.10', compileSdkVersion: '34');
46+
final VersionTuple versionTuple = VersionTuple(agpVersion: '7.3.0', gradleVersion: '7.4.1', kotlinVersion: '1.7.10', compileSdkVersion: '34');
4747
final ProcessResult result = await buildFlutterApkWithSpecifiedDependencyVersions(
4848
versions: versionTuple,
4949
tempDir: tempDir
@@ -55,7 +55,7 @@ void main() {
5555
testUsingContext(
5656
'Kotlin version out of "warn" support band but in "error" band builds '
5757
'successfully and prints warning', () async {
58-
final VersionTuple versionTuple = VersionTuple(agpVersion: '7.4.0', gradleVersion: '7.5', kotlinVersion: '1.7.0', compileSdkVersion: '34');
58+
final VersionTuple versionTuple = VersionTuple(agpVersion: '7.4.0', gradleVersion: '7.5', kotlinVersion: '1.8.0', compileSdkVersion: '34');
5959
final ProcessResult result = await buildFlutterApkWithSpecifiedDependencyVersions(
6060
versions: versionTuple,
6161
tempDir: tempDir

0 commit comments

Comments
 (0)