@thegrizzlylabs/react-native-genius-scan 4.8.0 → 4.9.0

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/README.md CHANGED
@@ -114,6 +114,7 @@ It returns a promise with `result` object containing:
114
114
  - `enhancedUrl`: the cropped and enhanced file, as processed by the SDK. "file://<filepath>.{jpeg|png}"
115
115
  - `ocrResult`: the result of text recognition for this scan
116
116
  - `text`: the raw text that was recognized
117
+ - `hocrTextLayout`: the recognized text in [hOCR](https://en.wikipedia.org/wiki/HOCR) format (with position, style…)
117
118
 
118
119
  ### (Optional) Generate a PDF document from multiple pages
119
120
 
@@ -127,6 +128,7 @@ The `document` parameter is a map containing the following values:
127
128
 
128
129
  - `pages`: an array of page objects. Each page object has:
129
130
  - `imageUrl`: the URL of the image file for this page, e.g. `file://<filepath>.{jpeg|png}`
131
+ - `hocrTextLayout`: the text layout in hOCR format
130
132
 
131
133
  The `configuration` parameter provides the following options:
132
134
 
@@ -12,11 +12,11 @@ buildscript {
12
12
  apply plugin: 'com.android.library'
13
13
 
14
14
  android {
15
- compileSdkVersion 31
15
+ compileSdkVersion 33
16
16
 
17
17
  defaultConfig {
18
18
  minSdkVersion 21
19
- targetSdkVersion 31
19
+ targetSdkVersion 33
20
20
  versionCode 1
21
21
  versionName "1.0"
22
22
  }
@@ -40,6 +40,6 @@ rootProject.allprojects {
40
40
 
41
41
  dependencies {
42
42
  implementation 'com.facebook.react:react-native:+'
43
- implementation 'com.geniusscansdk:gssdk-scanflow:4.8.0'
44
- implementation 'com.geniusscansdk:gssdk-ocr:4.8.0'
43
+ implementation 'com.geniusscansdk:gssdk-scanflow:4.9.0'
44
+ implementation 'com.geniusscansdk:gssdk-ocr:4.9.0'
45
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thegrizzlylabs/react-native-genius-scan",
3
- "version": "4.8.0",
3
+ "version": "4.9.0",
4
4
  "description": "React Native Plugin for Genius Scan SDK",
5
5
  "author": "TheGrizzlyLabs <sdk@thegrizzlylabs.com> (https://www.thegrizzlylabs.com/)",
6
6
  "homepage": "https://geniusscansdk.com",