dynamsoft-capture-vision-react-native 1.1.15 → 1.1.16

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.
@@ -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
+ }
@@ -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,4 @@
1
+ export declare class DCVFeedback {
2
+ static beep(): void;
3
+ static vibrate(): void;
4
+ }
@@ -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.15",
3
+ "version": "1.1.16",
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
  }