@thegrizzlylabs/react-native-genius-scan 5.9.0 → 5.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -3
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/geniusscansdk/reactnative/RNGeniusScanModule.java +6 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKReadabilityLevel.h +5 -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 +328 -17
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +13 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftinterface +13 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/he.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/tr.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/vi.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/GSKReadabilityLevel.h +5 -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 +328 -17
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +13 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +13 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +328 -17
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +13 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +13 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/he.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/tr.lproj/GSSDK.strings +0 -0
- package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/vi.lproj/GSSDK.strings +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
## Description
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
The Genius Scan SDK for React Native enables you to integrate the document scanning experience that powers the [Genius Scan app](tglapp.com/scan) in your React Native app.
|
|
7
|
+
|
|
8
|
+
It offers a component enabling you to implement the [Genius Scan SDK](https://geniusscansdk.com) Scan Flow, an all-in-one configurable scanner module with the following key features:
|
|
7
9
|
|
|
8
10
|
- Automatic document detection
|
|
9
11
|
- Document perspective correction
|
|
@@ -13,8 +15,9 @@ This React Native component allows you to access the [Genius Scan SDK](https://g
|
|
|
13
15
|
|
|
14
16
|
## License
|
|
15
17
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
You can try the "demo" version for free without a license key, the only limitation being that the app will stop working after 60 seconds.
|
|
19
|
+
|
|
20
|
+
You need to [set a license key](#set-the-license-key) for unlimited demo time, or for production.
|
|
18
21
|
|
|
19
22
|
To buy a license:
|
|
20
23
|
1. [Sign up](https://sdk.geniusscan.com/apps) to our developer console
|
package/android/build.gradle
CHANGED
|
@@ -3,6 +3,7 @@ package com.geniusscansdk.reactnative;
|
|
|
3
3
|
|
|
4
4
|
import android.app.Activity;
|
|
5
5
|
import android.content.Intent;
|
|
6
|
+
import android.util.Log;
|
|
6
7
|
|
|
7
8
|
import com.facebook.react.bridge.ActivityEventListener;
|
|
8
9
|
import com.facebook.react.bridge.Arguments;
|
|
@@ -61,6 +62,11 @@ public class RNGeniusScanModule extends ReactContextBaseJavaModule {
|
|
|
61
62
|
@SuppressWarnings("unused")
|
|
62
63
|
@ReactMethod
|
|
63
64
|
public void scanWithConfiguration(ReadableMap scanOptions, Promise promise) {
|
|
65
|
+
if (mScanPromise != null) {
|
|
66
|
+
Log.w(getName(), "Ignoring scanWithConfiguration call as a scan flow is already in progress");
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
|
|
64
70
|
mScanPromise = promise;
|
|
65
71
|
PluginBridge.scanWithConfiguration(getCurrentActivity(), scanOptions.toHashMap());
|
|
66
72
|
}
|
|
Binary file
|
|
@@ -13,10 +13,15 @@
|
|
|
13
13
|
/// Enum describing various readability levels, that correspond to legibility scores when processing
|
|
14
14
|
/// a scanned document.
|
|
15
15
|
typedef NS_CLOSED_ENUM(NSUInteger, GSKReadabilityLevel) {
|
|
16
|
+
/// Scan with almost no chance of being readable
|
|
16
17
|
GSKReadabilityLevelLowest,
|
|
18
|
+
/// Scan with very little chance of being readable, even though it's not impossible
|
|
17
19
|
GSKReadabilityLevelLow,
|
|
20
|
+
/// Scan with little chance of being entirely readable, even though it's possible
|
|
18
21
|
GSKReadabilityLevelMedium,
|
|
22
|
+
/// Scan with high chance of being readable, even though it's not guaranteed
|
|
19
23
|
GSKReadabilityLevelHigh,
|
|
24
|
+
/// Scan with very high chance of being readable
|
|
20
25
|
GSKReadabilityLevelHighest,
|
|
21
26
|
};
|
|
22
27
|
|
|
Binary file
|
|
@@ -18410,6 +18410,103 @@
|
|
|
18410
18410
|
}
|
|
18411
18411
|
]
|
|
18412
18412
|
},
|
|
18413
|
+
{
|
|
18414
|
+
"kind": "Var",
|
|
18415
|
+
"name": "defaultCurvatureCorrectionMode",
|
|
18416
|
+
"printedName": "defaultCurvatureCorrectionMode",
|
|
18417
|
+
"children": [
|
|
18418
|
+
{
|
|
18419
|
+
"kind": "TypeNominal",
|
|
18420
|
+
"name": "GSKScanFlowCurvatureCorrectionMode",
|
|
18421
|
+
"printedName": "GSSDK.GSKScanFlowCurvatureCorrectionMode",
|
|
18422
|
+
"usr": "s:5GSSDK34GSKScanFlowCurvatureCorrectionModeO"
|
|
18423
|
+
}
|
|
18424
|
+
],
|
|
18425
|
+
"declKind": "Var",
|
|
18426
|
+
"usr": "s:5GSSDK24GSKScanFlowConfigurationC30defaultCurvatureCorrectionModeAA0bcfgH0Ovp",
|
|
18427
|
+
"mangledName": "$s5GSSDK24GSKScanFlowConfigurationC30defaultCurvatureCorrectionModeAA0bcfgH0Ovp",
|
|
18428
|
+
"moduleName": "GSSDK",
|
|
18429
|
+
"declAttributes": [
|
|
18430
|
+
"HasInitialValue",
|
|
18431
|
+
"Final",
|
|
18432
|
+
"HasStorage",
|
|
18433
|
+
"AccessControl",
|
|
18434
|
+
"RawDocComment"
|
|
18435
|
+
],
|
|
18436
|
+
"hasStorage": true,
|
|
18437
|
+
"accessors": [
|
|
18438
|
+
{
|
|
18439
|
+
"kind": "Accessor",
|
|
18440
|
+
"name": "Get",
|
|
18441
|
+
"printedName": "Get()",
|
|
18442
|
+
"children": [
|
|
18443
|
+
{
|
|
18444
|
+
"kind": "TypeNominal",
|
|
18445
|
+
"name": "GSKScanFlowCurvatureCorrectionMode",
|
|
18446
|
+
"printedName": "GSSDK.GSKScanFlowCurvatureCorrectionMode",
|
|
18447
|
+
"usr": "s:5GSSDK34GSKScanFlowCurvatureCorrectionModeO"
|
|
18448
|
+
}
|
|
18449
|
+
],
|
|
18450
|
+
"declKind": "Accessor",
|
|
18451
|
+
"usr": "s:5GSSDK24GSKScanFlowConfigurationC30defaultCurvatureCorrectionModeAA0bcfgH0Ovg",
|
|
18452
|
+
"mangledName": "$s5GSSDK24GSKScanFlowConfigurationC30defaultCurvatureCorrectionModeAA0bcfgH0Ovg",
|
|
18453
|
+
"moduleName": "GSSDK",
|
|
18454
|
+
"implicit": true,
|
|
18455
|
+
"declAttributes": [
|
|
18456
|
+
"Final"
|
|
18457
|
+
],
|
|
18458
|
+
"accessorKind": "get"
|
|
18459
|
+
},
|
|
18460
|
+
{
|
|
18461
|
+
"kind": "Accessor",
|
|
18462
|
+
"name": "Set",
|
|
18463
|
+
"printedName": "Set()",
|
|
18464
|
+
"children": [
|
|
18465
|
+
{
|
|
18466
|
+
"kind": "TypeNominal",
|
|
18467
|
+
"name": "Void",
|
|
18468
|
+
"printedName": "()"
|
|
18469
|
+
},
|
|
18470
|
+
{
|
|
18471
|
+
"kind": "TypeNominal",
|
|
18472
|
+
"name": "GSKScanFlowCurvatureCorrectionMode",
|
|
18473
|
+
"printedName": "GSSDK.GSKScanFlowCurvatureCorrectionMode",
|
|
18474
|
+
"usr": "s:5GSSDK34GSKScanFlowCurvatureCorrectionModeO"
|
|
18475
|
+
}
|
|
18476
|
+
],
|
|
18477
|
+
"declKind": "Accessor",
|
|
18478
|
+
"usr": "s:5GSSDK24GSKScanFlowConfigurationC30defaultCurvatureCorrectionModeAA0bcfgH0Ovs",
|
|
18479
|
+
"mangledName": "$s5GSSDK24GSKScanFlowConfigurationC30defaultCurvatureCorrectionModeAA0bcfgH0Ovs",
|
|
18480
|
+
"moduleName": "GSSDK",
|
|
18481
|
+
"implicit": true,
|
|
18482
|
+
"declAttributes": [
|
|
18483
|
+
"Final"
|
|
18484
|
+
],
|
|
18485
|
+
"accessorKind": "set"
|
|
18486
|
+
},
|
|
18487
|
+
{
|
|
18488
|
+
"kind": "Accessor",
|
|
18489
|
+
"name": "Modify",
|
|
18490
|
+
"printedName": "Modify()",
|
|
18491
|
+
"children": [
|
|
18492
|
+
{
|
|
18493
|
+
"kind": "TypeNominal",
|
|
18494
|
+
"name": "Void",
|
|
18495
|
+
"printedName": "()"
|
|
18496
|
+
}
|
|
18497
|
+
],
|
|
18498
|
+
"declKind": "Accessor",
|
|
18499
|
+
"usr": "s:5GSSDK24GSKScanFlowConfigurationC30defaultCurvatureCorrectionModeAA0bcfgH0OvM",
|
|
18500
|
+
"mangledName": "$s5GSSDK24GSKScanFlowConfigurationC30defaultCurvatureCorrectionModeAA0bcfgH0OvM",
|
|
18501
|
+
"moduleName": "GSSDK",
|
|
18502
|
+
"implicit": true,
|
|
18503
|
+
"declAttributes": [
|
|
18504
|
+
"Final"
|
|
18505
|
+
],
|
|
18506
|
+
"accessorKind": "_modify"
|
|
18507
|
+
}
|
|
18508
|
+
]
|
|
18509
|
+
},
|
|
18413
18510
|
{
|
|
18414
18511
|
"kind": "Var",
|
|
18415
18512
|
"name": "pdfPageSize",
|
|
@@ -20211,6 +20308,220 @@
|
|
|
20211
20308
|
}
|
|
20212
20309
|
]
|
|
20213
20310
|
},
|
|
20311
|
+
{
|
|
20312
|
+
"kind": "TypeDecl",
|
|
20313
|
+
"name": "GSKScanFlowCurvatureCorrectionMode",
|
|
20314
|
+
"printedName": "GSKScanFlowCurvatureCorrectionMode",
|
|
20315
|
+
"children": [
|
|
20316
|
+
{
|
|
20317
|
+
"kind": "Var",
|
|
20318
|
+
"name": "disabled",
|
|
20319
|
+
"printedName": "disabled",
|
|
20320
|
+
"children": [
|
|
20321
|
+
{
|
|
20322
|
+
"kind": "TypeFunc",
|
|
20323
|
+
"name": "Function",
|
|
20324
|
+
"printedName": "(GSSDK.GSKScanFlowCurvatureCorrectionMode.Type) -> GSSDK.GSKScanFlowCurvatureCorrectionMode",
|
|
20325
|
+
"children": [
|
|
20326
|
+
{
|
|
20327
|
+
"kind": "TypeNominal",
|
|
20328
|
+
"name": "GSKScanFlowCurvatureCorrectionMode",
|
|
20329
|
+
"printedName": "GSSDK.GSKScanFlowCurvatureCorrectionMode",
|
|
20330
|
+
"usr": "s:5GSSDK34GSKScanFlowCurvatureCorrectionModeO"
|
|
20331
|
+
},
|
|
20332
|
+
{
|
|
20333
|
+
"kind": "TypeNominal",
|
|
20334
|
+
"name": "Metatype",
|
|
20335
|
+
"printedName": "GSSDK.GSKScanFlowCurvatureCorrectionMode.Type",
|
|
20336
|
+
"children": [
|
|
20337
|
+
{
|
|
20338
|
+
"kind": "TypeNominal",
|
|
20339
|
+
"name": "GSKScanFlowCurvatureCorrectionMode",
|
|
20340
|
+
"printedName": "GSSDK.GSKScanFlowCurvatureCorrectionMode",
|
|
20341
|
+
"usr": "s:5GSSDK34GSKScanFlowCurvatureCorrectionModeO"
|
|
20342
|
+
}
|
|
20343
|
+
]
|
|
20344
|
+
}
|
|
20345
|
+
]
|
|
20346
|
+
}
|
|
20347
|
+
],
|
|
20348
|
+
"declKind": "EnumElement",
|
|
20349
|
+
"usr": "s:5GSSDK34GSKScanFlowCurvatureCorrectionModeO8disabledyA2CmF",
|
|
20350
|
+
"mangledName": "$s5GSSDK34GSKScanFlowCurvatureCorrectionModeO8disabledyA2CmF",
|
|
20351
|
+
"moduleName": "GSSDK"
|
|
20352
|
+
},
|
|
20353
|
+
{
|
|
20354
|
+
"kind": "Var",
|
|
20355
|
+
"name": "enabled",
|
|
20356
|
+
"printedName": "enabled",
|
|
20357
|
+
"children": [
|
|
20358
|
+
{
|
|
20359
|
+
"kind": "TypeFunc",
|
|
20360
|
+
"name": "Function",
|
|
20361
|
+
"printedName": "(GSSDK.GSKScanFlowCurvatureCorrectionMode.Type) -> GSSDK.GSKScanFlowCurvatureCorrectionMode",
|
|
20362
|
+
"children": [
|
|
20363
|
+
{
|
|
20364
|
+
"kind": "TypeNominal",
|
|
20365
|
+
"name": "GSKScanFlowCurvatureCorrectionMode",
|
|
20366
|
+
"printedName": "GSSDK.GSKScanFlowCurvatureCorrectionMode",
|
|
20367
|
+
"usr": "s:5GSSDK34GSKScanFlowCurvatureCorrectionModeO"
|
|
20368
|
+
},
|
|
20369
|
+
{
|
|
20370
|
+
"kind": "TypeNominal",
|
|
20371
|
+
"name": "Metatype",
|
|
20372
|
+
"printedName": "GSSDK.GSKScanFlowCurvatureCorrectionMode.Type",
|
|
20373
|
+
"children": [
|
|
20374
|
+
{
|
|
20375
|
+
"kind": "TypeNominal",
|
|
20376
|
+
"name": "GSKScanFlowCurvatureCorrectionMode",
|
|
20377
|
+
"printedName": "GSSDK.GSKScanFlowCurvatureCorrectionMode",
|
|
20378
|
+
"usr": "s:5GSSDK34GSKScanFlowCurvatureCorrectionModeO"
|
|
20379
|
+
}
|
|
20380
|
+
]
|
|
20381
|
+
}
|
|
20382
|
+
]
|
|
20383
|
+
}
|
|
20384
|
+
],
|
|
20385
|
+
"declKind": "EnumElement",
|
|
20386
|
+
"usr": "s:5GSSDK34GSKScanFlowCurvatureCorrectionModeO7enabledyA2CmF",
|
|
20387
|
+
"mangledName": "$s5GSSDK34GSKScanFlowCurvatureCorrectionModeO7enabledyA2CmF",
|
|
20388
|
+
"moduleName": "GSSDK"
|
|
20389
|
+
},
|
|
20390
|
+
{
|
|
20391
|
+
"kind": "Constructor",
|
|
20392
|
+
"name": "init",
|
|
20393
|
+
"printedName": "init(rawValue:)",
|
|
20394
|
+
"children": [
|
|
20395
|
+
{
|
|
20396
|
+
"kind": "TypeNominal",
|
|
20397
|
+
"name": "Optional",
|
|
20398
|
+
"printedName": "GSSDK.GSKScanFlowCurvatureCorrectionMode?",
|
|
20399
|
+
"children": [
|
|
20400
|
+
{
|
|
20401
|
+
"kind": "TypeNominal",
|
|
20402
|
+
"name": "GSKScanFlowCurvatureCorrectionMode",
|
|
20403
|
+
"printedName": "GSSDK.GSKScanFlowCurvatureCorrectionMode",
|
|
20404
|
+
"usr": "s:5GSSDK34GSKScanFlowCurvatureCorrectionModeO"
|
|
20405
|
+
}
|
|
20406
|
+
],
|
|
20407
|
+
"usr": "s:Sq"
|
|
20408
|
+
},
|
|
20409
|
+
{
|
|
20410
|
+
"kind": "TypeNominal",
|
|
20411
|
+
"name": "String",
|
|
20412
|
+
"printedName": "Swift.String",
|
|
20413
|
+
"usr": "s:SS"
|
|
20414
|
+
}
|
|
20415
|
+
],
|
|
20416
|
+
"declKind": "Constructor",
|
|
20417
|
+
"usr": "s:5GSSDK34GSKScanFlowCurvatureCorrectionModeO8rawValueACSgSS_tcfc",
|
|
20418
|
+
"mangledName": "$s5GSSDK34GSKScanFlowCurvatureCorrectionModeO8rawValueACSgSS_tcfc",
|
|
20419
|
+
"moduleName": "GSSDK",
|
|
20420
|
+
"implicit": true,
|
|
20421
|
+
"init_kind": "Designated"
|
|
20422
|
+
},
|
|
20423
|
+
{
|
|
20424
|
+
"kind": "Var",
|
|
20425
|
+
"name": "rawValue",
|
|
20426
|
+
"printedName": "rawValue",
|
|
20427
|
+
"children": [
|
|
20428
|
+
{
|
|
20429
|
+
"kind": "TypeNominal",
|
|
20430
|
+
"name": "String",
|
|
20431
|
+
"printedName": "Swift.String",
|
|
20432
|
+
"usr": "s:SS"
|
|
20433
|
+
}
|
|
20434
|
+
],
|
|
20435
|
+
"declKind": "Var",
|
|
20436
|
+
"usr": "s:5GSSDK34GSKScanFlowCurvatureCorrectionModeO8rawValueSSvp",
|
|
20437
|
+
"mangledName": "$s5GSSDK34GSKScanFlowCurvatureCorrectionModeO8rawValueSSvp",
|
|
20438
|
+
"moduleName": "GSSDK",
|
|
20439
|
+
"implicit": true,
|
|
20440
|
+
"accessors": [
|
|
20441
|
+
{
|
|
20442
|
+
"kind": "Accessor",
|
|
20443
|
+
"name": "Get",
|
|
20444
|
+
"printedName": "Get()",
|
|
20445
|
+
"children": [
|
|
20446
|
+
{
|
|
20447
|
+
"kind": "TypeNominal",
|
|
20448
|
+
"name": "String",
|
|
20449
|
+
"printedName": "Swift.String",
|
|
20450
|
+
"usr": "s:SS"
|
|
20451
|
+
}
|
|
20452
|
+
],
|
|
20453
|
+
"declKind": "Accessor",
|
|
20454
|
+
"usr": "s:5GSSDK34GSKScanFlowCurvatureCorrectionModeO8rawValueSSvg",
|
|
20455
|
+
"mangledName": "$s5GSSDK34GSKScanFlowCurvatureCorrectionModeO8rawValueSSvg",
|
|
20456
|
+
"moduleName": "GSSDK",
|
|
20457
|
+
"implicit": true,
|
|
20458
|
+
"accessorKind": "get"
|
|
20459
|
+
}
|
|
20460
|
+
]
|
|
20461
|
+
}
|
|
20462
|
+
],
|
|
20463
|
+
"declKind": "Enum",
|
|
20464
|
+
"usr": "s:5GSSDK34GSKScanFlowCurvatureCorrectionModeO",
|
|
20465
|
+
"mangledName": "$s5GSSDK34GSKScanFlowCurvatureCorrectionModeO",
|
|
20466
|
+
"moduleName": "GSSDK",
|
|
20467
|
+
"declAttributes": [
|
|
20468
|
+
"AccessControl",
|
|
20469
|
+
"RawDocComment"
|
|
20470
|
+
],
|
|
20471
|
+
"enumRawTypeName": "String",
|
|
20472
|
+
"conformances": [
|
|
20473
|
+
{
|
|
20474
|
+
"kind": "Conformance",
|
|
20475
|
+
"name": "Copyable",
|
|
20476
|
+
"printedName": "Copyable",
|
|
20477
|
+
"usr": "s:s8CopyableP",
|
|
20478
|
+
"mangledName": "$ss8CopyableP"
|
|
20479
|
+
},
|
|
20480
|
+
{
|
|
20481
|
+
"kind": "Conformance",
|
|
20482
|
+
"name": "Escapable",
|
|
20483
|
+
"printedName": "Escapable",
|
|
20484
|
+
"usr": "s:s9EscapableP",
|
|
20485
|
+
"mangledName": "$ss9EscapableP"
|
|
20486
|
+
},
|
|
20487
|
+
{
|
|
20488
|
+
"kind": "Conformance",
|
|
20489
|
+
"name": "Equatable",
|
|
20490
|
+
"printedName": "Equatable",
|
|
20491
|
+
"usr": "s:SQ",
|
|
20492
|
+
"mangledName": "$sSQ"
|
|
20493
|
+
},
|
|
20494
|
+
{
|
|
20495
|
+
"kind": "Conformance",
|
|
20496
|
+
"name": "Hashable",
|
|
20497
|
+
"printedName": "Hashable",
|
|
20498
|
+
"usr": "s:SH",
|
|
20499
|
+
"mangledName": "$sSH"
|
|
20500
|
+
},
|
|
20501
|
+
{
|
|
20502
|
+
"kind": "Conformance",
|
|
20503
|
+
"name": "RawRepresentable",
|
|
20504
|
+
"printedName": "RawRepresentable",
|
|
20505
|
+
"children": [
|
|
20506
|
+
{
|
|
20507
|
+
"kind": "TypeWitness",
|
|
20508
|
+
"name": "RawValue",
|
|
20509
|
+
"printedName": "RawValue",
|
|
20510
|
+
"children": [
|
|
20511
|
+
{
|
|
20512
|
+
"kind": "TypeNominal",
|
|
20513
|
+
"name": "String",
|
|
20514
|
+
"printedName": "Swift.String",
|
|
20515
|
+
"usr": "s:SS"
|
|
20516
|
+
}
|
|
20517
|
+
]
|
|
20518
|
+
}
|
|
20519
|
+
],
|
|
20520
|
+
"usr": "s:SY",
|
|
20521
|
+
"mangledName": "$sSY"
|
|
20522
|
+
}
|
|
20523
|
+
]
|
|
20524
|
+
},
|
|
20214
20525
|
{
|
|
20215
20526
|
"kind": "Import",
|
|
20216
20527
|
"name": "Foundation",
|
|
@@ -33875,112 +34186,112 @@
|
|
|
33875
34186
|
{
|
|
33876
34187
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowConfiguration.swift",
|
|
33877
34188
|
"kind": "BooleanLiteral",
|
|
33878
|
-
"offset":
|
|
34189
|
+
"offset": 3161,
|
|
33879
34190
|
"length": 5,
|
|
33880
34191
|
"value": "false"
|
|
33881
34192
|
},
|
|
33882
34193
|
{
|
|
33883
34194
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowConfiguration.swift",
|
|
33884
34195
|
"kind": "BooleanLiteral",
|
|
33885
|
-
"offset":
|
|
34196
|
+
"offset": 3320,
|
|
33886
34197
|
"length": 5,
|
|
33887
34198
|
"value": "false"
|
|
33888
34199
|
},
|
|
33889
34200
|
{
|
|
33890
34201
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowConfiguration.swift",
|
|
33891
34202
|
"kind": "IntegerLiteral",
|
|
33892
|
-
"offset":
|
|
34203
|
+
"offset": 4608,
|
|
33893
34204
|
"length": 2,
|
|
33894
34205
|
"value": "60"
|
|
33895
34206
|
},
|
|
33896
34207
|
{
|
|
33897
34208
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowConfiguration.swift",
|
|
33898
34209
|
"kind": "IntegerLiteral",
|
|
33899
|
-
"offset":
|
|
34210
|
+
"offset": 4938,
|
|
33900
34211
|
"length": 1,
|
|
33901
34212
|
"value": "0"
|
|
33902
34213
|
},
|
|
33903
34214
|
{
|
|
33904
34215
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowConfiguration.swift",
|
|
33905
34216
|
"kind": "Array",
|
|
33906
|
-
"offset":
|
|
34217
|
+
"offset": 5323,
|
|
33907
34218
|
"length": 2,
|
|
33908
34219
|
"value": "[]"
|
|
33909
34220
|
},
|
|
33910
34221
|
{
|
|
33911
34222
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowConfiguration.swift",
|
|
33912
34223
|
"kind": "StringLiteral",
|
|
33913
|
-
"offset":
|
|
34224
|
+
"offset": 10030,
|
|
33914
34225
|
"length": 48,
|
|
33915
34226
|
"value": "\"Invalid \""
|
|
33916
34227
|
},
|
|
33917
34228
|
{
|
|
33918
34229
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowConfiguration.swift",
|
|
33919
34230
|
"kind": "StringLiteral",
|
|
33920
|
-
"offset":
|
|
34231
|
+
"offset": 10045,
|
|
33921
34232
|
"length": 9,
|
|
33922
34233
|
"value": "\" parameter. Needs to be a color.\""
|
|
33923
34234
|
},
|
|
33924
34235
|
{
|
|
33925
34236
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowConfiguration.swift",
|
|
33926
34237
|
"kind": "IntegerLiteral",
|
|
33927
|
-
"offset":
|
|
34238
|
+
"offset": 10147,
|
|
33928
34239
|
"length": 1,
|
|
33929
34240
|
"value": "0"
|
|
33930
34241
|
},
|
|
33931
34242
|
{
|
|
33932
34243
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowConfiguration.swift",
|
|
33933
34244
|
"kind": "StringLiteral",
|
|
33934
|
-
"offset":
|
|
34245
|
+
"offset": 10248,
|
|
33935
34246
|
"length": 3,
|
|
33936
34247
|
"value": "\"#\""
|
|
33937
34248
|
},
|
|
33938
34249
|
{
|
|
33939
34250
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowConfiguration.swift",
|
|
33940
34251
|
"kind": "IntegerLiteral",
|
|
33941
|
-
"offset":
|
|
34252
|
+
"offset": 10336,
|
|
33942
34253
|
"length": 8,
|
|
33943
34254
|
"value": "0xFF0000"
|
|
33944
34255
|
},
|
|
33945
34256
|
{
|
|
33946
34257
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowConfiguration.swift",
|
|
33947
34258
|
"kind": "IntegerLiteral",
|
|
33948
|
-
"offset":
|
|
34259
|
+
"offset": 10349,
|
|
33949
34260
|
"length": 2,
|
|
33950
34261
|
"value": "16"
|
|
33951
34262
|
},
|
|
33952
34263
|
{
|
|
33953
34264
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowConfiguration.swift",
|
|
33954
34265
|
"kind": "IntegerLiteral",
|
|
33955
|
-
"offset":
|
|
34266
|
+
"offset": 10388,
|
|
33956
34267
|
"length": 6,
|
|
33957
34268
|
"value": "0xFF00"
|
|
33958
34269
|
},
|
|
33959
34270
|
{
|
|
33960
34271
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowConfiguration.swift",
|
|
33961
34272
|
"kind": "IntegerLiteral",
|
|
33962
|
-
"offset":
|
|
34273
|
+
"offset": 10399,
|
|
33963
34274
|
"length": 1,
|
|
33964
34275
|
"value": "8"
|
|
33965
34276
|
},
|
|
33966
34277
|
{
|
|
33967
34278
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowConfiguration.swift",
|
|
33968
34279
|
"kind": "IntegerLiteral",
|
|
33969
|
-
"offset":
|
|
34280
|
+
"offset": 10435,
|
|
33970
34281
|
"length": 4,
|
|
33971
34282
|
"value": "0xFF"
|
|
33972
34283
|
},
|
|
33973
34284
|
{
|
|
33974
34285
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowConfiguration.swift",
|
|
33975
34286
|
"kind": "IntegerLiteral",
|
|
33976
|
-
"offset":
|
|
34287
|
+
"offset": 10511,
|
|
33977
34288
|
"length": 3,
|
|
33978
34289
|
"value": "255"
|
|
33979
34290
|
},
|
|
33980
34291
|
{
|
|
33981
34292
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowConfiguration.swift",
|
|
33982
34293
|
"kind": "IntegerLiteral",
|
|
33983
|
-
"offset":
|
|
34294
|
+
"offset": 10707,
|
|
33984
34295
|
"length": 1,
|
|
33985
34296
|
"value": "1"
|
|
33986
34297
|
},
|
|
@@ -34190,7 +34501,7 @@
|
|
|
34190
34501
|
{
|
|
34191
34502
|
"filePath": "\/Users\/distiller\/project\/prj-ios\/GSSDK\/ScanFlow\/Models\/GSKScanFlowScanInternal.swift",
|
|
34192
34503
|
"kind": "Array",
|
|
34193
|
-
"offset":
|
|
34504
|
+
"offset": 1850,
|
|
34194
34505
|
"length": 2,
|
|
34195
34506
|
"value": "[]"
|
|
34196
34507
|
},
|
|
@@ -622,6 +622,7 @@ extension GSSDK.GSKOCRLanguage : Swift.Equatable, Swift.Hashable {
|
|
|
622
622
|
@objc final public var requiredReadabilityLevel: GSSDK.GSKReadabilityLevel
|
|
623
623
|
@objc final public var skipPostProcessingScreen: Swift.Bool
|
|
624
624
|
@objc final public var postProcessingActions: GSSDK.GSKScanFlowPostProcessingActions
|
|
625
|
+
final public var defaultCurvatureCorrectionMode: GSSDK.GSKScanFlowCurvatureCorrectionMode
|
|
625
626
|
@objc final public var pdfPageSize: GSSDK.GSKScanFlowPDFPageSize
|
|
626
627
|
@objc final public var flashButtonHidden: Swift.Bool
|
|
627
628
|
@objc final public var photoLibraryButtonHidden: Swift.Bool
|
|
@@ -649,6 +650,15 @@ extension GSSDK.GSKScanFlowConfiguration {
|
|
|
649
650
|
@objc extension GSSDK.GSKScanFlowConfiguration {
|
|
650
651
|
@objc public static func configurationWithDictionary(_ dictionary: Foundation.NSDictionary) throws -> Self
|
|
651
652
|
}
|
|
653
|
+
public enum GSKScanFlowCurvatureCorrectionMode : Swift.String {
|
|
654
|
+
case disabled
|
|
655
|
+
case enabled
|
|
656
|
+
public init?(rawValue: Swift.String)
|
|
657
|
+
public typealias RawValue = Swift.String
|
|
658
|
+
public var rawValue: Swift.String {
|
|
659
|
+
get
|
|
660
|
+
}
|
|
661
|
+
}
|
|
652
662
|
@objc public enum GSKScanFlowError : Swift.Int {
|
|
653
663
|
@objc(GSKScanFlowUserCancelationError) case userCancellation = 999
|
|
654
664
|
@objc(GSKScanFlowBadInputError) case badInput = 1000
|
|
@@ -947,6 +957,9 @@ extension GSSDK.GSKScanFlowFilterType : Swift.Equatable {}
|
|
|
947
957
|
extension GSSDK.GSKScanFlowFilterType : Swift.Hashable {}
|
|
948
958
|
extension GSSDK.GSKScanFlowFilterType : Swift.RawRepresentable {}
|
|
949
959
|
extension GSSDK.GSKScanFlow : Swift.Sendable {}
|
|
960
|
+
extension GSSDK.GSKScanFlowCurvatureCorrectionMode : Swift.Equatable {}
|
|
961
|
+
extension GSSDK.GSKScanFlowCurvatureCorrectionMode : Swift.Hashable {}
|
|
962
|
+
extension GSSDK.GSKScanFlowCurvatureCorrectionMode : Swift.RawRepresentable {}
|
|
950
963
|
extension GSSDK.GSKScanFlowError : Swift.Equatable {}
|
|
951
964
|
extension GSSDK.GSKScanFlowError : Swift.Hashable {}
|
|
952
965
|
extension GSSDK.GSKScanFlowError : Swift.RawRepresentable {}
|
|
Binary file
|
|
@@ -622,6 +622,7 @@ extension GSSDK.GSKOCRLanguage : Swift.Equatable, Swift.Hashable {
|
|
|
622
622
|
@objc final public var requiredReadabilityLevel: GSSDK.GSKReadabilityLevel
|
|
623
623
|
@objc final public var skipPostProcessingScreen: Swift.Bool
|
|
624
624
|
@objc final public var postProcessingActions: GSSDK.GSKScanFlowPostProcessingActions
|
|
625
|
+
final public var defaultCurvatureCorrectionMode: GSSDK.GSKScanFlowCurvatureCorrectionMode
|
|
625
626
|
@objc final public var pdfPageSize: GSSDK.GSKScanFlowPDFPageSize
|
|
626
627
|
@objc final public var flashButtonHidden: Swift.Bool
|
|
627
628
|
@objc final public var photoLibraryButtonHidden: Swift.Bool
|
|
@@ -649,6 +650,15 @@ extension GSSDK.GSKScanFlowConfiguration {
|
|
|
649
650
|
@objc extension GSSDK.GSKScanFlowConfiguration {
|
|
650
651
|
@objc public static func configurationWithDictionary(_ dictionary: Foundation.NSDictionary) throws -> Self
|
|
651
652
|
}
|
|
653
|
+
public enum GSKScanFlowCurvatureCorrectionMode : Swift.String {
|
|
654
|
+
case disabled
|
|
655
|
+
case enabled
|
|
656
|
+
public init?(rawValue: Swift.String)
|
|
657
|
+
public typealias RawValue = Swift.String
|
|
658
|
+
public var rawValue: Swift.String {
|
|
659
|
+
get
|
|
660
|
+
}
|
|
661
|
+
}
|
|
652
662
|
@objc public enum GSKScanFlowError : Swift.Int {
|
|
653
663
|
@objc(GSKScanFlowUserCancelationError) case userCancellation = 999
|
|
654
664
|
@objc(GSKScanFlowBadInputError) case badInput = 1000
|
|
@@ -947,6 +957,9 @@ extension GSSDK.GSKScanFlowFilterType : Swift.Equatable {}
|
|
|
947
957
|
extension GSSDK.GSKScanFlowFilterType : Swift.Hashable {}
|
|
948
958
|
extension GSSDK.GSKScanFlowFilterType : Swift.RawRepresentable {}
|
|
949
959
|
extension GSSDK.GSKScanFlow : Swift.Sendable {}
|
|
960
|
+
extension GSSDK.GSKScanFlowCurvatureCorrectionMode : Swift.Equatable {}
|
|
961
|
+
extension GSSDK.GSKScanFlowCurvatureCorrectionMode : Swift.Hashable {}
|
|
962
|
+
extension GSSDK.GSKScanFlowCurvatureCorrectionMode : Swift.RawRepresentable {}
|
|
950
963
|
extension GSSDK.GSKScanFlowError : Swift.Equatable {}
|
|
951
964
|
extension GSSDK.GSKScanFlowError : Swift.Hashable {}
|
|
952
965
|
extension GSSDK.GSKScanFlowError : Swift.RawRepresentable {}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -13,10 +13,15 @@
|
|
|
13
13
|
/// Enum describing various readability levels, that correspond to legibility scores when processing
|
|
14
14
|
/// a scanned document.
|
|
15
15
|
typedef NS_CLOSED_ENUM(NSUInteger, GSKReadabilityLevel) {
|
|
16
|
+
/// Scan with almost no chance of being readable
|
|
16
17
|
GSKReadabilityLevelLowest,
|
|
18
|
+
/// Scan with very little chance of being readable, even though it's not impossible
|
|
17
19
|
GSKReadabilityLevelLow,
|
|
20
|
+
/// Scan with little chance of being entirely readable, even though it's possible
|
|
18
21
|
GSKReadabilityLevelMedium,
|
|
22
|
+
/// Scan with high chance of being readable, even though it's not guaranteed
|
|
19
23
|
GSKReadabilityLevelHigh,
|
|
24
|
+
/// Scan with very high chance of being readable
|
|
20
25
|
GSKReadabilityLevelHighest,
|
|
21
26
|
};
|
|
22
27
|
|