From b3b50d03468f3dfdbf460faeafb9c973972eac95 Mon Sep 17 00:00:00 2001 From: Thales Ogliari Date: Tue, 7 Mar 2023 17:30:42 -0300 Subject: [PATCH] fix: swift changes and caf packages version --- caf-src/ios/CombateAFraude.swift | 6 +++--- src/index.ts | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/caf-src/ios/CombateAFraude.swift b/caf-src/ios/CombateAFraude.swift index d8fde9b..5ac3097 100644 --- a/caf-src/ios/CombateAFraude.swift +++ b/caf-src/ios/CombateAFraude.swift @@ -25,7 +25,7 @@ class CombateAFraude: RCTEventEmitter, PassiveFaceLivenessControllerDelegate, Do @objc(passiveFaceLiveness:) func passiveFaceLiveness(mobileToken: String) { let passiveFaceLiveness = PassiveFaceLivenessSdk.Builder(mobileToken: mobileToken) - .enableMultiLanguage(enable: false) + .enableMultiLanguage(false) .build() DispatchQueue.main.async { @@ -75,7 +75,7 @@ class CombateAFraude: RCTEventEmitter, PassiveFaceLivenessControllerDelegate, Do func documentDetector(mobileToken: String, documentType: String) { let documentDetectorBuilder = DocumentDetectorSdk.Builder(mobileToken: mobileToken) - _ = documentDetectorBuilder.enableMultiLanguage(enable: false) + _ = documentDetectorBuilder.enableMultiLanguage(false) if (documentType == "RG"){ _ = documentDetectorBuilder.setDocumentDetectorFlow(flow :[ @@ -169,7 +169,7 @@ class CombateAFraude: RCTEventEmitter, PassiveFaceLivenessControllerDelegate, Do @objc(faceAuthenticator:CPF:) func faceAuthenticator(mobileToken: String, CPF: String) { let faceAuthenticator = FaceAuthenticatorSdk.Builder(mobileToken: mobileToken) - .setPersonId(CPF) + // .setPersonId(CPF) .build() DispatchQueue.main.async { diff --git a/src/index.ts b/src/index.ts index b6595ea..a85625c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -77,7 +77,7 @@ const withCafIos: ConfigPlugin = (config) => { results = mergeContents({ tag: 'DocumentDetector', src: results.contents, - newSrc: ` pod 'DocumentDetector'`, + newSrc: ` pod 'DocumentDetector', '~> 7.10.0'`, anchor: /use_react_native!/, offset: 0, comment: '#', @@ -85,7 +85,7 @@ const withCafIos: ConfigPlugin = (config) => { results = mergeContents({ tag: 'PassiveFaceLiveness', src: results.contents, - newSrc: ` pod 'PassiveFaceLiveness'`, + newSrc: ` pod 'PassiveFaceLiveness', '~> 5.25.0'`, anchor: /use_react_native!/, offset: 0, comment: '#', @@ -93,7 +93,7 @@ const withCafIos: ConfigPlugin = (config) => { results = mergeContents({ tag: 'FaceAuthenticator', src: results.contents, - newSrc: ` pod 'FaceAuthenticator'`, + newSrc: ` pod 'FaceAuthenticator', '~> 5.11.0'`, anchor: /use_react_native!/, offset: 0, comment: '#', @@ -266,9 +266,9 @@ const withCafAndroid: ConfigPlugin = (config) => { tag: 'Dependencies', src: config.modResults.contents, newSrc: ` - implementation 'com.combateafraude.sdk:document-detector' - implementation 'com.combateafraude.sdk:passive-face-liveness' - implementation 'com.combateafraude.sdk:face-authenticator' + implementation 'com.combateafraude.sdk:document-detector:6.38.0' + implementation 'com.combateafraude.sdk:passive-face-liveness:5.25.12' + implementation 'com.combateafraude.sdk:face-authenticator:5.8.13' `, anchor: /dependencies {/, offset: 1,