@thegrizzlylabs/react-native-genius-scan 5.0.6 → 5.0.8

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
@@ -107,6 +107,7 @@ The method `scanWithConfiguration` takes a `configuration` parameter which can t
107
107
  - `ocrConfiguration`: text recognition options. Text recognition will run on a background thread for every captured image. No text recognition will be applied if this parameter is not present.
108
108
  - `languages`: list of the BCP 47 language codes (eg `["en-US"]`) for which to run text recognition. Note that text recognition will take longer if multiple languages are specified.
109
109
  - `outputFormats`: an array with the formats in which the OCR result is made available in the ScanFlow result (defaults to all formats). Possible formats are `rawText`, `hOCR` and `textLayerInPDF`.
110
+ - `structuredData`: an array of the structured data you want to extract. E.g.: `['receipt', 'businessCard']`. Possible values are `bankDetails`, `receipt`, `businessCard`. Only available on iOS.
110
111
 
111
112
  It returns a promise with `result` object containing:
112
113
 
@@ -117,6 +118,7 @@ It returns a promise with `result` object containing:
117
118
  - `ocrResult`: the result of text recognition for this scan
118
119
  - `text`: the raw text that was recognized
119
120
  - `hocrTextLayout`: the recognized text in [hOCR](https://en.wikipedia.org/wiki/HOCR) format (with position, style…)
121
+ - `structuredData`: the result of the structured data extraction. A subdictionary will be present for each type of structured data detected by the scan flow.
120
122
 
121
123
  ### (Optional) Generate a PDF document from multiple pages
122
124
 
@@ -41,5 +41,5 @@ rootProject.allprojects {
41
41
 
42
42
  dependencies {
43
43
  implementation 'com.facebook.react:react-native:+'
44
- implementation 'com.geniusscansdk:gssdk:5.0.6'
44
+ implementation 'com.geniusscansdk:gssdk:5.0.8'
45
45
  }
@@ -10,18 +10,15 @@
10
10
  <key>DebugSymbolsPath</key>
11
11
  <string>dSYMs</string>
12
12
  <key>LibraryIdentifier</key>
13
- <string>ios-arm64_x86_64-simulator</string>
13
+ <string>ios-arm64</string>
14
14
  <key>LibraryPath</key>
15
15
  <string>GSSDK.framework</string>
16
16
  <key>SupportedArchitectures</key>
17
17
  <array>
18
18
  <string>arm64</string>
19
- <string>x86_64</string>
20
19
  </array>
21
20
  <key>SupportedPlatform</key>
22
21
  <string>ios</string>
23
- <key>SupportedPlatformVariant</key>
24
- <string>simulator</string>
25
22
  </dict>
26
23
  <dict>
27
24
  <key>BinaryPath</key>
@@ -29,15 +26,18 @@
29
26
  <key>DebugSymbolsPath</key>
30
27
  <string>dSYMs</string>
31
28
  <key>LibraryIdentifier</key>
32
- <string>ios-arm64</string>
29
+ <string>ios-arm64_x86_64-simulator</string>
33
30
  <key>LibraryPath</key>
34
31
  <string>GSSDK.framework</string>
35
32
  <key>SupportedArchitectures</key>
36
33
  <array>
37
34
  <string>arm64</string>
35
+ <string>x86_64</string>
38
36
  </array>
39
37
  <key>SupportedPlatform</key>
40
38
  <string>ios</string>
39
+ <key>SupportedPlatformVariant</key>
40
+ <string>simulator</string>
41
41
  </dict>
42
42
  </array>
43
43
  <key>CFBundlePackageType</key>
@@ -31205,6 +31205,20 @@
31205
31205
  "length": 13,
31206
31206
  "value": "\"bankDetails\""
31207
31207
  },
31208
+ {
31209
+ "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowConfiguration.swift",
31210
+ "kind": "StringLiteral",
31211
+ "offset": 12768,
31212
+ "length": 14,
31213
+ "value": "\"businessCard\""
31214
+ },
31215
+ {
31216
+ "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowConfiguration.swift",
31217
+ "kind": "StringLiteral",
31218
+ "offset": 12819,
31219
+ "length": 9,
31220
+ "value": "\"receipt\""
31221
+ },
31208
31222
  {
31209
31223
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowError.swift",
31210
31224
  "kind": "IntegerLiteral",
@@ -31205,6 +31205,20 @@
31205
31205
  "length": 13,
31206
31206
  "value": "\"bankDetails\""
31207
31207
  },
31208
+ {
31209
+ "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowConfiguration.swift",
31210
+ "kind": "StringLiteral",
31211
+ "offset": 12768,
31212
+ "length": 14,
31213
+ "value": "\"businessCard\""
31214
+ },
31215
+ {
31216
+ "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowConfiguration.swift",
31217
+ "kind": "StringLiteral",
31218
+ "offset": 12819,
31219
+ "length": 9,
31220
+ "value": "\"receipt\""
31221
+ },
31208
31222
  {
31209
31223
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowError.swift",
31210
31224
  "kind": "IntegerLiteral",
@@ -31205,6 +31205,20 @@
31205
31205
  "length": 13,
31206
31206
  "value": "\"bankDetails\""
31207
31207
  },
31208
+ {
31209
+ "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowConfiguration.swift",
31210
+ "kind": "StringLiteral",
31211
+ "offset": 12768,
31212
+ "length": 14,
31213
+ "value": "\"businessCard\""
31214
+ },
31215
+ {
31216
+ "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowConfiguration.swift",
31217
+ "kind": "StringLiteral",
31218
+ "offset": 12819,
31219
+ "length": 9,
31220
+ "value": "\"receipt\""
31221
+ },
31208
31222
  {
31209
31223
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowError.swift",
31210
31224
  "kind": "IntegerLiteral",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thegrizzlylabs/react-native-genius-scan",
3
- "version": "5.0.6",
3
+ "version": "5.0.8",
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",