mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-07-22 20:45:53 +00:00
5f5f74989a
Log.d/Log.e added to TronAddressBackfillMigration throw 'Method ... not mocked' in plain JVM unit tests without this - the framework's own stubs are meant to be configured this way for exactly this case, not worked around by avoiding Log calls in production code.
86 lines
2.5 KiB
Groovy
86 lines
2.5 KiB
Groovy
apply plugin: 'kotlin-parcelize'
|
|
apply from: '../tests.gradle'
|
|
|
|
android {
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
namespace 'io.novafoundation.nova.feature_account_impl'
|
|
|
|
buildFeatures {
|
|
viewBinding true
|
|
}
|
|
|
|
testOptions {
|
|
unitTests {
|
|
// android.util.Log.* throws "Method ... not mocked" by default in plain JVM unit tests (no real
|
|
// Android framework, no Robolectric) - TronAddressBackfillMigrationTest is the first test in this
|
|
// module to exercise code that calls Log.d/Log.e. This makes those stubbed calls return harmless
|
|
// defaults instead of throwing, which is what the framework's own stubs are meant for in this context.
|
|
returnDefaultValues = true
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar', "*.aar"])
|
|
implementation project(':core-db')
|
|
implementation project(':common')
|
|
implementation project(':runtime')
|
|
implementation project(':feature-account-api')
|
|
implementation project(':feature-currency-api')
|
|
implementation project(':feature-ledger-api')
|
|
implementation project(':feature-ledger-core')
|
|
implementation project(':feature-versions-api')
|
|
implementation project(':feature-proxy-api')
|
|
implementation project(':feature-cloud-backup-api')
|
|
implementation project(":feature-swap-core:api")
|
|
implementation project(":feature-xcm:api")
|
|
implementation project(':web3names')
|
|
implementation project(':feature-deep-linking')
|
|
|
|
implementation kotlinDep
|
|
|
|
implementation androidDep
|
|
implementation materialDep
|
|
implementation cardViewDep
|
|
implementation constraintDep
|
|
|
|
implementation zXingCoreDep
|
|
implementation zXingEmbeddedDep
|
|
|
|
implementation bouncyCastleDep
|
|
|
|
implementation substrateSdkDep
|
|
|
|
implementation biometricDep
|
|
|
|
implementation coroutinesDep
|
|
implementation coroutinesAndroidDep
|
|
implementation viewModelKtxDep
|
|
implementation liveDataKtxDep
|
|
implementation lifeCycleKtxDep
|
|
|
|
implementation daggerDep
|
|
ksp daggerCompiler
|
|
|
|
implementation roomDep
|
|
ksp roomCompiler
|
|
|
|
implementation lifecycleDep
|
|
ksp lifecycleCompiler
|
|
|
|
testImplementation jUnitDep
|
|
testImplementation mockitoDep
|
|
|
|
implementation gsonDep
|
|
|
|
implementation insetterDep
|
|
implementation flexBoxDep
|
|
|
|
testImplementation project(":test-shared")
|
|
testImplementation project(":feature-cloud-backup-test")
|
|
} |