Giter VIP home page Giter VIP logo

news-feed-app's Introduction

Build Status

News Feed App

Simple Android app, displaying list of latest news from chosen news sources. Main features:

  • 70 news sources in 9 categories
  • Share an article function
  • Support both portrait and landscape screen orientation
  • Two pane mode for tablets

Screenshots

Screenshot Screenshot Screenshot

Technical Details

App built with MVI architecture.

Presentation layer is done a bit different from classic MVP. There is Model class instance in Presenter, that holds current view state. Presenter does not send any commands to view, instead of this, presenter changes Model properties, and than View render changes. View input events sent to presenter through event method.

Domain layer works much more like MVP + Clean Architecture approach. Business logic is represented by use cases and repositories. Repositories work with data layer and handle entities mapping. Domain layer knows nothing about Android SDK.

Data layer works directly with Android specific tools: network calls, DB queries (In this case app persistent storage made with Realm) and stuff like that.

Tests

You can find unit test here. Current code coverage is about 40%.

Analytics

App has Analytics module, that used to gather user events and record different metrics. There is AnalyticsKit interface, that can be implemented using any of your favorite app metrics tools, like Fabric, Firebase, AppMetrica or whatever. With this approach you can use any number of metrics tools in any combination, and easy add or remove them.

How To Build Project

This app uses News API to retrieve data. You must provide your own api key in order to build the app. Paste it to project gradle.properties in variable named ApiKey.

Libraries

License

Copyright 2017-2018 Ivan Antsiferov

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

news-feed-app's People

Contributors

ivanantsiferov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

news-feed-app's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.