@thegrizzlylabs/react-native-genius-scan 5.0.0-beta4 → 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 (20) 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/GSSDK-Swift.h +29 -6
  4. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Info.plist +0 -0
  5. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.abi.json +1205 -350
  6. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +30 -1
  7. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  8. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftinterface +30 -1
  9. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK +0 -0
  10. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +58 -12
  11. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Info.plist +0 -0
  12. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +1205 -350
  13. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +30 -1
  14. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  15. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +30 -1
  16. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +1205 -350
  17. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +30 -1
  18. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  19. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +30 -1
  20. 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-beta4'
44
+ implementation 'com.geniusscansdk:gssdk:5.0.0-beta5'
45
45
  }
@@ -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
@@ -625,15 +625,15 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
625
625
 
626
626
 
627
627
  @interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
628
- /// Create a configuration from a dictionary.
629
- /// This is particularly useful for interfacing with React Native but shouldn’t
630
- /// be used in native projects.
631
- + (nullable instancetype)configurationWithDictionary:(NSDictionary * _Nonnull)dictionary error:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT;
628
+ - (BOOL)validate:(NSError * _Nullable * _Nullable)error;
632
629
  @end
633
630
 
634
631
 
635
632
  @interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
636
- - (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;
637
637
  @end
638
638
 
639
639
 
@@ -885,6 +885,29 @@ SWIFT_CLASS("_TtC5GSSDK13GSKTextLayout")
885
885
  + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
886
886
  @end
887
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
+
888
911
 
889
912
  SWIFT_CLASS("_TtC5GSSDK25GSKUIBackgroundProcessing")
890
913
  @interface GSKUIBackgroundProcessing : NSObject