From d624a7552a13644169b856932923f9d209ec91e5 Mon Sep 17 00:00:00 2001 From: Tangem Date: Thu, 6 Nov 2025 16:11:41 +0700 Subject: [PATCH] Updated on 2026-08-14 --- .../java/com/tangem/common/ui/addtoken}/AddTokenContent.kt | 7 +++---- .../main/java/com/tangem/common/ui/addtoken}/AddTokenUM.kt | 2 +- .../markets/portfolio/add/impl/AddTokenComponent.kt | 3 +-- .../markets/portfolio/add/impl/model/AddTokenModel.kt | 2 +- .../markets/portfolio/add/impl/model/AddTokenUiBuilder.kt | 2 +- 5 files changed, 7 insertions(+), 9 deletions(-) rename {features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/add/impl/ui => common/ui/src/main/java/com/tangem/common/ui/addtoken}/AddTokenContent.kt (97%) rename {features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/add/impl/ui/state => common/ui/src/main/java/com/tangem/common/ui/addtoken}/AddTokenUM.kt (92%) diff --git a/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/add/impl/ui/AddTokenContent.kt b/common/ui/src/main/java/com/tangem/common/ui/addtoken/AddTokenContent.kt similarity index 97% rename from features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/add/impl/ui/AddTokenContent.kt rename to common/ui/src/main/java/com/tangem/common/ui/addtoken/AddTokenContent.kt index 0694bd1a5d..5e0f916630 100644 --- a/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/add/impl/ui/AddTokenContent.kt +++ b/common/ui/src/main/java/com/tangem/common/ui/addtoken/AddTokenContent.kt @@ -1,4 +1,4 @@ -package com.tangem.features.markets.portfolio.add.impl.ui +package com.tangem.common.ui.addtoken import android.content.res.Configuration import androidx.compose.foundation.background @@ -9,6 +9,7 @@ import androidx.compose.material3.HorizontalDivider import androidx.compose.material3.Icon import androidx.compose.material3.Text import androidx.compose.runtime.Composable +import com.tangem.core.ui.R import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.draw.clip @@ -44,12 +45,10 @@ import com.tangem.core.ui.res.TangemTheme import com.tangem.core.ui.res.TangemThemePreview import com.tangem.core.ui.test.WalletConnectBottomSheetTestTags import com.tangem.domain.models.account.AccountName -import com.tangem.features.markets.impl.R -import com.tangem.features.markets.portfolio.add.impl.ui.state.AddTokenUM import java.util.UUID @Composable -internal fun AddTokenContent(state: AddTokenUM, modifier: Modifier = Modifier) { +fun AddTokenContent(state: AddTokenUM, modifier: Modifier = Modifier) { Column( modifier = modifier.fillMaxWidth(), ) { diff --git a/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/add/impl/ui/state/AddTokenUM.kt b/common/ui/src/main/java/com/tangem/common/ui/addtoken/AddTokenUM.kt similarity index 92% rename from features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/add/impl/ui/state/AddTokenUM.kt rename to common/ui/src/main/java/com/tangem/common/ui/addtoken/AddTokenUM.kt index 4ca5d4b673..5457f68372 100644 --- a/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/add/impl/ui/state/AddTokenUM.kt +++ b/common/ui/src/main/java/com/tangem/common/ui/addtoken/AddTokenUM.kt @@ -1,4 +1,4 @@ -package com.tangem.features.markets.portfolio.add.impl.ui.state +package com.tangem.common.ui.addtoken import androidx.annotation.DrawableRes import com.tangem.common.ui.account.PortfolioSelectUM diff --git a/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/add/impl/AddTokenComponent.kt b/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/add/impl/AddTokenComponent.kt index 3f6407aacc..ed74502649 100644 --- a/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/add/impl/AddTokenComponent.kt +++ b/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/add/impl/AddTokenComponent.kt @@ -1,7 +1,6 @@ package com.tangem.features.markets.portfolio.add.impl import androidx.compose.runtime.Composable -import androidx.compose.runtime.getValue import androidx.compose.ui.Modifier import androidx.lifecycle.compose.collectAsStateWithLifecycle import com.tangem.core.decompose.context.AppComponentContext @@ -12,7 +11,7 @@ import com.tangem.domain.models.currency.CryptoCurrencyStatus import com.tangem.features.markets.portfolio.add.api.SelectedNetwork import com.tangem.features.markets.portfolio.add.api.SelectedPortfolio import com.tangem.features.markets.portfolio.add.impl.model.AddTokenModel -import com.tangem.features.markets.portfolio.add.impl.ui.AddTokenContent +import com.tangem.common.ui.addtoken.AddTokenContent import com.tangem.features.markets.portfolio.impl.analytics.PortfolioAnalyticsEvent import dagger.assisted.Assisted import dagger.assisted.AssistedFactory diff --git a/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/add/impl/model/AddTokenModel.kt b/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/add/impl/model/AddTokenModel.kt index bc1e3ae6d6..8a4ec65436 100644 --- a/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/add/impl/model/AddTokenModel.kt +++ b/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/add/impl/model/AddTokenModel.kt @@ -16,7 +16,7 @@ import com.tangem.features.markets.portfolio.add.api.SelectedNetwork import com.tangem.features.markets.portfolio.add.api.SelectedPortfolio import com.tangem.features.markets.portfolio.add.impl.AddTokenComponent import com.tangem.features.markets.portfolio.add.impl.model.AddTokenUiBuilder.Companion.toggleProgress -import com.tangem.features.markets.portfolio.add.impl.ui.state.AddTokenUM +import com.tangem.common.ui.addtoken.AddTokenUM import com.tangem.lib.crypto.BlockchainUtils import com.tangem.utils.coroutines.CoroutineDispatcherProvider import com.tangem.utils.coroutines.JobHolder diff --git a/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/add/impl/model/AddTokenUiBuilder.kt b/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/add/impl/model/AddTokenUiBuilder.kt index c1963a4d9d..adcb476815 100644 --- a/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/add/impl/model/AddTokenUiBuilder.kt +++ b/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/add/impl/model/AddTokenUiBuilder.kt @@ -16,7 +16,7 @@ import com.tangem.features.markets.impl.R import com.tangem.features.markets.portfolio.add.api.SelectedNetwork import com.tangem.features.markets.portfolio.add.api.SelectedPortfolio import com.tangem.features.markets.portfolio.add.impl.AddTokenComponent -import com.tangem.features.markets.portfolio.add.impl.ui.state.AddTokenUM +import com.tangem.common.ui.addtoken.AddTokenUM import javax.inject.Inject @ModelScoped