summaryrefslogtreecommitdiff
path: root/test/ios/MGLTAppDelegate.m
blob: bbd67821fec6939be271bd171e8098198500976e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#import "MGLTAppDelegate.h"
#import "MGLTViewController.h"
#import "MapboxGL.h"

@implementation MGLTAppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    UINavigationController *wrapper = [[UINavigationController alloc] initWithRootViewController:[MGLTViewController new]];
    self.window.rootViewController = wrapper;
    wrapper.navigationBarHidden = YES;
    wrapper.toolbarHidden = YES;
    [self.window makeKeyAndVisible];

    [MGLAccountManager setMapboxMetricsEnabledSettingShownInApp:YES]; // a lie, but a convenient one

    return YES;
}

@end