Fresco ProGuard rules

Fresco – powerful system for displaying images in Android applications.

Fresco takes care of image loading and display, so you don't have to. It will load images from the network, local storage, or local resources, and display a placeholder until the image has arrived.

ProGuard rules for Fresco

ProGuard obfuscates the remaining classes, fields, and methods with short names. By default, shrinking is applied; all classes and methods are removed. Specify the following rules in your ProGuard configuration file.

-keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip

# Do not strip any method/class that is annotated with @DoNotStrip
-keep @com.facebook.common.internal.DoNotStrip class *
-keepclassmembers class * {
    @com.facebook.common.internal.DoNotStrip *;
}

# Keep native methods
-keepclassmembers class * {
    native ;
}

-dontwarn okio.**
-dontwarn com.squareup.okhttp.**
-dontwarn okhttp3.**
-dontwarn javax.annotation.**
-dontwarn com.android.volley.toolbox.**
-dontwarn com.facebook.infer.**

For more information about please see Fresco website.

Related ProGuard rules

Static Gson ProGuard rules

Popular ProGuard rules