2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-05 21:20:45 +00:00

Bug 1826387 - Enable juno onboarding nimbus flag in nightly

This commit is contained in:
rahulsainani 2023-04-05 08:27:17 +02:00 committed by mergify[bot]
parent ee5d46a511
commit 2c10d49b30
4 changed files with 10 additions and 12 deletions

View File

@ -311,6 +311,13 @@ features:
description: if true, juno onboarding is shown to the user.
type: Boolean
default: false
defaults:
- channel: nightly
value:
enabled: true
- channel: developer
value:
enabled: true
onboarding:
description: "A feature that configures the new user onboarding page.

View File

@ -71,9 +71,4 @@ object FeatureFlags {
* Enables the notification pre permission prompt.
*/
const val notificationPrePermissionPromptEnabled = true
/**
* Enables the redesigned onboarding.
*/
const val junoOnboardingEnabled = false
}

View File

@ -670,7 +670,7 @@ class Settings(private val appContext: Context) : PreferencesHolder {
/**
* Indicates if the re-engagement notification feature is enabled
*/
public val reEngagementNotificationType: Int
val reEngagementNotificationType: Int
get() =
FxNimbus.features.reEngagementNotification.value().type
@ -1592,11 +1592,8 @@ class Settings(private val appContext: Context) : PreferencesHolder {
/**
* Indicates if juno onboarding feature is enabled.
*/
var junoOnboardingEnabled by lazyFeatureFlagPreference(
key = appContext.getPreferenceKey(R.string.pref_key_juno_onboarding_enabled),
default = { FxNimbus.features.junoOnboarding.value().enabled },
featureFlag = FeatureFlags.junoOnboardingEnabled,
)
val junoOnboardingEnabled: Boolean
get() = FxNimbus.features.junoOnboarding.value().enabled
/**
* Indicates if the juno onboarding has been shown to the user.

View File

@ -344,6 +344,5 @@
<string name="pref_key_is_notification_pre_permission_prompt_shown">pref_key_is_notification_pre_permission_prompt_shown</string>
<!-- Juno Onboarding -->
<string name="pref_key_juno_onboarding_enabled">pref_key_juno_onboarding_enabled</string>
<string name="pref_key_is_juno_onboarding_shown">pref_key_is_juno_onboarding_shown</string>
</resources>