@momo-kits/native-kits 0.160.1-beta.18-debug → 0.160.1-beta.19-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.
@@ -30,7 +30,7 @@ kotlin {
30
30
  }
31
31
 
32
32
  val fwName = gitlabArtifactId
33
- val iosTargets = listOf(iosX64(), iosArm64(), iosSimulatorArm64())
33
+ val iosTargets = listOf(iosArm64(), iosSimulatorArm64())
34
34
  iosTargets.forEach {
35
35
  it.binaries.framework {
36
36
  baseName = fwName
@@ -40,7 +40,7 @@ kotlin {
40
40
  }
41
41
 
42
42
  cocoapods {
43
- version = "0.160.1-beta.18-debug"
43
+ version = "0.160.1-beta.19-debug"
44
44
  summary = "IOS Shared module"
45
45
  homepage = "https://momo.vn"
46
46
  ios.deploymentTarget = "15.0"
@@ -30,7 +30,7 @@ kotlin {
30
30
  }
31
31
 
32
32
  val fwName = gitlabArtifactId
33
- val iosTargets = listOf(iosX64(), iosArm64(), iosSimulatorArm64())
33
+ val iosTargets = listOf(iosArm64(), iosSimulatorArm64())
34
34
  iosTargets.forEach {
35
35
  it.binaries.framework {
36
36
  baseName = fwName
@@ -24,11 +24,12 @@ fun getResource(name: String): DrawableResource {
24
24
  @Composable
25
25
  fun readJson(name: String): String {
26
26
  val path = name.plus(".json")
27
+ val bundlePath = "composeResources/vn.momo.compose.resources/$path"
27
28
 
28
- val jsonContent by rememberState(path, { "" }) {
29
- val cached = resourceCache.getOrPut(path) {
29
+ val jsonContent by rememberState(bundlePath, { "" }) {
30
+ val cached = resourceCache.getOrPut(bundlePath) {
30
31
  val content = try {
31
- readResourceBytes(path).decodeToString()
32
+ readResourceBytes(bundlePath).decodeToString()
32
33
  } catch (_: Exception) {
33
34
  ""
34
35
  }
@@ -13,7 +13,7 @@ androidGradlePlugin = "8.13.2"
13
13
  r8 = "8.9.35"
14
14
  kotlinx-datetime = "0.7.1"
15
15
  airbnb-lottie = "5.2.0"
16
- compottie = "2.0.0-rc04"
16
+ compottie = "2.2.0-beta01"
17
17
  androidx-activity = "1.9.1"
18
18
  androidx-appcompat = "1.7.0"
19
19
  material = "1.10.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.160.1-beta.18-debug",
3
+ "version": "0.160.1-beta.19-debug",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},