From f401e577e571ce30618490be6d9f46538da398b7 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sun, 2 Dec 2018 04:56:13 -0500 Subject: [PATCH] Better Proguard optimization --- 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 d25f21c4a..b2eb58890 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -17,9 +17,9 @@ #} # BouncyCastle --keep class org.bouncycastle.jcajce.provider.asymmetric.rsa.**SHA1** { *; } --keep class org.bouncycastle.jcajce.provider.asymmetric.RSA** { *; } --keep class org.bouncycastle.jcajce.provider.digest.SHA1** { *; } +-keep,allowoptimization class org.bouncycastle.jcajce.provider.asymmetric.rsa.**SHA1** { *; } +-keep,allowoptimization class org.bouncycastle.jcajce.provider.asymmetric.RSA** { *; } +-keep,allowoptimization class org.bouncycastle.jcajce.provider.digest.SHA1** { *; } -dontwarn javax.naming.** # Snet extention @@ -36,3 +36,4 @@ # Excessive obfuscation -repackageclasses 'a' -allowaccessmodification +-optimizationpasses 6