From 42815be83b387240f3c038e43a2d0839a6b5ec87 Mon Sep 17 00:00:00 2001 From: Felix Bechstein Date: Thu, 15 Aug 2013 18:07:54 +0530 Subject: [PATCH] fix gradle build --- OpenPGP-Keychain/build.gradle | 55 ++++++++++++++----------- OpenPGP-Keychain/res/values/strings.xml | 4 +- settings.gradle | 2 +- 3 files changed, 33 insertions(+), 28 deletions(-) diff --git a/OpenPGP-Keychain/build.gradle b/OpenPGP-Keychain/build.gradle index ec8e07cbd..a1bf3b783 100644 --- a/OpenPGP-Keychain/build.gradle +++ b/OpenPGP-Keychain/build.gradle @@ -4,24 +4,29 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:0.4.1' + classpath 'com.android.tools.build:gradle:0.5.+' } } apply plugin: 'android' +repositories { + mavenCentral() +} + dependencies { compile fileTree(dir: 'libs', includes: ['*.jar'], excludes: ['android-support-v4.jar']) - compile project(':libraries:ActionBarSherlock') + compile 'com.android.support:support-v4:13.0.+' + compile 'com.actionbarsherlock:actionbarsherlock:4.4.+@aar' } android { - compileSdkVersion 17 - buildToolsVersion "17" + compileSdkVersion 18 + buildToolsVersion "18.0.1" defaultConfig { minSdkVersion 8 - targetSdkVersion 17 + targetSdkVersion 18 } sourceSets { @@ -38,26 +43,28 @@ android { instrumentTest.setRoot('tests') } - /* - * 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 - } - } + 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 { - release { - signingConfig signingConfigs.myConfig + buildTypes { + release { + signingConfig signingConfigs.myConfig + } } } } diff --git a/OpenPGP-Keychain/res/values/strings.xml b/OpenPGP-Keychain/res/values/strings.xml index a0787a63a..3c4634eb6 100644 --- a/OpenPGP-Keychain/res/values/strings.xml +++ b/OpenPGP-Keychain/res/values/strings.xml @@ -29,7 +29,6 @@ Passphrase Create Key Edit Keyring - Create Keyring Preferences Key Server Preference Change Passphrase @@ -41,7 +40,6 @@ Export Keyring Export Keyrings Key Not Found - Getting Started Query Key Server Export to Key Server Unknown Signature Key @@ -364,4 +362,4 @@ OpenPGP: Encrypt OpenPGP: Decrypt - \ No newline at end of file + diff --git a/settings.gradle b/settings.gradle index 9df383b2a..e9f3917ee 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1 @@ -include ':OpenPGP-Keychain', ':libraries:ActionBarSherlock' +include ':OpenPGP-Keychain'