gradle-spoon-plugin
gradle-spoon-plugin copied to clipboard
Test apk for library is installed twice
There is this code in your plugin
// This is a hack for library projects.
// We supply the same apk as an application and instrumentation to the soon runner.
applicationApk = if (testedOutput is ApkVariantOutput) testedOutput.outputFile else instrumentationApk
and it causes to install twice same apk if we are testing library which slows down whole execution. What is the reason of this hack?
This code just checks which APK is used. How is it installed twice?
Spoon installs applicationApk and and instrumentationApk - for library this is the same apk so it installs it twice
We can add a check and only run this for com.android.library
projects.