@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.
- package/android/build.gradle +1 -1
- package/ios/GSSDK/GSSDK.xcframework/Info.plist +5 -5
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +32 -13
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK.h +1 -0
- 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 +1277 -421
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +32 -3
- 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 +32 -3
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/PhoneNumberKit_PhoneNumberKit.bundle/PhoneNumberMetadata.json +1 -1
- 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/GSSDK-Swift.h +64 -26
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK.h +1 -0
- 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 +1277 -421
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +32 -3
- 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 +32 -3
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +1277 -421
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +32 -3
- 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 +32 -3
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/PhoneNumberKit_PhoneNumberKit.bundle/PhoneNumberMetadata.json +1 -1
- package/package.json +1 -1
|
Binary file
|
package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h
CHANGED
|
@@ -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)
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
@@ -1314,7 +1333,6 @@ SWIFT_CLASS("_TtC5GSSDK6GSKOCR")
|
|
|
1314
1333
|
- (nonnull instancetype)init;
|
|
1315
1334
|
/// Recognize the text in the provided image
|
|
1316
1335
|
/// This call is synchronous an can take some time so it’s advised to call it on background thread.
|
|
1317
|
-
/// @return a GSKOCRResult object containing the result of the text recognition.
|
|
1318
1336
|
/// \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.
|
|
1319
1337
|
///
|
|
1320
1338
|
/// \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.
|
|
@@ -1351,6 +1369,7 @@ SWIFT_CLASS("_TtC5GSSDK12GSKOCRResult")
|
|
|
1351
1369
|
@property (nonatomic, readonly, copy) NSString * _Nonnull text;
|
|
1352
1370
|
/// The recognized text, as a structured text layout.
|
|
1353
1371
|
@property (nonatomic, readonly, strong) GSKTextLayout * _Nonnull textLayout;
|
|
1372
|
+
- (nonnull instancetype)initWithText:(NSString * _Nonnull)text textLayout:(GSKTextLayout * _Nonnull)textLayout OBJC_DESIGNATED_INITIALIZER;
|
|
1354
1373
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1355
1374
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1356
1375
|
@end
|
|
@@ -1465,8 +1484,6 @@ typedef SWIFT_ENUM(NSInteger, GSKReceiptCategory, open) {
|
|
|
1465
1484
|
};
|
|
1466
1485
|
|
|
1467
1486
|
@class GSKScanFlowConfiguration;
|
|
1468
|
-
@class UIViewController;
|
|
1469
|
-
@class GSKScanFlowResult;
|
|
1470
1487
|
|
|
1471
1488
|
/// A high-level scanner module.
|
|
1472
1489
|
/// You present it and when the user is done, you obtain a result object containing the scanned documents.
|
|
@@ -1474,14 +1491,12 @@ typedef SWIFT_ENUM(NSInteger, GSKReceiptCategory, open) {
|
|
|
1474
1491
|
SWIFT_CLASS("_TtC5GSSDK11GSKScanFlow")
|
|
1475
1492
|
@interface GSKScanFlow : NSObject
|
|
1476
1493
|
- (nonnull instancetype)initWithConfiguration:(GSKScanFlowConfiguration * _Nonnull)configuration OBJC_DESIGNATED_INITIALIZER;
|
|
1477
|
-
/// Present the scan flow. Asynchronously returns a <code>GSKScanFlowResult</code> object, which
|
|
1478
|
-
/// gives you access to the scanned documents, or throws any error that was encountered.
|
|
1479
|
-
/// @param viewController The view controller to present the scan flow from.
|
|
1480
|
-
- (void)resultByStartingFromViewController:(UIViewController * _Nonnull)viewController completionHandler:(void (^ _Nonnull)(GSKScanFlowResult * _Nullable, NSError * _Nullable))completionHandler;
|
|
1481
1494
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1482
1495
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1483
1496
|
@end
|
|
1484
1497
|
|
|
1498
|
+
@class UIViewController;
|
|
1499
|
+
@class GSKScanFlowResult;
|
|
1485
1500
|
|
|
1486
1501
|
@interface GSKScanFlow (SWIFT_EXTENSION(GSSDK))
|
|
1487
1502
|
/// Instantiates a <code>GSKScanFlow</code> instance with the provided configuration.
|
|
@@ -1493,7 +1508,7 @@ SWIFT_CLASS("_TtC5GSSDK11GSKScanFlow")
|
|
|
1493
1508
|
/// thread upon completion of the scan flow. It receives a <code>GSKScanFlowResult</code> object as
|
|
1494
1509
|
/// a parameter. This object gives you access to the scanned documents.
|
|
1495
1510
|
/// @param errorBlock A block/closure called if an error was encountered.
|
|
1496
|
-
- (void)
|
|
1511
|
+
- (void)startFromViewController:(UIViewController * _Nonnull)viewController onSuccess:(void (^ _Nonnull)(GSKScanFlowResult * _Nonnull))completionBlock failure:(void (^ _Nonnull)(NSError * _Nonnull))errorBlock;
|
|
1497
1512
|
@end
|
|
1498
1513
|
|
|
1499
1514
|
|
|
@@ -1573,15 +1588,15 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
|
|
|
1573
1588
|
|
|
1574
1589
|
|
|
1575
1590
|
@interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
1576
|
-
|
|
1577
|
-
/// This is particularly useful for interfacing with React Native but shouldn’t
|
|
1578
|
-
/// be used in native projects.
|
|
1579
|
-
+ (nullable instancetype)configurationWithDictionary:(NSDictionary * _Nonnull)dictionary error:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT;
|
|
1591
|
+
- (BOOL)validate:(NSError * _Nullable * _Nullable)error;
|
|
1580
1592
|
@end
|
|
1581
1593
|
|
|
1582
1594
|
|
|
1583
1595
|
@interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
1584
|
-
|
|
1596
|
+
/// Create a configuration from a dictionary.
|
|
1597
|
+
/// This is particularly useful for interfacing with React Native but shouldn’t
|
|
1598
|
+
/// be used in native projects.
|
|
1599
|
+
+ (nullable instancetype)configurationWithDictionary:(NSDictionary * _Nonnull)dictionary error:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT;
|
|
1585
1600
|
@end
|
|
1586
1601
|
|
|
1587
1602
|
|
|
@@ -1833,6 +1848,29 @@ SWIFT_CLASS("_TtC5GSSDK13GSKTextLayout")
|
|
|
1833
1848
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1834
1849
|
@end
|
|
1835
1850
|
|
|
1851
|
+
@class GSKTextLayoutToTextConverterResult;
|
|
1852
|
+
|
|
1853
|
+
SWIFT_CLASS("_TtC5GSSDK28GSKTextLayoutToTextConverter")
|
|
1854
|
+
@interface GSKTextLayoutToTextConverter : NSObject
|
|
1855
|
+
- (GSKTextLayoutToTextConverterResult * _Nullable)convert:(GSKTextLayout * _Nonnull)textLayout error:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT;
|
|
1856
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
1857
|
+
@end
|
|
1858
|
+
|
|
1859
|
+
|
|
1860
|
+
SWIFT_CLASS("_TtC5GSSDK34GSKTextLayoutToTextConverterResult")
|
|
1861
|
+
@interface GSKTextLayoutToTextConverterResult : NSObject
|
|
1862
|
+
/// The text reconstructed from the text layout.
|
|
1863
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull text;
|
|
1864
|
+
/// The average word confidence of the recognized text.
|
|
1865
|
+
/// A value between 0 and 100
|
|
1866
|
+
@property (nonatomic, readonly) NSInteger averageWordConfidence;
|
|
1867
|
+
/// The number of words in the recognized text.
|
|
1868
|
+
/// This is the number of words on which the average word confidence has been computed.
|
|
1869
|
+
@property (nonatomic, readonly) NSInteger wordCount;
|
|
1870
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1871
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1872
|
+
@end
|
|
1873
|
+
|
|
1836
1874
|
|
|
1837
1875
|
SWIFT_CLASS("_TtC5GSSDK25GSKUIBackgroundProcessing")
|
|
1838
1876
|
@interface GSKUIBackgroundProcessing : NSObject
|