@thegrizzlylabs/react-native-genius-scan 5.0.0-beta8 → 5.0.0-beta9
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/android/build.gradle +1 -1
- package/android/src/main/java/com/geniusscansdk/reactnative/RNGeniusScanModule.java +0 -7
- package/index.js +0 -7
- package/ios/GSSDK/GSSDK.xcframework/Info.plist +5 -5
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK_GSSDKObjC.bundle/backbone.tflite +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK_GSSDKObjC.bundle/head_classif.tflite +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKCore.h +0 -19
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKLicenseKeyChecker.h +24 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +0 -1
- 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 +24 -89
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -4
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftinterface +0 -4
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/backbone.tflite +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/head_classif.tflite +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/GSSDK_GSSDKObjC.bundle/backbone.tflite +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK_GSSDKObjC.bundle/head_classif.tflite +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKCore.h +0 -19
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKLicenseKeyChecker.h +24 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +0 -2
- 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 +24 -89
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -4
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -4
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +24 -89
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +0 -4
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +0 -4
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/backbone.tflite +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/head_classif.tflite +0 -0
- package/ios/RNGeniusScan.m +0 -11
- package/package.json +1 -1
package/android/build.gradle
CHANGED
|
@@ -78,11 +78,4 @@ public class RNGeniusScanModule extends ReactContextBaseJavaModule {
|
|
|
78
78
|
PluginBridge.setLicenseKey(this.reactContext, licenseKey, autoRefresh);
|
|
79
79
|
promise.resolve(null);
|
|
80
80
|
}
|
|
81
|
-
|
|
82
|
-
@SuppressWarnings("unused")
|
|
83
|
-
@ReactMethod
|
|
84
|
-
public void setLicenceKey(String licenseKey, Promise promise) {
|
|
85
|
-
PromiseResult promiseResult = PluginBridge.setLicenseKey(this.reactContext, licenseKey);
|
|
86
|
-
resolvePromiseWithPromiseResult(promise, promiseResult);
|
|
87
|
-
}
|
|
88
81
|
}
|
package/index.js
CHANGED
|
@@ -7,12 +7,5 @@ const { RNGeniusScan } = NativeModules;
|
|
|
7
7
|
export default {
|
|
8
8
|
scanWithConfiguration: (scanOptions = {}) => RNGeniusScan.scanWithConfiguration(scanOptions),
|
|
9
9
|
generateDocument: RNGeniusScan.generateDocument,
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated
|
|
12
|
-
*/
|
|
13
|
-
setLicenceKey: (key) => {
|
|
14
|
-
console.warn("setLicenceKey is deprecated. Please use setLicenseKey instead.")
|
|
15
|
-
RNGeniusScan.setLicenceKey(key)
|
|
16
|
-
},
|
|
17
10
|
setLicenseKey: RNGeniusScan.setLicenseKey
|
|
18
11
|
};
|
|
@@ -10,15 +10,18 @@
|
|
|
10
10
|
<key>DebugSymbolsPath</key>
|
|
11
11
|
<string>dSYMs</string>
|
|
12
12
|
<key>LibraryIdentifier</key>
|
|
13
|
-
<string>ios-
|
|
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-
|
|
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>
|
|
Binary file
|
package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK_GSSDKObjC.bundle/backbone.tflite
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -24,25 +24,6 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
24
24
|
*/
|
|
25
25
|
@interface GSK : NSObject
|
|
26
26
|
|
|
27
|
-
/**
|
|
28
|
-
Must be called first with a valid license key to enable the SDK.
|
|
29
|
-
|
|
30
|
-
This method returns an error if the SDK isn't initialized properly. In addition, all other SDK methods that return errors will report an error if there
|
|
31
|
-
is a problem with the license key, and you must handle them to ensure you provide a good "degraded" experience.
|
|
32
|
-
For instance, you can prompt the user to update the application to use the scanning feature in case they use a version of the application with an expired license key.
|
|
33
|
-
|
|
34
|
-
This method is deprecated in favor of `setLicenseKey:autoRefresh:`.
|
|
35
|
-
|
|
36
|
-
@warning *Important* This method must be called before any use of the SDK methods.
|
|
37
|
-
|
|
38
|
-
@param licenseKey The license key
|
|
39
|
-
@param error On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information.
|
|
40
|
-
You may specify nil for this parameter if you do not want the error information.
|
|
41
|
-
|
|
42
|
-
@return YES if the SDK was initialized successfully, NO if an error occured.
|
|
43
|
-
*/
|
|
44
|
-
+ (BOOL)initWithLicenseKey:(NSString *)licenseKey error:(NSError * _Nullable *)error __deprecated_msg("-setLicenseKey:autoRefresh: instead.");
|
|
45
|
-
|
|
46
27
|
/// Sets the Genius Scan SDK license key with auto-refresh enabled.
|
|
47
28
|
///
|
|
48
29
|
/// See `setLicenseKey:autoRefresh:`
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//
|
|
2
|
+
// GSKLicenseKeyChecker.h
|
|
3
|
+
// GSSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Bruno Virlet on 15/03/2024.
|
|
6
|
+
// Copyright © 2024 The Grizzly Labs. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
@interface GSKLicenseKeyChecker : NSObject
|
|
14
|
+
|
|
15
|
+
+ (BOOL)checkLicenseWithError:(NSError *__autoreleasing _Nullable * _Nullable)error;
|
|
16
|
+
|
|
17
|
+
#if DEBUG
|
|
18
|
+
/// Enables simulating an invalid license in the tests.
|
|
19
|
+
@property (nonatomic, class, assign) BOOL simulateInvalid;
|
|
20
|
+
#endif
|
|
21
|
+
|
|
22
|
+
@end
|
|
23
|
+
|
|
24
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -744,7 +744,6 @@ SWIFT_CLASS("_TtC5GSSDK17GSKScanFlowResult")
|
|
|
744
744
|
|
|
745
745
|
|
|
746
746
|
@interface GSKScanFlowResult (SWIFT_EXTENSION(GSSDK))
|
|
747
|
-
@property (nonatomic, readonly, copy) NSURL * _Nullable pdfURL SWIFT_DEPRECATED_MSG("Use multiPageDocumentURL instead");
|
|
748
747
|
/// A dictionary representation of the result.
|
|
749
748
|
/// Convenient for interfacing with React Native, probably no reason to
|
|
750
749
|
/// use it with native code.
|
|
Binary file
|
|
@@ -13489,71 +13489,6 @@
|
|
|
13489
13489
|
],
|
|
13490
13490
|
"init_kind": "Designated"
|
|
13491
13491
|
},
|
|
13492
|
-
{
|
|
13493
|
-
"kind": "Var",
|
|
13494
|
-
"name": "pdfURL",
|
|
13495
|
-
"printedName": "pdfURL",
|
|
13496
|
-
"children": [
|
|
13497
|
-
{
|
|
13498
|
-
"kind": "TypeNominal",
|
|
13499
|
-
"name": "Optional",
|
|
13500
|
-
"printedName": "Foundation.URL?",
|
|
13501
|
-
"children": [
|
|
13502
|
-
{
|
|
13503
|
-
"kind": "TypeNominal",
|
|
13504
|
-
"name": "URL",
|
|
13505
|
-
"printedName": "Foundation.URL",
|
|
13506
|
-
"usr": "s:10Foundation3URLV"
|
|
13507
|
-
}
|
|
13508
|
-
],
|
|
13509
|
-
"usr": "s:Sq"
|
|
13510
|
-
}
|
|
13511
|
-
],
|
|
13512
|
-
"declKind": "Var",
|
|
13513
|
-
"usr": "c:@CM@GSSDK@objc(cs)GSKScanFlowResult(py)pdfURL",
|
|
13514
|
-
"mangledName": "$s5GSSDK17GSKScanFlowResultC6pdfURL10Foundation0F0VSgvp",
|
|
13515
|
-
"moduleName": "GSSDK",
|
|
13516
|
-
"deprecated": true,
|
|
13517
|
-
"declAttributes": [
|
|
13518
|
-
"Final",
|
|
13519
|
-
"Available",
|
|
13520
|
-
"ObjC"
|
|
13521
|
-
],
|
|
13522
|
-
"isFromExtension": true,
|
|
13523
|
-
"accessors": [
|
|
13524
|
-
{
|
|
13525
|
-
"kind": "Accessor",
|
|
13526
|
-
"name": "Get",
|
|
13527
|
-
"printedName": "Get()",
|
|
13528
|
-
"children": [
|
|
13529
|
-
{
|
|
13530
|
-
"kind": "TypeNominal",
|
|
13531
|
-
"name": "Optional",
|
|
13532
|
-
"printedName": "Foundation.URL?",
|
|
13533
|
-
"children": [
|
|
13534
|
-
{
|
|
13535
|
-
"kind": "TypeNominal",
|
|
13536
|
-
"name": "URL",
|
|
13537
|
-
"printedName": "Foundation.URL",
|
|
13538
|
-
"usr": "s:10Foundation3URLV"
|
|
13539
|
-
}
|
|
13540
|
-
],
|
|
13541
|
-
"usr": "s:Sq"
|
|
13542
|
-
}
|
|
13543
|
-
],
|
|
13544
|
-
"declKind": "Accessor",
|
|
13545
|
-
"usr": "c:@CM@GSSDK@objc(cs)GSKScanFlowResult(im)pdfURL",
|
|
13546
|
-
"mangledName": "$s5GSSDK17GSKScanFlowResultC6pdfURL10Foundation0F0VSgvg",
|
|
13547
|
-
"moduleName": "GSSDK",
|
|
13548
|
-
"declAttributes": [
|
|
13549
|
-
"ObjC",
|
|
13550
|
-
"Final"
|
|
13551
|
-
],
|
|
13552
|
-
"isFromExtension": true,
|
|
13553
|
-
"accessorKind": "get"
|
|
13554
|
-
}
|
|
13555
|
-
]
|
|
13556
|
-
},
|
|
13557
13492
|
{
|
|
13558
13493
|
"kind": "Var",
|
|
13559
13494
|
"name": "dictionary",
|
|
@@ -24952,140 +24887,140 @@
|
|
|
24952
24887
|
{
|
|
24953
24888
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
24954
24889
|
"kind": "StringLiteral",
|
|
24955
|
-
"offset":
|
|
24890
|
+
"offset": 3627,
|
|
24956
24891
|
"length": 40,
|
|
24957
24892
|
"value": "\"Cannot find image at path \""
|
|
24958
24893
|
},
|
|
24959
24894
|
{
|
|
24960
24895
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
24961
24896
|
"kind": "StringLiteral",
|
|
24962
|
-
"offset":
|
|
24897
|
+
"offset": 3666,
|
|
24963
24898
|
"length": 2,
|
|
24964
24899
|
"value": "\"\""
|
|
24965
24900
|
},
|
|
24966
24901
|
{
|
|
24967
24902
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
24968
24903
|
"kind": "StringLiteral",
|
|
24969
|
-
"offset":
|
|
24904
|
+
"offset": 3805,
|
|
24970
24905
|
"length": 23,
|
|
24971
24906
|
"value": "\"No language specified\""
|
|
24972
24907
|
},
|
|
24973
24908
|
{
|
|
24974
24909
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
24975
24910
|
"kind": "StringLiteral",
|
|
24976
|
-
"offset":
|
|
24911
|
+
"offset": 3977,
|
|
24977
24912
|
"length": 38,
|
|
24978
24913
|
"value": "\"Unable to read image at \""
|
|
24979
24914
|
},
|
|
24980
24915
|
{
|
|
24981
24916
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
24982
24917
|
"kind": "StringLiteral",
|
|
24983
|
-
"offset":
|
|
24918
|
+
"offset": 4014,
|
|
24984
24919
|
"length": 2,
|
|
24985
24920
|
"value": "\"\""
|
|
24986
24921
|
},
|
|
24987
24922
|
{
|
|
24988
24923
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
24989
24924
|
"kind": "FloatLiteral",
|
|
24990
|
-
"offset":
|
|
24925
|
+
"offset": 4380,
|
|
24991
24926
|
"length": 4,
|
|
24992
24927
|
"value": "0.85"
|
|
24993
24928
|
},
|
|
24994
24929
|
{
|
|
24995
24930
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
24996
24931
|
"kind": "StringLiteral",
|
|
24997
|
-
"offset":
|
|
24932
|
+
"offset": 4631,
|
|
24998
24933
|
"length": 43,
|
|
24999
24934
|
"value": "\"Error while preprocessing image: \""
|
|
25000
24935
|
},
|
|
25001
24936
|
{
|
|
25002
24937
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25003
24938
|
"kind": "StringLiteral",
|
|
25004
|
-
"offset":
|
|
24939
|
+
"offset": 4673,
|
|
25005
24940
|
"length": 2,
|
|
25006
24941
|
"value": "\"\""
|
|
25007
24942
|
},
|
|
25008
24943
|
{
|
|
25009
24944
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25010
24945
|
"kind": "StringLiteral",
|
|
25011
|
-
"offset":
|
|
24946
|
+
"offset": 4888,
|
|
25012
24947
|
"length": 70,
|
|
25013
24948
|
"value": "\"Unable to delete file at path \""
|
|
25014
24949
|
},
|
|
25015
24950
|
{
|
|
25016
24951
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25017
24952
|
"kind": "StringLiteral",
|
|
25018
|
-
"offset":
|
|
24953
|
+
"offset": 4947,
|
|
25019
24954
|
"length": 1,
|
|
25020
24955
|
"value": "\": \""
|
|
25021
24956
|
},
|
|
25022
24957
|
{
|
|
25023
24958
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25024
24959
|
"kind": "StringLiteral",
|
|
25025
|
-
"offset":
|
|
24960
|
+
"offset": 4957,
|
|
25026
24961
|
"length": 2,
|
|
25027
24962
|
"value": "\"\""
|
|
25028
24963
|
},
|
|
25029
24964
|
{
|
|
25030
24965
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25031
24966
|
"kind": "StringLiteral",
|
|
25032
|
-
"offset":
|
|
24967
|
+
"offset": 5401,
|
|
25033
24968
|
"length": 31,
|
|
25034
24969
|
"value": "\"Unable to read enhanced image\""
|
|
25035
24970
|
},
|
|
25036
24971
|
{
|
|
25037
24972
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25038
24973
|
"kind": "StringLiteral",
|
|
25039
|
-
"offset":
|
|
24974
|
+
"offset": 5666,
|
|
25040
24975
|
"length": 27,
|
|
25041
24976
|
"value": "\"\""
|
|
25042
24977
|
},
|
|
25043
24978
|
{
|
|
25044
24979
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25045
24980
|
"kind": "StringLiteral",
|
|
25046
|
-
"offset":
|
|
24981
|
+
"offset": 5687,
|
|
25047
24982
|
"length": 1,
|
|
25048
24983
|
"value": "\".jpeg\""
|
|
25049
24984
|
},
|
|
25050
24985
|
{
|
|
25051
24986
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25052
24987
|
"kind": "FloatLiteral",
|
|
25053
|
-
"offset":
|
|
24988
|
+
"offset": 5895,
|
|
25054
24989
|
"length": 4,
|
|
25055
24990
|
"value": "0.85"
|
|
25056
24991
|
},
|
|
25057
24992
|
{
|
|
25058
24993
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25059
24994
|
"kind": "StringLiteral",
|
|
25060
|
-
"offset":
|
|
24995
|
+
"offset": 6243,
|
|
25061
24996
|
"length": 70,
|
|
25062
24997
|
"value": "\"Unable to delete file at path \""
|
|
25063
24998
|
},
|
|
25064
24999
|
{
|
|
25065
25000
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25066
25001
|
"kind": "StringLiteral",
|
|
25067
|
-
"offset":
|
|
25002
|
+
"offset": 6302,
|
|
25068
25003
|
"length": 1,
|
|
25069
25004
|
"value": "\": \""
|
|
25070
25005
|
},
|
|
25071
25006
|
{
|
|
25072
25007
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25073
25008
|
"kind": "StringLiteral",
|
|
25074
|
-
"offset":
|
|
25009
|
+
"offset": 6312,
|
|
25075
25010
|
"length": 2,
|
|
25076
25011
|
"value": "\"\""
|
|
25077
25012
|
},
|
|
25078
25013
|
{
|
|
25079
25014
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25080
25015
|
"kind": "StringLiteral",
|
|
25081
|
-
"offset":
|
|
25016
|
+
"offset": 6718,
|
|
25082
25017
|
"length": 108,
|
|
25083
25018
|
"value": "\"Language with code \""
|
|
25084
25019
|
},
|
|
25085
25020
|
{
|
|
25086
25021
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25087
25022
|
"kind": "StringLiteral",
|
|
25088
|
-
"offset":
|
|
25023
|
+
"offset": 6744,
|
|
25089
25024
|
"length": 2,
|
|
25090
25025
|
"value": "\" is not supported. Please refer to the documentation for the supported languages.\""
|
|
25091
25026
|
},
|
|
@@ -26891,28 +26826,28 @@
|
|
|
26891
26826
|
{
|
|
26892
26827
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowResult.swift",
|
|
26893
26828
|
"kind": "StringLiteral",
|
|
26894
|
-
"offset":
|
|
26829
|
+
"offset": 895,
|
|
26895
26830
|
"length": 2,
|
|
26896
26831
|
"value": "\"\""
|
|
26897
26832
|
},
|
|
26898
26833
|
{
|
|
26899
26834
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowResult.swift",
|
|
26900
26835
|
"kind": "StringLiteral",
|
|
26901
|
-
"offset":
|
|
26836
|
+
"offset": 928,
|
|
26902
26837
|
"length": 8,
|
|
26903
26838
|
"value": "\"pdfURL\""
|
|
26904
26839
|
},
|
|
26905
26840
|
{
|
|
26906
26841
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowResult.swift",
|
|
26907
26842
|
"kind": "StringLiteral",
|
|
26908
|
-
"offset":
|
|
26843
|
+
"offset": 963,
|
|
26909
26844
|
"length": 22,
|
|
26910
26845
|
"value": "\"multiPageDocumentUrl\""
|
|
26911
26846
|
},
|
|
26912
26847
|
{
|
|
26913
26848
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowResult.swift",
|
|
26914
26849
|
"kind": "StringLiteral",
|
|
26915
|
-
"offset":
|
|
26850
|
+
"offset": 1012,
|
|
26916
26851
|
"length": 7,
|
|
26917
26852
|
"value": "\"scans\""
|
|
26918
26853
|
},
|
|
@@ -427,10 +427,6 @@ extension GSSDK.GSKScanFlowFlashMode : Swift.CustomStringConvertible {
|
|
|
427
427
|
@objc deinit
|
|
428
428
|
}
|
|
429
429
|
@objc extension GSSDK.GSKScanFlowResult {
|
|
430
|
-
@objc @available(*, deprecated, message: "Use multiPageDocumentURL instead")
|
|
431
|
-
final public var pdfURL: Foundation.URL? {
|
|
432
|
-
@objc get
|
|
433
|
-
}
|
|
434
430
|
@objc final public var dictionary: [Swift.String : Any] {
|
|
435
431
|
@objc get
|
|
436
432
|
}
|
|
@@ -427,10 +427,6 @@ extension GSSDK.GSKScanFlowFlashMode : Swift.CustomStringConvertible {
|
|
|
427
427
|
@objc deinit
|
|
428
428
|
}
|
|
429
429
|
@objc extension GSSDK.GSKScanFlowResult {
|
|
430
|
-
@objc @available(*, deprecated, message: "Use multiPageDocumentURL instead")
|
|
431
|
-
final public var pdfURL: Foundation.URL? {
|
|
432
|
-
@objc get
|
|
433
|
-
}
|
|
434
430
|
@objc final public var dictionary: [Swift.String : Any] {
|
|
435
431
|
@objc get
|
|
436
432
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKCore.h
CHANGED
|
@@ -24,25 +24,6 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
24
24
|
*/
|
|
25
25
|
@interface GSK : NSObject
|
|
26
26
|
|
|
27
|
-
/**
|
|
28
|
-
Must be called first with a valid license key to enable the SDK.
|
|
29
|
-
|
|
30
|
-
This method returns an error if the SDK isn't initialized properly. In addition, all other SDK methods that return errors will report an error if there
|
|
31
|
-
is a problem with the license key, and you must handle them to ensure you provide a good "degraded" experience.
|
|
32
|
-
For instance, you can prompt the user to update the application to use the scanning feature in case they use a version of the application with an expired license key.
|
|
33
|
-
|
|
34
|
-
This method is deprecated in favor of `setLicenseKey:autoRefresh:`.
|
|
35
|
-
|
|
36
|
-
@warning *Important* This method must be called before any use of the SDK methods.
|
|
37
|
-
|
|
38
|
-
@param licenseKey The license key
|
|
39
|
-
@param error On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information.
|
|
40
|
-
You may specify nil for this parameter if you do not want the error information.
|
|
41
|
-
|
|
42
|
-
@return YES if the SDK was initialized successfully, NO if an error occured.
|
|
43
|
-
*/
|
|
44
|
-
+ (BOOL)initWithLicenseKey:(NSString *)licenseKey error:(NSError * _Nullable *)error __deprecated_msg("-setLicenseKey:autoRefresh: instead.");
|
|
45
|
-
|
|
46
27
|
/// Sets the Genius Scan SDK license key with auto-refresh enabled.
|
|
47
28
|
///
|
|
48
29
|
/// See `setLicenseKey:autoRefresh:`
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//
|
|
2
|
+
// GSKLicenseKeyChecker.h
|
|
3
|
+
// GSSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Bruno Virlet on 15/03/2024.
|
|
6
|
+
// Copyright © 2024 The Grizzly Labs. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
@interface GSKLicenseKeyChecker : NSObject
|
|
14
|
+
|
|
15
|
+
+ (BOOL)checkLicenseWithError:(NSError *__autoreleasing _Nullable * _Nullable)error;
|
|
16
|
+
|
|
17
|
+
#if DEBUG
|
|
18
|
+
/// Enables simulating an invalid license in the tests.
|
|
19
|
+
@property (nonatomic, class, assign) BOOL simulateInvalid;
|
|
20
|
+
#endif
|
|
21
|
+
|
|
22
|
+
@end
|
|
23
|
+
|
|
24
|
+
NS_ASSUME_NONNULL_END
|
package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h
CHANGED
|
@@ -744,7 +744,6 @@ SWIFT_CLASS("_TtC5GSSDK17GSKScanFlowResult")
|
|
|
744
744
|
|
|
745
745
|
|
|
746
746
|
@interface GSKScanFlowResult (SWIFT_EXTENSION(GSSDK))
|
|
747
|
-
@property (nonatomic, readonly, copy) NSURL * _Nullable pdfURL SWIFT_DEPRECATED_MSG("Use multiPageDocumentURL instead");
|
|
748
747
|
/// A dictionary representation of the result.
|
|
749
748
|
/// Convenient for interfacing with React Native, probably no reason to
|
|
750
749
|
/// use it with native code.
|
|
@@ -1758,7 +1757,6 @@ SWIFT_CLASS("_TtC5GSSDK17GSKScanFlowResult")
|
|
|
1758
1757
|
|
|
1759
1758
|
|
|
1760
1759
|
@interface GSKScanFlowResult (SWIFT_EXTENSION(GSSDK))
|
|
1761
|
-
@property (nonatomic, readonly, copy) NSURL * _Nullable pdfURL SWIFT_DEPRECATED_MSG("Use multiPageDocumentURL instead");
|
|
1762
1760
|
/// A dictionary representation of the result.
|
|
1763
1761
|
/// Convenient for interfacing with React Native, probably no reason to
|
|
1764
1762
|
/// use it with native code.
|
|
Binary file
|
|
@@ -13489,71 +13489,6 @@
|
|
|
13489
13489
|
],
|
|
13490
13490
|
"init_kind": "Designated"
|
|
13491
13491
|
},
|
|
13492
|
-
{
|
|
13493
|
-
"kind": "Var",
|
|
13494
|
-
"name": "pdfURL",
|
|
13495
|
-
"printedName": "pdfURL",
|
|
13496
|
-
"children": [
|
|
13497
|
-
{
|
|
13498
|
-
"kind": "TypeNominal",
|
|
13499
|
-
"name": "Optional",
|
|
13500
|
-
"printedName": "Foundation.URL?",
|
|
13501
|
-
"children": [
|
|
13502
|
-
{
|
|
13503
|
-
"kind": "TypeNominal",
|
|
13504
|
-
"name": "URL",
|
|
13505
|
-
"printedName": "Foundation.URL",
|
|
13506
|
-
"usr": "s:10Foundation3URLV"
|
|
13507
|
-
}
|
|
13508
|
-
],
|
|
13509
|
-
"usr": "s:Sq"
|
|
13510
|
-
}
|
|
13511
|
-
],
|
|
13512
|
-
"declKind": "Var",
|
|
13513
|
-
"usr": "c:@CM@GSSDK@objc(cs)GSKScanFlowResult(py)pdfURL",
|
|
13514
|
-
"mangledName": "$s5GSSDK17GSKScanFlowResultC6pdfURL10Foundation0F0VSgvp",
|
|
13515
|
-
"moduleName": "GSSDK",
|
|
13516
|
-
"deprecated": true,
|
|
13517
|
-
"declAttributes": [
|
|
13518
|
-
"Final",
|
|
13519
|
-
"Available",
|
|
13520
|
-
"ObjC"
|
|
13521
|
-
],
|
|
13522
|
-
"isFromExtension": true,
|
|
13523
|
-
"accessors": [
|
|
13524
|
-
{
|
|
13525
|
-
"kind": "Accessor",
|
|
13526
|
-
"name": "Get",
|
|
13527
|
-
"printedName": "Get()",
|
|
13528
|
-
"children": [
|
|
13529
|
-
{
|
|
13530
|
-
"kind": "TypeNominal",
|
|
13531
|
-
"name": "Optional",
|
|
13532
|
-
"printedName": "Foundation.URL?",
|
|
13533
|
-
"children": [
|
|
13534
|
-
{
|
|
13535
|
-
"kind": "TypeNominal",
|
|
13536
|
-
"name": "URL",
|
|
13537
|
-
"printedName": "Foundation.URL",
|
|
13538
|
-
"usr": "s:10Foundation3URLV"
|
|
13539
|
-
}
|
|
13540
|
-
],
|
|
13541
|
-
"usr": "s:Sq"
|
|
13542
|
-
}
|
|
13543
|
-
],
|
|
13544
|
-
"declKind": "Accessor",
|
|
13545
|
-
"usr": "c:@CM@GSSDK@objc(cs)GSKScanFlowResult(im)pdfURL",
|
|
13546
|
-
"mangledName": "$s5GSSDK17GSKScanFlowResultC6pdfURL10Foundation0F0VSgvg",
|
|
13547
|
-
"moduleName": "GSSDK",
|
|
13548
|
-
"declAttributes": [
|
|
13549
|
-
"ObjC",
|
|
13550
|
-
"Final"
|
|
13551
|
-
],
|
|
13552
|
-
"isFromExtension": true,
|
|
13553
|
-
"accessorKind": "get"
|
|
13554
|
-
}
|
|
13555
|
-
]
|
|
13556
|
-
},
|
|
13557
13492
|
{
|
|
13558
13493
|
"kind": "Var",
|
|
13559
13494
|
"name": "dictionary",
|
|
@@ -24952,140 +24887,140 @@
|
|
|
24952
24887
|
{
|
|
24953
24888
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
24954
24889
|
"kind": "StringLiteral",
|
|
24955
|
-
"offset":
|
|
24890
|
+
"offset": 3627,
|
|
24956
24891
|
"length": 40,
|
|
24957
24892
|
"value": "\"Cannot find image at path \""
|
|
24958
24893
|
},
|
|
24959
24894
|
{
|
|
24960
24895
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
24961
24896
|
"kind": "StringLiteral",
|
|
24962
|
-
"offset":
|
|
24897
|
+
"offset": 3666,
|
|
24963
24898
|
"length": 2,
|
|
24964
24899
|
"value": "\"\""
|
|
24965
24900
|
},
|
|
24966
24901
|
{
|
|
24967
24902
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
24968
24903
|
"kind": "StringLiteral",
|
|
24969
|
-
"offset":
|
|
24904
|
+
"offset": 3805,
|
|
24970
24905
|
"length": 23,
|
|
24971
24906
|
"value": "\"No language specified\""
|
|
24972
24907
|
},
|
|
24973
24908
|
{
|
|
24974
24909
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
24975
24910
|
"kind": "StringLiteral",
|
|
24976
|
-
"offset":
|
|
24911
|
+
"offset": 3977,
|
|
24977
24912
|
"length": 38,
|
|
24978
24913
|
"value": "\"Unable to read image at \""
|
|
24979
24914
|
},
|
|
24980
24915
|
{
|
|
24981
24916
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
24982
24917
|
"kind": "StringLiteral",
|
|
24983
|
-
"offset":
|
|
24918
|
+
"offset": 4014,
|
|
24984
24919
|
"length": 2,
|
|
24985
24920
|
"value": "\"\""
|
|
24986
24921
|
},
|
|
24987
24922
|
{
|
|
24988
24923
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
24989
24924
|
"kind": "FloatLiteral",
|
|
24990
|
-
"offset":
|
|
24925
|
+
"offset": 4380,
|
|
24991
24926
|
"length": 4,
|
|
24992
24927
|
"value": "0.85"
|
|
24993
24928
|
},
|
|
24994
24929
|
{
|
|
24995
24930
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
24996
24931
|
"kind": "StringLiteral",
|
|
24997
|
-
"offset":
|
|
24932
|
+
"offset": 4631,
|
|
24998
24933
|
"length": 43,
|
|
24999
24934
|
"value": "\"Error while preprocessing image: \""
|
|
25000
24935
|
},
|
|
25001
24936
|
{
|
|
25002
24937
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25003
24938
|
"kind": "StringLiteral",
|
|
25004
|
-
"offset":
|
|
24939
|
+
"offset": 4673,
|
|
25005
24940
|
"length": 2,
|
|
25006
24941
|
"value": "\"\""
|
|
25007
24942
|
},
|
|
25008
24943
|
{
|
|
25009
24944
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25010
24945
|
"kind": "StringLiteral",
|
|
25011
|
-
"offset":
|
|
24946
|
+
"offset": 4888,
|
|
25012
24947
|
"length": 70,
|
|
25013
24948
|
"value": "\"Unable to delete file at path \""
|
|
25014
24949
|
},
|
|
25015
24950
|
{
|
|
25016
24951
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25017
24952
|
"kind": "StringLiteral",
|
|
25018
|
-
"offset":
|
|
24953
|
+
"offset": 4947,
|
|
25019
24954
|
"length": 1,
|
|
25020
24955
|
"value": "\": \""
|
|
25021
24956
|
},
|
|
25022
24957
|
{
|
|
25023
24958
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25024
24959
|
"kind": "StringLiteral",
|
|
25025
|
-
"offset":
|
|
24960
|
+
"offset": 4957,
|
|
25026
24961
|
"length": 2,
|
|
25027
24962
|
"value": "\"\""
|
|
25028
24963
|
},
|
|
25029
24964
|
{
|
|
25030
24965
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25031
24966
|
"kind": "StringLiteral",
|
|
25032
|
-
"offset":
|
|
24967
|
+
"offset": 5401,
|
|
25033
24968
|
"length": 31,
|
|
25034
24969
|
"value": "\"Unable to read enhanced image\""
|
|
25035
24970
|
},
|
|
25036
24971
|
{
|
|
25037
24972
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25038
24973
|
"kind": "StringLiteral",
|
|
25039
|
-
"offset":
|
|
24974
|
+
"offset": 5666,
|
|
25040
24975
|
"length": 27,
|
|
25041
24976
|
"value": "\"\""
|
|
25042
24977
|
},
|
|
25043
24978
|
{
|
|
25044
24979
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25045
24980
|
"kind": "StringLiteral",
|
|
25046
|
-
"offset":
|
|
24981
|
+
"offset": 5687,
|
|
25047
24982
|
"length": 1,
|
|
25048
24983
|
"value": "\".jpeg\""
|
|
25049
24984
|
},
|
|
25050
24985
|
{
|
|
25051
24986
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25052
24987
|
"kind": "FloatLiteral",
|
|
25053
|
-
"offset":
|
|
24988
|
+
"offset": 5895,
|
|
25054
24989
|
"length": 4,
|
|
25055
24990
|
"value": "0.85"
|
|
25056
24991
|
},
|
|
25057
24992
|
{
|
|
25058
24993
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25059
24994
|
"kind": "StringLiteral",
|
|
25060
|
-
"offset":
|
|
24995
|
+
"offset": 6243,
|
|
25061
24996
|
"length": 70,
|
|
25062
24997
|
"value": "\"Unable to delete file at path \""
|
|
25063
24998
|
},
|
|
25064
24999
|
{
|
|
25065
25000
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25066
25001
|
"kind": "StringLiteral",
|
|
25067
|
-
"offset":
|
|
25002
|
+
"offset": 6302,
|
|
25068
25003
|
"length": 1,
|
|
25069
25004
|
"value": "\": \""
|
|
25070
25005
|
},
|
|
25071
25006
|
{
|
|
25072
25007
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25073
25008
|
"kind": "StringLiteral",
|
|
25074
|
-
"offset":
|
|
25009
|
+
"offset": 6312,
|
|
25075
25010
|
"length": 2,
|
|
25076
25011
|
"value": "\"\""
|
|
25077
25012
|
},
|
|
25078
25013
|
{
|
|
25079
25014
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25080
25015
|
"kind": "StringLiteral",
|
|
25081
|
-
"offset":
|
|
25016
|
+
"offset": 6718,
|
|
25082
25017
|
"length": 108,
|
|
25083
25018
|
"value": "\"Language with code \""
|
|
25084
25019
|
},
|
|
25085
25020
|
{
|
|
25086
25021
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25087
25022
|
"kind": "StringLiteral",
|
|
25088
|
-
"offset":
|
|
25023
|
+
"offset": 6744,
|
|
25089
25024
|
"length": 2,
|
|
25090
25025
|
"value": "\" is not supported. Please refer to the documentation for the supported languages.\""
|
|
25091
25026
|
},
|
|
@@ -26891,28 +26826,28 @@
|
|
|
26891
26826
|
{
|
|
26892
26827
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowResult.swift",
|
|
26893
26828
|
"kind": "StringLiteral",
|
|
26894
|
-
"offset":
|
|
26829
|
+
"offset": 895,
|
|
26895
26830
|
"length": 2,
|
|
26896
26831
|
"value": "\"\""
|
|
26897
26832
|
},
|
|
26898
26833
|
{
|
|
26899
26834
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowResult.swift",
|
|
26900
26835
|
"kind": "StringLiteral",
|
|
26901
|
-
"offset":
|
|
26836
|
+
"offset": 928,
|
|
26902
26837
|
"length": 8,
|
|
26903
26838
|
"value": "\"pdfURL\""
|
|
26904
26839
|
},
|
|
26905
26840
|
{
|
|
26906
26841
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowResult.swift",
|
|
26907
26842
|
"kind": "StringLiteral",
|
|
26908
|
-
"offset":
|
|
26843
|
+
"offset": 963,
|
|
26909
26844
|
"length": 22,
|
|
26910
26845
|
"value": "\"multiPageDocumentUrl\""
|
|
26911
26846
|
},
|
|
26912
26847
|
{
|
|
26913
26848
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowResult.swift",
|
|
26914
26849
|
"kind": "StringLiteral",
|
|
26915
|
-
"offset":
|
|
26850
|
+
"offset": 1012,
|
|
26916
26851
|
"length": 7,
|
|
26917
26852
|
"value": "\"scans\""
|
|
26918
26853
|
},
|
|
@@ -427,10 +427,6 @@ extension GSSDK.GSKScanFlowFlashMode : Swift.CustomStringConvertible {
|
|
|
427
427
|
@objc deinit
|
|
428
428
|
}
|
|
429
429
|
@objc extension GSSDK.GSKScanFlowResult {
|
|
430
|
-
@objc @available(*, deprecated, message: "Use multiPageDocumentURL instead")
|
|
431
|
-
final public var pdfURL: Foundation.URL? {
|
|
432
|
-
@objc get
|
|
433
|
-
}
|
|
434
430
|
@objc final public var dictionary: [Swift.String : Any] {
|
|
435
431
|
@objc get
|
|
436
432
|
}
|
|
@@ -427,10 +427,6 @@ extension GSSDK.GSKScanFlowFlashMode : Swift.CustomStringConvertible {
|
|
|
427
427
|
@objc deinit
|
|
428
428
|
}
|
|
429
429
|
@objc extension GSSDK.GSKScanFlowResult {
|
|
430
|
-
@objc @available(*, deprecated, message: "Use multiPageDocumentURL instead")
|
|
431
|
-
final public var pdfURL: Foundation.URL? {
|
|
432
|
-
@objc get
|
|
433
|
-
}
|
|
434
430
|
@objc final public var dictionary: [Swift.String : Any] {
|
|
435
431
|
@objc get
|
|
436
432
|
}
|
|
@@ -13489,71 +13489,6 @@
|
|
|
13489
13489
|
],
|
|
13490
13490
|
"init_kind": "Designated"
|
|
13491
13491
|
},
|
|
13492
|
-
{
|
|
13493
|
-
"kind": "Var",
|
|
13494
|
-
"name": "pdfURL",
|
|
13495
|
-
"printedName": "pdfURL",
|
|
13496
|
-
"children": [
|
|
13497
|
-
{
|
|
13498
|
-
"kind": "TypeNominal",
|
|
13499
|
-
"name": "Optional",
|
|
13500
|
-
"printedName": "Foundation.URL?",
|
|
13501
|
-
"children": [
|
|
13502
|
-
{
|
|
13503
|
-
"kind": "TypeNominal",
|
|
13504
|
-
"name": "URL",
|
|
13505
|
-
"printedName": "Foundation.URL",
|
|
13506
|
-
"usr": "s:10Foundation3URLV"
|
|
13507
|
-
}
|
|
13508
|
-
],
|
|
13509
|
-
"usr": "s:Sq"
|
|
13510
|
-
}
|
|
13511
|
-
],
|
|
13512
|
-
"declKind": "Var",
|
|
13513
|
-
"usr": "c:@CM@GSSDK@objc(cs)GSKScanFlowResult(py)pdfURL",
|
|
13514
|
-
"mangledName": "$s5GSSDK17GSKScanFlowResultC6pdfURL10Foundation0F0VSgvp",
|
|
13515
|
-
"moduleName": "GSSDK",
|
|
13516
|
-
"deprecated": true,
|
|
13517
|
-
"declAttributes": [
|
|
13518
|
-
"Final",
|
|
13519
|
-
"Available",
|
|
13520
|
-
"ObjC"
|
|
13521
|
-
],
|
|
13522
|
-
"isFromExtension": true,
|
|
13523
|
-
"accessors": [
|
|
13524
|
-
{
|
|
13525
|
-
"kind": "Accessor",
|
|
13526
|
-
"name": "Get",
|
|
13527
|
-
"printedName": "Get()",
|
|
13528
|
-
"children": [
|
|
13529
|
-
{
|
|
13530
|
-
"kind": "TypeNominal",
|
|
13531
|
-
"name": "Optional",
|
|
13532
|
-
"printedName": "Foundation.URL?",
|
|
13533
|
-
"children": [
|
|
13534
|
-
{
|
|
13535
|
-
"kind": "TypeNominal",
|
|
13536
|
-
"name": "URL",
|
|
13537
|
-
"printedName": "Foundation.URL",
|
|
13538
|
-
"usr": "s:10Foundation3URLV"
|
|
13539
|
-
}
|
|
13540
|
-
],
|
|
13541
|
-
"usr": "s:Sq"
|
|
13542
|
-
}
|
|
13543
|
-
],
|
|
13544
|
-
"declKind": "Accessor",
|
|
13545
|
-
"usr": "c:@CM@GSSDK@objc(cs)GSKScanFlowResult(im)pdfURL",
|
|
13546
|
-
"mangledName": "$s5GSSDK17GSKScanFlowResultC6pdfURL10Foundation0F0VSgvg",
|
|
13547
|
-
"moduleName": "GSSDK",
|
|
13548
|
-
"declAttributes": [
|
|
13549
|
-
"ObjC",
|
|
13550
|
-
"Final"
|
|
13551
|
-
],
|
|
13552
|
-
"isFromExtension": true,
|
|
13553
|
-
"accessorKind": "get"
|
|
13554
|
-
}
|
|
13555
|
-
]
|
|
13556
|
-
},
|
|
13557
13492
|
{
|
|
13558
13493
|
"kind": "Var",
|
|
13559
13494
|
"name": "dictionary",
|
|
@@ -24952,140 +24887,140 @@
|
|
|
24952
24887
|
{
|
|
24953
24888
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
24954
24889
|
"kind": "StringLiteral",
|
|
24955
|
-
"offset":
|
|
24890
|
+
"offset": 3627,
|
|
24956
24891
|
"length": 40,
|
|
24957
24892
|
"value": "\"Cannot find image at path \""
|
|
24958
24893
|
},
|
|
24959
24894
|
{
|
|
24960
24895
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
24961
24896
|
"kind": "StringLiteral",
|
|
24962
|
-
"offset":
|
|
24897
|
+
"offset": 3666,
|
|
24963
24898
|
"length": 2,
|
|
24964
24899
|
"value": "\"\""
|
|
24965
24900
|
},
|
|
24966
24901
|
{
|
|
24967
24902
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
24968
24903
|
"kind": "StringLiteral",
|
|
24969
|
-
"offset":
|
|
24904
|
+
"offset": 3805,
|
|
24970
24905
|
"length": 23,
|
|
24971
24906
|
"value": "\"No language specified\""
|
|
24972
24907
|
},
|
|
24973
24908
|
{
|
|
24974
24909
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
24975
24910
|
"kind": "StringLiteral",
|
|
24976
|
-
"offset":
|
|
24911
|
+
"offset": 3977,
|
|
24977
24912
|
"length": 38,
|
|
24978
24913
|
"value": "\"Unable to read image at \""
|
|
24979
24914
|
},
|
|
24980
24915
|
{
|
|
24981
24916
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
24982
24917
|
"kind": "StringLiteral",
|
|
24983
|
-
"offset":
|
|
24918
|
+
"offset": 4014,
|
|
24984
24919
|
"length": 2,
|
|
24985
24920
|
"value": "\"\""
|
|
24986
24921
|
},
|
|
24987
24922
|
{
|
|
24988
24923
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
24989
24924
|
"kind": "FloatLiteral",
|
|
24990
|
-
"offset":
|
|
24925
|
+
"offset": 4380,
|
|
24991
24926
|
"length": 4,
|
|
24992
24927
|
"value": "0.85"
|
|
24993
24928
|
},
|
|
24994
24929
|
{
|
|
24995
24930
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
24996
24931
|
"kind": "StringLiteral",
|
|
24997
|
-
"offset":
|
|
24932
|
+
"offset": 4631,
|
|
24998
24933
|
"length": 43,
|
|
24999
24934
|
"value": "\"Error while preprocessing image: \""
|
|
25000
24935
|
},
|
|
25001
24936
|
{
|
|
25002
24937
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25003
24938
|
"kind": "StringLiteral",
|
|
25004
|
-
"offset":
|
|
24939
|
+
"offset": 4673,
|
|
25005
24940
|
"length": 2,
|
|
25006
24941
|
"value": "\"\""
|
|
25007
24942
|
},
|
|
25008
24943
|
{
|
|
25009
24944
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25010
24945
|
"kind": "StringLiteral",
|
|
25011
|
-
"offset":
|
|
24946
|
+
"offset": 4888,
|
|
25012
24947
|
"length": 70,
|
|
25013
24948
|
"value": "\"Unable to delete file at path \""
|
|
25014
24949
|
},
|
|
25015
24950
|
{
|
|
25016
24951
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25017
24952
|
"kind": "StringLiteral",
|
|
25018
|
-
"offset":
|
|
24953
|
+
"offset": 4947,
|
|
25019
24954
|
"length": 1,
|
|
25020
24955
|
"value": "\": \""
|
|
25021
24956
|
},
|
|
25022
24957
|
{
|
|
25023
24958
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25024
24959
|
"kind": "StringLiteral",
|
|
25025
|
-
"offset":
|
|
24960
|
+
"offset": 4957,
|
|
25026
24961
|
"length": 2,
|
|
25027
24962
|
"value": "\"\""
|
|
25028
24963
|
},
|
|
25029
24964
|
{
|
|
25030
24965
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25031
24966
|
"kind": "StringLiteral",
|
|
25032
|
-
"offset":
|
|
24967
|
+
"offset": 5401,
|
|
25033
24968
|
"length": 31,
|
|
25034
24969
|
"value": "\"Unable to read enhanced image\""
|
|
25035
24970
|
},
|
|
25036
24971
|
{
|
|
25037
24972
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25038
24973
|
"kind": "StringLiteral",
|
|
25039
|
-
"offset":
|
|
24974
|
+
"offset": 5666,
|
|
25040
24975
|
"length": 27,
|
|
25041
24976
|
"value": "\"\""
|
|
25042
24977
|
},
|
|
25043
24978
|
{
|
|
25044
24979
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25045
24980
|
"kind": "StringLiteral",
|
|
25046
|
-
"offset":
|
|
24981
|
+
"offset": 5687,
|
|
25047
24982
|
"length": 1,
|
|
25048
24983
|
"value": "\".jpeg\""
|
|
25049
24984
|
},
|
|
25050
24985
|
{
|
|
25051
24986
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25052
24987
|
"kind": "FloatLiteral",
|
|
25053
|
-
"offset":
|
|
24988
|
+
"offset": 5895,
|
|
25054
24989
|
"length": 4,
|
|
25055
24990
|
"value": "0.85"
|
|
25056
24991
|
},
|
|
25057
24992
|
{
|
|
25058
24993
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25059
24994
|
"kind": "StringLiteral",
|
|
25060
|
-
"offset":
|
|
24995
|
+
"offset": 6243,
|
|
25061
24996
|
"length": 70,
|
|
25062
24997
|
"value": "\"Unable to delete file at path \""
|
|
25063
24998
|
},
|
|
25064
24999
|
{
|
|
25065
25000
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25066
25001
|
"kind": "StringLiteral",
|
|
25067
|
-
"offset":
|
|
25002
|
+
"offset": 6302,
|
|
25068
25003
|
"length": 1,
|
|
25069
25004
|
"value": "\": \""
|
|
25070
25005
|
},
|
|
25071
25006
|
{
|
|
25072
25007
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25073
25008
|
"kind": "StringLiteral",
|
|
25074
|
-
"offset":
|
|
25009
|
+
"offset": 6312,
|
|
25075
25010
|
"length": 2,
|
|
25076
25011
|
"value": "\"\""
|
|
25077
25012
|
},
|
|
25078
25013
|
{
|
|
25079
25014
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25080
25015
|
"kind": "StringLiteral",
|
|
25081
|
-
"offset":
|
|
25016
|
+
"offset": 6718,
|
|
25082
25017
|
"length": 108,
|
|
25083
25018
|
"value": "\"Language with code \""
|
|
25084
25019
|
},
|
|
25085
25020
|
{
|
|
25086
25021
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/OCR\/GSKOCR.swift",
|
|
25087
25022
|
"kind": "StringLiteral",
|
|
25088
|
-
"offset":
|
|
25023
|
+
"offset": 6744,
|
|
25089
25024
|
"length": 2,
|
|
25090
25025
|
"value": "\" is not supported. Please refer to the documentation for the supported languages.\""
|
|
25091
25026
|
},
|
|
@@ -26891,28 +26826,28 @@
|
|
|
26891
26826
|
{
|
|
26892
26827
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowResult.swift",
|
|
26893
26828
|
"kind": "StringLiteral",
|
|
26894
|
-
"offset":
|
|
26829
|
+
"offset": 895,
|
|
26895
26830
|
"length": 2,
|
|
26896
26831
|
"value": "\"\""
|
|
26897
26832
|
},
|
|
26898
26833
|
{
|
|
26899
26834
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowResult.swift",
|
|
26900
26835
|
"kind": "StringLiteral",
|
|
26901
|
-
"offset":
|
|
26836
|
+
"offset": 928,
|
|
26902
26837
|
"length": 8,
|
|
26903
26838
|
"value": "\"pdfURL\""
|
|
26904
26839
|
},
|
|
26905
26840
|
{
|
|
26906
26841
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowResult.swift",
|
|
26907
26842
|
"kind": "StringLiteral",
|
|
26908
|
-
"offset":
|
|
26843
|
+
"offset": 963,
|
|
26909
26844
|
"length": 22,
|
|
26910
26845
|
"value": "\"multiPageDocumentUrl\""
|
|
26911
26846
|
},
|
|
26912
26847
|
{
|
|
26913
26848
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowResult.swift",
|
|
26914
26849
|
"kind": "StringLiteral",
|
|
26915
|
-
"offset":
|
|
26850
|
+
"offset": 1012,
|
|
26916
26851
|
"length": 7,
|
|
26917
26852
|
"value": "\"scans\""
|
|
26918
26853
|
},
|
|
@@ -427,10 +427,6 @@ extension GSSDK.GSKScanFlowFlashMode : Swift.CustomStringConvertible {
|
|
|
427
427
|
@objc deinit
|
|
428
428
|
}
|
|
429
429
|
@objc extension GSSDK.GSKScanFlowResult {
|
|
430
|
-
@objc @available(*, deprecated, message: "Use multiPageDocumentURL instead")
|
|
431
|
-
final public var pdfURL: Foundation.URL? {
|
|
432
|
-
@objc get
|
|
433
|
-
}
|
|
434
430
|
@objc final public var dictionary: [Swift.String : Any] {
|
|
435
431
|
@objc get
|
|
436
432
|
}
|
|
@@ -427,10 +427,6 @@ extension GSSDK.GSKScanFlowFlashMode : Swift.CustomStringConvertible {
|
|
|
427
427
|
@objc deinit
|
|
428
428
|
}
|
|
429
429
|
@objc extension GSSDK.GSKScanFlowResult {
|
|
430
|
-
@objc @available(*, deprecated, message: "Use multiPageDocumentURL instead")
|
|
431
|
-
final public var pdfURL: Foundation.URL? {
|
|
432
|
-
@objc get
|
|
433
|
-
}
|
|
434
430
|
@objc final public var dictionary: [Swift.String : Any] {
|
|
435
431
|
@objc get
|
|
436
432
|
}
|
package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/backbone.tflite
CHANGED
|
Binary file
|
package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/head_classif.tflite
CHANGED
|
Binary file
|
package/ios/RNGeniusScan.m
CHANGED
|
@@ -37,17 +37,6 @@ RCT_EXPORT_METHOD(setLicenseKey:(NSString *)licenseKey autoRefresh:(BOOL)autoRef
|
|
|
37
37
|
resolve(nil);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
RCT_EXPORT_METHOD(setLicenceKey:(NSString *)licenceKey resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) {
|
|
41
|
-
NSError *error = nil;
|
|
42
|
-
BOOL validLicence = [GSK initWithLicenseKey:licenceKey error:&error];
|
|
43
|
-
|
|
44
|
-
if (validLicence) {
|
|
45
|
-
resolve(nil);
|
|
46
|
-
} else {
|
|
47
|
-
reject([NSString stringWithFormat:@"%@ error %d", error.domain, error.code], @"License key is not valid or has expired.", error);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
40
|
RCT_EXPORT_METHOD(scanWithConfiguration:(NSDictionary *)scanOptions
|
|
52
41
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
53
42
|
rejecter:(RCTPromiseRejectBlock)reject
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thegrizzlylabs/react-native-genius-scan",
|
|
3
|
-
"version": "5.0.0-
|
|
3
|
+
"version": "5.0.0-beta9",
|
|
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",
|