@regulaforensics/cordova-plugin-document-reader-api 7.3.494-nightly → 7.3.496-nightly

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.
@@ -13,8 +13,8 @@
13
13
  "author": "Regula Forensics Inc.",
14
14
  "license": "commercial",
15
15
  "dependencies": {
16
- "@regulaforensics/cordova-plugin-document-reader-api": "7.3.494-nightly",
17
- "@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "7.3.451-nightly",
16
+ "@regulaforensics/cordova-plugin-document-reader-api": "7.3.496-nightly",
17
+ "@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "7.3.453-nightly",
18
18
  "cordova-android": "12.0.1",
19
19
  "cordova-ios": "7.0.1",
20
20
  "cordova-plugin-add-swift-support": "2.0.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/cordova-plugin-document-reader-api",
3
- "version": "7.3.494-nightly",
3
+ "version": "7.3.496-nightly",
4
4
  "description": "Cordova plugin for reading and validation of identification documents (API framework)",
5
5
  "cordova": {
6
6
  "id": "@regulaforensics/cordova-plugin-document-reader-api",
package/plugin.xml CHANGED
@@ -1,5 +1,5 @@
1
1
  <?xml version='1.0' encoding='utf-8'?>
2
- <plugin id="cordova-plugin-document-reader-api" version="7.3.494"
2
+ <plugin id="cordova-plugin-document-reader-api" version="7.3.496"
3
3
  xmlns="http://apache.org/cordova/ns/plugins/1.0">
4
4
  <name>DocumentReaderApi</name>
5
5
  <description>Cordova plugin Document reader api</description>
@@ -26,7 +26,7 @@
26
26
  <config>
27
27
  </config>
28
28
  <pods>
29
- <pod name="DocumentReaderNightly" spec="7.3.3630" />
29
+ <pod name="DocumentReaderNightly" spec="7.3.3633" />
30
30
  </pods>
31
31
  </podspec>
32
32
  </platform>
@@ -177,9 +177,11 @@ fun Any?.toDouble() = when (this) {
177
177
 
178
178
  fun Any?.toColor() = "#" + toLong().toString(16)
179
179
 
180
- fun Any?.toFloat() =
181
- if (this is Double) toFloat()
182
- else this as Float
180
+ fun Any?.toFloat() = when (this) {
181
+ is Int -> toFloat()
182
+ is Double -> toFloat()
183
+ else -> this as Float
184
+ }
183
185
 
184
186
  fun Any?.toMatrix() = this?.let {
185
187
  val matrix = Matrix()
@@ -16,7 +16,7 @@ repositories {
16
16
 
17
17
  dependencies {
18
18
  //noinspection GradleDependency
19
- implementation ('com.regula.documentreader:api:7.3.9895'){
19
+ implementation ('com.regula.documentreader:api:7.3.9898'){
20
20
  transitive = true
21
21
  }
22
22
  }