@thegrizzlylabs/react-native-genius-scan 6.0.0-beta13 → 6.1.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 (82) 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/ios-arm64/GSSDK.framework/Assets.car +0 -0
  5. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/Info.plist +0 -0
  6. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
  7. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKCurvatureCorrectionConfiguration.h +11 -5
  8. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKCurvatureLevel.h +28 -0
  9. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKCurvatureResult.h +26 -0
  10. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKProcessingResult.h +6 -0
  11. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +89 -15
  12. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK.h +2 -0
  13. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Info.plist +0 -0
  14. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.abi.json +2742 -2493
  15. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +12 -111
  16. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  17. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftinterface +12 -111
  18. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/module.modulemap +0 -1
  19. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/PhoneNumberKit_GSKPhoneNumberKit.bundle/Info.plist +0 -0
  20. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ar.lproj/GSSDK.strings +0 -0
  21. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/da.lproj/GSSDK.strings +0 -0
  22. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/de.lproj/GSSDK.strings +0 -0
  23. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/en.lproj/GSSDK.strings +0 -0
  24. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/es.lproj/GSSDK.strings +0 -0
  25. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
  26. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/he.lproj/GSSDK.strings +0 -0
  27. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/hu.lproj/GSSDK.strings +0 -0
  28. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/id.lproj/GSSDK.strings +0 -0
  29. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/it.lproj/GSSDK.strings +0 -0
  30. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ja.lproj/GSSDK.strings +0 -0
  31. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ko.lproj/GSSDK.strings +0 -0
  32. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/nl.lproj/GSSDK.strings +0 -0
  33. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/pl.lproj/GSSDK.strings +0 -0
  34. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/pt-BR.lproj/GSSDK.strings +0 -0
  35. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ru.lproj/GSSDK.strings +0 -0
  36. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/sv.lproj/GSSDK.strings +0 -0
  37. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/tr.lproj/GSSDK.strings +0 -0
  38. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/vi.lproj/GSSDK.strings +0 -0
  39. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/zh-Hans.lproj/GSSDK.strings +0 -0
  40. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/zh-Hant.lproj/GSSDK.strings +0 -0
  41. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Assets.car +0 -0
  42. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/Info.plist +0 -0
  43. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK +0 -0
  44. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKCurvatureCorrectionConfiguration.h +11 -5
  45. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKCurvatureLevel.h +28 -0
  46. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKCurvatureResult.h +26 -0
  47. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKProcessingResult.h +6 -0
  48. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +178 -30
  49. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK.h +2 -0
  50. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Info.plist +0 -0
  51. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +2742 -2493
  52. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +12 -111
  53. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  54. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +12 -111
  55. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +2742 -2493
  56. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +12 -111
  57. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  58. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +12 -111
  59. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/module.modulemap +0 -1
  60. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/PhoneNumberKit_GSKPhoneNumberKit.bundle/Info.plist +0 -0
  61. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ar.lproj/GSSDK.strings +0 -0
  62. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/da.lproj/GSSDK.strings +0 -0
  63. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/de.lproj/GSSDK.strings +0 -0
  64. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/en.lproj/GSSDK.strings +0 -0
  65. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/es.lproj/GSSDK.strings +0 -0
  66. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
  67. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/he.lproj/GSSDK.strings +0 -0
  68. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/hu.lproj/GSSDK.strings +0 -0
  69. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/id.lproj/GSSDK.strings +0 -0
  70. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/it.lproj/GSSDK.strings +0 -0
  71. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ja.lproj/GSSDK.strings +0 -0
  72. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ko.lproj/GSSDK.strings +0 -0
  73. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/nl.lproj/GSSDK.strings +0 -0
  74. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/pl.lproj/GSSDK.strings +0 -0
  75. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/pt-BR.lproj/GSSDK.strings +0 -0
  76. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ru.lproj/GSSDK.strings +0 -0
  77. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/sv.lproj/GSSDK.strings +0 -0
  78. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/tr.lproj/GSSDK.strings +0 -0
  79. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/vi.lproj/GSSDK.strings +0 -0
  80. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/zh-Hans.lproj/GSSDK.strings +0 -0
  81. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/zh-Hant.lproj/GSSDK.strings +0 -0
  82. package/package.json +1 -1
@@ -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;)
@@ -1259,13 +1324,13 @@ SWIFT_CLASS("_TtC5GSSDK11GSKScanFlow")
1259
1324
  - (void)startFromViewController:(UIViewController * _Nonnull)viewController onSuccess:(void (^ _Nonnull)(GSKScanFlowResult * _Nonnull))completionBlock failure:(void (^ _Nonnull)(NSError * _Nonnull))errorBlock;
