From 002c0213193f6dd8c972c9c40625b7f54b80a4c7 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Wed, 28 Oct 2026 13:40:46 +0100 Subject: [PATCH] library hash check is extracted to daily check on server Signed-off-by: tobiasKaminsky --- scripts/analysis/detectWrongSettings.sh | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/scripts/analysis/detectWrongSettings.sh b/scripts/analysis/detectWrongSettings.sh index d9ae88c323f3..31a8b45090fa 100755 --- a/scripts/analysis/detectWrongSettings.sh +++ b/scripts/analysis/detectWrongSettings.sh @@ -7,23 +7,6 @@ snapshotCount=$(./gradlew dependencies | grep SNAPSHOT -c) betaCount=$(grep "true" app/src/main/res/values/setup.xml -c) -# Read androidLibraryVersion from TOML -libraryHash=$(grep 'androidLibraryVersion =' gradle/libs.versions.toml \ - | cut -d '=' -f2 \ - | tr -d ' "' ) - -baseBranch="master" - -# Fetch last 10 commit SHAs from GitHub, without quotes -lastHashes=$(curl -s "https://api.github.com/repos/nextcloud/android-library/commits?sha=$baseBranch" \ - | jq -r '.[].sha' | head -n 10) - -# Check if libraryHash is in lastHashes -if ! echo "$lastHashes" | grep -q "^$libraryHash$"; then - echo "Library commit not within last 10 hashes, please rebase!" - exit 1 -fi - if [[ $snapshotCount -gt 0 ]] ; then echo "Snapshot found in dependencies" exit 1