2020-07-27 16:37:09 +00: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 00:20:12 +00: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 12:54:56 +00:00
|
|
|
const val pullToRefreshEnabled = false
|
2019-08-13 20:02:20 +00:00
|
|
|
|
2020-05-26 20:25:52 +00:00
|
|
|
/**
|
2020-08-18 05:45:48 +00:00
|
|
|
* Shows Synced Tabs in the tabs tray.
|
|
|
|
*
|
|
|
|
* Tracking issue: https://github.com/mozilla-mobile/fenix/issues/13892
|
2020-05-26 20:25:52 +00:00
|
|
|
*/
|
2020-08-18 05:45:48 +00:00
|
|
|
val syncedTabsInTabsTray = Config.channel.isNightlyOrDebug
|
2020-06-25 21:52:52 +00:00
|
|
|
|
2020-08-18 21:55:52 +00:00
|
|
|
/**
|
|
|
|
* Enables showing the top frequently visited sites
|
|
|
|
*/
|
2020-09-08 18:30:13 +00:00
|
|
|
const val topFrecentSite = true
|
2020-08-18 21:55:52 +00:00
|
|
|
|
2020-05-05 06:29:33 +00:00
|
|
|
/**
|
|
|
|
* Enables wait til first contentful paint
|
|
|
|
*/
|
2020-08-04 21:42:53 +00:00
|
|
|
val waitUntilPaintToDraw = Config.channel.isNightlyOrDebug
|
2020-08-07 05:03:07 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Enables downloads with external download managers.
|
|
|
|
*/
|
2020-09-02 20:59:00 +00:00
|
|
|
const val externalDownloadManager = true
|
2020-09-14 22:20:46 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Enables swipe to delete in bookmarks
|
|
|
|
*/
|
|
|
|
val bookmarkSwipeToDelete = Config.channel.isNightlyOrDebug
|
2020-09-18 19:03:51 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Enables ETP cookie purging
|
|
|
|
*/
|
|
|
|
val etpCookiePurging = Config.channel.isNightlyOrDebug
|
2019-07-19 00:20:12 +00:00
|
|
|
}
|