wzgiceman / RxjavaRetrofitDemo-string-master

Rxjava+ReTrofit+okHttp终极封装(String方案)
http://blog.csdn.net/column/details/13297.html
MIT License
220 stars 59 forks source link

兄弟,你用的rxjava实际上还是1.x版本,升级到2.x版本后一些包名和类名变化了 #11

Open liyujiang-gzu opened 5 years ago

liyujiang-gzu commented 5 years ago
/*rxjava2.x版本*/
api 'io.reactivex.rxjava2:rxjava:2.2.7'
api 'io.reactivex.rxjava2:rxandroid:2.1.1'
/*rxlifecycle依赖的是rxjava1.x版本*/
//api 'com.trello:rxlifecycle:1.0'
//api 'com.trello:rxlifecycle-components:1.0'
/*rxlifecycle依赖的是rxjava2.x版本*/
api 'com.trello.rxlifecycle2:rxlifecycle:2.2.2'
api 'com.trello.rxlifecycle2:rxlifecycle-android-lifecycle:2.2.2'
/*adapter-rxjava依赖的是rxjava1.x版本,adapter-rxjava2依赖的是rxjava2.x版本*/
api 'com.squareup.retrofit2:retrofit:2.5.0'
//api 'com.squareup.retrofit2:adapter-rxjava:2.5.0'
api 'com.squareup.retrofit2:adapter-rxjava2:2.5.0'
api 'com.squareup.retrofit2:converter-scalars:2.5.0'
api 'com.squareup.retrofit2:converter-gson:2.5.0'
wzgiceman commented 5 years ago

https://github.com/wzgiceman/Cpx_model 已经更新可以去这里查看