@regulaforensics/face-sdk 7.1.382-nightly → 7.1.384-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/RNFaceSDK.podspec CHANGED
@@ -5,7 +5,7 @@ source = File.join(__dir__, 'ios')
5
5
 
6
6
  Pod::Spec.new do |s|
7
7
  s.name = 'RNFaceSDK'
8
- s.version = '7.1.382-nightly'
8
+ s.version = '7.1.384-nightly'
9
9
  s.summary = package['description']
10
10
  s.license = package['license']
11
11
 
@@ -16,6 +16,6 @@ Pod::Spec.new do |s|
16
16
  s.ios.deployment_target = '13.0'
17
17
  s.source_files = 'ios/**/*.{h,m}'
18
18
  s.exclude_files = [ 'ios/CVDFaceSDK.h', 'ios/CVDFaceSDK.m' ]
19
- s.dependency 'FaceSDKNightly', '7.1.2969'
19
+ s.dependency 'FaceSDKNightly', '7.1.2976'
20
20
  s.dependency 'React'
21
21
  end
@@ -41,7 +41,7 @@ dependencies {
41
41
  //noinspection GradleDynamicVersion
42
42
  implementation 'com.facebook.react:react-native:+'
43
43
  //noinspection GradleDependency
44
- implementation('com.regula.face:api:7.1.3912'){
44
+ implementation('com.regula.face:api:7.1.3920'){
45
45
  transitive = true
46
46
  }
47
47
  }
@@ -12,7 +12,7 @@ repositories {
12
12
 
13
13
  dependencies {
14
14
  //noinspection GradleDependency
15
- implementation('com.regula.face:api:7.1.3912'){
15
+ implementation('com.regula.face:api:7.1.3920'){
16
16
  transitive = true
17
17
  }
18
18
  }
@@ -30,6 +30,12 @@ fun methodCall(method: String, callback: (Any?) -> Unit): Any = when (method) {
30
30
  "getVersion" -> getVersion(callback)
31
31
  "getServiceUrl" -> getServiceUrl(callback)
32
32
  "setServiceUrl" -> setServiceUrl(argsNullable(0))
33
+ "getTenant" -> getTenant(callback)
34
+ "setTenant" -> setTenant(argsNullable(0))
35
+ "getEnv" -> getEnv(callback)
36
+ "setEnv" -> setEnv(argsNullable(0))
37
+ "getLocale" -> getLocale(callback)
38
+ "setLocale" -> setLocale(argsNullable(0))
33
39
  "setLocalizationDictionary" -> setLocalizationDictionary(args(0))
34
40
  "setRequestHeaders" -> setRequestHeaders(args(0))
35
41
  "setCustomization" -> setCustomization(args(0))
@@ -81,6 +87,18 @@ fun getServiceUrl(callback: Callback) = callback(Instance().serviceUrl)
81
87
 
82
88
  fun setServiceUrl(url: String?) = url.let { Instance().serviceUrl = it }
83
89
 
90
+ fun getTenant(callback: Callback) = callback(Instance().tenant)
91
+
92
+ fun setTenant(tag: String?) = tag.let { Instance().tenant = it }
93
+
94
+ fun getEnv(callback: Callback) = callback(Instance().env)
95
+
96
+ fun setEnv(tag: String?) = tag.let { Instance().env = it }
97
+
98
+ fun getLocale(callback: Callback) = callback(Instance().locale)
99
+
100
+ fun setLocale(locale: String?) = locale.let { Instance().locale = it }
101
+
84
102
  fun setLocalizationDictionary(dictionary: JSONObject) {
85
103
  localizationCallbacks = LocalizationCallbacks { if (dictionary.has(it)) dictionary.getString(it) else null }
86
104
  Instance().setLocalizationCallback(localizationCallbacks!!)
@@ -6,8 +6,8 @@
6
6
  "android": "scripts/android.sh"
7
7
  },
8
8
  "dependencies": {
9
- "@regulaforensics/face-sdk": "7.1.382-nightly",
10
- "@regulaforensics/face-core-basic": "7.1.222-nightly",
9
+ "@regulaforensics/face-sdk": "7.1.384-nightly",
10
+ "@regulaforensics/face-core-basic": "7.1.224-nightly",
11
11
  "@awesome-cordova-plugins/file": "6.6.0",
12
12
  "@awesome-cordova-plugins/camera": "6.6.0",
13
13
  "cordova-plugin-file": "8.1.3",
@@ -6,8 +6,8 @@
6
6
  "android": "scripts/android.sh"
7
7
  },
8
8
  "dependencies": {
9
- "@regulaforensics/face-sdk": "7.1.382-nightly",
10
- "@regulaforensics/face-core-basic": "7.1.222-nightly",
9
+ "@regulaforensics/face-sdk": "7.1.384-nightly",
10
+ "@regulaforensics/face-core-basic": "7.1.224-nightly",
11
11
  "cordova-ios": "7.1.1",
12
12
  "cordova-android": "13.0.0",
13
13
  "cordova-plugin-file": "8.1.3",
@@ -6,8 +6,8 @@
6
6
  "android": "scripts/android.sh"
7
7
  },
8
8
  "dependencies": {
9
- "@regulaforensics/face-sdk": "7.1.382-nightly",
10
- "@regulaforensics/face-core-basic": "7.1.222-nightly",
9
+ "@regulaforensics/face-sdk": "7.1.384-nightly",
10
+ "@regulaforensics/face-core-basic": "7.1.224-nightly",
11
11
  "@awesome-cordova-plugins/file": "6.16.0",
12
12
  "@awesome-cordova-plugins/camera": "6.16.0",
13
13
  "@awesome-cordova-plugins/dialogs": "6.16.0",
@@ -8,8 +8,8 @@
8
8
  "start": "expo start"
9
9
  },
10
10
  "dependencies": {
11
- "@regulaforensics/face-sdk": "7.1.382-nightly",
12
- "@regulaforensics/face-core-basic": "7.1.222-nightly",
11
+ "@regulaforensics/face-sdk": "7.1.384-nightly",
12
+ "@regulaforensics/face-core-basic": "7.1.224-nightly",
13
13
  "react-native": "0.79.2",
14
14
  "react-native-fs": "2.20.0",
15
15
  "react-native-image-picker": "8.2.1",
@@ -291,9 +291,9 @@
291
291
 
292
292
  +(id)livenessResponseFromJSON:(NSDictionary*)input {
293
293
  RFSLivenessResponse* result = [RFSLivenessResponse alloc];
294
- SEL sel = NSSelectorFromString(@"initWithTag:transactionId:estimatedAge:status:normalImage:scaledImage:error:");
294
+ SEL sel = NSSelectorFromString(@"initWithTag:transactionId:estimatedAge:status:image:error:");
295
295
  IMP imp = [result methodForSelector:sel];
296
- void (*func)(id, SEL, id, id, id, NSInteger, id, id, id) = (void *)imp;
296
+ void (*func)(id, SEL, id, id, id, NSInteger, id, id) = (void *)imp;
297
297
  func(result,
298
298
  sel,
299
299
  input[@"tag"],
@@ -301,7 +301,6 @@
301
301
  input[@"estimatedAge"],
302
302
  [input[@"liveness"] integerValue],
303
303
  [self imageWithBase64:input[@"image"]],
304
- [self imageWithBase64:input[@"image"]],
305
304
  nil);
306
305
  return result;
307
306
  }
package/ios/RFSWMain.m CHANGED
@@ -9,6 +9,12 @@
9
9
  @"getVersion": ^{ [self getVersion :callback]; },
10
10
  @"getServiceUrl": ^{ [self getServiceUrl :callback]; },
11
11
  @"setServiceUrl": ^{ [self setServiceUrl :args[0] :callback]; },
12
+ @"getTenant": ^{ [self getTenant :callback]; },
13
+ @"setTenant": ^{ [self setTenant :args[0]]; },
14
+ @"getEnv": ^{ [self getEnv :callback]; },
15
+ @"setEnv": ^{ [self setEnv :args[0]]; },
16
+ @"getLocale": ^{ [self getLocale :callback]; },
17
+ @"setLocale": ^{ [self setLocale :args[0]]; },
12
18
  @"setLocalizationDictionary": ^{ [self setLocalizationDictionary :args[0]]; },
13
19
  @"setRequestHeaders": ^{ [self setRequestHeaders :args[0]]; },
14
20
  @"setCustomization": ^{ [self setCustomization :args[0]]; },
@@ -64,6 +70,30 @@ static NSDictionary* headers;
64
70
  callback(@"");
65
71
  }
66
72
 
73
+ +(void)getTenant:(RFSWCallback)callback {
74
+ callback([RFSFaceSDK.service tenant]);
75
+ }
76
+
77
+ +(void)setTenant:(NSString*)tag {
78
+ [RFSFaceSDK.service setTenant:tag];
79
+ }
80
+
81
+ +(void)getEnv:(RFSWCallback)callback {
82
+ callback([RFSFaceSDK.service env]);
83
+ }
84
+
85
+ +(void)setEnv:(NSString*)tag {
86
+ [RFSFaceSDK.service setEnv:tag];
87
+ }
88
+
89
+ +(void)getLocale:(RFSWCallback)callback {
90
+ callback([RFSFaceSDK.service languageLocaleCode]);
91
+ }
92
+
93
+ +(void)setLocale:(NSString*)locale {
94
+ [RFSFaceSDK.service setLanguageLocaleCode:locale];
95
+ }
96
+
67
97
  +(void)setLocalizationDictionary:(NSDictionary*)dictionary {
68
98
  RFSFaceSDK.service.localizationHandler = ^NSString* (NSString* localizationKey) {
69
99
  if (dictionary[localizationKey]) return dictionary[localizationKey];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/face-sdk",
3
- "version": "7.1.382-nightly",
3
+ "version": "7.1.384-nightly",
4
4
  "description": "This is an npm module for Regula Face SDK. It allows you to easily compaire faces using your phone's camera.",
5
5
  "main": "www/react-native/index.js",
6
6
  "module": "www/capacitor/index.js",
package/plugin.xml CHANGED
@@ -1,5 +1,5 @@
1
1
  <?xml version='1.0' encoding='utf-8'?>
2
- <plugin id="@regulaforensics/face-sdk" version="7.1.382-nightly" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/face-sdk" version="7.1.384-nightly" xmlns="http://apache.org/cordova/ns/plugins/1.0">
3
3
  <name>FaceSDK</name>
4
4
  <description>Cordova plugin for Regula Face SDK</description>
5
5
  <license>commercial</license>
@@ -29,7 +29,7 @@
29
29
  <source url="https://github.com/CocoaPods/Specs.git" />
30
30
  </config>
31
31
  <pods>
32
- <pod name="FaceSDKNightly" spec="7.1.2969" />
32
+ <pod name="FaceSDKNightly" spec="7.1.2976" />
33
33
  </pods>
34
34
  </podspec>
35
35
  </platform>
@@ -105,6 +105,27 @@ export class FaceSDK {
105
105
  this._setServiceUrl(val)
106
106
  }
107
107
 
108
+ get tenant() { return this._tenant }
109
+ _tenant = null
110
+ set tenant(val) {
111
+ this._tenant = val;
112
+ this._setTenant(val);
113
+ }
114
+
115
+ get env() { return this._env }
116
+ _env = null
117
+ set env(val) {
118
+ this._env = val;
119
+ this._setEnv(val);
120
+ }
121
+
122
+ get locale() { return this._locale }
123
+ _locale = null
124
+ set locale(val) {
125
+ this._locale = val;
126
+ this._setLocale(val);
127
+ }
128
+
108
129
  get localizationDictionary() { return this._localizationDictionary }
109
130
  _localizationDictionary
110
131
  set localizationDictionary(val) {
@@ -196,6 +217,9 @@ export class FaceSDK {
196
217
  async _onInit() {
197
218
  this._version = await this._getVersion()
198
219
  this._serviceUrl = await this._getServiceUrl()
220
+ this._tenant = await this._getTenant();
221
+ this._env = await this._getEnv();
222
+ this._locale = await this._getLocale();
199
223
  }
200
224
 
201
225
  async _getVersion() {
@@ -211,6 +235,30 @@ export class FaceSDK {
211
235
  exec("setServiceUrl", [url])
212
236
  }
213
237
 
238
+ async _getTenant() {
239
+ return await exec("getTenant", []);
240
+ }
241
+
242
+ _setTenant(tenant) {
243
+ exec("setTenant", [tenant]);
244
+ }
245
+
246
+ async _getEnv() {
247
+ return await exec("getEnv", []);
248
+ }
249
+
250
+ _setEnv(env) {
251
+ exec("setEnv", [env]);
252
+ }
253
+
254
+ async _getLocale() {
255
+ return await exec("getLocale", []);
256
+ }
257
+
258
+ _setLocale(locale) {
259
+ exec("setLocale", [locale]);
260
+ }
261
+
214
262
  _setLocalizationDictionary(dictionary) {
215
263
  exec("setLocalizationDictionary", [dictionary])
216
264
  }
package/www/cordova.js CHANGED
@@ -2163,6 +2163,27 @@ class FaceSDK {
2163
2163
  this._setServiceUrl(val)
2164
2164
  }
2165
2165
 
2166
+ get tenant() { return this._tenant }
2167
+ _tenant = null
2168
+ set tenant(val) {
2169
+ this._tenant = val;
2170
+ this._setTenant(val);
2171
+ }
2172
+
2173
+ get env() { return this._env }
2174
+ _env = null
2175
+ set env(val) {
2176
+ this._env = val;
2177
+ this._setEnv(val);
2178
+ }
2179
+
2180
+ get locale() { return this._locale }
2181
+ _locale = null
2182
+ set locale(val) {
2183
+ this._locale = val;
2184
+ this._setLocale(val);
2185
+ }
2186
+
2166
2187
  get localizationDictionary() { return this._localizationDictionary }
2167
2188
  _localizationDictionary
2168
2189
  set localizationDictionary(val) {
@@ -2254,6 +2275,9 @@ class FaceSDK {
2254
2275
  async _onInit() {
2255
2276
  this._version = await this._getVersion()
2256
2277
  this._serviceUrl = await this._getServiceUrl()
2278
+ this._tenant = await this._getTenant();
2279
+ this._env = await this._getEnv();
2280
+ this._locale = await this._getLocale();
2257
2281
  }
2258
2282
 
2259
2283
  async _getVersion() {
@@ -2269,6 +2293,30 @@ class FaceSDK {
2269
2293
  (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setServiceUrl", [url])
2270
2294
  }
2271
2295
 
2296
+ async _getTenant() {
2297
+ return await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getTenant", []);
2298
+ }
2299
+
2300
+ _setTenant(tenant) {
2301
+ (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setTenant", [tenant]);
2302
+ }
2303
+
2304
+ async _getEnv() {
2305
+ return await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getEnv", []);
2306
+ }
2307
+
2308
+ _setEnv(env) {
2309
+ (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setEnv", [env]);
2310
+ }
2311
+
2312
+ async _getLocale() {
2313
+ return await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getLocale", []);
2314
+ }
2315
+
2316
+ _setLocale(locale) {
2317
+ (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setLocale", [locale]);
2318
+ }
2319
+
2272
2320
  _setLocalizationDictionary(dictionary) {
2273
2321
  (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setLocalizationDictionary", [dictionary])
2274
2322
  }
@@ -105,6 +105,27 @@ export class FaceSDK {
105
105
  this._setServiceUrl(val)
106
106
  }
107
107
 
108
+ get tenant() { return this._tenant }
109
+ _tenant = null
110
+ set tenant(val) {
111
+ this._tenant = val;
112
+ this._setTenant(val);
113
+ }
114
+
115
+ get env() { return this._env }
116
+ _env = null
117
+ set env(val) {
118
+ this._env = val;
119
+ this._setEnv(val);
120
+ }
121
+
122
+ get locale() { return this._locale }
123
+ _locale = null
124
+ set locale(val) {
125
+ this._locale = val;
126
+ this._setLocale(val);
127
+ }
128
+
108
129
  get localizationDictionary() { return this._localizationDictionary }
109
130
  _localizationDictionary
110
131
  set localizationDictionary(val) {
@@ -196,6 +217,9 @@ export class FaceSDK {
196
217
  async _onInit() {
197
218
  this._version = await this._getVersion()
198
219
  this._serviceUrl = await this._getServiceUrl()
220
+ this._tenant = await this._getTenant();
221
+ this._env = await this._getEnv();
222
+ this._locale = await this._getLocale();
199
223
  }
200
224
 
201
225
  async _getVersion() {
@@ -211,6 +235,30 @@ export class FaceSDK {
211
235
  exec("setServiceUrl", [url])
212
236
  }
213
237
 
238
+ async _getTenant() {
239
+ return await exec("getTenant", []);
240
+ }
241
+
242
+ _setTenant(tenant) {
243
+ exec("setTenant", [tenant]);
244
+ }
245
+
246
+ async _getEnv() {
247
+ return await exec("getEnv", []);
248
+ }
249
+
250
+ _setEnv(env) {
251
+ exec("setEnv", [env]);
252
+ }
253
+
254
+ async _getLocale() {
255
+ return await exec("getLocale", []);
256
+ }
257
+
258
+ _setLocale(locale) {
259
+ exec("setLocale", [locale]);
260
+ }
261
+
214
262
  _setLocalizationDictionary(dictionary) {
215
263
  exec("setLocalizationDictionary", [dictionary])
216
264
  }
@@ -97,6 +97,18 @@ export class FaceSDK {
97
97
  get serviceUrl(): string | null
98
98
  set serviceUrl(val: string | null)
99
99
 
100
+ /** Customer name. */
101
+ tenant: string | null;
102
+
103
+ /** Environment type. */
104
+ env: string | null;
105
+
106
+ /**
107
+ * Custom language locale code of DocumentReaderSDK.
108
+ * If empty or doesn't exist - app language is used. Format "en-US" or "en".
109
+ */
110
+ locale: string | null;
111
+
100
112
  /**
101
113
  * A localization dictionary to override default localization logic.
102
114
  * Allows to replace any string of FaceSDK with an arbitrary string.