feat(gelderlander): add a feature-flag override hook (Firebase Remote Config wrapper) #17
Labels
No labels
area/architecture
area/build-ci
area/bytecode
area/code-quality
area/docs
area/extension
area/fingerprint
area/security
area/tests
Bug report
Feature request
review
sev/low
sev/medium
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
midas/midas-patches#17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #16.
Feature description
De Gelderlander gates many features behind
FEATURE_*flags that are read through one Firebase Remote Config wrapper. Overriding a handful of keys there turns off several nags at once. That makes this hook the shared building block for several roadmap issues:Add an internal (unnamed) patch that forces selected flag keys to a fixed value. The user-facing patches declare it with
dependsOnand register the keys they need.Findings (9.21.1)
defpackage/tha(implements interfacerha).tha.c(String key, String staticValue): booleanreadsFirebaseRemoteConfig.getString(key); if empty it falls back todw3.b(staticValue).tha.a(String key, String defaultValue): Stringis the string variant.(Ljava/lang/String;Ljava/lang/String;)Z;FirebaseRemoteConfig.getInstance()/getString;g()callssetMinimumFetchIntervalInSeconds(0)andsetFetchTimeoutInSeconds(120).rha.b(...)default helper or an injectedrha. All of them end up intha.c.FEATURE_RATING_MODALFEATURE_TEMPTATION_VIEWSFEATURE_FIREBASE_IN_APP_MESSAGINGFEATURE_COMSCOREFEATURE_MARKETING_POSITION_TOPFEATURE_DISPLAY_PUSH_NOTIFICATIONS_IN_ONBOARDINGFEATURE_ONBOARDING_LOGIN_SEDUCTION_SCREENFEATURE_COMMENTING_VIAFOURAFEATURE_GAMES_FEEDBACKApproach
tha.c, look upp1(the key) and return the forced boolean when it is overridden.Map<String, Boolean>is cleaner than a long smaliifchain. Copyextensions/extensionback from the template (see AGENTS.md).findFreeRegister.execute; orDone when
gelderlander/(or akubus/package if #47 lands first).patch-install.ps1 -NoInstallapplies on 9.21.1.docs/apps/gelderlander.mddocuments the wrapper, the anchors and the key list.Midas Settings
A flag is only forced when the Midas Settings toggle of the patch that registered it is on (#49). Example:
FEATURE_RATING_MODALis forced off only while "Verberg beoordelingsverzoeken" is on.key -> toggle, notkey -> fixed value.