Feature flag for experimental Users management

#comment Created experimental.properties and included value in build config
Affected: none

MAILAND-716
This commit is contained in:
Davide Farella 2020-06-12 14:18:08 +02:00 committed by Zorica Stojchevska
parent 26c416bac9
commit 01cf19ef12
2 changed files with 11 additions and 2 deletions

View File

@ -19,7 +19,7 @@
import studio.forface.easygradle.dsl.*
import studio.forface.easygradle.dsl.android.*
import java.io.FileInputStream
import java.util.*
import java.util.Properties
plugins {
`android-application`
@ -39,6 +39,10 @@ val privateProperties = Properties().apply {
load(FileInputStream("privateConfig/private.properties"))
}
val experimentalProperties = Properties().apply {
load(FileInputStream("experimental.properties"))
}
android(appIdSuffix = "android") {
useLibrary("org.apache.http.legacy")
@ -46,7 +50,8 @@ android(appIdSuffix = "android") {
defaultConfig {
multiDexEnabled = true
// Private
buildConfigField("String", "SENTRY_DNS_1", "\"${privateProperties["sentryDNS_1"]}\"")
buildConfigField("String", "SENTRY_DNS_2", "\"${privateProperties["sentryDNS_2"]}\"")
buildConfigField("String", "SAFETY_NET_API_KEY", "\"${privateProperties["safetyNet_apiKey"]}\"")
@ -55,6 +60,9 @@ android(appIdSuffix = "android") {
buildConfigField("String", "H_ENDPOINT_URL", "\"${privateProperties["h_endpointUrl"]}\"")
buildConfigField("String", "PM_CLIENT_SECRET", "\"${privateProperties["pm_clientSecret"]}\"")
// Experimental
buildConfigField("boolean", "EXPERIMENTAL_USERS_MANAGEMENT", "${experimentalProperties["users-management"]}")
buildConfigField("boolean", "FETCH_FULL_CONTACTS", "true")
buildConfigField("boolean", "REREGISTER_FOR_PUSH", "true")
buildConfigField("int", "ROOM_DB_VERSION", "${properties["DATABASE_VERSION"]}")

1
experimental.properties Normal file
View File

@ -0,0 +1 @@
users-management=false