Buildkonfig Secrets Flavors

Wire build-time configuration into a Kotlin Multiplatform app with BuildKonfig — secrets read from an untracked local properties file and injected as generated constants, with the no-secrets branch getting empty strings so the feature disables itself instead of failing the build, plus the task-dependency wiring newer Gradle demands for generated sources; reach for it when common code needs a compile-time constant, when an open-source build must not carry credentials, or when a build fails on an implicit dependency between a generated-source task and a consumer.

maxrave-dev Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/buildkonfig-secrets-flavors commit 1b48eeca3f

Frequently asked questions

npx skillmds@latest add maxrave-dev/buildkonfig-secrets-flavors