diff --git a/android/app/src/main/java/com/naviapp/analytics/utils/NaviSDKHelper.kt b/android/app/src/main/java/com/naviapp/analytics/utils/NaviSDKHelper.kt index bfa6f07a44..51741b1e31 100644 --- a/android/app/src/main/java/com/naviapp/analytics/utils/NaviSDKHelper.kt +++ b/android/app/src/main/java/com/naviapp/analytics/utils/NaviSDKHelper.kt @@ -30,6 +30,7 @@ import com.navi.base.utils.BaseUtils import com.navi.common.CommonLibManager import com.navi.common.adverse.AdverseDependencyProvider import com.navi.common.firebaseremoteconfig.FirebaseRemoteConfigHelper +import com.navi.common.firebaseremoteconfig.FirebaseRemoteConfigHelper.ADVERSE_NETWORK_TIMEOUT import com.navi.common.firebaseremoteconfig.FirebaseRemoteConfigHelper.DISABLE_ALFRED import com.navi.common.firebaseremoteconfig.FirebaseRemoteConfigHelper.PULSE_EVENT_BATCH_SIZE import com.navi.common.firebaseremoteconfig.FirebaseRemoteConfigHelper.PULSE_EVENT_INTERVAL_IN_SECS @@ -133,6 +134,7 @@ object NaviSDKHelper { appVersionCode = getVersionCode(), appVersionName = BuildConfig.VERSION_NAME, flavor = BuildConfig.FLAVOR, + timeoutInSec = FirebaseRemoteConfigHelper.getLong(ADVERSE_NETWORK_TIMEOUT) ), AdverseDependencyProvider() ) diff --git a/android/gradle/libs.versions.toml b/android/gradle/libs.versions.toml index 19c161f64f..c0f7a63bf5 100644 --- a/android/gradle/libs.versions.toml +++ b/android/gradle/libs.versions.toml @@ -97,7 +97,7 @@ moengage-inapp = "6.5.0" moengage-push-amp-plus = "6.2.1" moengage-rich-notification = "4.3.2" mvel2 = "2.4.15.Final" -navi-adverse = "1.0.1" +navi-adverse = "1.1.0" navi-alfred = "1.10.0" navi-guarddog = "3.3.0" navi-pulse = "1.5.0" diff --git a/android/navi-bbps/src/main/kotlin/com/navi/bbps/feature/transactiondetails/ui/BbpsPostPaymentScreen.kt b/android/navi-bbps/src/main/kotlin/com/navi/bbps/feature/transactiondetails/ui/BbpsPostPaymentScreen.kt index be39befad0..45754ad54c 100644 --- a/android/navi-bbps/src/main/kotlin/com/navi/bbps/feature/transactiondetails/ui/BbpsPostPaymentScreen.kt +++ b/android/navi-bbps/src/main/kotlin/com/navi/bbps/feature/transactiondetails/ui/BbpsPostPaymentScreen.kt @@ -415,11 +415,10 @@ fun RenderPostPaymentScreen( FirebaseRemoteConfigHelper.getString( NAVI_BBPS_PPS_CROSS_SELL_AD_RE_ID ), - timeoutValueInSec = + timeoutInMillis = FirebaseRemoteConfigHelper.getLong( - NAVI_BBPS_PPS_CROSS_SELL_AD_FALLBACK_TIMEOUT - ) - .toInt(), + NAVI_BBPS_PPS_CROSS_SELL_AD_FALLBACK_TIMEOUT + ), loadingView = { CrossSellLoadingShimmer() }, fallbackView = { CrossSellFallbackSection( diff --git a/android/navi-common/src/main/java/com/navi/common/firebaseremoteconfig/FirebaseRemoteConfigHelper.kt b/android/navi-common/src/main/java/com/navi/common/firebaseremoteconfig/FirebaseRemoteConfigHelper.kt index 1c14d2abf2..7d902f1fc8 100644 --- a/android/navi-common/src/main/java/com/navi/common/firebaseremoteconfig/FirebaseRemoteConfigHelper.kt +++ b/android/navi-common/src/main/java/com/navi/common/firebaseremoteconfig/FirebaseRemoteConfigHelper.kt @@ -184,6 +184,7 @@ object FirebaseRemoteConfigHelper { const val UPI_PROFILE_CONFIG_SYNC_DISABLED = "UPI_PROFILE_CONFIG_SYNC_DISABLED" const val UPI_DELAYED_ONB_SYNC_TIME = "UPI_DELAYED_ONB_SYNC_TIME" const val ENABLE_BHARAT_QR_PARSING_LOGIC = "ENABLE_BHARAT_QR_PARSING_LOGIC" + const val ADVERSE_NETWORK_TIMEOUT = "ADVERSE_NETWORK_TIMEOUT" const val WEB_REDIRECTION_DEFAULT_DELAY_IN_MILLIS = "WEB_REDIRECTION_DEFAULT_DELAY_IN_MILLIS" diff --git a/android/navi-common/src/main/res/xml/default_remote_config.xml b/android/navi-common/src/main/res/xml/default_remote_config.xml index 79dc3254fb..ffce560161 100644 --- a/android/navi-common/src/main/res/xml/default_remote_config.xml +++ b/android/navi-common/src/main/res/xml/default_remote_config.xml @@ -518,4 +518,8 @@ NAVI_PAY_SCREENSHOT_SHARE_RECEIPT_ENABLED true + + ADVERSE_NETWORK_TIMEOUT + 10L + \ No newline at end of file diff --git a/android/navi-pay/src/main/kotlin/com/navi/pay/management/common/paymentsummary/ui/PaymentSummaryTransactionDetailSectionV2.kt b/android/navi-pay/src/main/kotlin/com/navi/pay/management/common/paymentsummary/ui/PaymentSummaryTransactionDetailSectionV2.kt index 448bd3e888..dc0b748954 100644 --- a/android/navi-pay/src/main/kotlin/com/navi/pay/management/common/paymentsummary/ui/PaymentSummaryTransactionDetailSectionV2.kt +++ b/android/navi-pay/src/main/kotlin/com/navi/pay/management/common/paymentsummary/ui/PaymentSummaryTransactionDetailSectionV2.kt @@ -202,11 +202,10 @@ fun PaymentSummaryTransactionDetailSectionV2( FirebaseRemoteConfigHelper.getString( NAVI_PAY_PPS_CROSS_SELL_AD_RE_ID ), - timeoutValueInSec = + timeoutInMillis = FirebaseRemoteConfigHelper.getLong( - NAVI_PAY_PPS_CROSS_SELL_AD_FALLBACK_TIMEOUT - ) - .toInt(), + NAVI_PAY_PPS_CROSS_SELL_AD_FALLBACK_TIMEOUT + ), loadingView = { CrossSellLoadingShimmer() }, fallbackView = { CrossSellFallbackSection(