@momo-kits/native-kits 0.160.16-debug → 0.160.17-debug
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/compose/build.gradle.kts
CHANGED
package/compose/compose.podspec
CHANGED
|
@@ -11,6 +11,7 @@ import androidx.compose.ui.graphics.Color
|
|
|
11
11
|
import io.github.alexzhirkevich.compottie.Compottie
|
|
12
12
|
import io.github.alexzhirkevich.compottie.ExperimentalCompottieApi
|
|
13
13
|
import io.github.alexzhirkevich.compottie.LottieCompositionSpec
|
|
14
|
+
import io.github.alexzhirkevich.compottie.animateLottieCompositionAsState
|
|
14
15
|
import io.github.alexzhirkevich.compottie.dynamic.rememberLottieDynamicProperties
|
|
15
16
|
import io.github.alexzhirkevich.compottie.rememberLottieComposition
|
|
16
17
|
import io.github.alexzhirkevich.compottie.rememberLottiePainter
|
|
@@ -48,12 +49,21 @@ internal fun ComposeLottieAnimation(
|
|
|
48
49
|
null
|
|
49
50
|
}
|
|
50
51
|
|
|
52
|
+
val lottieState = animateLottieCompositionAsState(
|
|
53
|
+
composition = composition,
|
|
54
|
+
iterations = Compottie.IterateForever,
|
|
55
|
+
)
|
|
56
|
+
|
|
51
57
|
Box(modifier.background(bgColor ?: Color.Transparent)) {
|
|
52
58
|
Image(
|
|
53
59
|
painter = rememberLottiePainter(
|
|
54
60
|
composition = composition,
|
|
55
|
-
|
|
61
|
+
progress = lottieState::value,
|
|
56
62
|
dynamicProperties = dynamicProperties,
|
|
63
|
+
enableExpressions = false,
|
|
64
|
+
expressionEngineFactory = { _, _ ->
|
|
65
|
+
error("Lottie JS expressions are disabled in MoMo kits")
|
|
66
|
+
},
|
|
57
67
|
),
|
|
58
68
|
contentDescription = null,
|
|
59
69
|
modifier = Modifier.fillMaxSize(),
|
|
@@ -13,7 +13,7 @@ androidGradlePlugin = "8.13.2"
|
|
|
13
13
|
r8 = "8.9.35"
|
|
14
14
|
kotlinx-datetime = "0.7.1"
|
|
15
15
|
airbnb-lottie = "5.2.0"
|
|
16
|
-
compottie = "2.
|
|
16
|
+
compottie = "2.1.0"
|
|
17
17
|
androidx-activity = "1.9.1"
|
|
18
18
|
androidx-appcompat = "1.7.0"
|
|
19
19
|
material = "1.10.0"
|
|
@@ -39,7 +39,14 @@ coil-multiplatform-compose = { module = "io.coil-kt.coil3:coil-compose", version
|
|
|
39
39
|
coil-multiplatform-network-ktor = { module = "io.coil-kt.coil3:coil-network-ktor3", version.ref = "coil3-multiplatform" }
|
|
40
40
|
r8 = { module = "com.android.tools:r8", version.ref = "r8" }
|
|
41
41
|
airbnb-lottie = { group = "com.airbnb.android", name = "lottie-compose", version.ref = "airbnb-lottie" }
|
|
42
|
-
|
|
42
|
+
# AI-GENERATED START
|
|
43
|
+
# Depend on compottie-core (not the `compottie` umbrella). The umbrella drags in the
|
|
44
|
+
# separate `keight` umbrella artifact, which collides with `keight-core` on the
|
|
45
|
+
# `findRoot__at__ScriptRuntime` symbol (duplicate symbol at the iOS `ld` link of
|
|
46
|
+
# shared.framework). compottie-core pulls only `keight-core` (which declares
|
|
47
|
+
# keight.js.JsAny, so the earlier unlinked-symbol error stays fixed too).
|
|
48
|
+
compottie = { module = "io.github.alexzhirkevich:compottie-core", version.ref = "compottie" }
|
|
49
|
+
# AI-GENERATED END
|
|
43
50
|
native-max-api = { group = "vn.momo.maxapi", name = "NativeMaxApi", version.ref = "nativemaxapi" }
|
|
44
51
|
kits = { module = "vn.momo.kits:kits", version.ref = "kits" }
|
|
45
52
|
androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "androidx-appcompat" }
|
package/gradle.properties
CHANGED