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:
parent
26c416bac9
commit
01cf19ef12
|
@ -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"]}")
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
users-management=false
|
Loading…
Reference in New Issue