Skip to content

Commit

Permalink
Bump Truth 1.1.5 => 1.2.0 (#1206)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrodbx authored Jan 8, 2024
1 parent b404952 commit ab9928f
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ trove4j = { module = "org.jetbrains.intellij.deps:trove4j", version = "1.0.20200
# Test libraries
junit = { module = "junit:junit", version = "4.13.2" }
testParameterInjector = { module = "com.google.testparameterinjector:test-parameter-injector", version = "1.14" }
truth = { module = "com.google.truth:truth", version = "1.1.5" }
truth = { module = "com.google.truth:truth", version = "1.2.0" }

# Plugins
plugin-android = { module = "com.android.tools.build:gradle", version.ref = "agp" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ android {
dependencies {
testImplementation libs.truth
}

apply from: '../common.gradle'
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ android {
dependencies {
testImplementation libs.truth
}

apply from: '../common.gradle'
20 changes: 20 additions & 0 deletions paparazzi-gradle-plugin/src/test/projects/common.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// TODO:
// Remove when https://github.com/google/guava/issues/6567 is fixed.
// See also: https://github.com/google/guava/issues/6801.
plugins.withId("app.cash.paparazzi") {
// Defer until afterEvaluate so that testImplementation is created by Android plugin.
afterEvaluate {
dependencies.constraints {
add("testImplementation", "com.google.guava:guava") {
attributes {
attribute(
TargetJvmEnvironment.TARGET_JVM_ENVIRONMENT_ATTRIBUTE,
objects.named(TargetJvmEnvironment, TargetJvmEnvironment.STANDARD_JVM)
)
}
because("LayoutLib and sdk-common depend on Guava's -jre published variant." +
"See https://github.com/cashapp/paparazzi/issues/906.")
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ dependencies {
testImplementation 'androidx.activity:activity-compose:1.6.1'
testImplementation libs.truth
}

apply from: '../common.gradle'
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ dependencies {
implementation projects.producer2
testImplementation libs.truth
}

apply from: '../../common.gradle'
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ dependencies {
implementation projects.producer2
testImplementation libs.truth
}

apply from: '../../common.gradle'

0 comments on commit ab9928f

Please sign in to comment.