Skip to content

Commit

Permalink
Add reader announcement card feature config
Browse files Browse the repository at this point in the history
  • Loading branch information
RenanLukas committed May 16, 2024
1 parent 7a2f950 commit c2fa592
Show file tree
Hide file tree
Showing 2 changed files with 16 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 @@ -152,6 +152,7 @@ android {
buildConfigField "boolean", "READER_READING_PREFERENCES", "false"
buildConfigField "boolean", "READER_READING_PREFERENCES_FEEDBACK", "false"
buildConfigField "boolean", "READER_TAGS_FEED", "false"
buildConfigField "boolean", "READER_ANNOUNCEMENT_CARD", "true"

// 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,15 @@
package org.wordpress.android.util.config

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

private const val READER_ANNOUNCEMENT_CARD_REMOTE_FIELD = "reader_announcement_card"
@Feature(remoteField = READER_ANNOUNCEMENT_CARD_REMOTE_FIELD, defaultValue = false)
class ReaderAnnouncementCardFeatureConfig @Inject constructor(
appConfig: AppConfig
) : FeatureConfig(
appConfig,
BuildConfig.READER_ANNOUNCEMENT_CARD,
READER_ANNOUNCEMENT_CARD_REMOTE_FIELD,
)

0 comments on commit c2fa592

Please sign in to comment.