News Application is basically a sample news app which is built to demonstrate the Android Architectural Components.
You can Install and test latest OnlyNews app from below 👇
It loads the news article using news api. Using retrofit we fetch all the json data provided by the api and display on the user screen.
-
Kotlin - Programming language for Android development.
-
Coroutines - For asynchronous and more
-
Android Architecture Components - Collection of libraries that help you design robust, testable, and maintainable apps.
- LiveData - Data objects that notify views when the underlying database changes.
- ViewModel - Stores UI-related data that isn't destroyed on UI changes.
- ViewDataBinding - Generates a binding class for each XML layout file present in that module and allows you to more easily write code that interacts with views.
-
Retrofit - A type-safe HTTP client for Android and Java.
-
Dagger 2 - Dependency Framework - Dagger 2 ( Check - develop branch )
-
Dagger Hilt - Dependency Framework - Dagger Hilt ( Check - dagger-hilt-migration branch )
This app uses MVVM (Model View View-Model) architecture.
- Save News Functionality
- Schedule auto pull news
- Add different news categories provided by newsapi.org
You can to contribute in this repository. Just make pull request.
I appreciate any question or comment.