@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.
package/compose/build.gradle.kts
CHANGED
|
@@ -30,7 +30,7 @@ kotlin {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
val fwName = gitlabArtifactId
|
|
33
|
-
val iosTargets = listOf(
|
|
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.
|
|
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"
|
|
@@ -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(
|
|
29
|
-
val cached = resourceCache.getOrPut(
|
|
29
|
+
val jsonContent by rememberState(bundlePath, { "" }) {
|
|
30
|
+
val cached = resourceCache.getOrPut(bundlePath) {
|
|
30
31
|
val content = try {
|
|
31
|
-
readResourceBytes(
|
|
32
|
+
readResourceBytes(bundlePath).decodeToString()
|
|
32
33
|
} catch (_: Exception) {
|
|
33
34
|
""
|
|
34
35
|
}
|