Updated on 2026-08-14

This commit is contained in:
Tangem 2025-09-30 16:48:26 +03:00
parent acf110dbcc
commit 6910f74fd9
242 changed files with 866 additions and 732 deletions

View file

@ -30,13 +30,22 @@ internal class DefaultAppRatingRepository(
override fun isReadyToShow(): Flow<Boolean> {
// TODO: [REDACTED_JIRA]
return combine(
appPreferencesStore.get(key = PreferencesKeys.USER_WAS_INTERACT_WITH_RATING_KEY, default = false),
appPreferencesStore.get(
flow = appPreferencesStore.get(
key = PreferencesKeys.USER_WAS_INTERACT_WITH_RATING_KEY,
default = false,
),
flow2 = appPreferencesStore.get(
key = PreferencesKeys.SHOW_RATING_DIALOG_AT_LAUNCH_COUNT_KEY,
default = FIRST_SHOWING_COUNT,
),
appPreferencesStore.get(key = PreferencesKeys.APP_LAUNCH_COUNT_KEY, default = DEFAULT_APP_LAUNCH_COUNT),
appPreferencesStore.get(key = PreferencesKeys.FUNDS_FOUND_DATE_KEY, default = FUNDS_FOUND_DATE_UNDEFINED),
flow3 = appPreferencesStore.get(
key = PreferencesKeys.APP_LAUNCH_COUNT_KEY,
default = DEFAULT_APP_LAUNCH_COUNT,
),
flow4 = appPreferencesStore.get(
key = PreferencesKeys.FUNDS_FOUND_DATE_KEY,
default = FUNDS_FOUND_DATE_UNDEFINED,
),
) { isInteracting, ratingShowingCount, appLaunchCount, fundsFoundDate ->
if (!isInteracting) {
val diff = Calendar.getInstance().timeInMillis - fundsFoundDate