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

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 (28) 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/ios-arm64/GSSDK.framework/GSSDK +0 -0
  5. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanFlowError+PluginPayload.h +11 -0
  6. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +6 -0
  7. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK.h +1 -0
  8. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Info.plist +0 -0
  9. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.abi.json +315 -43
  10. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +5 -0
  11. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftinterface +5 -0
  12. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/en.lproj/GSSDK.strings +0 -0
  13. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
  14. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK +0 -0
  15. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanFlowError+PluginPayload.h +11 -0
  16. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +12 -0
  17. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK.h +1 -0
  18. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Info.plist +0 -0
  19. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +315 -43
  20. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +5 -0
  21. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +5 -0
  22. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +315 -43
  23. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +5 -0
  24. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +5 -0
  25. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/en.lproj/GSSDK.strings +0 -0
  26. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
  27. package/ios/RNGeniusScan.m +22 -7
  28. 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-beta05'
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 {
@@ -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",
@@ -30990,6 +31164,34 @@
30990
31164
  "declKind": "Import",
30991
31165
  "moduleName": "GSSDK"
30992
31166
  },
31167
+ {
31168
+ "kind": "Import",
31169
+ "name": "Foundation",
31170
+ "printedName": "Foundation",
31171
+ "declKind": "Import",
31172
+ "moduleName": "GSSDK"
31173
+ },
31174
+ {
31175
+ "kind": "Import",
31176
+ "name": "UIKit",
31177
+ "printedName": "UIKit",
31178
+ "declKind": "Import",
31179
+ "moduleName": "GSSDK"
31180
+ },
31181
+ {
31182
+ "kind": "Import",
31183
+ "name": "UIKit",
31184
+ "printedName": "UIKit",
31185
+ "declKind": "Import",
31186
+ "moduleName": "GSSDK"
31187
+ },
31188
+ {
31189
+ "kind": "Import",
31190
+ "name": "Combine",
31191
+ "printedName": "Combine",
31192
+ "declKind": "Import",
31193
+ "moduleName": "GSSDK"
31194
+ },
30993
31195
  {
30994
31196
  "kind": "Import",
30995
31197
  "name": "UIKit",
@@ -30997,6 +31199,13 @@
30997
31199
  "declKind": "Import",
30998
31200
  "moduleName": "GSSDK"
30999
31201
  },
31202
+ {
31203
+ "kind": "Import",
31204
+ "name": "Foundation",
31205
+ "printedName": "Foundation",
31206
+ "declKind": "Import",
31207
+ "moduleName": "GSSDK"
31208
+ },
31000
31209
  {
31001
31210
  "kind": "Import",
31002
31211
  "name": "Foundation",
@@ -31792,6 +32001,27 @@
31792
32001
  "declKind": "Import",
31793
32002
  "moduleName": "GSSDK"
31794
32003
  },
32004
+ {
32005
+ "kind": "Import",
32006
+ "name": "AVFoundation",
32007
+ "printedName": "AVFoundation",
32008
+ "declKind": "Import",
32009
+ "moduleName": "GSSDK"
32010
+ },
32011
+ {
32012
+ "kind": "Import",
32013
+ "name": "UIKit",
32014
+ "printedName": "UIKit",
32015
+ "declKind": "Import",
32016
+ "moduleName": "GSSDK"
32017
+ },
32018
+ {
32019
+ "kind": "Import",
32020
+ "name": "UIKit",
32021
+ "printedName": "UIKit",
32022
+ "declKind": "Import",
32023
+ "moduleName": "GSSDK"
32024
+ },
31795
32025
  {
31796
32026
  "kind": "Import",
31797
32027
  "name": "UIKit",
@@ -40387,6 +40617,20 @@
40387
40617
  "length": 4,
40388
40618
  "value": "true"
40389
40619
  },
