@thegrizzlylabs/cordova-plugin-genius-scan 5.7.0 → 5.8.0

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 (84) hide show
  1. package/README.md +3 -0
  2. package/package.json +1 -1
  3. package/plugin.xml +2 -2
  4. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Assets.car +0 -0
  5. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
  6. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKProcessingConfiguration.h +12 -0
  7. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKProcessingResult.h +6 -0
  8. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKReadabilityConfiguration.h +30 -0
  9. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKReadabilityLevel.h +23 -0
  10. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKReadabilityResult.h +26 -0
  11. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +7 -1
  12. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK.h +3 -0
  13. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Info.plist +0 -0
  14. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.abi.json +593 -100
  15. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +8 -2
  16. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  17. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftinterface +8 -2
  18. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ar.lproj/GSSDK.strings +0 -0
  19. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/da.lproj/GSSDK.strings +0 -0
  20. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/de.lproj/GSSDK.strings +0 -0
  21. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/en.lproj/GSSDK.strings +0 -0
  22. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/es.lproj/GSSDK.strings +0 -0
  23. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
  24. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/he.lproj/GSSDK.strings +0 -0
  25. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/hu.lproj/GSSDK.strings +0 -0
  26. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/id.lproj/GSSDK.strings +0 -0
  27. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/it.lproj/GSSDK.strings +0 -0
  28. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ja.lproj/GSSDK.strings +0 -0
  29. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ko.lproj/GSSDK.strings +0 -0
  30. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/nl.lproj/GSSDK.strings +0 -0
  31. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/pl.lproj/GSSDK.strings +0 -0
  32. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/pt-BR.lproj/GSSDK.strings +0 -0
  33. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ru.lproj/GSSDK.strings +0 -0
  34. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/sv.lproj/GSSDK.strings +0 -0
  35. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/tr.lproj/GSSDK.strings +0 -0
  36. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/vi.lproj/GSSDK.strings +0 -0
  37. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/zh-Hans.lproj/GSSDK.strings +0 -0
  38. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/zh-Hant.lproj/GSSDK.strings +0 -0
  39. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/dSYMs/GSSDK.framework.dSYM/Contents/Info.plist +2 -2
  40. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/dSYMs/GSSDK.framework.dSYM/Contents/Resources/DWARF/GSSDK +0 -0
  41. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64/dSYMs/GSSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/GSSDK.yml +4214 -4172
  42. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Assets.car +0 -0
  43. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK +0 -0
  44. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKProcessingConfiguration.h +12 -0
  45. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKProcessingResult.h +6 -0
  46. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKReadabilityConfiguration.h +30 -0
  47. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKReadabilityLevel.h +23 -0
  48. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKReadabilityResult.h +26 -0
  49. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +14 -2
  50. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK.h +3 -0
  51. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Info.plist +0 -0
  52. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +593 -100
  53. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +8 -2
  54. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  55. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +8 -2
  56. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +593 -100
  57. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +8 -2
  58. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  59. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +8 -2
  60. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ar.lproj/GSSDK.strings +0 -0
  61. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/da.lproj/GSSDK.strings +0 -0
  62. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/de.lproj/GSSDK.strings +0 -0
  63. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/en.lproj/GSSDK.strings +0 -0
  64. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/es.lproj/GSSDK.strings +0 -0
  65. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
  66. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/he.lproj/GSSDK.strings +0 -0
  67. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/hu.lproj/GSSDK.strings +0 -0
  68. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/id.lproj/GSSDK.strings +0 -0
  69. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/it.lproj/GSSDK.strings +0 -0
  70. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ja.lproj/GSSDK.strings +0 -0
  71. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ko.lproj/GSSDK.strings +0 -0
  72. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/nl.lproj/GSSDK.strings +0 -0
  73. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/pl.lproj/GSSDK.strings +0 -0
  74. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/pt-BR.lproj/GSSDK.strings +0 -0
  75. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ru.lproj/GSSDK.strings +0 -0
  76. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/sv.lproj/GSSDK.strings +0 -0
  77. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/tr.lproj/GSSDK.strings +0 -0
  78. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/vi.lproj/GSSDK.strings +0 -0
  79. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/zh-Hans.lproj/GSSDK.strings +0 -0
  80. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/zh-Hant.lproj/GSSDK.strings +0 -0
  81. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDK.framework.dSYM/Contents/Info.plist +2 -2
  82. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDK.framework.dSYM/Contents/Resources/DWARF/GSSDK +0 -0
  83. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/GSSDK.yml +4211 -4169
  84. package/src/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/GSSDK.framework.dSYM/Contents/Resources/Relocations/x86_64/GSSDK.yml +4150 -4108
