@sumsub/cordova-idensic-mobile-sdk-plugin 1.31.3 → 1.32.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.32.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>
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
<preference name="MICROPHONE_USAGE" default="Time to record a video" />
|
|
53
53
|
<preference name="PHOTO_USAGE" default="Let us pick a photo" />
|
|
54
54
|
<preference name="LOCATION_USAGE" default="Please provide us with your geolocation data to prove your current location" />
|
|
55
|
+
<preference name="NFCREADER_USAGE" default="Let us scan the document for more precise recognition" />
|
|
55
56
|
|
|
56
57
|
<config-file target="*-Info.plist" parent="NSCameraUsageDescription">
|
|
57
58
|
<string>$CAMERA_USAGE</string>
|
|
@@ -65,6 +66,9 @@
|
|
|
65
66
|
<config-file target="*-Info.plist" parent="NSLocationWhenInUseUsageDescription">
|
|
66
67
|
<string>$LOCATION_USAGE</string>
|
|
67
68
|
</config-file>
|
|
69
|
+
<config-file target="*-Info.plist" parent="NFCReaderUsageDescription">
|
|
70
|
+
<string>$NFCREADER_USAGE</string>
|
|
71
|
+
</config-file>
|
|
68
72
|
|
|
69
73
|
<config-file target="config.xml" parent="/*">
|
|
70
74
|
<feature name="SNSMobileSdkCordovaPlugin">
|
|
@@ -78,7 +82,7 @@
|
|
|
78
82
|
<source url="https://cdn.cocoapods.org/"/>
|
|
79
83
|
</config>
|
|
80
84
|
<pods>
|
|
81
|
-
<pod name="IdensicMobileSDK" spec="=1.
|
|
85
|
+
<pod name="IdensicMobileSDK" spec="=1.32.0" />
|
|
82
86
|
</pods>
|
|
83
87
|
</podspec>
|
|
84
88
|
|
|
@@ -4,9 +4,10 @@ var fs = require('fs');
|
|
|
4
4
|
|
|
5
5
|
module.exports = function (context) {
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var withEID = process.argv.includes('--with-EID')
|
|
8
|
+
var withVideoIdent = process.argv.includes('--with-VideoIdent') || process.argv.includes('--with-VideoIdent-compat')
|
|
8
9
|
|
|
9
|
-
if (!withVideoIdent) {
|
|
10
|
+
if (!withEID && !withVideoIdent) {
|
|
10
11
|
return
|
|
11
12
|
}
|
|
12
13
|
|
|
@@ -14,11 +15,20 @@ module.exports = function (context) {
|
|
|
14
15
|
|
|
15
16
|
fs.readFile(gradleExtrasFilePath, 'utf8', function (err,data) {
|
|
16
17
|
|
|
17
|
-
var formatted = data.replace(/^\/\/(\s+implementation\s.+videoident.+)$/m, "$1");
|
|
18
|
-
|
|
19
|
-
fs.writeFile(gradleExtrasFilePath, formatted, 'utf8', function (err) {
|
|
20
18
|
if (err) return console.log(err);
|
|
21
|
-
|
|
19
|
+
|
|
20
|
+
var formatted = data;
|
|
21
|
+
|
|
22
|
+
if (withEID) {
|
|
23
|
+
formatted = formatted.replace(/^\/\/(\s+implementation\s.+eid.+)$/m, "$1");
|
|
24
|
+
}
|
|
25
|
+
if (withVideoIdent) {
|
|
26
|
+
formatted = formatted.replace(/^\/\/(\s+implementation\s.+videoident.+)$/m, "$1");
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
fs.writeFile(gradleExtrasFilePath, formatted, 'utf8', function (err) {
|
|
30
|
+
if (err) return console.log(err);
|
|
31
|
+
});
|
|
22
32
|
});
|
|
23
33
|
|
|
24
34
|
}
|
|
@@ -4,15 +4,16 @@ var fs = require('fs');
|
|
|
4
4
|
|
|
5
5
|
module.exports = function (context) {
|
|
6
6
|
|
|
7
|
+
var withEID = process.argv.includes('--with-EID')
|
|
7
8
|
var withMRTDReader = process.argv.includes('--with-MRTDReader')
|
|
8
9
|
var withMRTDReaderCompat = process.argv.includes('--with-MRTDReader-compat')
|
|
9
10
|
var withVideoIdent = process.argv.includes('--with-VideoIdent')
|
|
10
|
-
var
|
|
11
|
+
var withVideoIdentCompat = process.argv.includes('--with-VideoIdent-compat')
|
|
11
12
|
|
|
12
13
|
withMRTDReader = withMRTDReader || withMRTDReaderCompat
|
|
13
|
-
withVideoIdent = withVideoIdent ||
|
|
14
|
+
withVideoIdent = withVideoIdent || withVideoIdentCompat
|
|
14
15
|
|
|
15
|
-
if (!withMRTDReader && !withVideoIdent) {
|
|
16
|
+
if (!withEID && !withMRTDReader && !withVideoIdent) {
|
|
16
17
|
return
|
|
17
18
|
}
|
|
18
19
|
|
|
@@ -24,6 +25,7 @@ module.exports = function (context) {
|
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
var podfileContent = fs.readFileSync(podfilePath, 'utf8')
|
|
28
|
+
var platformLineRe = /^\s*platform :ios, ['"](.*?)['"]\s*$/m
|
|
27
29
|
var podLineRe = /^.*IdensicMobileSDK.*$/m
|
|
28
30
|
|
|
29
31
|
var matches = podfileContent.match(podLineRe)
|
|
@@ -33,12 +35,24 @@ module.exports = function (context) {
|
|
|
33
35
|
|
|
34
36
|
var podLine = matches[0]
|
|
35
37
|
var replaces = [podLine]
|
|
38
|
+
var minTarget = '12.0'
|
|
36
39
|
|
|
40
|
+
if (withEID) {
|
|
41
|
+
replaces.push(podLine.replace(/IdensicMobileSDK/, 'IdensicMobileSDK/EID'))
|
|
42
|
+
}
|
|
37
43
|
if (withMRTDReader) {
|
|
38
44
|
replaces.push(podLine.replace(/IdensicMobileSDK/, 'IdensicMobileSDK/MRTDReader' + (withMRTDReaderCompat ? "-compat" : "")))
|
|
39
45
|
}
|
|
40
46
|
if (withVideoIdent) {
|
|
41
|
-
replaces.push(podLine.replace(/IdensicMobileSDK/, 'IdensicMobileSDK/VideoIdent' + (
|
|
47
|
+
replaces.push(podLine.replace(/IdensicMobileSDK/, 'IdensicMobileSDK/VideoIdent' + (withVideoIdentCompat ? "-compat" : "")))
|
|
48
|
+
if (!withVideoIdentCompat) {
|
|
49
|
+
minTarget = '12.2'
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
var platformMatches = podfileContent.match(platformLineRe)
|
|
54
|
+
if (platformMatches && platformMatches[1] < minTarget) {
|
|
55
|
+
podfileContent = podfileContent.replace(platformMatches[0], "platform :ios, '" + minTarget + "'\n" )
|
|
42
56
|
}
|
|
43
57
|
|
|
44
58
|
podfileContent = podfileContent.replace(podLineRe, replaces.join("\n"))
|
|
@@ -14,7 +14,9 @@ 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.
|
|
17
|
+
implementation "com.sumsub.sns:idensic-mobile-sdk:1.32.1"
|
|
18
|
+
// implementation "com.sumsub.sns:idensic-mobile-sdk-videoident:1.32.1"
|
|
19
|
+
// implementation "com.sumsub.sns:idensic-mobile-sdk-eid:1.32.1"
|
|
20
|
+
|
|
19
21
|
implementation 'com.google.android.material:material:1.8.0'
|
|
20
22
|
}
|