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'] ?? '';
}

View File

@@ -713,13 +713,13 @@ packages:
source: hosted
version: "2.13.1"
google_maps_flutter_android:
dependency: transitive
dependency: "direct main"
description:
name: google_maps_flutter_android
sha256: f820a3990d4ff23e3baf01ce794f7f08cca9a9ce6c875ec96882d605f6f039df
sha256: "3835f6ae5e8b8d4d454d913575069513c9f216e088b87aa5c18cb3610951c6b4"
url: "https://pub.dev"
source: hosted
version: "2.18.4"
version: "2.18.6"
google_maps_flutter_ios:
dependency: transitive
description:
@@ -729,13 +729,13 @@ packages:
source: hosted
version: "2.15.5"
google_maps_flutter_platform_interface:
dependency: transitive
dependency: "direct main"
description:
name: google_maps_flutter_platform_interface
sha256: f4b9b44f7b12a1f6707ffc79d082738e0b7e194bf728ee61d2b3cdf5fdf16081
sha256: e8b1232419fcdd35c1fdafff96843f5a40238480365599d8ca661dde96d283dd
url: "https://pub.dev"
source: hosted
version: "2.14.0"
version: "2.14.1"
google_maps_flutter_web:
dependency: transitive
description:

View File

@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 2025.12.1+2
version: 2025.12.1+3
environment:
sdk: ^3.9.2
@@ -64,6 +64,8 @@ dependencies:
firebase_messaging: ^16.0.4
flutter_local_notifications: ^19.5.0
package_info_plus: ^8.3.1
google_maps_flutter_platform_interface: ^2.14.1
google_maps_flutter_android: ^2.18.6
dev_dependencies:
flutter_launcher_icons: ^0.13.1