oyyq99999 / react-native-secure-storage

A secure AsyncStorage implementation
MIT License
74 stars 54 forks source link

Crash on Android 5 - Proguard #15

Open eliaslecomte opened 5 years ago

eliaslecomte commented 5 years ago

While using this app on Android L (5) devices, our app crashes:

No pending exception expected: java.lang.NoSuchFieldError: no "J" field "mCtxPtr" in class "Lcom/facebook/crypto/cipher/NativeGCMCipher;" or its superclasses

I could mitigate this crash by adding this proguard rule: -keep class com.facebook.crypto.** { *; }

I wonder, what are the correct proguard rules as it appears they are not shipped with the library?