Code Monkey home page Code Monkey logo

rxmvpandroid's Introduction

RxMvpAndroid

Sample to show how MVP, Clean Architecture and RxJava can help you in building Android App.

_WORK IN PROGRESS_

Description

Here one can see yet another example of building an Android Application with help of MVP, Clean Architecture and RxJava.

Project contains of two submodules:

  • core: base classes
  • weather: sample app, displaying current temperature in Moscow based on OpenWeatherMap api (add valid api-key in build.gradle to see the results)
    Also here you can find seceral useful techinques:
  • saving presenter during configuration change / low - memory. This techinque is implemented using Dagger2 with its custom scopes + fragment-lifecycle awareness.
  • improved communication between view and presenter. Details can be found in the article
  • navigation support, post about implementation details is in this article
  • Basic approach for manual ViewState management is introduced, and the main reason for that - the fact that using onSaveInstanceState can lead to data loss
  • Also dependency 'dialogwrapper.aar' appeared, it is a library to abstract away complexities of working with dialogs. Sources with the base implementation can be found here. This approach for dealing with dialogs works for me.

NOW IN PROGRESS:

  1. Reducing amounts of boilerplate code / time to write boilerplate code
  2. Custom views support
  3. dealing with real-world scenario (viewpager for now)

TODO:

  1. cover common (but interestring in terms of implementation in mvp) use cases during app development :
    services interaction,
    lists,
    view_pager etc.
  2. proper testing
  3. further architecture improvement

Current development contract

TODO

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.