remove nfc-react-native module
This commit is contained in:
parent
4be98b10bf
commit
6dd4064b70
|
@ -205,7 +205,6 @@ dependencies {
|
|||
implementation project(':react-native-svg')
|
||||
implementation 'com.android.support:multidex:1.0.2'
|
||||
implementation project(':react-native-http-bridge')
|
||||
implementation project(':nfc-react-native')
|
||||
implementation project(':instabug-reactnative')
|
||||
implementation project(':react-native-splash-screen')
|
||||
implementation project(':react-native-image-resizer')
|
||||
|
|
|
@ -19,7 +19,6 @@ import com.AlexanderZaytsev.RNI18n.RNI18nPackage;
|
|||
import com.lwansbrough.RCTCamera.RCTCameraPackage;
|
||||
import com.reactnative.ivpusic.imagepicker.PickerPackage;
|
||||
import com.rnfs.RNFSPackage;
|
||||
import es.tiarg.nfcreactnative.NfcReactNativePackage;
|
||||
import fr.bamlab.rnimageresizer.ImageResizerPackage;
|
||||
import im.status.ethereum.module.StatusPackage;
|
||||
import io.realm.react.RealmReactPackage;
|
||||
|
@ -61,7 +60,6 @@ public class MainApplication extends MultiDexApplication implements ReactApplica
|
|||
new SvgPackage(),
|
||||
new FIRMessagingPackage(),
|
||||
new HttpServerReactPackage(),
|
||||
new NfcReactNativePackage(),
|
||||
new SplashScreenReactPackage(),
|
||||
statusPackage,
|
||||
new RealmReactPackage(),
|
||||
|
|
|
@ -12,8 +12,6 @@ project(':react-native-fcm').projectDir = new File(rootProject.projectDir, '../n
|
|||
include ':app'
|
||||
include ':react-native-http-bridge'
|
||||
project(':react-native-http-bridge').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-http-bridge/android')
|
||||
include ':nfc-react-native'
|
||||
project(':nfc-react-native').projectDir = new File(rootProject.projectDir, '../node_modules/nfc-react-native/android')
|
||||
include ':instabug-reactnative'
|
||||
project(':instabug-reactnative').projectDir = new File(rootProject.projectDir, '../node_modules/instabug-reactnative/android')
|
||||
include ':react-native-splash-screen'
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
"web3"
|
||||
"chance"
|
||||
"instabug-reactnative"
|
||||
"nfc-react-native"
|
||||
"react-native-http-bridge"
|
||||
"emojilib"
|
||||
"react-native-config"
|
||||
|
|
|
@ -5195,12 +5195,6 @@
|
|||
"resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz",
|
||||
"integrity": "sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s="
|
||||
},
|
||||
"nan": {
|
||||
"version": "2.10.0",
|
||||
"resolved": "https://registry.npmjs.org/nan/-/nan-2.10.0.tgz",
|
||||
"integrity": "sha512-bAdJv7fBLhWC+/Bls0Oza+mvTaNQtP+1RyhhhvD95pgUJz6XM5IzgmxOkItJ9tkoCiplvAnXI1tNmmUD/eScyA==",
|
||||
"optional": true
|
||||
},
|
||||
"nanomatch": {
|
||||
"version": "1.2.13",
|
||||
"resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz",
|
||||
|
@ -5258,9 +5252,6 @@
|
|||
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz",
|
||||
"integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk="
|
||||
},
|
||||
"nfc-react-native": {
|
||||
"version": "git+https://github.com/status-im/nfc-react-native.git#ecdb55e470bb9fa569d26fcc8af4e5169511a4d3"
|
||||
},
|
||||
"node-fetch": {
|
||||
"version": "1.7.3",
|
||||
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.3.tgz",
|
||||
|
@ -6870,7 +6861,6 @@
|
|||
"capture-exit": "1.2.0",
|
||||
"exec-sh": "0.2.2",
|
||||
"fb-watchman": "2.0.0",
|
||||
"fsevents": "1.2.4",
|
||||
"micromatch": "3.1.10",
|
||||
"minimist": "1.2.0",
|
||||
"walker": "1.0.7",
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
"identicon.js": "https://github.com/status-im/identicon.js.git",
|
||||
"instabug-reactnative": "2.12.0",
|
||||
"level-filesystem": "1.2.0",
|
||||
"nfc-react-native": "https://github.com/status-im/nfc-react-native.git",
|
||||
"process": "0.11.10",
|
||||
"prop-types": "15.6.0",
|
||||
"punycode": "1.4.1",
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
(def image-crop-picker (js/require "react-native-image-crop-picker"))
|
||||
(def image-resizer (js/require "react-native-image-resizer"))
|
||||
(def instabug (js/require "instabug-reactnative"))
|
||||
(def nfc (js/require "nfc-react-native"))
|
||||
(def svg (js/require "react-native-svg"))
|
||||
(def react-native-fcm (js/require "react-native-fcm"))
|
||||
(def snoopy (js/require "rn-snoopy"))
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
(ns status-im.ui.components.nfc
|
||||
(:require [status-im.utils.platform :as platform]
|
||||
[status-im.react-native.js-dependencies :as js-dependencies]))
|
||||
|
||||
(def android-only-error "NFC API is available only on Android")
|
||||
|
||||
(defn get-card-id [on-success on-error]
|
||||
(if platform/android?
|
||||
(-> (.getCardId js-dependencies/nfc)
|
||||
(.then on-success)
|
||||
(.catch on-error))
|
||||
(on-error android-only-error)))
|
||||
|
||||
(defn read-tag [sectors on-success on-error]
|
||||
(if platform/android?
|
||||
(-> (.readTag js-dependencies/nfc (clj->js sectors))
|
||||
(.then on-success)
|
||||
(.catch on-error))
|
||||
(on-error android-only-error)))
|
||||
|
||||
(defn write-tag [sectors card-id on-success on-error]
|
||||
(if platform/android?
|
||||
(-> (.writeTag js-dependencies/nfc (clj->js sectors) card-id)
|
||||
(.then on-success)
|
||||
(.catch on-error))
|
||||
(on-error android-only-error)))
|
Loading…
Reference in New Issue