-keep class com.lsjwzh.widget.recyclerviewpager.**
-dontwarn com.lsjwzh.widget.recyclerviewpager.**
are incorrect. They don't do anything. This causes the view restoration to silently fail in production. Here are the proper rules:
-keepclassmembernames class android.support.v7.widget.RecyclerView$SavedState {
android.os.Parcelable mLayoutState;
}
-keepclassmembernames class android.support.v7.widget.LinearLayoutManager$SavedState {
int mAnchorPosition;
int mAnchorOffset;
}
The suggested ProGuard rules in the README
are incorrect. They don't do anything. This causes the view restoration to silently fail in production. Here are the proper rules: