diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2013-09-09 21:11:16 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2013-09-09 21:11:16 +0200 |
commit | 1421046c6d9a7f153e28b17fbd94e873a1d6aa05 (patch) | |
tree | 9eaabdec957a95e7710a2de2c1754dc56c835f63 /OpenPGP-Keychain/build.gradle | |
parent | 75672fa5b3785d62ee56c738cafd408a2dc272ab (diff) | |
download | open-keychain-1421046c6d9a7f153e28b17fbd94e873a1d6aa05.tar.gz open-keychain-1421046c6d9a7f153e28b17fbd94e873a1d6aa05.tar.bz2 open-keychain-1421046c6d9a7f153e28b17fbd94e873a1d6aa05.zip |
update gradle, description,...
Diffstat (limited to 'OpenPGP-Keychain/build.gradle')
-rw-r--r-- | OpenPGP-Keychain/build.gradle | 48 |
1 files changed, 26 insertions, 22 deletions
diff --git a/OpenPGP-Keychain/build.gradle b/OpenPGP-Keychain/build.gradle index a1bf3b783..a8523a6c8 100644 --- a/OpenPGP-Keychain/build.gradle +++ b/OpenPGP-Keychain/build.gradle @@ -16,8 +16,9 @@ repositories { dependencies { compile fileTree(dir: 'libs', includes: ['*.jar'], excludes: ['android-support-v4.jar']) - compile 'com.android.support:support-v4:13.0.+' + //compile 'com.android.support:support-v4:18.0.+' // already in actionbarsherlock compile 'com.actionbarsherlock:actionbarsherlock:4.4.+@aar' + compile project(':libraries:HtmlTextView') } android { @@ -26,7 +27,7 @@ android { defaultConfig { minSdkVersion 8 - targetSdkVersion 18 + targetSdkVersion 17 } sourceSets { @@ -43,28 +44,31 @@ android { instrumentTest.setRoot('tests') } - if (project.hasProperty('signingStoreLocation')) { - /* - * To sign release build, create file gradle.properties in .gradle/ with this content: - * - * signingStoreLocation=/home/key.store - * signingStorePassword=xxx - * signingKeyAlias=alias - * signingKeyPassword=xxx - */ - signingConfigs { - myConfig { - storeFile file(signingStoreLocation) - storePassword signingStorePassword - keyAlias signingKeyAlias - keyPassword signingKeyPassword - } - } - - buildTypes { + /* + * To sign release build, create file gradle.properties in ~/.gradle/ with this content: + * + * signingStoreLocation=/home/key.store + * signingStorePassword=xxx + * signingKeyAlias=alias + * signingKeyPassword=xxx + */ + if (project.hasProperty('signingStoreLocation') && + project.hasProperty('signingStorePassword') && + project.hasProperty('signingKeyAlias') && + project.hasProperty('signingKeyPassword')) { + println "Found sign properties in gradle.properties! Signing build…" + + signingConfigs { release { - signingConfig signingConfigs.myConfig + storeFile file(signingStoreLocation) + storePassword signingStorePassword + keyAlias signingKeyAlias + keyPassword signingKeyPassword } } + + buildTypes.release.signingConfig = signingConfigs.release + } else { + buildTypes.release.signingConfig = null } } |