cordova-plugin-fingerprint-aio
Advanced tools
Comparing version 1.3.4 to 1.3.5
{ | ||
"name": "cordova-plugin-fingerprint-aio", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "Cordova plugin to use fingerprint authentication on Android and iOS", | ||
@@ -34,14 +34,14 @@ "cordova": { | ||
"dependencies": { | ||
"cordova-plugin-add-swift-support": "^1.7.0" | ||
"cordova-plugin-add-swift-support": "^1.7.1" | ||
}, | ||
"devDependencies": { | ||
"cordova-paramedic": "^0.5.0", | ||
"cordova-paramedic": "git+https://github.com/apache/cordova-paramedic.git", | ||
"cordova-plugin-xml": "^0.1.2", | ||
"eslint": "^4.8.0", | ||
"jasmine": "*" | ||
"eslint": "^4.14.0", | ||
"jasmine": "^2.8.0" | ||
}, | ||
"scripts": { | ||
"test": "./node_modules/cordova-paramedic/main.js --plugin . --device --platform", | ||
"test": "./node_modules/cordova-paramedic/main.js --plugin . --platform", | ||
"plugin-version": "cordova-plugin-xml setVersion" | ||
} | ||
} |
@@ -22,2 +22,3 @@ # Cordova Plugin Fingerprint All-In-One | ||
* Fallback options | ||
* Now with **FaceID** on iPhone X | ||
@@ -27,4 +28,4 @@ ### Platforms | ||
* Android | ||
* iOS - **XCode 8 or higher** required, plugin uses Swift 3 | ||
* _If you are using XCode 9, please set `<preference name="UseSwiftLanguageVersion" value="3.2" />` in your config.xml_ | ||
* iOS - **XCode 9.2 or higher** required | ||
* _Please set `<preference name="UseSwiftLanguageVersion" value="3.2" />` in your config.xml_ | ||
@@ -54,2 +55,8 @@ | ||
If you want to set a FaceID description use: | ||
``` | ||
cordova plugin add cordova-plugin-fingerprint-aio --variable FACEID_USAGE_DESCRIPTION="Login now...." | ||
``` | ||
or use this Github repo | ||
@@ -62,2 +69,6 @@ | ||
function isAvailableSuccess(result) { | ||
/* | ||
result depends on device and os. | ||
iPhone X will return 'face' other Android or iOS devices will return 'finger' | ||
*/ | ||
alert("Fingerprint available"); | ||
@@ -92,4 +103,8 @@ } | ||
## Thanks to the authors of the original fingerprint plugins: | ||
## Thanks to the authors of the original fingerprint plugins | ||
Some code is refactored from their projects and I learned how to make Cordova plugins from their great plugins: | ||
@EddyVerbruggen and @mjwheatley | ||
[Android](https://github.com/mjwheatley/cordova-plugin-android-fingerprint-auth) | ||
@@ -96,0 +111,0 @@ |
@@ -41,3 +41,3 @@ /* global Fingerprint */ | ||
console.log(result); | ||
alert("Fingerprint available"); | ||
alert("Fingerprint available (" + result + ")"); | ||
} | ||
@@ -44,0 +44,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
139041
35
901
113