@thegrizzlylabs/react-native-genius-scan 5.0.0-beta4 → 5.0.0-beta6
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 +29 -6
- 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 +1205 -350
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +30 -1
- 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 +30 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/PhoneNumberKit_PhoneNumberKit.bundle/PrivacyInfo.xcprivacy +14 -0
- 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 +58 -12
- 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 +1205 -350
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +30 -1
- 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 +30 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +1205 -350
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +30 -1
- 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 +30 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/PhoneNumberKit_PhoneNumberKit.bundle/PrivacyInfo.xcprivacy +14 -0
- package/package.json +1 -1
|
@@ -113,6 +113,17 @@ extension GSSDK.GSKPDFDocument {
|
|
|
113
113
|
@objc public init(hocr: Swift.String?)
|
|
114
114
|
@objc deinit
|
|
115
115
|
}
|
|
116
|
+
@objc @_inheritsConvenienceInitializers @objcMembers final public class GSKTextLayoutToTextConverter : ObjectiveC.NSObject {
|
|
117
|
+
@objc final public func convert(_ textLayout: GSSDK.GSKTextLayout) throws -> GSSDK.GSKTextLayoutToTextConverterResult
|
|
118
|
+
@objc override dynamic public init()
|
|
119
|
+
@objc deinit
|
|
120
|
+
}
|
|
121
|
+
@objc @_hasMissingDesignatedInitializers @objcMembers final public class GSKTextLayoutToTextConverterResult : ObjectiveC.NSObject {
|
|
122
|
+
@objc final public let text: Swift.String
|
|
123
|
+
@objc final public let averageWordConfidence: Swift.Int
|
|
124
|
+
@objc final public let wordCount: Swift.Int
|
|
125
|
+
@objc deinit
|
|
126
|
+
}
|
|
116
127
|
public enum GSSDKAsset {
|
|
117
128
|
public static let artboardExpand: GSSDK.GSSDKImages
|
|
118
129
|
public static let chargingFlashSync: GSSDK.GSSDKImages
|
|
@@ -215,9 +226,10 @@ public enum GSSDKStrings {
|
|
|
215
226
|
public static let gssdkSettings: Swift.String
|
|
216
227
|
}
|
|
217
228
|
}
|
|
218
|
-
@objc @
|
|
229
|
+
@objc @objcMembers final public class GSKOCRResult : ObjectiveC.NSObject {
|
|
219
230
|
@objc final public let text: Swift.String
|
|
220
231
|
@objc final public let textLayout: GSSDK.GSKTextLayout
|
|
232
|
+
@objc public init(text: Swift.String, textLayout: GSSDK.GSKTextLayout)
|
|
221
233
|
@objc deinit
|
|
222
234
|
}
|
|
223
235
|
@objc @_hasMissingDesignatedInitializers @objcMembers final public class GSKOCRConfiguration : ObjectiveC.NSObject {
|
|
@@ -232,6 +244,23 @@ public enum GSSDKStrings {
|
|
|
232
244
|
#endif
|
|
233
245
|
@objc deinit
|
|
234
246
|
}
|
|
247
|
+
public struct GSKOCRLanguage {
|
|
248
|
+
public static var allLanguages: [GSSDK.GSKOCRLanguage]
|
|
249
|
+
public let tag: Swift.String
|
|
250
|
+
public let displayName: Swift.String
|
|
251
|
+
}
|
|
252
|
+
extension GSSDK.GSKOCRLanguage : Swift.CustomStringConvertible {
|
|
253
|
+
public var description: Swift.String {
|
|
254
|
+
get
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
extension GSSDK.GSKOCRLanguage : Swift.Equatable, Swift.Hashable {
|
|
258
|
+
public static func == (lhs: GSSDK.GSKOCRLanguage, rhs: GSSDK.GSKOCRLanguage) -> Swift.Bool
|
|
259
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
260
|
+
public var hashValue: Swift.Int {
|
|
261
|
+
get
|
|
262
|
+
}
|
|
263
|
+
}
|
|
235
264
|
@objc extension GSSDK.GSKView {
|
|
236
265
|
@objc @_Concurrency.MainActor(unsafe) dynamic public func startSnapAnimation(withDuration duration: Foundation.TimeInterval)
|
|
237
266
|
@objc @_Concurrency.MainActor(unsafe) dynamic public func endSnapAnimation()
|
|
Binary file
|
|
@@ -113,6 +113,17 @@ extension GSSDK.GSKPDFDocument {
|
|
|
113
113
|
@objc public init(hocr: Swift.String?)
|
|
114
114
|
@objc deinit
|
|
115
115
|
}
|
|
116
|
+
@objc @_inheritsConvenienceInitializers @objcMembers final public class GSKTextLayoutToTextConverter : ObjectiveC.NSObject {
|
|
117
|
+
@objc final public func convert(_ textLayout: GSSDK.GSKTextLayout) throws -> GSSDK.GSKTextLayoutToTextConverterResult
|
|
118
|
+
@objc override dynamic public init()
|
|
119
|
+
@objc deinit
|
|
120
|
+
}
|
|
121
|
+
@objc @_hasMissingDesignatedInitializers @objcMembers final public class GSKTextLayoutToTextConverterResult : ObjectiveC.NSObject {
|
|
122
|
+
@objc final public let text: Swift.String
|
|
123
|
+
@objc final public let averageWordConfidence: Swift.Int
|
|
124
|
+
@objc final public let wordCount: Swift.Int
|
|
125
|
+
@objc deinit
|
|
126
|
+
}
|
|
116
127
|
public enum GSSDKAsset {
|
|
117
128
|
public static let artboardExpand: GSSDK.GSSDKImages
|
|
118
129
|
public static let chargingFlashSync: GSSDK.GSSDKImages
|
|
@@ -215,9 +226,10 @@ public enum GSSDKStrings {
|
|
|
215
226
|
public static let gssdkSettings: Swift.String
|
|
216
227
|
}
|
|
217
228
|
}
|
|
218
|
-
@objc @
|
|
229
|
+
@objc @objcMembers final public class GSKOCRResult : ObjectiveC.NSObject {
|
|
219
230
|
@objc final public let text: Swift.String
|
|
220
231
|
@objc final public let textLayout: GSSDK.GSKTextLayout
|
|
232
|
+
@objc public init(text: Swift.String, textLayout: GSSDK.GSKTextLayout)
|
|
221
233
|
@objc deinit
|
|
222
234
|
}
|
|
223
235
|
@objc @_hasMissingDesignatedInitializers @objcMembers final public class GSKOCRConfiguration : ObjectiveC.NSObject {
|
|
@@ -232,6 +244,23 @@ public enum GSSDKStrings {
|
|
|
232
244
|
#endif
|
|
233
245
|
@objc deinit
|
|
234
246
|
}
|
|
247
|
+
public struct GSKOCRLanguage {
|
|
248
|
+
public static var allLanguages: [GSSDK.GSKOCRLanguage]
|
|
249
|
+
public let tag: Swift.String
|
|
250
|
+
public let displayName: Swift.String
|
|
251
|
+
}
|
|
252
|
+
extension GSSDK.GSKOCRLanguage : Swift.CustomStringConvertible {
|
|
253
|
+
public var description: Swift.String {
|
|
254
|
+
get
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
extension GSSDK.GSKOCRLanguage : Swift.Equatable, Swift.Hashable {
|
|
258
|
+
public static func == (lhs: GSSDK.GSKOCRLanguage, rhs: GSSDK.GSKOCRLanguage) -> Swift.Bool
|
|
259
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
260
|
+
public var hashValue: Swift.Int {
|
|
261
|
+
get
|
|
262
|
+
}
|
|
263
|
+
}
|
|
235
264
|
@objc extension GSSDK.GSKView {
|
|
236
265
|
@objc @_Concurrency.MainActor(unsafe) dynamic public func startSnapAnimation(withDuration duration: Foundation.TimeInterval)
|
|
237
266
|
@objc @_Concurrency.MainActor(unsafe) dynamic public func endSnapAnimation()
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>NSPrivacyTracking</key>
|
|
6
|
+
<false/>
|
|
7
|
+
<key>NSPrivacyTrackingDomains</key>
|
|
8
|
+
<array/>
|
|
9
|
+
<key>NSPrivacyCollectedDataTypes</key>
|
|
10
|
+
<array/>
|
|
11
|
+
<key>NSPrivacyAccessedAPITypes</key>
|
|
12
|
+
<array/>
|
|
13
|
+
</dict>
|
|
14
|
+
</plist>
|
|
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
|
|
@@ -625,15 +625,15 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
|
|
|
625
625
|
|
|
626
626
|
|
|
627
627
|
@interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
628
|
-
|
|
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
|
-
|
|
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
|
|
@@ -1310,7 +1333,6 @@ SWIFT_CLASS("_TtC5GSSDK6GSKOCR")
|
|
|
1310
1333
|
- (nonnull instancetype)init;
|
|
1311
1334
|
/// Recognize the text in the provided image
|
|
1312
1335
|
/// This call is synchronous an can take some time so it’s advised to call it on background thread.
|
|
1313
|
-
/// @return a GSKOCRResult object containing the result of the text recognition.
|
|
1314
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.
|
|
1315
1337
|
///
|
|
1316
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.
|
|
@@ -1347,6 +1369,7 @@ SWIFT_CLASS("_TtC5GSSDK12GSKOCRResult")
|
|
|
1347
1369
|
@property (nonatomic, readonly, copy) NSString * _Nonnull text;
|
|
1348
1370
|
/// The recognized text, as a structured text layout.
|
|
1349
1371
|
@property (nonatomic, readonly, strong) GSKTextLayout * _Nonnull textLayout;
|
|
1372
|
+
- (nonnull instancetype)initWithText:(NSString * _Nonnull)text textLayout:(GSKTextLayout * _Nonnull)textLayout OBJC_DESIGNATED_INITIALIZER;
|
|
1350
1373
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1351
1374
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1352
1375
|
@end
|
|
@@ -1565,15 +1588,15 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
|
|
|
1565
1588
|
|
|
1566
1589
|
|
|
1567
1590
|
@interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
1568
|
-
|
|
1569
|
-
/// This is particularly useful for interfacing with React Native but shouldn’t
|
|
1570
|
-
/// be used in native projects.
|
|
1571
|
-
+ (nullable instancetype)configurationWithDictionary:(NSDictionary * _Nonnull)dictionary error:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT;
|
|
1591
|
+
- (BOOL)validate:(NSError * _Nullable * _Nullable)error;
|
|
1572
1592
|
@end
|
|
1573
1593
|
|
|
1574
1594
|
|
|
1575
1595
|
@interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
|
|
1576
|
-
|
|
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;
|
|
1577
1600
|
@end
|
|
1578
1601
|
|
|
1579
1602
|
|
|
@@ -1825,6 +1848,29 @@ SWIFT_CLASS("_TtC5GSSDK13GSKTextLayout")
|
|
|
1825
1848
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1826
1849
|
@end
|
|
1827
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
|
+
|
|
1828
1874
|
|
|
1829
1875
|
SWIFT_CLASS("_TtC5GSSDK25GSKUIBackgroundProcessing")
|
|
1830
1876
|
@interface GSKUIBackgroundProcessing : NSObject
|