Skip to content

Commit 1b2c95c

Browse files
author
Jenkins
committed
7.4.690
1 parent 7ca04b3 commit 1b2c95c

6 files changed

Lines changed: 27 additions & 7 deletions

File tree

RNDocumentReaderApi.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ Pod::Spec.new do |s|
1414
s.source = { :http => 'file:' + __dir__ }
1515
s.ios.deployment_target = '11.0'
1616
s.source_files = "ios/*.{h,m}"
17-
s.dependency 'DocumentReader', '7.3.3764'
17+
s.dependency 'DocumentReader', '7.4.3826'
1818
s.dependency 'React'
1919
end

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ dependencies {
4141
//noinspection GradleDynamicVersion
4242
implementation 'com.facebook.react:react-native:+'
4343
//noinspection GradleDependency
44-
implementation('com.regula.documentreader:api:7.3.10030') {
44+
implementation('com.regula.documentreader:api:7.4.10090') {
4545
transitive = true
4646
}
4747
}

example/package-lock.json

Lines changed: 17 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"test": "jest"
1111
},
1212
"dependencies": {
13-
"@regulaforensics/react-native-document-reader-api": "7.3.676",
14-
"@regulaforensics/react-native-document-reader-core-fullauthrfid": "7.3.602",
13+
"@regulaforensics/react-native-document-reader-api": "7.4.690",
14+
"@regulaforensics/react-native-document-reader-core-fullauthrfid": "7.4.638",
1515
"react-native-progress": "5.0.0",
1616
"react-native-radio-buttons-group": "3.0.5",
1717
"@rneui/base": "4.0.0-rc.7",

ios/RNRegulaDocumentReader.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@ @implementation RNRegulaDocumentReader
2323
RGLWOnCustomButtonTappedEvent];
2424
}
2525

26+
static bool hasListeners;
27+
-(void)startObserving { hasListeners = YES; }
28+
-(void)stopObserving { hasListeners = NO; }
29+
2630
static RGLWEventSender sendEvent = ^(NSString* event, id data) {
2731
dispatch_async(dispatch_get_main_queue(), ^{
28-
[RGLWPlugin sendEventWithName:event body:@{@"msg": data}];
32+
if (hasListeners) [RGLWPlugin sendEventWithName:event body:@{@"msg": data}];
2933
});
3034
};
3135

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@regulaforensics/react-native-document-reader-api",
3-
"version": "7.3.676",
3+
"version": "7.4.690",
44
"description": "React Native module for reading and validation of identification documents (API framework)",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)