TP-63276 | added hl deeplink support (#10385)

This commit is contained in:
Saurabh Chaudhary
2024-04-09 19:18:29 +05:30
committed by GitHub
parent beda2037de
commit 17fd00a27b
3 changed files with 19 additions and 0 deletions

View File

@@ -102,6 +102,7 @@ object DeeplinkManager {
private const val AMC_KYC = "AMC_KYC"
private const val CHANNEL_PPE = "PPE"
private const val CHANNEL_PL = "PL"
private const val CHANNEL_HL = "HL"
private const val FLOW = "flow"
private const val IS_UPI_DYNAMIC_DEEP_LINK = "isUpiDynamicDeeplink"
private const val NAVI_PAY_HOME_PAGE_URL = "naviPayHomePageUrl"
@@ -459,6 +460,9 @@ object DeeplinkManager {
} else if (source == CHANNEL_PPE || source == CHANNEL_PL) {
val pair = Pair(FLOW, url.orEmpty())
repository.fetchPPEDeeplinkData(getMapFromJsonAndPair(metaData, pair))
} else if (source == CHANNEL_HL) {
val pair = Pair(FLOW, url.orEmpty())
repository.fetchHLDeeplinkData(getMapFromJsonAndPair(metaData, pair))
} else if (type == DeeplinkType.BRANCH_IO.name && identifier.isNullOrEmpty()
.not()
) {

View File

@@ -36,4 +36,13 @@ class DeeplinkRepository : ResponseCallback() {
metaDataMap
)
)
suspend fun fetchHLDeeplinkData(
metaDataMap: Map<String, String>? = null
) = apiResponseCallback(
superAppRetrofitService().fetchHLDeeplinkData(
ModuleName.HL.name,
metaDataMap
)
)
}

View File

@@ -1187,6 +1187,12 @@ interface RetrofitService {
@QueryMap queryMap: Map<String, String>? = null
): Response<GenericResponse<DeeplinkResponse>>
@GET("/deeplink-service/hl-deeplink")
suspend fun fetchHLDeeplinkData(
@Header("X-Target") channel: String,
@QueryMap queryMap: Map<String, String>? = null
): Response<GenericResponse<DeeplinkResponse>>
@GET("/v1/deep-link/data")
suspend fun fetchBranchSDKData(
@Query("url") deeplink: String,