first commit

This commit is contained in:
DahoudG
2025-08-20 21:00:35 +00:00
commit b2a23bdf89
583 changed files with 243074 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
# Script de réparation et test
Write-Host "🔧 Réparation des problèmes Android/Gradle..." -ForegroundColor Cyan
Write-Host "1. Nettoyage Flutter..." -ForegroundColor Yellow
flutter clean
Write-Host "2. Suppression du cache Gradle..." -ForegroundColor Yellow
if (Test-Path "$env:USERPROFILE\.gradle\caches") {
Remove-Item "$env:USERPROFILE\.gradle\caches" -Recurse -Force -ErrorAction SilentlyContinue
}
Write-Host "3. Suppression des fichiers de build Android..." -ForegroundColor Yellow
if (Test-Path "android\.gradle") {
Remove-Item "android\.gradle" -Recurse -Force -ErrorAction SilentlyContinue
}
if (Test-Path "android\app\build") {
Remove-Item "android\app\build" -Recurse -Force -ErrorAction SilentlyContinue
}
Write-Host "4. Récupération des dépendances..." -ForegroundColor Yellow
flutter pub get
Write-Host "5. S'assurer qu'on utilise la version temporaire..." -ForegroundColor Yellow
Copy-Item "lib\main_temp.dart" "lib\main.dart" -Force
Write-Host "✅ Réparation terminée!" -ForegroundColor Green
Write-Host ""
Write-Host "🚀 Essayez maintenant:" -ForegroundColor Cyan
Write-Host " flutter run --verbose" -ForegroundColor White
Write-Host ""
Write-Host "💡 Si ça ne marche toujours pas, essayez:" -ForegroundColor Blue
Write-Host " flutter run -d chrome (pour tester sur web)" -ForegroundColor Gray
Write-Host " flutter doctor (pour diagnostiquer)" -ForegroundColor Gray
Write-Host ""
Write-Host "🔑 Identifiants de test:" -ForegroundColor Magenta
Write-Host " 📧 Email: admin@unionflow.dev" -ForegroundColor White
Write-Host " 🔑 Mot de passe: admin123" -ForegroundColor White