@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.
Files changed (36) hide show
  1. package/README.md +2 -2
  2. package/android/build.gradle +1 -1
  3. package/ios/GSSDK/GSSDK.xcframework/Info.plist +5 -5
  4. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Assets.car +0 -0
  5. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
  6. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKDefaultLogLevel.h +2 -0
  7. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKView.h +4 -2
  8. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +36 -4
  9. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK.h +1 -2
  10. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Info.plist +0 -0
  11. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.abi.json +2086 -595
  12. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +70 -64
  13. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  14. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftinterface +70 -64
  15. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/PhoneNumberKit_GSKPhoneNumberKit.bundle/Info.plist +0 -0
  16. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
  17. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Assets.car +0 -0
  18. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK +0 -0
  19. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKDefaultLogLevel.h +2 -0
  20. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKView.h +4 -2
  21. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +72 -8
  22. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK.h +1 -2
  23. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Info.plist +0 -0
  24. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +2086 -595
  25. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +70 -64
  26. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  27. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +70 -64
  28. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +2086 -595
  29. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +70 -64
  30. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  31. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +70 -64
  32. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/PhoneNumberKit_GSKPhoneNumberKit.bundle/Info.plist +0 -0
  33. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
  34. package/package.json +1 -1
  35. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKCore.h +0 -52
  36. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKCore.h +0 -52
@@ -1,6 +1,6 @@
1
1
  #if 0
2
2
  #elif defined(__arm64__) && __arm64__
3
- // Generated by Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
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
@@ -1438,7 +1470,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSBundle * _
1438
1470
  #endif
1439
1471
 
1440
1472
  #elif defined(__x86_64__) && __x86_64__
1441
- // Generated by Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
1473
+ // Generated by Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
1442
1474
  #ifndef GSSDK_SWIFT_H
1443
1475
  #define GSSDK_SWIFT_H
1444
1476
  #pragma clang diagnostic push
@@ -1480,6 +1512,8 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSBundle * _
1480
1512
  #include <string.h>
1481
1513
  #endif
1482
1514
  #if defined(__cplusplus)
1515
+ #pragma clang diagnostic push
1516
+ #pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
1483
1517
  #if defined(__arm64e__) && __has_include(<ptrauth.h>)
1484
1518
  # include <ptrauth.h>
1485
1519
  #else
@@ -1493,6 +1527,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSBundle * _
1493
1527
  # endif
1494
1528
  #pragma clang diagnostic pop
1495
1529
  #endif
1530
+ #pragma clang diagnostic pop
1496
1531
  #endif
1497
1532
 
1498
1533
  #if !defined(SWIFT_TYPEDEFS)
@@ -1735,6 +1770,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
1735
1770
  #pragma clang diagnostic ignored "-Wunknown-pragmas"
1736
1771
  #pragma clang diagnostic ignored "-Wnullability"
1737
1772
  #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
1773
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
1738
1774
 
1739
1775
  #if __has_attribute(external_source_symbol)
1740
1776
  # pragma push_macro("any")
@@ -1760,6 +1796,33 @@ SWIFT_PROTOCOL("_TtP5GSSDK20CGImageRepresentable_")
1760
1796
 
1761
1797
 
1762
1798
 
1799
+ @class NSString;
1800
+
1801
+ /// Entry point of the SDK. Use this to initialize the SDK with your license key.
1802
+ SWIFT_CLASS("_TtC5GSSDK3GSK")
1803
+ @interface GSK : NSObject
1804
+ /// Returns the Genius Scan SDK version
1805
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull sdkVersion;)
1806
+ + (NSString * _Nonnull)sdkVersion SWIFT_WARN_UNUSED_RESULT;
1807
+ /// Sets the Genius Scan SDK license key with auto-refresh enabled.
1808
+ /// See <code>setLicenseKey:autoRefresh:</code>
1809
+ + (void)setLicenseKey:(NSString * _Nonnull)licenseKey;
1810
+ /// Sets the Genius Scan SDK license key, while optionally enabling auto-refresh.
1811
+ /// 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
1812
+ /// an error if there is a problem with the license key, and you must handle them to ensure you provide a good “degraded” experience.
1813
+ /// 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.
1814
+ /// important:
1815
+ /// This method must be called with a valid license key before any use of the SDK methods.
1816
+ /// \param licenseKey A valid license key. You must publish a new version of the app with an updated license key before the key expires.
1817
+ ///
1818
+ /// \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
1819
+ /// 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
1820
+ /// SDK servers: the current license key, a device-unique UUID, and the current version of the app.
1821
+ ///
1822
+ + (void)setLicenseKey:(NSString * _Nonnull)licenseKey autoRefresh:(BOOL)autoRefresh;
1823
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1824
+ @end
1825
+
1763
1826
  @class AVCaptureDevice;
1764
1827
  @class AVCaptureSession;
1765
1828
  enum GSKCameraSessionFlashStatus : NSInteger;
@@ -1788,6 +1851,8 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSTimeInterval minDu
1788
1851
  @property (nonatomic, readonly) BOOL isTakingPhoto;
1789
1852
  /// Returns false if flash isn’t supported on this device configuration.
1790
1853
  @property (nonatomic, readonly) BOOL supportsFlash;
1854
+ /// Public to be accessible from Objective-C, but should be private otherwise.
1855
+ @property (nonatomic, readonly, strong) dispatch_queue_t _Nullable captureSessionQueue;
1791
1856
  - (nonnull instancetype)initWithConfiguration:(GSKCameraSessionConfiguration * _Nonnull)configuration;
1792
1857
  - (void)pauseSession;
1793
1858
  - (void)resumeSession;
@@ -1868,7 +1933,6 @@ typedef SWIFT_ENUM(NSInteger, GSKCameraSessionFlashStatus, open) {
1868
1933
 
1869
1934
  @class NSCoder;
1870
1935
  @protocol UIViewControllerTransitionCoordinator;
1871
- @class NSString;
1872
1936
  @class NSBundle;
1873
1937
 
1874
1938
  /// A ready-to-use camera interface for scanning documents.
@@ -1891,12 +1955,12 @@ SWIFT_CLASS("_TtC5GSSDK23GSKCameraViewController")
1891
1955
  @end
1892
1956
 
1893
1957
 
1958
+
1894
1959
  @interface GSKCameraViewController (SWIFT_EXTENSION(GSSDK))
1895
1960
  /// Snap the photo
1896
1961
  - (void)takePhoto;
1897
1962
  @end
1898
1963
 
1899
-
1900
1964
  @class GSKScan;
1901
1965
  @class GSKQuadrangle;
1902
1966
 
@@ -2478,7 +2542,6 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
2478
2542
  @end
2479
2543
 
2480
2544
 
2481
-
2482
2545
  @interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
2483
2546
  /// Create a configuration from a dictionary.
2484
2547
  /// This is particularly useful for interfacing with React Native but shouldn’t
@@ -2492,6 +2555,7 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
2492
2555
  - (BOOL)validate:(NSError * _Nullable * _Nullable)error;
2493
2556
  @end
2494
2557
 
2558
+
2495
2559
  /// Enum that defines various errors that can occur during a scan flow.
2496
2560
  typedef SWIFT_ENUM(NSInteger, GSKScanFlowError, open) {
2497
2561
  /// 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>