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-03-26 21:01:50 +01:00
|
|
|
val pullToRefreshEnabled = Config.channel.isNightlyOrDebug
|
2019-08-13 22:02:20 +02:00
|
|
|
|
2019-10-09 01:50:16 +02:00
|
|
|
/**
|
|
|
|
* Allows Progressive Web Apps to be installed to the device home screen.
|
|
|
|
*/
|
2019-11-05 21:28:14 +01:00
|
|
|
val progressiveWebApps = Config.channel.isNightlyOrDebug
|
2019-10-19 01:08:06 +02:00
|
|
|
|
2020-01-13 19:38:32 +01:00
|
|
|
/**
|
|
|
|
* Disables FxA Application Services Web Channels feature
|
|
|
|
*/
|
|
|
|
const val asFeatureWebChannelsDisabled = false
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Disables FxA Application Services Sync feature
|
|
|
|
*/
|
|
|
|
const val asFeatureSyncDisabled = false
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Disables FxA Application Services Pairing feature
|
|
|
|
*/
|
|
|
|
const val asFeatureFxAPairingDisabled = false
|
2020-01-17 00:05:01 +01:00
|
|
|
|
2020-02-26 01:20:58 +01:00
|
|
|
/**
|
|
|
|
* Enables dynamic bottom toolbar
|
|
|
|
*/
|
|
|
|
val dynamicBottomToolbar = Config.channel.isNightlyOrDebug
|
|
|
|
|
2020-01-17 00:05:01 +01:00
|
|
|
/**
|
2020-04-06 23:29:52 +02:00
|
|
|
* Enables deleting individual tracking protection exceptions.
|
2020-01-17 00:05:01 +01:00
|
|
|
*/
|
2020-04-06 23:29:52 +02:00
|
|
|
val deleteIndividualTrackingProtectionExceptions = Config.channel.isNightlyOrDebug
|
2020-01-22 17:55:53 +01:00
|
|
|
|
2020-03-12 02:11:33 +01:00
|
|
|
/**
|
|
|
|
* Integration of push support provided by `feature-push` component into the Gecko engine.
|
|
|
|
*
|
|
|
|
* Behind nightly flag until all fatal bugs are resolved.
|
|
|
|
*
|
|
|
|
* https://github.com/mozilla-mobile/fenix/issues/9059
|
|
|
|
*/
|
|
|
|
val webPushIntegration = Config.channel.isNightlyOrDebug
|
2019-07-19 02:20:12 +02:00
|
|
|
}
|