kmp-flavor-environment
Installation
SKILL.md
When to Use This Skill
Use when you need to:
- Add dev / staging / prod environment configs to a KMP project
- Wire Android product flavors to BuildKonfig values (
BASE_URL,API_KEY,DEBUG) - Inject secrets at build time from
local.propertiesor CI env vars - Access environment config from
commonMainwithout platform-specific code
Requires: kmp-feature-scaffold project structure.
Trigger keywords: dev/staging/prod, environment config, BuildKonfig, product flavors, API key secrets, build variants, AppConfig, env switching, multi-environment, staging URL, API endpoint config, debug config, production config, environment variable, build type config, switch API URL, hide API keys, config per environment.
Freshness rule: BuildKonfig plugin versions and AGP product flavor APIs change — recheck the BuildKonfig repo and version catalog before upgrading.