2020-07-27 18:37:09 +02:00
|
|
|
/* 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/. */
|
|
|
|
|
2019-07-19 02:20:12 +02:00
|
|
|
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.
|
|
|
|
*/
|
2020-04-07 14:54:56 +02:00
|
|
|
const val pullToRefreshEnabled = false
|
2019-08-13 22:02:20 +02:00
|
|
|
|
2020-05-26 22:25:52 +02:00
|
|
|
/**
|
2020-08-18 07:45:48 +02:00
|
|
|
* Shows Synced Tabs in the tabs tray.
|
|
|
|
*
|
|
|
|
* Tracking issue: https://github.com/mozilla-mobile/fenix/issues/13892
|
2020-05-26 22:25:52 +02:00
|
|
|
*/
|
2020-08-18 07:45:48 +02:00
|
|
|
val syncedTabsInTabsTray = Config.channel.isNightlyOrDebug
|
2020-06-25 23:52:52 +02:00
|
|
|
|
2020-07-28 18:41:51 +02:00
|
|
|
/**
|
|
|
|
* Enables viewing tab history
|
|
|
|
*/
|
|
|
|
val tabHistory = Config.channel.isNightlyOrDebug
|
2020-08-04 19:35:08 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Enables the new search experience
|
|
|
|
*/
|
2020-08-07 01:52:36 +02:00
|
|
|
val newSearchExperience = Config.channel.isNightlyOrDebug
|
2020-05-05 08:29:33 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Enables wait til first contentful paint
|
|
|
|
*/
|
2020-08-04 23:42:53 +02:00
|
|
|
val waitUntilPaintToDraw = Config.channel.isNightlyOrDebug
|
2020-08-07 07:03:07 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Enables downloads with external download managers.
|
|
|
|
*/
|
|
|
|
val externalDownloadManager = Config.channel.isNightlyOrDebug
|
2020-07-02 01:10:44 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Enables viewing downloads in browser.
|
|
|
|
*/
|
|
|
|
val viewDownloads = Config.channel.isNightlyOrDebug
|
2019-07-19 02:20:12 +02:00
|
|
|
}
|