- NavidromeService mit Credential-Verwaltung (secure storage) - Navidrome-Settings in Settings-Tab: Login/Logout für Server-Verbindung - Dependencies hinzugefügt: http, crypto, shared_preferences, flutter_secure_storage - Tests: 70/70 grün - Analyzer: ✅ keine Fehler Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XJzQjUtnvYUtHdnTs3iCru
37 lines
1.0 KiB
Bash
Executable File
37 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
# Git Pre-Commit Hook: Melo App Qualitäts-Gate
|
|
# Läuft automatisch vor jedem git commit
|
|
|
|
export FLUTTER="/home/dustin/development/flutter/bin/flutter"
|
|
export DART="/home/dustin/development/flutter/bin/dart"
|
|
export PATH="$HOME/development/flutter/bin:$PATH"
|
|
|
|
echo "🔍 Melo App Qualitäts-Gate gestartet..."
|
|
|
|
# 1. Dart Analyse
|
|
echo -n " Prüfe: flutter analyze ... "
|
|
cd "$(git rev-parse --show-toplevel)" || exit 1
|
|
ANALYZE_OUTPUT=$($FLUTTER analyze 2>&1)
|
|
if echo "$ANALYZE_OUTPUT" | grep -q "No issues found"; then
|
|
echo "✅"
|
|
else
|
|
echo "❌ FEHLER!"
|
|
echo "$ANALYZE_OUTPUT" | tail -20
|
|
exit 1
|
|
fi
|
|
|
|
# 2. Tests
|
|
echo -n " Prüfe: flutter test ... "
|
|
TEST_OUTPUT=$($FLUTTER test 2>&1)
|
|
if echo "$TEST_OUTPUT" | grep -q "All tests passed"; then
|
|
echo "✅"
|
|
elif echo "$TEST_OUTPUT" | grep -q "No tests found"; then
|
|
echo "⚠️ Keine Tests vorhanden (überspringe)"
|
|
else
|
|
echo "❌ Tests fehlgeschlagen!"
|
|
echo "$TEST_OUTPUT" | tail -20
|
|
exit 1
|
|
fi
|
|
|
|
echo "✅ Alle Prüfungen bestanden! Commit wird freigegeben."
|