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.
|
|
|
|
*/
|
|
|
|
const val pullToRefreshEnabled = false
|
2019-08-13 22:02:20 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Integration of media features provided by `feature-media` component:
|
|
|
|
* - Background playback without the app getting killed
|
|
|
|
* - Media notification with play/pause controls
|
|
|
|
* - Audio Focus handling (pausing/resuming in agreement with other media apps)
|
|
|
|
* - Support for hardware controls to toggle play/pause (e.g. buttons on a headset)
|
|
|
|
*
|
|
|
|
* Behind nightly flag until all related Android Components issues are fixed and QA has signed
|
|
|
|
* off.
|
|
|
|
*
|
|
|
|
* https://github.com/mozilla-mobile/fenix/issues/4431
|
|
|
|
*/
|
2019-08-27 21:51:27 +02:00
|
|
|
const val mediaIntegration = true
|
2019-09-04 22:27:30 +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
|
|
|
|
2019-10-24 18:29:41 +02:00
|
|
|
/**
|
|
|
|
* Gives option in Settings to see logins and sync logins
|
|
|
|
*/
|
2019-11-04 23:02:16 +01:00
|
|
|
val logins = Config.channel.isNightlyOrDebug
|
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
|
|
|
|
|
|
|
/**
|
|
|
|
* Enables the new language picker
|
|
|
|
*/
|
|
|
|
val fenixLanguagePicker = Config.channel.isNightlyOrDebug
|
2020-01-22 17:55:53 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Enables deleting individual tracking protection exceptions.
|
|
|
|
*/
|
|
|
|
val deleteIndividualTrackingProtectionExceptions = Config.channel.isNightlyOrDebug
|
2019-07-19 02:20:12 +02:00
|
|
|
}
|