File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
src/main/java/org/wordpress/android/util/config Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments