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:
Jorge Martin Espinosa
2024-03-18 17:56:07 +01:00
committed by GitHub
parent fb64018110
commit 5cc5a0b699
13 changed files with 60 additions and 38 deletions
+4
View File
@@ -20,6 +20,10 @@ plugins {
android {
namespace = "io.element.android.libraries.androidutils"
buildFeatures {
buildConfig = true
}
}
anvil {