From d47d1af775ede3b1e45bb370408dec960674e71f Mon Sep 17 00:00:00 2001 From: Stefan Hoth Date: Tue, 1 Apr 2014 15:40:58 +0200 Subject: [PATCH 1/3] Make deploygate config truly optional --- app/build.gradle | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 50a82ae..673ecb5 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -69,31 +69,33 @@ dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) } -if (secretProps.hasProperty("DEPLOYGATE_USERNAME") && secretProps.hasProperty("DEPLOYGATE_TOKEN")) { + +if (secretProps.containsKey("DEPLOYGATE_USERNAME") && secretProps.containsKey("DEPLOYGATE_TOKEN")) { apply plugin: 'deploygate' + gradle.taskGraph.whenReady { graph -> - 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 c11ac45f8d5019a6b211c20074108c0430fdbcfd Mon Sep 17 00:00:00 2001 From: Stefan Hoth Date: Tue, 1 Apr 2014 15:41:42 +0200 Subject: [PATCH 2/3] Fix travis test command --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e17c0d6..78af738 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,5 +32,5 @@ before_script: - adb shell input keyevent 82 & script: - - ./gradlew connectedInstrumentTest + - ./gradlew connectedAndroidTest \ No newline at end of file From be0d6fe7fbeb6a7b1aae095161da68552c20edd7 Mon Sep 17 00:00:00 2001 From: Stefan Hoth Date: Tue, 1 Apr 2014 15:42:18 +0200 Subject: [PATCH 3/3] Bump version to 0.4.2 for release --- app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 673ecb5..4451d32 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -29,8 +29,8 @@ android { defaultConfig { minSdkVersion 15 targetSdkVersion 19 - versionCode 5 - versionName "0.4.1" + versionCode 6 + versionName "0.4.2" } compileOptions {