Can I test the release version of your application with the Android Gradle plugin?

When I use the "gradlew connectedCheck" command, it always creates a debug version and checks the debug version of my application. Can I also test the version version of my application?

I want to enable proguard and want to make sure that it does not filter anything that is needed at runtime.

+7
android testing gradle
source share
1 answer

You can test only one type of assembly right now (although this may change).

To set the type of assembly to test:

android { testBuildType "release" } 

You can install this dynamically through env var so that there is no need to constantly edit build.gradle.

+17
source share

All Articles