Updated on 2026-08-14
This commit is contained in:
parent
c59048605c
commit
9b6a954ed0
21 changed files with 705 additions and 122 deletions
|
|
@ -28,4 +28,5 @@ data class PromoBanner(
|
|||
enum class PromoId {
|
||||
Referral,
|
||||
Sepa,
|
||||
VisaPresale,
|
||||
}
|
||||
|
|
@ -29,7 +29,9 @@ class ShouldShowPromoWalletUseCase(
|
|||
if (!isReady) return false
|
||||
|
||||
return when (promoId) {
|
||||
PromoId.Referral -> true
|
||||
PromoId.Referral,
|
||||
PromoId.VisaPresale,
|
||||
-> true
|
||||
PromoId.Sepa -> {
|
||||
val walletFirstUsageDate = settingsRepository.getWalletFirstUsageDate()
|
||||
if (walletFirstUsageDate == 0L) return false
|
||||
|
|
@ -39,6 +41,7 @@ class ShouldShowPromoWalletUseCase(
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
suspend fun neverToShow(promoId: PromoId) = promoRepository.setNeverToShowWalletPromo(promoId)
|
||||
|
||||
private companion object {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue