Updated on 2026-08-14
This commit is contained in:
parent
fb08f7c4e1
commit
4860b1fd8b
10 changed files with 425 additions and 63 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package com.tangem.tap.di.domain
|
||||
|
||||
import com.tangem.domain.notifications.repository.NotificationsRepository
|
||||
import com.tangem.domain.pushnotificationpreferences.IsPushNotificationFirstActivationDoneUseCase
|
||||
import com.tangem.domain.pushnotificationpreferences.MarkPushNotificationFirstActivationDoneUseCase
|
||||
import com.tangem.domain.pushnotificationpreferences.ObserveWalletPushNotificationPreferencesUseCase
|
||||
|
|
@ -7,6 +8,8 @@ import com.tangem.domain.pushnotificationpreferences.PreloadWalletPushNotificati
|
|||
import com.tangem.domain.pushnotificationpreferences.SetAllWalletPushNotificationPreferencesUseCase
|
||||
import com.tangem.domain.pushnotificationpreferences.UpdateWalletPushNotificationPreferenceUseCase
|
||||
import com.tangem.domain.pushnotificationpreferences.repository.WalletPushNotificationPreferencesRepository
|
||||
import com.tangem.domain.wallets.usecase.ApplyPushNotificationFirstActivationUseCase
|
||||
import com.tangem.domain.wallets.usecase.SetNotificationsEnabledUseCase
|
||||
import dagger.Module
|
||||
import dagger.Provides
|
||||
import dagger.hilt.InstallIn
|
||||
|
|
@ -64,4 +67,18 @@ internal object PushNotificationPreferencesDomainModule {
|
|||
): MarkPushNotificationFirstActivationDoneUseCase {
|
||||
return MarkPushNotificationFirstActivationDoneUseCase(repository = repository)
|
||||
}
|
||||
|
||||
@Provides
|
||||
@Singleton
|
||||
fun providesApplyPushNotificationFirstActivationUseCase(
|
||||
setNotificationsEnabledUseCase: SetNotificationsEnabledUseCase,
|
||||
repository: WalletPushNotificationPreferencesRepository,
|
||||
notificationsRepository: NotificationsRepository,
|
||||
): ApplyPushNotificationFirstActivationUseCase {
|
||||
return ApplyPushNotificationFirstActivationUseCase(
|
||||
setNotificationsEnabledUseCase = setNotificationsEnabledUseCase,
|
||||
preferencesRepository = repository,
|
||||
notificationsRepository = notificationsRepository,
|
||||
)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue