Bug 1826387 - Enable juno onboarding nimbus flag in nightly

fenix/113.0
rahulsainani 1 year ago committed by mergify[bot]
parent ee5d46a511
commit 2c10d49b30

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

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

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

@ -344,6 +344,5 @@
<string name="pref_key_is_notification_pre_permission_prompt_shown">pref_key_is_notification_pre_permission_prompt_shown</string> <string name="pref_key_is_notification_pre_permission_prompt_shown">pref_key_is_notification_pre_permission_prompt_shown</string>
<!-- Juno Onboarding --> <!-- 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> <string name="pref_key_is_juno_onboarding_shown">pref_key_is_juno_onboarding_shown</string>
</resources> </resources>

Loading…
Cancel
Save