NTP-8642 || Oe Changes Refactored (#13367)

Co-authored-by: Prajjaval Verma <prajjaval.verma@navi.com>
Co-authored-by: Raaj Gopal <raaj.gopal@navi.com>
Co-authored-by: Aman S <aman.s@navi.com>
Co-authored-by: Aman <amankasyapp@gmail.com>
This commit is contained in:
A Shrihari Raju
2024-11-20 01:01:24 +05:30
committed by GitHub
parent a332dd5627
commit 2aafa8348c
43 changed files with 274 additions and 59 deletions

View File

@@ -1,6 +1,6 @@
/*
*
* * Copyright © 2023 by Navi Technologies Limited
* * Copyright © 2023-2024 by Navi Technologies Limited
* * All rights reserved. Strictly confidential
*
*/
@@ -64,6 +64,7 @@ open class ApplicationPlatformActivity : SdkHandlingActivity() {
setContent {
NaviMaterialTheme {
navController = rememberNavHostEngine().rememberNavController()
initialiseNavController(navController)
NavContainer(
activity = this@ApplicationPlatformActivity,
navController = navController
@@ -136,4 +137,9 @@ open class ApplicationPlatformActivity : SdkHandlingActivity() {
override var applicationType = lazy {
intent?.getStringExtra(APP_PLATFORM_APPLICATION_TYPE).orEmpty()
}
override fun initialiseNavController(navHostController: NavHostController) {
this.navController = navHostController
onNavControllerSet(navHostController)
}
}

View File

@@ -58,13 +58,11 @@ abstract class ApResponseCallback {
} catch (e: Exception) {
handleException(exception = e, response = response, apiTag = apiTag)
}
metricInfo?.let {
CheckMateManager.recordNetworkEvent(
response,
handledResponse.toRepoResult(),
metricInfo
)
}
CheckMateManager.recordNetworkEvent(
response,
handledResponse.toRepoResult(),
metricInfo = metricInfo ?: MetricInfo.getVerticalMetric(response)
)
return handledResponse
}