flutter/dev/integration_tests/flutter_gallery/android
Reid Baker f20bc39cc0
Add kotlin compatability to build file validation (#167143)
Fixes https://github.com/flutter/flutter/issues/161443 

* adds a new gradle task like `javaVersion` named `kgpVersion` that
prints the version of kgp.
* adds gradle_utils.dart method for getting kgp version
* * kgp method is moved to utilities and we attempt to use a plugin
method before reflection.
* adds methods or  evaluating KGP + gradle and KGP + AGP compatibility. 
* * It turns out that we have been using incompatible versions that
happen to work with the subset of kotlin we are using.
* Uses new kgp methods in flutter analyze --suggestions as part of the
existing agp/java/gradle compatibility matrix.
* adds new tests for all new functionality
* Adds comments to sections of the code I found could use them. 
* Modifies flutter gallery to use a compatible version of kotlin and
update its lockfiles.


## 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.
2025-04-18 16:32:08 +00:00
..
app Reapply "[ Device Lab ] Upgrade Device Lab projects to Java 18" (#166016) (#166059) 2025-03-27 15:07:22 +00:00
gradle/wrapper Reland "Upgrade tests to AGP 8.7/Gradle 8.10.2/Kotlin 1.8.10" (#157617) 2024-10-29 18:01:19 +00:00
.gitignore Update integration test and benchmark Android .gitignore files to match the current app template (#163276) 2025-02-18 19:23:04 +00:00
build.gradle Reland "Update gradle lockfiles template (#140115)" (#143081) 2024-02-08 16:22:15 +00:00
buildscript-gradle.lockfile Add kotlin compatability to build file validation (#167143) 2025-04-18 16:32:08 +00:00
gradle.properties Update gradle memory properties in example and test projects (#163798) 2025-02-21 21:08:20 +00:00
project-app.lockfile Enable --explicit-package-dependencies by default. (#160289) 2025-02-21 19:25:16 +00:00
project-connectivity.lockfile Incrementally update gradle to AGP 7.2.0 and 7.3.3 in some integration_tests (#116201) 2022-12-05 12:27:29 -08:00
project-device_info.lockfile Incrementally update gradle to AGP 7.2.0 and 7.3.3 in some integration_tests (#116201) 2022-12-05 12:27:29 -08:00
project-integration_test.lockfile Add kotlin compatability to build file validation (#167143) 2025-04-18 16:32:08 +00:00
project-url_launcher_android.lockfile Add kotlin compatability to build file validation (#167143) 2025-04-18 16:32:08 +00:00
project-video_player_android.lockfile Reland "Upgrade tests to AGP 8.7/Gradle 8.10.2/Kotlin 1.8.10" (#157617) 2024-10-29 18:01:19 +00:00
settings.gradle Add kotlin compatability to build file validation (#167143) 2025-04-18 16:32:08 +00:00