mirror of
https://github.com/bitwarden/android.git
synced 2024-11-23 09:56:11 +03:00
Add Proguard rules for JNA and the SDK (#55)
This commit is contained in:
parent
dd2ad70b52
commit
747dbdb4e7
1 changed files with 23 additions and 0 deletions
23
app/proguard-rules.pro
vendored
23
app/proguard-rules.pro
vendored
|
@ -1,3 +1,11 @@
|
|||
################################################################################
|
||||
# Bitwarden SDK
|
||||
################################################################################
|
||||
|
||||
# We need to access the SDK using JNA and this makes it very easy to obfuscate away the SDK unless
|
||||
# we keep it here.
|
||||
-keep class com.bitwarden.sdk.** { *; }
|
||||
|
||||
################################################################################
|
||||
# Firebase Crashlytics
|
||||
################################################################################
|
||||
|
@ -39,6 +47,21 @@
|
|||
-keep public class * implements com.bumptech.glide.module.GlideModule
|
||||
-keep public class * extends com.bumptech.glide.module.AppGlideModule
|
||||
|
||||
################################################################################
|
||||
# JNA
|
||||
################################################################################
|
||||
|
||||
# See https://github.com/java-native-access/jna/blob/fdb8695fb9b05fba467dadfe5735282f8bcc053d/www/FrequentlyAskedQuestions.md#jna-on-android
|
||||
-dontwarn java.awt.*
|
||||
-keep class com.sun.jna.* { *; }
|
||||
-keepclassmembers class * extends com.sun.jna.* { public *; }
|
||||
|
||||
# Keep annotated classes
|
||||
-keep @com.sun.jna.* class *
|
||||
-keepclassmembers class * {
|
||||
@com.sun.jna.* *;
|
||||
}
|
||||
|
||||
################################################################################
|
||||
# Okhttp/Retrofit https://square.github.io/okhttp/ & https://square.github.io/retrofit/
|
||||
################################################################################
|
||||
|
|
Loading…
Reference in a new issue