KEnv Extension
Gradle DSL extension for configuring the KEnv plugin v2.
Usage in build.gradle.kts:
kenvConfig {
directory.set(file("kenv"))
environments.set(listOf("dev", "staging", "production"))
generatedPackageName.set("com.example.config")
}Content copied to clipboard
Properties
Link copied to clipboard
List of environment names to process.
Link copied to clipboard
Name of the generated Kotlin object class. Default: "EnvConfig".
Link copied to clipboard
Required: package name for the generated Kotlin source file.
Link copied to clipboard
Android variant mapping configuration block.