MVP with Android architecture components
An Android project with MVP pattern which adapts with new Android architecture components introduced in Google IO 2017.
It provides lifecycle-aware Presenter with support of LifeCycle and local data source handled by Room (an abstraction layer over SQLite).
Blog post: Android MVP with new Architecture Components
This demo project uses StackExchange API as a remote data source.
It loads and shows all newest Android questions.
Libraries:
- Architecture Components: Room + Lifecycle.
- RxJava 2 + RxAndroid
- Dagger 2
- ButterKnife
- Timber
- Retrofit + OkHttp
- Glide
- UI: RecyclerView, CardView, ConstraintLayout.
- Unit Testing: JUnit4 + Mockito + Hamcrest
- Developer Debugging Tools: Stetho + LeakCanary
License
This project is available under the MIT license. See the LICENSE file for more info.
If you are interested in my useful blog posts and cool projects, you can subscribe to my newsletter by clicking the below link.
SUBSCRIBE TO USEFUL BLOG POSTS AND COOL PROJECTS.