yshrsmz / BuildKonfig

BuildConfig for Kotlin Multiplatform Project
Apache License 2.0
740 stars 33 forks source link

Add an ability to change the name of the generated object #32

Closed yshrsmz closed 4 years ago

yshrsmz commented 4 years ago

to implement #31, we first need to add an option to change the name the generated object.

API could be

buildkonfig {
    packageName = 'com.example.app'
    objectName = 'AwesomeConfig'  // defaults to 'BuildKonfig'

    defaultConfigs {
        buildConfigField 'STRING', 'name', 'value'
    }
}

🤔