Updated on 2026-08-14

This commit is contained in:
Tangem 2026-07-06 13:39:30 +03:00
commit 92849d43c2
1407 changed files with 64092 additions and 11990 deletions

View file

@ -9,6 +9,8 @@ android {
}
dependencies {
implementation(projects.core.decompose)
implementation(projects.core.ui)
api(deps.compose.runtime)
api(deps.compose.ui)
api(projects.core.decompose)
}

View file

@ -20,6 +20,7 @@ interface PromoBannersBlockComponent {
enum class Placeholder(val value: String) {
MAIN("main"),
FEED("shtorka"),
PAYMENT_ACCOUNT_MAIN("payment_account_main"),
}
interface Factory : ComponentFactory<Params, PromoBannersBlockComponent>

View file

@ -12,29 +12,32 @@ android {
dependencies {
/** Project - API */
implementation(projects.features.promoBanners.api)
api(projects.features.promoBanners.api)
/** Domain */
implementation(projects.domain.common)
api(projects.domain.common)
implementation(projects.domain.models)
/** Core */
implementation(projects.core.decompose)
implementation(projects.core.navigation)
implementation(projects.core.ui)
implementation(projects.core.analytics)
api(projects.core.analytics)
api(projects.core.datasource)
api(projects.core.decompose)
api(projects.core.navigation)
api(projects.core.utils)
implementation(projects.core.analytics.models)
implementation(projects.core.utils)
implementation(projects.core.datasource)
implementation(projects.core.ui)
/** Compose */
implementation(deps.compose.foundation)
api(deps.compose.foundation)
implementation(deps.compose.ui)
implementation(deps.compose.ui.tooling)
implementation(deps.lifecycle.compose)
/** Other */
implementation(deps.arrow.core)
implementation(deps.androidx.appCompat)
implementation(deps.androidx.core.ktx)
implementation(deps.decompose)
implementation(deps.kotlin.coroutines)
implementation(deps.kotlin.immutable.collections)
/** DI */

View file

@ -71,10 +71,13 @@ private fun bannerContainerColor(placeholder: Placeholder): Color = if (LocalRed
when (placeholder) {
Placeholder.MAIN -> TangemTheme.colors2.surface.level1
Placeholder.FEED -> TangemTheme.colors2.surface.level3
Placeholder.PAYMENT_ACCOUNT_MAIN -> TangemTheme.colors3.bg.opaque.primary
}
} else {
when (placeholder) {
Placeholder.MAIN -> TangemTheme.colors.background.primary
Placeholder.MAIN,
Placeholder.PAYMENT_ACCOUNT_MAIN,
-> TangemTheme.colors.background.primary
Placeholder.FEED -> TangemTheme.colors.background.action
}
}