autonomousapps / Cappuccino

A sweeter Espresso. Never write your own IdlingResource again. Never manually turn off system animations again.
Apache License 2.0
254 stars 20 forks source link

Setting android permission for SET_ANIMATION_SCALE is not possible anymore #12

Open MartyCatawiki opened 5 years ago

MartyCatawiki commented 5 years ago

Hi adding <uses-permission android:name="android.permission.SET_ANIMATION_SCALE"/> to the debug\AndroidManifest.xml does not work anymore. It shows the following error: Permissions with the protection level signature, privileged or signatureOrSystem are only granted to system apps. If an app is a regular non-system app, it will never be able to use these permissions

meesec commented 4 years ago

try adding testOptions { animationsDisabled true } in your build.gradle, but be aware that this will only have an effect when running tests from the command line.