From 9f48def1e2718abd5b4aad3cb6ee8af6b39e76cc Mon Sep 17 00:00:00 2001 From: AntsyLich <59261191+AntsyLich@users.noreply.github.com> Date: Sat, 2 Mar 2024 19:00:27 +0600 Subject: [PATCH] Enable experimental Compose compiler optimization Co-authored-by: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com> --- app/build.gradle.kts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 15751e0e5..c250b0f31 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -304,6 +304,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", + ) } }