Rework the feature flag module.

Fix typo, rename class and interface, add doc, do small refacto, to improve code clarity.
This commit is contained in:
Benoit Marty 2023-09-07 10:29:10 +02:00 committed by Benoit Marty
parent 4a5a01d710
commit c16c875e68
8 changed files with 34 additions and 25 deletions

View file

@ -28,7 +28,8 @@ interface FeatureFlagService {
* @param feature the feature to enable or disable
* @param enabled true to enable the feature
*
* @return true if the method succeeds, ie if a RuntimeFeatureFlagProvider is registered
* @return true if the method succeeds, ie if a [io.element.android.libraries.featureflag.impl.MutableFeatureFlagProvider]
* is registered
*/
suspend fun setFeatureEnabled(feature: Feature, enabled: Boolean): Boolean
}