From d61d843f56bf06bc0fbf159a1b8a8ef4b4e5d2b0 Mon Sep 17 00:00:00 2001 From: John Ryan Date: Tue, 18 Aug 2020 21:46:49 -0700 Subject: [PATCH] Update place_tracker README (#530) --- place_tracker/README.md | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/place_tracker/README.md b/place_tracker/README.md index 0b9fe3d49..2c0a2ea83 100644 --- a/place_tracker/README.md +++ b/place_tracker/README.md @@ -1,11 +1,10 @@ # Place Tracker -A sample place tracking app that uses the [google_maps_flutter](https://github.com/flutter/plugins/tree/master/packages/google_maps_flutter) plugin. -Keep track of your favorite places, places you've visited, and places you want to go. View details -about these places, show them on a map, and get directions to them. - -**This sample is not currently in a finished state. We're in the process -of building it out. This sample currently only works on Android (see Caveat below).** +A sample place tracking app that uses the +[google_maps_flutter](https://github.com/flutter/plugins/tree/master/packages/google_maps_flutter) +plugin. Keep track of your favorite places, places you've visited, and places +you want to go. View details about these places, show them on a map, and get +directions to them. ## Goals @@ -34,6 +33,7 @@ To run this sample app, you will need an API key. Get an API key at . +### Android Specify your API key in the application manifest `android/app/src/main/AndroidManifest.xml`: @@ -44,6 +44,23 @@ Specify your API key in the application manifest android:value="YOUR KEY HERE"/> ``` +### iOS +Specify your API key in `AppDelegate.swift`: + +```swift +@UIApplicationMain +@objc class AppDelegate: FlutterAppDelegate { + override func application( + _ application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? + ) -> Bool { + GMSServices.provideAPIKey("YOUR API KEY HERE") + GeneratedPluginRegistrant.register(with: self) + return super.application(application, didFinishLaunchingWithOptions: launchOptions) + } +} +``` + For additional help setting up the plugin, see the plugin's [README](https://pub.dev/packages/google_maps_flutter) page. @@ -55,13 +72,6 @@ For help getting started with Flutter, view our online The google_maps_flutter plugin is in developer preview until [dynamic thread merging](https://github.com/flutter/flutter/projects/155) is finished. -* Dart APIs for controlling and interacting with a GoogleMap view from Flutter - code are still being consolidated and expanded. The intention is to grow - current coverage into a complete offering. Issues and pull requests aimed to - help us prioritize and speed up this effort are very welcome. -* Currently the plugin only supports Android as it embeds a platform view in the - Flutter hierarchy which is currently only supported for Android ([tracking - issue](https://github.com/flutter/flutter/issues/19030)). ## Questions/issues