Search code examples
javaandroidproguard

Proguard Change String Request Variable name when send to Server


I am Using string Request when I create a Signapk Proguard Change name of the variable is in a b c d e f How I can handle it it is only an issue in one request all other requests working fine in this request I am using GSON Here is my Code

senditems_ is an array list that contains 5 records of students

String studentBatchListString = new Gson().toJson(send_items_);
@Override
protected Map<String, String> getParams() throws AuthFailureError { 
   Map<String, String> parameters = new HashMap<String, String>(); 
   Log.i("timessendreq","send");                    
   parameters.put("list_items",studentBatchListString);
   return parameters;
}

I am using volley string request My Class name is (Checkoutinfo) pakege name is com.app.trasfer


Solution

  • Keep User Student Object By add @Keep annotation Top of yor class, Something like below

    @Keep
    class Student{
    int id;
    }