Skip to content

Commit

Permalink
Added locale survey parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
nalcalag committed Feb 6, 2025
1 parent 3ebea1b commit f509f0b
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,12 @@ class LastActiveDateSurveyParameterPlugin @Inject constructor(

override suspend fun evaluate(): String = appDaysUsedRepository.getLastActiveDay()
}

@ContributesMultibinding(AppScope::class)
class LocaleSurveyParameterPlugin @Inject constructor(
private val appBuildConfig: AppBuildConfig,
) : SurveyParameterPlugin {
override val surveyParamKey: String = "locale"

override suspend fun evaluate(): String = appBuildConfig.deviceLocale.toString()
}

0 comments on commit f509f0b

Please sign in to comment.