diff options
author | 2021-09-17 14:11:52 -0700 | |
---|---|---|
committer | 2021-09-20 09:12:42 -0700 | |
commit | a1ff7c6926a68c841308c8d688c148dad22e56d6 (patch) | |
tree | c912a779442777d929dea9e93319666858670c15 /java/kotlin.go | |
parent | a0dc31d4a22a2ec0b1b02df968c9a7fd043f46c6 (diff) |
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
Diffstat (limited to 'java/kotlin.go')
-rw-r--r-- | java/kotlin.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/java/kotlin.go b/java/kotlin.go index 3a6fc0f48..e4f1bc198 100644 --- a/java/kotlin.go +++ b/java/kotlin.go @@ -81,6 +81,7 @@ func kotlinCompile(ctx android.ModuleContext, outputFile android.WritablePath, var deps android.Paths deps = append(deps, flags.kotlincClasspath...) + deps = append(deps, flags.kotlincDeps...) deps = append(deps, srcJars...) deps = append(deps, commonSrcFiles...) |