Closed ghost closed 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?
Changed
ApiUtils.updateDomain()
andReportsHttpClient.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.