Merge pull request #257 from poisdeux/issue/disableanimpermission

Fixed printing false message during gradle configuration phase
This commit is contained in:
Synced Synapse 2016-06-21 12:18:52 +01:00 committed by GitHub
commit cc1329f614
2 changed files with 5 additions and 3 deletions

View File

@ -23,4 +23,4 @@ android:
before_script:
script:
- ./gradlew assembleRelease
- ./gradlew assembleFullRelease

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