moko-resources
moko-resources copied to clipboard
Support for camelCase generation
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