From d8f7845be51b628c8f25e2baaf6178a4047551ef Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Sun, 9 Jun 2019 16:56:34 +0200 Subject: [PATCH] fix r8 rules to avoid crash when downloading Emoji Font (#1312) --- app/proguard-rules.pro | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 06293b52..df9e06fd 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -94,9 +94,10 @@ -dontwarn com.google.errorprone.annotations.* -# work around a bug in proguard -# see https://sourceforge.net/p/proguard/bugs/729/ --keepnames public interface com.uber.autodispose.lifecycle.CorrespondingEventsFunction { *; } +# without this emoji font downloading fails with AbstractMethodError +-keep class * extends android.os.AsyncTask { + public *; +} # Glide -keep public class * implements com.bumptech.glide.module.GlideModule