Updated on 2026-08-14

This commit is contained in:
Tangem 2026-05-29 21:49:35 +03:00
parent bb5d6848d9
commit 0ee2f48898
29 changed files with 660 additions and 82 deletions

View file

@ -0,0 +1,14 @@
plugins {
alias(deps.plugins.android.library)
alias(deps.plugins.kotlin.android)
id("configuration")
}
android {
namespace = "com.tangem.features.survey.api"
}
dependencies {
implementation(projects.core.decompose)
implementation(projects.core.ui)
}

View file

@ -0,0 +1,11 @@
package com.tangem.features.survey
import com.tangem.core.decompose.factory.ComponentFactory
import com.tangem.core.ui.decompose.ComposableContentComponent
interface SurveyComponent : ComposableContentComponent {
data class Params(val token: String, val displayId: String?)
interface Factory : ComponentFactory<Params, SurveyComponent>
}

View file

@ -0,0 +1,6 @@
package com.tangem.features.survey
interface SurveyFeatureToggles {
val areSurveysEnabled: Boolean
}

View file

@ -0,0 +1,14 @@
package com.tangem.features.survey
import android.app.Activity
interface SurveySparrowLauncher {
fun present(activity: Activity, data: SurveyLaunchData)
}
data class SurveyLaunchData(
val domain: String,
val token: String,
val customParams: Map<String, String>,
)

View file

@ -0,0 +1,8 @@
package com.tangem.features.survey.deeplink
interface SurveyDeepLinkHandler {
interface Factory {
fun create(queryParams: Map<String, String>): SurveyDeepLinkHandler
}
}