1260
1325
  @end
1261
1326
 
1262
- enum GSKScanFlowSource : NSUInteger;
1327
+ SWIFT_ENUM_FWD_DECL(NSUInteger, GSKScanFlowSource)
1263
1328
  @class NSURL;
1264
- enum GSKScanOrientation : NSInteger;
1265
- enum GSKScanFlowFilterType : NSInteger;
1266
- enum GSKScanFlowPDFPageSize : NSUInteger;
1267
- enum GSKScanFlowFlashMode : NSUInteger;
1268
- enum GSKScanFlowMultiPageFormat : NSUInteger;
1329
+ SWIFT_ENUM_FWD_DECL(NSInteger, GSKScanOrientation)
1330
+ SWIFT_ENUM_FWD_DECL(NSInteger, GSKScanFlowFilterType)
1331
+ SWIFT_ENUM_FWD_DECL(NSUInteger, GSKScanFlowPDFPageSize)
1332
+ SWIFT_ENUM_FWD_DECL(NSUInteger, GSKScanFlowFlashMode)
1333
+ SWIFT_ENUM_FWD_DECL(NSUInteger, GSKScanFlowMultiPageFormat)
1269
1334
  @class GSKScanFlowOCRConfiguration;
1270
1335
  /// Enables configuration of a <code>GSKScanFlow</code> instance.
1271
1336
  /// Pass an instance of this class to the initializer of <code>GSKScanFlow</code>
@@ -1357,6 +1422,15 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
1357
1422
  @end
1358
1423
 
1359
1424
  /// Enum that defines various numeric error codes that can occur during a scan flow.
