@regulaforensics/cordova-plugin-document-reader-api 8.1.116-nightly → 8.1.117-rc
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/example/package.json +2 -2
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/src/android/build.gradle +2 -2
- package/src/ios/RGLWJSONConstructor.m +5 -7
package/example/package.json
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"author": "Regula Forensics Inc.",
|
|
14
14
|
"license": "commercial",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@regulaforensics/cordova-plugin-document-reader-api": "8.1.
|
|
17
|
-
"@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "8.1.
|
|
16
|
+
"@regulaforensics/cordova-plugin-document-reader-api": "8.1.117-rc",
|
|
17
|
+
"@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "8.1.294-rc",
|
|
18
18
|
"cordova-android": "13.0.0",
|
|
19
19
|
"cordova-ios": "7.1.1",
|
|
20
20
|
"cordova-plugin-add-swift-support": "2.0.2",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/cordova-plugin-document-reader-api",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.117-rc",
|
|
4
4
|
"description": "Cordova plugin for reading and validation of identification documents (API framework)",
|
|
5
5
|
"cordova": {
|
|
6
6
|
"id": "@regulaforensics/cordova-plugin-document-reader-api",
|
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<plugin id="@regulaforensics/cordova-plugin-document-reader-api" version="8.1.
|
|
2
|
+
<plugin id="@regulaforensics/cordova-plugin-document-reader-api" version="8.1.117-rc" xmlns="http://apache.org/cordova/ns/plugins/1.0">
|
|
3
3
|
<name>DocumentReaderApi</name>
|
|
4
4
|
<description>Cordova plugin Document reader api</description>
|
|
5
5
|
<license>commercial</license>
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<source url="https://github.com/CocoaPods/Specs.git"/>
|
|
28
28
|
</config>
|
|
29
29
|
<pods>
|
|
30
|
-
<pod name="
|
|
30
|
+
<pod name="DocumentReaderStage" spec="8.1.4604" />
|
|
31
31
|
</pods>
|
|
32
32
|
</podspec>
|
|
33
33
|
</platform>
|
package/src/android/build.gradle
CHANGED
|
@@ -8,13 +8,13 @@ android {
|
|
|
8
8
|
|
|
9
9
|
repositories {
|
|
10
10
|
maven {
|
|
11
|
-
url "https://maven.regulaforensics.com/RegulaDocumentReader/
|
|
11
|
+
url "https://maven.regulaforensics.com/RegulaDocumentReader/Stage"
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
dependencies {
|
|
16
16
|
//noinspection GradleDependency
|
|
17
|
-
implementation ('com.regula.documentreader:api:8.1.
|
|
17
|
+
implementation ('com.regula.documentreader:api:8.1.11417'){
|
|
18
18
|
transitive = true
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -928,19 +928,17 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
928
928
|
+(NSDictionary*)generateImageQuality:(RGLImageQuality*)input {
|
|
929
929
|
if(input == nil) return nil;
|
|
930
930
|
NSMutableDictionary* result = [NSMutableDictionary new];
|
|
931
|
-
|
|
931
|
+
|
|
932
932
|
result[@"type"] = [RGLWConfig generateImageQualityCheckType:input.type];
|
|
933
933
|
result[@"result"] = @(input.result);
|
|
934
934
|
result[@"featureType"] = @(input.featureType);
|
|
935
935
|
if(input.boundRects != nil){
|
|
936
936
|
NSMutableArray *array = [NSMutableArray new];
|
|
937
|
-
for(NSValue* item in input.boundRects)
|
|
938
|
-
|
|
939
|
-
if(rect) [array addObject:rect];
|
|
940
|
-
}
|
|
937
|
+
for(NSValue* item in input.boundRects)
|
|
938
|
+
[array addObject:[self generateRect:[item CGRectValue]]];
|
|
941
939
|
result[@"boundRects"] = array;
|
|
942
940
|
}
|
|
943
|
-
|
|
941
|
+
|
|
944
942
|
return result;
|
|
945
943
|
}
|
|
946
944
|
|
|
@@ -1909,7 +1907,7 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
1909
1907
|
+(RGLTAChallenge*)taChallengeFromJson:(NSDictionary*)input {
|
|
1910
1908
|
NSMutableDictionary* json = input.mutableCopy;
|
|
1911
1909
|
|
|
1912
|
-
json[@"#text"] = [input valueForKey:@"data"];
|
|
1910
|
+
json[@"#text"] = [self base64Decode:[input valueForKey:@"data"]];
|
|
1913
1911
|
json[@"@auxPCD"] = [input valueForKey:@"auxPCD"];
|
|
1914
1912
|
json[@"@challengePICC"] = [input valueForKey: @"challengePICC"];
|
|
1915
1913
|
json[@"@hashPK"] = [input valueForKey:@"hashPK"];
|