string-code-ktx is a set of String Kotlin extensions related to template based code generation.
This repository is hosted via jitpack since it's by far the easiest delivery method while also being pretty transparent to the developer.
Make sure you have added jitpack to the list of your repositories:
maven("https://jitpack.io")
Then simply add the mvel-ktx
dependency
dependencies {
compile("com.github.vishna:string-code-ktx:master-SNAPSHOT")
}
val className = "main_activity".camelize()
print(className) // prints "MainActivity"
For more documentation on API see string_code.kt and for more use examples see string_code_tests.kt