@oiti/rn-liveness3d 1.1.0 → 1.1.2

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.
@@ -5,9 +5,8 @@ buildscript {
5
5
  repositories {
6
6
  google()
7
7
  mavenCentral()
8
- maven { url "https://raw.githubusercontent.com/oititec/android-oiti-versions-beta/master" }
9
8
  maven {
10
- url 'https://raw.githubusercontent.com/oititec/android-oiti-versions-beta/master'
9
+ url 'https://raw.githubusercontent.com/oititec/android-oiti-versions/master'
11
10
  }
12
11
  }
13
12
 
@@ -154,8 +153,7 @@ dependencies {
154
153
  implementation "com.squareup.retrofit2:retrofit:2.9.0"
155
154
  implementation 'androidx.databinding:databinding-runtime:4.2.2'
156
155
 
157
-
158
- implementation 'br.com.oiti:liveness3d-sdk:7.1.2'
156
+ implementation 'br.com.oiti:liveness3d-sdk:8.1.4'
159
157
  implementation 'br.com.oiti:security:1.2'
160
158
 
161
159
  // From node_modules
package/ios/Podfile CHANGED
@@ -1,6 +1,6 @@
1
1
  platform :ios, '12.4'
2
2
 
3
- source 'https://github.com/oititec/ios-artifactory-beta.git'
3
+ source 'https://github.com/oititec/ios-artifactory.git'
4
4
  source 'https://github.com/CocoaPods/Specs.git'
5
5
 
6
6
 
@@ -9,6 +9,6 @@ target 'RnLiveness3d' do
9
9
  use_frameworks!
10
10
 
11
11
  # Pods for sampleUsageLivenessSDK
12
- pod 'OILiveness3D', '1.0.1'
12
+ pod 'OILiveness3D', '1.0.4'
13
13
 
14
14
  end
@@ -5,18 +5,17 @@ import AVFoundation
5
5
 
6
6
  @objc(RnLiveness3d)
7
7
  class RnLiveness3d: NSObject, Liveness3DDelegate {
8
-
9
- var resolve:RCTPromiseResolveBlock!
10
- var reject:RCTPromiseRejectBlock!
11
-
12
8
  func handleLiveness3DValidation(validateModel: Liveness3DSuccess) {
13
9
  resolve("RESULT_OK")
14
10
  }
15
11
 
16
- func handleLiveness3DError(error: Liveness3DError) {
12
+ func handleLiveness3DError(error: OILiveness3D.Liveness3DError) {
17
13
  resolve(error.message)
18
14
  }
19
15
 
16
+ var resolve:RCTPromiseResolveBlock!
17
+ var reject:RCTPromiseRejectBlock!
18
+
20
19
  @objc(logevent:withResolver:withRejecter:)
21
20
  func logevent(args: Dictionary<String,Any>?, resolve:@escaping RCTPromiseResolveBlock, reject:RCTPromiseRejectBlock) -> Void {
22
21
  let event = args?["event"] as? String ?? ""
@@ -153,7 +152,6 @@ class RnLiveness3d: NSObject, Liveness3DDelegate {
153
152
  texts: liveness3DTexts
154
153
  )
155
154
 
156
-
157
155
  AVCaptureDevice.requestAccess(for: AVMediaType.video) { response in
158
156
  if response {
159
157
 
@@ -182,13 +180,11 @@ class RnLiveness3d: NSObject, Liveness3DDelegate {
182
180
  RCTPresentedViewController()?.present(liveness3DViewController, animated: true)
183
181
  }
184
182
 
185
-
186
183
  } else {
187
184
  resolve("RESULT_CANCELED")
188
185
  }
189
186
  }
190
187
 
191
-
192
188
  }
193
189
  }
194
190
 
@@ -18,7 +18,7 @@ Pod::Spec.new do |s|
18
18
 
19
19
  s.dependency "React-Core"
20
20
 
21
- s.ios.dependency 'OILiveness3D', '1.0.1'
21
+ s.ios.dependency 'OILiveness3D', '1.0.4'
22
22
 
23
23
  # Don't install the dependencies when we run `pod install` in the old architecture.
24
24
  if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oiti/rn-liveness3d",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "test",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
package/ios/Podfile.lock DELETED
@@ -1,34 +0,0 @@
1
- PODS:
2
- - OICommons (1.1.0)
3
- - OIComponents (1.2.1):
4
- - OICommons (~> 1.1.0)
5
- - OILiveness3D (1.0.0):
6
- - OICommons (~> 1.1.0)
7
- - OIComponents (~> 1.2.0)
8
- - OILiveness3D_FT (= 9.6.40)
9
- - OINetwork (~> 1.2.0)
10
- - OILiveness3D_FT (9.6.40)
11
- - OINetwork (1.2.0):
12
- - OICommons (~> 1.1.0)
13
-
14
- DEPENDENCIES:
15
- - OILiveness3D (= 1.0.0)
16
-
17
- SPEC REPOS:
18
- https://github.com/oititec/ios-artifactory.git:
19
- - OICommons
20
- - OIComponents
21
- - OILiveness3D
22
- - OILiveness3D_FT
23
- - OINetwork
24
-
25
- SPEC CHECKSUMS:
26
- OICommons: c304a4f3aa3f0fe9282eae013a45fde717ad42bf
27
- OIComponents: 8cf47c0dc9b3477e8e4d5513c99b0c83283da3ce
28
- OILiveness3D: 0c563045356e9af3c182788e4cfd56b4b5d6c7a3
29
- OILiveness3D_FT: a58ceb6ea1b1229015434125d25b78b46f7667a9
30
- OINetwork: 3cf1ea4bd61a98bd68db7d1caa3f175b4868f5b4
31
-
32
- PODFILE CHECKSUM: a3090c37daedeabb4d72153ace1c3354a15c0f2a
33
-
34
- COCOAPODS: 1.12.0