adilmas13 / android-architecture-hilt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android MVVM Architecture (HILT)

Clean architecture for android using dependency injection. Reference : https://antonioleiva.com/clean-architecture-android/

Consist of three main layer (3 Project modules with dependency between them)

  • Presentation - UI (Activity, Fragment, ViewModel, ViewModelFactory)
  • Domain (Usecase)
  • Data - Data source (Rest API, Local DB)

Architecture uses dependency injection library HILT.

Dependencies in Use

  • Hilt (Dependecy Injection)
  • LiveData + ViewModel
  • Coroutines + Flow
  • Kotlinx serialization (Json Serialization Deserialization)
  • Retrofit (Rest API Library)
  • Coil (Image Loader)

Add On

  • ktlint is integrated to maintain kotlin coding standards
  • Github action to perform the following
    • Run KtLint
    • Run Unit test cases
    • Build Debug APK
    • Save APK as a Github Artifact

All References can be found in this wiki

About


Languages

Language:Kotlin 99.4%Language:Shell 0.6%