ushahidi / Ushahidi_Android

[Deprecated] Ushahidi Android app For Ushahidi V2.x.x. Working on V3.x.x at
https://github.com/ushahidi/platform-android/
GNU Lesser General Public License v3.0
202 stars 153 forks source link

initial Gson integration #101

Closed ghost closed 11 years ago

ghost commented 11 years ago

Changed ApiUtils.updateDomain() and ReportsHttpClient.PostFileUpload() to use Gson. Since these functions are a bit simple, CategoriesApiUtil is also changed to using Gson to demonstrate more complicated usage. One thing to note is that since Gson uses reflection to deserialize to object, field names must map to json field names. A common practice before releasing Android apk is to use Proguard to shrink the classes. Special rules must be written for these classes to be left out.

eyedol commented 11 years ago

@mrl-gt This is really a great sample code to get me started on GSON. This pull request can't be merged automatically and I don't want to do it manually. I guess it's because your branch is out of sync with my develop branch?

ghost commented 11 years ago

@eyedol I merged with your develop branch. this diff shows the difference between my changes and your current develop branch.