1 -dontnote 2 -dontwarn 3 -dontobfuscate 4 -optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/*,!code/allocation/variable 5 -optimizationpasses 5 6 -allowaccessmodification 7 -dontpreverify 8 9 -keep public class * extends android.app.Activity 10 -keep public class * extends android.support.v4.app.Fragment 11 -keep public class * extends android.app.Application 12 -keep public class * extends android.app.Service 13 -keep public class * extends android.content.BroadcastReceiver 14 -keep public class * extends android.content.ContentProvider 15 16 -keep interface android.util.AttributeSet 17 18 -keep public class * extends android.view.View { 19 public <init>(android.content.Context, android.util.AttributeSet); 20 public <init>(android.content.Context, android.util.AttributeSet, int); 21 void set*(***); 22 *** get*(); 23 } 24 25 -keepclasseswithmembers class * { 26 public <init>(android.content.Context, android.util.AttributeSet); 27 } 28 29 -keepclasseswithmembers class * { 30 public <init>(android.content.Context, android.util.AttributeSet, int); 31 } 32