AndPermission ProGuard rules

AndPermission – is an Android library that supports the right to request for permission at anywhere.

ProGuard rules for AndPermission

Unused classes, attributes and fields will be removed by ProGuard's optimization phase. ProGuard writes out class files named 'a.class', 'b.class', etc. in the obfuscation phase. Specify the following ProGuard rules to fix errors and force ProGuard to keep certain code.

################################ AndPermission #################################
-keepclassmembers class ** {
    @com.yanzhenjie.permission.PermissionYes ;
}
-keepclassmembers class ** {
    @com.yanzhenjie.permission.PermissionNo ;
}

For more information about AndPermission please see the website.

Related ProGuard rules

Static Gson ProGuard rules

Popular ProGuard rules