@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.
- package/README.md +21 -0
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/geniusscansdk/reactnative/RNGeniusScanModule.java +6 -1
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanFlowError+PluginPayload.h +11 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +6 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK.h +1 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Info.plist +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.abi.json +315 -43
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +5 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftinterface +5 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/en.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanFlowError+PluginPayload.h +11 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +12 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK.h +1 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Info.plist +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +315 -43
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +5 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +5 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +315 -43
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +5 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +5 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/en.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
- package/ios/RNGeniusScan.m +22 -7
- package/package.json +1 -1
|
@@ -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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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\/
|
|
41230
|
+
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/View Controllers\/GSKUIReviewViewController.swift",
|
|
41001
41231
|
"kind": "BooleanLiteral",
|
|
41002
|
-
"offset":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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 {
|
|
Binary file
|
|
Binary file
|
package/ios/RNGeniusScan.m
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
@property (nonatomic, strong) GSKScanFlow *scanner;
|
|
11
11
|
@property (nonatomic, strong) GSKBarcodeScanFlow *barcodeScanner;
|
|
12
12
|
- (void)presentViewController:(UIViewController *)viewController rejecter:(RCTPromiseRejectBlock)reject;
|
|
13
|
+
- (void)rejectWithError:(NSError *)error rejecter:(RCTPromiseRejectBlock)reject;
|
|
13
14
|
@end
|
|
14
15
|
|
|
15
16
|
@implementation RNGeniusScan
|
|
@@ -31,6 +32,19 @@
|
|
|
31
32
|
});
|
|
32
33
|
}
|
|
33
34
|
|
|
35
|
+
- (NSError *)fallbackInternalErrorWithMessage:(NSString *)message {
|
|
36
|
+
return [NSError errorWithDomain:GSKScanFlowErrorDomain
|
|
37
|
+
code:GSKScanFlowInternalErrorCode
|
|
38
|
+
userInfo:@{ NSLocalizedDescriptionKey: message ?: @"" }];
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
- (void)rejectWithError:(NSError *)error rejecter:(RCTPromiseRejectBlock)reject {
|
|
42
|
+
NSDictionary<NSString *, NSString *> *payload = [GSKScanFlowErrorPayload payloadFromNSError:error];
|
|
43
|
+
NSMutableDictionary<NSString *, id> *userInfo = [payload mutableCopy];
|
|
44
|
+
NSError *wrappedError = [NSError errorWithDomain:error.domain code:error.code userInfo:userInfo];
|
|
45
|
+
reject(payload[@"code"], payload[@"message"], wrappedError);
|
|
46
|
+
}
|
|
47
|
+
|
|
34
48
|
RCT_EXPORT_MODULE();
|
|
35
49
|
|
|
36
50
|
RCT_EXPORT_METHOD(setLicenseKey:(NSString *)licenseKey autoRefresh:(BOOL)autoRefresh resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) {
|
|
@@ -46,7 +60,7 @@ RCT_EXPORT_METHOD(scanWithConfiguration:(NSDictionary *)scanOptions
|
|
|
46
60
|
NSError *error = nil;
|
|
47
61
|
GSKScanFlowConfiguration *configuration = [GSKScanFlowConfiguration configurationWithDictionary:scanOptions error:&error];
|
|
48
62
|
if (!configuration) {
|
|
49
|
-
|
|
63
|
+
[self rejectWithError:error rejecter:reject];
|
|
50
64
|
return;
|
|
51
65
|
}
|
|
52
66
|
|
|
@@ -58,7 +72,7 @@ RCT_EXPORT_METHOD(scanWithConfiguration:(NSDictionary *)scanOptions
|
|
|
58
72
|
[self.scanner startFromViewController:root onSuccess:^(GSKScanFlowResult * _Nonnull result) {
|
|
59
73
|
resolve([result dictionary]);
|
|
60
74
|
} failure:^(NSError *error) {
|
|
61
|
-
|
|
75
|
+
[self rejectWithError:error rejecter:reject];
|
|
62
76
|
}];
|
|
63
77
|
}
|
|
64
78
|
@catch (NSException *exception) {
|
|
@@ -75,13 +89,13 @@ RCT_EXPORT_METHOD(generateDocument:(NSDictionary *)documentDictionary
|
|
|
75
89
|
NSError *error = nil;
|
|
76
90
|
GSKDocumentGeneratorConfiguration *configuration = [[GSKDocumentGeneratorConfiguration alloc] initWithDictionary:configurationDictionary error:&error];
|
|
77
91
|
if (!configuration) {
|
|
78
|
-
|
|
92
|
+
[self rejectWithError:error rejecter:reject];
|
|
79
93
|
return;
|
|
80
94
|
}
|
|
81
95
|
|
|
82
96
|
GSKPDFDocument *document = [[GSKPDFDocument alloc] initWithDictionary:documentDictionary error:&error];
|
|
83
97
|
if (!document) {
|
|
84
|
-
|
|
98
|
+
[self rejectWithError:error rejecter:reject];
|
|
85
99
|
return;
|
|
86
100
|
}
|
|
87
101
|
|
|
@@ -89,7 +103,8 @@ RCT_EXPORT_METHOD(generateDocument:(NSDictionary *)documentDictionary
|
|
|
89
103
|
if (success) {
|
|
90
104
|
resolve(nil);
|
|
91
105
|
} else {
|
|
92
|
-
|
|
106
|
+
NSError *finalError = error ?: [self fallbackInternalErrorWithMessage:@"Document generation failed."];
|
|
107
|
+
[self rejectWithError:finalError rejecter:reject];
|
|
93
108
|
}
|
|
94
109
|
}
|
|
95
110
|
|
|
@@ -100,7 +115,7 @@ RCT_EXPORT_METHOD(scanBarcodesWithConfiguration:(NSDictionary *)configuration
|
|
|
100
115
|
NSError *error = nil;
|
|
101
116
|
GSKBarcodeScanFlowConfiguration *barcodeConfiguration = [GSKBarcodeScanFlowConfiguration configurationWithDictionary:configuration error:&error];
|
|
102
117
|
if (!barcodeConfiguration) {
|
|
103
|
-
|
|
118
|
+
[self rejectWithError:error rejecter:reject];
|
|
104
119
|
return;
|
|
105
120
|
}
|
|
106
121
|
|
|
@@ -112,7 +127,7 @@ RCT_EXPORT_METHOD(scanBarcodesWithConfiguration:(NSDictionary *)configuration
|
|
|
112
127
|
[self.barcodeScanner startFromViewController:root success:^(GSKBarcodeScanFlowResult * _Nonnull result) {
|
|
113
128
|
resolve([result dictionary]);
|
|
114
129
|
} failure:^(NSError * _Nonnull error) {
|
|
115
|
-
|
|
130
|
+
[self rejectWithError:error rejecter:reject];
|
|
116
131
|
}];
|
|
117
132
|
}
|
|
118
133
|
@catch (NSException *exception) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thegrizzlylabs/react-native-genius-scan",
|
|
3
|
-
"version": "6.0.0-
|
|
3
|
+
"version": "6.0.0-beta05",
|
|
4
4
|
"description": "React Native Plugin for Genius Scan SDK",
|
|
5
5
|
"author": "TheGrizzlyLabs <sdk@thegrizzlylabs.com> (https://www.thegrizzlylabs.com/)",
|
|
6
6
|
"homepage": "https://geniusscansdk.com",
|