@regulaforensics/face-sdk 7.1.195-rc → 7.1.201-nightly
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 +1 -1
- package/RNFaceSDK.podspec +3 -3
- package/android/CVDFaceSDK.kt +22 -8
- package/android/build.gradle +2 -2
- package/android/cordova.gradle +2 -2
- package/android/src/main/java/com/regula/plugin/facesdk/Config.kt +7 -1
- package/android/src/main/java/com/regula/plugin/facesdk/JSONConstructor.kt +2 -0
- package/android/src/main/java/com/regula/plugin/facesdk/Main.kt +2 -7
- package/android/src/main/java/com/regula/plugin/facesdk/RNFaceApiModule.kt +16 -6
- package/android/src/main/java/com/regula/plugin/facesdk/Utils.kt +1 -1
- package/examples/capacitor/README.md +1 -1
- package/examples/capacitor/android/app/capacitor.build.gradle +5 -4
- package/examples/capacitor/android/capacitor.settings.gradle +3 -0
- package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/examples/capacitor/android/variables.gradle +12 -12
- package/examples/capacitor/ios/App/Podfile +3 -0
- package/examples/capacitor/ios/App/Podfile.lock +72 -0
- package/examples/capacitor/package-lock.json +11336 -0
- package/examples/capacitor/package.json +17 -19
- package/examples/capacitor/scripts/setup.sh +2 -0
- package/examples/capacitor/src/pages/Home.tsx +16 -12
- package/examples/cordova/README.md +1 -1
- package/examples/cordova/package-lock.json +1373 -0
- package/examples/cordova/package.json +2 -2
- package/examples/cordova/scripts/setup.sh +5 -1
- package/examples/ionic/README.md +1 -1
- package/examples/ionic/package-lock.json +15761 -0
- package/examples/ionic/package.json +2 -2
- package/examples/ionic/scripts/setup.sh +5 -1
- package/examples/ionic/src/app/home/home.page.ts +11 -11
- package/examples/react-native/Gemfile.lock +23 -21
- package/examples/react-native/ios/Podfile +2 -0
- package/examples/react-native/ios/Podfile.lock +471 -424
- package/examples/react-native/package-lock.json +615 -702
- package/examples/react-native/package.json +7 -7
- package/examples/react-native/scripts/android.sh +4 -0
- package/examples/react-native/scripts/ios.sh +4 -0
- package/ios/RFSWJSONConstructor.m +13 -15
- package/ios/RFSWMain.m +1 -1
- package/package.json +1 -1
- package/plugin.xml +4 -4
- package/www/capacitor/detect_faces/detect_faces_request.js +2 -0
- package/www/capacitor/image_quality/image_quality_characteristic.js +2 -0
- package/www/capacitor/image_quality/image_quality_group.js +1 -0
- package/www/capacitor/internal/bridge.js +8 -7
- package/www/capacitor/person_database/person_database.js +1 -1
- package/www/cordova.js +84 -75
- package/www/react-native/detect_faces/detect_faces_request.js +2 -0
- package/www/react-native/image_quality/image_quality_characteristic.js +2 -0
- package/www/react-native/image_quality/image_quality_group.js +1 -0
- package/www/react-native/internal/bridge.js +8 -7
- package/www/react-native/person_database/person_database.js +1 -1
- package/www/types/person_database/person_database.d.ts +1 -1
- package/.gitlab/report.yaml +0 -75
- package/.gitlab-ci.yml +0 -49
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
},
|
|
17
17
|
"private": true,
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@regulaforensics/face-sdk": "7.1.
|
|
20
|
-
"@regulaforensics/face-core-basic": "7.1.
|
|
19
|
+
"@regulaforensics/face-sdk": "7.1.201-nightly",
|
|
20
|
+
"@regulaforensics/face-core-basic": "7.1.114-nightly",
|
|
21
21
|
"cordova-plugin-camera": "8.0.0",
|
|
22
22
|
"@awesome-cordova-plugins/camera": "6.14.0",
|
|
23
23
|
"@awesome-cordova-plugins/core": "6.14.0",
|
|
@@ -20,7 +20,7 @@ async function startLiveness() {
|
|
|
20
20
|
}
|
|
21
21
|
})
|
|
22
22
|
if (response.image == null) return
|
|
23
|
-
setImage(response.image, ImageType.LIVE, 1)
|
|
23
|
+
setImage("data:image/png;base64," + response.image, ImageType.LIVE, 1)
|
|
24
24
|
setLivenessStatus(response.liveness == LivenessStatus.PASSED ? "passed" : "unknown")
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -69,12 +69,12 @@ function setImage(base64: string, type: number, position: number) {
|
|
|
69
69
|
var mfImage = new MatchFacesImage(base64, type)
|
|
70
70
|
if (position == 1) {
|
|
71
71
|
image1 = mfImage
|
|
72
|
-
setUiImage1(
|
|
72
|
+
setUiImage1(base64)
|
|
73
73
|
setLivenessStatus("null")
|
|
74
74
|
}
|
|
75
75
|
if (position == 2) {
|
|
76
76
|
image2 = mfImage
|
|
77
|
-
setUiImage2(
|
|
77
|
+
setUiImage2(base64)
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
|
|
@@ -82,22 +82,22 @@ async function useCamera(position: number) {
|
|
|
82
82
|
var response = await faceSdk.startFaceCapture()
|
|
83
83
|
if (response.image == null) return
|
|
84
84
|
var image = response.image
|
|
85
|
-
setImage(image.image, image.imageType, position)
|
|
85
|
+
setImage("data:image/png;base64," + image.image, image.imageType, position)
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
function useGallery(position: number) {
|
|
89
|
-
app.camera.getPicture({
|
|
88
|
+
async function useGallery(position: number) {
|
|
89
|
+
var image = await app.camera.getPicture({
|
|
90
90
|
destinationType: DestinationType.DATA_URL,
|
|
91
91
|
mediaType: MediaType.PICTURE,
|
|
92
92
|
sourceType: PictureSourceType.PHOTOLIBRARY
|
|
93
|
-
})
|
|
93
|
+
})
|
|
94
|
+
setImage(image, ImageType.PRINTED, position)
|
|
94
95
|
}
|
|
95
96
|
|
|
96
|
-
function pickImage(position: number) {
|
|
97
|
-
app.dialogs.confirm("", "Select option", ["Use gallery", "Use camera"])
|
|
98
|
-
|
|
97
|
+
async function pickImage(position: number) {
|
|
98
|
+
var option = await app.dialogs.confirm("", "Select option", ["Use gallery", "Use camera"])
|
|
99
|
+
if (option == 1) useGallery(position)
|
|
99
100
|
else useCamera(position)
|
|
100
|
-
})
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
async function loadAssetIfExists(path: string): Promise<string | null> {
|
|
@@ -65,39 +65,41 @@ GEM
|
|
|
65
65
|
netrc (~> 0.11)
|
|
66
66
|
cocoapods-try (1.2.0)
|
|
67
67
|
colored2 (3.1.2)
|
|
68
|
-
concurrent-ruby (1.3.
|
|
69
|
-
connection_pool (2.5.
|
|
68
|
+
concurrent-ruby (1.3.5)
|
|
69
|
+
connection_pool (2.5.2)
|
|
70
70
|
drb (2.2.1)
|
|
71
71
|
escape (0.0.4)
|
|
72
72
|
ethon (0.16.0)
|
|
73
73
|
ffi (>= 1.15.0)
|
|
74
|
-
ffi (1.17.
|
|
75
|
-
ffi (1.17.
|
|
76
|
-
ffi (1.17.
|
|
77
|
-
ffi (1.17.
|
|
78
|
-
ffi (1.17.
|
|
79
|
-
ffi (1.17.
|
|
80
|
-
ffi (1.17.
|
|
81
|
-
ffi (1.17.
|
|
82
|
-
ffi (1.17.
|
|
83
|
-
ffi (1.17.
|
|
84
|
-
ffi (1.17.
|
|
74
|
+
ffi (1.17.2)
|
|
75
|
+
ffi (1.17.2-aarch64-linux-gnu)
|
|
76
|
+
ffi (1.17.2-aarch64-linux-musl)
|
|
77
|
+
ffi (1.17.2-arm-linux-gnu)
|
|
78
|
+
ffi (1.17.2-arm-linux-musl)
|
|
79
|
+
ffi (1.17.2-arm64-darwin)
|
|
80
|
+
ffi (1.17.2-x86-linux-gnu)
|
|
81
|
+
ffi (1.17.2-x86-linux-musl)
|
|
82
|
+
ffi (1.17.2-x86_64-darwin)
|
|
83
|
+
ffi (1.17.2-x86_64-linux-gnu)
|
|
84
|
+
ffi (1.17.2-x86_64-linux-musl)
|
|
85
85
|
fourflusher (2.3.1)
|
|
86
86
|
fuzzy_match (2.0.4)
|
|
87
87
|
gh_inspector (1.1.3)
|
|
88
|
-
httpclient (2.
|
|
89
|
-
|
|
88
|
+
httpclient (2.9.0)
|
|
89
|
+
mutex_m
|
|
90
|
+
i18n (1.14.7)
|
|
90
91
|
concurrent-ruby (~> 1.0)
|
|
91
|
-
json (2.
|
|
92
|
-
logger (1.
|
|
93
|
-
minitest (5.25.
|
|
92
|
+
json (2.11.3)
|
|
93
|
+
logger (1.7.0)
|
|
94
|
+
minitest (5.25.5)
|
|
94
95
|
molinillo (0.8.0)
|
|
96
|
+
mutex_m (0.3.0)
|
|
95
97
|
nanaimo (0.3.0)
|
|
96
98
|
nap (1.1.0)
|
|
97
99
|
netrc (0.11.0)
|
|
98
100
|
nkf (0.2.0)
|
|
99
101
|
public_suffix (4.0.7)
|
|
100
|
-
rexml (3.4.
|
|
102
|
+
rexml (3.4.1)
|
|
101
103
|
ruby-macho (2.5.1)
|
|
102
104
|
securerandom (0.4.1)
|
|
103
105
|
typhoeus (1.4.1)
|
|
@@ -131,7 +133,7 @@ DEPENDENCIES
|
|
|
131
133
|
xcodeproj (< 1.26.0)
|
|
132
134
|
|
|
133
135
|
RUBY VERSION
|
|
134
|
-
ruby 3.4.
|
|
136
|
+
ruby 3.4.2p28
|
|
135
137
|
|
|
136
138
|
BUNDLED WITH
|
|
137
|
-
2.6.
|
|
139
|
+
2.6.3
|