40620
+ {
40621
+ "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/GSKScanFlowFeatureFlags.swift",
40622
+ "kind": "BooleanLiteral",
40623
+ "offset": 589,
40624
+ "length": 4,
40625
+ "value": "true"
40626
+ },
40627
+ {
40628
+ "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/GSKScanFlowFeatureFlags.swift",
40629
+ "kind": "StringLiteral",
40630
+ "offset": 540,
40631
+ "length": 18,
40632
+ "value": "\"improvedScanFlow\""
40633
+ },
40390
40634
  {
40391
40635
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowConfiguration.swift",
40392
40636
  "kind": "BooleanLiteral",
@@ -40796,14 +41040,14 @@
40796
41040
  {
40797
41041
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Utils\/UIButton+iOS26.swift",
40798
41042
  "kind": "BooleanLiteral",
40799
- "offset": 469,
41043
+ "offset": 518,
40800
41044
  "length": 4,
40801
41045
  "value": "true"
40802
41046
  },
40803
41047
  {
40804
41048
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Utils\/UIButton+iOS26.swift",
40805
41049
  "kind": "BooleanLiteral",
40806
- "offset": 2440,
41050
+ "offset": 2791,
40807
41051
  "length": 5,
40808
41052
  "value": "false"
40809
41053
  },
@@ -40926,80 +41170,66 @@
40926
41170
  "length": 1,
40927
41171
  "value": "0"
40928
41172
  },
41173
+ {
41174
+ "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/View Controllers\/GSKUIDocumentCameraViewController.swift",
41175
+ "kind": "IntegerLiteral",
41176
+ "offset": 1266,
41177
+ "length": 1,
41178
+ "value": "1"
41179
+ },
40929
41180
  {
40930
41181
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/View Controllers\/GSKUIDocumentCameraViewController.swift",
40931
41182
  "kind": "FloatLiteral",
40932
- "offset": 5153,
41183
+ "offset": 7273,
40933
41184
  "length": 4,
40934
41185
  "value": "62.0"
40935
41186
  },
40936
41187
  {
40937
41188
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/View Controllers\/GSKUIDocumentCameraViewController.swift",
40938
41189
  "kind": "FloatLiteral",
40939
- "offset": 5257,
41190
+ "offset": 7377,
40940
41191
  "length": 4,
40941
41192
  "value": "44.0"
40942
41193
  },
40943
41194
  {
40944
41195
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/View Controllers\/GSKUIEditFrameViewController.swift",
40945
41196
  "kind": "Array",
40946
- "offset": 2871,
41197
+ "offset": 3473,
40947
41198
  "length": 66,
40948
41199
  "value": "[\\.<NOT_IMPLEMENTED>, \\.<NOT_IMPLEMENTED>, \\.<NOT_IMPLEMENTED>, \\.<NOT_IMPLEMENTED>]"
40949
41200
  },
41201
+ {
41202
+ "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/View Controllers\/GSKUIPostProcessingToolbarController.swift",
41203
+ "kind": "BooleanLiteral",
41204
+ "offset": 5791,
41205
+ "length": 5,
41206
+ "value": "false"
41207
+ },
40950
41208
  {
40951
41209
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/View Controllers\/GSKUIPostProcessingViewController.swift",
40952
41210
  "kind": "BooleanLiteral",
40953
- "offset": 1457,
41211
+ "offset": 1209,
40954
41212
  "length": 4,
40955
41213
  "value": "true"
40956
41214
  },
40957
41215
  {
40958
41216
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/View Controllers\/GSKUIPostProcessingViewController.swift",
40959
41217
  "kind": "FloatLiteral",
40960
- "offset": 1519,
41218
+ "offset": 1271,
40961
41219
  "length": 3,
40962
41220
  "value": "0.5"
40963
41221
  },
40964
41222
  {
40965
41223
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/View Controllers\/GSKUIPostProcessingViewController.swift",
40966
41224
  "kind": "IntegerLiteral",
40967
- "offset": 12731,
40968
- "length": 1,
40969
- "value": "0"
40970
- },
40971
- {
40972
- "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/View Controllers\/GSKUIPostProcessingViewController.swift",
40973
- "kind": "IntegerLiteral",
40974
- "offset": 12737,
40975
- "length": 1,
40976
- "value": "0"
40977
- },
40978
- {
40979
- "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/View Controllers\/GSKUIPostProcessingViewController.swift",
40980
- "kind": "IntegerLiteral",
40981
- "offset": 12747,
40982
- "length": 3,
40983
- "value": "320"
40984
- },
40985
- {
40986
- "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/View Controllers\/GSKUIPostProcessingViewController.swift",
40987
- "kind": "IntegerLiteral",
40988
- "offset": 12760,
40989
- "length": 2,
40990
- "value": "44"
40991
- },
40992
- {
40993
- "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/View Controllers\/GSKUIPostProcessingViewController.swift",
40994
- "kind": "IntegerLiteral",
40995
- "offset": 12811,
41225
+ "offset": 4310,
40996
41226
  "length": 2,
40997
41227
  "value": "12"
40998
41228
  },
