Skip to content

Commit 5c995ba

Browse files
authored
Merge pull request #19736 from wordpress-mobile/issue/12605-add-feature-flag-for-in-app-reviews
Add feature flag for in-app reviews
2 parents 603bb10 + 4e74670 commit 5c995ba

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
@@ -143,6 +143,7 @@ android {
143143
buildConfigField "boolean", "PLANS_IN_SITE_CREATION", "false"
144144
buildConfigField "boolean", "READER_IMPROVEMENTS", "false"
145145
buildConfigField "boolean", "BLOGANUARY_DASHBOARD_NUDGE", "false"
146+
buildConfigField "boolean", "IN_APP_REVIEWS", "false"
146147

147148
// Override these constants in jetpack product flavor to enable/ disable features
148149
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 IN_APP_REVIEWS_REMOTE_FIELD = "in_app_reviews"
8+
9+
@Feature(IN_APP_REVIEWS_REMOTE_FIELD, false)
10+
class InAppReviewsFeatureConfig @Inject constructor(
11+
appConfig: AppConfig
12+
) : FeatureConfig(
13+
appConfig,
14+
BuildConfig.IN_APP_REVIEWS,
15+
IN_APP_REVIEWS_REMOTE_FIELD
16+
)

0 commit comments

Comments
 (0)