Skip to content

Commit

Permalink
6.7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins committed Mar 31, 2023
1 parent bbf7760 commit d10f4c0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"cordova-android": "^10.1.1",
"cordova-ios": "^6.2.0",
"cordova-plugin-add-swift-support": "^2.0.2",
"@regulaforensics/cordova-plugin-document-reader-api": "6.7.3",
"@regulaforensics/cordova-plugin-document-reader-api": "6.7.4",
"@regulaforensics/cordova-plugin-document-reader-core-fullrfid": "6.7.0",
"cordova-plugin-file": "^6.0.2",
"cordova-plugin-telerik-imagepicker": "^2.3.5",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@regulaforensics/cordova-plugin-document-reader-api",
"version": "6.7.3",
"version": "6.7.4",
"description": "Cordova plugin for reading and validation of identification documents (API framework)",
"cordova": {
"id": "@regulaforensics/cordova-plugin-document-reader-api",
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-document-reader-api" version="6.7.3"
<plugin id="cordova-plugin-document-reader-api" version="6.7.4"
xmlns="http://apache.org/cordova/ns/plugins/1.0">
<name>DocumentReaderApi</name>
<description>Cordova plugin Document reader api</description>
Expand Down
7 changes: 2 additions & 5 deletions src/android/DocumentReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -464,11 +464,8 @@ private void startForegroundDispatch(final Activity activity) {
new String[]{"android.nfc.tech.IsoDep"}
};
Intent intent = new Intent(activity.getApplicationContext(), activity.getClass());
intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
int flags = 0;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)
flags = PendingIntent.FLAG_IMMUTABLE;
PendingIntent pendingIntent = PendingIntent.getActivity(activity.getApplicationContext(), 0, intent, flags);
int flag = Build.VERSION.SDK_INT >= Build.VERSION_CODES.S ? PendingIntent.FLAG_MUTABLE : 0;
PendingIntent pendingIntent = PendingIntent.getActivity(activity.getApplicationContext(), 0, intent, flag);
NfcAdapter.getDefaultAdapter(getActivity()).enableForegroundDispatch(activity, pendingIntent, filters, techList);
}

Expand Down
2 changes: 1 addition & 1 deletion src/ios/RGLWJSONConstructor.m
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ +(NSMutableDictionary*)generateCompletion:(NSInteger)action :(RGLDocumentReaderR
break;
case 999:
result[@"results"] = [self generateResultsWithRFID :results :1];
action = 1;
action = 0;
break;
default:
break;
Expand Down

0 comments on commit d10f4c0

Please sign in to comment.