1 -keep class android.databinding.** { *; } 2 3 -keepnames class * implements java.io.Serializable 4 5 -keepclassmembers class * implements java.io.Serializable { 6 static final long serialVersionUID; 7 private static final java.io.ObjectStreamField[] serialPersistentFields; 8 !static !transient <fields>; 9 private void writeObject(java.io.ObjectOutputStream); 10 private void readObject(java.io.ObjectInputStream); 11 java.lang.Object writeReplace(); 12 java.lang.Object readResolve(); 13 } 14 15 -keepattributes *Annotation* 16 -keepattributes javax.xml.bind.annotation.* 17 -keepattributes javax.annotation.processing.* 18 19 -keepclassmembers class * extends java.lang.Enum { *; } 20 21 -keepclasseswithmembernames class android.** 22 23 -keepclasseswithmembernames interface android.** 24 25 -dontobfuscate 26 -libraryjars <java.home>/lib/rt.jar 27 -libraryjars <java.home>/lib/jce.jar 28 -dontwarn