Updated on 2026-08-14
This commit is contained in:
parent
85803abc7f
commit
095c755362
194 changed files with 830 additions and 473 deletions
|
|
@ -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
1
domain/demo/models/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/build
|
||||
14
domain/demo/models/build.gradle.kts
Normal file
14
domain/demo/models/build.gradle.kts
Normal 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)
|
||||
}
|
||||
|
|
@ -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 {
|
||||
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue