@thegrizzlylabs/react-native-genius-scan 5.0.0-beta3 → 5.0.0-beta5

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 (25) hide show
  1. package/android/build.gradle +1 -1
  2. package/ios/GSSDK/GSSDK.xcframework/Info.plist +5 -5
  3. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
  4. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +32 -13
  5. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK.h +1 -0
  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 +1277 -421
  8. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +32 -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 +32 -3
  11. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/PhoneNumberKit_PhoneNumberKit.bundle/PhoneNumberMetadata.json +1 -1
  12. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK +0 -0
  13. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +64 -26
  14. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK.h +1 -0
  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 +1277 -421
  17. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +32 -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 +32 -3
  20. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +1277 -421
  21. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +32 -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 +32 -3
  24. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/PhoneNumberKit_PhoneNumberKit.bundle/PhoneNumberMetadata.json +1 -1
  25. package/package.json +1 -1
@@ -41,5 +41,5 @@ rootProject.allprojects {
41
41
 
42
42
  dependencies {
43
43
  implementation 'com.facebook.react:react-native:+'
44
- implementation 'com.geniusscansdk:gssdk:5.0.0-beta3'
44
+ implementation 'com.geniusscansdk:gssdk:5.0.0-beta5'
45
45
  }
@@ -10,15 +10,18 @@
10
10
  <key>DebugSymbolsPath</key>
11
11
  <string>dSYMs</string>
12
12
  <key>LibraryIdentifier</key>
13
- <string>ios-arm64</string>
13
+ <string>ios-arm64_x86_64-simulator</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>
19
20
  </array>
20
21
  <key>SupportedPlatform</key>
21
22
  <string>ios</string>
23
+ <key>SupportedPlatformVariant</key>
24
+ <string>simulator</string>
22
25
  </dict>
23
26
  <dict>
24
27
  <key>BinaryPath</key>
@@ -26,18 +29,15 @@
26
29
  <key>DebugSymbolsPath</key>
27
30
  <string>dSYMs</string>
28
31
  <key>LibraryIdentifier</key>
29
- <string>ios-arm64_x86_64-simulator</string>
32
+ <string>ios-arm64</string>
30
33
  <key>LibraryPath</key>
31
34
  <string>GSSDK.framework</string>
32
35
  <key>SupportedArchitectures</key>
33
36
  <array>
34
37
  <string>arm64</string>
35
- <string>x86_64</string>
36
38
  </array>
37
39
  <key>SupportedPlatform</key>
38
40
  <string>ios</string>
39
- <key>SupportedPlatformVariant</key>
40
- <string>simulator</string>
41
41
  </dict>
42
42
  </array>
43
43
  <key>CFBundlePackageType</key>
@@ -370,7 +370,6 @@ SWIFT_CLASS("_TtC5GSSDK6GSKOCR")
370
370
  - (nonnull instancetype)init;
371
371
  /// Recognize the text in the provided image
372
372
  /// This call is synchronous an can take some time so it’s advised to call it on background thread.
373
- /// @return a GSKOCRResult object containing the result of the text recognition.
374
373
  /// \param imagePath The path of the image to recognize. Ideally the image has been processed in black and white with [GSDK enhanceImage:withPostProcessing:error:] first. If not, set the <code>preprocessed</code> flag on the <code>configuration</code> object to NO.
375
374
  ///
376
375
  /// \param configuration Configuration for the OCR process, in particular the language in which the OCR is performed. Note that you must provided the appropriate trained data.
@@ -407,6 +406,7 @@ SWIFT_CLASS("_TtC5GSSDK12GSKOCRResult")
407
406
  @property (nonatomic, readonly, copy) NSString * _Nonnull text;
408
407
  /// The recognized text, as a structured text layout.
409
408
  @property (nonatomic, readonly, strong) GSKTextLayout * _Nonnull textLayout;
409
+ - (nonnull instancetype)initWithText:(NSString * _Nonnull)text textLayout:(GSKTextLayout * _Nonnull)textLayout OBJC_DESIGNATED_INITIALIZER;
410
410
  - (nonnull instancetype)init SWIFT_UNAVAILABLE;
411
411
  + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
412
412
  @end
@@ -521,8 +521,6 @@ typedef SWIFT_ENUM(NSInteger, GSKReceiptCategory, open) {
521
521
  };
522
522
 
523
523
  @class GSKScanFlowConfiguration;
524
- @class UIViewController;
525
- @class GSKScanFlowResult;
526
524
 
527
525
  /// A high-level scanner module.
528
526
  /// You present it and when the user is done, you obtain a result object containing the scanned documents.
@@ -530,14 +528,12 @@ typedef SWIFT_ENUM(NSInteger, GSKReceiptCategory, open) {
530
528
  SWIFT_CLASS("_TtC5GSSDK11GSKScanFlow")
531
529
  @interface GSKScanFlow : NSObject
532
530
  - (nonnull instancetype)initWithConfiguration:(GSKScanFlowConfiguration * _Nonnull)configuration OBJC_DESIGNATED_INITIALIZER;
533
- /// Present the scan flow. Asynchronously returns a <code>GSKScanFlowResult</code> object, which
534
- /// gives you access to the scanned documents, or throws any error that was encountered.
535
- /// @param viewController The view controller to present the scan flow from.
536
- - (void)resultByStartingFromViewController:(UIViewController * _Nonnull)viewController completionHandler:(void (^ _Nonnull)(GSKScanFlowResult * _Nullable, NSError * _Nullable))completionHandler;
537
531
  - (nonnull instancetype)init SWIFT_UNAVAILABLE;
538
532
  + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
539
533
  @end
540
534
 
535
+ @class UIViewController;
536
+ @class GSKScanFlowResult;
541
537
 
542
538
  @interface GSKScanFlow (SWIFT_EXTENSION(GSSDK))
543
539
  /// Instantiates a <code>GSKScanFlow</code> instance with the provided configuration.
@@ -549,7 +545,7 @@ SWIFT_CLASS("_TtC5GSSDK11GSKScanFlow")
549
545
  /// thread upon completion of the scan flow. It receives a <code>GSKScanFlowResult</code> object as
550
546
  /// a parameter. This object gives you access to the scanned documents.
551
547
  /// @param errorBlock A block/closure called if an error was encountered.
552
- - (void)startFrom:(UIViewController * _Nonnull)viewController onSuccess:(void (^ _Nonnull)(GSKScanFlowResult * _Nonnull))completionBlock failure:(void (^ _Nonnull)(NSError * _Nonnull))errorBlock;
548
+ - (void)startFromViewController:(UIViewController * _Nonnull)viewController onSuccess:(void (^ _Nonnull)(GSKScanFlowResult * _Nonnull))completionBlock failure:(void (^ _Nonnull)(NSError * _Nonnull))errorBlock;
553
549
  @end
554
550
 
555
551
 
@@ -629,15 +625,15 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
629
625
 
630
626
 
631
627
  @interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
632
- /// Create a configuration from a dictionary.
633
- /// This is particularly useful for interfacing with React Native but shouldn’t
634
- /// be used in native projects.
635
- + (nullable instancetype)configurationWithDictionary:(NSDictionary * _Nonnull)dictionary error:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT;
628
+ - (BOOL)validate:(NSError * _Nullable * _Nullable)error;
636
629
  @end
637
630
 
638
631
 
639
632
  @interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
640
- - (BOOL)validate:(NSError * _Nullable * _Nullable)error;
633
+ /// Create a configuration from a dictionary.
634
+ /// This is particularly useful for interfacing with React Native but shouldn’t
635
+ /// be used in native projects.
636
+ + (nullable instancetype)configurationWithDictionary:(NSDictionary * _Nonnull)dictionary error:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT;
641
637
  @end
642
638
 
643
639
 
@@ -889,6 +885,29 @@ SWIFT_CLASS("_TtC5GSSDK13GSKTextLayout")
889
885
  + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
890
886
  @end
891
887
 
888
+ @class GSKTextLayoutToTextConverterResult;
889
+
890
+ SWIFT_CLASS("_TtC5GSSDK28GSKTextLayoutToTextConverter")
891
+ @interface GSKTextLayoutToTextConverter : NSObject
892
+ - (GSKTextLayoutToTextConverterResult * _Nullable)convert:(GSKTextLayout * _Nonnull)textLayout error:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT;
893
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
894
+ @end
895
+
896
+
897
+ SWIFT_CLASS("_TtC5GSSDK34GSKTextLayoutToTextConverterResult")
898
+ @interface GSKTextLayoutToTextConverterResult : NSObject
899
+ /// The text reconstructed from the text layout.
900
+ @property (nonatomic, readonly, copy) NSString * _Nonnull text;
901
+ /// The average word confidence of the recognized text.
902
+ /// A value between 0 and 100
903
+ @property (nonatomic, readonly) NSInteger averageWordConfidence;
904
+ /// The number of words in the recognized text.
905
+ /// This is the number of words on which the average word confidence has been computed.
906
+ @property (nonatomic, readonly) NSInteger wordCount;
907
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
908
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
909
+ @end
910
+
892
911
 
893
912
  SWIFT_CLASS("_TtC5GSSDK25GSKUIBackgroundProcessing")
894
913
  @interface GSKUIBackgroundProcessing : NSObject
@@ -39,3 +39,4 @@ FOUNDATION_EXPORT const unsigned char GSSDKVersionString[];
39
39
  #import <GSSDK/GSKScanFlowStructuredData.h>
40
40
  #import <GSSDK/GSKScanFlowOCROutputFormats.h>
41
41
  #import <GSSDK/GSKScanFlowErrorDomain.h>
42
+ #import <GSSDK/GSKPDFGeneratorError.h>