Skip to content

Instantly share code, notes, and snippets.

@StuStirling
Created April 24, 2018 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StuStirling/555055f04807c331224848661a233d82 to your computer and use it in GitHub Desktop.
Save StuStirling/555055f04807c331224848661a233d82 to your computer and use it in GitHub Desktop.
Android Prebuild Task
task copyFiles(type: Copy) {
from "$projectDir/src/flavorDevelop/cpp/"
into "$projectDir/src/develop/cpp/"
}
tasks.whenTaskAdded { task ->
if (task.name == 'preFlavorDevelopDebugBuild') {
task.dependsOn copyFiles
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment