From 54a2f09a1fbce3350e517beaa36535613b274eb9 Mon Sep 17 00:00:00 2001 From: Stefan Hoth Date: Tue, 1 Apr 2014 15:56:12 +0200 Subject: [PATCH 1/3] (Once more) Fix conditional configuration of DeployGate plugin if properties are present --- app/build.gradle | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 4451d32..1306ca7 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -73,29 +73,28 @@ dependencies { if (secretProps.containsKey("DEPLOYGATE_USERNAME") && secretProps.containsKey("DEPLOYGATE_TOKEN")) { apply plugin: 'deploygate' - gradle.taskGraph.whenReady { graph -> - project.configure(deploygate, { - userName = secretProps.getProperty("DEPLOYGATE_USERNAME") - token = secretProps.getProperty("DEPLOYGATE_TOKEN") + project.configure(deploygate, { + userName = secretProps.getProperty("DEPLOYGATE_USERNAME") + token = secretProps.getProperty("DEPLOYGATE_TOKEN") - apks { - beta { - sourceFile = file("build/apk/app-beta-unaligned.apk") + apks { + beta { + sourceFile = file("build/apk/app-beta-unaligned.apk") - def betaComment = secretProps.getProperty("DEPLOYGATE_RELEASE_NOTES") - if (betaComment != null && betaComment.length() > 0) { - releaseNote = betaComment - message = betaComment - } + def betaComment = secretProps.getProperty("DEPLOYGATE_RELEASE_NOTES") + if (betaComment != null && betaComment.length() > 0) { + releaseNote = betaComment + message = betaComment + } - if (secretProps.hasProperty("DEPLOYGATE_DISTRIBUTION_ID")) { - distributionKey = secretProps.getProperty("DEPLOYGATE_DISTRIBUTION_ID") - } + if (secretProps.hasProperty("DEPLOYGATE_DISTRIBUTION_ID")) { + distributionKey = secretProps.getProperty("DEPLOYGATE_DISTRIBUTION_ID") } } - }) - } + } + }) + } def getReleaseNotes(flavor) { From bb246eb7fcce51aa2cd98520c268f71c463255ea Mon Sep 17 00:00:00 2001 From: Stefan Hoth Date: Tue, 1 Apr 2014 15:56:49 +0200 Subject: [PATCH 2/3] Optimize travis build - add caching for apt-packages - only build master branch (=new release) --- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 78af738..af43ad2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,12 @@ jdk: oraclejdk7 env: matrix: - ANDROID_TARGET=android-19 ANDROID_ABI=armeabi-v7a + +cache: apt +branches: + only: + - master + before_install: # Install base Android SDK - sudo apt-get update -qq From 2b9a602c016575a8f47a9861c8ae0e3143270d88 Mon Sep 17 00:00:00 2001 From: Stefan Hoth Date: Tue, 1 Apr 2014 15:57:33 +0200 Subject: [PATCH 3/3] Bump version to 0.4.3 for release --- app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 1306ca7..ec152b4 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -29,8 +29,8 @@ android { defaultConfig { minSdkVersion 15 targetSdkVersion 19 - versionCode 6 - versionName "0.4.2" + versionCode 7 + versionName "0.4.3" } compileOptions {