# Script pour lancer l'application AfterWork sur Samsung Write-Host "=== LANCEMENT AFTERWORK SUR SAMSUNG ===" -ForegroundColor Cyan Write-Host "" # Vérifier que nous sommes dans le bon répertoire $currentDir = Get-Location if (-not (Test-Path "pubspec.yaml")) { Write-Host "❌ Erreur: pubspec.yaml introuvable" -ForegroundColor Red Write-Host "Répertoire actuel: $currentDir" -ForegroundColor Yellow Write-Host "Exécutez ce script depuis: C:\Users\dadyo\PersonalProjects\lions-workspace\afterwork" -ForegroundColor Yellow exit 1 } Write-Host "✅ Répertoire correct: $currentDir" -ForegroundColor Green Write-Host "" # Vérifier que le Samsung est connecté Write-Host "🔍 Vérification des appareils connectés..." -ForegroundColor Yellow $devices = flutter devices 2>&1 | Out-String if ($devices -match "R58R34HT85V") { Write-Host "✅ Samsung SM A725F connecté" -ForegroundColor Green } else { Write-Host "❌ Samsung non détecté" -ForegroundColor Red Write-Host "Connectez votre Samsung et autorisez le débogage USB" -ForegroundColor Yellow exit 1 } Write-Host "" Write-Host "🚀 Lancement de l'application..." -ForegroundColor Cyan Write-Host "⏳ Le build peut prendre 3-5 minutes..." -ForegroundColor Yellow Write-Host "" # Lancer l'application flutter run -d R58R34HT85V