Updated on 2026-08-14
This commit is contained in:
parent
55bda27036
commit
50a485e986
16 changed files with 34 additions and 100 deletions
|
|
@ -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() }
|
||||
}
|
||||
}
|
||||
|
|
@ -31,4 +31,6 @@ interface SettingsRepository {
|
|||
suspend fun shouldSaveAccessCodes(): Boolean
|
||||
|
||||
suspend fun setShouldSaveAccessCodes(value: Boolean)
|
||||
|
||||
suspend fun incrementAppLaunchCounter()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue