tahaak67

A Gradle plugin for configuring build flavors (variants) across Android and iOS in Kotlin Multiplatform projects.

12
1
89% credibility
Found May 19, 2026 at 16 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Kotlin
AI Summary

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

1
๐Ÿ” You discover the plugin

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.

2
๐Ÿ“ฆ You add it to your project

You add the plugin to your Kotlin Multiplatform project using a simple plugin declaration in your build file.

3
โœจ You define your flavors in one place

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.

4
๐Ÿš€ You run the generator

With one command, the plugin reads your configuration and creates all the necessary platform-specific files automatically.

5
Your app gets configured for each platform
๐Ÿค–
On Android

App icons are resized, manifest files are updated, and product flavors are defined in your build configuration.

๐ŸŽ
On iOS

Xcode build configurations, schemes, and asset catalogs are created so you can switch flavors directly in Xcode.

6
๐Ÿ”— A shared flavor enum is created

The plugin generates a special Kotlin enum that works across all your platforms, so your shared code can easily know which flavor is running.

๐ŸŽ‰ Everything is ready to build

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.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 16 to 12 stars Sign Up Free
Repurpose This Repo

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 Repurpose
AI-Generated Review

What is KMP-Flavorizr?

KMP-Flavorizr is a Gradle plugin that brings product flavors to Kotlin Multiplatform projects without the usual cross-platform configuration headache. Instead of manually setting up Android product flavors, iOS build configurations, and shared code variants separately, you define everything once in a Kotlin DSL block and the plugin generates all the platform-specific files for you. It handles Android manifest modifications, launcher icon resizing, Xcode scheme creation, xcconfig file generation, and even Firebase configuration copying. The plugin also auto-generates a Kotlin enum representing your flavors that you can use in shared code to branch logic based on the active build variant.

Why is it gaining traction?

The KMP ecosystem has long lacked a unified solution for multi-environment builds. Developers typically piecemeal Android flavor dimensions with manual iOS configuration, often resorting to shell scripts or manual steps when adding new variants. KMP-Flavorizr automates the tedious iOS side entirely using Ruby scripts and the xcodeproj gem, which is where most flavor setup pain concentrates. Its idempotent design means you can safely re-run it when adding flavors, and it handles AGP 9's split project structure automatically. The generated Flavor enum gives shared code real type safety around variants, which is something many teams have been building ad-hoc workarounds for.

Who should use this?

KMP developers maintaining apps with separate dev, staging, and production environments will see the biggest benefit. Teams using Firebase with per-environment configuration files will appreciate the automatic google-services.json and GoogleService-Info.plist handling. If you're currently managing iOS build variants through Xcode GUI or fragile scripts, this plugin replaces that workflow entirely. However, if your project has no flavors or only targets a single platform, the added complexity is not worth it.

Verdict

KMP-Flavorizr solves a genuine pain point with a thoughtful, well-documented implementation. The credibility score of 0.8999999761581421% reflects its early stage: only 12 stars, a single maintainer, and testing limited to local use. Back up your project before trying it, and commit the generated files to version control as the documentation suggests. For teams actively struggling with KMP flavor setup, this is worth evaluating now rather than building yet another internal workaround.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.