android-kmp-shared
Installation
SKILL.md
Android Kotlin Multiplatform (KMP) ๐๐ค
Professional patterns for sharing code between Android and iOS using the next-generation Kotlin Multiplatform technology.
โก When to Use
- Shared Business Logic: Centralizing ViewModels, Use Cases, and Domain Models.
- Data Layer Sharing: Using Ktor (Network) and SQLDelight (Database) across platforms.
- Modularization: Creating a cross-platform library module.
- Migration: Moving from 100% native to shared logic.
- Validation: Building one logic for both apps (e.g., Auth, Calculations).
๐๏ธ The Multiplatform Architecture
commonMain: The heart of the app. Pure Kotlin code shared by all platforms.androidMain: Platform-specific implementation for Android.iosMain: Platform-specific implementation for iOS (via Kotlin/Native).