2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-19 09:25:34 +00:00
This commit is contained in:
Michael Comella 2019-12-20 13:08:18 -08:00 committed by Michael Comella
parent 484d552c60
commit 1336ec98b6

View File

@ -15,6 +15,16 @@ enum class ReleaseChannel {
else -> true else -> true
} }
/**
* True if this is a debug release channel, false otherwise.
*
* This constant should often be used instead of [BuildConfig.DEBUG], which indicates
* if the `debuggable` flag is set which can be true even on released channel builds
* (e.g. performance).
*/
val isDebug: Boolean
get() = !this.isReleased
val isReleaseOrBeta: Boolean val isReleaseOrBeta: Boolean
get() = when (this) { get() = when (this) {
FenixProduction -> true FenixProduction -> true