最近有小伙伴问我有没有一个MVP+Dagger2+Retrofit2.0+Rxjava的案例,自己还没完全集合实现。今天就介绍一个开源项目:owspace。基于MVP+Dagger2+Retrofit2.0+Rxjava的一款APP供大家去学习和参考。
owspace是一款高仿单读的APP,API接口通过非法手段获取。
#### 你能学到
- MVP模式
- Retrofit2.0 + rxjava
- Dagger2
- jsoup解析DOM
- sqldelight SqlBrite
- 音视频播放等
- some fucking source code
![owspace](http://upload-images.jianshu.io/upload_images/4614633-2ea7d00f2e84e026.gif?imageMogr2/auto-orient/strip)
![](http://upload-images.jianshu.io/upload_images/4614633-c1b785769343db19.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](http://upload-images.jianshu.io/upload_images/4614633-a585baaca330a5eb.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
#### 声明
单读这个文艺的APP本人比较喜欢,一时冲动就抓取了数据,反编译了APP。so,API接口是通过非法手段获取,严禁商用,违者后果自负。
```
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile(name: 'SildeMenulibrary-release', ext: 'aar')
compile(name: 'ObservableScrollView-release', ext: 'aar')
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.jakewharton:butterknife:7.0.1'
compile 'com.google.code.gson:gson:2.6.2'
compile 'net.danlew:android.joda:2.9.3'
compile 'com.squareup.okhttp3:okhttp:3.4.1'
compile 'com.squareup.okhttp3:logging-interceptor:3.4.1'
compile 'com.squareup.retrofit2:retrofit:2.1.0'
compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
compile 'com.squareup.sqlbrite:sqlbrite:0.7.0'
compile 'io.reactivex:rxandroid:1.2.1'
compile 'io.reactivex:rxjava:1.1.6'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.orhanobut:logger:1.15'
compile 'com.elyeproj.libraries:loaderviewlibrary:1.2.1'
compile 'in.srain.cube:ultra-ptr:1.0.11'
compile 'com.android.support:recyclerview-v7:24.2.1'
compile 'com.android.support:design:24.2.1'
compile 'org.jsoup:jsoup:1.7.3'
compile 'pub.devrel:easypermissions:0.2.0'
compile 'com.wang.avi:library:2.1.3'
compile 'com.google.dagger:dagger:2.7'
apt 'com.google.dagger:dagger-compiler:2.7'
compile 'org.glassfish:javax.annotation:10.0-b28'
compile 'uk.co.chrisjenx:calligraphy:2.2.0'
```
![](http://upload-images.jianshu.io/upload_images/4614633-04be0128e8798b8f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](http://upload-images.jianshu.io/upload_images/4614633-f644827baf3969af.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
> 项目地址:
>
> https://github.com/babylikebird/owspace
#### 更多阅读
[Python探究之旅—Python语言的基本认识](http://mp.weixin.qq.com/s?__biz=MzI3OTU0MzI4MQ==&mid=2247484667&idx=1&sn=379040d3da3d2ae7537467f7abcc2de6&chksm=eb476865dc30e17342b35ca08374273e901bcdaf1dd5d9d90bff90fbd71f295a37469d86f1b7&scene=21#wechat_redirect)
[来一起愉快的开始Python吧](http://mp.weixin.qq.com/s?__biz=MzI3OTU0MzI4MQ==&mid=2247484793&idx=1&sn=ca424b02d3aa7047f35ac771f6f5fd1d&chksm=eb4769e7dc30e0f19dbfc05a6b22677ed355b4582752dd2f25af30143dc838e88b4ff0d0f503&scene=21#wechat_redirect)
[ 一招教你读懂JVM和Dalvik之间的区别](http://mp.weixin.qq.com/s?__biz=MzI3OTU0MzI4MQ==&mid=2247484825&idx=1&sn=a59bdc66cd0663ad6cd7d5ed992d7cb8&chksm=eb476907dc30e011bdcc3a3f8bd0e6a8494451f298a78d03bea086c363c3a85743adc239b21b&scene=21#wechat_redirect)
[一招教你打造一个滑动置顶的视觉特效](http://mp.weixin.qq.com/s?__biz=MzI3OTU0MzI4MQ==&mid=2247484823&idx=1&sn=b7a0704c4618bf133559ea887c0d2199&chksm=eb476909dc30e01ffabfaff442f7282037c1afbbce04fdd7867eec0a3513d71ec468fd0ecd16&scene=21#wechat_redirect)
[NDK项目实战—高仿360手机助手之卸载监听](http://mp.weixin.qq.com/s?__biz=MzI3OTU0MzI4MQ==&mid=2247484610&idx=1&sn=d1b0805b95718cdd1dcb4b73d619d269&chksm=eb47685cdc30e14a6edb8a560f2b72bd66b566f2d23b120fa8b0d49607981687776c00cf3dd9&scene=21#wechat_redirect)
[最新2017(Android)面试题级答案(精选版)](http://mp.weixin.qq.com/s?__biz=MzI3OTU0MzI4MQ==&mid=2247484263&idx=1&sn=6815372a21f594a417b2185dd06e1cd3&chksm=eb476ff9dc30e6efebd6434cd259ccf2559779e360c001d253d6e12d48e4f6ec0ecf31d17cd0&scene=21#wechat_redirect)
#### 相信自己,没有做不到的,只有想不到的
如果你觉得此文对您有所帮助,欢迎入群 QQ交流群 :644196190
微信公众号:终端研发部
![技术+职场](http://upload-images.jianshu.io/upload_images/4614633-8af7afbca8ae9de9.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
有疑问加站长微信联系(非本文作者))