buildkonfig-secrets-flavors

Installation
SKILL.md

Build-time configuration across a multiplatform app

Android's generated config object does not exist in common code. BuildKonfig fills that gap: it generates one object, visible from commonMain, from values the build script supplies.

buildkonfig {
    packageName = "com.example.app"
    exposeObjectWithName = "BuildKonfig"
    defaultConfigs {
        buildConfigField(STRING, "versionName", libs.versions.version.name.get())
        buildConfigField(INT, "versionCode", libs.versions.version.code.get())
        // …plus the secret-bearing fields below
    }
}

The result is a plain public object of public vals in the package you named, so every platform and every source set reads it identically — no expect/actual, no platform accessor.

Installs
2
GitHub Stars
35
First Seen
6 days ago
buildkonfig-secrets-flavors — maxrave-dev/kotlin-footguns