AndroidAppTemplate
AndroidAppTemplate copied to clipboard
[WIP] Fixing pre-commit hook to re-add any changed version files.
Summary
After sortDependencies, we need to add any files if they were changed.
How It Was Tested
Tweaked a gradle file, ran the pre-commit hook, verified that everything got added as we expected.
Are githooks installed automatically on project startup or only if "./gradlew clean" is run?
Couldn't accomplish this with just this setting:
afterEvaluate {
// We install the hook at the first occasion
tasks.named("clean") {
dependsOn(":installGitHooks")
}
}
I wonder how the task "installGitHooks" can be run immediately on first project startup on an IDE.
And what impact do these lines have? Any on hooks installation?
tasks.register("clean", Delete::class) {
delete(rootProject.layout.buildDirectory)
}
Couldn't find any "discussions" thread, so I tried to start a conversation here, sorry ^^