@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.
@@ -40,7 +40,7 @@ kotlin {
40
40
  }
41
41
 
42
42
  cocoapods {
43
- version = "0.160.16-debug"
43
+ version = "0.160.17-debug"
44
44
  summary = "IOS Shared module"
45
45
  homepage = "https://momo.vn"
46
46
  ios.deploymentTarget = "15.0"
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |spec|
2
2
  spec.name = 'compose'
3
- spec.version = '0.161.2-search-header.1'
3
+ spec.version = '0.161.2-beta.15'
4
4
  spec.homepage = 'https://momo.vn'
5
5
  spec.source = { :http=> ''}
6
6
  spec.authors = ''
@@ -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
- iterations = Compottie.IterateForever,
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.2.1"
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
- compottie = { module = "io.github.alexzhirkevich:compottie", version.ref = "compottie" }
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
@@ -18,7 +18,7 @@ kotlin.apple.xcodeCompatibility.nowarn=true
18
18
  name="ComposeKits"
19
19
  group=vn.momo.kits
20
20
  artifact.id=kits
21
- version=0.160.16
21
+ version=0.160.17
22
22
 
23
23
  repo=GitLab
24
24
  url=https://gitlab.mservice.com.vn/api/v4/projects/5400/packages/maven
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.160.16-debug",
3
+ "version": "0.160.17-debug",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},