feat(navidrome): Musikserver-Integration (Subsonic API)
- 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
This commit is contained in:
co-authored by
Claude Haiku 4.5
parent
2163c83409
commit
06be0a7065
Executable
+36
@@ -0,0 +1,36 @@
|
||||
#!/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."
|
||||
Reference in New Issue
Block a user