feat: Version 3.6.2 - Correctifs tâches #17-20

- #17: Amélioration gestion des secteurs et statistiques
- #18: Optimisation services API et logs
- #19: Corrections Flutter widgets et repositories
- #20: Fix création passage - détection automatique ope_users.id vs users.id

Suppression dossier web/ (migration vers app Flutter)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-16 14:11:15 +01:00
parent 7b78037175
commit 232940b1eb
196 changed files with 8483 additions and 7966 deletions

View File

@@ -26,19 +26,52 @@ if [ ! -f "pubspec.yaml" ]; then
exit 1
fi
# Récupérer la version depuis pubspec.yaml
VERSION=$(grep "^version:" pubspec.yaml | sed 's/version: //' | tr -d ' ')
VERSION_CODE=$(echo $VERSION | cut -d'+' -f2)
# Synchroniser la version depuis ../VERSION
echo -e "${BLUE}📋 Synchronisation de la version depuis ../VERSION...${NC}"
echo ""
if [ -z "$VERSION_CODE" ]; then
echo -e "${RED}Impossible de récupérer le version code depuis pubspec.yaml${NC}"
VERSION_FILE="../VERSION"
if [ ! -f "$VERSION_FILE" ]; then
echo -e "${RED}Erreur: Fichier VERSION introuvable : $VERSION_FILE${NC}"
exit 1
fi
echo -e "${YELLOW}Version détectée :${NC} $VERSION"
echo -e "${YELLOW}Version code :${NC} $VERSION_CODE"
# Lire la version depuis le fichier (enlever espaces/retours à la ligne)
VERSION_NUMBER=$(cat "$VERSION_FILE" | tr -d '\n\r ' | tr -d '[:space:]')
if [ -z "$VERSION_NUMBER" ]; then
echo -e "${RED}Erreur: Le fichier VERSION est vide${NC}"
exit 1
fi
echo -e "${YELLOW}Version lue depuis $VERSION_FILE :${NC} $VERSION_NUMBER"
# Calculer le versionCode (supprimer les points)
VERSION_CODE=$(echo $VERSION_NUMBER | tr -d '.')
if [ -z "$VERSION_CODE" ]; then
echo -e "${RED}Erreur: Impossible de calculer le versionCode${NC}"
exit 1
fi
echo -e "${YELLOW}Version code calculé :${NC} $VERSION_CODE"
# Mettre à jour pubspec.yaml
echo -e "${BLUE}Mise à jour de pubspec.yaml...${NC}"
sed -i.bak "s/^version:.*/version: $VERSION_NUMBER+$VERSION_CODE/" pubspec.yaml
# Vérifier que la mise à jour a réussi
UPDATED_VERSION=$(grep "^version:" pubspec.yaml | sed 's/version: //' | tr -d ' ')
if [ "$UPDATED_VERSION" != "$VERSION_NUMBER+$VERSION_CODE" ]; then
echo -e "${RED}Erreur: Échec de la mise à jour de pubspec.yaml${NC}"
echo -e "${RED}Attendu : $VERSION_NUMBER+$VERSION_CODE${NC}"
echo -e "${RED}Obtenu : $UPDATED_VERSION${NC}"
exit 1
fi
echo -e "${GREEN}✓ pubspec.yaml mis à jour : version: $VERSION_NUMBER+$VERSION_CODE${NC}"
echo ""
VERSION="$VERSION_NUMBER+$VERSION_CODE"
# Construire le chemin de destination avec numéro de version
DESTINATION_DIR="app_$VERSION_CODE"
DESTINATION="$MAC_USER@$MAC_MINI_IP:/Users/pierre/dev/geosector/$DESTINATION_DIR"
@@ -56,6 +89,7 @@ echo -e "${BLUE}rsync va créer le dossier de destination automatiquement${NC}"
echo ""
rsync -avz --progress \
-e "ssh -o IdentitiesOnly=yes -o PubkeyAuthentication=no -o PreferredAuthentications=password" \
--rsync-path="mkdir -p /Users/pierre/dev/geosector/$DESTINATION_DIR && rsync" \
--exclude='build/' \
--exclude='.dart_tool/' \