feat: Integrate KMP Product Flavors v1.0.1#132
Conversation
Integrate kmp-product-flavors (v1.0.0) for cross-platform flavor support that aligns with existing Android application flavors.
## Changes
- Add kmp-product-flavors v1.0.0 to version catalog
- Create KMPFlavorsConventionPlugin for easy integration
- Add KmpFlavors.kt with centralized flavor configuration
- Configure demo/prod flavors matching Android application
- Add mavenLocal() for local development support
## Features
- Cross-platform flavor support (Android, iOS, Desktop, Web)
- BuildConfig generation with flavor-specific constants
- Automatic source set wiring for all platforms
- Aligns with existing Android contentType dimension (demo/prod)
## Usage
Apply to any KMP module:
```kotlin
plugins {
id("org.convention.kmp.flavors")
}
```
Build with specific flavor:
```bash
./gradlew build -PkmpFlavor=prod
```
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Apply kmp.flavors in KMPLibraryConventionPlugin (all KMP modules get flavors) - Apply kmp.flavors in KMPCoreBaseLibraryConventionPlugin - Add kmp-flavors-convention to version catalog for direct usage - Remove mavenLocal (not needed for production - plugin on Maven Central) All KMP library modules now automatically get cross-platform flavor support (demo/prod) that aligns with Android application flavors. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
v1.0.1 includes: - Fixed "Invalid Dependency on Default Compilation Source Set" warnings - Platform flavor source sets now correctly depend only on commonFlavor - Improved convention plugin integration documentation Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (6)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Superseded by PR from fork with build fix for package name generation. |
Summary
Integrates kmp-product-flavors v1.0.1 plugin for cross-platform flavor support in Kotlin Multiplatform projects.
Changes
KMPFlavorsConventionPlugin.kt- Wraps kmp-product-flavors pluginorg/convention/KmpFlavors.kt- Centralized flavor configuration (demo/prod)KMPLibraryConventionPluginandKMPCoreBaseLibraryConventionPluginkmpProductFlavors = "1.0.1"dependencyFeatures Enabled
commonDemo/,commonProd/, etc.)v1.0.1 Fixes
commonFlavorTest plan
./gradlew listFlavorsshows demo/prod variantsDocumentation
🤖 Generated with Claude Code