@momo-kits/native-kits 0.162.12-debug → 0.162.13-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.162.12-debug"
43
+ version = "0.162.13-debug"
44
44
  summary = "IOS Shared module"
45
45
  homepage = "https://momo.vn"
46
46
  ios.deploymentTarget = "15.0"
@@ -42,9 +42,7 @@ fun NavigationContainer(
42
42
 
43
43
  val resolvedLocalize = localize ?: fallbackLocalize
44
44
 
45
- var observerFontScaleConfig by remember(maxApi) {
46
- mutableStateOf(seedFontScaleConfig(maxApi) ?: mergedContext?.fontScaleConfig)
47
- }
45
+ var observerFontScaleConfig by remember { mutableStateOf(mergedContext?.fontScaleConfig) }
48
46
  LaunchedEffect(maxApi, resolvedLocalize) {
49
47
  val api = maxApi ?: return@LaunchedEffect
50
48
  runCatching {
@@ -161,11 +159,6 @@ private fun parseLanguage(raw: Map<String, Any?>?): String? {
161
159
  return if (code.startsWith(Localize.EN)) Localize.EN else Localize.VI
162
160
  }
163
161
 
164
- private fun seedFontScaleConfig(maxApi: IMaxApi?): FontScaleConfig? {
165
- val raw = runCatching { maxApi?.getItem(FONT_SCALE_OBSERVER_KEY) }.getOrNull()
166
- return parseFontScaleConfig(raw)
167
- }
168
-
169
162
  private fun parseFontScaleConfig(raw: Map<String, Any?>?): FontScaleConfig? {
170
163
  if (raw.isNullOrEmpty()) return null
171
164
  @Suppress("UNCHECKED_CAST")
@@ -40,7 +40,14 @@ coil-multiplatform-compose = { module = "io.coil-kt.coil3:coil-compose", version
40
40
  coil-multiplatform-network-ktor = { module = "io.coil-kt.coil3:coil-network-ktor3", version.ref = "coil3-multiplatform" }
41
41
  r8 = { module = "com.android.tools:r8", version.ref = "r8" }
42
42
  airbnb-lottie = { group = "com.airbnb.android", name = "lottie-compose", version.ref = "airbnb-lottie" }
43
+ # AI-GENERATED START
44
+ # Depend on compottie-core (not the `compottie` umbrella). The umbrella drags in the
45
+ # separate `keight` umbrella artifact, which collides with `keight-core` on the
46
+ # `findRoot__at__ScriptRuntime` symbol (duplicate symbol at the iOS `ld` link of
47
+ # shared.framework). compottie-core pulls only `keight-core` (which declares
48
+ # keight.js.JsAny, so the earlier unlinked-symbol error stays fixed too).
43
49
  compottie = { module = "io.github.alexzhirkevich:compottie-core", version.ref = "compottie" }
50
+ # AI-GENERATED END
44
51
  native-max-api = { group = "vn.momo.maxapi", name = "NativeMaxApi", version.ref = "nativemaxapi" }
45
52
  kits = { module = "vn.momo.kits:kits", version.ref = "kits" }
46
53
  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.162.12
21
+ version=0.162.13
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.162.12-debug",
3
+ "version": "0.162.13-debug",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},