File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
android/src/main/java/com/hieuvp/fingerprint Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ matrix:
2323 components :
2424 - tools
2525 - platform-tools
26- - build-tools-28 .0.3
27- - android-28
26+ - build-tools-29 .0.2
27+ - android-29
2828 sudo : true
2929 before_install :
3030 - nvm install --lts
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ private int currentAndroidVersion() {
7070 }
7171
7272 private boolean requiresLegacyAuthentication () {
73- return currentAndroidVersion < 23 ;
73+ return currentAndroidVersion () < 23 ;
7474 }
7575
7676 public class AuthCallback extends BiometricPrompt .AuthenticationCallback {
@@ -269,6 +269,8 @@ private String legacyGetErrorMessage() {
269269 } else if (!getFingerprintIdentify ().isFingerprintEnable ()) {
270270 return "FingerprintScannerNotAvailable" ;
271271 }
272+
273+ return null ;
272274 }
273275
274276
@@ -299,7 +301,7 @@ public void onFailed(boolean isDeviceLocked) {
299301 if (isDeviceLocked ){
300302 promise .reject ("AuthenticationFailed" , "DeviceLocked" );
301303 } else {
302- promise .reject ("AuthenticationFailed" , TYPE_FINGERPRINT );
304+ promise .reject ("AuthenticationFailed" , TYPE_FINGERPRINT_LEGACY );
303305 }
304306 ReactNativeFingerprintScannerModule .this .release ();
305307 }
You can’t perform that action at this time.
0 commit comments