fix: enhance missing Google Maps API key error message with debug details including available keys and platform information.
All checks were successful
Deploy Flutter to Firebase (Mac) / deploy-android (push) Successful in 2m53s
All checks were successful
Deploy Flutter to Firebase (Mac) / deploy-android (push) Successful in 2m53s
This commit is contained in:
@@ -116,7 +116,15 @@ class ActivityPlacesService {
|
||||
LoggerService.error(
|
||||
'ActivityPlacesService: Clé API Google Maps manquante',
|
||||
);
|
||||
throw Exception('Clé API Google Maps non configurée');
|
||||
// Debug: Lister les clés disponibles pour comprendre le problème
|
||||
final availableKeys = dotenv.env.keys.join(', ');
|
||||
throw Exception(
|
||||
'Clé API Google Maps non configurée. Clés disponibles: [$availableKeys]. Platform: ${Platform.isAndroid
|
||||
? 'Android'
|
||||
: Platform.isIOS
|
||||
? 'iOS'
|
||||
: 'Autre'}',
|
||||
);
|
||||
}
|
||||
|
||||
final encodedDestination = Uri.encodeComponent(destination);
|
||||
|
||||
@@ -92,8 +92,8 @@ flutter:
|
||||
|
||||
# To add assets to your application, add an assets section, like this:
|
||||
assets:
|
||||
- assets/icons/
|
||||
- .env
|
||||
- assets/icons/
|
||||
- .env
|
||||
#- assets/images/
|
||||
|
||||
# An image asset can refer to one or more resolution-specific "variants", see
|
||||
|
||||
Reference in New Issue
Block a user