Skip to content

nvquangth/the-movie-db

Repository files navigation

Android Clean Architecture Sample

Document Reference

The Clean Architecture include 4 main layer: App, Data, Domain, Entity. Aside from these layers, it has 2 layer Common and KVUIKit additional which is utilities layers.

App layer

  • Android Appliaction
  • View(Activity, Fragment, Service...)
  • ViewModel
  • Mapper

Data layer

  • Android Libs * 3nd Libs
  • API remote
  • Database local: Room, Real...
  • Shared Preference
  • Internal/External Storage
  • Repository Implementation
  • Mapper

Domain layer

  • Kotlin
  • Business logic
  • Repository Interface

Entity layer

  • Kotlin
  • Model

KVUIKit

  • Custom UI component

Common

  • Class Utils

Jetpack component

view more component at https://developer.android.com/jetpack/androidx/explorer

UI component

how to use theme, style

sample: https://github.com/material-components/material-components-android-examples

API Network

Database

Thread & Asynchronous

Dependency Injection

Images

Testing

run test coverage: ./gradlew clean testDevDebugUnitTestCoverage

view jacoco report at: app/build/reports/jacoco/testDevDebugUnitTestCoverage/html/index.html

view more at gradle.build.kts file

Style coding

./gradlew ktlintCheck

./gradlew ktlintFormat

CI/CD

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages