| #import "AppDelegate.h" |
| #import "GeneratedPluginRegistrant.h" |
| |
| @import GoogleMaps; |
| |
| @implementation AppDelegate |
| |
| - (BOOL)application:(UIApplication*)application |
| didFinishLaunchingWithOptions:(NSDictionary*)launchOptions { |
| // Provide the GoogleMaps API key. |
| NSString* mapsApiKey = [[NSProcessInfo processInfo] environment][@"MAPS_API_KEY"]; |
| if ([mapsApiKey length] == 0) { |
| mapsApiKey = @"YOUR KEY HERE"; |
| } |
| [GMSServices provideAPIKey:mapsApiKey]; |
| |
| // Register Flutter plugins. |
| [GeneratedPluginRegistrant registerWithRegistry:self]; |
| |
| return [super application:application didFinishLaunchingWithOptions:launchOptions]; |
| } |
| |
| @end |