package/README.md CHANGED
@@ -134,6 +134,7 @@ The method `scanWithConfiguration` takes a `configuration` parameter which can t
134
134
  - `outputFormats`: an array with the formats in which the OCR result is made available in the ScanFlow result (defaults to all formats). Possible formats are `rawText`, `hOCR` and `textLayerInPDF`.
135
135
  - `structuredData`: an array of the structured data you want to extract. E.g.: `['receipt', 'businessCard']`. Possible values are `receipt`, `readableCode`, `bankDetails` (iOS only), `businessCard` (iOS only).
136
136
  - `structuredDataReadableCodeTypes`: an array of the readable code types to extract, e.g. `['qr', 'code39']`. Possible values are `aztec`, `code39`, `code93`, `code128`, `dataMatrix`, `ean8`, `ean13`, `itf`, `pdf417`, `qr`, `upca` (Android only), `upce`, `codabar` (iOS 15+ only), `gs1DataBar` (iOS 15+ only), `microPDF417` (iOS 15+ only), `microQR` (iOS 15+ only), `msiPlessey` (iOS 15+ only).
137
+ - `requiredReadabilityLevel`: the required readability level below which a warning will be displayed to the user. Possible values are `lowest`, `low`, `medium`, `high`, `highest` (default to `lowest`, which means the warning will never be displayed).
137
138
 
138
139
  It returns a promise with `result` object containing:
139
140
 
