TP-52884 | Bump app.cash.paparazzi from 1.3.1 to 1.3.3 (#370)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Shivam Goyal <shivam.goyal@navi.com>
This commit is contained in:
dependabot[bot]
2024-04-27 18:21:33 +00:00
committed by GitHub
parent 34f4a54c59
commit a796807496
4 changed files with 25 additions and 5 deletions

View File

@@ -39,3 +39,23 @@ allprojects {
}
}
}
subprojects {
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.")
}
}
}
}
}

View File

@@ -21,5 +21,4 @@ kotlin.code.style=official
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.defaults.buildfeatures.buildconfig=true
android.nonFinalResIds=false

View File

@@ -29,7 +29,7 @@ mvel2 = "2.4.15.Final"
navi-alfred = "1.0.20"
navigation-compose = "2.6.0"
okhttp-bom = "4.12.0"
paparazzi = "1.3.1"
paparazzi = "1.3.3"
retrofit = "2.9.0"
room = "2.5.2"
spotless = "6.25.0"

View File

@@ -125,9 +125,10 @@ class ImageRenderer : Renderer<ImageProperty> {
rootView
)
val uiTronProvider = remember { UiTronSdkManager.getDependencyProvider() }
val isImagePresentLocally by remember(uiTronImageData?.iconUrl) {
mutableStateOf(uiTronProvider.getIconResourceId(uiTronImageData?.iconUrl))
}
val isImagePresentLocally by
remember(uiTronImageData?.iconUrl) {
mutableStateOf(uiTronProvider.getIconResourceId(uiTronImageData?.iconUrl))
}
isImagePresentLocally?.let {
ImageProvider(
drawableResourceId = it,