@thegrizzlylabs/react-native-genius-scan 5.17.3 → 6.0.0-beta02
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 +4 -4
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/geniusscansdk/reactnative/RNGeniusScanModule.java +12 -10
- package/index.d.ts +7 -7
- package/index.js +1 -1
- package/ios/GSSDK/GSSDK.xcframework/Info.plist +5 -5
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Assets.car +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/DeviceList.plist +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/Info.plist +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/PrivacyInfo.xcprivacy +34 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKDefaultLogLevel.h +1 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKDocumentDetector.h +5 -3
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKEnhancementConfiguration.h +0 -8
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKError.h +7 -3
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKLog.h +1 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKLogger.h +1 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKProcessingResult.h +0 -4
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKQuadrangle.h +1 -7
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKReadabilityResult.h +1 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKRotation.h +5 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanFlowStructuredData.h +2 -2
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanProcessor.h +6 -5
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +459 -344
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK.h +0 -6
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/UIImage+GSKUtils.h +12 -3
- 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 +19923 -17290
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +334 -279
- 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 +334 -279
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ar.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/da.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/de.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/es.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/fr.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/he.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/hu.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/it.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ja.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ko.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/nl.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/pl.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/pt-BR.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ru.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/sv.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/tr.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/vi.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/zh-Hans.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Assets.car +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/DeviceList.plist +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/Info.plist +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/PrivacyInfo.xcprivacy +34 -0
- 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/GSKDefaultLogLevel.h +1 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKDocumentDetector.h +5 -3
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKEnhancementConfiguration.h +0 -8
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKError.h +7 -3
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKLog.h +1 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKLogger.h +1 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKProcessingResult.h +0 -4
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKQuadrangle.h +1 -7
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKReadabilityResult.h +1 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKRotation.h +5 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanFlowStructuredData.h +2 -2
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanProcessor.h +6 -5
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +932 -702
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK.h +0 -6
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/UIImage+GSKUtils.h +12 -3
- 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 +19923 -17290
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +334 -279
- 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 +334 -279
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +19923 -17290
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +334 -279
- 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 +334 -279
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ar.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/da.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/de.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/es.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/fr.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/he.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/hu.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/it.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ja.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ko.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/nl.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/pl.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/pt-BR.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ru.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/sv.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/tr.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/vi.lproj/GSSDK.stringsdict +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/zh-Hans.lproj/GSSDK.stringsdict +0 -0
- package/ios/RNGeniusScan.m +8 -8
- package/package.json +1 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKEditFrameView.h +0 -71
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKEditFrameViewController.h +0 -62
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKEditableFrame.h +0 -68
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKFilterType.h +0 -43
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKMBProgressHUD.h +0 -410
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKShutterView.h +0 -28
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKView.h +0 -70
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/PrivateHeaders/png.h +0 -3358
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/PrivateHeaders/pngconf.h +0 -615
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/PrivateHeaders/pnglibconf.h +0 -233
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKEditFrameView.h +0 -71
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKEditFrameViewController.h +0 -62
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKEditableFrame.h +0 -68
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKFilterType.h +0 -43
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKMBProgressHUD.h +0 -410
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKShutterView.h +0 -28
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKView.h +0 -70
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/PrivateHeaders/png.h +0 -3358
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/PrivateHeaders/pngconf.h +0 -615
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/PrivateHeaders/pnglibconf.h +0 -233
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/ios/RNGeniusScan.m
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
@interface RNGeniusScan()
|
|
10
10
|
@property (nonatomic, strong) GSKScanFlow *scanner;
|
|
11
|
-
@property (nonatomic, strong)
|
|
11
|
+
@property (nonatomic, strong) GSKBarcodeScanFlow *barcodeScanner;
|
|
12
12
|
- (void)presentViewController:(UIViewController *)viewController rejecter:(RCTPromiseRejectBlock)reject;
|
|
13
13
|
@end
|
|
14
14
|
|
|
@@ -93,23 +93,23 @@ RCT_EXPORT_METHOD(generateDocument:(NSDictionary *)documentDictionary
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
RCT_EXPORT_METHOD(
|
|
96
|
+
RCT_EXPORT_METHOD(scanBarcodesWithConfiguration:(NSDictionary *)configuration
|
|
97
97
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
98
98
|
rejecter:(RCTPromiseRejectBlock)reject
|
|
99
99
|
) {
|
|
100
100
|
NSError *error = nil;
|
|
101
|
-
|
|
102
|
-
if (!
|
|
101
|
+
GSKBarcodeScanFlowConfiguration *barcodeConfiguration = [GSKBarcodeScanFlowConfiguration configurationWithDictionary:configuration error:&error];
|
|
102
|
+
if (!barcodeConfiguration) {
|
|
103
103
|
reject([NSString stringWithFormat:@"%@ error %ld", error.domain, (long)error.code], error.localizedDescription, error);
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
|
-
|
|
107
|
-
self.
|
|
108
|
-
|
|
106
|
+
|
|
107
|
+
self.barcodeScanner = [[GSKBarcodeScanFlow alloc] initWithConfiguration:barcodeConfiguration];
|
|
108
|
+
|
|
109
109
|
dispatch_async(dispatch_get_main_queue(), ^{
|
|
110
110
|
UIViewController *root = RCTPresentedViewController();
|
|
111
111
|
@try {
|
|
112
|
-
[self.
|
|
112
|
+
[self.barcodeScanner startFromViewController:root success:^(GSKBarcodeScanFlowResult * _Nonnull result) {
|
|
113
113
|
resolve([result dictionary]);
|
|
114
114
|
} failure:^(NSError * _Nonnull error) {
|
|
115
115
|
reject([NSString stringWithFormat:@"%@ error %ld", error.domain, (long)error.code], error.localizedDescription, error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thegrizzlylabs/react-native-genius-scan",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-beta02",
|
|
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",
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Genius Scan SDK
|
|
3
|
-
//
|
|
4
|
-
// Copyright 2010-2019 The Grizzly Labs
|
|
5
|
-
//
|
|
6
|
-
// Subject to the Genius Scan SDK Licensing Agreement
|
|
7
|
-
// sdk@thegrizzlylabs.com
|
|
8
|
-
//
|
|
9
|
-
|
|
10
|
-
#import <UIKit/UIKit.h>
|
|
11
|
-
|
|
12
|
-
@class GSKEditableFrame;
|
|
13
|
-
@class GSKMagnifierView;
|
|
14
|
-
@class GSKQuadrangle;
|
|
15
|
-
|
|
16
|
-
#import "GSKEditableFrame.h"
|
|
17
|
-
|
|
18
|
-
NS_ASSUME_NONNULL_BEGIN
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
The view to edit the quadrangle to edit the perspective correction.
|
|
22
|
-
|
|
23
|
-
It displays an editable quadrangle overlaid on the original image.
|
|
24
|
-
*/
|
|
25
|
-
@interface GSKEditFrameView : UIView <GSKEditableFrameDelegate>
|
|
26
|
-
|
|
27
|
-
- (void)clearSelection;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
The overlay representing the quadrangle.
|
|
31
|
-
|
|
32
|
-
In particular, this lets you customize the colors used for the frame overlay.
|
|
33
|
-
*/
|
|
34
|
-
@property (nonatomic, readonly) GSKEditableFrame *imageSelection;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
The magnifier "loupe" that displays a magnified view of the quadrangle corner being moved.
|
|
38
|
-
*/
|
|
39
|
-
@property (nonatomic, readonly) GSKMagnifierView *magnifierView;
|
|
40
|
-
|
|
41
|
-
// Normalized quadrangle
|
|
42
|
-
@property (nonatomic, strong) GSKQuadrangle *quadrangle;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
Sets the quadrangle on the view.
|
|
46
|
-
|
|
47
|
-
The quadrangle must be in normalized coordinates.
|
|
48
|
-
|
|
49
|
-
@param animated If true, the new quadrangle will fade in.
|
|
50
|
-
*/
|
|
51
|
-
- (void)setQuadrangle:(GSKQuadrangle *)quadrangle animated:(BOOL)animated;
|
|
52
|
-
|
|
53
|
-
@property (nonatomic, assign) BOOL noCrop;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
Set the image to be displayed by the frame view.
|
|
57
|
-
|
|
58
|
-
The frame view will resize the image to reduce memory usage.
|
|
59
|
-
*/
|
|
60
|
-
- (void)setImage:(UIImage *)image;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
Inset for the image.
|
|
64
|
-
|
|
65
|
-
By default this inset takes in account the `imageSelection`'s `handleWidth` to make sure the handles are visible even when selection is maximized.
|
|
66
|
-
*/
|
|
67
|
-
@property (nonatomic, assign) CGFloat inset;
|
|
68
|
-
|
|
69
|
-
@end
|
|
70
|
-
|
|
71
|
-
NS_ASSUME_NONNULL_END
|
package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKEditFrameViewController.h
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Genius Scan SDK
|
|
3
|
-
//
|
|
4
|
-
// Copyright 2010-2019 The Grizzly Labs
|
|
5
|
-
//
|
|
6
|
-
// Subject to the Genius Scan SDK Licensing Agreement
|
|
7
|
-
// sdk@thegrizzlylabs.com
|
|
8
|
-
//
|
|
9
|
-
|
|
10
|
-
#import <UIKit/UIKit.h>
|
|
11
|
-
|
|
12
|
-
@class GSKEditFrameView;
|
|
13
|
-
@class GSKQuadrangle;
|
|
14
|
-
|
|
15
|
-
NS_ASSUME_NONNULL_BEGIN
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
The GSKEditFrameViewController lets the user change a quadrangle.
|
|
19
|
-
|
|
20
|
-
The quadrangle is a drawn as an overlay over an image. This typically lets the user edit the edges
|
|
21
|
-
of a document to crop it more accurately.
|
|
22
|
-
*/
|
|
23
|
-
@interface GSKEditFrameViewController : UIViewController
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
@param image the image on which to draw the quadrangle. This is typically your original photo from the camera.
|
|
27
|
-
@param quadrangle the initial quadrangle
|
|
28
|
-
*/
|
|
29
|
-
- (instancetype)initWithImage:(UIImage *)image quadrangle:(GSKQuadrangle *)quadrangle NS_DESIGNATED_INITIALIZER;
|
|
30
|
-
|
|
31
|
-
- (instancetype)init NS_UNAVAILABLE;
|
|
32
|
-
- (instancetype)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE;
|
|
33
|
-
- (instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil NS_UNAVAILABLE;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
The image on which the quadrangle is overlaid.
|
|
37
|
-
*/
|
|
38
|
-
@property (nonatomic, strong) UIImage *image;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
Used to set the quadrangle to display in the view controller, and to retrieve the new quadrangle edited by the user.
|
|
42
|
-
*/
|
|
43
|
-
@property (nonatomic, assign) GSKQuadrangle *quadrangle;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
The view on which the quadrangle is drawn.
|
|
47
|
-
*/
|
|
48
|
-
@property (nonatomic, readonly) GSKEditFrameView *frameView;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
Customize the color of the shade within the quadrangle.
|
|
52
|
-
*/
|
|
53
|
-
@property (nonatomic, copy) UIColor *shadeColor DEPRECATED_MSG_ATTRIBUTE("Deprecated in favor of frameView.imageSelection.insideShadeColor].");
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
Customize the color of the line used to draw the quadrangle.
|
|
57
|
-
*/
|
|
58
|
-
@property (nonatomic, copy) UIColor *lineColor;
|
|
59
|
-
|
|
60
|
-
@end
|
|
61
|
-
|
|
62
|
-
NS_ASSUME_NONNULL_END
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Genius Scan SDK
|
|
3
|
-
//
|
|
4
|
-
// Copyright 2010-2019 The Grizzly Labs
|
|
5
|
-
//
|
|
6
|
-
// Subject to the Genius Scan SDK Licensing Agreement
|
|
7
|
-
// sdk@thegrizzlylabs.com
|
|
8
|
-
//
|
|
9
|
-
|
|
10
|
-
#import <UIKit/UIKit.h>
|
|
11
|
-
|
|
12
|
-
@class GSKEditableFrame;
|
|
13
|
-
@class GSKQuadrangle;
|
|
14
|
-
|
|
15
|
-
NS_ASSUME_NONNULL_BEGIN
|
|
16
|
-
|
|
17
|
-
extern const CGFloat GSKEditableFrameDefaultHandleWidth;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
Represents the quadrangle in the quadrangle edition screen.
|
|
21
|
-
*/
|
|
22
|
-
@protocol GSKEditableFrameDelegate
|
|
23
|
-
|
|
24
|
-
- (void)editableFrameDidChange:(GSKEditableFrame *)frame;
|
|
25
|
-
- (CGRect)editableFrameBoundsForFrameCorners:(GSKEditableFrame *)editableFrame ;
|
|
26
|
-
- (void)editableFrame:(GSKEditableFrame *)editableFrame userDidTouchPoint:(CGPoint)currentTouchPosition;
|
|
27
|
-
- (void)editableFrame:(GSKEditableFrame *)editableFrame userDidSelectCorner:(CGPoint)cornerPosition withFingerLocation:(CGPoint)pt;
|
|
28
|
-
- (void)editableFrameUserDidEndSelectCorner:(GSKEditableFrame *)editableFrame;
|
|
29
|
-
- (void)editableFrameUserDidDoubleTap:(GSKEditableFrame *)editableFrame;
|
|
30
|
-
@end
|
|
31
|
-
|
|
32
|
-
@interface GSKEditableFrame : UIView
|
|
33
|
-
|
|
34
|
-
@property (nonatomic, strong) GSKQuadrangle *quadrangle;
|
|
35
|
-
|
|
36
|
-
@property (nonatomic, weak, nullable) id <GSKEditableFrameDelegate> delegate;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
The color of the area outside of the quadrangle.
|
|
40
|
-
*/
|
|
41
|
-
@property (nonatomic, copy) UIColor *outsideShadeColor;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
The color of the area inside of the quadrangle.
|
|
45
|
-
*/
|
|
46
|
-
@property (nonatomic, copy) UIColor *insideShadeColor;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
The color of the area inside of the quadrangle.
|
|
50
|
-
*/
|
|
51
|
-
@property (nonatomic, copy) UIColor *shadeColor DEPRECATED_MSG_ATTRIBUTE("Deprecated in favor of `insideShadeColor`.");
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
The color of the edges and grid lines.
|
|
55
|
-
*/
|
|
56
|
-
@property (nonatomic, copy) UIColor *lineColor;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
The width of the handle that signify that corners can be dragged.
|
|
60
|
-
|
|
61
|
-
Default: 5
|
|
62
|
-
*/
|
|
63
|
-
@property (nonatomic, assign) CGFloat handleWidth;
|
|
64
|
-
@property (nonatomic, assign) BOOL noCrop;
|
|
65
|
-
|
|
66
|
-
@end
|
|
67
|
-
|
|
68
|
-
NS_ASSUME_NONNULL_END
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Genius Scan SDK
|
|
3
|
-
//
|
|
4
|
-
// Copyright 2010-2020 The Grizzly Labs
|
|
5
|
-
//
|
|
6
|
-
// Subject to the Genius Scan SDK Licensing Agreement
|
|
7
|
-
// sdk@thegrizzlylabs.com
|
|
8
|
-
//
|
|
9
|
-
|
|
10
|
-
#ifndef GSKFilterType_h
|
|
11
|
-
#define GSKFilterType_h
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
The different possible enhancements.
|
|
15
|
-
|
|
16
|
-
Deprecated in favor of GSKFilterConfiguration.
|
|
17
|
-
*/
|
|
18
|
-
typedef NS_CLOSED_ENUM(NSInteger, GSKFilterType) {
|
|
19
|
-
/// No post processing
|
|
20
|
-
GSKFilterNone = 0,
|
|
21
|
-
/**
|
|
22
|
-
The black and white enhancement results in a mostly black and white image but gray levels
|
|
23
|
-
are used for antialiasing. The background is turned white.
|
|
24
|
-
|
|
25
|
-
Deprecated in favor of GSKEnhancementConfiguration.automatic(with: .grayscale)
|
|
26
|
-
*/
|
|
27
|
-
GSKFilterBlackAndWhite,
|
|
28
|
-
/// Turns the background white but preserves the color.
|
|
29
|
-
///
|
|
30
|
-
/// Deprecated in favor of GSKEnhancementConfiguration.automatic(with: .color)
|
|
31
|
-
GSKFilterColor,
|
|
32
|
-
/// Enhancement to apply to photographs.
|
|
33
|
-
///
|
|
34
|
-
/// Deprecated in favor of GSKEnhancementConfiguration.withFilterConfiguration(.photo)
|
|
35
|
-
GSKFilterPhoto,
|
|
36
|
-
/// Monochrome enhancement. The resulting image contains only two colors.
|
|
37
|
-
///
|
|
38
|
-
/// Deprecated in favor of GSKEnhancementConfiguration.automatic(with: .monochrome)
|
|
39
|
-
GSKFilterMonochrome,
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
#endif /* GSKFilterType_h */
|