Last active
March 19, 2025 14:32
-
-
Save ryancfogarty/512d489dba9ec6be93e7f0a02e1d04a3 to your computer and use it in GitHub Desktop.
hardcoded dev decisions
This file contains hidden or 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
| private val onboardingMapiRfaaDecisionMap = mapOf( | |
| "displayOnboardingPopup" to Decision( | |
| flag = FeatureFlag.Upside.OnboardingMapiRfaa, | |
| enabled = true, | |
| variables = OnboardingMapiVariables(true), | |
| ) | |
| "hideOnboardingPopup" to Decision( | |
| flag = FeatureFlag.Upside.OnboardingMapiRfaa, | |
| enabled = true, | |
| variables = OnboardingMapiVariables(false), | |
| ) | |
| ) | |
| private val devDecisions = mapOf( | |
| FeatureFlag.Upside.OnboardingMapiRfaa to onboardingMapiRfaaDecisionMap | |
| ) | |
| // alternative | |
| val upsideFeatureFlags = listOf( | |
| FeatureFlag.Upside.OnboardingMapiRfaa | |
| ) | |
| fun variablesOptions(flag: FeatureFlag.Upside) = when (flag) { | |
| is FeatureFlag.Upside.OnboardingMapiRfaa -> mapOf( | |
| "displayOnboardingPopup" to Decision( | |
| flag = FeatureFlag.Upside.OnboardingMapiRfaa, | |
| enabled = true, | |
| variables = OnboardingMapiVariables(true), | |
| ) | |
| "hideOnboardingPopup" to Decision( | |
| flag = FeatureFlag.Upside.OnboardingMapiRfaa, | |
| enabled = true, | |
| variables = OnboardingMapiVariables(false), | |
| ) | |
| ) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment