dynamsoft-capture-vision-react-native 2.4.2000-alpha.1 → 2.4.2000-alpha.2
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.
|
@@ -13,8 +13,13 @@
|
|
|
13
13
|
int stride = (int)self.stride;
|
|
14
14
|
int format = (int)self.format;
|
|
15
15
|
int orientation = (int)self.orientation;
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
NSData *data = self.bytes;
|
|
17
|
+
NSUInteger length = data.length;
|
|
18
|
+
uint8_t *buffer = (uint8_t *)malloc(length);
|
|
19
|
+
if (buffer != NULL) {
|
|
20
|
+
memcpy(buffer, data.bytes, length);
|
|
21
|
+
}
|
|
22
|
+
int bufferSize = (int)length;
|
|
18
23
|
ImageDataHostObject object = ImageDataHostObject(width, height, stride, format, orientation, buffer, bufferSize);
|
|
19
24
|
return object;
|
|
20
25
|
}
|
|
@@ -105,7 +105,7 @@ RCT_EXPORT_METHOD(updateSettings:(NSDictionary *)dictionary
|
|
|
105
105
|
rejecter: (RCTPromiseRejectBlock)reject)
|
|
106
106
|
{
|
|
107
107
|
NSError *error;
|
|
108
|
-
DSSimplifiedCaptureVisionSettings *settings = [self.cvr getSimplifiedSettings
|
|
108
|
+
DSSimplifiedCaptureVisionSettings *settings = [self.cvr getSimplifiedSettings:templateName error:nil];
|
|
109
109
|
[settings updateWithDicitionary:dictionary];
|
|
110
110
|
BOOL isSuccess = [self.cvr updateSettings:templateName settings:settings error:&error];
|
|
111
111
|
if (!isSuccess && error) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dynamsoft-capture-vision-react-native",
|
|
3
|
-
"title": "React Native
|
|
4
|
-
"version": "2.4.2000-alpha.
|
|
3
|
+
"title": "Dynamsoft Capture Vision React Native",
|
|
4
|
+
"version": "2.4.2000-alpha.2",
|
|
5
5
|
"description": "Dynamsoft Capture Vision React Native SDK. The SDK supports barcode decoding, document scanning and MRZ reading.",
|
|
6
6
|
"homepage": "https://www.dynamsoft.com/capture-vision/docs/mobile/programming/react-native/",
|
|
7
7
|
"main": "src/index.tsx",
|
|
File without changes
|