Paper ProGuard rules

Paper – is a fast NoSQL data storage for Android that lets you save/restore Java/Kotlin objects using efficient Kryo serialization.

Class structure changes handled automatically.

ProGuard rules for Paper

ProGuard optimizes the program code and tries remove all unused classes. When obfuscating, ProGuard writes out class files named 'a.class', 'b.class', etc. To fix errors add the following rules in proguard-rules.pro file.

# Paper
# Keep data classes
-keep class my.package.data.model.** { *; }

You can keep all your data classes that implement Serializable.

-keep class * implements java.io.Serializable { *; }

For more information about Paper please see the website.

Related ProGuard rules

Static Gson ProGuard rules

Popular ProGuard rules