moko-resources
moko-resources copied to clipboard
Align naming conventions with Android
trafficstars
MOKO-R's naming slightly different from the Android resources counterpart, which can cause some hiccups for developers migrating from Android to Multiplatform. Some parts that are affected:
MR.stringsinstead ofR.stringbaseinstead ofstringdirectory namefontsinstead offontdirectory name@Composable fontFamilyResourcefunction instead of plainFontFamily()functions (that can be called outside of Composables)
Aligning these names would make it easier for developers to migrate, and could avoid some papercuts.
Likely, keeping some backwards compatibility for existing projects would be useful.