Enable compose kotlinc plugin when depending on the compose runtime

When a module depends on the compose runtime add a -Xplugin argument
to the kotlinc flags that enables the compose compiler plugin.

Bug: 196351110
Test: TestKotlinCompose
Change-Id: I423a3c4d12df42804a24b672a40a165bc8dd165f
This commit is contained in:
Colin Cross
2021-09-17 14:11:52 -07:00
parent a0dc31d4a2
commit a1ff7c6926
5 changed files with 64 additions and 0 deletions

View File

@@ -263,6 +263,7 @@ type javaBuilderFlags struct {
kotlincFlags string
kotlincClasspath classpath
kotlincDeps android.Paths
proto android.ProtoFlags
}