Add githook plugin (#398)
This commit is contained in:

committed by
Rafał Borcz

parent
6175081b88
commit
1d9a49d552
@ -6,6 +6,7 @@ apply plugin: 'io.fabric'
|
||||
apply plugin: 'com.github.triplet.play'
|
||||
apply from: 'jacoco.gradle'
|
||||
apply from: 'sonarqube.gradle'
|
||||
apply from: 'hooks.gradle'
|
||||
|
||||
android {
|
||||
compileSdkVersion 28
|
||||
|
10
app/hooks.gradle
Normal file
10
app/hooks.gradle
Normal file
@ -0,0 +1,10 @@
|
||||
apply plugin: "com.star-zero.gradle.githook"
|
||||
|
||||
githook {
|
||||
failOnMissingHooksDir = false
|
||||
hooks {
|
||||
"pre-push" {
|
||||
shell = "./app/play-publish-lint.sh"
|
||||
}
|
||||
}
|
||||
}
|
7
app/play-publish-lint.sh
Executable file
7
app/play-publish-lint.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash -
|
||||
|
||||
content=$(cat < "app/src/main/play/release-notes/pl-PL/default.txt") || exit
|
||||
if [[ "${#content}" -gt 500 ]]; then
|
||||
echo >&2 "Release notes content has reached the limit of 500 characters"
|
||||
exit 1
|
||||
fi
|
@ -2,7 +2,7 @@ Wersja 0.9.0
|
||||
|
||||
Dodaliśmy:
|
||||
- zarządzanie dostępem mobilnym do dziennika
|
||||
- wyświetlanie sumy punktów (jeśli dziennik obsługuje)
|
||||
- wyświetlanie sumy punktów
|
||||
- wyświetlanie informacji o wygasłej sesji, gdy zostanie zmienione hasło
|
||||
|
||||
Naprawiliśmy:
|
||||
|
Reference in New Issue
Block a user