From acb87a7543cdbdaaa3fa75e1a1920ca66ba31b48 Mon Sep 17 00:00:00 2001 From: Martijn Brekhof Date: Mon, 20 Jun 2016 14:26:03 +0200 Subject: [PATCH 1/2] Fixed printing false message during gradle configuration phase --- app/build.gradle | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index a9a22f8..f9b1eb7 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -121,8 +121,10 @@ def adb = android.getAdbExe().toString() // Source: http://stackoverflow.com/q/29908110/112705 afterEvaluate { task grantAnimationPermissionDev(type: Exec, dependsOn: 'installInstrumentationTestDebug') { - println("Executing: $adb shell pm grant $android.productFlavors.instrumentationTest.applicationId android.permission.SET_ANIMATION_SCALE") - commandLine "$adb shell pm grant $android.productFlavors.instrumentationTest.applicationId android.permission.SET_ANIMATION_SCALE".split(' ') + doFirst { + println("Executing: $adb shell pm grant $android.productFlavors.instrumentationTest.applicationId android.permission.SET_ANIMATION_SCALE") + commandLine "$adb shell pm grant $android.productFlavors.instrumentationTest.applicationId android.permission.SET_ANIMATION_SCALE".split(' ') + } } // When launching individual tests from Android Studio, it seems that only the assemble tasks From 6a928e3c9528dcded76c52f0183e373e3f6e8d63 Mon Sep 17 00:00:00 2001 From: Martijn Brekhof Date: Mon, 20 Jun 2016 20:57:40 +0200 Subject: [PATCH 2/2] Added fix for travis build --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3492f7f..65506fd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,4 +23,4 @@ android: before_script: script: - - ./gradlew assembleRelease + - ./gradlew assembleFullRelease