Use retrofit rewrite network related codes
xcv58 opened this issue · comments
xcv58 commented
I realize retrofit is better than our implementation. Meanwhile, we may need to use gson.
xcv58 commented
Why
Because current codes have poor error handle, poor multiple threads
What packages to use
- Retrofit: http://square.github.io/retrofit/
- RxJava: https://github.com/ReactiveX/RxJava
- Gson:
compile 'com.squareup.retrofit:converter-gson:2.0.0-beta1'
- OkHttp
Reference:
Retrofit 2.0: The biggest update yet on the best HTTP Client Library for Android
xcv58 commented
Almost finish.