Skip to content

Commit

Permalink
Update ProGuard rules and fix Glide caching
Browse files Browse the repository at this point in the history
  • Loading branch information
rubengees committed Sep 20, 2016
1 parent 386165e commit 1497502
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions sample/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
-keep class android.support.** { *; }
-keep interface android.support.** { *; }

-keepattributes EnclosingMethod

-keep public class * implements com.bumptech.glide.module.GlideModule
-keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
**[] $VALUES;
public *;
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected void onSlideInit(int position, @NonNull TextView title,
@NonNull ImageView image, @NonNull TextView description) {
if (position % 3 == 1) {
Glide.with(image.getContext()).load(R.drawable.image3)
.diskCacheStrategy(DiskCacheStrategy.SOURCE).into(image);
.diskCacheStrategy(DiskCacheStrategy.NONE).into(image);
}
}
};
Expand Down

0 comments on commit 1497502

Please sign in to comment.