Updated on 2026-08-14

This commit is contained in:
Tangem 2024-06-19 21:10:01 +05:00
parent f506db9c0e
commit 5566331bdb
14 changed files with 51 additions and 5 deletions

View file

@ -5,5 +5,5 @@ package com.tangem.features.pushnotifications.api.featuretoggles
*/
interface PushNotificationsFeatureToggles {
/** Availability of push notifications */
val isRedesignedSendEnabled: Boolean
val isPushNotificationsEnabled: Boolean
}

View file

@ -28,6 +28,10 @@ dependencies {
/** Core modules */
implementation(projects.core.ui)
implementation(projects.core.featuretoggles)
implementation(projects.core.navigation)
/** Common modules */
implementation(projects.common.routing)
/** Common modules */
implementation(projects.common.routing)
@ -40,6 +44,5 @@ dependencies {
/** DI */
implementation(deps.hilt.android)
implementation(project(":core:navigation"))
kapt(deps.hilt.kapt)
}

View file

@ -6,6 +6,6 @@ import com.tangem.features.pushnotifications.api.featuretoggles.PushNotification
internal class DefaultPushNotificationsFeatureToggles(
private val featureTogglesManager: FeatureTogglesManager,
) : PushNotificationsFeatureToggles {
override val isRedesignedSendEnabled: Boolean
override val isPushNotificationsEnabled: Boolean
get() = featureTogglesManager.isFeatureEnabled("PUSH_NOTIFICATIONS_ENABLED")
}