@thegrizzlylabs/react-native-genius-scan 6.0.0-beta02 → 6.0.0-beta03

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 (29) hide show
  1. package/README.md +21 -0
  2. package/android/build.gradle +1 -1
  3. package/android/src/main/java/com/geniusscansdk/reactnative/RNGeniusScanModule.java +6 -1
  4. package/ios/GSSDK/GSSDK.xcframework/Info.plist +5 -5
  5. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
  6. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanFlowError+PluginPayload.h +11 -0
  7. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +6 -0
  8. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK.h +1 -0
  9. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Info.plist +0 -0
  10. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.abi.json +225 -16
  11. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +5 -0
  12. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftinterface +5 -0
  13. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/en.lproj/GSSDK.strings +0 -0
  14. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
  15. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK +0 -0
  16. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanFlowError+PluginPayload.h +11 -0
  17. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +12 -0
  18. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK.h +1 -0
  19. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Info.plist +0 -0
  20. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +225 -16
  21. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +5 -0
  22. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +5 -0
  23. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +225 -16
  24. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +5 -0
  25. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +5 -0
  26. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/en.lproj/GSSDK.strings +0 -0
  27. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
  28. package/ios/RNGeniusScan.m +22 -7
  29. package/package.json +1 -1
package/README.md CHANGED
@@ -193,6 +193,27 @@ RNGeniusScan.scanWithConfiguration({ source: 'image', sourceImageUrl: imageUri }
193
193
  })
