From 6808fbbb21acaac4e866b5023146a97b86a9d68e Mon Sep 17 00:00:00 2001 From: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com> Date: Fri, 23 Jun 2023 19:26:35 +0700 Subject: [PATCH] Use lite compose-ui-tooling module on release builds (#9630) The size reduction is minuscule but it's there. --- app/build.gradle.kts | 3 ++- gradle/compose.versions.toml | 1 + presentation-core/build.gradle.kts | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 9df023983..a08149ee5 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -158,7 +158,8 @@ dependencies { implementation(compose.material.icons) implementation(compose.animation) implementation(compose.animation.graphics) - implementation(compose.ui.tooling) + debugImplementation(compose.ui.tooling) + implementation(compose.ui.tooling.preview) implementation(compose.ui.util) implementation(compose.accompanist.webview) implementation(compose.accompanist.permissions) diff --git a/gradle/compose.versions.toml b/gradle/compose.versions.toml index 1bb556acd..1d1fff7f1 100644 --- a/gradle/compose.versions.toml +++ b/gradle/compose.versions.toml @@ -10,6 +10,7 @@ foundation = { module = "androidx.compose.foundation:foundation" } animation = { module = "androidx.compose.animation:animation" } animation-graphics = { module = "androidx.compose.animation:animation-graphics" } ui-tooling = { module = "androidx.compose.ui:ui-tooling" } +ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview" } ui-util = { module = "androidx.compose.ui:ui-util" } material3-core = { module = "androidx.compose.material3:material3" } diff --git a/presentation-core/build.gradle.kts b/presentation-core/build.gradle.kts index f7ce6ba62..53025fdaa 100644 --- a/presentation-core/build.gradle.kts +++ b/presentation-core/build.gradle.kts @@ -30,7 +30,8 @@ dependencies { implementation(compose.material.icons) implementation(compose.animation) implementation(compose.animation.graphics) - implementation(compose.ui.tooling) + debugImplementation(compose.ui.tooling) + implementation(compose.ui.tooling.preview) implementation(compose.ui.util) }