MVP+Retrofit2+okhttp3+Rxjava2网络请求封装
依赖:
//okhttp
compile 'com.squareup.okhttp3:okhttp:3.9.1'
//retrofit
compile 'com.squareup.retrofit2:retrofit:2.3.0'
// //ConverterFactory的Gson依赖包
compile 'com.squareup.retrofit2:converter-gson:2.3.0'
//CallAdapterFactory的Rx依赖包
compile 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
//rx
compile 'io.reactivex.rxjava2:rxandroid:2.0.2'
//butterKnife
compile 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
//加载进度条
compile 'com.github.gittjy:LoadingDialog:1.0.2'