From 2017df6717a545288ce2ee1ee2b7abff28582bcd Mon Sep 17 00:00:00 2001 From: Eldho P James Date: Thu, 14 Nov 2019 12:36:42 +0530 Subject: [PATCH] Update proguard-rules.pro I had my app crash when i enabled proguard/ r8 in my recent build, so i did an extensive research about the crash and found out the missing proguard rule. here i added the rule . please add the asme in project description also thanks , happy coding --- app/proguard-rules.pro | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index f665b34..85e4401 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -15,3 +15,9 @@ #-keepclassmembers class fqcn.of.javascript.interface.for.webview { # public *; #} + +#prevents crash while using R8 or proguard +-keepclasseswithmembernames class * { +native ; +} +-keep class androidx.renderscript.** { *; }