TP-59699 | lottie version bummp (#372)

This commit is contained in:
Soumya Ranjan Patra
2024-03-06 17:33:17 +05:30
committed by GitHub
parent 5bfaa5ecab
commit 49615c93a5
3 changed files with 8 additions and 5 deletions

View File

@@ -24,7 +24,7 @@ hilt = "2.48"
junit = "4.13.2"
kotlin = "1.9.22"
ksp = "1.9.22-1.0.17"
lottie = "6.1.0"
lottie = "6.4.0"
mvel2 = "2.4.15.Final"
navi-alfred = "1.0.20"
navigation-compose = "2.6.0"

View File

@@ -18,6 +18,7 @@ import androidx.compose.ui.draw.alpha
import androidx.compose.ui.layout.layoutId
import androidx.compose.ui.platform.LocalView
import androidx.compose.ui.unit.dp
import com.airbnb.lottie.AsyncUpdates
import com.airbnb.lottie.LottieComposition
import com.airbnb.lottie.compose.LottieAnimation
import com.airbnb.lottie.compose.LottieCompositionSpec
@@ -146,7 +147,8 @@ class LottieRenderer : Renderer<LottieProperty> {
composition = composition,
progress = { it },
modifier = modifier,
contentScale = getContentScale(property.contentScale)
contentScale = getContentScale(property.contentScale),
asyncUpdates = AsyncUpdates.ENABLED,
)
}
?: run {
@@ -154,7 +156,8 @@ class LottieRenderer : Renderer<LottieProperty> {
composition = composition,
iterations = uiTronLottieData?.iterations ?: 1,
modifier = modifier,
contentScale = getContentScale(property.contentScale)
contentScale = getContentScale(property.contentScale),
asyncUpdates = AsyncUpdates.ENABLED,
)
}
}

View File

@@ -604,7 +604,7 @@ fun String?.toDoubleWithSafe(): Double {
}
}
fun getTextAlignment(textAlignment: String?): TextAlign? {
fun getTextAlignment(textAlignment: String?): TextAlign {
return when (textAlignment) {
TextAlign.Start.toString() -> TextAlign.Start
TextAlign.End.toString() -> TextAlign.End
@@ -612,7 +612,7 @@ fun getTextAlignment(textAlignment: String?): TextAlign? {
TextAlign.Left.toString() -> TextAlign.Left
TextAlign.Right.toString() -> TextAlign.Right
TextAlign.Justify.toString() -> TextAlign.Justify
else -> null
else -> TextAlign.Unspecified
}
}