Updated on 2026-08-14

This commit is contained in:
Tangem 2025-09-11 11:49:16 +05:00
parent 941baf081b
commit c0cf7515b0
12 changed files with 54 additions and 31 deletions

View file

@ -274,6 +274,8 @@ dependencies {
implementation(projects.features.tangempay.onboarding.impl)
implementation(projects.features.tokenRecieve.api)
implementation(projects.features.tokenRecieve.impl)
implementation(projects.features.yieldSupply.api)
implementation(projects.features.yieldSupply.api)
/** AndroidX libraries */
implementation(deps.androidx.core.ktx)

View file

@ -52,7 +52,7 @@
"version": "5.28.0"
},
{
"name": "YIELD_LENDING_FEATURE_ENABLED",
"name": "YIELD_SUPPLY_FEATURE_ENABLED",
"version": "undefined"
},
{

View file

@ -1,6 +0,0 @@
package com.tangem.features.yieldlending.api
interface YieldLendingFeatureToggles {
val isYieldLendingFeatureEnabled: Boolean
}

View file

@ -1,11 +0,0 @@
package com.tangem.features.yieldlending.impl
import com.tangem.core.configtoggle.feature.FeatureTogglesManager
import com.tangem.features.yieldlending.api.YieldLendingFeatureToggles
internal class DefaultYieldLendingFeatureToggles(
private val featureToggles: FeatureTogglesManager,
) : YieldLendingFeatureToggles {
override val isYieldLendingFeatureEnabled: Boolean
get() = featureToggles.isFeatureEnabled("YIELD_LENDING_FEATURE_ENABLED")
}

View file

@ -5,7 +5,7 @@ plugins {
}
android {
namespace = "com.tangem.features.yieldlending.api"
namespace = "com.tangem.features.yield.supply.api"
}
dependencies {

View file

@ -0,0 +1,6 @@
package com.tangem.features.yield.supply.api
interface YieldSupplyFeatureToggles {
val isYieldSupplyFeatureEnabled: Boolean
}

View file

@ -8,24 +8,39 @@ plugins {
}
android {
namespace = "com.tangem.features.yieldlending.impl"
namespace = "com.tangem.features.yield.supply.impl"
}
dependencies {
/** Feature */
implementation(projects.features.yieldLending.api)
implementation(projects.features.yieldSupply.api)
implementation(projects.features.sendV2.api)
/** Core */
implementation(projects.core.configToggles)
implementation(projects.core.decompose)
implementation(projects.core.ui)
/** Common */
implementation(projects.common.ui)
implementation(projects.common.routing)
/** SDK */
implementation(tangemDeps.blockchain) {
exclude(module = "joda-time")
}
/** Domain */
implementation(projects.domain.models)
implementation(projects.domain.wallets.models)
implementation(projects.domain.tokens.models)
implementation(projects.domain.appCurrency.models)
implementation(projects.domain.appCurrency)
implementation(projects.domain.wallets.models)
implementation(projects.domain.wallets)
implementation(projects.domain.tokens.models)
implementation(projects.domain.tokens)
implementation(projects.domain.transaction.models)
implementation(projects.domain.transaction)
/** Compose */
implementation(deps.compose.foundation)
@ -35,6 +50,12 @@ dependencies {
implementation(deps.compose.ui.tooling)
implementation(deps.androidx.activity.compose)
/** Other */
implementation(deps.decompose)
implementation(deps.decompose.ext.compose)
implementation(deps.timber)
implementation(deps.kotlin.immutable.collections)
/** DI */
implementation(deps.hilt.android)
kapt(deps.hilt.kapt)

View file

@ -0,0 +1,11 @@
package com.tangem.features.yield.supply.impl
import com.tangem.core.configtoggle.feature.FeatureTogglesManager
import com.tangem.features.yield.supply.api.YieldSupplyFeatureToggles
internal class DefaultYieldSupplyFeatureToggles(
private val featureToggles: FeatureTogglesManager,
) : YieldSupplyFeatureToggles {
override val isYieldSupplyFeatureEnabled: Boolean
get() = featureToggles.isFeatureEnabled("YIELD_SUPPLY_FEATURE_ENABLED")
}

View file

@ -1,8 +1,8 @@
package com.tangem.features.yieldlending.impl.di
package com.tangem.features.yield.supply.impl.di
import com.tangem.core.configtoggle.feature.FeatureTogglesManager
import com.tangem.features.yieldlending.api.YieldLendingFeatureToggles
import com.tangem.features.yieldlending.impl.DefaultYieldLendingFeatureToggles
import com.tangem.features.yield.supply.impl.DefaultYieldSupplyFeatureToggles
import com.tangem.features.yield.supply.api.YieldSupplyFeatureToggles
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
@ -11,11 +11,11 @@ import javax.inject.Singleton
@InstallIn(SingletonComponent::class)
@Module
internal object YieldLendingFeatureModule {
internal object YieldSupplyFeatureModule {
@Singleton
@Provides
fun provideYieldFeatureToggles(featureTogglesManager: FeatureTogglesManager): YieldLendingFeatureToggles {
return DefaultYieldLendingFeatureToggles(featureTogglesManager)
fun provideYieldFeatureToggles(featureTogglesManager: FeatureTogglesManager): YieldSupplyFeatureToggles {
return DefaultYieldSupplyFeatureToggles(featureTogglesManager)
}
}

View file

@ -287,8 +287,8 @@ include(":features:account:impl")
include(":features:token-recieve:api")
include(":features:token-recieve:impl")
include(":features:yield-lending:api")
include(":features:yield-lending:impl")
include(":features:yield-supply:api")
include(":features:yield-supply:impl")
// endregion Feature modules
// region Domain modules