@sumsub/cordova-idensic-mobile-sdk-plugin 1.32.1 → 1.34.1
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
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.
|
|
2
|
+
<plugin id="cordova-idensic-mobile-sdk-plugin" version="1.34.1" 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>
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
<source url="https://cdn.cocoapods.org/"/>
|
|
83
83
|
</config>
|
|
84
84
|
<pods>
|
|
85
|
-
<pod name="IdensicMobileSDK" spec="=1.
|
|
85
|
+
<pod name="IdensicMobileSDK" spec="=1.34.1" />
|
|
86
86
|
</pods>
|
|
87
87
|
</podspec>
|
|
88
88
|
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
var fs = require('fs');
|
|
4
4
|
|
|
5
5
|
module.exports = function (context) {
|
|
6
|
-
|
|
7
6
|
var withEID = process.argv.includes('--with-EID')
|
|
8
7
|
var withVideoIdent = process.argv.includes('--with-VideoIdent') || process.argv.includes('--with-VideoIdent-compat')
|
|
8
|
+
var withMRTDReader = process.argv.includes('--with-MRTDReader')
|
|
9
9
|
|
|
10
|
-
if (!withEID && !withVideoIdent) {
|
|
10
|
+
if (!withEID && !withVideoIdent && !withMRTDReader) {
|
|
11
11
|
return
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -19,6 +19,9 @@ module.exports = function (context) {
|
|
|
19
19
|
|
|
20
20
|
var formatted = data;
|
|
21
21
|
|
|
22
|
+
if (withMRTDReader) {
|
|
23
|
+
formatted = formatted.replace(/^\/\/(\s+implementation\s.+nfc.+)$/m, "$1");
|
|
24
|
+
}
|
|
22
25
|
if (withEID) {
|
|
23
26
|
formatted = formatted.replace(/^\/\/(\s+implementation\s.+eid.+)$/m, "$1");
|
|
24
27
|
}
|
|
@@ -31,4 +34,4 @@ module.exports = function (context) {
|
|
|
31
34
|
});
|
|
32
35
|
});
|
|
33
36
|
|
|
34
|
-
}
|
|
37
|
+
}
|
|
@@ -14,9 +14,10 @@ allprojects {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
dependencies {
|
|
17
|
-
implementation "com.sumsub.sns:idensic-mobile-sdk:1.
|
|
18
|
-
// implementation "com.sumsub.sns:idensic-mobile-sdk-videoident:1.
|
|
19
|
-
// implementation "com.sumsub.sns:idensic-mobile-sdk-eid:1.
|
|
17
|
+
implementation "com.sumsub.sns:idensic-mobile-sdk:1.34.1"
|
|
18
|
+
// implementation "com.sumsub.sns:idensic-mobile-sdk-videoident:1.34.1"
|
|
19
|
+
// implementation "com.sumsub.sns:idensic-mobile-sdk-eid:1.34.1"
|
|
20
|
+
// implementation "com.sumsub.sns:idensic-mobile-sdk-nfc:1.34.1"
|
|
20
21
|
|
|
21
22
|
implementation 'com.google.android.material:material:1.8.0'
|
|
22
23
|
}
|
package/src/android/src/main/java/com/sumsub/msdk/plugins/cordova/SNSMobileSdkCordovaPlugin.java
CHANGED
|
@@ -18,7 +18,7 @@ import com.sumsub.sns.core.data.listener.SNSIconHandler;
|
|
|
18
18
|
import com.sumsub.sns.core.data.listener.SNSStateChangedHandler;
|
|
19
19
|
import com.sumsub.sns.core.data.model.*;
|
|
20
20
|
import com.sumsub.sns.core.theme.SNSCustomizationFileFormat;
|
|
21
|
-
import com.sumsub.sns.
|
|
21
|
+
import com.sumsub.sns.core.SNSProoface;
|
|
22
22
|
|
|
23
23
|
import org.apache.cordova.CallbackContext;
|
|
24
24
|
import org.apache.cordova.CordovaPlugin;
|