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 62799e1854
commit eabdb9ae4d
13 changed files with 60 additions and 38 deletions

View file

@ -20,6 +20,10 @@ plugins {
android {
namespace = "io.element.android.libraries.androidutils"
buildFeatures {
buildConfig = true
}
}
anvil {