From 76ce94e1abba20232a09c8bdc497ced497b344a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Sch=C3=BCrmann?= Date: Tue, 5 May 2015 21:46:01 +0200 Subject: Restructure for jcenter publish --- example/build.gradle | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 example/build.gradle (limited to 'example/build.gradle') 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 + } +} -- cgit v1.2.3