Skip to content

Commit

Permalink
Merge pull request #12 from gemasr/feature/add-consumer-proguard-rules
Browse files Browse the repository at this point in the history
#10 Add consumer proguard in library
  • Loading branch information
pedrofsn authored Oct 21, 2019
2 parents 8d48d17 + 137a57e commit fdc05fa
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 fdc05fa

Please sign in to comment.