build.gradle copies AAR files to libs/

This commit is contained in:
luncliff 2020-11-17 20:26:12 +09:00
parent cc0197964f
commit 59d29bd2a4

View File

@ -117,4 +117,16 @@ assemble.doLast
// Remove empty directory
delete "${rootDir}/libs/debug/obj"
delete "${rootDir}/libs/release/obj"
// Copy AAR files. Notice that the aar is named after the folder of this script.
copy {
from "build/outputs/aar/support-release.aar"
into "${rootDir}/libs"
rename "support-release.aar", "fmt-release.aar"
}
copy {
from "build/outputs/aar/support-debug.aar"
into "${rootDir}/libs"
rename "support-debug.aar", "fmt-debug.aar"
}
}