|
|
|
@ -41,6 +41,17 @@ def abiPostFix = ['armeabi-v7a' : 1,
|
|
|
|
|
'x86_64' : 4,
|
|
|
|
|
'universal' : 5]
|
|
|
|
|
|
|
|
|
|
// Function to get the current git commit hash so we can embed it along w/ the build version.
|
|
|
|
|
// Note: This is visible in the SettingsActivity, right at the bottom (R.id.versionTextView).
|
|
|
|
|
def getGitHash = { ->
|
|
|
|
|
def stdout = new ByteArrayOutputStream()
|
|
|
|
|
exec {
|
|
|
|
|
commandLine "git", "rev-parse", "--short", "HEAD"
|
|
|
|
|
standardOutput = stdout
|
|
|
|
|
}
|
|
|
|
|
return stdout.toString().trim()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
android {
|
|
|
|
|
compileSdkVersion androidCompileSdkVersion
|
|
|
|
|
namespace 'network.loki.messenger'
|
|
|
|
@ -94,6 +105,7 @@ android {
|
|
|
|
|
project.ext.set("archivesBaseName", "session")
|
|
|
|
|
|
|
|
|
|
buildConfigField "long", "BUILD_TIMESTAMP", getLastCommitTimestamp() + "L"
|
|
|
|
|
buildConfigField "String", "GIT_HASH", "\"$getGitHash\""
|
|
|
|
|
buildConfigField "String", "CONTENT_PROXY_HOST", "\"contentproxy.signal.org\""
|
|
|
|
|
buildConfigField "int", "CONTENT_PROXY_PORT", "443"
|
|
|
|
|
buildConfigField "String", "USER_AGENT", "\"OWA\""
|
|
|
|
|