feat(build): Scripts et configuration pour build production

- Ajout de scripts PowerShell et Bash pour build automatisé
- Configuration pour connexion à l'API production (api.lions.dev/afterwork)
- Documentation complète dans BUILD_CONFIG.md
- Fichier .env.example pour référence
- Support pour APK, App Bundle, iOS et Web
This commit is contained in:
dahoud
2026-01-10 16:28:33 +00:00
parent 173cfcd9ab
commit 23579533b2
4 changed files with 517 additions and 0 deletions

43
.env.example Normal file
View File

@@ -0,0 +1,43 @@
# Configuration de l'environnement AfterWork
# Copiez ce fichier en .env et personnalisez les valeurs
# ====================================================================
# API CONFIGURATION
# ====================================================================
# URL de base de l'API backend
# Development: http://192.168.1.145:8080
# Production: https://api.lions.dev/afterwork
API_BASE_URL=https://api.lions.dev/afterwork
# Timeout pour les requêtes réseau (en secondes)
NETWORK_TIMEOUT=30
# ====================================================================
# ENVIRONMENT
# ====================================================================
# Environnement d'exécution: development, staging, production
ENVIRONMENT=production
# Mode debug (true/false)
DEBUG_MODE=false
# ====================================================================
# SERVICES EXTERNES (Optionnel)
# ====================================================================
# Clé API Google Maps (si nécessaire)
# GOOGLE_MAPS_API_KEY=votre_cle_api_google_maps
# ====================================================================
# NOTES
# ====================================================================
# Pour utiliser ces variables lors du build:
# flutter build apk --dart-define-from-file=.env
# Ou spécifier individuellement:
# flutter build apk \
# --dart-define=API_BASE_URL=https://api.lions.dev/afterwork \
# --dart-define=ENVIRONMENT=production