Workaround to fix error "No matching variant of com.airbnb.android:showkase:1.0.5 was found".

Replace `implementation` by `debugImplementation` and `releaseImplementation`
This commit is contained in:
Benoit Marty
2025-08-13 10:23:35 +02:00
parent 42338ee4e7
commit 657b8e92a4

View File

@@ -30,6 +30,7 @@ private fun DependencyHandlerScope.implementation(
private fun DependencyHandlerScope.androidTestImplementation(dependency: Any) = dependencies.add("androidTestImplementation", dependency)
private fun DependencyHandlerScope.debugImplementation(dependency: Any) = dependencies.add("debugImplementation", dependency)
private fun DependencyHandlerScope.releaseImplementation(dependency: Any) = dependencies.add("releaseImplementation", dependency)
/**
* Dependencies used by all the modules
@@ -53,7 +54,10 @@ fun DependencyHandlerScope.composeDependencies(libs: LibrariesForLibs) {
implementation(libs.androidx.activity.compose)
debugImplementation(libs.androidx.compose.ui.tooling)
debugImplementation(libs.androidx.compose.ui.test.manifest)
implementation(libs.showkase)
// 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)
}