@thegrizzlylabs/react-native-genius-scan 6.0.0 → 6.2.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 (85) hide show
  1. package/README.md +20 -7
  2. package/android/build.gradle +1 -1
  3. package/index.d.ts +15 -0
  4. package/ios/GSSDK/GSSDK.xcframework/Info.plist +5 -9
  5. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Assets.car +0 -0
  6. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/Info.plist +0 -0
  7. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
  8. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKCurvatureCorrectionConfiguration.h +11 -5
  9. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKCurvatureLevel.h +28 -0
  10. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKCurvatureResult.h +26 -0
  11. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKDocumentDetector.h +21 -0
  12. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKProcessingResult.h +6 -0
  13. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +100 -16
  14. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK.h +2 -0
  15. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Info.plist +0 -0
  16. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.abi.json +3667 -2808
  17. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +19 -111
  18. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  19. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftinterface +19 -111
  20. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/module.modulemap +0 -1
  21. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/PhoneNumberKit_GSKPhoneNumberKit.bundle/Info.plist +0 -0
  22. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ar.lproj/GSSDK.strings +0 -0
  23. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/da.lproj/GSSDK.strings +0 -0
  24. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/de.lproj/GSSDK.strings +0 -0
  25. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/en.lproj/GSSDK.strings +0 -0
  26. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/es.lproj/GSSDK.strings +0 -0
  27. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
  28. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/he.lproj/GSSDK.strings +0 -0
  29. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/hu.lproj/GSSDK.strings +0 -0
  30. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/id.lproj/GSSDK.strings +0 -0
  31. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/it.lproj/GSSDK.strings +0 -0
  32. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ja.lproj/GSSDK.strings +0 -0
  33. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ko.lproj/GSSDK.strings +0 -0
  34. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/nl.lproj/GSSDK.strings +0 -0
  35. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/pl.lproj/GSSDK.strings +0 -0
  36. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/pt-BR.lproj/GSSDK.strings +0 -0
  37. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ru.lproj/GSSDK.strings +0 -0
  38. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/sv.lproj/GSSDK.strings +0 -0
  39. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/tr.lproj/GSSDK.strings +0 -0
  40. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/vi.lproj/GSSDK.strings +0 -0
  41. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/zh-Hans.lproj/GSSDK.strings +0 -0
  42. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/zh-Hant.lproj/GSSDK.strings +0 -0
  43. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Assets.car +0 -0
  44. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/Info.plist +0 -0
  45. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK +0 -0
  46. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKCurvatureCorrectionConfiguration.h +11 -5
  47. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKCurvatureLevel.h +28 -0
  48. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKCurvatureResult.h +26 -0
  49. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKDocumentDetector.h +21 -0
  50. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKProcessingResult.h +6 -0
  51. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +200 -32
  52. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK.h +2 -0
  53. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Info.plist +0 -0
  54. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +3667 -2808
  55. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +19 -111
  56. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  57. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +19 -111
  58. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +3667 -2808
  59. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +19 -111
  60. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  61. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +19 -111
  62. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/module.modulemap +0 -1
  63. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/PhoneNumberKit_GSKPhoneNumberKit.bundle/Info.plist +0 -0
  64. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ar.lproj/GSSDK.strings +0 -0
  65. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/da.lproj/GSSDK.strings +0 -0
  66. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/de.lproj/GSSDK.strings +0 -0
  67. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/en.lproj/GSSDK.strings +0 -0
  68. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/es.lproj/GSSDK.strings +0 -0
  69. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
  70. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/he.lproj/GSSDK.strings +0 -0
  71. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/hu.lproj/GSSDK.strings +0 -0
  72. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/id.lproj/GSSDK.strings +0 -0
  73. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/it.lproj/GSSDK.strings +0 -0
  74. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ja.lproj/GSSDK.strings +0 -0
  75. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ko.lproj/GSSDK.strings +0 -0
  76. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/nl.lproj/GSSDK.strings +0 -0
  77. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/pl.lproj/GSSDK.strings +0 -0
  78. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/pt-BR.lproj/GSSDK.strings +0 -0
  79. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ru.lproj/GSSDK.strings +0 -0
  80. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/sv.lproj/GSSDK.strings +0 -0
  81. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/tr.lproj/GSSDK.strings +0 -0
  82. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/vi.lproj/GSSDK.strings +0 -0
  83. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/zh-Hans.lproj/GSSDK.strings +0 -0
  84. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/zh-Hant.lproj/GSSDK.strings +0 -0
  85. package/package.json +1 -1
