Skip to content

Commit

Permalink
Merge pull request #20853 from wordpress-mobile/issue/v2c-feature-flag
Browse files Browse the repository at this point in the history
[Voice to Content] Implement voice to content feature flag
  • Loading branch information
AjeshRPai committed May 21, 2024
2 parents 595f399 + 6bcecb8 commit 9d032f5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions WordPress/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ android {
buildConfigField "boolean", "READER_DISCOVER_NEW_ENDPOINT", "false"
buildConfigField "boolean", "READER_READING_PREFERENCES", "false"
buildConfigField "boolean", "READER_READING_PREFERENCES_FEEDBACK", "false"
buildConfigField "boolean", "VOICE_TO_CONTENT", "false"

// Override these constants in jetpack product flavor to enable/ disable features
buildConfigField "boolean", "ENABLE_SITE_CREATION", "true"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package org.wordpress.android.util.config

import org.wordpress.android.BuildConfig
import org.wordpress.android.annotation.Feature
import javax.inject.Inject

private const val VOICE_TO_CONTENT_REMOTE_FIELD = "voice_to_content"

@Feature(remoteField = VOICE_TO_CONTENT_REMOTE_FIELD, defaultValue = false)
class VoiceToContentFeatureConfig @Inject constructor(
appConfig: AppConfig
) : FeatureConfig(
appConfig,
BuildConfig.VOICE_TO_CONTENT,
VOICE_TO_CONTENT_REMOTE_FIELD,
)

0 comments on commit 9d032f5

Please sign in to comment.