Skip to content
项目

WaheedNazir/Kotlin-MVVM-Architecture

在 GitHub 查看

关于

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

学习与教育

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

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


探索相关项目

加载中…