kflavor
A Flutter tool to automate and simplify multi-flavor app configuration for Android, iOS, and cross-platform development. kflavor helps you manage build flavors, Firebase configs, icons, Gradle and Xcode settings, and generates IDE run/debug configurations for Android Studio and VSCode.
Features
- Generate and manage Android/iOS build flavors from a single YAML file
- No need to maintain multiple messy looking
main.dartentrypoint. uses singlemain.dartentrypoint. - Automatic configuration of Gradle (Kotlin & Groovy) and Xcode projects
- Firebase integration and configuration per flavor
- Icon generation for each flavor
- Generates Android Studio and VSCode run/debug configurations
- Supports custom arguments for CLI automation
- Easy integration with CI/CD pipelines
- Eliminates the need to maintain multiple
AndroidManifest.xmlfiles. - Splash screen generation
Getting started
- Add kflavor to your dev dependencies in
pubspec.yaml:dev_dependencies: kflavor:
- Run
dart pub getorflutter pub get. - Create a
flavors.yamlfile in your project root or use the Prepare YAML tool to generate one. - Run the CLI tool:
dart run kflavor generate
Note: Recent releases introduce two explicit subcommands — generate and configure — that make automating specific workflows easier (details below). When no subcommand is provided kflavor defaults to the generate workflow.