@thegrizzlylabs/cordova-plugin-genius-scan 4.19.0 → 4.20.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 +7 -7
- package/package.json +1 -1
- package/plugin.xml +3 -3
- package/src/android/GeniusScan.java +18 -6
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/GSSDKCore +0 -0
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/GSSDKCore.framework/Info.plist +0 -0
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/dSYMs/GSSDKCore.framework.dSYM/Contents/Info.plist +2 -2
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64/dSYMs/GSSDKCore.framework.dSYM/Contents/Resources/DWARF/GSSDKCore +0 -0
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/GSSDKCore +0 -0
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/Info.plist +0 -0
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDKCore.framework.dSYM/Contents/Info.plist +2 -2
- package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDKCore.framework.dSYM/Contents/Resources/DWARF/GSSDKCore +0 -0
- package/src/ios/GSSDK/GSSDKOCR.xcframework/Info.plist +5 -5
- package/src/ios/GSSDK/GSSDKOCR.xcframework/ios-arm64/GSSDKOCR.framework/Info.plist +0 -0
- package/src/ios/GSSDK/GSSDKOCR.xcframework/ios-arm64/dSYMs/GSSDKOCR.framework.dSYM/Contents/Info.plist +2 -2
- package/src/ios/GSSDK/GSSDKOCR.xcframework/ios-arm64_x86_64-simulator/GSSDKOCR.framework/Info.plist +0 -0
- package/src/ios/GSSDK/GSSDKOCR.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDKOCR.framework.dSYM/Contents/Info.plist +2 -2
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/Info.plist +5 -5
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/GSSDKScanFlow +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/Headers/GSKScanFlow.h +49 -2
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/Headers/GSKScanFlowScanInternal.h +9 -2
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/Headers/GSSDKScanFlow-Swift.h +12 -1
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/Headers/GSSDKScanFlow.h +1 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/Info.plist +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/Modules/GSSDKScanFlow.swiftmodule/arm64-apple-ios.abi.json +1197 -18
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/Modules/GSSDKScanFlow.swiftmodule/arm64-apple-ios.private.swiftinterface +20 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/Modules/GSSDKScanFlow.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/Modules/GSSDKScanFlow.swiftmodule/arm64-apple-ios.swiftinterface +20 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/ar.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/da.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/de.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/es.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/he.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/id.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/it.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/ja.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/ko.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/nl.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/pt-BR.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/ru.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/sv.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/tr.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/vi.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/zh-Hans.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/zh-Hant.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/dSYMs/GSSDKScanFlow.framework.dSYM/Contents/Info.plist +2 -2
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/dSYMs/GSSDKScanFlow.framework.dSYM/Contents/Resources/DWARF/GSSDKScanFlow +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/GSSDKScanFlow +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/Headers/GSKScanFlow.h +49 -2
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/Headers/GSKScanFlowScanInternal.h +9 -2
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/Headers/GSSDKScanFlow-Swift.h +24 -2
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/Headers/GSSDKScanFlow.h +1 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/Info.plist +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/Modules/GSSDKScanFlow.swiftmodule/arm64-apple-ios-simulator.abi.json +1197 -18
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/Modules/GSSDKScanFlow.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +20 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/Modules/GSSDKScanFlow.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/Modules/GSSDKScanFlow.swiftmodule/arm64-apple-ios-simulator.swiftinterface +20 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/Modules/GSSDKScanFlow.swiftmodule/x86_64-apple-ios-simulator.abi.json +1197 -18
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/Modules/GSSDKScanFlow.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +20 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/Modules/GSSDKScanFlow.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/Modules/GSSDKScanFlow.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +20 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/ar.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/da.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/de.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/es.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/he.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/id.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/it.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/ja.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/ko.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/nl.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/pt-BR.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/ru.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/sv.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/tr.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/vi.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/zh-Hans.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/zh-Hant.lproj/GSSDK.strings +0 -0
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDKScanFlow.framework.dSYM/Contents/Info.plist +2 -2
- package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDKScanFlow.framework.dSYM/Contents/Resources/DWARF/GSSDKScanFlow +0 -0
- package/src/ios/GeniusScan.h +1 -0
- package/src/ios/GeniusScan.m +10 -0
- package/www/GeniusScan.js +8 -0
- /package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/{PrivateHeaders → Headers}/GSKScanFlowResult+Dictionary.h +0 -0
- /package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64_x86_64-simulator/GSSDKScanFlow.framework/{PrivateHeaders → Headers}/GSKScanFlowResult+Dictionary.h +0 -0
package/README.md
CHANGED
|
@@ -10,10 +10,10 @@ This Cordova plugin allows you to access the [Genius Scan SDK](https://geniussca
|
|
|
10
10
|
- Batch scanning of several pages in row
|
|
11
11
|
- OCR to extract raw text from images and generate PDF with invisible text layer
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## License
|
|
14
14
|
|
|
15
|
-
This plugin is based on the Genius Scan SDK for which you need to [setup a
|
|
16
|
-
You can aleady try the "demo" version for free by not setting a
|
|
15
|
+
This plugin is based on the Genius Scan SDK for which you need to [setup a license](#set-the-license-key).
|
|
16
|
+
You can aleady try the "demo" version for free by not setting a license key, the only limitation being that the app will exit after 60 seconds.
|
|
17
17
|
|
|
18
18
|
To buy a license:
|
|
19
19
|
1. [Sign up](https://sdk.geniusscan.com/apps) to our developer console
|
|
@@ -91,15 +91,15 @@ plugman install --platform ios --project ./platforms/ios --plugin @thegrizzlylab
|
|
|
91
91
|
|
|
92
92
|
Once the `deviceReady` Cordova event has been fired, the following methods will be available:
|
|
93
93
|
|
|
94
|
-
### Set the
|
|
94
|
+
### Set the license key
|
|
95
95
|
|
|
96
|
-
Initialize the SDK with a valid
|
|
96
|
+
Initialize the SDK with a valid license key:
|
|
97
97
|
|
|
98
98
|
```javascript
|
|
99
|
-
cordova.plugins.GeniusScan.
|
|
99
|
+
cordova.plugins.GeniusScan.setLicenseKey(licenseKey, /* autoRefresh = */ true)
|
|
100
100
|
```
|
|
101
101
|
|
|
102
|
-
`setLicenseKey`
|
|
102
|
+
`setLicenseKey` doesn't return anything. However, other methods of the plugin will fail if the license key is invalid or expired. Note that, for testing purpose, you can also use the plugin without setting a license key, but it will only work for 60 seconds.
|
|
103
103
|
|
|
104
104
|
**It is recommended to show a message to users asking them to update the application in case the license has expired.**
|
|
105
105
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thegrizzlylabs/cordova-plugin-genius-scan",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.20.0",
|
|
4
4
|
"description": "Cordova Plugin for Genius Scan SDK",
|
|
5
5
|
"author": "TheGrizzlyLabs <sdk@thegrizzlylabs.com> (https://www.thegrizzlylabs.com/)",
|
|
6
6
|
"homepage": "https://geniusscansdk.com/",
|
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<plugin id="@thegrizzlylabs/cordova-plugin-genius-scan" version="4.
|
|
2
|
+
<plugin id="@thegrizzlylabs/cordova-plugin-genius-scan" version="4.20.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
|
|
3
3
|
<name>Genius Scan</name>
|
|
4
4
|
<js-module name="GeniusScan" src="www/GeniusScan.js">
|
|
5
5
|
<clobbers target="cordova.plugins.GeniusScan" />
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
<config-file parent="/manifest/application" target="AndroidManifest.xml" />
|
|
17
17
|
<source-file src="src/android/GeniusScan.java" target-dir="src/com/geniusscansdk/cordova" />
|
|
18
18
|
<framework custom="true" src="src/android/build.gradle" type="gradleReference" />
|
|
19
|
-
<framework src="com.geniusscansdk:gssdk-scanflow:4.
|
|
20
|
-
<framework src="com.geniusscansdk:gssdk-ocr:4.
|
|
19
|
+
<framework src="com.geniusscansdk:gssdk-scanflow:4.20.0"/>
|
|
20
|
+
<framework src="com.geniusscansdk:gssdk-ocr:4.20.0"/>
|
|
21
21
|
</platform>
|
|
22
22
|
|
|
23
23
|
<platform name="ios">
|
|
@@ -17,6 +17,7 @@ import android.app.Application;
|
|
|
17
17
|
import android.content.res.Resources;
|
|
18
18
|
import android.content.Intent;
|
|
19
19
|
import android.net.Uri;
|
|
20
|
+
import android.os.Bundle;
|
|
20
21
|
|
|
21
22
|
import java.io.File;
|
|
22
23
|
import java.util.ArrayList;
|
|
@@ -26,7 +27,6 @@ import java.util.List;
|
|
|
26
27
|
import java.util.Map;
|
|
27
28
|
import java.util.UUID;
|
|
28
29
|
|
|
29
|
-
|
|
30
30
|
/**
|
|
31
31
|
* This class echoes a string called from JavaScript.
|
|
32
32
|
*/
|
|
@@ -55,7 +55,7 @@ public class GeniusScan extends CordovaPlugin {
|
|
|
55
55
|
value = toList((JSONArray) value);
|
|
56
56
|
} else if (value instanceof JSONObject) {
|
|
57
57
|
value = toMap((JSONObject) value);
|
|
58
|
-
}
|
|
58
|
+
}
|
|
59
59
|
map.put(key, value);
|
|
60
60
|
} return map;
|
|
61
61
|
}
|
|
@@ -81,20 +81,32 @@ public class GeniusScan extends CordovaPlugin {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
@Override
|
|
84
|
-
public
|
|
85
|
-
callback = callbackContext;
|
|
84
|
+
public void onRestoreStateForActivityResult(Bundle state, CallbackContext callbackContext) {
|
|
85
|
+
this.callback = callbackContext;
|
|
86
|
+
}
|
|
86
87
|
|
|
88
|
+
@Override
|
|
89
|
+
public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {
|
|
87
90
|
if (action.equals("scanWithConfiguration")) {
|
|
91
|
+
callback = callbackContext;
|
|
88
92
|
Map<String, Object> scanOptions = toMap(args.getJSONObject(0));
|
|
89
93
|
this.cordova.setActivityResultCallback((CordovaPlugin) this);
|
|
90
94
|
PluginBridge.scanWithConfiguration(this.cordova.getActivity(), scanOptions);
|
|
91
95
|
return true;
|
|
92
96
|
}
|
|
93
97
|
|
|
98
|
+
if (action.equals("setLicenseKey")) {
|
|
99
|
+
String licenseKey = args.getString(0);
|
|
100
|
+
boolean autoRefresh = args.getBoolean(1);
|
|
101
|
+
PluginBridge.setLicenseKey(this.cordova.getActivity().getApplicationContext(), licenseKey, autoRefresh);
|
|
102
|
+
callbackContext.success();
|
|
103
|
+
return true;
|
|
104
|
+
}
|
|
105
|
+
|
|
94
106
|
if (action.equals("setLicenceKey")) {
|
|
95
107
|
String licenseKey = args.getString(0);
|
|
96
108
|
PromiseResult result = PluginBridge.setLicenseKey(this.cordova.getActivity().getApplicationContext(), licenseKey);
|
|
97
|
-
|
|
109
|
+
callbackContext.sendPluginResult(promiseResultToPluginResult(result));
|
|
98
110
|
return true;
|
|
99
111
|
}
|
|
100
112
|
|
|
@@ -102,7 +114,7 @@ public class GeniusScan extends CordovaPlugin {
|
|
|
102
114
|
Map<String, Object> document = toMap(args.getJSONObject(0));
|
|
103
115
|
Map<String, Object> configuration = toMap(args.getJSONObject(1));
|
|
104
116
|
PromiseResult result = PluginBridge.generateDocument(this.cordova.getActivity(), document, configuration);
|
|
105
|
-
|
|
117
|
+
callbackContext.sendPluginResult(promiseResultToPluginResult(result));
|
|
106
118
|
return true;
|
|
107
119
|
}
|
|
108
120
|
|
|
Binary file
|
|
Binary file
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
<key>CFBundleSignature</key>
|
|
14
14
|
<string>????</string>
|
|
15
15
|
<key>CFBundleShortVersionString</key>
|
|
16
|
-
<string>4.
|
|
16
|
+
<string>4.20.0</string>
|
|
17
17
|
<key>CFBundleVersion</key>
|
|
18
|
-
<string>
|
|
18
|
+
<string>14240</string>
|
|
19
19
|
</dict>
|
|
20
20
|
</plist>
|
|
Binary file
|
package/src/ios/GSSDK/GSSDKCore.xcframework/ios-arm64_x86_64-simulator/GSSDKCore.framework/GSSDKCore
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
<key>CFBundleSignature</key>
|
|
14
14
|
<string>????</string>
|
|
15
15
|
<key>CFBundleShortVersionString</key>
|
|
16
|
-
<string>4.
|
|
16
|
+
<string>4.20.0</string>
|
|
17
17
|
<key>CFBundleVersion</key>
|
|
18
|
-
<string>
|
|
18
|
+
<string>14240</string>
|
|
19
19
|
</dict>
|
|
20
20
|
</plist>
|
|
Binary file
|
|
@@ -8,32 +8,32 @@
|
|
|
8
8
|
<key>DebugSymbolsPath</key>
|
|
9
9
|
<string>dSYMs</string>
|
|
10
10
|
<key>LibraryIdentifier</key>
|
|
11
|
-
<string>ios-
|
|
11
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
12
12
|
<key>LibraryPath</key>
|
|
13
13
|
<string>GSSDKOCR.framework</string>
|
|
14
14
|
<key>SupportedArchitectures</key>
|
|
15
15
|
<array>
|
|
16
16
|
<string>arm64</string>
|
|
17
|
+
<string>x86_64</string>
|
|
17
18
|
</array>
|
|
18
19
|
<key>SupportedPlatform</key>
|
|
19
20
|
<string>ios</string>
|
|
21
|
+
<key>SupportedPlatformVariant</key>
|
|
22
|
+
<string>simulator</string>
|
|
20
23
|
</dict>
|
|
21
24
|
<dict>
|
|
22
25
|
<key>DebugSymbolsPath</key>
|
|
23
26
|
<string>dSYMs</string>
|
|
24
27
|
<key>LibraryIdentifier</key>
|
|
25
|
-
<string>ios-
|
|
28
|
+
<string>ios-arm64</string>
|
|
26
29
|
<key>LibraryPath</key>
|
|
27
30
|
<string>GSSDKOCR.framework</string>
|
|
28
31
|
<key>SupportedArchitectures</key>
|
|
29
32
|
<array>
|
|
30
33
|
<string>arm64</string>
|
|
31
|
-
<string>x86_64</string>
|
|
32
34
|
</array>
|
|
33
35
|
<key>SupportedPlatform</key>
|
|
34
36
|
<string>ios</string>
|
|
35
|
-
<key>SupportedPlatformVariant</key>
|
|
36
|
-
<string>simulator</string>
|
|
37
37
|
</dict>
|
|
38
38
|
</array>
|
|
39
39
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
<key>CFBundleSignature</key>
|
|
14
14
|
<string>????</string>
|
|
15
15
|
<key>CFBundleShortVersionString</key>
|
|
16
|
-
<string>4.
|
|
16
|
+
<string>4.20.0</string>
|
|
17
17
|
<key>CFBundleVersion</key>
|
|
18
|
-
<string>
|
|
18
|
+
<string>14240</string>
|
|
19
19
|
</dict>
|
|
20
20
|
</plist>
|
package/src/ios/GSSDK/GSSDKOCR.xcframework/ios-arm64_x86_64-simulator/GSSDKOCR.framework/Info.plist
CHANGED
|
Binary file
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
<key>CFBundleSignature</key>
|
|
14
14
|
<string>????</string>
|
|
15
15
|
<key>CFBundleShortVersionString</key>
|
|
16
|
-
<string>4.
|
|
16
|
+
<string>4.20.0</string>
|
|
17
17
|
<key>CFBundleVersion</key>
|
|
18
|
-
<string>
|
|
18
|
+
<string>14240</string>
|
|
19
19
|
</dict>
|
|
20
20
|
</plist>
|
|
@@ -8,32 +8,32 @@
|
|
|
8
8
|
<key>DebugSymbolsPath</key>
|
|
9
9
|
<string>dSYMs</string>
|
|
10
10
|
<key>LibraryIdentifier</key>
|
|
11
|
-
<string>ios-
|
|
11
|
+
<string>ios-arm64</string>
|
|
12
12
|
<key>LibraryPath</key>
|
|
13
13
|
<string>GSSDKScanFlow.framework</string>
|
|
14
14
|
<key>SupportedArchitectures</key>
|
|
15
15
|
<array>
|
|
16
16
|
<string>arm64</string>
|
|
17
|
-
<string>x86_64</string>
|
|
18
17
|
</array>
|
|
19
18
|
<key>SupportedPlatform</key>
|
|
20
19
|
<string>ios</string>
|
|
21
|
-
<key>SupportedPlatformVariant</key>
|
|
22
|
-
<string>simulator</string>
|
|
23
20
|
</dict>
|
|
24
21
|
<dict>
|
|
25
22
|
<key>DebugSymbolsPath</key>
|
|
26
23
|
<string>dSYMs</string>
|
|
27
24
|
<key>LibraryIdentifier</key>
|
|
28
|
-
<string>ios-
|
|
25
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
29
26
|
<key>LibraryPath</key>
|
|
30
27
|
<string>GSSDKScanFlow.framework</string>
|
|
31
28
|
<key>SupportedArchitectures</key>
|
|
32
29
|
<array>
|
|
33
30
|
<string>arm64</string>
|
|
31
|
+
<string>x86_64</string>
|
|
34
32
|
</array>
|
|
35
33
|
<key>SupportedPlatform</key>
|
|
36
34
|
<string>ios</string>
|
|
35
|
+
<key>SupportedPlatformVariant</key>
|
|
36
|
+
<string>simulator</string>
|
|
37
37
|
</dict>
|
|
38
38
|
</array>
|
|
39
39
|
<key>CFBundlePackageType</key>
|
package/src/ios/GSSDK/GSSDKScanFlow.xcframework/ios-arm64/GSSDKScanFlow.framework/GSSDKScanFlow
CHANGED
|
Binary file
|
|
@@ -17,7 +17,7 @@ typedef NS_ENUM(NSInteger, GSKScanFlowError) {
|
|
|
17
17
|
/// User has canceled the scan flow
|
|
18
18
|
GSKScanFlowUserCancelationError = 999,
|
|
19
19
|
/// A general error due to a bad input parameter. Verify that your input match the API requirements.
|
|
20
|
-
GSKScanFlowBadInputError = 1000
|
|
20
|
+
GSKScanFlowBadInputError = 1000
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
/**
|
|
@@ -38,6 +38,15 @@ typedef NS_OPTIONS(NSUInteger, GSKScanFlowOCROutputFormats) {
|
|
|
38
38
|
GSKScanFlowOCROutputFormatsAll = NSUIntegerMax,
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
+
/**
|
|
42
|
+
The types of structured data to extract.
|
|
43
|
+
*/
|
|
44
|
+
typedef NS_OPTIONS(NSUInteger, GSKScanFlowStructuredData) {
|
|
45
|
+
GSKScanFlowStructuredDataNone = 0,
|
|
46
|
+
/// To scan IBAN and BIC/SWIFT codes
|
|
47
|
+
GSKScanFlowStructuredDataBankDetails = 1 << 0
|
|
48
|
+
};
|
|
49
|
+
|
|
41
50
|
/**
|
|
42
51
|
The configuration for text recognition
|
|
43
52
|
*/
|
|
@@ -180,6 +189,14 @@ typedef NS_ENUM(NSUInteger, GSKScanFlowMultiPageFormat) {
|
|
|
180
189
|
*/
|
|
181
190
|
@property (nonatomic, assign) GSKScanFlowFilterType defaultFilter;
|
|
182
191
|
|
|
192
|
+
/**
|
|
193
|
+
Skips showing the post-processing screen.
|
|
194
|
+
|
|
195
|
+
We only recommend this option when scanning structured data. Generally, you want the user to visually confirm
|
|
196
|
+
the quality of the scan.
|
|
197
|
+
*/
|
|
198
|
+
@property (nonatomic, assign) BOOL skipPostProcessingScreen;
|
|
199
|
+
|
|
183
200
|
/**
|
|
184
201
|
Select which actions are displayed in the post processing screen
|
|
185
202
|
|
|
@@ -274,6 +291,13 @@ typedef NS_ENUM(NSUInteger, GSKScanFlowMultiPageFormat) {
|
|
|
274
291
|
*/
|
|
275
292
|
@property (nonatomic, strong, nullable) GSKScanFlowOCRConfiguration *ocrConfiguration;
|
|
276
293
|
|
|
294
|
+
/**
|
|
295
|
+
The types of structured data you want to extract from the document.
|
|
296
|
+
|
|
297
|
+
This is an option set so you can combine multiple values.
|
|
298
|
+
*/
|
|
299
|
+
@property (nonatomic, assign) GSKScanFlowStructuredData structuredData;
|
|
300
|
+
|
|
277
301
|
@end
|
|
278
302
|
|
|
279
303
|
/**
|
|
@@ -289,6 +313,26 @@ typedef NS_ENUM(NSUInteger, GSKScanFlowMultiPageFormat) {
|
|
|
289
313
|
|
|
290
314
|
@end
|
|
291
315
|
|
|
316
|
+
@interface GSKScanFlowStructuredDataResultBankDetails: NSObject
|
|
317
|
+
|
|
318
|
+
/// The IBAN if successfully extracted, otherwise is nil.
|
|
319
|
+
@property (nonatomic, strong, nullable) NSString *iban;
|
|
320
|
+
|
|
321
|
+
/// The BIC code if successfully extracted, otherwise is nil.
|
|
322
|
+
@property (nonatomic, strong, nullable) NSString *bic;
|
|
323
|
+
|
|
324
|
+
@end
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
The result of a structured data extraction.
|
|
328
|
+
*/
|
|
329
|
+
@interface GSKScanFlowStructuredDataResult: NSObject
|
|
330
|
+
|
|
331
|
+
/// Present if bank details extraction was requested, nil otherwise.
|
|
332
|
+
@property (nonatomic, strong, nullable) GSKScanFlowStructuredDataResultBankDetails *bankDetails;
|
|
333
|
+
|
|
334
|
+
@end
|
|
335
|
+
|
|
292
336
|
/**
|
|
293
337
|
A page captured by the scan flow.
|
|
294
338
|
*/
|
|
@@ -304,7 +348,10 @@ typedef NS_ENUM(NSUInteger, GSKScanFlowMultiPageFormat) {
|
|
|
304
348
|
@property (nonatomic, strong) NSString *enhancedFilePath;
|
|
305
349
|
|
|
306
350
|
/// If OCR was performed, the recognized text.
|
|
307
|
-
@property (nonatomic, strong) GSKScanFlowOCRResult *ocrResult;
|
|
351
|
+
@property (nonatomic, strong, nullable) GSKScanFlowOCRResult *ocrResult;
|
|
352
|
+
|
|
353
|
+
/// If structured data extraction was performed, the structured data.
|
|
354
|
+
@property (nonatomic, strong, nullable) GSKScanFlowStructuredDataResult *structuredDataResult;
|
|
308
355
|
|
|
309
356
|
@end
|
|
310
357
|
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
#import <GSSDKCore/GSSDKCore.h>
|
|
12
12
|
|
|
13
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
14
|
+
|
|
13
15
|
@class GSKOCRResult;
|
|
14
16
|
|
|
15
17
|
/**
|
|
@@ -45,7 +47,12 @@
|
|
|
45
47
|
@property (nonatomic, assign) GSKRotation appliedRotation;
|
|
46
48
|
|
|
47
49
|
/// If OCR was performed, the recognized text.
|
|
48
|
-
@property (nonatomic, strong) GSKOCRResult *ocrResult;
|
|
50
|
+
@property (nonatomic, strong, nullable) GSKOCRResult *ocrResult;
|
|
51
|
+
|
|
52
|
+
/// If bank details extraction was performed and successful, the extracted IBAN, otherwise nil.
|
|
53
|
+
@property (nonatomic, strong, nullable) NSString *structuredDataIBAN;
|
|
54
|
+
/// If bank details extraction was performed and successful, the extracted BIC, otherwise nil.
|
|
55
|
+
@property (nonatomic, strong, nullable) NSString *structuredDataBIC;
|
|
49
56
|
|
|
50
57
|
/// Deletes all the files related to this scan. Convenient to clean up after you copied
|
|
51
58
|
/// what you needed.
|
|
@@ -53,4 +60,4 @@
|
|
|
53
60
|
|
|
54
61
|
@end
|
|
55
62
|
|
|
56
|
-
|
|
63
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -296,6 +296,18 @@ SWIFT_CLASS("_TtC13GSSDKScanFlow33BVImageContentViewObjCWrapperView")
|
|
|
296
296
|
@end
|
|
297
297
|
|
|
298
298
|
|
|
299
|
+
@class GSKScanFlowScanInternal;
|
|
300
|
+
@class GSKScanFlowConfiguration;
|
|
301
|
+
|
|
302
|
+
SWIFT_CLASS("_TtC13GSSDKScanFlow32GSKScanFlowStructuredDataService")
|
|
303
|
+
@interface GSKScanFlowStructuredDataService : NSObject
|
|
304
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKScanFlowStructuredDataService * _Nonnull shared;)
|
|
305
|
+
+ (GSKScanFlowStructuredDataService * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
|
|
306
|
+
- (void)process:(GSKScanFlowScanInternal * _Nonnull)scan configuration:(GSKScanFlowConfiguration * _Nonnull)configuration;
|
|
307
|
+
- (void)waitForCompletion:(void (^ _Nonnull)(void))onDone;
|
|
308
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
309
|
+
@end
|
|
310
|
+
|
|
299
311
|
|
|
300
312
|
SWIFT_CLASS("_TtC13GSSDKScanFlow25GSKUIBackgroundProcessing")
|
|
301
313
|
@interface GSKUIBackgroundProcessing : NSObject
|
|
@@ -305,7 +317,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GSKUIBackgro
|
|
|
305
317
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
306
318
|
@end
|
|
307
319
|
|
|
308
|
-
@class GSKScanFlowScanInternal;
|
|
309
320
|
@class GSKScanFlowOCRConfiguration;
|
|
310
321
|
|
|
311
322
|
SWIFT_CLASS("_TtC13GSSDKScanFlow15GSKUIOCRService")
|