【Android架构】基于MVP模式的Retrofit2+RXjava封装(一)
#最近有个新项目要做,搭建框架的时候,顺便梳理了下MVP模式,特此记录,欢迎大家指正。 项目地址GitHub 一 、首先是依赖 compile 'com.google.code.gson:gson:2.8.0' compile 'com.squareup.okhttp3:okhttp:3.4.1' compile 'com.yanzhenjie:permission:1.0.5' compile 'com.squareup.retrofit2:retrofit:2.3.0' compile 'io.reactivex.rxjava2:rxandroid:2.0.1' compile 'io.reactivex.rxjava2:rxjava:2.1.5' //ConverterFactory的String依赖包 compile 'com.squareup.retrofit2:converter-scalars:2.3.0' //ConverterFactory的Gson依赖包 compile 'com.squareup.retrofit2:converter-gson:2.3.0' //...
