Skip to content

Android Architecture Design Patterns using Kotlin, MVVM, Hilt, LiveData, Room, MediatorLiveData, NetworkBoundResources, Retrofit, AndroidX, ViewModels, Dependency Injection using Dagger2, Repository pattern.

License

Notifications You must be signed in to change notification settings

WaheedNazir/Kotlin-MVVM-Architecture

Repository files navigation

Kotlin MVVM Architecture

A sample app that display list of Google news. The purpose of this project to illustrate the usage of MVVM architecture design pattern that follow the best practices of Object Oriented Design Patterns using the following technology stack.

  1. MVVM Architecture Design Pattern
  2. Hilt (Dependency Injection)
  3. Flow, Live Data, MediatorLiveData
  4. Room Database
  5. Retrofit
  6. Repository Pattern
  7. AndroidX
  8. Glide
  9. JetPack Libraries

Note: Update your NEWS_API_KEY in credentials.properties

Demo

Architecture

MVVM Architecture

NetworkBoundResource

MVVM Architecture

Mediator LiveData

MVVM Architecture

Other samples of MVVM using Kotlin

Author

Waheed Nazir

Sources

  1. Google's official doc
  2. Google's Codelab
  3. Architecture Components Samples
  4. Jose Alcérreca's post at Medium

If you want to support this repo, you can buy the developer a coffee. More information at: buy-me-a-coffee

Buy Me A Coffee