@regulaforensics/cordova-plugin-document-reader-api 6.7.2 → 6.7.4

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.
@@ -16,7 +16,7 @@
16
16
  "cordova-android": "^10.1.1",
17
17
  "cordova-ios": "^6.2.0",
18
18
  "cordova-plugin-add-swift-support": "^2.0.2",
19
- "@regulaforensics/cordova-plugin-document-reader-api": "6.7.2",
19
+ "@regulaforensics/cordova-plugin-document-reader-api": "6.7.4",
20
20
  "@regulaforensics/cordova-plugin-document-reader-core-fullrfid": "6.7.0",
21
21
  "cordova-plugin-file": "^6.0.2",
22
22
  "cordova-plugin-telerik-imagepicker": "^2.3.5",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/cordova-plugin-document-reader-api",
3
- "version": "6.7.2",
3
+ "version": "6.7.4",
4
4
  "description": "Cordova plugin for reading and validation of identification documents (API framework)",
5
5
  "cordova": {
6
6
  "id": "@regulaforensics/cordova-plugin-document-reader-api",
package/plugin.xml CHANGED
@@ -1,5 +1,5 @@
1
1
  <?xml version='1.0' encoding='utf-8'?>
2
- <plugin id="cordova-plugin-document-reader-api" version="6.7.2"
2
+ <plugin id="cordova-plugin-document-reader-api" version="6.7.4"
3
3
  xmlns="http://apache.org/cordova/ns/plugins/1.0">
4
4
  <name>DocumentReaderApi</name>
5
5
  <description>Cordova plugin Document reader api</description>
@@ -26,7 +26,7 @@
26
26
  <config>
27
27
  </config>
28
28
  <pods>
29
- <pod name="DocumentReader" spec="6.7.2848" />
29
+ <pod name="DocumentReader" spec="6.7.2863" />
30
30
  </pods>
31
31
  </podspec>
32
32
  </platform>
@@ -464,11 +464,8 @@ public class DocumentReader extends CordovaPlugin {
464
464
  new String[]{"android.nfc.tech.IsoDep"}
465
465
  };
466
466
  Intent intent = new Intent(activity.getApplicationContext(), activity.getClass());
467
- intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
468
- int flags = 0;
469
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)
470
- flags = PendingIntent.FLAG_IMMUTABLE;
471
- PendingIntent pendingIntent = PendingIntent.getActivity(activity.getApplicationContext(), 0, intent, flags);
467
+ int flag = Build.VERSION.SDK_INT >= Build.VERSION_CODES.S ? PendingIntent.FLAG_MUTABLE : 0;
468
+ PendingIntent pendingIntent = PendingIntent.getActivity(activity.getApplicationContext(), 0, intent, flag);
472
469
  NfcAdapter.getDefaultAdapter(getActivity()).enableForegroundDispatch(activity, pendingIntent, filters, techList);
473
470
  }
474
471
 
@@ -201,7 +201,7 @@
201
201
  break;
202
202
  case 999:
203
203
  result[@"results"] = [self generateResultsWithRFID :results :1];
204
- action = 1;
204
+ action = 0;
205
205
  break;
206
206
  default:
207
207
  break;