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-13 00:32:01 +02:00
|
|
|
/**
|
|
|
|
* Allows edit of saved logins.
|
|
|
|
*/
|
2020-07-27 22:48:28 +02:00
|
|
|
const val loginsEdit = true
|
2020-05-13 00:32:01 +02:00
|
|
|
|
2020-05-26 22:25:52 +02:00
|
|
|
/**
|
|
|
|
* Enable tab sync feature
|
|
|
|
*/
|
2020-06-26 23:56:27 +02:00
|
|
|
const val syncedTabs = true
|
2020-05-26 22:25:52 +02:00
|
|
|
|
2020-04-30 22:53:10 +02:00
|
|
|
/**
|
|
|
|
* Enables new tab tray pref
|
|
|
|
*/
|
2020-05-01 19:46:02 +02:00
|
|
|
val tabTray = Config.channel.isNightlyOrDebug
|
2020-06-25 23:52:52 +02:00
|
|
|
|
|
|
|
/**
|
2020-07-24 18:42:01 +02:00
|
|
|
* Enables gestures on the browser chrome that depend on a [SwipeGestureLayout]
|
2020-06-25 23:52:52 +02:00
|
|
|
*/
|
2020-07-24 18:42:01 +02:00
|
|
|
val browserChromeGestures = Config.channel.isNightlyOrDebug
|
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
|
2019-07-19 02:20:12 +02:00
|
|
|
}
|