@regulaforensics/react-native-document-reader-api 8.2.170-nightly → 8.2.171-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 = '13.0'
16
16
  s.source_files = "ios/*.{h,m}"
17
- s.dependency 'DocumentReaderNightly', '8.2.4840'
17
+ s.dependency 'DocumentReaderNightly', '8.2.4845'
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:8.2.11611') {
44
+ implementation('com.regula.documentreader:api:8.2.11614') {
45
45
  transitive = true
46
46
  }
47
47
  }
@@ -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)
@@ -10,8 +10,8 @@
10
10
  "test": "jest"
11
11
  },
12
12
  "dependencies": {
13
- "@regulaforensics/react-native-document-reader-api": "8.2.170-nightly",
14
- "@regulaforensics/react-native-document-reader-core-fullauthrfid": "8.2.474-nightly",
13
+ "@regulaforensics/react-native-document-reader-api": "8.2.171-nightly",
14
+ "@regulaforensics/react-native-document-reader-core-fullauthrfid": "8.2.475-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/index.d.ts CHANGED
@@ -5451,6 +5451,9 @@ export default class DocumentReader {
5451
5451
  static clearPKDCertificates(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
5452
5452
  static startNewSession(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
5453
5453
  static connectBluetoothDevice(btDeviceName: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
5454
+ static btDeviceRequestFlashing(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
5455
+ static btDeviceRequestFlashingFullIR(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
5456
+ static btDeviceRequestTurnOffAll(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
5454
5457
  static setLocalizationDictionary(dictionary: Record<string, string>, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
5455
5458
  static getLicense(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
5456
5459
  static getAvailableScenarios(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
package/index.js CHANGED
@@ -4461,6 +4461,9 @@ DocumentReader.addPKDCertificates = (certificates, successCallback, errorCallbac
4461
4461
  DocumentReader.clearPKDCertificates = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "clearPKDCertificates", [], successCallback, errorCallback)
4462
4462
  DocumentReader.startNewSession = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "startNewSession", [], successCallback, errorCallback)
4463
4463
  DocumentReader.connectBluetoothDevice = (btDeviceName, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "connectBluetoothDevice", [btDeviceName], successCallback, errorCallback)
4464
+ DocumentReader.btDeviceRequestFlashing = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "btDeviceRequestFlashing", [], successCallback, errorCallback)
4465
+ DocumentReader.btDeviceRequestFlashingFullIR = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "btDeviceRequestFlashingFullIR", [], successCallback, errorCallback)
4466
+ DocumentReader.btDeviceRequestTurnOffAll = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "btDeviceRequestTurnOffAll", [], successCallback, errorCallback)
4464
4467
  DocumentReader.setLocalizationDictionary = (dictionary, successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "setLocalizationDictionary", [dictionary], successCallback, errorCallback)
4465
4468
  DocumentReader.getLicense = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getLicense", [], successCallback, errorCallback)
4466
4469
  DocumentReader.getAvailableScenarios = (successCallback, errorCallback) => RNRegulaDocumentReader.exec("DocumentReader", "getAvailableScenarios", [], successCallback, errorCallback)
package/ios/RGLWMain.m CHANGED
@@ -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]; },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/react-native-document-reader-api",
3
- "version": "8.2.170-nightly",
3
+ "version": "8.2.171-nightly",
4
4
  "description": "React Native module for reading and validation of identification documents (API framework)",
5
5
  "main": "index.js",
6
6
  "scripts": {