This repository has been archived by the owner on Jan 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 711
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For #6387 - Migrate multi-tabs experiment to feature manifest language
- Loading branch information
1 parent
47bea07
commit e3869f7
Showing
9 changed files
with
105 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"tabs": { | ||
"description": "Nimbus feature name intended to control the multiple tabs feature in the app.", | ||
"hasExposure": true, | ||
"exposureDescription": "", | ||
"variables": { | ||
"is_multi_tab": { | ||
"description": "Nimbus variable of [FEATURE_TABS] allowing outside control of whether the multiple tabs feature should be enabled or not.", | ||
"type": "boolean" | ||
} | ||
} | ||
}, | ||
"onboarding-with-cfrs": { | ||
"description": "Nimbus feature name intended to control the onboarding plus all CFRs in the app.", | ||
"hasExposure": true, | ||
"exposureDescription": "", | ||
"variables": { | ||
"is-onboarding-with-cfrs": { | ||
"description": "If `true`, the app will show the new onboarding screen and all the cfrs", | ||
"type": "boolean" | ||
} | ||
} | ||
}, | ||
"onboarding-without-cfrs": { | ||
"description": "Nimbus feature name intended to control the onboarding without CFRs in the app.", | ||
"hasExposure": true, | ||
"exposureDescription": "", | ||
"variables": { | ||
"is-onboarding-without-cfrs": { | ||
"description": "If `true`, the app will show only the new onboarding screen", | ||
"type": "boolean" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +0,0 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
package org.mozilla.focus.ext | ||
|
||
import mozilla.components.service.nimbus.NimbusApi | ||
|
||
/** | ||
* Nimbus feature name intended to control the multiple tabs feature in the app. | ||
*/ | ||
const val FEATURE_TABS = "tabs" | ||
|
||
/** | ||
* Nimbus variable of [FEATURE_TABS] allowing outside control of whether the multiple tabs feature | ||
* should be enabled or not. | ||
*/ | ||
private const val VARIABLE_IS_MULTI_TAB = "is_multi_tab" | ||
|
||
/** | ||
* Whether the multiple tabs feature support is enabled or not. | ||
* Defaults to `true`. May be overridden by a Nimbus experiment. | ||
*/ | ||
val NimbusApi.isMultiTabsEnabled | ||
get() = getVariables(featureId = FEATURE_TABS, recordExposureEvent = false) | ||
.getBool(VARIABLE_IS_MULTI_TAB) ?: true | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
channels: | ||
- debug | ||
- nightly | ||
- beta | ||
- release | ||
features: | ||
tabs: | ||
description: Nimbus feature name intended to control the multiple tabs feature in the app. | ||
variables: | ||
is_multi_tab: | ||
description: Nimbus variable of [FEATURE_TABS] allowing outside control of whether the multiple tabs feature should be enabled or not. | ||
type: Boolean | ||
default: true | ||
onboarding-with-cfrs: | ||
description: Nimbus feature name intended to control the onboarding plus all CFRs in the app. | ||
variables: | ||
is-onboarding-with-cfrs: | ||
description: If `true`, the app will show the new onboarding screen and all the cfrs | ||
type: Boolean | ||
default: true | ||
onboarding-without-cfrs: | ||
description: Nimbus feature name intended to control the onboarding without CFRs in the app. | ||
variables: | ||
is-onboarding-without-cfrs: | ||
description: If `true`, the app will show only the new onboarding screen | ||
type: Boolean | ||
default: false | ||
types: | ||
objects: {} | ||
enums: {} |