Updated on 2026-08-14

This commit is contained in:
Tangem 2026-03-05 18:07:40 +04:00
parent 9df23bfa67
commit 74accc90c9
4 changed files with 7 additions and 6 deletions

@ -1 +1 @@
Subproject commit b693d601d9dc3de27f0536574bce59a6aa5e2e89
Subproject commit 03c5310849ad8c94948c04f2365ad10d371a017c

View file

@ -29,6 +29,5 @@ data class EnvironmentConfig(
val gaslessTxApiKeyDev: String? = null,
val gaslessTxApiKey: String? = null,
val customerIoCdpApiKey: String? = null,
val surveySparrowDomain: String? = null,
val surveySparrowToken: String? = null,
)

View file

@ -51,6 +51,8 @@ internal object GeneratedEnvironmentConfigConverter {
bffStaticTokenDev = GeneratedEnvironmentConfig.bffStaticTokenDev,
gaslessTxApiKeyDev = GeneratedEnvironmentConfig.gaslessTxApiKeyDev,
gaslessTxApiKey = GeneratedEnvironmentConfig.gaslessTxApiKey,
customerIoCdpApiKey = GeneratedEnvironmentConfig.CustomerIO.appApiKey,
surveySparrowToken = GeneratedEnvironmentConfig.SurveySparrow.apiKey,
)
}

View file

@ -213,13 +213,12 @@ internal class TesterActivity : ComposeActivity() {
}
private fun startSurveySparrow(): Boolean {
val domain = environmentConfig.surveySparrowDomain
val token = environmentConfig.surveySparrowToken
if (domain.isNullOrEmpty() || token.isNullOrEmpty()) {
if (token.isNullOrEmpty()) {
val toast = Toast.makeText(
this,
"Survey Sparrow is not configured. Domain or token is missing.",
"Survey Sparrow is not configured. Token is missing.",
Toast.LENGTH_LONG,
)
@ -227,7 +226,7 @@ internal class TesterActivity : ComposeActivity() {
return false
}
SurveySparrowManager(domain = domain, token = token).startSurveyForResult(
SurveySparrowManager(domain = DOMAIN, token = token).startSurveyForResult(
activity = this,
requestCode = SURVEY_SPARROW_REQUEST_CODE,
)
@ -236,6 +235,7 @@ internal class TesterActivity : ComposeActivity() {
}
private companion object {
const val DOMAIN = "tangem.com"
const val SURVEY_SPARROW_REQUEST_CODE = 1001
}
}