hoangduongit1997 / mp3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android Clean Architecture Diagram

Document Reference

The Clean Architecture include 4 main layer: App, Data, Domain, Entity. Aside from these layers, it has some layer 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, Realm...
  • Shared Preference
  • Internal/External Storage
  • Repository Implementation
  • Mapper

Domain layer

  • Kotlin
  • Business logic
  • Repository Interface

Entity layer

  • Kotlin
  • Model

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

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

About


Languages

Language:Kotlin 100.0%