Skip to content

despectra/github-repoview

Repository files navigation

GitHub friends repositories viewer

General description

This android app allows you to see the lists of your friends repositories

Features

  • Displaying list of your friends
  • Showing the list of repositories of selected friend
  • Showing the list of branches of selected repository
  • All loaded data is cached so you can browse lists even without internet connection
  • Simple material design theme
  • Lists filtering feature using search input in appbar

Workflow

Open app and enter your github login and password alt text

After that you will see the list of your friends (followers) alt text

Select any friend and app will show you his repos alt text alt text

Select repository from list and you will see the list of branches of this repo alt text

You can also filter these lists using search button in appbar alt text

Architecture

  1. All application activities uses Loaders API to load data from both network and cache
  2. There are 2 types of loaders: local and network
  • Local loaders retrieves data from cache backed by Realm database
  • Network loaders do REST API calls using Retrofit
  1. Each activity (apart from LoginActivity) has instances of these loaders and callbacks for them
  2. When network loader retrieves a list of items it uses CacheSyncManager instance to refresh cache with newly retrieved items
  3. When network loader completes request, it forces local loader to reload data
  4. Both local and network loaders use the same data models classes thanks to the compatibility of Realm and Retrofit
  5. Activities render only local loaders results. It uses RecyclerView and ListAdapter to display items

Dependencies

This application uses a several external libraries:

About

This android app allows you to view your followers repos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages