@momo-kits/native-kits 0.160.1-beta.20-debug → 0.160.1-beta.21-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.20-debug"
43
+ version = "0.160.1-beta.21-debug"
44
44
  summary = "IOS Shared module"
45
45
  homepage = "https://momo.vn"
46
46
  ios.deploymentTarget = "15.0"
@@ -24,25 +24,22 @@ fun getResource(name: String): DrawableResource {
24
24
  @Composable
25
25
  fun readJson(name: String): String {
26
26
  val path = name.plus(".json")
27
- // AI-GENERATED START: try raw path first (Android assets find it at the root), then fall
28
- // back to the fully-qualified compose-resources path (iOS NSBundle needs the
29
- // "composeResources/<package>/" prefix because DefaultIOsResourceReader prepends only
30
- // "compose-resources/" to whatever path you pass).
31
27
  val candidatePaths = listOf(
32
28
  path,
33
29
  "composeResources/vn.momo.compose.resources/$path",
34
30
  )
35
- // AI-GENERATED END
36
31
 
37
32
  val jsonContent by rememberState(path, { "" }) {
38
33
  val cached = resourceCache.getOrPut(path) {
39
- val content = candidatePaths.firstNotNullOfOrNull { candidate ->
34
+ var content = ""
35
+ for (candidate in candidatePaths) {
40
36
  try {
41
- readResourceBytes(candidate).decodeToString()
37
+ content = readResourceBytes(candidate).decodeToString()
38
+ break
42
39
  } catch (_: Exception) {
43
- null
40
+ // try next candidate
44
41
  }
45
- }.orEmpty()
42
+ }
46
43
  ResourceCache.JSON(content)
47
44
  } as ResourceCache.JSON
48
45
 
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.20
21
+ version=0.159.1-beta.16
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.20-debug",
3
+ "version": "0.160.1-beta.21-debug",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},
@@ -1,11 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(yarn react-native:*)",
5
- "Read(//Users/phuc/.claude/skills/ai-skill-generator/**)",
6
- "Bash(python3 scripts/install_skill.py --update)",
7
- "Bash(cd /Users/phuc/momo-kits/.claude/skills/design-system-kits && mkdir -p .claude/skills/design-system-kits && mv SKILL.md README.md references .claude/skills/design-system-kits/)",
8
- "Bash(mv .claude/skills/design-system-kits/* . && rmdir .claude/skills/design-system-kits && rmdir .claude/skills)"
9
- ]
10
- }
11
- }
package/local.properties DELETED
@@ -1,8 +0,0 @@
1
- ## This file must *NOT* be checked into Version Control Systems,
2
- # as it contains information specific to your local configuration.
3
- #
4
- # Location of the SDK. This is only used by Gradle.
5
- # For customization when using a Version Control System, please read the
6
- # header note.
7
- #Mon Dec 22 10:07:29 ICT 2025
8
- sdk.dir=/Users/phuc/Library/Android/sdk