是否可以使用Android Gradle插件针对您的应用的发布版本进行测试? [英] Is it possible to test against the release version of your app with Android Gradle plugin?
问题描述
当我使用'gradlew connectedCheck'命令时,它总是构建调试版本并测试我的应用程序的调试版本。是否也可以测试我的应用程序的发布版本?
我想启用proguard并希望确保它不会过滤任何需要的内容在运行期间。
您现在只能测试一种构建类型(尽管可能会改变)。 b
设置构建类型以测试:
android {
testBuildTyperelease
您可以通过env var动态设置它,无需编辑构建。所有的时间。
When I use the 'gradlew connectedCheck' command it always build the debug version and test against the debug version of my app. Is it also possible to test against the release version of my app?
I want to enable proguard and want to make sure that it doesn't filter anything out that is needed during runtime.
You can only test against a single build type right now (though that may change).
To set the build type to test against:
android {
testBuildType "release"
}
You could set this dynamically through a env var to not have to edit build.gradle all the time.
这篇关于是否可以使用Android Gradle插件针对您的应用的发布版本进行测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!