I’m using the current GSON libraries in an android app and everything works as expected when the application is built without signing it with the keystore.
When I export the app and sign it, gson fails to parse the Reader into my class.
I’ve tried signing the app without using proguard but this made no difference. I’m literally lost as to why it is behaving differently when signed.
The line in question is this:
Words words = new Words();
words = gson.fromJson(r, Words.class);
The object is simply empty when the app is signed.
Wow I would have expected that the obfuscation of proguard is responsible for destroying your model, but I guess now zipalign is messing it up, to ensure that you can parse your json, you could provide specific gson annotations for your model.