Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Note on preventing Android crash with proguard/dexguard enabled #97

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,16 @@ Below is a list of known differences in expected behavior between the Onfido And

* Documents with the type `passport` uploaded through the iOS SDK will have the `side` attribute set to `null`, while those uploaded via Android will have `side` as `front`.

**Proguard / Dexguard**

If you have enabled either of these then disable them for the Onfido module to prevent a crash in Android when starting the camera:

`proguard-rules.pro`
Add `-keep class com.onfido.reactnative.sdk.** { *; }`

`dexguard-project.txt`
Add `-keep class com.onfido.reactnative.sdk.** { *; }`

### Support

Please open an issue through [GitHub](https://github.com/onfido/onfido-react-native-sdk/issues). Please be as detailed as you can. Remember **not** to submit your token in the issue. Also check the closed issues to check whether it has been previously raised and answered.
Expand Down