FeatureFlags.kt 883 Bytes
Newer Older
Tiger Oakes's avatar
Tiger Oakes committed
1
2
3
4
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

5
6
7
8
9
10
11
12
13
14
package org.mozilla.fenix

/**
 * A single source for setting feature flags that are mostly based on build type.
 */
object FeatureFlags {
    /**
     * Pull-to-refresh allows you to pull the web content down far enough to have the page to
     * reload.
     */
15
    val pullToRefreshEnabled = Config.channel.isNightlyOrDebug
16

jhugman's avatar
jhugman committed
17
    /**
18
     * Enables the Nimbus experiments library.
jhugman's avatar
jhugman committed
19
     */
20
    val nimbusExperiments = Config.channel.isNightlyOrDebug
21

22
    /**
23
     * Enables WebAuthn support.
24
25
     */
    val webAuthFeature = Config.channel.isNightlyOrDebug
26
27
28
29
30

    /**
     * Shows new three-dot toolbar menu design.
     */
    val toolbarMenuFeature = Config.channel.isDebug
31
}