From b919df6d6b6c94566eb40a0a88111f314eb9b8a7 Mon Sep 17 00:00:00 2001 From: Michele Balistreri Date: Wed, 17 Nov 2021 12:11:00 +0300 Subject: [PATCH] better NFC timeout handling on iOS Signed-off-by: Michele Balistreri --- ios/Podfile.lock | 2 +- package.json | 2 +- src/status_im/keycard/core.cljs | 2 +- yarn.lock | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 80b37aafee..03860e6a0e 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -611,7 +611,7 @@ EXTERNAL SOURCES: CHECKOUT OPTIONS: Keycard: - :commit: abf2be41c70846ab6f11c8bd445faf81b0befc1f + :commit: d5bb5d68dbac19a34945918b51873fbba2c18310 :git: https://github.com/status-im/Keycard.swift.git secp256k1: :commit: 46a1fa30d9b8babeae85ff519050f42394ab5fcc diff --git a/package.json b/package.json index 9971d9dece..6bbf706af9 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "react-native-shake": "^3.3.1", "react-native-share": "^7.0.1", "react-native-splash-screen": "^3.2.0", - "react-native-status-keycard": "git+https://github.com/status-im/react-native-status-keycard.git#v2.5.36", + "react-native-status-keycard": "git+https://github.com/status-im/react-native-status-keycard.git#v2.5.37", "react-native-svg": "^9.8.4", "react-native-touch-id": "^4.4.1", "react-native-webview": "git+https://github.com/status-im/react-native-webview.git#v11.3.0-status", diff --git a/src/status_im/keycard/core.cljs b/src/status_im/keycard/core.cljs index 70a8475e3c..195982f28f 100644 --- a/src/status_im/keycard/core.cljs +++ b/src/status_im/keycard/core.cljs @@ -583,7 +583,7 @@ {:db (-> db (assoc-in [:keycard :nfc-running?] false) (assoc-in [:keycard :card-connected?] false)) - :keycard/start-nfc nil}) + :dispatch-later [{:ms 500 :dispatch [:keycard.ui/start-nfc]}]}) (fx/defn on-register-card-events {:events [:keycard.callback/on-register-card-events]} diff --git a/yarn.lock b/yarn.lock index db09196a19..ec147d1a34 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6740,9 +6740,9 @@ react-native-splash-screen@^3.2.0: resolved "https://registry.yarnpkg.com/react-native-splash-screen/-/react-native-splash-screen-3.2.0.tgz#d47ec8557b1ba988ee3ea98d01463081b60fff45" integrity sha512-Ls9qiNZzW/OLFoI25wfjjAcrf2DZ975hn2vr6U9gyuxi2nooVbzQeFoQS5vQcbCt9QX5NY8ASEEAtlLdIa6KVg== -"react-native-status-keycard@git+https://github.com/status-im/react-native-status-keycard.git#v2.5.36": - version "2.5.36" - resolved "git+https://github.com/status-im/react-native-status-keycard.git#7548329c597a6e1370010b8aa2d16a1d93610f11" +"react-native-status-keycard@git+https://github.com/status-im/react-native-status-keycard.git#v2.5.37": + version "2.5.37" + resolved "git+https://github.com/status-im/react-native-status-keycard.git#af61b0213adbf4b5a6bae97c85496d95007d5acb" react-native-svg@^9.8.4: version "9.13.6"