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-09-14 15:26:08 +00:00
|
|
|
const val pullToRefreshEnabled = true
|
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-09-18 19:03:51 +00:00
|
|
|
/**
|
2020-11-19 11:17:25 +00:00
|
|
|
* Enables the Nimbus experiments library, especially the settings toggle to opt-out of
|
|
|
|
* all experiments.
|
2020-09-18 19:03:51 +00:00
|
|
|
*/
|
2020-12-21 14:06:31 +00:00
|
|
|
// IMPORTANT: Only turn this back on once the following issues are resolved:
|
|
|
|
// - https://github.com/mozilla-mobile/fenix/issues/17086: Calls to
|
|
|
|
// getExperimentBranch seem to block on updateExperiments causing a
|
|
|
|
// large performance regression loading the home screen.
|
|
|
|
// - https://github.com/mozilla-mobile/fenix/issues/17143: Despite
|
|
|
|
// having wrapped getExperimentBranch/withExperiments in a catch-all
|
|
|
|
// users are still experiencing crashes.
|
|
|
|
const val nimbusExperiments = false
|
2020-12-08 16:04:56 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Enables the new MediaSession API.
|
|
|
|
*/
|
2021-01-04 20:12:43 +00:00
|
|
|
@Suppress("MayBeConst")
|
|
|
|
val newMediaSessionApi = true
|
2020-12-09 19:34:48 +00:00
|
|
|
|
|
|
|
/**
|
2021-01-14 18:34:29 +00:00
|
|
|
* Enables experimental WebAuthn support. This implementation should never reach release!
|
2020-12-09 19:34:48 +00:00
|
|
|
*/
|
2021-01-14 18:34:29 +00:00
|
|
|
val webAuthFeature = Config.channel.isNightlyOrDebug
|
2019-07-19 00:20:12 +00:00
|
|
|
}
|