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

Disabled assets optimization

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