/News-App

A simple NewsApp built using MVVM Architecture with Kotlin Flow and LiveData

Primary LanguageKotlinMIT LicenseMIT

NewsApp is simple App which uses NewsAPI to get top headlines for country you live in or you can search for a specific news. Focus of this app is to demonstrate (Not necessarily the best practices)

  • MVVM Architecture with Kotlin Flow and LiveData

Screenshots

NewsApp Home NewsApp Search

Setup

You will require Android Studio 3.0 (or newer).

  • Git Clone the repo
  • Get the API Key from NewsAPI

  • Find the file named HomeDataSource and replace YOUR_API_KEY with your api key
  • Build app and enjoy :)

Architecture

NewsApp Home

Libraries and Services Used

Libraries

  • Retrofit
  • Glide
  • Kotlin Coroutines/Flow
  • ViewModel and LiveData

Services