@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.
package/compose/build.gradle.kts
CHANGED
|
@@ -42,9 +42,7 @@ fun NavigationContainer(
|
|
|
42
42
|
|
|
43
43
|
val resolvedLocalize = localize ?: fallbackLocalize
|
|
44
44
|
|
|
45
|
-
var observerFontScaleConfig by remember(
|
|
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