40999
41229
  {
41000
- "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/View Controllers\/GSKUIPostProcessingViewController.swift",
41230
+ "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/View Controllers\/GSKUIReviewViewController.swift",
41001
41231
  "kind": "BooleanLiteral",
41002
- "offset": 13060,
41232
+ "offset": 662,
41003
41233
  "length": 5,
41004
41234
  "value": "false"
41005
41235
  },
@@ -41017,6 +41247,13 @@
41017
41247
  "length": 1,
41018
41248
  "value": "0"
41019
41249
  },
41250
+ {
41251
+ "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Views\/GSKUIScanCollectionView.swift",
41252
+ "kind": "StringLiteral",
41253
+ "offset": 5179,
41254
+ "length": 30,
41255
+ "value": "\"GSKUIScanCollectionView.Cell\""
41256
+ },
41020
41257
  {
41021
41258
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Views\/GSKUIShutterButton.swift",
41022
41259
  "kind": "StringLiteral",
@@ -41045,6 +41282,41 @@
41045
41282
  "length": 11,
41046
41283
  "value": "\"strokeEnd\""
41047
41284
  },
41285
+ {
41286
+ "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Views\/GSKUIThumbnailView.swift",
41287
+ "kind": "IntegerLiteral",
41288
+ "offset": 1257,
41289
+ "length": 1,
41290
+ "value": "0"
41291
+ },
41292
+ {
41293
+ "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Views\/GSKUIThumbnailView.swift",
41294
+ "kind": "IntegerLiteral",
41295
+ "offset": 3007,
41296
+ "length": 1,
41297
+ "value": "1"
41298
+ },
41299
+ {
41300
+ "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Views\/GSKUIThumbnailView.swift",
41301
+ "kind": "BooleanLiteral",
41302
+ "offset": 3287,
41303
+ "length": 4,
41304
+ "value": "true"
41305
+ },
41306
+ {
41307
+ "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Views\/GSKUIThumbnailView.swift",
41308
+ "kind": "BooleanLiteral",
41309
+ "offset": 3408,
41310
+ "length": 4,
41311
+ "value": "true"
41312
+ },
41313
+ {
41314
+ "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Views\/GSKUIThumbnailView.swift",
41315
+ "kind": "IntegerLiteral",
41316
+ "offset": 3519,
41317
+ "length": 1,
41318
+ "value": "0"
41319
+ },
41048
41320
  {
41049
41321
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Views\/GSKUIToolbar.swift",
41050
41322
  "kind": "IntegerLiteral",
@@ -41055,7 +41327,7 @@
41055
41327
  {
41056
41328
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Views\/GSKUIToolbar.swift",
41057
41329
  "kind": "IntegerLiteral",
41058
- "offset": 3437,
41330
+ "offset": 3469,
41059
41331
  "length": 1,
41060
41332
  "value": "0"
41061
41333
  },
@@ -41069,28 +41341,28 @@
41069
41341
  {
41070
41342
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Views\/GSKUserGuidanceLabel.swift",
41071
41343
  "kind": "IntegerLiteral",
41072
- "offset": 2164,
41344
+ "offset": 2286,
41073
41345
  "length": 1,
41074
41346
  "value": "3"
41075
41347
  },
41076
41348
  {
41077
41349
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Views\/GSKUserGuidanceLabel.swift",
41078
41350
  "kind": "FloatLiteral",
41079
- "offset": 2243,
41351
+ "offset": 2365,
41080
41352
  "length": 3,
41081
41353
  "value": "5.0"
41082
41354
  },
41083
41355
  {
41084
41356
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Views\/GSKUserGuidanceLabel.swift",
41085
41357
  "kind": "IntegerLiteral",
41086
- "offset": 2300,
41358
+ "offset": 2422,
41087
41359
  "length": 1,
41088
41360
  "value": "2"
41089
41361
  },
41090
41362
  {
41091
41363
  "filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Views\/GSKUserGuidanceLabel.swift",
41092
41364
  "kind": "IntegerLiteral",
41093
- "offset": 2349,
41365
+ "offset": 2471,
41094
41366
  "length": 2,
41095
41367
  "value": "20"
41096
41368
  },
@@ -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) {