Skip to content

Commit

Permalink
Link proguard-rules.txt in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Aug 19, 2022
1 parent 7a20806 commit 79e726e
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,26 +54,9 @@ Or Maven:

For info on using the bleeding edge, see the [Snapshots][17] docs page.

ProGuard
R8 / Proguard
--------
Depending on your ProGuard (DexGuard) config and usage, you may need to include the following lines in your proguard.cfg (see the [Download and Setup docs page][25] for more details):

```pro
-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 *;
}
-keep class com.bumptech.glide.load.data.ParcelFileDescriptorRewinder$InternalRewinder {
*** rewind();
}
# for DexGuard only
-keepresourcexmlelements manifest/application/meta-data@value=GlideModule
```
The specific rules are [already bundled](library/proguard-rules.txt) into the aar which can be interpreted by R8 automatically

How do I use Glide?
-------------------
Expand Down

0 comments on commit 79e726e

Please sign in to comment.