Updated on 2026-08-14

This commit is contained in:
Tangem 2024-04-07 09:29:59 +08:00
parent 55bda27036
commit 50a485e986
16 changed files with 34 additions and 100 deletions

View file

@ -0,0 +1,13 @@
package com.tangem.domain.settings
import arrow.core.Either
import com.tangem.domain.settings.repositories.SettingsRepository
class IncrementAppLaunchCounterUseCase(
private val settingsRepository: SettingsRepository,
) {
suspend operator fun invoke(): Either<Throwable, Unit> {
return Either.catch { settingsRepository.incrementAppLaunchCounter() }
}
}

View file

@ -31,4 +31,6 @@ interface SettingsRepository {
suspend fun shouldSaveAccessCodes(): Boolean
suspend fun setShouldSaveAccessCodes(value: Boolean)
suspend fun incrementAppLaunchCounter()
}