flutter/packages/flutter_tools/test/general.shard/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
..
migration Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
adb_log_reader_test.dart 🔊 [tool] Add a wirelessly connected device name as displayName (#160497) 2025-01-10 20:51:34 +00:00
android_device_discovery_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
android_device_port_forwarder_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
android_device_start_test.dart Remove the last vestiges of null-unsafety in flutter_tools. (#164026) 2025-02-27 16:31:22 +00:00
android_device_test.dart [flutter_tool] Handle RPCErrorKind.kConnectionDisposed (#164299) 2025-03-27 08:51:38 +00:00
android_emulator_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
android_gradle_builder_test.dart flutter build aar regenerates tooling between each build-mode step (#162705) 2025-02-06 17:03:02 +00:00
android_install_test.dart 🐛 [tool] Installs the APK regardless of version (#160432) 2024-12-30 02:26:27 +00:00
android_project_migration_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
android_sdk_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
android_studio_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
android_studio_validator_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
android_workflow_test.dart Added emulator version to doctor (#167236) 2025-04-16 19:05:48 +00:00
build_validation_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
deferred_components_gen_snapshot_validator_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
deferred_components_prebuild_validator_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
gradle_errors_test.dart Add a gradle_errors.dartentry for missing NDK source.properties file (#167320) 2025-04-17 03:13:09 +00:00
gradle_find_bundle_test.dart [tool] Allow using archiveName in android bundle build (#162390) 2025-02-28 14:57:20 +00:00
gradle_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
gradle_utils_test.dart Add kotlin compatability to build file validation (#167143) 2025-04-18 16:32:08 +00:00
java_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
template_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00