blob: 55733442b4cfde9e318409b4da403961ad88ac74 [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#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