Trending Github Repositories in Android App
This App uses external API for getting the data. API Link - https://rapidapi.com/targaryen.akane/api/github-trending
Generate personal API key using above link and store it in Secret.kt(Singleton) as
const val API_KEY = "<_GENERATED_API_KEY>"
- See trending repositories of Github
- Filter based on Author, Project Name, Description or Language
- Pattern Followed : MVVM
- API Service for fetching data
- Viewmodel to persist and handle state of UI
- UI representing the Trending repositories
Package(com.pandemonium.gittrends)
- service
- models
- BuiltBy.kt
- ReposItem.kt
- network
- ApiInterface.kt
- RetrofitInstance.kt
- models
- utils
- Constants.kt
- Secret.kt(Need to be added manually with generated API key)
- views
- adapters
- TrendRepoAdapter.kt
- viewholders
- TrendReposViewHolder.kt
- viewmodels
- MainViewModel.kt
- MainActivity.kt
- adapters
- MVVM Architecture
- Jetpack Library components - LiveData, Lifecycle aware components, Viewmodel
- Coroutines for multi-threading
- Retrofit for fetching API





