From 341bf1aff89a3e5efc340bc2df88182e0d8a56ff Mon Sep 17 00:00:00 2001 From: raksa Date: Tue, 22 Dec 2015 13:54:09 +0700 Subject: [PATCH] reprepare assets on rebuild --- .../proj.android-studio/app/build.gradle | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/templates/cpp-template-default/proj.android-studio/app/build.gradle b/templates/cpp-template-default/proj.android-studio/app/build.gradle index 5917c7d6ba..36f0b05be7 100644 --- a/templates/cpp-template-default/proj.android-studio/app/build.gradle +++ b/templates/cpp-template-default/proj.android-studio/app/build.gradle @@ -47,3 +47,14 @@ dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile project(':libcocos2dx') } + +task cleanAssets(type: Delete) { + delete 'assets' +} +task copyAssets(type: Copy) { + from '../../Resources' + into 'assets' +} + +clean.dependsOn cleanAssets +preBuild.dependsOn copyAssets