1
0
Fork 0

Add note about lazy in FeatureFlags

master
Tiger Oakes 2019-09-17 13:41:41 -07:00 committed by Emily Kager
parent 6f3d7b4ee8
commit f71ec8928b
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,9 @@ package org.mozilla.fenix
* A single source for setting feature flags that are mostly based on build type.
*/
object FeatureFlags {
// lazy is used to suppress "Condition is always 'true'" warnings when using the flags.
// https://github.com/mozilla-mobile/fenix/pull/4077#issuecomment-511964072
// A convenience flag for production builds.
private val production by lazy { BuildConfig.BUILD_TYPE == "fenixProduction" }
// A convenience flag for beta builds.