- 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
44 lines
1.4 KiB
Plaintext
44 lines
1.4 KiB
Plaintext
# 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
|