Android Clean Architecture & KMP Patterns

0•

Implements standardized Clean Architecture patterns for Android and Kotlin Multiplatform projects to ensure maintainable and testable codebases.

This skill provides comprehensive guidance for architecting Android and Kotlin Multiplatform (KMP) applications using Clean Architecture principles. It facilitates the creation of robust modular structures, enforces strict dependency rules where the domain layer remains pure Kotlin, and provides implementation patterns for UseCases, Repositories, and Data Sources. By offering templates for modern mobile stacks—including Jetpack Compose, Room, SQLDelight, Ktor, Koin, and Hilt—it helps developers avoid common anti-patterns such as circular dependencies or leaking framework logic into the business layer.

主要功能

01Data layer implementation using Room, SQLDelight, and Ktor
020 GitHub stars
03Dependency Injection configuration for Koin and Hilt
04Standardized multi-module project layouts for Android and KMP
05Domain-driven design patterns with UseCases and Repository interfaces
06Comprehensive error handling using Result/Try patterns and model mapping

使用场景

01Refactoring legacy monoliths into decoupled, testable Clean Architecture layers
02Implementing reactive data flows using Kotlin Coroutines and Flows across project modules
03Bootstrapping a new multi-module Android or Kotlin Multiplatform project structure