Open OleksandrKucherenko opened 6 years ago
// create a copy of APK with a default name for SPOON plugin
def taskName = "copyApk${flavorName}${buildType.capitalize()}"
project.task(taskName, type: Copy) {
description = "Make copy of APK with a default name for making SPOON plugin happy"
group = "workaround"
from output.outputFile.absolutePath
into "${file.parent}"
rename '.*\\.apk', "${file.name}"
}
tasks.matching { it.name.equalsIgnoreCase("assemble${flavorName}${buildType}") }.each {
it.finalizedBy taskName
}
declaration of task
This plugin is wonderful. Except this one feature is missing. +1 for this
command:
./gradlew assembleDebug taskTree --no-repeat
Output:
Expected: copyApkDebug will be displayed in Tree