flutter/packages/flutter_tools/test
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
..
android_java11_integration.shard Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
android_preview_integration.shard More FlutterPlugin static method conversion (#165506) 2025-03-22 01:34:05 +00:00
commands.shard Hide error on mDNS registration failure and print warning in flutter attach (#166782) 2025-04-17 14:20:23 +00:00
data [flutter_tools] Fix VS Code package.json path on macOS with case-sensitive file system (#163409) 2025-03-28 16:35:15 +00:00
general.shard Add kotlin compatability to build file validation (#167143) 2025-04-18 16:32:08 +00:00
host_cross_arch.shard Reland #163711 after #163780 (#163812) 2025-02-21 03:35:14 +00:00
integration.shard Add kotlin compatability to build file validation (#167143) 2025-04-18 16:32:08 +00:00
src Refactor writing of package config in tests (#163734) 2025-02-28 08:51:59 +00:00
web.shard Remove <meta content="IE=Edge" http-equiv="X-UA-Compatible"> (#166252) 2025-03-31 16:03:56 +00:00
widget_preview_scaffold.shard [ Widget Preview ] Add support for theme and brightness properties on Preview (#167001) 2025-04-15 17:51:40 +00:00