TP-65774: Upgrade digitap sdk version to 1.4.3 (#10821)
This commit is contained in:
@@ -9,6 +9,7 @@ package com.navi.ap.common.sdk.digitap.helper
|
||||
|
||||
import android.app.Activity
|
||||
import android.text.TextUtils
|
||||
import androidx.core.content.ContextCompat
|
||||
import com.digitap.dtokyc.handler.OKYCListener
|
||||
import com.digitap.dtokyc.sdk.DigiTapOKYC
|
||||
import com.digitap.dtokyc.ui.DTOkycActivity
|
||||
@@ -28,6 +29,8 @@ import com.navi.base.utils.QA
|
||||
import com.navi.common.CommonLibManager
|
||||
import com.navi.common.utils.getNetworkType
|
||||
import com.navi.common.utils.log
|
||||
import com.navi.design.R
|
||||
import com.navi.design.utils.toHexRgbColorString
|
||||
import javax.inject.Inject
|
||||
|
||||
class DigiTapAadhaarVerificationSdkHelper @Inject constructor() {
|
||||
@@ -65,7 +68,29 @@ class DigiTapAadhaarVerificationSdkHelper @Inject constructor() {
|
||||
}
|
||||
|
||||
private fun startDigiTapEkyc(activity: Activity, identifier: String) {
|
||||
val dtoKycCustomizationConfig = DTOkycCustomizationConfig()
|
||||
|
||||
val dtoKycCustomizationConfig =
|
||||
DTOkycCustomizationConfig().apply {
|
||||
setPrimaryBtnBackgroundColor(
|
||||
ContextCompat.getColor(activity, R.color.purple_button_color)
|
||||
.toHexRgbColorString()
|
||||
)
|
||||
|
||||
setPrimaryBtnTextColor(
|
||||
ContextCompat.getColor(activity, R.color.white).toHexRgbColorString()
|
||||
)
|
||||
|
||||
setSecondaryBtnTextColor(
|
||||
ContextCompat.getColor(activity, R.color.purple_button_color)
|
||||
.toHexRgbColorString()
|
||||
)
|
||||
setSecondaryBtnBackgroundColor(
|
||||
ContextCompat.getColor(activity, R.color.ctaSecondaryColor)
|
||||
.toHexRgbColorString()
|
||||
)
|
||||
setBtnCornerRadius(4f)
|
||||
}
|
||||
|
||||
try {
|
||||
DTOkycActivity.launch(
|
||||
activity,
|
||||
|
||||
@@ -56,7 +56,7 @@ compose-bom = "2024.02.02"
|
||||
compose-lib = "1.5.14"
|
||||
delight-advancedWebView = "v3.0.0"
|
||||
digio = "v4.0.6"
|
||||
digitap = "1.4.0"
|
||||
digitap = "1.4.3"
|
||||
facebook-applinks = "16.3.0"
|
||||
facebook-shimmer = "0.5.0"
|
||||
finarkein = "0.4.0"
|
||||
|
||||
@@ -607,3 +607,7 @@ fun Modifier.shimmerEffect(colors: List<androidx.compose.ui.graphics.Color>): Mo
|
||||
)
|
||||
.onGloballyPositioned { size = it.size }
|
||||
}
|
||||
|
||||
fun Int.toHexRgbColorString(): String {
|
||||
return String.format("#%06X", (0xFFFFFF and this))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user