Skip to content

Sample app to demonstrate offline feature using Kotlin, Repository pattern, Room Database, Retrofit, Dagger2, LiveData, Coroutines, Mockito, Espresso, ViewModel and DataBinding in a multi module Project.

Notifications You must be signed in to change notification settings

shahbazhashmi/GitHub-Popular

Repository files navigation

GitHub-Popular

This Repository can be also used as a Template!!!

Sample app to demonstrate offline feature using Kotlin, Repository pattern, Room Database, Retrofit, Dagger2, Coroutines, LiveData, Mockito, Espresso, ViewModel and DataBinding in multi module project.

The app fetches popular GitHub repositories data using Retrofit HTTP client and stores it in local Room Database. All bussiness logic i.e how to serve and from where to serve data are written in repository. Internally, network bound resource is being used to decide source of the data.

For dependency injection, Dagger2 has been used. And functional testing is done by using Espresso.

It also shows basic information of the repository i.e. language (with color), number of stars, and number of forks.

Releases

No releases published

Packages

No packages published