AndroidAppTemplate icon indicating copy to clipboard operation
AndroidAppTemplate copied to clipboard

[WIP] Fixing pre-commit hook to re-add any changed version files.

Open AdamMc331 opened this issue 1 year ago • 1 comments

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.

AdamMc331 avatar Dec 20 '23 00:12 AdamMc331

1 Message
:book: Thanks @AdamMc331!

Generated by :no_entry_sign: Danger

github-actions[bot] avatar Dec 20 '23 02:12 github-actions[bot]

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 ^^

smartkanak avatar May 29 '24 19:05 smartkanak