/YaMvp

Yet another Mvp library. Super simple, but with enough functionality.

Primary LanguageJavaMIT LicenseMIT

YaMvp

Build Status codecov Download

Yet another MVP library. Super simple, but with enough functionality.

Demo

demo

Modules

allprojects {
    repositories {
        maven {
            url  "http://dl.bintray.com/piasy/maven"
        }
    }
}

YaMvp

The core MVP part, only 3 classes, less than 100 lines code.

  • Presenter is not an interface
  • YaViewDelegate: Composition over inheritance
compile 'com.github.piasy:YaMvp:1.3.1'

YaMvp-Rx

RxJava Subscription management.

compile 'com.github.piasy:YaMvp-Rx:1.3.1'
  • YaRxDelegate: Composition over inheritance

YaMvp-Component

If you want inheritance, here you are.

compile 'com.github.piasy:YaMvp-Component:1.3.1'

YaMvp-Dagger2

And if you want Dagger2 integrated too, here you are.

compile 'com.github.piasy:YaMvp-Dagger2:1.3.1'

Test code showcase

Please see each module's test code, it's cool.

  • JUnit test
  • Android JUnit test
  • Espresso test recording

Disclaim

Activity/Fragment kill and restore are not considered yet.