@yeomessagingcom/react-native-yeofr 0.1.19 → 0.1.21
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/ios/YEOFRModule.swift
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Foundation
|
|
2
2
|
import React
|
|
3
|
-
import YEOFR
|
|
3
|
+
import YEOFR
|
|
4
4
|
|
|
5
5
|
@objc(YEOFRModule)
|
|
6
6
|
class YEOFRModule: NSObject {
|
|
@@ -30,9 +30,7 @@ class YEOFRModule: NSObject {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
@objc func getTrackerData(_ resolve: RCTPromiseResolveBlock, rejecter reject: RCTPromiseRejectBlock) {
|
|
33
|
-
|
|
34
|
-
return reject("no_data", "tracker data unavailable", nil)
|
|
35
|
-
}
|
|
33
|
+
let data = sdk.faceRecognitionTrackerData()
|
|
36
34
|
resolve(data.base64EncodedString())
|
|
37
35
|
}
|
|
38
36
|
|
|
@@ -62,7 +60,7 @@ class YEOFRModule: NSObject {
|
|
|
62
60
|
ratio: NSNumber,
|
|
63
61
|
bufferBase64: NSString,
|
|
64
62
|
needFaceRect: Bool,
|
|
65
|
-
uuid uuidString: NSString
|
|
63
|
+
uuid uuidString: NSString,
|
|
66
64
|
resolver resolve: @escaping RCTPromiseResolveBlock,
|
|
67
65
|
rejecter reject: @escaping RCTPromiseRejectBlock) {
|
|
68
66
|
|
|
@@ -73,7 +71,7 @@ class YEOFRModule: NSObject {
|
|
|
73
71
|
ratio: ratio.floatValue,
|
|
74
72
|
bufferBase64: bufferBase64 as String,
|
|
75
73
|
needFaceRect: needFaceRect,
|
|
76
|
-
uuidString: uuidString as String
|
|
74
|
+
uuidString: uuidString as String
|
|
77
75
|
)
|
|
78
76
|
|
|
79
77
|
// Decide policy: resolve always with payload (error lives in payload), or reject on error.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Pod::Spec.new do |s|
|
|
2
2
|
s.name = "react-native-yeofr"
|
|
3
|
-
s.version = "0.1.
|
|
3
|
+
s.version = "0.1.21"
|
|
4
4
|
s.summary = "React Native iOS bridge for YEO Face Recognition."
|
|
5
5
|
s.homepage = "https://github.com/yeomessaging/react-native-yeofr"
|
|
6
6
|
s.license = { :type => "Commercial", :file => "LICENSE" }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yeomessagingcom/react-native-yeofr",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"description": "React Native iOS integration for YEO Face Recognition (device-only).",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"react-native": "index.ts",
|
|
@@ -39,6 +39,6 @@
|
|
|
39
39
|
"@types/react-native": "^0.72.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@yeomessagingcom/react-native-yeofr": "^0.1.
|
|
42
|
+
"@yeomessagingcom/react-native-yeofr": "^0.1.21"
|
|
43
43
|
}
|
|
44
44
|
}
|