1425
+ /// Cross-platform plugins expose the matching string code as the <code>code</code> field in their structured error payloads.
1426
+ /// | String code | Description | Suggested handling |
1427
+ /// | — | — | — |
1428
+ /// | <code>cancellation_error</code> | The user canceled the document or barcode scan flow. | Treat as a normal exit; do not show an error. |
1429
+ /// | <code>configuration_error</code> | The configuration or input parameters are invalid. | Fix the configuration before retrying. |
1430
+ /// | <code>licensing_error</code> | The license key is invalid, expired, or not initialized. | Verify the license key and contact support if needed. |
1431
+ /// | <code>capture_error</code> | The camera or capture session failed. | Let the user retry; restart the device if the problem persists. |
1432
+ /// | <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. |
1433
+ /// | <code>internal_error</code> | An unexpected SDK error occurred. | Show a generic error and collect the underlying error for diagnostics. |
1360
1434
  typedef SWIFT_ENUM(NSInteger, GSKScanFlowErrorCode, open) {
1361
1435
  /// User has canceled the scan flow
1362
1436
  GSKScanFlowCancellationErrorCode SWIFT_COMPILE_NAME("cancellation") = 999,
@@ -1713,7 +1787,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSBundle * _
1713
1787
  @property (nonatomic, readonly) UIInterfaceOrientationMask gsk_supportedInterfaceOrientations;
1714
1788
  @end
1715
1789
 
1716
- #endif
1790
+ #endif // defined(__OBJC__)
1717
1791
  #if __has_attribute(external_source_symbol)
1718
1792
  # pragma clang attribute pop
1719
1793
  #endif
@@ -1723,7 +1797,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSBundle * _
1723
1797
  #endif
1724
1798
 
1725
1799
  #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)
1800
+ // Generated by Apple Swift version 6.3.1 effective-5.10 (swiftlang-6.3.1.1.2 clang-2100.0.123.102)
1727
1801
  #ifndef GSSDK_SWIFT_H
1728
1802
  #define GSSDK_SWIFT_H
1729
1803
  #pragma clang diagnostic push
@@ -1749,7 +1823,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSBundle * _
1749
1823
  #pragma clang diagnostic ignored "-Wauto-import"
1750
1824
  #if defined(__OBJC__)
1751
1825
  #include <Foundation/Foundation.h>
1752
- #endif
1826
+ #endif // defined(__OBJC__)
1753
1827
  #if defined(__cplusplus)
1754
1828
  #include <cstdint>
1755
1829
  #include <cstddef>
@@ -1918,13 +1992,32 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
1918
1992
  # endif
1919
1993
  #endif
1920
1994
  #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
1995
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
1996
+ # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
1997
+ # if __has_feature(generalized_swift_name)
1998
+ # 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
1999
+ # else
2000
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
2001
+ # endif
1924
2002
  # else
2003
+ # define SWIFT_ENUM(_type, _name, _extensibility) _type _name; enum
1925
2004
  # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
1926
2005
  # endif
1927
2006
  #endif
2007
+ #if !defined(SWIFT_ENUM_TAG)
2008
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
2009
+ # define SWIFT_ENUM_TAG enum
2010
+ # else
2011
+ # define SWIFT_ENUM_TAG
2012
+ # endif
2013
+ #endif
2014
+ #if !defined(SWIFT_ENUM_FWD_DECL)
2015
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
2016
+ # define SWIFT_ENUM_FWD_DECL(_type, _name) enum _name : _type;
2017
+ # else
2018
+ # define SWIFT_ENUM_FWD_DECL(_type, _name) typedef _type _name;
2019
+ # endif
2020
+ #endif
1928
2021
  #if !defined(SWIFT_UNAVAILABLE)
1929
2022
  # define SWIFT_UNAVAILABLE __attribute__((unavailable))
1930
2023
  #endif
@@ -1934,6 +2027,9 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
1934
2027
  #if !defined(SWIFT_AVAILABILITY)
1935
2028
  # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
1936
2029
  #endif
2030
+ #if !defined(SWIFT_AVAILABILITY_DOMAIN)
2031
+ # define SWIFT_AVAILABILITY_DOMAIN(dom, ...) __attribute__((availability(domain: dom, __VA_ARGS__)))
2032
+ #endif
1937
2033
  #if !defined(SWIFT_WEAK_IMPORT)
1938
2034
  # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
1939
2035
  #endif
@@ -1999,6 +2095,49 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
1999
2095
  # define SWIFT_IMPORT_STDLIB_SYMBOL
2000
2096
  #endif
2001
2097
  #endif
2098
+ #if !__has_feature(nullability)
2099
+ # define _Nonnull
2100
+ # define _Nullable
2101
+ # define _Null_unspecified
2102
+ #elif !defined(__OBJC__)
2103
+ # pragma clang diagnostic ignored "-Wnullability-extension"
2104
+ #endif
2105
+ #if !__has_feature(nullability_nullable_result)
2106
+ # define _Nullable_result _Nullable
2107
+ #endif
2108
+ #if __has_feature(objc_modules)
2109
+ #if __has_warning("-Watimport-in-framework-header")
2110
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
2111
+ #endif
2112
+ #endif
2113
+
2114
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
2115
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
2116
+ #if __has_warning("-Wpragma-clang-attribute")
2117
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
2118
+ #endif
2119
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
2120
+ #pragma clang diagnostic ignored "-Wnullability"
2121
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
2122
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
2123
+
2124
+ #if __has_attribute(external_source_symbol)
2125
+ # pragma push_macro("any")
2126
+ # undef any
2127
+ # 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))
2128
+ # pragma pop_macro("any")
2129
+ #endif
2130
+
2131
+ #if defined(__cplusplus)
2132
+ extern "C" {
2133
+ #endif
2134
+
2135
+ #if defined(__cplusplus)
2136
+ } // extern "C"
2137
+ #endif
2138
+ #if __has_attribute(external_source_symbol)
2139
+ # pragma clang attribute pop
2140
+ #endif
2002
2141
  #if defined(__OBJC__)
2003
2142
  #if __has_feature(objc_modules)
2004
2143
  #if __has_warning("-Watimport-in-framework-header")
@@ -2013,7 +2152,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
2013
2152
 
2014
2153
  #import <GSSDK/GSSDK.h>
2015
2154
 
2016
- #endif
2155
+ #endif // defined(__OBJC__)
2017
2156
  #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
2018
2157
  #pragma clang diagnostic ignored "-Wduplicate-method-arg"
2019
2158
  #if __has_warning("-Wpragma-clang-attribute")
@@ -2500,7 +2639,7 @@ SWIFT_CLASS("_TtC5GSSDK20GSKDocumentGenerator")
2500
2639
  - (BOOL)generate:(GSKPDFDocument * _Nonnull)document configuration:(GSKDocumentGeneratorConfiguration * _Nonnull)configuration error:(NSError * _Nullable * _Nullable)error;
2501
2640
  @end
2502
2641
 
2503
- enum GSKDocumentGeneratorFileFormat : NSInteger;
2642
+ SWIFT_ENUM_FWD_DECL(NSInteger, GSKDocumentGeneratorFileFormat)
2504
2643
  @class GSKDocumentGeneratorDebugConfiguration;
2505
2644
  /// A configuration for the document generator.
2506
2645
  SWIFT_CLASS("_TtC5GSSDK33GSKDocumentGeneratorConfiguration")
@@ -2799,7 +2938,7 @@ typedef SWIFT_ENUM(NSInteger, GSKFlashStatus, open) {
2799
2938
  GSKFlashStatusOff = 2,
2800
2939
  };
2801
2940
 
2802
- enum GSKIntegrationFramework : NSInteger;
2941
+ SWIFT_ENUM_FWD_DECL(NSInteger, GSKIntegrationFramework)
2803
2942
  SWIFT_CLASS_NAMED("GSKIntegrationContext")
2804
2943
  @interface GSKIntegrationContext : NSObject
2805
2944
  SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) enum GSKIntegrationFramework currentFramework;)
