https://kotlinlang.org logo
Title
h

hussain

04/25/2019, 10:09 AM
I find it tedious to keep adding each of my model classes path in the proguard rules
g

gildor

04/25/2019, 10:15 AM
Instead you can add annotation to all classes that shouldn’t be obfuscated
or you can exclude particular package from obfuscation
h

hussain

04/25/2019, 10:24 AM
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

gildor

04/25/2019, 10:25 AM
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

hussain

04/25/2019, 10:27 AM
for some reason, my apps crashing after the obfuscation.
g

gildor

04/25/2019, 10:29 AM
I would try to find the reason
☝️ 2
h

hussain

04/25/2019, 10:36 AM
yep, on it.