I find it tedious to keep adding each of my model ...
# android
h
I find it tedious to keep adding each of my model classes path in the proguard rules
g
Instead you can add annotation to all classes that shouldn’t be obfuscated
or you can exclude particular package from obfuscation
h
hey, thanks for the reply, yeah can do that
Ideally, since I am annotating my fields with
@SerializedName
they shouldn't get obfuscated, right?
Or is there a specific proguard rule that helps achieve this
g
no, will be obfuscated
but it shouldn’t be problem, because SerializedName has original name, so you can use it for json mapping
Why you don’t want to obfuscate such fields if you already have SerializedName?
h
for some reason, my apps crashing after the obfuscation.
g
I would try to find the reason
☝️ 2
h
yep, on it.