diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-05-05 21:46:01 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-05-05 21:46:01 +0200 |
commit | 76ce94e1abba20232a09c8bdc497ced497b344a3 (patch) | |
tree | 188f15afd2221302c2a362c4ddfeddb17e405b1f /example/build.gradle | |
parent | 87dc44e85be2638288966aaa757b369c2ce18c8e (diff) | |
download | openpgp-api-76ce94e1abba20232a09c8bdc497ced497b344a3.tar.gz openpgp-api-76ce94e1abba20232a09c8bdc497ced497b344a3.tar.bz2 openpgp-api-76ce94e1abba20232a09c8bdc497ced497b344a3.zip |
Restructure for jcenter publish
Diffstat (limited to 'example/build.gradle')
-rw-r--r-- | example/build.gradle | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/example/build.gradle b/example/build.gradle new file mode 100644 index 0000000..2cae79a --- /dev/null +++ b/example/build.gradle @@ -0,0 +1,52 @@ +apply plugin: 'com.android.application' + +dependencies { + compile 'com.android.support:support-v4:22.1.1' + compile project(':openpgp-api') +} + +android { + compileSdkVersion 22 + buildToolsVersion '21.1.2' + + defaultConfig { + minSdkVersion 9 + targetSdkVersion 22 + applicationId 'org.openintents.openpgp.example' + versionCode 6 + versionName '7.0' + } + + /* + * 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 { + storeFile file(signingStoreLocation) + storePassword signingStorePassword + keyAlias signingKeyAlias + keyPassword signingKeyPassword + } + } + + buildTypes.release.signingConfig = signingConfigs.release + } else { + buildTypes.release.signingConfig = null + } + + // Do not abort build if lint finds errors + lintOptions { + abortOnError false + } +} |