194
194
  ```
195
195
 
196
+ ### Error handling
197
+
198
+ Errors are rejected with a structured payload:
199
+
200
+ - `code`: standardized error code
201
+ - `message`: user-facing message
202
+ - `recovery_message`: recovery suggestion (may be empty)
203
+ - `underlying_error`: stringified underlying error (may be empty)
204
+
205
+ Example:
206
+
207
+ ```javascript
208
+ RNGeniusScan.scanWithConfiguration({ source: 'camera' })
209
+ .catch((error) => {
210
+ console.log(error.code);
211
+ console.log(error.message);
212
+ console.log(error.recovery_message);
213
+ console.log(error.underlying_error);
214
+ })
215
+ ```
216
+
196
217
  # FAQ
197
218
 
198
219
  ## How do I get the UI translated to another language?
@@ -42,5 +42,5 @@ rootProject.allprojects {
42
42
 
43
43
  dependencies {
44
44
  implementation 'com.facebook.react:react-native:+'
45
- implementation 'com.geniusscansdk:gssdk:6.0.0-beta02'
45
+ implementation 'com.geniusscansdk:gssdk:6.0.0-beta03'
46
46
  }
@@ -42,7 +42,12 @@ public class RNGeniusScanModule extends ReactContextBaseJavaModule {
42
42
  // We don't work directly with Promise here as it is a React Native Bridge module
43
43
  private void resolvePromiseWithPromiseResult(Promise promise, PromiseResult promiseResult) {
44
44
  if (promiseResult.isError) {
45
- promise.reject(promiseResult.errorCode, promiseResult.errorMessage);
45
+ Map<String, String> error = promiseResult.error;
46
+ if (error != null) {
47
+ promise.reject(error.get("code"), error.get("message"), Arguments.makeNativeMap(error));
48
+ } else {
49
+ promise.reject("internal_error", "No error payload");
50
+ }
46
51
  } else if (promiseResult.result == null) {
47
52
  promise.resolve(null);
48
53
  } else {
@@ -10,15 +10,18 @@
10
10
  <key>DebugSymbolsPath</key>
11
11
  <string>dSYMs</string>
12
12
  <key>LibraryIdentifier</key>
13
- <string>ios-arm64</string>
13
+ <string>ios-arm64_x86_64-simulator</string>
14
14
  <key>LibraryPath</key>
15
15
  <string>GSSDK.framework</string>
16
16
  <key>SupportedArchitectures</key>
17
17
  <array>
18
18
  <string>arm64</string>
19
+ <string>x86_64</string>
19
20
  </array>
20
21
  <key>SupportedPlatform</key>
21
22
  <string>ios</string>
23
+ <key>SupportedPlatformVariant</key>
24
+ <string>simulator</string>
22
25
  </dict>
23
26
  <dict>
24
27
  <key>BinaryPath</key>
@@ -26,18 +29,15 @@
26
29
  <key>DebugSymbolsPath</key>
27
30
  <string>dSYMs</string>
28
31
  <key>LibraryIdentifier</key>
29
- <string>ios-arm64_x86_64-simulator</string>
32
+ <string>ios-arm64</string>
30
33
  <key>LibraryPath</key>
31
34
  <string>GSSDK.framework</string>
32
35
  <key>SupportedArchitectures</key>
33
36
  <array>
34
37
  <string>arm64</string>
35
- <string>x86_64</string>
36
38
  </array>
37
39
  <key>SupportedPlatform</key>
38
40
  <string>ios</string>
39
- <key>SupportedPlatformVariant</key>
40
- <string>simulator</string>
41
41
  </dict>
42
42
  </array>
43
43
  <key>CFBundlePackageType</key>
@@ -0,0 +1,11 @@
1
+ #import <Foundation/Foundation.h>
2
+
3
+ NS_ASSUME_NONNULL_BEGIN
4
+
5
+ @interface GSKScanFlowErrorPayload : NSObject
6
+
7
+ + (NSDictionary<NSString *, NSString *> *)payloadFromNSError:(NSError *)error;
8
+
9
+ @end
10
+
11
+ NS_ASSUME_NONNULL_END
@@ -1379,6 +1379,12 @@ typedef SWIFT_ENUM(NSInteger, GSKScanFlowErrorCode, open) {
1379
1379
  GSKScanFlowInternalErrorCode SWIFT_COMPILE_NAME("internal") = 9999,
1380
1380
  };
1381
1381
 
1382
+ SWIFT_CLASS("_TtC5GSSDK26GSKScanFlowErrorCodeBridge")
1383
+ @interface GSKScanFlowErrorCodeBridge : NSObject
1384
+ + (NSString * _Nonnull)stringCodeForRawValue:(NSInteger)rawValue SWIFT_WARN_UNUSED_RESULT;
1385
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1386
+ @end
1387
+
1382
1388
  /// The different possible filters for the scanner UI.
1383
1389
  /// Each case maps to a predefined filter configuration except <code>.automatic</code>.
1384
1390
  typedef SWIFT_ENUM(NSInteger, GSKScanFlowFilterType, open) {
@@ -36,6 +36,7 @@ FOUNDATION_EXPORT const unsigned char GSSDKVersionString[];
36
36
  #import <GSSDK/GSKRotationConfiguration.h>
37
37
  #import <GSSDK/GSKScan.h>
38
38
  #import <GSSDK/GSKScanFlowErrorDomain.h>
39
+ #import <GSSDK/GSKScanFlowError+PluginPayload.h>
39
40
  #import <GSSDK/GSKScanFlowOCROutputFormats.h>
40
41
  #import <GSSDK/GSKScanFlowPostProcessingActions.h>
41
42
  #import <GSSDK/GSKScanFlowStructuredData.h>
@@ -10982,6 +10982,30 @@
10982
10982
  "declKind": "Import",
10983
10983
  "moduleName": "GSSDK"
10984
10984
  },
10985
+ {
10986
+ "kind": "Import",
10987
+ "name": "Foundation",
10988
+ "printedName": "Foundation",
10989
+ "declKind": "Import",
10990
+ "moduleName": "GSSDK"
10991
+ },
10992
+ {
10993
+ "kind": "Import",
10994
+ "name": "GSSDKObjC",
10995
+ "printedName": "GSSDKObjC",
10996
+ "declKind": "Import",
10997
+ "moduleName": "GSSDK",
10998
+ "declAttributes": [
10999
+ "ImplementationOnly"
11000
+ ]
11001
+ },
11002
+ {
11003
+ "kind": "Import",
11004
+ "name": "Foundation",
11005
+ "printedName": "Foundation",
11006
+ "declKind": "Import",
11007
+ "moduleName": "GSSDK"
11008
+ },
10985
11009
  {
10986
11010
  "kind": "Import",
10987
11011
  "name": "GSSDKObjC",
@@ -21531,6 +21555,13 @@
21531
21555
  "declKind": "Import",
21532
21556
  "moduleName": "GSSDK"
21533
21557
  },
21558
+ {
21559
+ "kind": "Import",
21560
+ "name": "Foundation",
21561
+ "printedName": "Foundation",
21562
+ "declKind": "Import",
21563
+ "moduleName": "GSSDK"
21564
+ },
21534
21565
  {
21535
21566
  "kind": "Import",
21536
21567
  "name": "GSSDKObjC",
@@ -25659,6 +25690,149 @@
25659
25690
  }
25660
25691
  ]
25661
25692
  },
25693
+ {
25694
+ "kind": "TypeDecl",
25695
+ "name": "GSKScanFlowErrorCodeBridge",
25696
+ "printedName": "GSKScanFlowErrorCodeBridge",
25697
+ "children": [
25698
+ {
25699
+ "kind": "Function",
25700
+ "name": "stringCode",
25701
+ "printedName": "stringCode(forRawValue:)",
25702
+ "children": [
25703
+ {
25704
+ "kind": "TypeNominal",
25705
+ "name": "String",
25706
+ "printedName": "Swift.String",
25707
+ "usr": "s:SS"
25708
+ },
25709
+ {
25710
+ "kind": "TypeNominal",
25711
+ "name": "Int",
25712
+ "printedName": "Swift.Int",
25713
+ "usr": "s:Si"
25714
+ }
25715
+ ],
25716
+ "declKind": "Func",
25717
+ "usr": "c:@M@GSSDK@objc(cs)GSKScanFlowErrorCodeBridge(cm)stringCodeForRawValue:",
25718
+ "mangledName": "$s5GSSDK26GSKScanFlowErrorCodeBridgeC06stringE011forRawValueSSSi_tFZ",
25719
+ "moduleName": "GSSDK",
25720
+ "static": true,
25721
+ "declAttributes": [
25722
+ "Final",
25723
+ "AccessControl",
25724
+ "ObjC"
25725
+ ],
25726
+ "funcSelfKind": "NonMutating"
25727
+ },
25728
+ {
25729
+ "kind": "Constructor",
25730
+ "name": "init",
25731
+ "printedName": "init()",
25732
+ "children": [
25733
+ {
25734
+ "kind": "TypeNominal",
25735
+ "name": "GSKScanFlowErrorCodeBridge",
25736
+ "printedName": "GSSDK.GSKScanFlowErrorCodeBridge",
25737
+ "usr": "c:@M@GSSDK@objc(cs)GSKScanFlowErrorCodeBridge"
25738
+ }
25739
+ ],
25740
+ "declKind": "Constructor",
25741
+ "usr": "c:@M@GSSDK@objc(cs)GSKScanFlowErrorCodeBridge(im)init",
25742
+ "mangledName": "$s5GSSDK26GSKScanFlowErrorCodeBridgeCACycfc",
25743
+ "moduleName": "GSSDK",
25744
+ "overriding": true,
25745
+ "implicit": true,
25746
+ "objc_name": "init",
25747
+ "declAttributes": [
25748
+ "Dynamic",
25749
+ "ObjC",
25750
+ "Override"
25751
+ ],
25752
+ "init_kind": "Designated"
25753
+ }
25754
+ ],
25755
+ "declKind": "Class",
25756
+ "usr": "c:@M@GSSDK@objc(cs)GSKScanFlowErrorCodeBridge",
25757
+ "mangledName": "$s5GSSDK26GSKScanFlowErrorCodeBridgeC",
25758
+ "moduleName": "GSSDK",
25759
+ "declAttributes": [
25760
+ "Final",
25761
+ "AccessControl",
25762
+ "ObjCMembers",
25763
+ "ObjC"
25764
+ ],
25765
+ "superclassUsr": "c:objc(cs)NSObject",
25766
+ "inheritsConvenienceInitializers": true,
25767
+ "superclassNames": [
25768
+ "ObjectiveC.NSObject"
25769
+ ],
25770
+ "conformances": [
25771
+ {
25772
+ "kind": "Conformance",
25773
+ "name": "Copyable",
25774
+ "printedName": "Copyable",
25775
+ "usr": "s:s8CopyableP",
25776
+ "mangledName": "$ss8CopyableP"
25777
+ },
25778
+ {
25779
+ "kind": "Conformance",
25780
+ "name": "Escapable",
25781
+ "printedName": "Escapable",
25782
+ "usr": "s:s9EscapableP",
25783
+ "mangledName": "$ss9EscapableP"
25784
+ },
25785
+ {
25786
+ "kind": "Conformance",
25787
+ "name": "Equatable",
25788
+ "printedName": "Equatable",
25789
+ "usr": "s:SQ",
25790
+ "mangledName": "$sSQ"
25791
+ },
25792
+ {
25793
+ "kind": "Conformance",
25794
+ "name": "Hashable",
25795
+ "printedName": "Hashable",
25796
+ "usr": "s:SH",
25797
+ "mangledName": "$sSH"
25798
+ },
25799
+ {
25800
+ "kind": "Conformance",
25801
+ "name": "CVarArg",
25802
+ "printedName": "CVarArg",
25803
+ "usr": "s:s7CVarArgP",
25804
+ "mangledName": "$ss7CVarArgP"
25805
+ },
25806
+ {
25807
+ "kind": "Conformance",
25808
+ "name": "_KeyValueCodingAndObservingPublishing",
25809
+ "printedName": "_KeyValueCodingAndObservingPublishing",
25810
+ "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP",
25811
+ "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP"
25812
+ },
25813
+ {
25814
+ "kind": "Conformance",
25815
+ "name": "_KeyValueCodingAndObserving",
25816
+ "printedName": "_KeyValueCodingAndObserving",
25817
+ "usr": "s:10Foundation27_KeyValueCodingAndObservingP",
25818
+ "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP"
25819
+ },
25820
+ {
25821
+ "kind": "Conformance",
25822
+ "name": "CustomStringConvertible",
25823
+ "printedName": "CustomStringConvertible",
25824
+ "usr": "s:s23CustomStringConvertibleP",
25825
+ "mangledName": "$ss23CustomStringConvertibleP"
25826
+ },
25827
+ {
25828
+ "kind": "Conformance",
25829
+ "name": "CustomDebugStringConvertible",
25830
+ "printedName": "CustomDebugStringConvertible",
25831
+ "usr": "s:s28CustomDebugStringConvertibleP",
25832
+ "mangledName": "$ss28CustomDebugStringConvertibleP"
25833
+ }
25834
+ ]
25835
+ },
25662
25836
  {
25663
25837
  "kind": "Import",
25664
25838
  "name": "Foundation",
@@ -31813,6 +31987,13 @@
31813
31987
  "declKind": "Import",
31814
31988
  "moduleName": "GSSDK"
31815
31989
  },
31990
+ {
31991
+ "kind": "Import",
31992
+ "name": "UIKit",
31993
+ "printedName": "UIKit",
31994
+ "declKind": "Import",
31995
+ "moduleName": "GSSDK"
31996
+ },
31816
31997
  {
31817
31998
  "kind": "Import",
31818
31999
  "name": "AVFoundation",
@@ -40387,6 +40568,13 @@
40387
40568
  "length": 4,
40388
40569
  "value": "true"
40389
40570
  },
40571
+ {
40572
+ "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/GSKScanFlowFeatureFlags.swift",
40573
+ "kind": "StringLiteral",
40574
+ "offset": 574,
40575
+ "length": 18,
40576
+ "value": "\"improvedScanFlow\""
40577
+ },
40390
40578
  {
40391
40579
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowConfiguration.swift",
40392
40580
  "kind": "BooleanLiteral",
@@ -40796,14 +40984,14 @@
40796
40984
  {
40797
40985
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Utils\/UIButton+iOS26.swift",
40798
40986
  "kind": "BooleanLiteral",
40799
- "offset": 469,
40987
+ "offset": 518,
40800
40988
  "length": 4,
40801
40989
  "value": "true"
40802
40990
  },
40803
40991
  {
40804
40992
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Utils\/UIButton+iOS26.swift",
40805
40993
  "kind": "BooleanLiteral",
40806
- "offset": 2440,
40994
+ "offset": 2791,
40807
40995
  "length": 5,
40808
40996
  "value": "false"
40809
40997
  },
@@ -40926,24 +41114,31 @@
40926
41114
  "length": 1,
40927
41115
  "value": "0"
40928
41116
  },
41117
+ {
41118
+ "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/View Controllers\/GSKUIDocumentCameraViewController.swift",
41119
+ "kind": "IntegerLiteral",
41120
+ "offset": 1266,
41121
+ "length": 1,
41122
+ "value": "1"
41123
+ },
40929
41124
  {
40930
41125
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/View Controllers\/GSKUIDocumentCameraViewController.swift",
40931
41126
  "kind": "FloatLiteral",
40932
- "offset": 5153,
41127
+ "offset": 6489,
40933
41128
  "length": 4,
40934
41129
  "value": "62.0"
40935
41130
  },
40936
41131
  {
40937
41132
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/View Controllers\/GSKUIDocumentCameraViewController.swift",
40938
41133
  "kind": "FloatLiteral",
40939
- "offset": 5257,
41134
+ "offset": 6593,
40940
41135
  "length": 4,
40941
41136
  "value": "44.0"
40942
41137
  },
40943
41138
  {
40944
41139
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/View Controllers\/GSKUIEditFrameViewController.swift",
40945
41140
  "kind": "Array",
40946
- "offset": 2871,
41141
+ "offset": 3473,
40947
41142
  "length": 66,
40948
41143
  "value": "[\\.<NOT_IMPLEMENTED>, \\.<NOT_IMPLEMENTED>, \\.<NOT_IMPLEMENTED>, \\.<NOT_IMPLEMENTED>]"
40949
41144
  },
@@ -40964,42 +41159,42 @@
40964
41159
  {
40965
41160
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/View Controllers\/GSKUIPostProcessingViewController.swift",
40966
41161
  "kind": "IntegerLiteral",
40967
- "offset": 12731,
41162
+ "offset": 13017,
40968
41163
  "length": 1,
40969
41164
  "value": "0"
40970
41165
  },
40971
41166
  {
40972
41167
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/View Controllers\/GSKUIPostProcessingViewController.swift",
40973
41168
  "kind": "IntegerLiteral",
40974
- "offset": 12737,
41169
+ "offset": 13023,
40975
41170
  "length": 1,
40976
41171
  "value": "0"
40977
41172
  },
40978
41173
  {
40979
41174
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/View Controllers\/GSKUIPostProcessingViewController.swift",
40980
41175
  "kind": "IntegerLiteral",
40981
- "offset": 12747,
41176
+ "offset": 13033,
40982
41177
  "length": 3,
40983
41178
  "value": "320"
40984
41179
  },
40985
41180
  {
40986
41181
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/View Controllers\/GSKUIPostProcessingViewController.swift",
40987
41182
  "kind": "IntegerLiteral",
40988
- "offset": 12760,
41183
+ "offset": 13046,
40989
41184
  "length": 2,
40990
41185
  "value": "44"
40991
41186
  },
40992
41187
  {
40993
41188
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/View Controllers\/GSKUIPostProcessingViewController.swift",
40994
41189
  "kind": "IntegerLiteral",
40995
- "offset": 12811,
41190
+ "offset": 13097,
40996
41191
  "length": 2,
40997
41192
  "value": "12"
40998
41193
  },
40999
41194
  {
41000
41195
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/View Controllers\/GSKUIPostProcessingViewController.swift",
41001
41196
  "kind": "BooleanLiteral",
41002
- "offset": 13060,
41197
+ "offset": 13346,
41003
41198
  "length": 5,
41004
41199
  "value": "false"
41005
41200
  },
@@ -41017,6 +41212,20 @@
41017
41212
  "length": 1,
41018
41213
  "value": "0"
41019
41214
  },
41215
+ {
41216
+ "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Views\/GSKUIScanCollectionView.swift",
41217
+ "kind": "IntegerLiteral",
41218
+ "offset": 515,
41219
+ "length": 1,
41220
+ "value": "2"
41221
+ },
41222
+ {
41223
+ "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Views\/GSKUIScanCollectionView.swift",
41224
+ "kind": "StringLiteral",
41225
+ "offset": 2753,
41226
+ "length": 30,
41227
+ "value": "\"GSKUIScanCollectionView.Cell\""
41228
+ },
41020
41229
  {
41021
41230
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Views\/GSKUIShutterButton.swift",
41022
41231
  "kind": "StringLiteral",
@@ -41055,7 +41264,7 @@
41055
41264
  {
41056
41265
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Views\/GSKUIToolbar.swift",
41057
41266
  "kind": "IntegerLiteral",
41058
- "offset": 3437,
41267
+ "offset": 3469,
41059
41268
  "length": 1,
41060
41269
  "value": "0"
41061
41270
  },
@@ -41069,28 +41278,28 @@
41069
41278
  {
41070
41279
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Views\/GSKUserGuidanceLabel.swift",
41071
41280
  "kind": "IntegerLiteral",
41072
- "offset": 2164,
41281
+ "offset": 2286,
41073
41282
  "length": 1,
41074
41283
  "value": "3"
41075
41284
  },
41076
41285
  {
41077
41286
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Views\/GSKUserGuidanceLabel.swift",
41078
41287
  "kind": "FloatLiteral",
41079
- "offset": 2243,
41288
+ "offset": 2365,
41080
41289
  "length": 3,
41081
41290
  "value": "5.0"
41082
41291
  },
41083
41292
  {
41084
41293
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Views\/GSKUserGuidanceLabel.swift",
41085
41294
  "kind": "IntegerLiteral",
41086
- "offset": 2300,
41295
+ "offset": 2422,
41087
41296
  "length": 1,
41088
41297
  "value": "2"
41089
41298
  },
41090
41299
  {
41091
41300
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Views\/GSKUserGuidanceLabel.swift",
41092
41301
  "kind": "IntegerLiteral",
41093
- "offset": 2349,
41302
+ "offset": 2471,
41094
41303
  "length": 2,
41095
41304
  "value": "20"
41096
41305
  },
@@ -889,6 +889,11 @@ public struct GSKScanFlowError : Swift.Error {
889
889
  get
890
890
  }
891
891
  }
892
+ @objc @_inheritsConvenienceInitializers @objcMembers final public class GSKScanFlowErrorCodeBridge : ObjectiveC.NSObject {
893
+ @objc public static func stringCode(forRawValue rawValue: Swift.Int) -> Swift.String
894
+ @objc override dynamic public init()
895
+ @objc deinit
896
+ }
892
897
  extension GSSDK.GSKScanFlowError : Foundation.CustomNSError {
893
898
  public static let errorDomain: Swift.String
894
899
  public var errorCode: Swift.Int {
@@ -889,6 +889,11 @@ public struct GSKScanFlowError : Swift.Error {
889
889
  get
890
890
  }
891
891
  }
892
+ @objc @_inheritsConvenienceInitializers @objcMembers final public class GSKScanFlowErrorCodeBridge : ObjectiveC.NSObject {
893
+ @objc public static func stringCode(forRawValue rawValue: Swift.Int) -> Swift.String
894
+ @objc override dynamic public init()
895
+ @objc deinit
896
+ }
892
897
  extension GSSDK.GSKScanFlowError : Foundation.CustomNSError {
893
898
  public static let errorDomain: Swift.String
894
899
  public var errorCode: Swift.Int {
@@ -0,0 +1,11 @@
1
+ #import <Foundation/Foundation.h>
2
+
3
+ NS_ASSUME_NONNULL_BEGIN
4
+
5
+ @interface GSKScanFlowErrorPayload : NSObject
6
+
7
+ + (NSDictionary<NSString *, NSString *> *)payloadFromNSError:(NSError *)error;
8
+
9
+ @end
10
+
11
+ NS_ASSUME_NONNULL_END
@@ -1379,6 +1379,12 @@ typedef SWIFT_ENUM(NSInteger, GSKScanFlowErrorCode, open) {
1379
1379
  GSKScanFlowInternalErrorCode SWIFT_COMPILE_NAME("internal") = 9999,
1380
1380
  };
1381
1381
 
1382
+ SWIFT_CLASS("_TtC5GSSDK26GSKScanFlowErrorCodeBridge")
1383
+ @interface GSKScanFlowErrorCodeBridge : NSObject
1384
+ + (NSString * _Nonnull)stringCodeForRawValue:(NSInteger)rawValue SWIFT_WARN_UNUSED_RESULT;
1385
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1386
+ @end
1387
+
1382
1388
  /// The different possible filters for the scanner UI.
1383
1389
  /// Each case maps to a predefined filter configuration except <code>.automatic</code>.
1384
1390
  typedef SWIFT_ENUM(NSInteger, GSKScanFlowFilterType, open) {
@@ -3098,6 +3104,12 @@ typedef SWIFT_ENUM(NSInteger, GSKScanFlowErrorCode, open) {
3098
3104
  GSKScanFlowInternalErrorCode SWIFT_COMPILE_NAME("internal") = 9999,
3099
3105
  };
3100
3106
 
3107
+ SWIFT_CLASS("_TtC5GSSDK26GSKScanFlowErrorCodeBridge")
3108
+ @interface GSKScanFlowErrorCodeBridge : NSObject
3109
+ + (NSString * _Nonnull)stringCodeForRawValue:(NSInteger)rawValue SWIFT_WARN_UNUSED_RESULT;
3110
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
3111
+ @end
3112
+
3101
3113
  /// The different possible filters for the scanner UI.
3102
3114
  /// Each case maps to a predefined filter configuration except <code>.automatic</code>.
3103
3115
  typedef SWIFT_ENUM(NSInteger, GSKScanFlowFilterType, open) {
@@ -36,6 +36,7 @@ FOUNDATION_EXPORT const unsigned char GSSDKVersionString[];
36
36
  #import <GSSDK/GSKRotationConfiguration.h>
37
37
  #import <GSSDK/GSKScan.h>
38
38
  #import <GSSDK/GSKScanFlowErrorDomain.h>
39
+ #import <GSSDK/GSKScanFlowError+PluginPayload.h>
39
40
  #import <GSSDK/GSKScanFlowOCROutputFormats.h>
40
41
  #import <GSSDK/GSKScanFlowPostProcessingActions.h>
41
42
  #import <GSSDK/GSKScanFlowStructuredData.h>