@sumsub/cordova-idensic-mobile-sdk-plugin 1.40.2 → 1.41.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sumsub/cordova-idensic-mobile-sdk-plugin",
3
- "version": "1.40.2",
3
+ "version": "1.41.1",
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.2" 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.41.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>
@@ -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.2" />
84
+ <pod name="IdensicMobileSDK" spec="=1.41.1" />
85
85
  </pods>
86
86
  </podspec>
87
87
 
@@ -14,28 +14,30 @@ module.exports = function (context) {
14
14
 
15
15
  var gradleExtrasFilePath = './platforms/android/cordova-idensic-mobile-sdk-plugin/SumSubCordova-build-extras.gradle'
16
16
 
17
- fs.readFile(gradleExtrasFilePath, 'utf8', function (err,data) {
18
-
19
- if (err) return console.log(err);
17
+ try {
18
+ if (!fs.existsSync(gradleExtrasFilePath)) {
19
+ console.log('Warning: Gradle extras file not found at ' + gradleExtrasFilePath)
20
+ return
21
+ }
20
22
 
21
- var formatted = data;
23
+ var data = fs.readFileSync(gradleExtrasFilePath, 'utf8')
24
+ var formatted = data
22
25
 
23
- if (withFisherman) {
24
- formatted = formatted.replace(/^\/\/(\s+implementation\s.+fisherman.+)$/m, "$1");
26
+ if (!withFisherman) {
27
+ formatted = formatted.replace(/^(\s+implementation\s.+fisherman.+)$/m, "//$1");
25
28
  }
26
- if (withMRTDReader) {
27
- formatted = formatted.replace(/^\/\/(\s+implementation\s.+nfc.+)$/m, "$1");
29
+ if (!withMRTDReader) {
30
+ formatted = formatted.replace(/^(\s+implementation\s.+nfc.+)$/m, "//$1");
28
31
  }
29
- if (withEID) {
30
- formatted = formatted.replace(/^\/\/(\s+implementation\s.+eid.+)$/m, "$1");
32
+ if (!withEID) {
33
+ formatted = formatted.replace(/^(\s+implementation\s.+eid.+)$/m, "//$1");
31
34
  }
32
- if (withVideoIdent) {
33
- formatted = formatted.replace(/^\/\/(\s+implementation\s.+videoident.+)$/m, "$1");
35
+ if (!withVideoIdent) {
36
+ formatted = formatted.replace(/^(\s+implementation\s.+videoident.+)$/m, "//$1");
34
37
  }
35
38
 
36
- fs.writeFile(gradleExtrasFilePath, formatted, 'utf8', function (err) {
37
- if (err) return console.log(err);
38
- });
39
- });
40
-
39
+ fs.writeFileSync(gradleExtrasFilePath, formatted, 'utf8')
40
+ } catch (err) {
41
+ console.log('Error processing Gradle extras file: ' + err)
42
+ }
41
43
  }
@@ -10,15 +10,22 @@ allprojects {
10
10
  maven { url "https://maven.sumsub.com/repository/maven-public/" }
11
11
  google()
12
12
  mavenCentral()
13
+ maven {
14
+ setUrl("https://maven.sumsub.com/repository/maven-private/")
15
+ credentials {
16
+ username = System.getenv("NEXUS_PRIVATE_USERNAME")
17
+ password = System.getenv("NEXUS_PRIVATE_PASSWORD")
18
+ }
19
+ }
13
20
  }
14
21
  }
15
22
 
16
23
  dependencies {
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"
24
+ implementation "com.sumsub.sns:idensic-mobile-sdk:1.41.1"
25
+ implementation "com.sumsub.sns:idensic-mobile-sdk-fisherman:1.41.1"
26
+ implementation "com.sumsub.sns:idensic-mobile-sdk-videoident:1.41.1"
27
+ implementation "com.sumsub.sns:idensic-mobile-sdk-eid:1.41.1"
28
+ implementation "com.sumsub.sns:idensic-mobile-sdk-nfc:1.41.1"
22
29
 
23
30
  implementation 'com.google.android.material:material:1.8.0'
24
31
  }