ensure ‘switchToFree’ gets run before generating PNGs

The assemble.depends on doens’t seem to ensure that the correct sources are copied to the HTML5 directory
This commit is contained in:
Chris Garrity 2019-10-18 10:55:27 -04:00
parent 564dc296d3
commit 1be3feb791

View file

@ -91,13 +91,14 @@ class CleanScratchJrResourcesTask extends DefaultTask {
task generateScratchJrPNGs(type: GenerateScratchJrPNGsTask)
task cleanScratchJrResources(type: CleanScratchJrResourcesTask)
assemble.dependsOn switchToFree
afterEvaluate {
preBuild.dependsOn generateWebpackBundle
processFreeDebugGoogleServices.dependsOn switchToFreeGA
processFreeReleaseGoogleServices.dependsOn switchToFreeGA
generateFreeReleaseResources.dependsOn switchToFree
generateFreeDebugResources.dependsOn switchToFree
generateFreeReleaseResources.dependsOn generateScratchJrPNGs
generateFreeDebugResources.dependsOn generateScratchJrPNGs
generateScratchJrPNGs.mustRunAfter switchToFree