Skip to content

News API Integration Sample Android Application

License

Notifications You must be signed in to change notification settings

kairos34/NewsApp

Repository files navigation

NewsApp 📰

The aim of this app is to replicate the functionality of https://newsapi.org/ and showcase an android app out of it. It connects with NEWS_API to give you top headlines and shows detail of selected headline. NewsApp consists of two pieces of UI right now:

  1. Home With Top Headlines
  2. Detail Screen of Selected Headline

Note: NewsApp is an unofficial app built only for learning and sharing the latest concepts with #AndroidDevs

Android Development and Architecture

Project is based on MVVM with Clean Architecture and SOLID principle using Repository Pattern with UseCases. Fully written in Kotlin using Android Jetpack components and libraries. App implements "Single Activity - Multiple Fragments" navigation pattern using Android Jetpack Compose.

Android Jetpack Architecture Components used:

  • ViewModel
  • LifeCycle
  • Navigation component

Dependency injection:

  • Dagger Hilt

Kotlin libraries:

  • Kotlin Coroutines (with Flows)
  • Various ktx extensions

Building the app

1.Open local.properties in the root directory

2.Add your NEWS API key as follows

API_KEY=ADD_YOUR_API_KEY_HERE

3.Run the app(debug).

If you want to play with release flavor, you have to create your own signature!!!

Used Libraries

License

Copyright (c) 2022 Alper Özaslan

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

News API Integration Sample Android Application

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages