@momo-kits/native-kits 0.160.1-beta.4-debug → 0.160.1-beta.5-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
|
@@ -7,15 +7,11 @@ import androidx.compose.ui.text.TextStyle
|
|
|
7
7
|
import androidx.compose.ui.text.font.FontFamily
|
|
8
8
|
import androidx.compose.ui.text.font.FontWeight
|
|
9
9
|
import androidx.compose.ui.text.style.TextDecoration
|
|
10
|
-
import androidx.compose.ui.unit
|
|
11
|
-
import androidx.compose.ui.unit.TextUnit
|
|
12
|
-
import androidx.compose.ui.unit.TextUnitType
|
|
13
|
-
import androidx.compose.ui.unit.dp
|
|
14
|
-
import androidx.compose.ui.unit.sp
|
|
10
|
+
import androidx.compose.ui.unit.*
|
|
15
11
|
import org.jetbrains.compose.resources.Font
|
|
16
12
|
import org.jetbrains.compose.resources.FontResource
|
|
17
13
|
import org.jetbrains.compose.resources.InternalResourceApi
|
|
18
|
-
import vn.momo.kits.application.
|
|
14
|
+
import vn.momo.kits.application.IsShowBaseLineDebug
|
|
19
15
|
import vn.momo.kits.platform.getScreenDimensions
|
|
20
16
|
import vn.momo.uikits.resources.Res
|
|
21
17
|
import vn.momo.uikits.resources.momosignature
|
|
@@ -37,8 +33,7 @@ const val MAX_FONT_SCALE = 1.2f
|
|
|
37
33
|
|
|
38
34
|
@Composable
|
|
39
35
|
fun scaleSize(size: Float): Float {
|
|
40
|
-
|
|
41
|
-
if (!allowFontScale) return size
|
|
36
|
+
if (!IsShowBaseLineDebug) return size
|
|
42
37
|
|
|
43
38
|
val deviceWidth = getScreenDimensions().width
|
|
44
39
|
val deviceScale = deviceWidth / DEFAULT_SCREEN_SIZE
|
package/gradle.properties
CHANGED