From b2f2ca6c2216aa357d2dfb79981b18c36daacd9f Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Thu, 19 May 2022 07:19:16 +0200 Subject: [PATCH] add shrinker rules to keep bouncycastle EC classes (#2542) --- app/proguard-rules.pro | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index b7de4270..7f0c4325 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -82,6 +82,10 @@ -keepattributes SourceFile,LineNumberTable -renamesourcefileattribute SourceFile +# Bouncy Castle -- Keep EC +-keep class org.bouncycastle.jcajce.provider.asymmetric.EC$* { *; } +-keep class org.bouncycastle.jcajce.provider.asymmetric.ec.KeyPairGeneratorSpi$EC + # remove all logging from production apk -assumenosideeffects class android.util.Log { public static *** getStackTraceString(...);