Glide ProGuard rules

Glide – fast and efficient open source media management and image loading framework for Android that wraps media decoding, memory and disk caching, and resource pooling into a simple and easy to use interface.

ProGuard rules for Glide

ProGuard obfuscates the remaining classes, fields, and methods with short names. By default, shrinking is applied; all classes and methods are removed. To fix errors and force ProGuard to keep certain code, set up a ProGuard configuration in proguard-rules.pro file.

# Glide
-keep public class * implements com.bumptech.glide.module.GlideModule
-keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
  **[] $VALUES;
  public *;
}

# for DexGuard only
-keepresourcexmlelements manifest/application/meta-data@value=GlideModule

For more information about please see Glide website.

Related ProGuard rules

Static Gson ProGuard rules

Popular ProGuard rules