@regulaforensics/cordova-plugin-document-reader-api 8.4.304-nightly → 8.5.306-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": "8.4.304-nightly",
17
- "@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "8.4.1189-nightly",
16
+ "@regulaforensics/cordova-plugin-document-reader-api": "8.5.306-nightly",
17
+ "@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "8.5.1191-nightly",
18
18
  "cordova-android": "13.0.0",
19
19
  "cordova-ios": "7.1.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": "8.4.304-nightly",
3
+ "version": "8.5.306-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="@regulaforensics/cordova-plugin-document-reader-api" version="8.4.304-nightly" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/cordova-plugin-document-reader-api" version="8.5.306-nightly" xmlns="http://apache.org/cordova/ns/plugins/1.0">
3
3
  <name>DocumentReaderApi</name>
4
4
  <description>Cordova plugin Document reader api</description>
5
5
  <license>commercial</license>
@@ -29,7 +29,7 @@
29
29
  <source url="https://github.com/CocoaPods/Specs.git"/>
30
30
  </config>
31
31
  <pods>
32
- <pod name="DocumentReaderNightly" spec="8.4.5439" />
32
+ <pod name="DocumentReaderNightly" spec="8.5.5491" />
33
33
  </pods>
34
34
  </podspec>
35
35
  </platform>
@@ -16,6 +16,7 @@ import com.regula.documentreader.api.DocumentReader.Instance
16
16
  import com.regula.documentreader.api.completions.IDocumentReaderCompletion
17
17
  import com.regula.documentreader.api.completions.IDocumentReaderInitCompletion
18
18
  import com.regula.documentreader.api.completions.IDocumentReaderPrepareDbCompletion
19
+ import com.regula.documentreader.api.completions.IVideoEncoderCompletion
19
20
  import com.regula.documentreader.api.completions.model.PrepareProgress
20
21
  import com.regula.documentreader.api.completions.rfid.IRfidPKDCertificateCompletion
21
22
  import com.regula.documentreader.api.completions.rfid.IRfidReaderCompletion
@@ -476,7 +477,8 @@ fun prepareCompletion(callback: Callback) = object : IDocumentReaderPrepareDbCom
476
477
 
477
478
  fun initCompletion(callback: Callback) = IDocumentReaderInitCompletion { success, error ->
478
479
  if (success) {
479
- Instance().setVideoEncoderCompletion { _, file -> sendEvent(videoEncoderCompletionEvent, file.path) }
480
+ videoEncoderCompletion = IVideoEncoderCompletion { _, file -> sendEvent(videoEncoderCompletionEvent, file.path) }
481
+ Instance().setVideoEncoderCompletion(videoEncoderCompletion)
480
482
  Instance().setOnClickListener { sendEvent(onCustomButtonTappedEvent, it.tag) }
481
483
  }
482
484
  callback(generateSuccessCompletion(success, error))
@@ -577,3 +579,4 @@ fun stopBackgroundRFID() {
577
579
 
578
580
  // Weak references
579
581
  lateinit var localizationCallbacks: LocalizationCallbacks
582
+ lateinit var videoEncoderCompletion: IVideoEncoderCompletion
@@ -6,7 +6,7 @@ repositories {
6
6
 
7
7
  dependencies {
8
8
  //noinspection GradleDependency
9
- implementation ('com.regula.documentreader:api:8.4.12049'){
9
+ implementation ('com.regula.documentreader:api:8.5.12061'){
10
10
  transitive = true
11
11
  }
12
12
  }