andrzejchm/DroidMVP
소개
Small Android library to help you incorporate MVP, Passive View and Presentation Model patterns in your app
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalDroidMVP
About
DroidMVP is a small Android library to help you incorporate the MVP pattern along with Passive View and Presentation Model (yes, those can be combined together :) ) within your Android project.
Explanation
Setup
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Add the dependency to your app's build.gradle
dependencies {
compile 'com.github.andrzejchm:DroidMVP:0.1.3'
}
Composition over inheritance
If by any chance you cannot extend from DroidMVPActivity or DroidMVPFragment you can always use the DroidMVPViewDelegate. Just make sure to bind it with your activity's or fragment's lifecycle the same way the DroidMVPFragment or DroidMVPActivity does it.
Dependency Injection
This library makes it easy to use it with dependency injection frameworks like Dagger. To see how it could be done, check out the Sample project, specifically the BaseFragment or BaseActivity
Sample Project
A small android app which uses Dependency Injection along with DroidMVP can be found here
Without dagger can be found here.
With Parcelable PresentationModel can be found here.
Donation
If you think the library is awesome and want to buy me a beer, you can do so by sending some...
ETH here: 0xf7354a0F7B34A380f6d68a2661bE465C10D6AEd7
BTC here: 12bU3BMibFqbBBymaftXTDnoHojFymD7a6
NEO or GAS here: AX1ovzRN2N28WJrtehjYXjwtHSvcqva6Ri
관련 프로젝트 살펴보기
불러오는 중…