mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-19 09:25:34 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/6464: Add ReleaseChannel.isDebug.
This commit is contained in:
parent
484d552c60
commit
1336ec98b6
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user