From 785dd036d105fbda1c0704d2805c92d60b012dd8 Mon Sep 17 00:00:00 2001 From: Peter Serwylo Date: Mon, 8 Sep 2014 00:36:02 +0930 Subject: [PATCH] Include all spongycastle classes when running proguard. This increases the size of the .apk by ~800kb, which is clearly undesirable. However, the nature of the Java security suite implementations are that they use a lot of reflection to instantiate classes. The end result is that proguard excludes classes which may be required, depending on the security algorithms required by certain certificates. Fixes issue #88 --- proguard-project.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/proguard-project.txt b/proguard-project.txt index 19b52af10..2301761dc 100644 --- a/proguard-project.txt +++ b/proguard-project.txt @@ -2,3 +2,12 @@ -dontwarn javax.naming.** -dontnote android.support.** -dontnote **ILicensingService + +# This increases the size of the .apk by ~800kb, which is clearly +# undesirable. However, the nature of the Java security suite +# implementations are that they use a lot of reflection to instantiate +# classes. The end result is that proguard excludes classes which +# may be required, depending on the security algorithms required +# by certain certificates. +# Reference: https://gitlab.com/fdroid/fdroidclient/issues/88 +-keep class org.spongycastle.**