dynamsoft-capture-vision-react-native 3.4.1100 → 3.4.1300
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.
- package/LICENSE +1 -1
- package/README.md +0 -4
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/dynamsoft/reactnativelib/cvr/CaptureVisionRouterModuleImpl.kt +4 -1
- package/dynamsoft-capture-vision-react-native.podspec +1 -1
- package/ios/RNDynamsoftCameraViewManager.m +2 -2
- package/ios/RNDynamsoftLicense.m +1 -0
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -2,4 +2,4 @@ License Notice
|
|
|
2
2
|
|
|
3
3
|
The source code of the Dynamsoft Capture Vision (DCV) React Native Edition published here is released under the Apache 2.0 license: http://www.apache.org/licenses/LICENSE-2.0. Dynamsoft Barcode Reader (DBR), Dynamsoft Label Recognizer (DLR), Dynamsoft Document Normalizer (DDN), Dynamsoft Code Parser (DCP) and Dynamsoft Camera Enhancer (DCE) SDK upon which Dynamsoft Capture Vision (DCV) React Native Edition depends are provided under a commercial license from https://www.dynamsoft.com/company/license-agreement/. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4
4
|
|
|
5
|
-
Copyright © 2003–
|
|
5
|
+
Copyright © 2003– Dynamsoft. All Rights Reserved.
|
package/README.md
CHANGED
|
@@ -45,17 +45,13 @@ DCV enables you to develop highly customizable applications for barcode reading,
|
|
|
45
45
|
|
|
46
46
|
## User Guide
|
|
47
47
|
|
|
48
|
-
- [MRZ Scanner Integration Guide](https://github.com/Dynamsoft/capture-vision-react-native-samples/blob/main/guide-scan-mrz.md)
|
|
49
48
|
- [Document Scanner Integration Guide](https://github.com/Dynamsoft/capture-vision-react-native-samples/blob/main/guide-scan-document.md)
|
|
50
|
-
- [VIN Scanner Integration Guide](https://github.com/Dynamsoft/capture-vision-react-native-samples/blob/main/guide-scan-vin.md)
|
|
51
49
|
|
|
52
50
|
## Samples
|
|
53
51
|
|
|
54
52
|
You can view all the DCV React Native samples via the following links:
|
|
55
53
|
|
|
56
|
-
- [ScanMRZ](https://github.com/Dynamsoft/capture-vision-react-native-samples/tree/main/ScanMRZ)
|
|
57
54
|
- [ScanDocument](https://github.com/Dynamsoft/capture-vision-react-native-samples/tree/main/ScanDocument)
|
|
58
|
-
- [ScanVIN](https://github.com/Dynamsoft/capture-vision-react-native-samples/tree/main/ScanVIN)
|
|
59
55
|
|
|
60
56
|
## License
|
|
61
57
|
|
package/android/build.gradle
CHANGED
|
@@ -159,5 +159,5 @@ dependencies {
|
|
|
159
159
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
|
|
160
160
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3"
|
|
161
161
|
|
|
162
|
-
implementation "com.dynamsoft:capturevisionbundle:3.4.
|
|
162
|
+
implementation "com.dynamsoft:capturevisionbundle:3.4.1300"
|
|
163
163
|
}
|
package/android/src/main/java/com/dynamsoft/reactnativelib/cvr/CaptureVisionRouterModuleImpl.kt
CHANGED
|
@@ -101,9 +101,12 @@ class CaptureVisionRouterModuleImpl(private val reactContext: ReactApplicationCo
|
|
|
101
101
|
|
|
102
102
|
@ReactMethod(isBlockingSynchronousMethod = true)
|
|
103
103
|
fun destroyInstance(): Boolean {
|
|
104
|
-
cvr?.input = null
|
|
105
104
|
cvr?.removeAllResultReceivers()
|
|
105
|
+
ifStopCapturing = true
|
|
106
106
|
cvr?.stopCapturing()
|
|
107
|
+
try {
|
|
108
|
+
cvr?.input = null
|
|
109
|
+
} catch (_: Exception) {}
|
|
107
110
|
cvr = null
|
|
108
111
|
return true
|
|
109
112
|
}
|
|
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
|
|
|
17
17
|
s.private_header_files = "ios/**/*.h"
|
|
18
18
|
s.requires_arc = true
|
|
19
19
|
|
|
20
|
-
s.dependency "DynamsoftCaptureVisionBundle", ">= 3.4.
|
|
20
|
+
s.dependency "DynamsoftCaptureVisionBundle", ">= 3.4.1200", "< 4.0"
|
|
21
21
|
|
|
22
22
|
install_modules_dependencies(s)
|
|
23
23
|
end
|
|
@@ -67,8 +67,8 @@ RCT_EXPORT_METHOD(close) {
|
|
|
67
67
|
[self.dce close];
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
RCT_EXPORT_METHOD(setCameraView:(
|
|
71
|
-
if (tag
|
|
70
|
+
RCT_EXPORT_METHOD(setCameraView:(nonnull NSNumber *)tag) {
|
|
71
|
+
if (tag.integerValue != 0) {
|
|
72
72
|
[self trySetCameraViewWithTag:tag attempt:1];
|
|
73
73
|
} else {
|
|
74
74
|
self.dce.cameraView = nil;
|
package/ios/RNDynamsoftLicense.m
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dynamsoft-capture-vision-react-native",
|
|
3
3
|
"title": "Dynamsoft Capture Vision React Native",
|
|
4
|
-
"version": "3.4.
|
|
4
|
+
"version": "3.4.1300",
|
|
5
5
|
"description": "The Dynamsoft Capture Vision React Native SDK provides a wrapper for building barcode scanning, document scanning and MRZ scanning applications with React Native.",
|
|
6
6
|
"homepage": "https://github.com/Dynamsoft/capture-vision-react-native-samples",
|
|
7
7
|
"main": "src/index.tsx",
|