Fiddle with Nimbus to try and get it to not break the build

pull/543/head
Adam Novak 2 years ago
parent 1ebeca1e19
commit 27eb3fd880

@ -10,7 +10,7 @@ enum class ReleaseChannel {
Nightly, Nightly,
Beta, Beta,
Release, Release,
ForkRelease ForkRelease,
; ;
val isReleased: Boolean val isReleased: Boolean

@ -101,15 +101,17 @@ class AddonsManagementFragment : Fragment(R.layout.fragment_add_ons_management)
searchView.imeOptions = EditorInfo.IME_ACTION_DONE searchView.imeOptions = EditorInfo.IME_ACTION_DONE
searchView.queryHint = getString(R.string.addons_search_hint) searchView.queryHint = getString(R.string.addons_search_hint)
searchView.setOnQueryTextListener(object : SearchView.OnQueryTextListener { searchView.setOnQueryTextListener(
override fun onQueryTextSubmit(query: String): Boolean { object : SearchView.OnQueryTextListener {
return searchAddons(query.trim()) override fun onQueryTextSubmit(query: String): Boolean {
} return searchAddons(query.trim())
}
override fun onQueryTextChange(newText: String): Boolean { override fun onQueryTextChange(newText: String): Boolean {
return searchAddons(newText.trim()) return searchAddons(newText.trim())
} }
},) },
)
} }
private fun searchAddons(addonNameSubStr: String): Boolean { private fun searchAddons(addonNameSubStr: String): Boolean {

@ -274,29 +274,17 @@ class Settings(private val appContext: Context) : PreferencesHolder {
val isTelemetryEnabled by booleanPreference( val isTelemetryEnabled by booleanPreference(
appContext.getPreferenceKey(R.string.pref_key_telemetry), appContext.getPreferenceKey(R.string.pref_key_telemetry),
<<<<<<< HEAD default = false,
default = true,
=======
default = false
>>>>>>> e1281c453... Do all of Iceraven in one commit
) )
var isMarketingTelemetryEnabled by booleanPreference( var isMarketingTelemetryEnabled by booleanPreference(
appContext.getPreferenceKey(R.string.pref_key_marketing_telemetry), appContext.getPreferenceKey(R.string.pref_key_marketing_telemetry),
<<<<<<< HEAD default = false,
default = !Config.channel.isMozillaOnline,
=======
default = false
>>>>>>> e1281c453... Do all of Iceraven in one commit
) )
var isExperimentationEnabled by booleanPreference( var isExperimentationEnabled by booleanPreference(
appContext.getPreferenceKey(R.string.pref_key_experimentation), appContext.getPreferenceKey(R.string.pref_key_experimentation),
<<<<<<< HEAD default = false,
default = true,
=======
default = false
>>>>>>> e1281c453... Do all of Iceraven in one commit
) )
var isOverrideTPPopupsForPerformanceTest = false var isOverrideTPPopupsForPerformanceTest = false
@ -736,12 +724,12 @@ class Settings(private val appContext: Context) : PreferencesHolder {
var shouldStripUrl by booleanPreference( var shouldStripUrl by booleanPreference(
appContext.getPreferenceKey(R.string.pref_key_strip_url), appContext.getPreferenceKey(R.string.pref_key_strip_url),
default = true default = true,
) )
var shouldRelinquishMemoryUnderPressure by booleanPreference( var shouldRelinquishMemoryUnderPressure by booleanPreference(
appContext.getPreferenceKey(R.string.pref_key_relinquish_memory_under_pressure), appContext.getPreferenceKey(R.string.pref_key_relinquish_memory_under_pressure),
default = true default = true,
) )
/** /**
@ -1145,12 +1133,12 @@ class Settings(private val appContext: Context) : PreferencesHolder {
val customAddonsAccount by stringPreference( val customAddonsAccount by stringPreference(
appContext.getPreferenceKey(R.string.pref_key_addons_custom_account), appContext.getPreferenceKey(R.string.pref_key_addons_custom_account),
BuildConfig.AMO_COLLECTION_USER BuildConfig.AMO_COLLECTION_USER,
) )
val customAddonsCollection by stringPreference( val customAddonsCollection by stringPreference(
appContext.getPreferenceKey(R.string.pref_key_addons_custom_collection), appContext.getPreferenceKey(R.string.pref_key_addons_custom_collection),
BuildConfig.AMO_COLLECTION_NAME BuildConfig.AMO_COLLECTION_NAME,
) )
var mobileBookmarksSize by intPreference( var mobileBookmarksSize by intPreference(

@ -1,9 +1,4 @@
--- ---
about:
description: Nimbus Feature Manifest for Fenix (Firefox Android)
kotlin:
package: org.mozilla.fenix
class: .nimbus.FxNimbus
channels: channels:
- release - release
- forkRelease - forkRelease
@ -44,6 +39,41 @@ features:
"pocket-sponsored-stories": true, "pocket-sponsored-stories": true,
} }
} }
onboarding:
description: The onboarding features displayed on homescreen.
variables:
sections-enabled:
description: "This property provides a lookup table of whether or not the given section should be enabled."
type: Map<OnboardingSection, Boolean>
default:
{
"sync-cfr": false,
"wallpapers": false,
"home-onboarding-dialog": false,
"jump-back-in-cfr": false,
"first-run-onboarding": false,
}
defaults:
- channel: nightly
value: {
"sections-enabled": {
"sync-cfr": false,
"wallpapers": false,
"home-onboarding-dialog": false,
"jump-back-in-cfr": false,
"first-run-onboarding": false,
}
}
- channel: developer
value: {
"sections-enabled": {
"sync-cfr": false,
"wallpapers": true,
"home-onboarding-dialog": false,
"jump-back-in-cfr": false,
"first-run-onboarding": false,
}
}
nimbus-validation: nimbus-validation:
description: "A feature that does not correspond to an application feature suitable for showing description: "A feature that does not correspond to an application feature suitable for showing
that Nimbus is working. This should never be used in production." that Nimbus is working. This should never be used in production."
@ -190,10 +220,11 @@ features:
type: Map<MR2022Section, Boolean> type: Map<MR2022Section, Boolean>
default: default:
{ {
"home-onboarding-dialog-existing-users": true, "home-onboarding-dialog-new-users": false,
"sync-cfr": true, "home-onboarding-dialog-existing-users": false,
"wallpapers-selection-tool": true, "sync-cfr": false,
"jump-back-in-cfr": true, "wallpapers-selection-tool": false,
"jump-back-in-cfr": false,
"tcp-cfr": false, "tcp-cfr": false,
"tcp-feature": false "tcp-feature": false
} }
@ -201,10 +232,13 @@ features:
- channel: developer - channel: developer
value: { value: {
"sections-enabled": { "sections-enabled": {
"home-onboarding-dialog-new-users": true,
"home-onboarding-dialog-existing-users": true, "home-onboarding-dialog-existing-users": true,
"sync-cfr": true, "sync-cfr": true,
"wallpapers-selection-tool": true, "wallpapers-selection-tool": true,
"jump-back-in-cfr": true, "jump-back-in-cfr": true,
"tcp-cfr": true,
"tcp-feature": true
} }
} }
@ -220,6 +254,17 @@ features:
value: value:
enabled: false enabled: false
engine-settings:
description: Contains a set of settings for controlling the web engine configurations.
variables:
tabs-prioritization-enabled:
description: If true, enables tabs prioritization feature.
type: Boolean
default: true
total-cookie-protection-enabled:
description: If true, enables the total cookie protection in all browsing modes.
type: Boolean
default: false
types: types:
objects: objects:
MessageData: MessageData:
@ -318,11 +363,26 @@ types:
description: A setting in the settings screen. description: A setting in the settings screen.
homescreen-banner: homescreen-banner:
description: A banner in the homescreen. description: A banner in the homescreen.
OnboardingSection:
description: The identifiers for the sections of the onboarding.
variants:
sync-cfr:
description: Sync onboarding CFR.
wallpapers:
description: Wallpapers onboarding dialog.
home-onboarding-dialog:
description: Home onboarding dialog for upgraded users.
jump-back-in-cfr:
description: Jump back in onboarding CFR.
first-run-onboarding:
description: First run onboarding page updates.
MR2022Section: MR2022Section:
description: The identifiers for the sections of the MR 2022. description: The identifiers for the sections of the MR 2022.
variants: variants:
home-onboarding-dialog-existing-users: home-onboarding-dialog-existing-users:
description: Home onboarding dialog for upgraded users. description: Home onboarding dialog for upgraded users.
home-onboarding-dialog-new-users:
description: Home onboarding dialog for new users.
sync-cfr: sync-cfr:
description: CFR for the first time you see a synced tab on the home screen. description: CFR for the first time you see a synced tab on the home screen.
wallpapers-selection-tool: wallpapers-selection-tool:

Loading…
Cancel
Save