TP-53619 | Master → Development (Release 5.3.2) (#10037)

Co-authored-by: Prakhar Saxena <prakhar.saxena@navi.com>
This commit is contained in:
Shivam Goyal
2024-03-06 00:49:59 +05:30
committed by GitHub
parent 1890118af5
commit d34cec076f
3 changed files with 6 additions and 4 deletions

View File

@@ -12,8 +12,8 @@ plugins {
id 'maven-publish'
}
def VERSION_CODE = 383
def VERSION_NAME = "5.3.1"
def VERSION_CODE = 384
def VERSION_NAME = "5.3.2"
android {
namespace 'com.naviapp'

View File

@@ -41,7 +41,7 @@ class EmptyBodyHandlingConverterFactory(private val moduleName: String? = null)
} else {
CommonNaviAnalytics.naviAnalytics
.Errors()
.onApiFailure("${moduleName.orEmpty()}$EMPTY_EVENT_NAME", null, null, null)
.onApiFailure(EMPTY_EVENT_NAME, null, null, null, moduleName = moduleName)
null
}
}

View File

@@ -41,7 +41,8 @@ class CommonNaviAnalytics private constructor() {
eventName: String,
error: GenericErrorResponse?,
errorMessage: ErrorMessage?,
apiUrl: String?
apiUrl: String?,
moduleName: String? = null
) {
val map =
mapOf(
@@ -49,6 +50,7 @@ class CommonNaviAnalytics private constructor() {
Pair("message", errorMessage.toString()),
Pair("apiUrl", apiUrl.toString()),
Pair("logMessage", error?.logMessage.toString()),
Pair("module_name", moduleName.orEmpty()),
)
NaviTrackEvent.trackEvent(eventName, map)
}