add build customization options (#1532)

This commit is contained in:
Konrad Pozniak 2019-10-29 20:30:46 +01:00 committed by GitHub
commit 83ced20e4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 69 additions and 14 deletions

View file

@ -3,6 +3,8 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply from: "../instance-build.gradle"
def getGitSha = { ->
def stdout = new ByteArrayOutputStream()
exec {
@ -15,7 +17,7 @@ def getGitSha = { ->
android {
compileSdkVersion 29
defaultConfig {
applicationId "com.keylesspalace.tusky"
applicationId APP_ID
minSdkVersion 21
targetSdkVersion 29
versionCode 68
@ -23,6 +25,12 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
resValue "string", "app_name", APP_NAME
buildConfigField("String", "CUSTOM_LOGO_URL", "\"$CUSTOM_LOGO_URL\"")
buildConfigField("String", "CUSTOM_INSTANCE", "\"$CUSTOM_INSTANCE\"")
buildConfigField("String", "SUPPORT_ACCOUNT_URL", "\"$SUPPORT_ACCOUNT_URL\"")
kapt {
arguments {
arg("room.schemaLocation", "$projectDir/schemas")