@momo-kits/native-kits 0.156.8-debug → 0.156.9-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.156.8-debug"
43
+ version = "0.156.9-debug"
44
44
  summary = "IOS Shared module"
45
45
  homepage = "https://momo.vn"
46
46
  ios.deploymentTarget = "15.0"
@@ -49,9 +49,20 @@ import vn.momo.kits.utils.formatNumberToMoney
49
49
 
50
50
  class CustomConverter : VisualTransformation {
51
51
  override fun filter(text: AnnotatedString): TransformedText {
52
- if (text.text.isEmpty() || text.text == "0") {
52
+ if (text.text.isEmpty()) {
53
+ return TransformedText(
54
+ AnnotatedString("0"),
55
+ object : OffsetMapping {
56
+ override fun originalToTransformed(offset: Int): Int = 0
57
+ override fun transformedToOriginal(offset: Int): Int = 0
58
+ }
59
+ )
60
+ }
61
+
62
+ if (text.text == "0") {
53
63
  return TransformedText(AnnotatedString("0"), OffsetMapping.Identity)
54
64
  }
65
+
55
66
  val formattedText = formatNumberToMoney(text.text.toLong())
56
67
 
57
68
  return TransformedText(
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.156.8
21
+ version=0.156.9
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.156.8-debug",
3
+ "version": "0.156.9-debug",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},