Skip to content

Commit

Permalink
#10 Add consumer proguard in library
Browse files Browse the repository at this point in the history
  • Loading branch information
gemasr committed Oct 20, 2019
1 parent 8d48d17 commit 137a57e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions easy-glide/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ android {
targetSdkVersion 29
versionCode 1
versionName "1.0"
consumerProguardFiles 'consumer-proguard-rules.pro'
}

buildTypes {
Expand Down
11 changes: 11 additions & 0 deletions easy-glide/consumer-proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-keep public class * implements com.bumptech.glide.module.GlideModule
-keep class * extends com.bumptech.glide.module.AppGlideModule {
<init>(...);
}
-keep public enum com.bumptech.glide.load.ImageHeaderParser$** {
**[] $VALUES;
public *;
}

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

0 comments on commit 137a57e

Please sign in to comment.