Skip to content
Snippets Groups Projects
Commit 96e8cad1 authored by Matyáš Latner's avatar Matyáš Latner
Browse files

#14 Gradle task for removing old zipped assets

parent cece8655
Branches
Tags
No related merge requests found
......@@ -62,7 +62,15 @@ def getVersionCodeFromGit() {
return stdout.toString().trim().toInteger()
}
task zipAssets(type:Zip) {
task deleteZips(type: Delete) {
new File(project(":android").projectDir.absolutePath + "/assets/").eachFile() { file ->
if (file.getName().endsWith(".zip")) {
delete file.absolutePath
}
}
}
task zipAssets(type:Zip, dependsOn: deleteZips) {
new File(project(":core").projectDir.absolutePath + "/assets").eachDir() { dir ->
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment