Adds lint check for Transition.animate* functions to ensure target state is used
It is an error to not use the state parameter provided in the value definition lambda, as this will result in the value not changing between states for non-keyframe transitions, and also means that seeking will not work for the transition.
Fixes: b/181195383
Test: TransitionDetectorTest
Change-Id: I4a8a285e56debf8ddfd1a77b5c05281ea0508287
diff --git a/settings.gradle b/settings.gradle
index a72757e..47def43 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -232,6 +232,7 @@
includeProject(":compose:animation", "compose/animation", [BuildType.COMPOSE])
includeProject(":compose:animation:animation", "compose/animation/animation", [BuildType.COMPOSE])
includeProject(":compose:animation:animation-core", "compose/animation/animation-core", [BuildType.COMPOSE])
+includeProject(":compose:animation:animation-core-lint", "compose/animation/animation-core-lint", [BuildType.COMPOSE])
includeProject(":compose:animation:animation-core:animation-core-benchmark", "compose/animation/animation-core/benchmark", [BuildType.COMPOSE])
includeProject(":compose:animation:animation-core:animation-core-samples", "compose/animation/animation-core/samples", [BuildType.COMPOSE])
includeProject(":compose:animation:animation:integration-tests:animation-demos", "compose/animation/animation/integration-tests/animation-demos", [BuildType.COMPOSE])