@@ -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 <GSSDK/GSKCurvatureLevel.h>
12
+
13
+ NS_ASSUME_NONNULL_BEGIN
14
+
15
+ /// Type that encapsulates the result of determining a scan's curvature level.
16
+ @interface GSKCurvatureResult : NSObject
17
+
18
+ /// The curvature level that was determined for the scan, which indicates how distorted the document is.
19
+ @property (nonatomic, assign, readonly) GSKCurvatureLevel curvatureLevel NS_SWIFT_NAME(level);
20
+
21
+ - (instancetype)init NS_UNAVAILABLE;
22
+ - (instancetype)initWithCurvatureLevel:(GSKCurvatureLevel)curvatureLevel;
23
+
24
+ @end
25
+
26
+ NS_ASSUME_NONNULL_END
@@ -18,6 +18,14 @@
18
18
 
19
19
  NS_ASSUME_NONNULL_BEGIN
20
20
 
21
+ typedef NS_CLOSED_ENUM(NSInteger, GSKQuadrangleConfidenceLevel) {
22
+ GSKQuadrangleConfidenceLevelLowest,
23
+ GSKQuadrangleConfidenceLevelLow,
24
+ GSKQuadrangleConfidenceLevelMedium,
25
+ GSKQuadrangleConfidenceLevelHigh,
26
+ GSKQuadrangleConfidenceLevelHighest,
27
+ };
28
+
21
29
  /**
22
30
  A configuration for the document detector.
23
31
  */
@@ -43,12 +51,25 @@ NS_ASSUME_NONNULL_BEGIN
43
51
  @interface GSKDocumentDetectionResult: NSObject
44
52
 
45
53
  - (instancetype)initWithQuadrangle:(GSKQuadrangle *)quadrangle;
54
+ - (instancetype)initWithQuadrangle:(GSKQuadrangle *)quadrangle
55
+ quadrangleConfidence:(GSKQuadrangleConfidenceLevel)quadrangleConfidence
56
+ hasQuadrangleConfidence:(BOOL)hasQuadrangleConfidence;
46
57
 
47
58
  /**
48
59
  The detected quadrangle or an empty quadrangle if no document has been detected
49
60
  */
50
61
  @property (nonatomic, strong, readonly) GSKQuadrangle *quadrangle;
51
62
 
63
+ /**
64
+ The confidence associated with the detected quadrangle when available.
65
+ */
66
+ @property (nonatomic, assign, readonly) GSKQuadrangleConfidenceLevel quadrangleConfidence;
67
+
68
+ /**
69
+ Indicates whether a confidence is available for the detected quadrangle.
70
+ */
71
+ @property (nonatomic, assign, readonly) BOOL hasQuadrangleConfidence;
72
+
52
73
  @end
53
74
 
