Skip to content

Commit 9d032f5

Browse files
authored
Merge pull request #20853 from wordpress-mobile/issue/v2c-feature-flag
[Voice to Content] Implement voice to content feature flag
2 parents 595f399 + 6bcecb8 commit 9d032f5

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

WordPress/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ android {
151151
buildConfigField "boolean", "READER_DISCOVER_NEW_ENDPOINT", "false"
152152
buildConfigField "boolean", "READER_READING_PREFERENCES", "false"
153153
buildConfigField "boolean", "READER_READING_PREFERENCES_FEEDBACK", "false"
154+
buildConfigField "boolean", "VOICE_TO_CONTENT", "false"
154155

155156
// Override these constants in jetpack product flavor to enable/ disable features
156157
buildConfigField "boolean", "ENABLE_SITE_CREATION", "true"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
private const val VOICE_TO_CONTENT_REMOTE_FIELD = "voice_to_content"
8+
9+
@Feature(remoteField = VOICE_TO_CONTENT_REMOTE_FIELD, defaultValue = false)
10+
class VoiceToContentFeatureConfig @Inject constructor(
11+
appConfig: AppConfig
12+
) : FeatureConfig(
13+
appConfig,
14+
BuildConfig.VOICE_TO_CONTENT,
15+
VOICE_TO_CONTENT_REMOTE_FIELD,
16+
)

0 commit comments

Comments
 (0)