Skip to content
/ NewsApp Public

News App Sample - Using Android Architectural Components using NewsApi.org

Notifications You must be signed in to change notification settings

prbale/NewsApp

Repository files navigation

NewsApp

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 👇

News Application

Screenshots

MAD Score

About

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.

Built With 🛠

  • 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 )

Architecture

This app uses MVVM (Model View View-Model) architecture.

Future Scope

  1. Save News Functionality
  2. Schedule auto pull news
  3. Add different news categories provided by newsapi.org

Contributing and reporting issues

You can to contribute in this repository. Just make pull request.

I appreciate any question or comment.