android-mvp-interactor-architecture
android-mvp-interactor-architecture copied to clipboard
Extension of the android-mvp-architecture for very large projects.
Android MVP Architecture: Enhanced with Interactors and Repositories: Sample App
This repository is an extension of the android-mvp-architecture. It breaks the DataManager into Interactors and DbHelper into Repositories. These changes makes it fit for very large projects, for smaller projects the above mentioned repository is better.
This repository contains a detailed sample app that implements MVP architecture enhanced with Interactors and DbRepositories for complete decoupling, using Dagger2, GreenDao, RxJava, FastAndroidNetworking, PlaceHolderView and AndroidDebugDatabase
Architecture Blueprint
Project Structure
Read the below listed articles. They describe the MVP concepts and the Project structure.
- Android MVP Architecture Extension with Interactors and Repositories
- MVP: Part 1
- MVP: Part 2
- MVP: Part 3
The app has following packages:
- data: It contains all the data accessing and manipulating components.
- di: Dependency providing classes using Dagger2.
- ui: View classes along with their corresponding Presenters and Interactors.
- service: Services for the application.
- utils: Utility classes.
Classes have been designed in such a way that it could be inherited and maximize the code reuse.
Library reference resources:
- RxJava2: https://github.com/amitshekhariitbhu/RxJava2-Android-Samples
- Dagger2: https://github.com/MindorksOpenSource/android-dagger2-example
- FastAndroidNetworking: https://github.com/amitshekhariitbhu/Fast-Android-Networking
- PlaceHolderView: https://github.com/janishar/PlaceHolderView
- AndroidDebugDatabase: https://github.com/amitshekhariitbhu/Android-Debug-Database
- Calligraphy: https://github.com/chrisjenx/Calligraphy
- GreenDao: http://greenrobot.org/greendao/
- ButterKnife: http://jakewharton.github.io/butterknife/
Concept reference resources:
- Introduction to Dagger 2: Part 1
- Introduction to Dagger 2: Part 2
- Android Dagger2: Critical things to know before you implement
- The Best Android Networking Library for Fast and Easy Networking
- RxJava + Fast Android Networking
- Migrating from RxJava 1.0 to RxJava 2.0 and Learn RxJava by Examples
- Android Tinder Swipe View Example
- Debugging Android Databases And Shared Preferences In The Easiest Way
- RxJava Anatomy: What is RxJava, how RxJava is designed, and how RxJava works.
- Powerful Android ORM: greenDAO 3 Tutorial
Learn to build a ride-sharing Android app like Uber, Lyft - Check here
Mindorks open source projects
Check out Mindorks awesome open source projects here
How do I use this project?
This is a boilerplate project aimed to help bootstrap new Android MVP Applications. Feel free to fork this application or use AndroidStarters to create new app using this boilerplate.
License
Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
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.
Contributing to Android MVP Architecture
Just make pull request. You are in!