feat: Streamline Google Maps API key retrieval and update Google Maps Flutter dependencies.
All checks were successful
Deploy Flutter to Firebase (Mac) / deploy-android (push) Successful in 2m48s

This commit is contained in:
Van Leemput Dayron
2025-12-30 16:56:13 +01:00
parent 4ef550f48b
commit 67a7d1ad2a
3 changed files with 9 additions and 16 deletions

View File

@@ -16,15 +16,6 @@ class ActivityPlacesService {
final ErrorService _errorService = ErrorService();
static String get _apiKey {
if (Platform.isAndroid) {
return dotenv.env['GOOGLE_MAPS_API_KEY_ANDROID'] ??
dotenv.env['GOOGLE_MAPS_API_KEY'] ??
'';
} else if (Platform.isIOS) {
return dotenv.env['GOOGLE_MAPS_API_KEY_IOS'] ??
dotenv.env['GOOGLE_MAPS_API_KEY'] ??
'';
}
return dotenv.env['GOOGLE_MAPS_API_KEY'] ?? '';
}