Skip to content

Commit da0cccb

Browse files
Setup remote feature flag for quick editor
1 parent 5b1adac commit da0cccb

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

WordPress/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ android {
204204
buildConfigField "boolean", "VOICE_TO_CONTENT", "false"
205205
buildConfigField "boolean", "READER_FLOATING_BUTTON", "false"
206206
buildConfigField "boolean", "ENABLE_SELF_HOSTED_USERS", "false"
207+
buildConfigField "boolean", "GRAVATAR_QUICK_EDITOR", "true"
207208

208209
// Override these constants in jetpack product flavor to enable/ disable features
209210
buildConfigField "boolean", "ENABLE_SITE_CREATION", "true"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package org.wordpress.android.util.config
2+
3+
import org.wordpress.android.BuildConfig
4+
import org.wordpress.android.annotation.Feature
5+
import javax.inject.Inject
6+
7+
@Feature(GravatarQuickEditorFeatureConfig.GRAVATAR_QUICK_EDITOR_REMOTE_FIELD, true)
8+
class GravatarQuickEditorFeatureConfig @Inject constructor(appConfig: AppConfig) : FeatureConfig(
9+
appConfig,
10+
BuildConfig.GRAVATAR_QUICK_EDITOR,
11+
GRAVATAR_QUICK_EDITOR_REMOTE_FIELD
12+
) {
13+
override fun isEnabled(): Boolean {
14+
return super.isEnabled() && BuildConfig.GRAVATAR_QUICK_EDITOR
15+
}
16+
17+
companion object {
18+
const val GRAVATAR_QUICK_EDITOR_REMOTE_FIELD = "gravatar_quick_editor"
19+
}
20+
}

0 commit comments

Comments
 (0)