diff --git a/core/config-toggles/src/main/assets/configs/feature_toggles_config.json b/core/config-toggles/src/main/assets/configs/feature_toggles_config.json index 399317f1ee..cdbd47714a 100644 --- a/core/config-toggles/src/main/assets/configs/feature_toggles_config.json +++ b/core/config-toggles/src/main/assets/configs/feature_toggles_config.json @@ -11,10 +11,6 @@ "name": "STAKING_TON_ENABLED", "version": "5.28.0" }, - { - "name": "NFT_MEDIA_CONTENT_ENABLED", - "version": "undefined" - }, { "name": "STAKING_CARDANO_ENABLED", "version": "5.31.1" diff --git a/features/nft/api/src/main/kotlin/com/tangem/features/nft/NFTFeatureToggles.kt b/features/nft/api/src/main/kotlin/com/tangem/features/nft/NFTFeatureToggles.kt deleted file mode 100644 index 36689ae915..0000000000 --- a/features/nft/api/src/main/kotlin/com/tangem/features/nft/NFTFeatureToggles.kt +++ /dev/null @@ -1,6 +0,0 @@ -package com.tangem.features.nft - -interface NFTFeatureToggles { - - val isNFTMediaContentEnabled: Boolean -} \ No newline at end of file diff --git a/features/nft/impl/src/main/kotlin/com/tangem/features/nft/DefaultNFTFeatureToggles.kt b/features/nft/impl/src/main/kotlin/com/tangem/features/nft/DefaultNFTFeatureToggles.kt deleted file mode 100644 index 6ee99738ee..0000000000 --- a/features/nft/impl/src/main/kotlin/com/tangem/features/nft/DefaultNFTFeatureToggles.kt +++ /dev/null @@ -1,11 +0,0 @@ -package com.tangem.features.nft - -import com.tangem.core.configtoggle.feature.FeatureTogglesManager - -internal class DefaultNFTFeatureToggles( - private val featureTogglesManager: FeatureTogglesManager, -) : NFTFeatureToggles { - - override val isNFTMediaContentEnabled: Boolean - get() = featureTogglesManager.isFeatureEnabled(name = "NFT_MEDIA_CONTENT_ENABLED") -} \ No newline at end of file diff --git a/features/nft/impl/src/main/kotlin/com/tangem/features/nft/di/NFTFeatureModule.kt b/features/nft/impl/src/main/kotlin/com/tangem/features/nft/di/NFTFeatureModule.kt index 1b3221badd..9d85522a2c 100644 --- a/features/nft/impl/src/main/kotlin/com/tangem/features/nft/di/NFTFeatureModule.kt +++ b/features/nft/impl/src/main/kotlin/com/tangem/features/nft/di/NFTFeatureModule.kt @@ -1,9 +1,6 @@ package com.tangem.features.nft.di -import com.tangem.core.configtoggle.feature.FeatureTogglesManager import com.tangem.core.decompose.model.Model -import com.tangem.features.nft.DefaultNFTFeatureToggles -import com.tangem.features.nft.NFTFeatureToggles import com.tangem.features.nft.collections.model.NFTCollectionsModel import com.tangem.features.nft.common.DefaultNFTComponent import com.tangem.features.nft.component.* @@ -18,7 +15,6 @@ import com.tangem.features.nft.receive.model.NFTReceiveModel import com.tangem.features.nft.traits.model.NFTAssetTraitsModel import dagger.Binds import dagger.Module -import dagger.Provides import dagger.hilt.InstallIn import dagger.hilt.components.SingletonComponent import dagger.multibindings.ClassKey @@ -27,18 +23,7 @@ import javax.inject.Singleton @Module @InstallIn(SingletonComponent::class) -internal object NFTFeatureModule { - - @Provides - @Singleton - fun provideFeatureToggles(featureTogglesManager: FeatureTogglesManager): NFTFeatureToggles { - return DefaultNFTFeatureToggles(featureTogglesManager) - } -} - -@Module -@InstallIn(SingletonComponent::class) -internal interface NFTFeatureModuleBinds { +internal interface NFTFeatureModule { @Binds @Singleton fun bindNFTDetailsInfoComponentFactory(