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 can keep these private fields by putting the following in my ProGuard rules file:
-keepclassmembers class com.tools.app.holiday.Holiday {
private java.lang.String name;
private java.util.Calendar dateFrom;
private java.util.Calendar dateTo;
}
But I'd prefer not to have to specify each field individually. How can I do this?
P.S. I stole most of this from Proguard keep classmembers because that question was close to what I'm asking.
-keepclasseswithmembers class * { @com.activeandroid.annotation.Column <fields>; }
– Myth