gson-comments/examples/android-proguard-example
Marcono1234 abd2191b0e
Add READMEs to Maven modules (#2039)
* Add READMEs to Maven modules

* Address feedback
2021-12-27 10:17:41 -08:00
..
res initial cut at an example Android application that uses Proguard with Gson 2011-07-22 20:55:37 +00:00
src/com/google/gson/examples/android Fixed code style to remove explicit casting op. 2016-02-14 03:47:05 -02:00
AndroidManifest.xml Removed the executable flag from clearly text files 2018-04-26 10:23:15 +03:00
default.properties initial cut at an example Android application that uses Proguard with Gson 2011-07-22 20:55:37 +00:00
proguard.cfg Retain generic signature of TypeToken with R8 version 3.0 and higher 2021-08-05 09:18:32 +02:00
README.md Add READMEs to Maven modules (#2039) 2021-12-27 10:17:41 -08:00

android-proguard-example

Example Android project showing how to properly configure ProGuard. ProGuard is a tool for 'shrinking' and obfuscating compiled classes. It can rename methods and fields, or remove them if they appear to be unused. This can cause issues for Gson which uses Java reflection to access the fields of a class. It is necessary to configure ProGuard to make sure that Gson works correctly.

Also have a look at the ProGuard manual for more details on how ProGuard can be configured.