From f28fa31ff1072f0f6104c39fbe27c267bbf68008 Mon Sep 17 00:00:00 2001 From: Michael Shafrir <45020849+mshafrir-stripe@users.noreply.github.com> Date: Mon, 9 Mar 2020 12:32:12 -0400 Subject: [PATCH] Update Proguard rules to remove BouncyCastle class (#2271) Summary `X509LDAPCertStoreSpi` uses a J2SE package that isn't available in Android. This class isn't needed for 3DS2, so don't keep it in Proguard rules. Motivation Fixes #2268 Testing Ran lint and manually verified --- stripe/proguard-rules.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/stripe/proguard-rules.txt b/stripe/proguard-rules.txt index 443109c3c3e..331ffe371d0 100644 --- a/stripe/proguard-rules.txt +++ b/stripe/proguard-rules.txt @@ -5,6 +5,7 @@ # Rules for BouncyCastle -keep class org.bouncycastle.jcajce.provider.** { *; } -keep class org.bouncycastle.jce.provider.** { *; } +-keep class !org.bouncycastle.jce.provider.X509LDAPCertStoreSpi { *; } -keep class com.stripe.android.** { *; } -dontwarn com.stripe.android.view.**