Update README to include proguard note (#88)

Add note on proguard exception rule to fix conceal error.
This commit is contained in:
Kevin Barrett 2017-11-19 07:54:38 -05:00 committed by Joel Arvidsson
parent 610ad80134
commit 0c9d6d6ab8
1 changed files with 17 additions and 0 deletions

View File

@ -190,6 +190,23 @@ pod 'RNKeychain', :path => '../node_modules/react-native-keychain'
...
}
```
#### Proguard Rules
On Android builds that use proguard (like release), you may see the following error:
```
RNKeychainManager: no keychain entry found for service:
JNI DETECTED ERROR IN APPLICATION: JNI FindClass called with pending exception java.lang.NoSuchFieldError: no "J" field "mCtxPtr" in class "Lcom/facebook/crypto/cipher/NativeGCMCipher;" or its superclasses
```
If so, add a proguard rule in `proguard-rules.pro`:
```
-keep class com.facebook.crypto.** {
*;
}
```
## Maintainers