News MVVM is an app I made with the intention to exercise and learn the most recent technologies that are used to build Android applications.
This app uses newsapi.org to display the breaking news for the country the user has chosen. The user may open any article, read it on the app and save it in the database. The breaking news screen may be refreshed by swiping it up. On the Favorite screen, any article saved may be deleted by swiping it to any side (left or right). On the search screen, it's possible to make a news research based on the country selected.
preview_app.mp4
- 100% Kotlin
- MVVM architecture
- LiveData
- ViewBinding
- Single Activity with multiple fragments
- Android Navigation components
- Retrofit
- Moshi for JSON convertion
- Dagger-Hilt for dependency injection
- Coroutines
- Paging3 for pagination
- Coil for image display
- Room for database storage
- DataStore for preferences storage
Before running the app, you should make an account on https://newsapi.org/ and get your own API key. After that, go to the Constants.kt file and assign your key to the API_KEY attribute.
Flag icons used in this app were created by Freepik - Flaticon