title: Create pre build event to copy files to assets folder in Android application
body: <p>I have this project structure:
  <strong>ProjectFolder/IosFolder,AndroidFolder,CommonFolder</strong>
  Now android app uses files from it's assets folder.
  But we decide to make Common folder for the same files.</p>
  
  <p>Could you help me to make function witch will copy files from <strong>Common</strong> folder(this folder is under my project, so in Android Studio I don't see it) to android <strong>assets</strong> folder before app will be built?</p>
  
  <p>In Common folder will be some .json files and font files.</p>
  
  <p>As I understand, i need to write this function in my build.gradle file
  something like that:</p>
  
  <pre><code>task copyFiles(type: Copy)
  
      copyFiles {
          description = 'Copy files'
          from 'Common/'
          into 'Android/{projectName}/app/src/main/assets'
      }
  </code></pre>
  
  <p>Here is my file:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  repositories {
      mavenCentral()
  }
  
  android {
      compileSdkVersion 23
      buildToolsVersion "23.0.2"
  
      defaultConfig {
          applicationId "amc.amc_mobile_promo2"
          minSdkVersion 17
          targetSdkVersion 23
          versionCode 1
          versionName "1.0"
          //For Flurry
          multiDexEnabled = true
      }
      //For Flurry
      /*compileOptions {
          //noinspection GroovyAssignabilityCheck
          sourceCompatibility JavaVersion.VERSION_1_7
          //noinspection GroovyAssignabilityCheck
          targetCompatibility JavaVersion.VERSION_1_7
      }*/
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
  
      compile 'com.android.support:support-v4:23.1.1'
      compile 'com.android.support:appcompat-v7:23.1.1'
  
      compile 'com.facebook.android:facebook-android-sdk:4.7.0'
      compile 'com.mcxiaoke.volley:library:1.0.19'
      compile 'joda-time:joda-time:2.8.2'
      compile 'com.github.orangegangsters:swipy:1.2.0@aar'
  
      compile 'com.squareup.picasso:picasso:2.5.2'
      compile 'com.squareup.okhttp:okhttp:2.6.0'
      compile 'com.squareup.okhttp:okhttp-urlconnection:2.6.0'
  
      /*compile 'com.android.support:multidex:1.0.1'
      compile 'com.google.android.gms:play-services-ads:8.3.0'
      compile 'com.google.android.gms:play-services-identity:8.3.0'
      compile 'com.google.android.gms:play-services-gcm:8.3.0'*/
  }
  </code></pre>
  
  <p>And could you tell me where can i see results of executed methods in Gradle Console?</p>
  
  <p>What path i need to use and where in build.gradle file situate this method?</p>
  
  <p>Hope you will help me.</p>