moko-resources icon indicating copy to clipboard operation
moko-resources copied to clipboard

Support for camelCase generation

Open mustafaozhan opened this issue 2 years ago • 3 comments
trafficstars

Currently, when we have a resource, the generated variable name in Kotlin file is same as the one in xml.

Currently: ie. I have a string defined in xml <string name="name_of_string">Some string</string> and we reach it in Kotlin and Swift code with same name, respectively MR.strings.name_of_string, MR.strings().name_of_string

We should generate them in camelCase which respect to the naming convention, ie. Android ViewBinding does this for ids, or from KMP world sqldeleight does it for table names.

so expected way to reach resources in Kotlin and Swift codes should be respectively MR.strings.nameOfString, MR.strings().nameOfString

mustafaozhan avatar Jan 04 '23 15:01 mustafaozhan