@regulaforensics/cordova-plugin-document-reader-api 8.1.152-nightly → 8.1.166-rc

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.1.152-nightly",
17
- "@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "8.1.472-nightly",
16
+ "@regulaforensics/cordova-plugin-document-reader-api": "8.1.166-rc",
17
+ "@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "8.1.442-rc",
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.1.152-nightly",
3
+ "version": "8.1.166-rc",
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.1.152-nightly" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/cordova-plugin-document-reader-api" version="8.1.166-rc" 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.1.4782" />
32
+ <pod name="DocumentReaderStage" spec="8.2.4865" />
33
33
  </pods>
34
34
  </podspec>
35
35
  </platform>
@@ -144,3 +144,17 @@ fun requestEnableLocationService(activity: Activity) {
144
144
  val myIntent = Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS)
145
145
  startActivityForResult(activity, myIntent, INTENT_REQUEST_ENABLE_LOCATION)
146
146
  }
147
+
148
+ // btDevice functionality(temporary, will be reworked)
149
+
150
+ fun btDeviceRequestFlashing() {
151
+ bluetooth?.requestFlashing()
152
+ }
153
+
154
+ fun btDeviceRequestFlashingFullIR() {
155
+ bluetooth?.requestFlashingFullIR()
156
+ }
157
+
158
+ fun btDeviceRequestTurnOffAll() {
159
+ bluetooth?.requestTurnOffAll()
160
+ }
@@ -87,6 +87,9 @@ fun methodCall(method: String, callback: (Any?) -> Unit): Any = when (method) {
87
87
  "clearPKDCertificates" -> clearPKDCertificates()
88
88
  "startNewSession" -> startNewSession()
89
89
  "connectBluetoothDevice" -> connectBluetoothDevice(callback)
90
+ "btDeviceRequestFlashing" -> btDeviceRequestFlashing()
91
+ "btDeviceRequestFlashingFullIR" -> btDeviceRequestFlashingFullIR()
92
+ "btDeviceRequestTurnOffAll" -> btDeviceRequestTurnOffAll()
90
93
  "setLocalizationDictionary" -> setLocalizationDictionary(args(0))
91
94
  "getLicense" -> getLicense(callback)
92
95
  "getAvailableScenarios" -> getAvailableScenarios(callback)
@@ -8,13 +8,13 @@ android {
8
8
 
9
9
  repositories {
10
10
  maven {
11
- url "https://maven.regulaforensics.com/RegulaDocumentReader/Nightly"
11
+ url "https://maven.regulaforensics.com/RegulaDocumentReader/Stage"
12
12
  }
13
13
  }
14
14
 
15
15
  dependencies {
16
16
  //noinspection GradleDependency
17
- implementation ('com.regula.documentreader:api:8.1.11559'){
17
+ implementation ('com.regula.documentreader:api:8.1.11628'){
18
18
  transitive = true
19
19
  }
20
20
  }
@@ -50,6 +50,9 @@
50
50
  @"clearPKDCertificates": ^{ [self clearPKDCertificates]; },
51
51
  @"startNewSession": ^{ [self startNewSession]; },
52
52
  @"connectBluetoothDevice": ^{ [self connectBluetoothDevice :args[0] :callback]; },
53
+ @"btDeviceRequestFlashing": ^{ /* android only */ },
54
+ @"btDeviceRequestFlashingFullIR": ^{ /* android only */ },
55
+ @"btDeviceRequestTurnOffAll": ^{ /* android only */ },
53
56
  @"setLocalizationDictionary": ^{ [self setLocalizationDictionary :args[0]]; },
54
57
  @"getLicense": ^{ [self getLicense :callback]; },
55
58
  @"getAvailableScenarios": ^{ [self getAvailableScenarios :callback]; },
@@ -4386,6 +4386,9 @@ DocumentReader.addPKDCertificates = (certificates, successCallback, errorCallbac
4386
4386
  DocumentReader.clearPKDCertificates = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["clearPKDCertificates"])
4387
4387
  DocumentReader.startNewSession = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["startNewSession"])
4388
4388
  DocumentReader.connectBluetoothDevice = (btDeviceName, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["connectBluetoothDevice", btDeviceName])
4389
+ DocumentReader.btDeviceRequestFlashing = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["btDeviceRequestFlashing"])
4390
+ DocumentReader.btDeviceRequestFlashingFullIR = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["btDeviceRequestFlashingFullIR"])
4391
+ DocumentReader.btDeviceRequestTurnOffAll = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["btDeviceRequestTurnOffAll"])
4389
4392
  DocumentReader.setLocalizationDictionary = (dictionary, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["setLocalizationDictionary", dictionary])
4390
4393
  DocumentReader.getLicense = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getLicense"])
4391
4394
  DocumentReader.getAvailableScenarios = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getAvailableScenarios"])