News app created using Kotlin. This app uses NewsAPI for displaying and searching news. You can also bookmark news articles.
- MVVM Architecture - Seperating UI from business logic.
- Hilt - Dependency injection library.
- Room - Provides an abstraction layer over SQLite used for offline data caching.
- Flow and Coroutines - Perform asynchronous programming.
To clone the project, run
git clone https://github.com/anshtya/NewsApp.git
Open the project in Android Studio.
This project uses NewsAPI API key. To get yours visit NewsAPI. To use the api key open local.poperties
file and type
API_KEY = your_api_key
Open Constants.kt
file and replace the value of COUNTRY_CODE
const val COUNTRY_CODE = "your_country_code"
and rebuild the project.