@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.
package/compose/build.gradle.kts
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
40
|
+
// try next candidate
|
|
44
41
|
}
|
|
45
|
-
}
|
|
42
|
+
}
|
|
46
43
|
ResourceCache.JSON(content)
|
|
47
44
|
} as ResourceCache.JSON
|
|
48
45
|
|
package/gradle.properties
CHANGED
package/package.json
CHANGED
|
@@ -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
|