Skip to content

Commit

Permalink
Merge pull request #19902 from wordpress-mobile/Stats-Traffic-Tab-Fea…
Browse files Browse the repository at this point in the history
…ture-Flag

Stats traffic tab feature flag
  • Loading branch information
irfano authored Jan 9, 2024
2 parents 76e41d4 + 555601c commit d7c3f49
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 @@ -145,6 +145,7 @@ android {
buildConfigField "boolean", "BLOGANUARY_DASHBOARD_NUDGE", "false"
buildConfigField "boolean", "IN_APP_REVIEWS", "false"
buildConfigField "boolean", "DYNAMIC_DASHBOARD_CARDS", "false"
buildConfigField "boolean", "STATS_TRAFFIC_TAB", "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 STATS_TRAFFIC_TAB_REMOTE_FIELD = "stats_traffic_tab"

@Feature(STATS_TRAFFIC_TAB_REMOTE_FIELD, false)
class StatsTrafficTabFeatureConfig @Inject constructor(
appConfig: AppConfig
) : FeatureConfig(
appConfig,
BuildConfig.STATS_TRAFFIC_TAB,
STATS_TRAFFIC_TAB_REMOTE_FIELD
)

0 comments on commit d7c3f49

Please sign in to comment.