NTP-67044 | Default root view for getCta and createApplicationAndGet CTA (#16532)

This commit is contained in:
Ayushman Sharma
2025-06-10 18:47:28 +05:30
committed by GitHub
parent 027ca63761
commit c8f90d6a69
2 changed files with 6 additions and 4 deletions

View File

@@ -45,6 +45,7 @@ import com.navi.ap.utils.constants.APP_PLATFORM_SCREEN_HASH
import com.navi.ap.utils.constants.APP_PLATFORM_SCREEN_ID
import com.navi.ap.utils.constants.APP_PLATFORM_SCREEN_STATE_ID
import com.navi.ap.utils.constants.APP_PLATFORM_VERTICAL_TYPE
import com.navi.ap.utils.constants.AP_LAUNCHER_SCREEN
import com.navi.ap.utils.constants.AP_POLL_INITIAL_DELAY
import com.navi.ap.utils.constants.AP_POLL_INTERVAL
import com.navi.ap.utils.constants.AP_POLL_RETRY_COUNT
@@ -55,7 +56,6 @@ import com.navi.ap.utils.constants.DEFAULT_SCREEN_STATE_ID
import com.navi.ap.utils.constants.DEFAULT_SOURCE_SCREEN
import com.navi.ap.utils.constants.NEXT_SCREEN_CTA
import com.navi.ap.utils.constants.REASON
import com.navi.ap.utils.constants.ROOT_VIEW
import com.navi.ap.utils.constants.SCREEN_TYPE
import com.navi.ap.utils.constants.SUBMIT_EVENT_HASH_EVENT
import com.navi.ap.utils.getMetricInfoForApplicationType
@@ -580,7 +580,8 @@ abstract class ApplicationPlatformVM(
getMetricInfoForApplicationType(
applicationType =
handle.get<String>(APP_PLATFORM_APPLICATION_TYPE).orEmpty(),
screenName = handle.get<String>(APP_PLATFORM_SCREEN_ID).or(ROOT_VIEW),
screenName =
handle.get<String>(APP_PLATFORM_SCREEN_ID).or(AP_LAUNCHER_SCREEN),
) {
!it.isSuccessWithData()
},
@@ -651,7 +652,8 @@ abstract class ApplicationPlatformVM(
getMetricInfoForApplicationType(
applicationType =
handle.get<String>(APP_PLATFORM_APPLICATION_TYPE).orEmpty(),
screenName = handle.get<String>(APP_PLATFORM_SCREEN_ID).or(ROOT_VIEW),
screenName =
handle.get<String>(APP_PLATFORM_SCREEN_ID).or(AP_LAUNCHER_SCREEN),
) {
!it.isSuccessWithData()
},

View File

@@ -57,7 +57,7 @@ const val PARENT = "parent"
const val SOURCE = "source"
const val EVENT = "event"
const val RPD = "RPD"
const val ROOT_VIEW = "ROOT_VIEW"
const val AP_LAUNCHER_SCREEN = "ap_launcher_screen"
val noLoaderScreenTypes: MutableSet<String> =
mutableSetOf(