BuildKonfig
BuildKonfig copied to clipboard
BuildConfig for Kotlin Multiplatform Project
related: #70 - [ ] finalize DSL design - [ ] Groovy DSL - [ ] Kotlin DSL - [ ] deprecate other methods - [ ] update README -...
https://handstandsam.com/2022/04/13/using-the-kotlin-dsl-gradle-plugin-forces-kotlin-1-4-compatibility/
``` def configureBuildKonfigFlavorFromLocalProperties() { if (project.gradle.startParameter.projectProperties.containsKey("buildkonfig.flavor")) { // prefer cli parameter return } if (Files.exists(Paths.get("$project.rootDir/local.properties"))) { def key = "buildkonfig.flavor" // load buildkonfig.flavor if exists def localProperties = new Properties()...
#61 copied from https://github.com/yshrsmz/BuildKonfig/pull/61#issuecomment-947685297, by @TobiasPr --- Why did you decide that the hierarchical higher source set always has precedence? I think this is counter intuitive. I think about as...
Not sure the DSL below is possible, but something like this ```gradle buildKonfig { defaultConfigs { // load all values as string fromProperties file('./secrets.properties') { // specify type propertyAs type:...
Currently the multiplatform plugin is required to use BuildKonfig. It would be nice to be able to use BuildKonfig in non-multiplatform projects as well, namely in standalone JVM, JS, or...
Hi, it would be great to add nullable support. Any thoughts about this? If help is needed I could try.
CI
- [x] run tests - [x] cache - [ ] ktlint - [x] releasing