Yet another MVP library. Super simple, but with enough functionality.
allprojects {
repositories {
maven {
url "http://dl.bintray.com/piasy/maven"
}
}
}
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'
RxJava Subscription management.
compile 'com.github.piasy:YaMvp-Rx:1.3.1'
- YaRxDelegate: Composition over inheritance
If you want inheritance, here you are.
compile 'com.github.piasy:YaMvp-Component:1.3.1'
And if you want Dagger2 integrated too, here you are.
compile 'com.github.piasy:YaMvp-Dagger2:1.3.1'
Please see each module's test code, it's cool.
- JUnit test
- Android JUnit test
- Espresso test recording
Activity/Fragment kill and restore are not considered yet.