Merge pull request #257 from poisdeux/issue/disableanimpermission
Fixed printing false message during gradle configuration phase
This commit is contained in:
commit
cc1329f614
|
@ -23,4 +23,4 @@ android:
|
||||||
before_script:
|
before_script:
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./gradlew assembleRelease
|
- ./gradlew assembleFullRelease
|
||||||
|
|
|
@ -121,8 +121,10 @@ def adb = android.getAdbExe().toString()
|
||||||
// Source: http://stackoverflow.com/q/29908110/112705
|
// Source: http://stackoverflow.com/q/29908110/112705
|
||||||
afterEvaluate {
|
afterEvaluate {
|
||||||
task grantAnimationPermissionDev(type: Exec, dependsOn: 'installInstrumentationTestDebug') {
|
task grantAnimationPermissionDev(type: Exec, dependsOn: 'installInstrumentationTestDebug') {
|
||||||
println("Executing: $adb shell pm grant $android.productFlavors.instrumentationTest.applicationId android.permission.SET_ANIMATION_SCALE")
|
doFirst {
|
||||||
commandLine "$adb shell pm grant $android.productFlavors.instrumentationTest.applicationId android.permission.SET_ANIMATION_SCALE".split(' ')
|
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
|
// When launching individual tests from Android Studio, it seems that only the assemble tasks
|
||||||
|
|
Loading…
Reference in New Issue