@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.
@@ -40,7 +40,7 @@ kotlin {
40
40
  }
41
41
 
42
42
  cocoapods {
43
- version = "0.160.1-beta.4-debug"
43
+ version = "0.160.1-beta.5-debug"
44
44
  summary = "IOS Shared module"
45
45
  homepage = "https://momo.vn"
46
46
  ios.deploymentTarget = "15.0"
@@ -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.Dp
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.ApplicationContext
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
- val allowFontScale = ApplicationContext.current?.features?.allowFontScale ?: true
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
@@ -18,7 +18,7 @@ androidx-appcompat = "1.7.0"
18
18
  material = "1.10.0"
19
19
  maxapi = "0.1.1"
20
20
  vanniktechMavenPublish = "0.34.0"
21
- kits = "0.160.1-beta.4"
21
+ kits = "0.160.1-beta.5"
22
22
  nativemaxapi = "0.0.6"
23
23
 
24
24
  [libraries]
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.1-beta.4
21
+ version=0.160.1-beta.5
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.1-beta.4-debug",
3
+ "version": "0.160.1-beta.5-debug",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},