From 4bebd1d2ac1be076a20a6cbfb3645a6275ef7a25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Mart=C3=ADn?= Date: Wed, 13 Aug 2025 11:43:57 +0200 Subject: [PATCH] Remove `libs.showkase` entry in `composeDependencies` Add it only to the needed library modules. --- features/preferences/impl/build.gradle.kts | 1 + libraries/designsystem/build.gradle.kts | 1 + plugins/src/main/kotlin/extension/DependencyHandleScope.kt | 4 ---- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/features/preferences/impl/build.gradle.kts b/features/preferences/impl/build.gradle.kts index 8eb3c5d860..a74896686d 100644 --- a/features/preferences/impl/build.gradle.kts +++ b/features/preferences/impl/build.gradle.kts @@ -86,6 +86,7 @@ dependencies { implementation(libs.androidx.browser) implementation(libs.androidx.datastore.preferences) api(projects.features.preferences.api) + implementation(libs.showkase) implementation(platform(libs.network.okhttp.bom)) implementation(libs.network.okhttp) diff --git a/libraries/designsystem/build.gradle.kts b/libraries/designsystem/build.gradle.kts index d95566ebb5..0d1efa1ed1 100644 --- a/libraries/designsystem/build.gradle.kts +++ b/libraries/designsystem/build.gradle.kts @@ -40,6 +40,7 @@ android { implementation(projects.libraries.uiStrings) ksp(libs.showkase.processor) + implementation(libs.showkase) testImplementation(libs.test.junit) testImplementation(libs.coroutines.test) diff --git a/plugins/src/main/kotlin/extension/DependencyHandleScope.kt b/plugins/src/main/kotlin/extension/DependencyHandleScope.kt index 6029ac3487..0f5afb9690 100644 --- a/plugins/src/main/kotlin/extension/DependencyHandleScope.kt +++ b/plugins/src/main/kotlin/extension/DependencyHandleScope.kt @@ -54,10 +54,6 @@ fun DependencyHandlerScope.composeDependencies(libs: LibrariesForLibs) { implementation(libs.androidx.activity.compose) debugImplementation(libs.androidx.compose.ui.tooling) debugImplementation(libs.androidx.compose.ui.test.manifest) - // Workaround to fix error "No matching variant of com.airbnb.android:showkase:1.0.5 was found": - // Replace `implementation` by `debugImplementation` and `releaseImplementation` - debugImplementation(libs.showkase) - releaseImplementation(libs.showkase) implementation(libs.kotlinx.collections.immutable) }