35
You know, all subclasses of Fragment must include a public empty constructor but when using proguard these constructors will be removed. I have specified below commands but empty constructor still be removed. Can anyone help me to keep empty constructor of Fragment? Thanks you.
-keepclassmembers public class * extends android.support.v4.app.Fragment {
public <init>(***);
#public <init>(); //already tried this
}
-keepclassmembers public class * extends com.xxx.MyFragment {
public <init>(***);
#public <init>(); //already tried this
}