@thegrizzlylabs/react-native-genius-scan 5.16.4 → 5.17.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.
Files changed (30) hide show
  1. package/android/build.gradle +1 -1
  2. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
  3. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKProcessingResult.h +1 -1
  4. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKQuadrangle.h +6 -0
  5. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +40 -8
  6. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Info.plist +0 -0
  7. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.abi.json +303 -46
  8. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +10 -3
  9. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  10. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftinterface +10 -3
  11. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK +0 -0
  12. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKProcessingResult.h +1 -1
  13. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKQuadrangle.h +6 -0
  14. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +80 -16
  15. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Info.plist +0 -0
  16. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +303 -46
  17. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +10 -3
  18. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  19. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +10 -3
  20. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +303 -46
  21. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +10 -3
  22. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  23. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +10 -3
  24. package/package.json +1 -1
  25. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/DeviceList.plist +0 -0
  26. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/Info.plist +0 -0
  27. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/PrivacyInfo.xcprivacy +0 -34
  28. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/DeviceList.plist +0 -0
  29. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/Info.plist +0 -0
  30. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/PrivacyInfo.xcprivacy +0 -34
@@ -42,5 +42,5 @@ rootProject.allprojects {
42
42
 
43
43
  dependencies {
44
44
  implementation 'com.facebook.react:react-native:+'
45
- implementation 'com.geniusscansdk:gssdk:5.16.4'
45
+ implementation 'com.geniusscansdk:gssdk:5.17.1'
46
46
  }
@@ -47,7 +47,7 @@ NS_ASSUME_NONNULL_BEGIN
47
47
  look "straight", appliedRotation will be GSKRotationClockwise.
48
48
  - If the input image imageOrientation is UIImageOrientationRight, and you request a clockwise rotation, appliedRotation will be GSKRotationClockwise. The output
49
49
  image orientation will be UIImageOrientationUp.
50
- - If the input image imageOrientation is UIImageOrientationUp, and you request an automatic rotation, which detects that the image must be rotated clockwise to
50
+ - If the input image imageOrientation is UIImageOrientationRight, and you request an automatic rotation, which detects that the image must be rotated clockwise to
51
51
  look "straight", appliedRotation will be GSKRotationClockwise. The output image orientation will be UIImageOrientationUp.
52
52
  */
53
53
  @property (nonatomic, assign, readonly) GSKRotation appliedRotation;
@@ -11,6 +11,7 @@
11
11
  #import <CoreGraphics/CoreGraphics.h>
12
12
 
13
13
  #import <UIKit/UIKit.h>
14
+ #import "GSKRotation.h"
14
15
 
15
16
  extern const CGPoint GSKQuadrangleTopRightPoint;
16
17
  extern const CGPoint GSKQuadrangleTopLeftPoint;
@@ -95,6 +96,11 @@ NS_ASSUME_NONNULL_BEGIN
95
96
  Ensures corners have their coordinates within [0, 1]
96
97
  */
97
98
  - (GSKQuadrangle *)sanitized;
99
+
100
+ /**
101
+ Rotates the quadrangle according to the provided rotation.
102
+ */
103
+ - (GSKQuadrangle *)rotatedByRotation:(GSKRotation)rotation NS_SWIFT_NAME(rotated(by:));
98
104
  @end
99
105
 
100
106
  NS_ASSUME_NONNULL_END
@@ -343,6 +343,11 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _No
343
343
  /// SDK servers: the current license key, a device-unique UUID, and the current version of the app.
344
344
  ///
345
345
  + (void)setLicenseKey:(NSString * _Nonnull)licenseKey autoRefresh:(BOOL)autoRefresh;
346
+ /// Checks that the Genius Scan SDK was correctly initialized with a valid license key.
347
+ ///
348
+ /// throws:
349
+ /// An error if the license key is invalid or expired.
350
+ + (BOOL)checkInitializationAndReturnError:(NSError * _Nullable * _Nullable)error;
346
351
  - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
347
352
  @end
348
353
 
@@ -568,7 +573,14 @@ SWIFT_CLASS("_TtC5GSSDK33GSKDocumentGeneratorConfiguration")
568
573
  @end
569
574
 
570
575
  @interface GSKDocumentGeneratorConfiguration (SWIFT_EXTENSION(GSSDK))
576
+ /// Initialize an instance of this type with a dictionary.
577
+ /// This is used for interfacing with cross-platform plugins but shouldn’t
578
+ /// be used in native projects.
571
579
  - (nullable instancetype)initWithDictionary:(NSDictionary<NSString *, id> * _Nonnull)dictionary error:(NSError * _Nullable * _Nullable)error;
580
+ /// Initialize an instance of this type with JSON data.
581
+ /// This is used for interfacing with cross-platform plugins but shouldn’t
582
+ /// be used in native projects.
583
+ - (nullable instancetype)initWithJson:(NSString * _Nonnull)json error:(NSError * _Nullable * _Nullable)error;
572
584
  @end
573
585
 
574
586
  SWIFT_CLASS("_TtC5GSSDK38GSKDocumentGeneratorDebugConfiguration")
@@ -880,9 +892,14 @@ SWIFT_CLASS("_TtC5GSSDK14GSKPDFDocument")
880
892
  @end
881
893
 
882
894
  @interface GSKPDFDocument (SWIFT_EXTENSION(GSSDK))
883
- /// Initialize a GSKPDFDocument with a dictionary.
884
- /// This is used for Genius Scan SDK’s cross-platform plugins integration and shouldn’t be relied on.
895
+ /// Initialize an instance of this type with a dictionary.
896
+ /// This is used for interfacing with cross-platform plugins but shouldn’t
897
+ /// be used in native projects.
885
898
  - (nullable instancetype)initWithDictionary:(NSDictionary<NSString *, id> * _Nonnull)dictionary error:(NSError * _Nullable * _Nullable)error;
899
+ /// Initialize an instance of this type with JSON data.
900
+ /// This is used for interfacing with cross-platform plugins but shouldn’t
901
+ /// be used in native projects.
902
+ - (nullable instancetype)initWithJson:(NSString * _Nonnull)json error:(NSError * _Nullable * _Nullable)error;
886
903
  @end
887
904
 
888
905
  @class GSKPDFSize;
@@ -1041,6 +1058,10 @@ SWIFT_CLASS("_TtC5GSSDK32GSKReadableCodeFlowConfiguration")
1041
1058
  /// This is used for interfacing with cross-platform plugins but shouldn’t
1042
1059
  /// be used in native projects.
1043
1060
  + (GSKReadableCodeFlowConfiguration * _Nullable)configurationWithDictionary:(NSDictionary * _Nonnull)dictionary error:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT;
1061
+ /// Create a configuration from JSON data.
1062
+ /// This is used for interfacing with cross-platform plugins but shouldn’t
1063
+ /// be used in native projects.
1064
+ + (GSKReadableCodeFlowConfiguration * _Nullable)configurationWithJSON:(NSString * _Nonnull)json error:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT;
1044
1065
  @end
1045
1066
 
1046
1067
  /// Enum that defines various errors that can occur during a readable code flow.
@@ -1082,6 +1103,9 @@ SWIFT_CLASS("_TtC5GSSDK25GSKReadableCodeFlowResult")
1082
1103
  /// </li>
1083
1104
  /// </ul>
1084
1105
  @property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull dictionary;
1106
+ /// Returns a JSON representation of the result.
1107
+ /// See <code>dictionary</code> for an explanation of the JSON data’s structure.
1108
+ - (NSString * _Nonnull)json SWIFT_WARN_UNUSED_RESULT;
1085
1109
  @end
1086
1110
 
1087
1111
  typedef SWIFT_ENUM(NSInteger, GSKReceiptCategory, open) {
@@ -1208,15 +1232,19 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
1208
1232
  - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1209
1233
  @end
1210
1234
 
1235
+ @interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
1236
+ - (BOOL)validate:(NSError * _Nullable * _Nullable)error;
1237
+ @end
1238
+
1211
1239
  @interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
1212
1240
  /// Create a configuration from a dictionary.
1213
1241
  /// This is used for interfacing with cross-platform plugins but shouldn’t
1214
1242
  /// be used in native projects.
1215
1243
  + (nullable instancetype)configurationWithDictionary:(NSDictionary * _Nonnull)dictionary error:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT;
1216
- @end
1217
-
1218
- @interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
1219
- - (BOOL)validate:(NSError * _Nullable * _Nullable)error;
1244
+ /// Create a configuration from JSON data.
1245
+ /// This is used for interfacing with cross-platform plugins but shouldn’t
1246
+ /// be used in native projects.
1247
+ + (nullable instancetype)configurationWithJSON:(NSString * _Nonnull)json error:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT;
1220
1248
  @end
1221
1249
 
1222
1250
  /// Enum that defines various errors that can occur during a scan flow.
@@ -1322,9 +1350,13 @@ SWIFT_CLASS("_TtC5GSSDK17GSKScanFlowResult")
1322
1350
 
1323
1351
  @interface GSKScanFlowResult (SWIFT_EXTENSION(GSSDK))
1324
1352
  /// A dictionary representation of the result.
1325
- /// Convenient for interfacing with React Native, probably no reason to
1326
- /// use it with native code.
1353
+ /// This is used for interfacing with cross-platform plugins but shouldn’t
1354
+ /// be used in native projects.
1327
1355
  @property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull dictionary;
1356
+ /// Return a JSON representation of the result.
1357
+ /// This is used for interfacing with cross-platform plugins but shouldn’t
1358
+ /// be used in native projects.
1359
+ - (NSString * _Nonnull)json SWIFT_WARN_UNUSED_RESULT;
1328
1360
  @end
1329
1361
 
1330
1362
  @class GSKScanFlowStructuredDataResult;