Skip to content

Commit

Permalink
Update Proguard rules to remove BouncyCastle class
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mshafrir-stripe committed Mar 9, 2020
1 parent 0991d89 commit 6f3f1ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stripe/proguard-rules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.**
Expand Down

0 comments on commit 6f3f1ac

Please sign in to comment.