Android app to fetch issues for a given repository
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Android app to fetch issues for a given GitHub repository. Please refer to the following posts describing the code in details:

  1. Getting started with android architecture components and MVVM: Check corresponding branch feature_mvvm and master
  2. Getting started with android architecture components and MVVM Part 2- Dependency Injection: Check branch mvvm_part2_di

The app demonstrates the usage of MVVM architecture pattern using android architecture component library and LiveData and Repository pattern, inspired from Google recommended architecture pattern from I/O 17 .

MVVM android architecture components

MVVM pattern ensures that the UI data is persisted during configuration changes. View (Activity or Fragment) uses LiveData to observe data changes and react accordingly.

LiveData is used to notify the View of the data chnages/ error which may happen in the ViewModel while fetching the data using API Service. Retrofit is used to make API calls.

Repository class abstracts the underlying datastores implementation (be it SQLite based or fetching from remote API or both) from the rest of the code. This way the code is decoupled from the underlying datastore implementations.

Libraries Used

  1. Android architecture components
  2. Retrofit 2
  3. Dagger 2