@thegrizzlylabs/react-native-genius-scan 5.0.0-beta1 → 5.0.0-beta2
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/android/build.gradle +1 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKFilterType.h +1 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanFlowErrorDomain.h +7 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanFlowOCROutputFormats.h +22 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanFlowPostProcessingActions.h +22 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanFlowStructuredData.h +13 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +43 -135
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK.h +5 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/MBProgressHUD.h +411 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Info.plist +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.abi.json +7820 -10200
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +45 -117
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftinterface +45 -117
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKFilterType.h +1 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanFlowErrorDomain.h +7 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanFlowOCROutputFormats.h +22 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanFlowPostProcessingActions.h +22 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanFlowStructuredData.h +13 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +86 -270
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK.h +5 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/MBProgressHUD.h +411 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Info.plist +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +7820 -10200
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +45 -117
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +45 -117
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +7820 -10200
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +45 -117
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +45 -117
- package/package.json +1 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanFlow.h +0 -91
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanFlow.h +0 -91
package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanFlow.h
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// GSKScanFlow.h
|
|
3
|
-
// GSSDKScanFlow
|
|
4
|
-
//
|
|
5
|
-
// Created by Bruno Virlet on 4/26/19.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
#import <Foundation/Foundation.h>
|
|
9
|
-
#import <UIKit/UIKit.h>
|
|
10
|
-
|
|
11
|
-
@class GSKOCRLanguage;
|
|
12
|
-
@class GSKScanFlowConfiguration;
|
|
13
|
-
@class GSKScanFlowResult;
|
|
14
|
-
|
|
15
|
-
NS_ASSUME_NONNULL_BEGIN
|
|
16
|
-
|
|
17
|
-
FOUNDATION_EXPORT NSErrorDomain const GSKScanFlowErrorDomain;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
The various formats into which the OCR result can be made available.
|
|
21
|
-
|
|
22
|
-
This is an option set so you can combine multiple formats.
|
|
23
|
-
*/
|
|
24
|
-
typedef NS_OPTIONS(NSUInteger, GSKScanFlowOCROutputFormats) {
|
|
25
|
-
/// No output formats
|
|
26
|
-
GSKScanFlowOCROutputFormatsNone = 0,
|
|
27
|
-
/// Output OCR result as raw text
|
|
28
|
-
GSKScanFlowOCROutputFormatsRawText = 1 << 0,
|
|
29
|
-
/// Output OCR result in HOCR format
|
|
30
|
-
GSKScanFlowOCROutputFormatsHOCR = 1 << 1,
|
|
31
|
-
/// Add OCR result as a text layer in the generated PDF file (if any)
|
|
32
|
-
GSKScanFlowOCROutputFormatsTextLayerInPDF = 1 << 2,
|
|
33
|
-
/// All the output formats
|
|
34
|
-
GSKScanFlowOCROutputFormatsAll = NSUIntegerMax,
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
The types of structured data to extract.
|
|
39
|
-
*/
|
|
40
|
-
typedef NS_OPTIONS(NSUInteger, GSKScanFlowStructuredData) {
|
|
41
|
-
GSKScanFlowStructuredDataNone = 0,
|
|
42
|
-
/// To scan IBAN and BIC/SWIFT codes
|
|
43
|
-
GSKScanFlowStructuredDataBankDetails = 1 << 0
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
The various image processing actions available in the post-processing screen.
|
|
48
|
-
|
|
49
|
-
This is an option set so you can combine multiple actions.
|
|
50
|
-
*/
|
|
51
|
-
typedef NS_OPTIONS(NSUInteger, GSKScanFlowPostProcessingActions) {
|
|
52
|
-
/// No actions
|
|
53
|
-
GSKScanFlowPostProcessingActionNone = 0,
|
|
54
|
-
/// The filter action
|
|
55
|
-
GSKScanFlowPostProcessingActionEditFilter = 1 << 0,
|
|
56
|
-
/// The rotate scan action
|
|
57
|
-
GSKScanFlowPostProcessingActionRotate = 1 << 1,
|
|
58
|
-
/// The distortion (book curvature) correction
|
|
59
|
-
GSKScanFlowPostProcessingActionDistortionCorrection = 1 << 2,
|
|
60
|
-
/// All the actions
|
|
61
|
-
GSKScanFlowPostProcessingActionAll = NSUIntegerMax,
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
A high-level scanner module.
|
|
66
|
-
|
|
67
|
-
You present it and when the user is done, you obtain a result object containing the scanned documents.
|
|
68
|
-
|
|
69
|
-
The scan flow can be customized with a GSKScanFlowConfiguration.
|
|
70
|
-
*/
|
|
71
|
-
@interface GSKScanFlow : NSObject
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
Instantiates a GSKScanFlow with the provided configuration.
|
|
75
|
-
|
|
76
|
-
@param configuration The provided configuration
|
|
77
|
-
*/
|
|
78
|
-
+ (instancetype)scanFlowWithConfiguration:(GSKScanFlowConfiguration *)configuration;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
Present the scan flow.
|
|
82
|
-
|
|
83
|
-
@param viewController The view controller to present the scan flow from.
|
|
84
|
-
@param completionBlock A completion block that will be called on the main thread upon completion of the scan flow. It received a GSKScanFlowResult object as a parameter. This object gives you access to the scanned documents.
|
|
85
|
-
@param errorBlock A block called upon error
|
|
86
|
-
*/
|
|
87
|
-
- (void)startFromViewController:(UIViewController *)viewController onSuccess:(void (^_Nonnull)(GSKScanFlowResult *))completionBlock failure:(void (^_Nonnull)(NSError *))errorBlock;
|
|
88
|
-
|
|
89
|
-
@end
|
|
90
|
-
|
|
91
|
-
NS_ASSUME_NONNULL_END
|