@momo-kits/native-kits 0.161.2-beta.13-debug → 0.161.2-beta.15-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.161.2-beta.13-debug"
43
+ version = "0.161.2-beta.15-debug"
44
44
  summary = "IOS Shared module"
45
45
  homepage = "https://momo.vn"
46
46
  ios.deploymentTarget = "15.0"
@@ -74,7 +74,6 @@ kotlin {
74
74
  implementation(libs.kotlinx.datetime)
75
75
  api(libs.native.max.api)
76
76
  implementation(libs.compottie)
77
- api(libs.keight.core)
78
77
  }
79
78
  androidMain.dependencies {
80
79
  implementation(libs.ktor.client.okhttp)
@@ -74,7 +74,6 @@ kotlin {
74
74
  implementation(libs.kotlinx.datetime)
75
75
  api(libs.native.max.api)
76
76
  implementation(libs.compottie)
77
- api(libs.keight.core)
78
77
  }
79
78
  androidMain.dependencies {
80
79
  implementation(libs.ktor.client.okhttp)
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |spec|
2
2
  spec.name = 'compose'
3
- spec.version = '0.161.2-beta.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,9 @@ 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
+ // AI-GENERATED START
15
+ import io.github.alexzhirkevich.compottie.animateLottieCompositionAsState
16
+ // AI-GENERATED END
14
17
  import io.github.alexzhirkevich.compottie.dynamic.rememberLottieDynamicProperties
15
18
  import io.github.alexzhirkevich.compottie.rememberLottieComposition
16
19
  import io.github.alexzhirkevich.compottie.rememberLottiePainter
@@ -48,15 +51,34 @@ internal fun ComposeLottieAnimation(
48
51
  null
49
52
  }
50
53
 
54
+ // AI-GENERATED START
55
+ // We use the compottie-core painter (not the umbrella overload) so the `keight`
56
+ // umbrella stays out of the iOS link graph (see libs.versions.toml). The core painter
57
+ // requires us to drive playback and supply the expression engine ourselves:
58
+ // - animateLottieCompositionAsState gives the looping progress (IterateForever).
59
+ // - enableExpressions = false disables Lottie JS expressions, which live in the
60
+ // umbrella + keight umbrella. MoMo's UI animations do not use JS expressions.
61
+ // - expressionEngineFactory is never invoked while enableExpressions = false
62
+ // (AnimationState.scriptEngine is `by lazy`), so the stub below cannot run.
63
+ val lottieState = animateLottieCompositionAsState(
64
+ composition = composition,
65
+ iterations = Compottie.IterateForever,
66
+ )
67
+
51
68
  Box(modifier.background(bgColor ?: Color.Transparent)) {
52
69
  Image(
53
70
  painter = rememberLottiePainter(
54
71
  composition = composition,
55
- iterations = Compottie.IterateForever,
72
+ progress = lottieState::value,
56
73
  dynamicProperties = dynamicProperties,
74
+ enableExpressions = false,
75
+ expressionEngineFactory = { _, _ ->
76
+ error("Lottie JS expressions are disabled in MoMo kits")
77
+ },
57
78
  ),
58
79
  contentDescription = null,
59
80
  modifier = Modifier.fillMaxSize(),
60
81
  )
61
82
  }
83
+ // AI-GENERATED END
62
84
  }
@@ -14,7 +14,6 @@ r8 = "8.9.35"
14
14
  kotlinx-datetime = "0.7.1"
15
15
  airbnb-lottie = "5.2.0"
16
16
  compottie = "2.1.0"
17
- keight = "0.0.04"
18
17
  androidx-activity = "1.9.1"
19
18
  androidx-appcompat = "1.7.0"
20
19
  material = "1.10.0"
@@ -40,9 +39,13 @@ coil-multiplatform-compose = { module = "io.coil-kt.coil3:coil-compose", version
40
39
  coil-multiplatform-network-ktor = { module = "io.coil-kt.coil3:coil-network-ktor3", version.ref = "coil3-multiplatform" }
41
40
  r8 = { module = "com.android.tools:r8", version.ref = "r8" }
42
41
  airbnb-lottie = { group = "com.airbnb.android", name = "lottie-compose", version.ref = "airbnb-lottie" }
43
- compottie = { module = "io.github.alexzhirkevich:compottie", version.ref = "compottie" }
44
- # AI-GENERATED START: explicit keight-core so it is never stripped from the iOS native link (fixes keight.js.JsAny unlinked symbol)
45
- keight-core = { module = "io.github.alexzhirkevich:keight-core", version.ref = "keight" }
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" }
46
49
  # AI-GENERATED END
47
50
  native-max-api = { group = "vn.momo.maxapi", name = "NativeMaxApi", version.ref = "nativemaxapi" }
48
51
  kits = { module = "vn.momo.kits:kits", version.ref = "kits" }
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.161.2-beta.13
21
+ version=0.161.2-beta.15
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.161.2-beta.13-debug",
3
+ "version": "0.161.2-beta.15-debug",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},