@thegrizzlylabs/react-native-genius-scan 5.2.0 → 5.3.1
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 +2 -2
- package/android/build.gradle +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/GSSDK +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKDefaultLogLevel.h +2 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKView.h +4 -2
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +36 -4
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK.h +1 -2
- 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 +2086 -595
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +70 -64
- 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 +70 -64
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/PhoneNumberKit_GSKPhoneNumberKit.bundle/Info.plist +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/fr.lproj/GSSDK.strings +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/GSSDK +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKDefaultLogLevel.h +2 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKView.h +4 -2
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +72 -8
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK.h +1 -2
- 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 +2086 -595
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +70 -64
- 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 +70 -64
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +2086 -595
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +70 -64
- 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 +70 -64
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/PhoneNumberKit_GSKPhoneNumberKit.bundle/Info.plist +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
- package/package.json +1 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKCore.h +0 -52
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKCore.h +0 -52
package/README.md
CHANGED
|
@@ -202,8 +202,8 @@ Make sure that the license key is correct, that is has not expired, and that it
|
|
|
202
202
|
|
|
203
203
|
Refer to the troubleshooting guides of the native libraries to resolve common configuration and build problems:
|
|
204
204
|
|
|
205
|
-
- [iOS](https://geniusscansdk.com/docs/
|
|
206
|
-
- [Android](https://geniusscansdk.com/docs/
|
|
205
|
+
- [iOS](https://geniusscansdk.com/docs/v5/ios/troubleshooting/)
|
|
206
|
+
- [Android](https://geniusscansdk.com/docs/v5/android/troubleshooting/)
|
|
207
207
|
|
|
208
208
|
# Changelog
|
|
209
209
|
|
package/android/build.gradle
CHANGED
|
@@ -10,18 +10,15 @@
|
|
|
10
10
|
<key>DebugSymbolsPath</key>
|
|
11
11
|
<string>dSYMs</string>
|
|
12
12
|
<key>LibraryIdentifier</key>
|
|
13
|
-
<string>ios-
|
|
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-
|
|
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>
|
|
Binary file
|
|
Binary file
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
|
|
14
14
|
NS_ASSUME_NONNULL_BEGIN
|
|
15
15
|
|
|
16
|
-
@class
|
|
16
|
+
@class GSKCameraSession;
|
|
17
17
|
@class GSKQuadrangle;
|
|
18
|
+
@class GSKView;
|
|
18
19
|
|
|
19
20
|
@protocol GSKViewDelegate <NSObject>
|
|
20
21
|
|
|
@@ -34,7 +35,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
34
35
|
/// Updates the quadrangle overlay. Removes the quadrangle if @param quadrangle is nil.
|
|
35
36
|
- (void)updateQuadrangle:(GSKQuadrangle * _Nullable)quadrangle;
|
|
36
37
|
|
|
37
|
-
- (void)
|
|
38
|
+
- (void)setCameraSession:(GSKCameraSession *)session;
|
|
39
|
+
- (void)setCaptureSession:(AVCaptureSession *)session; // Deprecated. Use `setCameraSession` instead.
|
|
38
40
|
|
|
39
41
|
/**
|
|
40
42
|
Freeze the capture preview. This is very fast as this doesn't interrupt the camera session.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#if 0
|
|
2
2
|
#elif defined(__arm64__) && __arm64__
|
|
3
|
-
// Generated by Apple Swift version 5.10 (swiftlang-
|
|
3
|
+
// Generated by Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
|
|
4
4
|
#ifndef GSSDK_SWIFT_H
|
|
5
5
|
#define GSSDK_SWIFT_H
|
|
6
6
|
#pragma clang diagnostic push
|
|
@@ -42,6 +42,8 @@
|
|
|
42
42
|
#include <string.h>
|
|
43
43
|
#endif
|
|
44
44
|
#if defined(__cplusplus)
|
|
45
|
+
#pragma clang diagnostic push
|
|
46
|
+
#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
|
|
45
47
|
#if defined(__arm64e__) && __has_include(<ptrauth.h>)
|
|
46
48
|
# include <ptrauth.h>
|
|
47
49
|
#else
|
|
@@ -55,6 +57,7 @@
|
|
|
55
57
|
# endif
|
|
56
58
|
#pragma clang diagnostic pop
|
|
57
59
|
#endif
|
|
60
|
+
#pragma clang diagnostic pop
|
|
58
61
|
#endif
|
|
59
62
|
|
|
60
63
|
#if !defined(SWIFT_TYPEDEFS)
|
|
@@ -297,6 +300,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
297
300
|
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
|
298
301
|
#pragma clang diagnostic ignored "-Wnullability"
|
|
299
302
|
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
|
303
|
+
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
|
300
304
|
|
|
301
305
|
#if __has_attribute(external_source_symbol)
|
|
302
306
|
# pragma push_macro("any")
|
|
@@ -322,6 +326,33 @@ SWIFT_PROTOCOL("_TtP5GSSDK20CGImageRepresentable_")
|
|
|
322
326
|
|
|
323
327
|
|
|
324
328
|
|
|
329
|
+
@class NSString;
|
|
330
|
+
|
|
331
|
+
/// Entry point of the SDK. Use this to initialize the SDK with your license key.
|
|
332
|
+
SWIFT_CLASS("_TtC5GSSDK3GSK")
|
|
333
|
+
@interface GSK : NSObject
|
|
334
|
+
/// Returns the Genius Scan SDK version
|
|
335
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull sdkVersion;)
|
|
336
|
+
+ (NSString * _Nonnull)sdkVersion SWIFT_WARN_UNUSED_RESULT;
|
|
337
|
+
/// Sets the Genius Scan SDK license key with auto-refresh enabled.
|
|
338
|
+
/// See <code>setLicenseKey:autoRefresh:</code>
|
|
339
|
+
+ (void)setLicenseKey:(NSString * _Nonnull)licenseKey;
|
|
340
|
+
/// Sets the Genius Scan SDK license key, while optionally enabling auto-refresh.
|
|
341
|
+
/// This method doesn’t return an error but will log warnings should the key be invalid or expired. All other SDK methods that return errors will report
|
|
342
|
+
/// an error if there is a problem with the license key, and you must handle them to ensure you provide a good “degraded” experience.
|
|
343
|
+
/// For instance, you can prompt the user to update the application to use the scanning feature in case they use a version of the application with an expired license key.
|
|
344
|
+
/// important:
|
|
345
|
+
/// This method must be called with a valid license key before any use of the SDK methods.
|
|
346
|
+
/// \param licenseKey A valid license key. You must publish a new version of the app with an updated license key before the key expires.
|
|
347
|
+
///
|
|
348
|
+
/// \param autoRefresh If true, the SDK will attempt to automatically refresh the license key to prevent any diruption of service on devices that wouldn’t have
|
|
349
|
+
/// updated to the latest version of your app containing the new keys. If <code>autoRefresh</code> is enabled, the following information is sent to the Genius Scan
|
|
350
|
+
/// SDK servers: the current license key, a device-unique UUID, and the current version of the app.
|
|
351
|
+
///
|
|
352
|
+
+ (void)setLicenseKey:(NSString * _Nonnull)licenseKey autoRefresh:(BOOL)autoRefresh;
|
|
353
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
354
|
+
@end
|
|
355
|
+
|
|
325
356
|
@class AVCaptureDevice;
|
|
326
357
|
@class AVCaptureSession;
|
|
327
358
|
enum GSKCameraSessionFlashStatus : NSInteger;
|
|
@@ -350,6 +381,8 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSTimeInterval minDu
|
|
|
350
381
|
@property (nonatomic, readonly) BOOL isTakingPhoto;
|
|
351
382
|
/// Returns false if flash isn’t supported on this device configuration.
|
|
352
383
|
@property (nonatomic, readonly) BOOL supportsFlash;
|
|
384
|
+
/// Public to be accessible from Objective-C, but should be private otherwise.
|
|
385
|
+
@property (nonatomic, readonly, strong) dispatch_queue_t _Nullable captureSessionQueue;
|
|
353
386
|
- (nonnull instancetype)initWithConfiguration:(GSKCameraSessionConfiguration * _Nonnull)configuration;
|
|
354
387
|
- (void)pauseSession;
|
|
355
388
|
- (void)resumeSession;
|
|
@@ -430,7 +463,6 @@ typedef SWIFT_ENUM(NSInteger, GSKCameraSessionFlashStatus, open) {
|
|
|
430
463
|
|
|
431
464
|
@class NSCoder;
|
|
432
465
|
@protocol UIViewControllerTransitionCoordinator;
|
|
433
|
-
@class NSString;
|
|
434
466
|
@class NSBundle;
|
|
435
467
|
|
|
436
468
|
/// A ready-to-use camera interface for scanning documents.
|
|
@@ -453,12 +485,12 @@ SWIFT_CLASS("_TtC5GSSDK23GSKCameraViewController")
|
|
|
453
485
|
@end
|
|
454
486
|
|
|
455
487
|
|
|
488
|
+
|
|
456
489
|
@interface GSKCameraViewController (SWIFT_EXTENSION(GSSDK))
|
|
457
490
|
/// Snap the photo
|
|
458
491
|
- (void)takePhoto;
|
|
459
492
|
@end
|
|
460
493
|
|
|
461
|
-
|
|
462
494
|
@class GSKScan;
|
|
463
495
|
@class GSKQuadrangle;
|
|
464
496
|
|
|
@@ -1040,7 +1072,6 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
|
|
|
1040
1072
|
@end
|
|
1041
1073
|
|
|
1042
1074
|
|
|
1043
|
-
|
|
1044
1075
|
@interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
1045
1076
|
/// Create a configuration from a dictionary.
|
|
1046
1077
|
/// This is particularly useful for interfacing with React Native but shouldn’t
|
|
@@ -1054,6 +1085,7 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
|
|
|
1054
1085
|
- (BOOL)validate:(NSError * _Nullable * _Nullable)error;
|
|
1055
1086
|
@end
|
|
1056
1087
|
|
|
1088
|
+
|
|
1057
1089
|
/// Enum that defines various errors that can occur during a scan flow.
|
|
1058
1090
|
typedef SWIFT_ENUM(NSInteger, GSKScanFlowError, open) {
|
|
1059
1091
|
/// User has canceled the scan flow
|
|
@@ -12,8 +12,8 @@ FOUNDATION_EXPORT double GSSDKVersionNumber;
|
|
|
12
12
|
FOUNDATION_EXPORT const unsigned char GSSDKVersionString[];
|
|
13
13
|
|
|
14
14
|
#import <GSSDK/GSKBackgroundKind.h>
|
|
15
|
-
#import <GSSDK/GSKCore.h>
|
|
16
15
|
#import <GSSDK/GSKCurvatureCorrectionConfiguration.h>
|
|
16
|
+
#import <GSSDK/GSKDefaultLogLevel.h>
|
|
17
17
|
#import <GSSDK/GSKDefaultLogger.h>
|
|
18
18
|
#import <GSSDK/GSKDocumentComposition.h>
|
|
19
19
|
#import <GSSDK/GSKDocumentDetector.h>
|
|
@@ -47,4 +47,3 @@ FOUNDATION_EXPORT const unsigned char GSSDKVersionString[];
|
|
|
47
47
|
#import <GSSDK/GSKShutterView.h>
|
|
48
48
|
#import <GSSDK/GSKView.h>
|
|
49
49
|
#import <GSSDK/UIImage+GSKUtils.h>
|
|
50
|
-
#import <GSSDK/GSKDefaultLogLevel.h>
|
|
Binary file
|