FeatureFlags.kt 1.07 KB
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

17
    /**
18
19
20
     * Shows Synced Tabs in the tabs tray.
     *
     * Tracking issue: https://github.com/mozilla-mobile/fenix/issues/13892
21
     */
22
    val syncedTabsInTabsTray = Config.channel.isNightlyOrDebug
23

24
25
26
    /**
     * Enables downloads with external download managers.
     */
27
    const val externalDownloadManager = true
28
29
30
31
32

    /**
     * Enables swipe to delete in bookmarks
     */
    val bookmarkSwipeToDelete = Config.channel.isNightlyOrDebug
33
34
35
36
37

    /**
     * Enables ETP cookie purging
     */
    val etpCookiePurging = Config.channel.isNightlyOrDebug
38
}