From d16c575abdb97cf77689ce33c3ea7aa1584e6f66 Mon Sep 17 00:00:00 2001 From: EddyVerbruggen Date: Thu, 1 Oct 2015 22:33:21 +0200 Subject: [PATCH] https://github.com/Telerik-Verified-Plugins/TouchID/issues/1 - iOS9 sim supports TouchID --- README.md | 10 ++-------- plugin.xml | 2 +- src/ios/TouchID.m | 5 ----- 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 62c902a..ce310e5 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,7 @@ by [Eddy Verbruggen](http://twitter.com/eddyverbruggen) 3. [Automatically (CLI / Plugman)](#automatically-cli--plugman) 3. [Manually](#manually) 4. [Usage](#4-usage) -5. [Quircks](#5-quircks) -6. [License](#6-license) +5. [License](#5-license) ## 1. Description @@ -95,12 +94,7 @@ You can copy-paste these lines of code for a quick test: ``` -## 5. Quircks - -### The iOS Simulator -When testing the plugin in XCode, use a real device (not the simulator) because it has no fingerprint scanner. Duh. - -## 6. License +## 5. License [The MIT License (MIT)](http://www.opensource.org/licenses/mit-license.html) diff --git a/plugin.xml b/plugin.xml index 0ed3840..17a5ec3 100755 --- a/plugin.xml +++ b/plugin.xml @@ -1,7 +1,7 @@ + version="2.0.1"> Touch ID diff --git a/src/ios/TouchID.m b/src/ios/TouchID.m index 4455c0c..689d76a 100755 --- a/src/ios/TouchID.m +++ b/src/ios/TouchID.m @@ -9,11 +9,6 @@ @implementation TouchID - (void) isAvailable:(CDVInvokedUrlCommand*)command; { - if (TARGET_IPHONE_SIMULATOR) { - [self.commandDelegate sendPluginResult:[CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:@"The simulator is not supported"] callbackId:command.callbackId]; - return; - } - if (NSClassFromString(@"LAContext") == NULL) { [self.commandDelegate sendPluginResult:[CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR] callbackId:command.callbackId]; return;