react-native-nfc-manager 3.14.5 → 3.14.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -72,6 +72,22 @@ Additionally, if writing ISO7816 tags add application identifiers (aid) into you
72
72
 
73
73
  More info on Apple's [doc](https://developer.apple.com/documentation/corenfc/nfciso7816tag)
74
74
 
75
+ **Note:** If you are using `NfcTech.FelicaIOS`, you must also add the following code to your `Info.plist` file, otherwise the library will crash:
76
+
77
+ ```xml
78
+ <key>com.apple.developer.nfc.readersession.felica.systemcodes</key>
79
+ <array>
80
+ <string>8005</string>
81
+ <string>8008</string>
82
+ <string>0003</string>
83
+ <string>fe00</string>
84
+ <string>90b7</string>
85
+ <string>927a</string>
86
+ <string>12FC</string>
87
+ <string>86a7</string>
88
+ </array>
89
+ ```
90
+
75
91
  An incomplete list of aid's can be found here. [Application identifier](https://www.eftlab.com/knowledge-base/211-emv-aid-rid-pix/)
76
92
 
77
93
  3. in Xcode's `Signing & Capabilities` tab, make sure `Near Field Communication Tag Reading` capability had been added, like this:
@@ -948,34 +948,6 @@ class NfcManager extends ReactContextBaseJavaModule implements ActivityEventList
948
948
  }
949
949
  }
950
950
 
951
- @ReactMethod
952
- public void setNdefPushMessage(ReadableArray rnArray, Callback callback) {
953
- synchronized(this) {
954
- if (techRequest == null && writeNdefRequest == null) {
955
- try {
956
- Activity currentActivity = getCurrentActivity();
957
- if (currentActivity == null) {
958
- throw new RuntimeException("cannot get current activity");
959
- }
960
-
961
- NdefMessage msgToPush = null;
962
- if (rnArray != null) {
963
- msgToPush = new NdefMessage(rnArrayToBytes(rnArray));
964
- }
965
-
966
- NfcAdapter nfcAdapter = NfcAdapter.getDefaultAdapter(context);
967
- nfcAdapter.setNdefPushMessage(msgToPush, currentActivity);
968
- callback.invoke();
969
- } catch (Exception ex) {
970
- Log.d(LOG_TAG, ex.toString());
971
- callback.invoke(ex.toString());
972
- }
973
- } else {
974
- callback.invoke(ERR_MULTI_REQ);
975
- }
976
- }
977
- }
978
-
979
951
  @ReactMethod
980
952
  public void start(Callback callback) {
981
953
  NfcAdapter nfcAdapter = NfcAdapter.getDefaultAdapter(context);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-nfc-manager",
3
- "version": "3.14.5",
3
+ "version": "3.14.7",
4
4
  "description": "A NFC module for react native.",
5
5
  "main": "src/index.js",
6
6
  "repository": {
@@ -62,7 +62,7 @@
62
62
  "typescript": "^4.1.3"
63
63
  },
64
64
  "dependencies": {
65
- "@expo/config-plugins": "^6.0.1"
65
+ "@expo/config-plugins": "~7.2.2"
66
66
  },
67
67
  "scripts": {
68
68
  "lint": "eslint .",
@@ -77,8 +77,9 @@ class NfcManagerAndroid extends NfcManagerBase {
77
77
  getLaunchTagEvent = () =>
78
78
  handleNativeException(callNative('getLaunchTagEvent'));
79
79
 
80
- setNdefPushMessage = (bytes) =>
81
- handleNativeException(callNative('setNdefPushMessage', [bytes]));
80
+ setNdefPushMessage = (bytes) => {
81
+ return Promise.reject('this api is deprecated');
82
+ }
82
83
 
83
84
  setTimeout = (timeout) =>
84
85
  handleNativeException(callNative('setTimeout', [timeout]));