A simple Android mobile application that has been implemented using clean architecture alongside with Kotlin, Koin, MVVM, Retrofit, Room, Lifecycle, LiveData, Material Design, and custom pager library to retrieve news data from the NewsApi.org website. This simple mobile application purpose to just explore the clean Koin dependency injection architecture.
To run the app you have to add the NewsApi.org key. I have taken this step due to limited access to daily requests for News. Getting a key would take just a few seconds :)
- Visit NewsApi.org and register. If you have already then just SignIn and get the key.
- Copy your API key from the account section.
- Open build.gradle(Module:app)
- Find out the productFlavors section, in that section, there are two flavors available 1) development and 2) production. Please your API key into NEWS_API_KEY def variable.
build.gradle(Module:app) productFlavors{ ------ def NEWS_API_KEY development{ ------ NEWS_API_KEY = "PASTE HERE YOUR API KEY" ------ } production { ------ NEWS_API_KEY = "PASTE HERE YOUR API KEY" ------ } }
Android version targeted : Android 6.0 and above
All pull requests are welcome. For major changes, please first open an issue to discuss what you would like need to change.