Added android_hooks folder and gradle task to copy build scripts hooks to project hooks

This commit is contained in:
alex 2020-01-28 12:37:53 +03:00
parent 1f83bf5d08
commit 6c1b2cb7a5
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
task installGitHooks(type: Copy) {
from new File(buildScriptsDir, 'android_hooks')
into { new File(rootProject.rootDir, '.git/hooks') }
fileMode 0777
}
tasks.getByPath(':app:preBuild').dependsOn installGitHooks