@regulaforensics/react-native-document-reader-api 7.3.616-nightly → 7.3.618-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.
@@ -14,6 +14,6 @@ Pod::Spec.new do |s|
14
14
  s.source = { :http => 'file:' + __dir__ }
15
15
  s.ios.deployment_target = '11.0'
16
16
  s.source_files = "ios/*.{h,m}"
17
- s.dependency 'DocumentReaderNightly', '7.3.3585'
17
+ s.dependency 'DocumentReaderNightly', '7.3.9291'
18
18
  s.dependency 'React'
19
19
  end
@@ -41,7 +41,7 @@ dependencies {
41
41
  //noinspection GradleDynamicVersion
42
42
  implementation 'com.facebook.react:react-native:+'
43
43
  //noinspection GradleDependency
44
- implementation('com.regula.documentreader:api:7.3.9867') {
44
+ implementation('com.regula.documentreader:api:7.3.11049') {
45
45
  transitive = true
46
46
  }
47
47
  }
@@ -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()
@@ -10,8 +10,8 @@
10
10
  "test": "jest"
11
11
  },
12
12
  "dependencies": {
13
- "@regulaforensics/react-native-document-reader-api": "7.3.616-nightly",
14
- "@regulaforensics/react-native-document-reader-core-fullauthrfid": "7.3.463-nightly",
13
+ "@regulaforensics/react-native-document-reader-api": "7.3.618-nightly",
14
+ "@regulaforensics/react-native-document-reader-core-fullauthrfid": "7.3.466-nightly",
15
15
  "react-native-progress": "5.0.0",
16
16
  "react-native-radio-buttons-group": "3.0.5",
17
17
  "@rneui/base": "4.0.0-rc.7",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/react-native-document-reader-api",
3
- "version": "7.3.616-nightly",
3
+ "version": "7.3.618-nightly",
4
4
  "description": "React Native module for reading and validation of identification documents (API framework)",
5
5
  "main": "index.js",
6
6
  "scripts": {