Android & KMP Clean Architecture (CN)

0•

Implements scalable Android and Kotlin Multiplatform (KMP) projects using Clean Architecture patterns, including UseCases, Repositories, and modular dependency rules.

This skill provides specialized guidance for architecting robust Android and Kotlin Multiplatform (KMP) applications using Clean Architecture principles. It facilitates the creation of clear module boundaries, separates business logic from platform frameworks, and implements standardized patterns for data management using Room, SQLDelight, and Ktor. By enforcing dependency inversion and the UseCase/Repository pattern, it helps developers build maintainable, testable codebases suitable for both single-platform Android apps and cross-platform KMP projects, with specific focus on Chinese-language documentation and conventions.

Key Features

01Defines clear module structures and dependency rules for domain, data, and presentation layers.
02Provides DI setup examples using Koin for KMP or Hilt for pure Android.
03Implements UseCase and Repository patterns for clean separation of business logic.
04Configures data layer persistence with Room and SQLDelight or networking with Ktor.
05Establishes standardized error handling using Result and Try patterns.
060 GitHub stars

Use Cases

01Designing a reactive data layer that bridges local databases and remote API sources.
02Migrating legacy business logic from ViewModels into reusable, testable UseCases.
03Setting up the initial module structure and dependency graph for a new Android or KMP project.