项目作者: gerin98

项目描述 :
News App written in Kotlin to showcase Android best practices
高级语言: Kotlin
项目地址: git://github.com/gerin98/NewsCast.git
创建时间: 2020-06-07T21:42:08Z
项目社区:https://github.com/gerin98/NewsCast

开源协议:MIT License

下载


license download

A modern News App for Android written in Kotlin

NewsCast lets you find and and read articles you care about natively within the app. Browse from a wide assortment of categories and save interesting articles for later!

Table of Contents

1. Main Features

2. Api

3. Getting Started

4. Tech Stack

5. Even More Features

6. Credits

7. Author

8. License

Main Features :bulb:

Beatiful News Viewer

Read your news articles directly within the app. No redirects. No switching back and forth. Just you and your news.

Browse News from a variety of curated categories

Simply choose a news topic from the sidebar to browse the latest articles.

Save important news for later

We don’t always have time to read through the whole article. Double tap to add an article to your favourites and come back to it later.

Search at your fingertips

Can’t find what you’re looking for? Search for keywords to find articles for practically any topic.

Api :newspaper:

NewsCast is powered by Event Registry’s api to search and provide relevant news articles.

Getting Started :rocket:

Unfortunately, I can’t afford to stay subscribed to Event Registry’s API to keep this project running indefinitely. Don’t worry though, you can sign up to obtain your own API key to run this project!

  1. Sign up for an account on Event Registry. You can either use a Free Trial or subscribe to one of their Monthly Plans.
  2. Install Android Studio.
  3. Clone this repo.
    git clone https://github.com/gerin98/NewsCast.git
  4. Open the project in Android Studio.
  5. Create a file called gradle.properties if it doesn’t already exist in your root project directory.
  6. Add your API key for event registry into this file like this: API_KEY=YOUR_API_KEY
    Your file should look something like this:
    1. android.useAndroidX=true
    2. android.enableJetifier=true
    3. API_KEY=YOUR_API_KEY
  7. That’s it! Sync and rebuild your project with Gradle and you’re good to go!

Tech Stack :hammer_and_wrench:

  • Language
    • Kotlin - First class and official programming language for Android development.
  • Architecture
  • Dependency Injection
    • Koin - A pragmatic lightweight dependency injection framework.
  • Network
    • Retrofit - A type-safe HTTP client for Android and Java.
    • OkHttp - an HTTP client that’s efficient by default.
    • Moshi - a modern JSON library for Android and Java.
  • Database
    • Room - robust database access while harnessing the full power of SQLite.
  • UI
    • Databinding - bind UI components in your layouts to data sources in your app.
    • Material Design - a visual language that synthesizes the classic principles of good design with the innovation of technology and science.
    • Icons - delightful, beautifully crafted symbols for common actions and items.
  • Image loading
    • Glide - An image loading and caching library for Android focused on smooth scrolling.
  • Logging
    • Timber - a logger with a small, extensible API which provides utility on top of Android’s normal Log class.
  • Testing
    • Robolectric - a framework that brings fast and reliable unit tests to Android.
    • Stetho - a sophisticated debug bridge for Android applications.

Even more features

Customize your news reader and read comfortably

NewsCast allows you to change your background colour and text size in Settings.

Manage all your favourites

Save your favourites and come back to them later. Favourites are available to read offline. When you’re done, simply select them to remove them from your list.

Multiple language support

NewsCast provides news in 35 different languages.

Credits :closed_book:

Icons made by Freepik from www.flaticon.com

Inspired by Fortnightly

Author :pencil2:


Gerin Amalaraj

Linkedin

License

  1. MIT License
  2. Copyright (c) 2020 Gerin Amalaraj
  3. Permission is hereby granted, free of charge, to any person obtaining a copy
  4. of this software and associated documentation files (the "Software"), to deal
  5. in the Software without restriction, including without limitation the rights
  6. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  7. copies of the Software, and to permit persons to whom the Software is
  8. furnished to do so, subject to the following conditions:
  9. The above copyright notice and this permission notice shall be included in all
  10. copies or substantial portions of the Software.
  11. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  12. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  13. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  14. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  15. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  16. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  17. SOFTWARE.