If you're using the code obfuscator ProGuard before releasing apps, this will be a valuable tutorial for you. We'll go through a standard ProGuard configuration, which should prevent unexpected runtime exceptions in your apps when you're using ProGuard and Gson.
If you're not using ProGuard, you can check our other tutorial topics. Of course, this isn't the only tutorial in our Gson series. If you're interested in the other topics, check out our series outline:
Gson Series Overview
- Mapping of Enums
- Mapping of Circular References
- Generics
- Custom Serialization for Simplification (Part 1)
- Changing the Default Serialization with Custom Serialization (Part 2)
- Custom Deserialization Basics
- Custom Instance Creator
- Customizing (De)Serialization via @JsonAdapter
- Custom Deserialization for Calculated Fields
- On-The-Fly-Parsing With Streams
- ProGuard Configuration