54
75
  /**
@@ -10,6 +10,7 @@
10
10
 
11
11
  #import <GSSDK/GSKRotation.h>
12
12
 
13
+ @class GSKCurvatureResult;
13
14
  @class GSKQuadrangle;
14
15
  @class GSKFilterConfiguration;
15
16
  @class GSKReadabilityResult;
@@ -53,6 +54,11 @@ NS_ASSUME_NONNULL_BEGIN
53
54
  /// `isReadabilityEnabled` property set to `YES`, always `nil` otherwise.
54
55
  @property (nonatomic, strong, nullable, readonly) GSKReadabilityResult *readabilityResult;
55
56
 
57
+ /// The result of determining the scan's curvature, which estimates distortion caused by non-flat paper surfaces like book pages or folded sheets.
58
+ /// Only assigned if the `GSKProcessingConfiguration` that was used for processing had curvature evaluation
59
+ /// or correction enabled, always `nil` otherwise.
60
+ @property (nonatomic, strong, nullable, readonly) GSKCurvatureResult *curvatureResult;
61
+
56
62
  @end
57
63
 
58
64
  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.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
3
+ // Generated by Apple Swift version 6.3.1 effective-5.10 (swiftlang-6.3.1.1.2 clang-2100.0.123.102)
4
4
  #ifndef GSSDK_SWIFT_H
5
5
  #define GSSDK_SWIFT_H
6
6
  #pragma clang diagnostic push
@@ -26,7 +26,7 @@
26
26
  #pragma clang diagnostic ignored "-Wauto-import"
27
27
  #if defined(__OBJC__)
28
28
  #include <Foundation/Foundation.h>
29
- #endif
29
+ #endif // defined(__OBJC__)
30
30
  #if defined(__cplusplus)
31
31
  #include <cstdint>
32
32
  #include <cstddef>
@@ -195,13 +195,32 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
195
195
  # endif
196
196
  #endif
197
197
  #if !defined(SWIFT_ENUM)
198
- # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
199
- # if __has_feature(generalized_swift_name)
200
- # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
198
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
199
+ # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
200
+ # if __has_feature(generalized_swift_name)
201
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
202
+ # else
203
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
204
+ # endif
201
205
  # else
206
+ # define SWIFT_ENUM(_type, _name, _extensibility) _type _name; enum
202
207
  # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
203
208
  # endif
204
209
  #endif
210
+ #if !defined(SWIFT_ENUM_TAG)
211
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
212
+ # define SWIFT_ENUM_TAG enum
213
+ # else
214
+ # define SWIFT_ENUM_TAG
215
+ # endif
216
+ #endif
217
+ #if !defined(SWIFT_ENUM_FWD_DECL)
218
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
219
+ # define SWIFT_ENUM_FWD_DECL(_type, _name) enum _name : _type;
220
+ # else
221
+ # define SWIFT_ENUM_FWD_DECL(_type, _name) typedef _type _name;
222
+ # endif
223
+ #endif
205
224
  #if !defined(SWIFT_UNAVAILABLE)
206
225
  # define SWIFT_UNAVAILABLE __attribute__((unavailable))
207
226
  #endif
@@ -211,6 +230,9 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
211
230
  #if !defined(SWIFT_AVAILABILITY)
212
231
  # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
213
232
  #endif
233
+ #if !defined(SWIFT_AVAILABILITY_DOMAIN)
234
+ # define SWIFT_AVAILABILITY_DOMAIN(dom, ...) __attribute__((availability(domain: dom, __VA_ARGS__)))
235
+ #endif
214
236
  #if !defined(SWIFT_WEAK_IMPORT)
215
237
  # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
216
238
  #endif
@@ -276,6 +298,49 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
276
298
  # define SWIFT_IMPORT_STDLIB_SYMBOL
277
299
  #endif
278
300
  #endif
301
+ #if !__has_feature(nullability)
302
+ # define _Nonnull
303
+ # define _Nullable
304
+ # define _Null_unspecified
305
+ #elif !defined(__OBJC__)
306
+ # pragma clang diagnostic ignored "-Wnullability-extension"
307
+ #endif
308
+ #if !__has_feature(nullability_nullable_result)
309
+ # define _Nullable_result _Nullable
310
+ #endif
311
+ #if __has_feature(objc_modules)
312
+ #if __has_warning("-Watimport-in-framework-header")
313
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
314
+ #endif
315
+ #endif
316
+
317
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
318
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
319
+ #if __has_warning("-Wpragma-clang-attribute")
320
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
321
+ #endif
322
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
323
+ #pragma clang diagnostic ignored "-Wnullability"
324
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
325
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
326
+
327
+ #if __has_attribute(external_source_symbol)
328
+ # pragma push_macro("any")
329
+ # undef any
330
+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="GSSDK",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
331
+ # pragma pop_macro("any")
332
+ #endif
333
+
334
+ #if defined(__cplusplus)
335
+ extern "C" {
336
+ #endif
337
+
338
+ #if defined(__cplusplus)
339
+ } // extern "C"
340
+ #endif
341
+ #if __has_attribute(external_source_symbol)
342
+ # pragma clang attribute pop
343
+ #endif
279
344
  #if defined(__OBJC__)
280
345
  #if __has_feature(objc_modules)
281
346
  #if __has_warning("-Watimport-in-framework-header")
@@ -290,7 +355,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
290
355
 
291
356
  #import <GSSDK/GSSDK.h>
292
357
 
293
- #endif
358
+ #endif // defined(__OBJC__)
294
359
  #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
295
360
  #pragma clang diagnostic ignored "-Wduplicate-method-arg"
296
361
  #if __has_warning("-Wpragma-clang-attribute")
@@ -777,7 +842,7 @@ SWIFT_CLASS("_TtC5GSSDK20GSKDocumentGenerator")
777
842
  - (BOOL)generate:(GSKPDFDocument * _Nonnull)document configuration:(GSKDocumentGeneratorConfiguration * _Nonnull)configuration error:(NSError * _Nullable * _Nullable)error;
778
843
  @end
779
844
 
780
- enum GSKDocumentGeneratorFileFormat : NSInteger;
845
+ SWIFT_ENUM_FWD_DECL(NSInteger, GSKDocumentGeneratorFileFormat)
781
846
  @class GSKDocumentGeneratorDebugConfiguration;
782
847
  /// A configuration for the document generator.
783
848
  SWIFT_CLASS("_TtC5GSSDK33GSKDocumentGeneratorConfiguration")
@@ -1076,7 +1141,7 @@ typedef SWIFT_ENUM(NSInteger, GSKFlashStatus, open) {
1076
1141
  GSKFlashStatusOff = 2,
1077
1142
  };
1078
1143
 
1079
- enum GSKIntegrationFramework : NSInteger;
1144
+ SWIFT_ENUM_FWD_DECL(NSInteger, GSKIntegrationFramework)
1080
1145
  SWIFT_CLASS_NAMED("GSKIntegrationContext")
1081
1146
  @interface GSKIntegrationContext : NSObject
1082
1147
  SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) enum GSKIntegrationFramework currentFramework;)
@@ -1159,7 +1224,8 @@ SWIFT_CLASS("_TtC5GSSDK14GSKPDFDocument")
1159
1224
  @property (nonatomic, readonly, copy) NSString * _Nullable title;
1160
1225
  /// If provided, this password will be used to protect the PDF document.
1161
1226
  /// It will need to be entered to view or edit the document.
1162
- /// RC4 encryption algorithm is used with a 128-bit key.
1227
+ /// AES-256 encryption is used.
1228
+ /// An empty password is treated as no password.
1163
1229
  @property (nonatomic, readonly, copy) NSString * _Nullable password;
1164
1230
  /// If provided, the keywords will be included in the PDF document properties
1165
1231
  @property (nonatomic, readonly, copy) NSString * _Nullable keywords;
@@ -1259,13 +1325,13 @@ SWIFT_CLASS("_TtC5GSSDK11GSKScanFlow")
1259
1325
  - (void)startFromViewController:(UIViewController * _Nonnull)viewController onSuccess:(void (^ _Nonnull)(GSKScanFlowResult * _Nonnull))completionBlock failure:(void (^ _Nonnull)(NSError * _Nonnull))errorBlock;
1260
1326
  @end
1261
1327
 
1262
- enum GSKScanFlowSource : NSUInteger;
1328
+ SWIFT_ENUM_FWD_DECL(NSUInteger, GSKScanFlowSource)
1263
1329
  @class NSURL;
1264
- enum GSKScanOrientation : NSInteger;
1265
- enum GSKScanFlowFilterType : NSInteger;
1266
- enum GSKScanFlowPDFPageSize : NSUInteger;
1267
- enum GSKScanFlowFlashMode : NSUInteger;
1268
- enum GSKScanFlowMultiPageFormat : NSUInteger;
1330
+ SWIFT_ENUM_FWD_DECL(NSInteger, GSKScanOrientation)
1331
+ SWIFT_ENUM_FWD_DECL(NSInteger, GSKScanFlowFilterType)
1332
+ SWIFT_ENUM_FWD_DECL(NSUInteger, GSKScanFlowPDFPageSize)
1333
+ SWIFT_ENUM_FWD_DECL(NSUInteger, GSKScanFlowFlashMode)
1334
+ SWIFT_ENUM_FWD_DECL(NSUInteger, GSKScanFlowMultiPageFormat)
1269
1335
  @class GSKScanFlowOCRConfiguration;
1270
1336
  /// Enables configuration of a <code>GSKScanFlow</code> instance.
1271
1337
  /// Pass an instance of this class to the initializer of <code>GSKScanFlow</code>
@@ -1284,6 +1350,11 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
1284
1350
  /// will only scan a single page. The output document will always contain
1285
1351
  /// a single page. Defaults to <code>true</code>.
1286
1352
  @property (nonatomic) BOOL multiPage;
1353
+ /// Whether the user should be presented with a screen that lets them review all
1354
+ /// captured scans at the end of the scan flow, where they’ll be able to edit each
1355
+ /// scan once more before finally submitting the captured scans for processing.
1356
+ /// Defaults to <code>false</code>.
1357
+ @property (nonatomic) BOOL showFinalReview;
1287
1358
  /// What orientation that a scan should be rotated to after it’s been captured.
1288
1359
  /// Defaults to <code>automatic</code>. See <code>GSKScanOrientation</code> for more information.
1289
1360
  @property (nonatomic) enum GSKScanOrientation defaultScanOrientation;
@@ -1311,6 +1382,10 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
1311
1382
  @property (nonatomic) enum GSKScanFlowFlashMode defaultFlashMode;
1312
1383
  /// Determines the document format. Defaults to <code>.PDF</code>.
1313
1384
  @property (nonatomic) enum GSKScanFlowMultiPageFormat multiPageFormat;
1385
+ /// Optional password used to protect generated PDF documents.
1386
+ /// An empty password is treated as no password.
1387
+ /// This only applies when <code>multiPageFormat</code> is <code>.pdf</code>.
1388
+ @property (nonatomic, copy) NSString * _Nullable pdfPassword;
1314
1389
  /// Custom font file used during PDF generation to embed an invisible text
1315
1390
  /// layer. If <code>nil</code>, a default font is used, which only supports Latin languages.
1316
1391
  @property (nonatomic, copy) NSURL * _Nullable pdfFontFileURL;
@@ -1357,6 +1432,15 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
1357
1432
  @end
1358
1433
 
1359
1434
  /// Enum that defines various numeric error codes that can occur during a scan flow.
1435
+ /// Cross-platform plugins expose the matching string code as the <code>code</code> field in their structured error payloads.
1436
+ /// | String code | Description | Suggested handling |
1437
+ /// | — | — | — |
1438
+ /// | <code>cancellation_error</code> | The user canceled the document or barcode scan flow. | Treat as a normal exit; do not show an error. |
1439
+ /// | <code>configuration_error</code> | The configuration or input parameters are invalid. | Fix the configuration before retrying. |
1440
+ /// | <code>licensing_error</code> | The license key is invalid, expired, or not initialized. | Verify the license key and contact support if needed. |
1441
+ /// | <code>capture_error</code> | The camera or capture session failed. | Let the user retry; restart the device if the problem persists. |
1442
+ /// | <code>storage_space_error</code> | There is not enough storage space to write generated files. | Ask the user to free up storage space and retry. |
1443
+ /// | <code>internal_error</code> | An unexpected SDK error occurred. | Show a generic error and collect the underlying error for diagnostics. |
1360
1444
  typedef SWIFT_ENUM(NSInteger, GSKScanFlowErrorCode, open) {
1361
1445
  /// User has canceled the scan flow
1362
1446
  GSKScanFlowCancellationErrorCode SWIFT_COMPILE_NAME("cancellation") = 999,
@@ -1713,7 +1797,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSBundle * _
1713
1797
  @property (nonatomic, readonly) UIInterfaceOrientationMask gsk_supportedInterfaceOrientations;
1714
1798
  @end
1715
1799
 
1716
- #endif
1800
+ #endif // defined(__OBJC__)
1717
1801
  #if __has_attribute(external_source_symbol)
1718
1802
  # pragma clang attribute pop
1719
1803
  #endif
@@ -1723,7 +1807,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSBundle * _
1723
1807
  #endif
1724
1808
 
1725
1809
  #elif defined(__x86_64__) && __x86_64__
1726
- // Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
1810
+ // Generated by Apple Swift version 6.3.1 effective-5.10 (swiftlang-6.3.1.1.2 clang-2100.0.123.102)
1727
1811
  #ifndef GSSDK_SWIFT_H
1728
1812
  #define GSSDK_SWIFT_H
1729
1813
  #pragma clang diagnostic push
@@ -1749,7 +1833,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSBundle * _
1749
1833
  #pragma clang diagnostic ignored "-Wauto-import"
1750
1834
  #if defined(__OBJC__)
1751
1835
  #include <Foundation/Foundation.h>
1752
- #endif
1836
+ #endif // defined(__OBJC__)
1753
1837
  #if defined(__cplusplus)
1754
1838
  #include <cstdint>
1755
1839
  #include <cstddef>
@@ -1918,13 +2002,32 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
1918
2002
  # endif
1919
2003
  #endif
1920
2004
  #if !defined(SWIFT_ENUM)
1921
- # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
1922
- # if __has_feature(generalized_swift_name)
1923
- # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
2005
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
2006
+ # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
2007
+ # if __has_feature(generalized_swift_name)
2008
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
2009
+ # else
2010
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
2011
+ # endif
1924
2012
  # else
2013
+ # define SWIFT_ENUM(_type, _name, _extensibility) _type _name; enum
1925
2014
  # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
1926
2015
  # endif
1927
2016
  #endif
2017
+ #if !defined(SWIFT_ENUM_TAG)
2018
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
2019
+ # define SWIFT_ENUM_TAG enum
2020
+ # else
2021
+ # define SWIFT_ENUM_TAG
2022
+ # endif
2023
+ #endif
2024
+ #if !defined(SWIFT_ENUM_FWD_DECL)
2025
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
2026
+ # define SWIFT_ENUM_FWD_DECL(_type, _name) enum _name : _type;
2027
+ # else
2028
+ # define SWIFT_ENUM_FWD_DECL(_type, _name) typedef _type _name;
2029
+ # endif
2030
+ #endif
1928
2031
  #if !defined(SWIFT_UNAVAILABLE)
1929
2032
  # define SWIFT_UNAVAILABLE __attribute__((unavailable))
1930
2033
  #endif
@@ -1934,6 +2037,9 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
1934
2037
  #if !defined(SWIFT_AVAILABILITY)
1935
2038
  # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
1936
2039
  #endif
2040
+ #if !defined(SWIFT_AVAILABILITY_DOMAIN)
2041
+ # define SWIFT_AVAILABILITY_DOMAIN(dom, ...) __attribute__((availability(domain: dom, __VA_ARGS__)))
2042
+ #endif
1937
2043
  #if !defined(SWIFT_WEAK_IMPORT)
1938
2044
  # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
1939
2045
  #endif
@@ -1999,6 +2105,49 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
1999
2105
  # define SWIFT_IMPORT_STDLIB_SYMBOL
2000
2106
  #endif
2001
2107
  #endif
2108
+ #if !__has_feature(nullability)
2109
+ # define _Nonnull
2110
+ # define _Nullable
2111
+ # define _Null_unspecified
2112
+ #elif !defined(__OBJC__)
2113
+ # pragma clang diagnostic ignored "-Wnullability-extension"
2114
+ #endif
2115
+ #if !__has_feature(nullability_nullable_result)
2116
+ # define _Nullable_result _Nullable
2117
+ #endif
2118
+ #if __has_feature(objc_modules)
2119
+ #if __has_warning("-Watimport-in-framework-header")
2120
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
2121
+ #endif
2122
+ #endif
2123
+
2124
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
2125
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
2126
+ #if __has_warning("-Wpragma-clang-attribute")
2127
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
2128
+ #endif
2129
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
2130
+ #pragma clang diagnostic ignored "-Wnullability"
2131
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
2132
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
2133
+
2134
+ #if __has_attribute(external_source_symbol)
2135
+ # pragma push_macro("any")
2136
+ # undef any
2137
+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="GSSDK",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
2138
+ # pragma pop_macro("any")
2139
+ #endif
2140
+
2141
+ #if defined(__cplusplus)
2142
+ extern "C" {
2143
+ #endif
2144
+
2145
+ #if defined(__cplusplus)
2146
+ } // extern "C"
2147
+ #endif
2148
+ #if __has_attribute(external_source_symbol)
2149
+ # pragma clang attribute pop
2150
+ #endif
2002
2151
  #if defined(__OBJC__)
2003
2152
  #if __has_feature(objc_modules)
2004
2153
  #if __has_warning("-Watimport-in-framework-header")
@@ -2013,7 +2162,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
2013
2162
 
2014
2163
  #import <GSSDK/GSSDK.h>
2015
2164
 
2016
- #endif
2165
+ #endif // defined(__OBJC__)
2017
2166
  #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
2018
2167
  #pragma clang diagnostic ignored "-Wduplicate-method-arg"
2019
2168
  #if __has_warning("-Wpragma-clang-attribute")
@@ -2500,7 +2649,7 @@ SWIFT_CLASS("_TtC5GSSDK20GSKDocumentGenerator")
2500
2649
  - (BOOL)generate:(GSKPDFDocument * _Nonnull)document configuration:(GSKDocumentGeneratorConfiguration * _Nonnull)configuration error:(NSError * _Nullable * _Nullable)error;
2501
2650
  @end
2502
2651
 
2503
- enum GSKDocumentGeneratorFileFormat : NSInteger;
2652
+ SWIFT_ENUM_FWD_DECL(NSInteger, GSKDocumentGeneratorFileFormat)
2504
2653
  @class GSKDocumentGeneratorDebugConfiguration;
2505
2654
  /// A configuration for the document generator.
2506
2655
  SWIFT_CLASS("_TtC5GSSDK33GSKDocumentGeneratorConfiguration")
@@ -2799,7 +2948,7 @@ typedef SWIFT_ENUM(NSInteger, GSKFlashStatus, open) {
2799
2948
  GSKFlashStatusOff = 2,
2800
2949
  };
2801
2950
 
2802
- enum GSKIntegrationFramework : NSInteger;
2951
+ SWIFT_ENUM_FWD_DECL(NSInteger, GSKIntegrationFramework)
2803
2952
  SWIFT_CLASS_NAMED("GSKIntegrationContext")
2804
2953
  @interface GSKIntegrationContext : NSObject
2805
2954
  SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) enum GSKIntegrationFramework currentFramework;)
@@ -2882,7 +3031,8 @@ SWIFT_CLASS("_TtC5GSSDK14GSKPDFDocument")
2882
3031
  @property (nonatomic, readonly, copy) NSString * _Nullable title;
2883
3032
  /// If provided, this password will be used to protect the PDF document.
2884
3033
  /// It will need to be entered to view or edit the document.
2885
- /// RC4 encryption algorithm is used with a 128-bit key.
3034
+ /// AES-256 encryption is used.
3035
+ /// An empty password is treated as no password.
2886
3036
  @property (nonatomic, readonly, copy) NSString * _Nullable password;
2887
3037
  /// If provided, the keywords will be included in the PDF document properties
2888
3038
  @property (nonatomic, readonly, copy) NSString * _Nullable keywords;
@@ -2982,13 +3132,13 @@ SWIFT_CLASS("_TtC5GSSDK11GSKScanFlow")
2982
3132
  - (void)startFromViewController:(UIViewController * _Nonnull)viewController onSuccess:(void (^ _Nonnull)(GSKScanFlowResult * _Nonnull))completionBlock failure:(void (^ _Nonnull)(NSError * _Nonnull))errorBlock;
2983
3133
  @end
2984
3134
 
2985
- enum GSKScanFlowSource : NSUInteger;
3135
+ SWIFT_ENUM_FWD_DECL(NSUInteger, GSKScanFlowSource)
2986
3136
  @class NSURL;
2987
- enum GSKScanOrientation : NSInteger;
2988
- enum GSKScanFlowFilterType : NSInteger;
2989
- enum GSKScanFlowPDFPageSize : NSUInteger;
2990
- enum GSKScanFlowFlashMode : NSUInteger;
2991
- enum GSKScanFlowMultiPageFormat : NSUInteger;
3137
+ SWIFT_ENUM_FWD_DECL(NSInteger, GSKScanOrientation)
3138
+ SWIFT_ENUM_FWD_DECL(NSInteger, GSKScanFlowFilterType)
3139
+ SWIFT_ENUM_FWD_DECL(NSUInteger, GSKScanFlowPDFPageSize)
3140
+ SWIFT_ENUM_FWD_DECL(NSUInteger, GSKScanFlowFlashMode)
3141
+ SWIFT_ENUM_FWD_DECL(NSUInteger, GSKScanFlowMultiPageFormat)
2992
3142
  @class GSKScanFlowOCRConfiguration;
2993
3143
  /// Enables configuration of a <code>GSKScanFlow</code> instance.
2994
3144
  /// Pass an instance of this class to the initializer of <code>GSKScanFlow</code>
@@ -3007,6 +3157,11 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
3007
3157
  /// will only scan a single page. The output document will always contain
3008
3158
  /// a single page. Defaults to <code>true</code>.
3009
3159
  @property (nonatomic) BOOL multiPage;
3160
+ /// Whether the user should be presented with a screen that lets them review all
3161
+ /// captured scans at the end of the scan flow, where they’ll be able to edit each
3162
+ /// scan once more before finally submitting the captured scans for processing.
3163
+ /// Defaults to <code>false</code>.
3164
+ @property (nonatomic) BOOL showFinalReview;
3010
3165
  /// What orientation that a scan should be rotated to after it’s been captured.
3011
3166
  /// Defaults to <code>automatic</code>. See <code>GSKScanOrientation</code> for more information.
3012
3167
  @property (nonatomic) enum GSKScanOrientation defaultScanOrientation;
@@ -3034,6 +3189,10 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
3034
3189
  @property (nonatomic) enum GSKScanFlowFlashMode defaultFlashMode;
3035
3190
  /// Determines the document format. Defaults to <code>.PDF</code>.
3036
3191
  @property (nonatomic) enum GSKScanFlowMultiPageFormat multiPageFormat;
3192
+ /// Optional password used to protect generated PDF documents.
3193
+ /// An empty password is treated as no password.
3194
+ /// This only applies when <code>multiPageFormat</code> is <code>.pdf</code>.
3195
+ @property (nonatomic, copy) NSString * _Nullable pdfPassword;
3037
3196
  /// Custom font file used during PDF generation to embed an invisible text
3038
3197
  /// layer. If <code>nil</code>, a default font is used, which only supports Latin languages.
3039
3198
  @property (nonatomic, copy) NSURL * _Nullable pdfFontFileURL;
@@ -3080,6 +3239,15 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
3080
3239
  @end
3081
3240
 
3082
3241
  /// Enum that defines various numeric error codes that can occur during a scan flow.
3242
+ /// Cross-platform plugins expose the matching string code as the <code>code</code> field in their structured error payloads.
3243
+ /// | String code | Description | Suggested handling |
3244
+ /// | — | — | — |
3245
+ /// | <code>cancellation_error</code> | The user canceled the document or barcode scan flow. | Treat as a normal exit; do not show an error. |
3246
+ /// | <code>configuration_error</code> | The configuration or input parameters are invalid. | Fix the configuration before retrying. |
3247
+ /// | <code>licensing_error</code> | The license key is invalid, expired, or not initialized. | Verify the license key and contact support if needed. |
3248
+ /// | <code>capture_error</code> | The camera or capture session failed. | Let the user retry; restart the device if the problem persists. |
3249
+ /// | <code>storage_space_error</code> | There is not enough storage space to write generated files. | Ask the user to free up storage space and retry. |
3250
+ /// | <code>internal_error</code> | An unexpected SDK error occurred. | Show a generic error and collect the underlying error for diagnostics. |
3083
3251
  typedef SWIFT_ENUM(NSInteger, GSKScanFlowErrorCode, open) {
3084
3252
  /// User has canceled the scan flow
3085
3253
  GSKScanFlowCancellationErrorCode SWIFT_COMPILE_NAME("cancellation") = 999,
@@ -3436,7 +3604,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSBundle * _
3436
3604
  @property (nonatomic, readonly) UIInterfaceOrientationMask gsk_supportedInterfaceOrientations;
3437
3605
  @end
3438
3606
 
3439
- #endif
3607
+ #endif // defined(__OBJC__)
3440
3608
  #if __has_attribute(external_source_symbol)
3441
3609
  # pragma clang attribute pop
3442
3610
  #endif
@@ -13,6 +13,8 @@ FOUNDATION_EXPORT const unsigned char GSSDKVersionString[];
13
13
 
14
14
  #import <GSSDK/GSKBackgroundKind.h>
15
15
  #import <GSSDK/GSKCurvatureCorrectionConfiguration.h>
16
+ #import <GSSDK/GSKCurvatureLevel.h>
17
+ #import <GSSDK/GSKCurvatureResult.h>
16
18
  #import <GSSDK/GSKDefaultLogLevel.h>
17
19
  #import <GSSDK/GSKDefaultLogger.h>
18
20
  #import <GSSDK/GSKDocumentComposition.h>