Fixed printing false message during gradle configuration phase

This commit is contained in:
Martijn Brekhof 2016-06-20 14:26:03 +02:00
parent 7887ced41e
commit acb87a7543
1 changed files with 4 additions and 2 deletions

View File

@ -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