diff --git a/demo/package.json b/demo/package.json index 23b6bae..76c34e1 100644 --- a/demo/package.json +++ b/demo/package.json @@ -1,10 +1,10 @@ { "nativescript": { "id": "org.nativescript.fingerprintauth", - "tns-ios": { + "tns-android": { "version": "3.4.1" }, - "tns-android": { + "tns-ios": { "version": "3.4.1" } }, diff --git a/src/fingerprint-auth.ios.ts b/src/fingerprint-auth.ios.ts index af348ed..32c7e46 100755 --- a/src/fingerprint-auth.ios.ts +++ b/src/fingerprint-auth.ios.ts @@ -6,8 +6,6 @@ import { VerifyFingerprintWithCustomFallbackOptions } from "./fingerprint-auth.common"; -declare const LABiometryTypeTouchID, LABiometryTypeFaceID: any; - const keychainItemIdentifier = "TouchIDKey"; let keychainItemServiceName = null; @@ -21,8 +19,8 @@ export class FingerprintAuth implements FingerprintAuthApi { resolve({ any: hasBio, - touch: hasBio && laContext.biometryType === LABiometryTypeTouchID, - face: hasBio && laContext.biometryType === LABiometryTypeFaceID, + touch: hasBio && laContext.biometryType == 1, // LABiometryType.TypeTouchID, + face: hasBio && laContext.biometryType == 2, // LABiometryType.TypeFaceID, }); } catch (ex) { diff --git a/src/package.json b/src/package.json index ec5c07e..5d24a72 100755 --- a/src/package.json +++ b/src/package.json @@ -1,6 +1,6 @@ { "name": "nativescript-fingerprint-auth", - "version": "6.0.1", + "version": "6.0.2", "description": "A fingerprint authentication plugin for use in NativeScript apps", "main": "fingerprint-auth", "nativescript": {