@@ -2982,13 +3121,13 @@ SWIFT_CLASS("_TtC5GSSDK11GSKScanFlow")
2982
3121
  - (void)startFromViewController:(UIViewController * _Nonnull)viewController onSuccess:(void (^ _Nonnull)(GSKScanFlowResult * _Nonnull))completionBlock failure:(void (^ _Nonnull)(NSError * _Nonnull))errorBlock;
2983
3122
  @end
2984
3123
 
2985
- enum GSKScanFlowSource : NSUInteger;
3124
+ SWIFT_ENUM_FWD_DECL(NSUInteger, GSKScanFlowSource)
2986
3125
  @class NSURL;
2987
- enum GSKScanOrientation : NSInteger;
2988
- enum GSKScanFlowFilterType : NSInteger;
2989
- enum GSKScanFlowPDFPageSize : NSUInteger;
2990
- enum GSKScanFlowFlashMode : NSUInteger;
2991
- enum GSKScanFlowMultiPageFormat : NSUInteger;
3126
+ SWIFT_ENUM_FWD_DECL(NSInteger, GSKScanOrientation)
3127
+ SWIFT_ENUM_FWD_DECL(NSInteger, GSKScanFlowFilterType)
3128
+ SWIFT_ENUM_FWD_DECL(NSUInteger, GSKScanFlowPDFPageSize)
3129
+ SWIFT_ENUM_FWD_DECL(NSUInteger, GSKScanFlowFlashMode)
3130
+ SWIFT_ENUM_FWD_DECL(NSUInteger, GSKScanFlowMultiPageFormat)
2992
3131
  @class GSKScanFlowOCRConfiguration;
2993
3132
  /// Enables configuration of a <code>GSKScanFlow</code> instance.
2994
3133
  /// Pass an instance of this class to the initializer of <code>GSKScanFlow</code>
@@ -3080,6 +3219,15 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
3080
3219
  @end
3081
3220
 
3082
3221
  /// Enum that defines various numeric error codes that can occur during a scan flow.
3222
+ /// Cross-platform plugins expose the matching string code as the <code>code</code> field in their structured error payloads.
3223
+ /// | String code | Description | Suggested handling |
3224
+ /// | — | — | — |
3225
+ /// | <code>cancellation_error</code> | The user canceled the document or barcode scan flow. | Treat as a normal exit; do not show an error. |
3226
+ /// | <code>configuration_error</code> | The configuration or input parameters are invalid. | Fix the configuration before retrying. |
3227
+ /// | <code>licensing_error</code> | The license key is invalid, expired, or not initialized. | Verify the license key and contact support if needed. |
3228
+ /// | <code>capture_error</code> | The camera or capture session failed. | Let the user retry; restart the device if the problem persists. |
3229
+ /// | <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. |
3230
+ /// | <code>internal_error</code> | An unexpected SDK error occurred. | Show a generic error and collect the underlying error for diagnostics. |
3083
3231
  typedef SWIFT_ENUM(NSInteger, GSKScanFlowErrorCode, open) {
3084
3232
  /// User has canceled the scan flow
3085
3233
  GSKScanFlowCancellationErrorCode SWIFT_COMPILE_NAME("cancellation") = 999,
@@ -3436,7 +3584,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSBundle * _
3436
3584
  @property (nonatomic, readonly) UIInterfaceOrientationMask gsk_supportedInterfaceOrientations;
3437
3585
  @end
3438
3586
 
3439
- #endif
3587
+ #endif // defined(__OBJC__)
3440
3588
  #if __has_attribute(external_source_symbol)
3441
3589
  # pragma clang attribute pop
3442
3590
  #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>