Compare commits

..
Author SHA1 Message Date
Michele Balistreri 8d53ea4792 fix logic 2021-11-15 12:24:14 +03:00
Michele Balistreri 8b46a646c5 fix 2021-11-15 11:54:20 +03:00
Michele Balistreri a11a103620 return value 2021-11-12 10:01:53 +03:00
Michele Balistreri 02e6471c10 fix autopair logic 2021-11-12 09:56:45 +03:00
Michele Balistreri d2168418ee bump version 2021-11-12 09:09:45 +03:00
Michele Balistreri d74b800bfa fix 2021-11-12 09:05:09 +03:00
Michele Balistreri 52d43a71dd make the disconnection error pass through 2021-11-11 17:31:21 +03:00
Michele Balistreri 2594577503 remove old annotations 2021-11-11 17:05:29 +03:00
Michele Balistreri e0b97ae471 default pairing 2021-11-11 16:21:54 +03:00
3 changed files with 4 additions and 14 deletions
+1 -1
View File
@@ -46,5 +46,5 @@ dependencies {
implementation 'com.facebook.react:react-native:+'
implementation 'org.bouncycastle:bcprov-jdk15on:1.60'
implementation 'org.apache.commons:commons-lang3:3.9'
implementation 'com.github.status-im.status-keycard-java:android:3.1.1'
implementation 'com.github.status-im.status-keycard-java:android:3.0.4'
}
+2 -12
View File
@@ -9,18 +9,8 @@ class StatusKeycard: RCTEventEmitter {
var cardChannel: CardChannel? = nil
var nfcStartPrompt: String = "Hold your iPhone near a Status Keycard."
private var _keycardController: Any? = nil
@available(iOS 13.0, *)
private var keycardController: KeycardController? {
get {
return _keycardController as? KeycardController
}
set(kc) {
_keycardController = kc
}
}
private(set) lazy var keycardController: KeycardController? = nil
@objc
func nfcIsSupported(_ resolve: RCTPromiseResolveBlock, reject: RCTPromiseRejectBlock) -> Void {
@@ -209,7 +199,7 @@ class StatusKeycard: RCTEventEmitter {
let nsError = error as NSError
if nsError.code == 200 && nsError.domain == "NFCError" {
self.sendEvent(withName: "keyCardOnNFCUserCancelled", body: nil)
} else if (nsError.code == 201 || nsError.code == 203) && (nsError.domain == "NFCError") {
} else if nsError.code == 201 && nsError.domain == "NFCError" {
self.sendEvent(withName: "keyCardOnNFCTimeout", body: nil)
}
}
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "react-native-status-keycard",
"homepage": "https://keycard.status.im/",
"version": "2.5.39",
"version": "2.5.36",
"description": "React Native library to interact with Status Keycard using NFC connection",
"main": "index.js",
"scripts": {