php - Proguard and Gson - Convert variable name inside arraylist -
in debug, code works fine. when release apk proguard 5, proguard offuscate variables, , when try "jsonify", resulting string offuscated, , so, php script doesn't understand anything.
here's code:
arraylist lcapturas=...;
if (lcapturas != null) { gson gson = new gson(); type listofcapturaobject = new typetoken<list<captura>>() { }.gettype(); json = gson.tojson(lcapturas, listofcapturaobject); }
and json string
[{"j":"2014-09-10 17:35:25","e":"2014-09- 10","f":"19.3641107,-99.1785061","d":28809,"c":85,"b":2705,"a":1,"l":1,"m":0}]
i guess must proguard not offuscate captura objects. there way of disabling option? or how should do???
i resolved issue :
-keep class com.pkg.vo.myclass { *; }
for each class need keep variable names.
stackoverflow didn't saved day :(
Comments
Post a Comment