blob: 6896c5c190b1e08d1719eefc863aa0b3b064f8cc [file] [log] [blame]
#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