1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2025-01-11 04:25:53 +00:00

Only use signingconfigs when environment settings are set

This commit is contained in:
Lode Hoste 2015-03-21 01:32:49 +01:00
parent 4868694643
commit 5b7cb05a47

View file

@ -35,6 +35,8 @@ preBuild {
dependsOn 'buildNative'
}
project.archivesBaseName = 'syncthing'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
@ -55,11 +57,13 @@ android {
signingConfigs {
release {
storeFile file(System.getenv("key.store"))
storePassword System.getenv("key.store.password")
keyAlias System.getenv("key.alias")
keyPassword System.getenv("key.alias.password")
}
if (System.getenv("key_alias")) {
storeFile = file(System.getenv("key_store"))
storePassword = System.getenv("key_store_password")
keyAlias = System.getenv("key_alias")
keyPassword = System.getenv("key_alias_password")
}
}
}
buildTypes {
@ -68,7 +72,9 @@ android {
debuggable true
}
release {
signingConfig signingConfigs.release
if (System.getenv("key_alias")) {
signingConfig signingConfigs.release
}
}
}