Skip to content

A simple World News app based on MVVM architecture, fully functional with pagination, progress indicators, error messages, caching the results offline, process death with features like Coroutines, Flows, and Channels..

License

Notifications You must be signed in to change notification settings

boy12hoody/SimpleMVVMNewsApp

Repository files navigation

Simple MVVM News App

A simple World News app based on MVVM architecture.
Re-upload of the old project for demonstration purpose. It was a part of my process of learning Modern Android Development. This project has reached its end of life.

API GitHub Workflow Status License Telegram

Screenshots

Download

Go to the Releases to download the latest APK (Demo Api Key included).

Build And Run

  1. Get a free API Key at NewsAPI.org
  2. Clone the repo
    git clone https://github.com/boy12hoody/SimpleMVVMNewsApp.git
  3. From Android Studio, select Import Project, then select the root folder of the cloned repository.
  4. Click Make Project to build the app and download all the required dependencies.
  5. Replace API key with yours in api/NewsApi
    const val API_KEY = "Paste_Your_Key_Here"
  6. Click Run app to install the app on your device or emulator.

🛠 Tech stack & Open-source libraries

  • Kotlin - First class and official programming language for Android development.
  • Retrofit 2 - A type-safe HTTP client for Android and the JVM.
  • Coroutines - For asynchronous and more..
  • Flow - A cold asynchronous data stream that sequentially emits values and completes normally or with an exception.
  • NewsAPI - Locate articles and breaking news headlines from news sources and blogs across the web with JSON API.
  • Glide - An image loading and caching library for Android focused on smooth scrolling.
  • Android Architecture Components - Collection of libraries that help you design robust, testable, and maintainable apps.
    • Jetpack -
      • Room - SQLite object mapping library.
      • Paging 3 - the library helps us load and display pages of data from a larger dataset from local storage or over network.
      • Navigation - Navigation component designed for apps that have one main activity with multiple fragment destinations.
      • ViewModel - Stores UI-related data that isn't destroyed on UI changes.
      • ViewBinding - 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.
  • Dependency Injection -
    • Hilt-Dagger - Standard library to incorporate Dagger dependency injection into an Android application.
    • Hilt-ViewModel - DI for injecting ViewModel.
  • Material Components for Android - Modular and customizable Material Design UI components for Android.

Architecture

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

Contact

If you have questions or need any help, contact me on Telegram

License

MIT License

    Copyright (c) 2021 Ismatov Xurshid

    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in all
    copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    SOFTWARE.

About

A simple World News app based on MVVM architecture, fully functional with pagination, progress indicators, error messages, caching the results offline, process death with features like Coroutines, Flows, and Channels..

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages