|
|
|
@ -365,6 +365,21 @@ android.applicationVariants.all { variant ->
|
|
|
|
|
println("--")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------------------------------------
|
|
|
|
|
// Glean: Read custom server URL from local.properties of a local file if it exists
|
|
|
|
|
// -------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
print("Glean custom server URL: ")
|
|
|
|
|
|
|
|
|
|
if (gradle.hasProperty("localProperties.glean.custom.server.url")) {
|
|
|
|
|
def url=gradle.getProperty("localProperties.glean.custom.server.url")
|
|
|
|
|
buildConfigField 'String', 'GLEAN_CUSTOM_URL', url
|
|
|
|
|
println "(Added from local.properties file)"
|
|
|
|
|
} else {
|
|
|
|
|
buildConfigField 'String', 'GLEAN_CUSTOM_URL', 'null'
|
|
|
|
|
println("--")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------------------------------------
|
|
|
|
|
// BuildConfig: Set flag for official builds; similar to MOZILLA_OFFICIAL in mozilla-central.
|
|
|
|
|
// -------------------------------------------------------------------------------------------------
|
|
|
|
|