@sumsub/cordova-idensic-mobile-sdk-plugin 1.40.1 → 1.40.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sumsub/cordova-idensic-mobile-sdk-plugin",
3
- "version": "1.40.1",
3
+ "version": "1.40.2",
4
4
  "description": "Cordova plugin exposing Sumsub SDK",
5
5
  "scripts": {
6
6
  "build": "webpack --mode=production"
package/plugin.xml CHANGED
@@ -1,5 +1,5 @@
1
1
  <?xml version="1.0" encoding="utf-8" ?>
2
- <plugin id="cordova-idensic-mobile-sdk-plugin" version="1.40.1" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
2
+ <plugin id="cordova-idensic-mobile-sdk-plugin" version="1.40.2" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
3
3
 
4
4
  <name>cordova-idensic-mobile-sdk-plugin</name>
5
5
  <description>Cordova plugin exposing SumSub Mobile SDK</description>
@@ -81,7 +81,7 @@
81
81
  <source url="https://cdn.cocoapods.org/"/>
82
82
  </config>
83
83
  <pods>
84
- <pod name="IdensicMobileSDK" spec="=1.40.1" />
84
+ <pod name="IdensicMobileSDK" spec="=1.40.2" />
85
85
  </pods>
86
86
  </podspec>
87
87
 
@@ -3,11 +3,12 @@
3
3
  var fs = require('fs');
4
4
 
5
5
  module.exports = function (context) {
6
+ var withFisherman = process.argv.includes('--with-Fisherman')
6
7
  var withEID = process.argv.includes('--with-EID')
7
8
  var withVideoIdent = process.argv.includes('--with-VideoIdent') || process.argv.includes('--with-VideoIdent-compat')
8
- var withMRTDReader = process.argv.includes('--with-MRTDReader')
9
+ var withMRTDReader = process.argv.includes('--with-MRTDReader') || process.argv.includes('--with-MRTDReader-compat')
9
10
 
10
- if (!withEID && !withVideoIdent && !withMRTDReader) {
11
+ if (!withFisherman && !withEID && !withVideoIdent && !withMRTDReader) {
11
12
  return
12
13
  }
13
14
 
@@ -19,6 +20,9 @@ module.exports = function (context) {
19
20
 
20
21
  var formatted = data;
21
22
 
23
+ if (withFisherman) {
24
+ formatted = formatted.replace(/^\/\/(\s+implementation\s.+fisherman.+)$/m, "$1");
25
+ }
22
26
  if (withMRTDReader) {
23
27
  formatted = formatted.replace(/^\/\/(\s+implementation\s.+nfc.+)$/m, "$1");
24
28
  }
@@ -4,6 +4,7 @@ var fs = require('fs');
4
4
 
5
5
  module.exports = function (context) {
6
6
 
7
+ var withFisherman = process.argv.includes('--with-Fisherman')
7
8
  var withEID = process.argv.includes('--with-EID')
8
9
  var withMRTDReader = process.argv.includes('--with-MRTDReader')
9
10
  var withMRTDReaderCompat = process.argv.includes('--with-MRTDReader-compat')
@@ -13,7 +14,7 @@ module.exports = function (context) {
13
14
  withMRTDReader = withMRTDReader || withMRTDReaderCompat
14
15
  withVideoIdent = withVideoIdent || withVideoIdentCompat
15
16
 
16
- if (!withEID && !withMRTDReader && !withVideoIdent) {
17
+ if (!withFisherman && !withEID && !withMRTDReader && !withVideoIdent) {
17
18
  return
18
19
  }
19
20
 
@@ -37,6 +38,9 @@ module.exports = function (context) {
37
38
  var replaces = [podLine]
38
39
  var minTarget = '13.0'
39
40
 
41
+ if (withFisherman) {
42
+ replaces.push(podLine.replace(/IdensicMobileSDK/, 'IdensicMobileSDK/Fisherman'))
43
+ }
40
44
  if (withEID) {
41
45
  replaces.push(podLine.replace(/IdensicMobileSDK/, 'IdensicMobileSDK/EID'))
42
46
  }
@@ -14,10 +14,11 @@ allprojects {
14
14
  }
15
15
 
16
16
  dependencies {
17
- implementation "com.sumsub.sns:idensic-mobile-sdk:1.40.1"
18
- implementation "com.sumsub.sns:idensic-mobile-sdk-videoident:1.40.1"
19
- implementation "com.sumsub.sns:idensic-mobile-sdk-eid:1.40.1"
20
- implementation "com.sumsub.sns:idensic-mobile-sdk-nfc:1.40.1"
17
+ implementation "com.sumsub.sns:idensic-mobile-sdk:1.40.2"
18
+ implementation "com.sumsub.sns:idensic-mobile-sdk-fisherman:1.40.2"
19
+ implementation "com.sumsub.sns:idensic-mobile-sdk-videoident:1.40.2"
20
+ implementation "com.sumsub.sns:idensic-mobile-sdk-eid:1.40.2"
21
+ implementation "com.sumsub.sns:idensic-mobile-sdk-nfc:1.40.2"
21
22
 
22
23
  implementation 'com.google.android.material:material:1.8.0'
23
24
  }