Add isInDebug variable to simulate debug/release configs for tests (#2566)
* `isInDebug` as `ThreadLocal<Boolean>` * Use a simple var for `isInDebug` and add a helper method to test release mode, when running the debug test. * Add some more docs --------- Co-authored-by: Benoit Marty <benoit@matrix.org>
This commit is contained in:
parent
62799e1854
commit
eabdb9ae4d
13 changed files with 60 additions and 38 deletions
|
|
@ -20,6 +20,10 @@ plugins {
|
|||
|
||||
android {
|
||||
namespace = "io.element.android.libraries.androidutils"
|
||||
|
||||
buildFeatures {
|
||||
buildConfig = true
|
||||
}
|
||||
}
|
||||
|
||||
anvil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue