Skip to content

Commit 6a5c35f

Browse files
authored
Merge pull request #17138 from wordpress-mobile/issue/17137-local-user-flags-feature-flag
[Local user flags] Implement feature flag
2 parents eef691e + 24d563c commit 6a5c35f

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

WordPress/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ android {
121121
buildConfigField "boolean", "JETPACK_POWERED", "true"
122122
buildConfigField "boolean", "JETPACK_POWERED_BOTTOM_SHEET", "false"
123123
buildConfigField "boolean", "JETPACK_SHARED_LOGIN", "false"
124+
buildConfigField "boolean", "JETPACK_LOCAL_USER_FLAGS", "false"
124125

125126
// Override these constants in jetpack product flavor to enable/ disable features
126127
buildConfigField "boolean", "ENABLE_SITE_CREATION", "true"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package org.wordpress.android.util.config
2+
3+
import org.wordpress.android.BuildConfig
4+
import org.wordpress.android.annotation.Feature
5+
import org.wordpress.android.util.config.JetpackLocalUserFlagsFeatureConfig.Companion.JETPACK_LOCAL_USER_FLAGS_REMOTE_FIELD
6+
import javax.inject.Inject
7+
8+
@Feature(JETPACK_LOCAL_USER_FLAGS_REMOTE_FIELD, false)
9+
class JetpackLocalUserFlagsFeatureConfig
10+
@Inject constructor(
11+
appConfig: AppConfig
12+
) : FeatureConfig(
13+
appConfig,
14+
BuildConfig.JETPACK_LOCAL_USER_FLAGS,
15+
JETPACK_LOCAL_USER_FLAGS_REMOTE_FIELD
16+
) {
17+
companion object {
18+
const val JETPACK_LOCAL_USER_FLAGS_REMOTE_FIELD = "jetpack_local_user_flags_remote_field"
19+
}
20+
}

0 commit comments

Comments
 (0)