tahaak67 / KMP-Flavorizr
PublicA Gradle plugin for configuring build flavors (variants) across Android and iOS in Kotlin Multiplatform projects.
KMP-Flavorizr is a Gradle plugin for Kotlin Multiplatform projects that automates the setup of build flavors across Android and iOS. Instead of manually configuring product flavors for Android and build configurations for iOS, developers define their flavors once in a simple configuration block, and the plugin generates all the necessary platform-specific filesโincluding app icons, manifest entries, Xcode schemes, and a shared Kotlin enum for use across all platforms.
How It Works
You find KMP-Flavorizr while looking for a way to manage app flavors across Android and iOS without repeating the same setup work for every project.
You add the plugin to your Kotlin Multiplatform project using a simple plugin declaration in your build file.
Instead of configuring each platform separately, you write all your flavors (like 'development', 'staging', 'production') in a single, readable configuration block that covers both Android and iOS.
With one command, the plugin reads your configuration and creates all the necessary platform-specific files automatically.
App icons are resized, manifest files are updated, and product flavors are defined in your build configuration.
Xcode build configurations, schemes, and asset catalogs are created so you can switch flavors directly in Xcode.
The plugin generates a special Kotlin enum that works across all your platforms, so your shared code can easily know which flavor is running.
You commit the generated files and can now build different versions of your app for each flavor, switching between them in Android Studio, Xcode, or from the command line.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.