Commit 75659a3a authored by Vitaliy Vashchenko's avatar Vitaliy Vashchenko

Disabled assets optimization

parent 605386b7
...@@ -408,23 +408,23 @@ task prepareHdGraphicAssets(dependsOn: prepareHdAssets) { ...@@ -408,23 +408,23 @@ task prepareHdGraphicAssets(dependsOn: prepareHdAssets) {
} }
} }
} //optimizing for uploading } //optimizing for uploading
if (project.hasProperty('TABLEXIA_ASSETS_OPTIMIZE') && Boolean.valueOf(TABLEXIA_ASSETS_OPTIMIZE).booleanValue()) { // if (project.hasProperty('TABLEXIA_ASSETS_OPTIMIZE') && Boolean.valueOf(TABLEXIA_ASSETS_OPTIMIZE).booleanValue()) {
println "HD ASSETS OPTIMIZATION: ENABLED." // println "HD ASSETS OPTIMIZATION: ENABLED."
println "HD ASSETS OPTIMIZATION: START." // println "HD ASSETS OPTIMIZATION: START."
new File("${assetsDir.absolutePath}/${assetsDestinationDirName}/").eachDir() { dir -> // new File("${assetsDir.absolutePath}/${assetsDestinationDirName}/").eachDir() { dir ->
dir.eachFileRecurse() { file -> // dir.eachFileRecurse() { file ->
if (file.name.endsWith(".png") && !file.absolutePath.contains("excluded")) { // if (file.name.endsWith(".png") && !file.absolutePath.contains("excluded")) {
println "Optimizing: ${file.name}" // println "Optimizing: ${file.name}"
exec { // exec {
commandLine 'pngquant', '--ext', '.png', '--nofs', '-f', 256, file.absolutePath // commandLine 'pngquant', '--ext', '.png', '--nofs', '-f', 256, file.absolutePath
} // }
} // }
} // }
} // }
println "HD ASSETS OPTIMIZATION: FINISH." // println "HD ASSETS OPTIMIZATION: FINISH."
} else { // } else {
println "ASSETS OPTIMIZATION NOT CONFIGURED -> SKIPPING OPTIMIZATION" // println "ASSETS OPTIMIZATION NOT CONFIGURED -> SKIPPING OPTIMIZATION"
} // }
} else { } else {
println "HD PACK IS NOT REQUESTED" println "HD PACK IS NOT REQUESTED"
} }
......
Markdown is supported
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