You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Open the ios/Podfile config file in your preferred IDE.
52
-
1. Add the following lines to the beginning of this Podfile:
63
+
### iOS
53
64
54
-
```
55
-
# Set platform to 15.0 to enable latest Google Maps SDK
56
-
platform :ios, '15.0'
57
-
```
65
+
1. Open the ios/Podfile config file in your preferred IDE.
66
+
2. Add the following lines to the beginning of this Podfile:
58
67
59
-
3. Add your API key to the Flutter project using [these instructions for the corresponding Android (build.gradle) and iOS (AppDelegate.swift) files](https://developers.google.com/maps/flutter-package/config#step_4_add_your_api_key_to_the_project). The instructions for this step in the google_maps_flutter package documentation apply to the google_navigation_flutter package as well.
68
+
```
69
+
# Set platform to 15.0 to enable latest Google Maps SDK
70
+
platform :ios, '15.0'
71
+
```
72
+
73
+
### Set Google Maps API Key
74
+
75
+
Add your API key to the Flutter project using [these instructions for the corresponding Android (build.gradle) and iOS (AppDelegate.swift) files](https://developers.google.com/maps/flutter-package/config#step_4_add_your_api_key_to_the_project). The instructions for this step in the google_maps_flutter package documentation apply to the google_navigation_flutter package as well.
60
76
61
77
See the example configuration for Secrets Gradle Plugin in the example app's [build.gradle](./example/android/app/build.gradle) file.
62
78
To securely load your API key, use the [Secrets Gradle Plugin](https://developers.google.com/maps/documentation/android-sdk/secrets-gradle-plugin). This plugin helps manage API keys without exposing them in your app's source code.
This package uses the Google Maps [Navigation SDK](https://mapsplatform.google.com/maps-products/navigation-sdk/) for Android and iOS, which includes a dependency on the `Google Maps SDK`. If your project includes other flutter libraries with `Google Maps SDK` dependencies, you may encounter build errors due to version conflicts. To avoid this, it's recommended to avoid using multiple packages with Google Maps dependencies.
225
+
226
+
> [!NOTE]
227
+
> This package provides a `GoogleMapsMapView` widget, which can be used as a classic Google Maps view without navigation. See [Add a map view](#add-a-map-view) for details.
228
+
204
229
## Contributing
205
230
206
231
See the [Contributing guide](https://github.com/googlemaps/flutter-navigation-sdk/blob/main/CONTRIBUTING.md).
0 commit comments