Kryo ProGuard rules

Kryo – is a fast and efficient object graph serialization framework for Java.

The goals of the project are speed, efficiency, and an easy to use API.

ProGuard rules for Kryo

Add the following lines to your ProGuard configuration proguard.cfg file in project.

# Kryo
-dontwarn sun.reflect.**
-dontwarn java.beans.**
-keep,allowshrinking class com.esotericsoftware.** {
   ;
   ;
}
-keep,allowshrinking class java.beans.** { *; }
-keep,allowshrinking class sun.reflect.** { *; }
-keep,allowshrinking class com.esotericsoftware.kryo.** { *; }
-keep,allowshrinking class com.esotericsoftware.kryo.io.** { *; }
-keep,allowshrinking class sun.nio.ch.** { *; }
-dontwarn sun.nio.ch.**
-keep public class * extends com.google.protobuf.GeneratedMessage { *; }
-keep class de.javakaffee.kryoserializers.** { *; }
-dontwarn de.javakaffee.kryoserializers.**
-keep class com.esotericsoftware.kryo.serializers.** { *; }
-dontwarn com.esotericsoftware.kryo.serializers.**

For more information about Kryo please see the website.

Static Gson ProGuard rules

Popular ProGuard rules