Enable experimental Compose compiler optimization

Co-authored-by: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com>
(cherry picked from commit 9f48def1e2718abd5b4aad3cb6ee8af6b39e76cc)
This commit is contained in:
AntsyLich 2024-03-02 19:00:27 +06:00 committed by Cuong M. Tran
parent 5b40eb5ce9
commit 33bbc52020
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2

View file

@ -330,6 +330,12 @@ tasks {
project.layout.buildDirectory.dir("compose_metrics").get().asFile.absolutePath,
)
}
// https://developer.android.com/jetpack/androidx/releases/compose-compiler#1.5.9
kotlinOptions.freeCompilerArgs += listOf(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:nonSkippingGroupOptimization=true",
)
}
}