Updated on 2026-08-14
This commit is contained in:
parent
bb5d6848d9
commit
0ee2f48898
29 changed files with 660 additions and 82 deletions
14
features/survey/api/build.gradle.kts
Normal file
14
features/survey/api/build.gradle.kts
Normal 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)
|
||||
}
|
||||
|
|
@ -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>
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
package com.tangem.features.survey
|
||||
|
||||
interface SurveyFeatureToggles {
|
||||
|
||||
val areSurveysEnabled: Boolean
|
||||
}
|
||||
|
|
@ -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>,
|
||||
)
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
package com.tangem.features.survey.deeplink
|
||||
|
||||
interface SurveyDeepLinkHandler {
|
||||
|
||||
interface Factory {
|
||||
fun create(queryParams: Map<String, String>): SurveyDeepLinkHandler
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue