How can I tell proguard to keep my classmembers?
I need them for JSON compatibility...
This is my class:
package com.tools.app.holiday;
public class Holiday {
private String name;
private Calendar dateFrom = Calendar.getInstance();
private Calendar dateTo = Calendar.getInstance();
...
I already tried, but it doesnt work...
-keepclassmembers class com.tools.app.holiday.Holiday
-keepclassmembers class com.tools.app.holiday.Holiday *{
private String name;
private Calendar dateFrom;
private Calendar dateTo;
}
I also implemented serialisable and did:
-keepclassmembers class * implements java.io.Serializable {
But it all doesn't keep my member names. Proguard always changes ist to a, b, c :-( What am I missing?
All class names must be fully qualified:
By default, ProGuard even prints out messages if you forget this.