Skip to content

7arj/NewsApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Android News App (Kotlin, MVVM)

An Android news application built using Kotlin and MVVM architecture, which fetches and displays real-time news from a public REST API.
The app demonstrates clean architecture, proper state handling, and best practices used in production Android apps.


Features

  • MVVM Architecture (Model–View–ViewModel)
  • REST API integration using Retrofit
  • Kotlin Coroutines for asynchronous network calls
  • RecyclerView with CardView-based UI
  • Image loading & caching using Glide
  • Loading state handling with ProgressBar
  • Error state handling (network / API failures)
  • Click navigation to open full news articles in browser
  • Secure API key handling using Gradle BuildConfig

🧱 Architecture

The app follows MVVM (Model–View–ViewModel) to ensure separation of concerns and testability.


Tech Stack

  • Language: Kotlin
  • Architecture: MVVM
  • Networking: Retrofit + Gson
  • Async: Kotlin Coroutines
  • UI: RecyclerView, MaterialCardView, ViewBinding
  • Image Loading: Glide
  • API: GNews API

Getting Started

  1. Clone the repository

git clone https://github.com/7arj/NewsApp.git
  1. Open in Android Studio

  • Android Studio Koala (2024.1.1+) recommended
  1. Add API Key

Create / update gradle.properties (project root):

GNEWS_API_KEY=your_api_key_here

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages