Updated on 2026-08-14

This commit is contained in:
Tangem 2025-07-24 17:48:38 +03:00
parent 85803abc7f
commit 095c755362
194 changed files with 830 additions and 473 deletions

View file

@ -9,6 +9,8 @@ android {
}
dependencies {
api(projects.domain.demo.models)
implementation(tangemDeps.blockchain)
implementation(tangemDeps.card.core)
}

1
domain/demo/models/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/build

View file

@ -0,0 +1,14 @@
plugins {
alias(deps.plugins.android.library)
alias(deps.plugins.kotlin.android)
id("configuration")
}
android {
namespace = "com.tangem.domain.demo.models"
}
dependencies {
implementation(tangemDeps.blockchain)
implementation(tangemDeps.card.core)
}

View file

@ -1,10 +1,9 @@
package com.tangem.domain.demo
package com.tangem.domain.demo.models
import com.tangem.blockchain.common.Amount
import com.tangem.blockchain.common.Blockchain
import java.math.BigDecimal
// FIXME: Move to :domain:demo:models
@Suppress("LargeClass")
class DemoConfig {

View file

@ -1,5 +1,7 @@
package com.tangem.domain.demo
import com.tangem.domain.demo.models.DemoConfig
class IsDemoCardUseCase(private val config: DemoConfig) {
operator fun invoke(cardId: String): Boolean = config.isDemoCardId(cardId)