From c850ffd90f2e3d87851318cbcbf755d827b8d6d2 Mon Sep 17 00:00:00 2001 From: Jyrno Ader Date: Fri, 12 Oct 2018 15:55:43 +0300 Subject: [PATCH] Android: Fix `CalledFromWrongThreadException` when fingerprint auth fails see: https://github.com/oblador/react-native-keychain/pull/148#issuecomment-428968865 https://github.com/thorgate/BiometricPromptCompat/commit/776801e1976e58ef7ad9027e402f78da352bfd14 --- android/build.gradle | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/android/build.gradle b/android/build.gradle index 42343798..a146b4a8 100755 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,6 +1,7 @@ buildscript { repositories { jcenter() + maven { url 'https://jitpack.io' } } dependencies { @@ -36,5 +37,9 @@ repositories { dependencies { implementation 'com.facebook.react:react-native:+' implementation 'com.facebook.conceal:conceal:1.1.3@aar' - implementation 'moe.feng.support.biometricprompt:library:1.0.1' + + // Fixes `CalledFromWrongThreadException` + // see: https://github.com/oblador/react-native-keychain/pull/148#issuecomment-428968865 + // https://github.com/thorgate/BiometricPromptCompat/commit/776801e1976e58ef7ad9027e402f78da352bfd14 + implementation 'com.github.thorgate:BiometricPromptCompat:776801e197' }