@@ -146,6 +147,8 @@ It returns a promise with `result` object containing:
146
147
  - `hocrTextLayout`: the recognized text in [hOCR](https://en.wikipedia.org/wiki/HOCR) format (with position, style…)
147
148
  - `structuredData`: the result of the structured data extraction. A subdictionary will be present for each type of structured data detected by the scan flow.
148
149
 
150
+ An implicit API contract is that you have to take ownership of the resulting files referenced by the `result` object. You are responsible for moving them to the appropriate place and deleting them if you don’t need them anymore.
151
+
149
152
  ### Available filters
150
153
 
151
154
  The ScanFlow offers a variety of filters to enhance the appearance of different kinds of documents.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thegrizzlylabs/cordova-plugin-genius-scan",
3
- "version": "5.7.0",
3
+ "version": "5.8.0",
4
4
  "description": "Cordova Plugin for Genius Scan SDK",
5
5
  "author": "TheGrizzlyLabs <sdk@thegrizzlylabs.com> (https://www.thegrizzlylabs.com/)",
6
6
  "homepage": "https://geniusscansdk.com/",
package/plugin.xml CHANGED
@@ -1,5 +1,5 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <plugin id="@thegrizzlylabs/cordova-plugin-genius-scan" version="5.7.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
2
+ <plugin id="@thegrizzlylabs/cordova-plugin-genius-scan" version="5.8.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
3
3
  <name>Genius Scan</name>
4
4
  <js-module name="GeniusScan" src="www/GeniusScan.js">
5
5
  <clobbers target="cordova.plugins.GeniusScan" />
@@ -13,7 +13,7 @@
13
13
  <config-file parent="/manifest/application" target="AndroidManifest.xml" />
14
14
  <source-file src="src/android/GeniusScan.java" target-dir="src/com/geniusscansdk/cordova" />
15
15
  <framework custom="true" src="src/android/build.gradle" type="gradleReference" />
16
- <framework src="com.geniusscansdk:gssdk:5.7.0"/>
16
+ <framework src="com.geniusscansdk:gssdk:5.8.0"/>
17
17
  </platform>
18
18
 
19
19
  <platform name="ios">
@@ -13,6 +13,7 @@
13
13
  @class GSKEnhancementConfiguration;
14
14
  @class GSKRotationConfiguration;
15
15
  @class GSKOutputConfiguration;
16
+ @class GSKReadabilityConfiguration;
16
17
 
17
18
  NS_ASSUME_NONNULL_BEGIN
18
19
 
@@ -27,6 +28,14 @@ NS_ASSUME_NONNULL_BEGIN
27
28
  curvatureCorrectionConfiguration:(GSKCurvatureCorrectionConfiguration *)curvatureCorrectionConfiguration
28
29
  enhancementConfiguration:(GSKEnhancementConfiguration *)enhancementConfiguration
29
30
  rotationConfiguration:(GSKRotationConfiguration *)rotationConfiguration
31
+ outputConfiguration:(GSKOutputConfiguration *)outputConfiguration
32
+ __deprecated_msg("Please pass a value for the 'readabilityConfiguration' parameter");
33
+
34
+ + (instancetype)configurationWithPerspectiveCorrectionConfiguration:(GSKPerspectiveCorrectionConfiguration *)perspectiveCorrectionConfiguration
35
+ curvatureCorrectionConfiguration:(GSKCurvatureCorrectionConfiguration *)curvatureCorrectionConfiguration
36
+ enhancementConfiguration:(GSKEnhancementConfiguration *)enhancementConfiguration
37
+ rotationConfiguration:(GSKRotationConfiguration *)rotationConfiguration
38
+ readabilityConfiguration:(GSKReadabilityConfiguration *)readabilityConfiguration
30
39
  outputConfiguration:(GSKOutputConfiguration *)outputConfiguration;
31
40
 
32
41
  /**
@@ -46,6 +55,9 @@ NS_ASSUME_NONNULL_BEGIN
46
55
  /// The rotation configuration. The rotation will be applied after all the other processing.
47
56
  @property (nonatomic, strong, readonly) GSKRotationConfiguration *rotationConfiguration;
48
57
 
58
+ /// The configuration used for the readability detection feature.
59
+ @property (nonatomic, strong, readonly) GSKReadabilityConfiguration *readabilityConfiguration;
60
+
49
61
  /// Configures the output format of the processing.
50
62
  @property (nonatomic, strong, readonly) GSKOutputConfiguration *outputConfiguration;
51
63
 
@@ -13,6 +13,7 @@
13
13
 
14
14
  @class GSKQuadrangle;
15
15
  @class GSKFilterConfiguration;
16
+ @class GSKReadabilityResult;
16
17
 
17
18
  NS_ASSUME_NONNULL_BEGIN
18
19
 
@@ -51,6 +52,11 @@ NS_ASSUME_NONNULL_BEGIN
51
52
  */
52
53
  @property (nonatomic, assign, readonly) GSKRotation appliedRotation;
53
54
 
55
+ /// The result of determining the scan's readability score, which is based on how legible the document's text is. A blurrier document
56
+ /// will have a lower readability score. Only assigned if the `GSKProcessingConfiguration` that was used for processing had its
57
+ /// `isReadabilityEnabled` property set to `YES`, always `nil` otherwise.
58
+ @property (nonatomic, strong, nullable, readonly) GSKReadabilityResult *readabilityResult;
59
+
54
60
  @end
55
61
 
56
62
  NS_ASSUME_NONNULL_END
@@ -0,0 +1,30 @@
1
+ //
2
+ // Genius Scan SDK
3
+ //
4
+ // Copyright 2010-2020 The Grizzly Labs
5
+ //
6
+ // Subject to the Genius Scan SDK Licensing Agreement
7
+ // sdk@thegrizzlylabs.com
8
+ //
9
+
10
+ #import <Foundation/Foundation.h>
11
+
12
+ NS_ASSUME_NONNULL_BEGIN
13
+
14
+ /// Configuration type used to determine whether the readability detection feature should be enabled.
15
+ @interface GSKReadabilityConfiguration : NSObject
16
+
17
+ /// Return the default readability configuration.
18
+ + (instancetype)defaultConfiguration NS_SWIFT_NAME(default());
19
+ /// Return a configuration that conditionally enables readability detection.
20
+ + (instancetype)enabledConfiguration:(BOOL)isEnabled NS_SWIFT_NAME(enabled(_:));
21
+ /// Return a configuration that always disables readability detection.
22
+ + (instancetype)disabledConfiguration NS_SWIFT_NAME(disabled());
23
+
24
+ /// Whether the SDK should perform readability detection, and assign a `readabilityLevel` to the
25
+ /// scans it processes.
26
+ @property (nonatomic, assign, readonly) BOOL isEnabled;
27
+
28
+ @end
29
+
30
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,23 @@
1
+ //
2
+ // Genius Scan SDK
3
+ //
4
+ // Copyright 2010-2025 The Grizzly Labs
5
+ //
6
+ // Subject to the Genius Scan SDK Licensing Agreement
7
+ // sdk@thegrizzlylabs.com
8
+ //
9
+
10
+ #ifndef GSKReadabilityLevel_h
11
+ #define GSKReadabilityLevel_h
12
+
13
+ /// Enum describing various readability levels, that correspond to legibility scores when processing
14
+ /// a scanned document.
15
+ typedef NS_CLOSED_ENUM(NSUInteger, GSKReadabilityLevel) {
16
+ GSKReadabilityLevelLowest,
17
+ GSKReadabilityLevelLow,
18
+ GSKReadabilityLevelMedium,
19
+ GSKReadabilityLevelHigh,
20
+ GSKReadabilityLevelHighest,
21
+ };
22
+
23
+ #endif
@@ -0,0 +1,26 @@
1
+ //
2
+ // Genius Scan SDK
3
+ //
4
+ // Copyright 2010-2025 The Grizzly Labs
5
+ //
6
+ // Subject to the Genius Scan SDK Licensing Agreement
7
+ // sdk@thegrizzlylabs.com
8
+ //
9
+
10
+ #import <Foundation/Foundation.h>
11
+ #import "GSKReadabilityLevel.h"
12
+
13
+ NS_ASSUME_NONNULL_BEGIN
14
+
15
+ /// Type that encapsulates the result of determining a scan's readability level.
16
+ @interface GSKReadabilityResult : NSObject
17
+
18
+ /// The readability level that was determined for the scan, which indicates how legible the document is.
19
+ @property (nonatomic, assign, readonly) GSKReadabilityLevel readabilityLevel NS_SWIFT_NAME(level);
20
+
21
+ - (instancetype)init NS_UNAVAILABLE;
22
+ - (instancetype)initWithReadabilityLevel:(GSKReadabilityLevel)readabilityLevel;
23
+
24
+ @end
25
+
26
+ NS_ASSUME_NONNULL_END
@@ -1,6 +1,6 @@
1
1
  #if 0
2
2
  #elif defined(__arm64__) && __arm64__
3
- // Generated by Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
3
+ // Generated by Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
4
4
  #ifndef GSSDK_SWIFT_H
5
5
  #define GSSDK_SWIFT_H
6
6
  #pragma clang diagnostic push
@@ -1013,6 +1013,10 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
1013
1013
  @property (nonatomic) enum GSKScanOrientation defaultScanOrientation;
1014
1014
  /// Any specific kind of post-processing to use. Defaults to <code>.automatic</code>.
1015
1015
  @property (nonatomic) enum GSKScanFlowFilterType defaultFilter;
1016
+ /// The minimum readability level that scanned documents are required to have. If a scan has a lower
1017
+ /// readability level, then a warning will be shown as part of the scanning flow, and the user will be
1018
+ /// prompted to retry the scan in question.
1019
+ @property (nonatomic) GSKReadabilityLevel requiredReadabilityLevel;
1016
1020
  /// Whether to skip showing the post-processing screen. We only recommend
1017
1021
  /// enabling this option when scanning structured data. Generally, you want
1018
1022
  /// the user to visually confirm the quality of each scan.
@@ -1375,6 +1379,8 @@ SWIFT_CLASS("_TtC5GSSDK24GSKStructuredDataReceipt")
1375
1379
  @property (nonatomic, readonly, copy) NSString * _Nullable currency;
1376
1380
  /// Any date that appears on the receipt, if successfully extracted, otherwise <code>nil</code>.
1377
1381
  @property (nonatomic, readonly, copy) NSDate * _Nullable date;
1382
+ /// The VAT number of the merchant, if successfully extracted, otherwise <code>nil</code>.
1383
+ @property (nonatomic, readonly, copy) NSString * _Nullable vatNumber;
1378
1384
  /// The value-added tax (VAT) details.
1379
1385
  /// This property is an array because a receipt may display multiple VAT rates applying to different items
1380
1386
  @property (nonatomic, readonly, copy) NSArray<GSKReceiptVAT *> * _Nonnull vatValues;
@@ -47,3 +47,6 @@ 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/GSKReadabilityLevel.h>
51
+ #import <GSSDK/GSKReadabilityConfiguration.h>
52
+ #import <GSSDK/GSKReadabilityResult.h>