/Compose-news-app

Application that displays news, also by category and source and allows you to see the detail.

Primary LanguageKotlin

kotlin Android API Build status

News App

⭐ Features

  • Display news by us country
  • Display news by categories
  • Display news by sources
  • Display news detail

🏃 For run the app just clone the repository and execute the app on Android Studio.

Requirements to install the app

  • Having an internet connection
  • Using phones with Android Api 23+
This application was developed using Kotlin and uses the following components:
  • Jetpack compose
  • Coroutines
  • Clean architecture (Domain, Data, UI)
  • MVVM
  • Repository pattern
  • StateFlow
  • Navigation component by compose
  • Dagger Hilt (Dependency injection)
  • Unit testing (Truth by google)
  • UI testing by compose
  • Mock web server
  • Moshi
  • Retrofit
  • Dagger hilt ui testing
  • App center

Screenshots Light theme

Home Categories Sources Detail
Home Categories Sources Detail

Screenshots Dark Mode

Home Categories Sources Detail
Home dark Categories dark Sources dark dark Detail dark

🎯 Architecture

The application is built using Clean Architeture pattern based on Architecture Components on Android. The application is divided into three layers:

Clean Arquitecture

  • Domain: This layer contains the business logic of the application, here we define the data models and the use cases.
  • Data: This layer contains the data layer of the application. It contains the database, network and the repository implementation.
  • UI: This layer contains the presentation layer of the application like fragment, activity, viewmodel etc.

License

MIT

Bikcodeh