Skip to content

Sample Kotlin android project using MVVM Design pattern with Data Binding, Retrofit , Live Data and Coroutine.

Notifications You must be signed in to change notification settings

ramandahiya/-Kotlin-MVVM-LiveData-Retrofit-Coroutine-DataBinding

Repository files navigation

-Kotlin-MVVM-LiveData-Retrofit-Coroutine-DataBinding

kotlin-mvvm

Languages: English

Kotlin Gradle Mockito

MVVM(Model View ViewModel) sample in Kotlin using the components ViewModel, LiveData, the libraries Retrofit, coroutine and Data Binding .

MVVM Pattern (Model View ViewModel)

Architecture

Flow

Slides

Android MVVM https://docs.google.com/presentation/d/1nTwtU8OWYs_8Q3i_3hOPAWodDpDKzO--uA-4b6LUr8g/edit?usp=sharing

Android MVVM Clean https://docs.google.com/presentation/d/1luTzvqGaMjVycEx109-AjYIj3FIpXYAt3Mnu-gjqxtc/edit?usp=sharing

Updates [August 2020]

  • Added dependency injection with Hilt, included android tests branch hilt

  • Added unit tests with Flow branch flow

  • Added kotlin Flow and fragment ktx branch flow

  • Room branch room

  • Added View Binding branch viewbinding

  • Dependencies versions were updated and ViewModelProviders class was removed (deprecated). all branches

  • Added Coroutines with retrofit and sealed classes to replace callbacks. Included testing with Coroutines. branch coroutines

  • Added Unit Testing with Mockito (27th May) Link

  • Fix load images android P by Carlos Ugaz carlosgub Link

Dependencies

References

Contributing and reporting issues

You can to contribute in this repository.

I appreciate any question or comment. Also, if you consider it useful, you can give me a star ⭐ ⭐ ⭐ ⭐ ⭐.

About

Sample Kotlin android project using MVVM Design pattern with Data Binding, Retrofit , Live Data and Coroutine.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published