diff --git a/gradle/installGitHooks.gradle b/gradle/installGitHooks.gradle new file mode 100644 index 0000000..8f1ebc4 --- /dev/null +++ b/gradle/installGitHooks.gradle @@ -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