Skip to content

willkopec/MVVMNewsAppInCompose

Repository files navigation

News App

Welcome to the News App! This Android application provides a seamless experience for staying updated with the latest news across various categories. Written in Kotlin and following the MVVM architecture pattern, it offers a modern and efficient approach to news consumption.

Features

  • Category-based News: Explore news articles across different categories including Breaking, Economic, Sports, and more, providing comprehensive coverage of various topics.
  • Save Articles: Save your favorite news articles for later reference, ensuring you never miss important updates.
  • Search Functionality: Easily search for news articles using keywords, making it convenient to find specific information.
  • Light/Dark Mode: Switch between light and dark mode themes seamlessly with the tap of a button!

Technologies Used

The News App leverages several technologies and libraries to enhance performance and user experience:

  • Room: For local database storage, facilitating seamless article saving and retrieval.
  • Dagger Hilt: Used for dependency injection, ensuring modular and maintainable code.
  • Retrofit: For handling network requests, enabling smooth communication with news APIs.
  • Compose: Utilized for building the user interface with modern and declarative UI components.
  • Coroutines: For asynchronous programming, enabling efficient handling of long-running tasks such as network requests.
  • Moshi: For JSON parsing, simplifying the process of converting JSON data into Kotlin objects.
  • Coil: Used for image loading and caching, enhancing performance and optimizing network bandwidth.
  • Timber: For logging purposes, aiding in debugging and monitoring application behavior.

Installation

To run the News App locally, follow these steps:

  1. Clone this repository to your local machine.
  2. Open the project in Android Studio.
  3. Build and run the application on an Android emulator or a physical device.

Getting Started

Once the News App is installed and running, you can:

  • Browse news articles by selecting different categories.
  • Save articles by tapping on the bookmark icon.
  • Use the search functionality to find articles based on keywords.

Feedback

All feedback or suggestions for improving the News App is welcome. Feel free to leave feedback/suggestions on what could be better in the issues section or feel free to send a PR.

Images

mvvmnewsDark1 mvvmnewsLight1 github3 mvvmsaveddark mvvmsavedlight1 mvvmsearchdark mvvmsearchlight

Application when there is no Internet Connection:

news app no connection