Closed cxyxlxdm closed 8 years ago
okvolley 是一个比较纯洁的基础framework 我想不太应该将 gson 引入, 因为有可能使用jackson而不是json
我个人比较建议增加一个subproject 是继承 okvolley 是专门使用 gson 的。。。而且可以增加jackson什么的
在我记忆中 以前好象是有这个一个subproject 支持gson的 但是我忘记后来为什么我给去掉了。。。
/*** *
On Sat, Oct 24, 2015 at 6:17 PM, Ailurus notifications@github.com wrote:
- 增加了 Gson 对 解析 Json 进行解耦;
- 增加了 Demo 里 Retrofit 请求与 OKVolley 的对比;
- Retrofit 请求的实现用了两种方式:Callback 和 RxJava 。
You can view, comment on, or merge this pull request online at:
https://github.com/googolmo/OkVolley/pull/4 Commit Summary
- 1.增加了 Gson 对 解析 Json 进行解耦;
File Changes
- M README.md https://github.com/googolmo/OkVolley/pull/4/files#diff-0 (8)
- M gradle.properties https://github.com/googolmo/OkVolley/pull/4/files#diff-1 (2)
- M gradle/wrapper/gradle-wrapper.properties https://github.com/googolmo/OkVolley/pull/4/files#diff-2 (4)
- M okvolley/build.gradle https://github.com/googolmo/OkVolley/pull/4/files#diff-3 (1)
- A okvolley/src/main/java/im/amomo/volley/GsonGetRequest.java https://github.com/googolmo/OkVolley/pull/4/files#diff-4 (52)
- A okvolley/src/main/java/im/amomo/volley/GsonPostRequest.java https://github.com/googolmo/OkVolley/pull/4/files#diff-5 (53)
- M sample/build.gradle https://github.com/googolmo/OkVolley/pull/4/files#diff-6 (8)
- M sample/src/main/java/im/amomo/volley/sample/BaseApplication.java https://github.com/googolmo/OkVolley/pull/4/files#diff-7 (3)
- D sample/src/main/java/im/amomo/volley/sample/DrawerFragment.java https://github.com/googolmo/OkVolley/pull/4/files#diff-8 (192)
- M sample/src/main/java/im/amomo/volley/sample/MainActivity.java https://github.com/googolmo/OkVolley/pull/4/files#diff-9 (156)
- D sample/src/main/java/im/amomo/volley/sample/fragment/RequestFragment.java https://github.com/googolmo/OkVolley/pull/4/files#diff-10 (117)
- A sample/src/main/java/im/amomo/volley/sample/model/PersonalDes.java https://github.com/googolmo/OkVolley/pull/4/files#diff-11 (173)
- A sample/src/main/java/im/amomo/volley/sample/model/PersonalDesDeserializer.java https://github.com/googolmo/OkVolley/pull/4/files#diff-12 (38)
- R sample/src/main/java/im/amomo/volley/sample/okvolleyrequest/BaseRequest.java https://github.com/googolmo/OkVolley/pull/4/files#diff-13 (8)
- A sample/src/main/java/im/amomo/volley/sample/retrofitrequest/ApiRequest.java https://github.com/googolmo/OkVolley/pull/4/files#diff-14 (38)
- A sample/src/main/java/im/amomo/volley/sample/retrofitrequest/OkVolleyApi.java https://github.com/googolmo/OkVolley/pull/4/files#diff-15 (21)
- A sample/src/main/java/im/amomo/volley/sample/retrofitrequest/OkVolleyApiUtils.java https://github.com/googolmo/OkVolley/pull/4/files#diff-16 (86)
- M sample/src/main/res/layout/act_main.xml https://github.com/googolmo/OkVolley/pull/4/files#diff-17 (37)
- D sample/src/main/res/layout/drawer_list_item.xml https://github.com/googolmo/OkVolley/pull/4/files#diff-18 (22)
- D sample/src/main/res/layout/list_item.xml https://github.com/googolmo/OkVolley/pull/4/files#diff-19 (22)
Patch Links:
— Reply to this email directly or view it on GitHub https://github.com/googolmo/OkVolley/pull/4.
嗯,理解的。一开始我也是把 Gson 那一部分写在了 Demo 里,不过我以为 fork 过来的项目不会 pull 到原作者的项目信息里,就放在了 library 里,主要还是侧重于 Demo 里不同请求方式的对比。谢谢你的项目。