dynamsoft-capture-vision-react-native 1.1.15 → 1.1.17
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/android/build.gradle +2 -2
- package/android/src/main/java/com/dynamsoft/reactlibrary/DCVFeedbackModule.java +30 -0
- package/dynamsoft-capture-vision-react-native.podspec +1 -1
- package/ios/RNDynamsoftCaptureVision/RCTDynamsoftFeedback.h +16 -0
- package/ios/RNDynamsoftCaptureVision/RCTDynamsoftFeedback.m +23 -0
- package/js/DCVFeedback.d.ts +4 -0
- package/js/DCVFeedback.js +15 -0
- package/js/DCVFeedback.js.map +1 -0
- package/js/DCVFeedback.tsx +14 -0
- package/package.json +1 -4
package/android/build.gradle
CHANGED
|
@@ -45,8 +45,8 @@ rootProject.allprojects {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
dependencies {
|
|
48
|
-
implementation 'com.dynamsoft:dynamsoftcameraenhancer:2.3.
|
|
49
|
-
implementation 'com.dynamsoft:dynamsoftbarcodereader:9.6.
|
|
48
|
+
implementation 'com.dynamsoft:dynamsoftcameraenhancer:2.3.20@aar'
|
|
49
|
+
implementation 'com.dynamsoft:dynamsoftbarcodereader:9.6.40@aar'
|
|
50
50
|
|
|
51
51
|
implementation 'com.facebook.react:react-native:+'
|
|
52
52
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
package com.dynamsoft.reactlibrary;
|
|
2
|
+
|
|
3
|
+
import androidx.annotation.NonNull;
|
|
4
|
+
|
|
5
|
+
import com.dynamsoft.dce.DCEFeedback;
|
|
6
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
7
|
+
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
8
|
+
import com.facebook.react.bridge.ReactMethod;
|
|
9
|
+
|
|
10
|
+
public class DCVFeedbackModule extends ReactContextBaseJavaModule {
|
|
11
|
+
public DCVFeedbackModule(ReactApplicationContext reactApplicationContext) {
|
|
12
|
+
super(reactApplicationContext);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@NonNull
|
|
16
|
+
@Override
|
|
17
|
+
public String getName() {
|
|
18
|
+
return "DCVFeedbackModule";
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@ReactMethod
|
|
22
|
+
public void beep() {
|
|
23
|
+
DCEFeedback.beep(getReactApplicationContext());
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@ReactMethod
|
|
27
|
+
public void vibrate() {
|
|
28
|
+
DCEFeedback.vibrate(getReactApplicationContext());
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
|
|
|
16
16
|
s.module_name = "RNDynamsoftCaptureVision"
|
|
17
17
|
s.header_dir = "RNDynamsoftCaptureVision"
|
|
18
18
|
s.dependency 'DynamsoftCameraEnhancer', '= 2.3.22'
|
|
19
|
-
s.dependency 'DynamsoftBarcodeReader', '= 9.6.
|
|
19
|
+
s.dependency 'DynamsoftBarcodeReader', '= 9.6.40'
|
|
20
20
|
|
|
21
21
|
s.dependency "React"
|
|
22
22
|
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RCTDynamsoftFeedback.h
|
|
3
|
+
// dynamsoft-capture-vision-react-native
|
|
4
|
+
//
|
|
5
|
+
// Created by Dynamsoft on 2024/7/8.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <React/RCTBridgeModule.h>
|
|
9
|
+
|
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
+
|
|
12
|
+
@interface RCTDynamsoftFeedback : NSObject <RCTBridgeModule>
|
|
13
|
+
|
|
14
|
+
@end
|
|
15
|
+
|
|
16
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RCTDynamsoftFeedback.m
|
|
3
|
+
// dynamsoft-capture-vision-react-native
|
|
4
|
+
//
|
|
5
|
+
// Created by Dynamsoft on 2024/7/8.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import "RCTDynamsoftFeedback.h"
|
|
9
|
+
#import <DynamsoftCameraEnhancer/DynamsoftCameraEnhancer.h>
|
|
10
|
+
|
|
11
|
+
@implementation RCTDynamsoftFeedback
|
|
12
|
+
|
|
13
|
+
RCT_EXPORT_MODULE(DCVFeedbackModule)
|
|
14
|
+
|
|
15
|
+
RCT_EXPORT_METHOD(beep) {
|
|
16
|
+
[DCEFeedback beep];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
RCT_EXPORT_METHOD(vibrate) {
|
|
20
|
+
[DCEFeedback vibrate];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DCVFeedback = void 0;
|
|
4
|
+
const react_native_1 = require("react-native");
|
|
5
|
+
const DCVFeedbackModule = react_native_1.NativeModules.DCVFeedbackModule;
|
|
6
|
+
class DCVFeedback {
|
|
7
|
+
static beep() {
|
|
8
|
+
DCVFeedbackModule.beep();
|
|
9
|
+
}
|
|
10
|
+
static vibrate() {
|
|
11
|
+
DCVFeedbackModule.vibrate();
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.DCVFeedback = DCVFeedback;
|
|
15
|
+
//# sourceMappingURL=DCVFeedback.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DCVFeedback.js","sourceRoot":"","sources":["DCVFeedback.tsx"],"names":[],"mappings":";;;AAAA,+CAEqB;AACrB,MAAM,iBAAiB,GAAG,4BAAa,CAAC,iBAAiB,CAAA;AAEzD,MAAa,WAAW;IACpB,MAAM,CAAC,IAAI;QACP,iBAAiB,CAAC,IAAI,EAAE,CAAA;IAC5B,CAAC;IAED,MAAM,CAAC,OAAO;QACV,iBAAiB,CAAC,OAAO,EAAE,CAAA;IAC/B,CAAC;CACJ;AARD,kCAQC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
NativeModules,
|
|
3
|
+
} from 'react-native'
|
|
4
|
+
const DCVFeedbackModule = NativeModules.DCVFeedbackModule
|
|
5
|
+
|
|
6
|
+
export class DCVFeedback {
|
|
7
|
+
static beep() {
|
|
8
|
+
DCVFeedbackModule.beep()
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
static vibrate() {
|
|
12
|
+
DCVFeedbackModule.vibrate()
|
|
13
|
+
}
|
|
14
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dynamsoft-capture-vision-react-native",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.17",
|
|
4
4
|
"description": "Dynamsoft Capture Vision React Native SDK",
|
|
5
5
|
"homepage": "https://www.dynamsoft.com/capture-vision/docs/introduction",
|
|
6
6
|
"main": "./js/index.js",
|
|
@@ -38,8 +38,5 @@
|
|
|
38
38
|
"@types/react-native": "^0.68.0",
|
|
39
39
|
"@types/react-test-renderer": "^18.0.0",
|
|
40
40
|
"typescript": "^4.7.4"
|
|
41
|
-
},
|
|
42
|
-
"dependencies": {
|
|
43
|
-
"dynamsoft-capture-vision-react-native": "^1.1.15"
|
|
44
41
|
}
|
|
45
42
|
}
|