Skip to content

Commit

Permalink
Workaround a duplicate class error
Browse files Browse the repository at this point in the history
  • Loading branch information
saket committed Feb 15, 2024
1 parent ce26acd commit e806a7b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
8 changes: 7 additions & 1 deletion test-util/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ android {
}

dependencies {
api(libs.truth) {
// Workaround for:
// Duplicate class com.google.common.util.concurrent.ListenableFuture found in modules guava-33.0.0-android
// (com.google.guava:guava:33.0.0-android) and listenablefuture-1.0 (com.google.guava:listenablefuture:1.0)
exclude group: 'com.google.guava'
}

implementation(libs.dropshots)
implementation(libs.dropboxDiffer)
implementation(libs.compose.ui.test.junit)
implementation(libs.androidx.test.runner) // Needed for Screenshot.capture().
implementation(libs.truth)
}
1 change: 0 additions & 1 deletion zoomable-image/core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ dependencies {
api(libs.compose.foundation)

testImplementation(libs.junit)
testImplementation(libs.truth)

androidTestImplementation(projects.testUtil)
}
1 change: 0 additions & 1 deletion zoomable-image/sub-sampling-image/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ dependencies {
implementation(libs.androidx.tracing)

testImplementation(libs.junit)
testImplementation(libs.truth)
testImplementation(libs.testParamInjector)
testImplementation(libs.kotlinx.coroutines.test)
testImplementation(libs.turbine)
Expand Down

0 comments on commit e806a7b

Please sign in to comment.