summaryrefslogtreecommitdiff
path: root/platform/ios/app/MBXAppDelegate.m
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/app/MBXAppDelegate.m')
-rw-r--r--platform/ios/app/MBXAppDelegate.m48
1 files changed, 0 insertions, 48 deletions
diff --git a/platform/ios/app/MBXAppDelegate.m b/platform/ios/app/MBXAppDelegate.m
deleted file mode 100644
index bf62866b8e..0000000000
--- a/platform/ios/app/MBXAppDelegate.m
+++ /dev/null
@@ -1,48 +0,0 @@
-@import Mapbox;
-
-#import "MBXAppDelegate.h"
-#import "MBXViewController.h"
-
-@interface MBXAppDelegate() <MGLMetricsManagerDelegate>
-
-@end
-
-@implementation MBXAppDelegate
-
-- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
-{
-#ifndef MGL_DISABLE_LOGGING
- [MGLLoggingConfiguration sharedConfiguration].loggingLevel = MGLLoggingLevelFault;
-#endif
-
- [MGLMetricsManager sharedManager].delegate = self;
- return YES;
-}
-
-#pragma mark - Quick actions
-
-- (void)application:(UIApplication *)application performActionForShortcutItem:(UIApplicationShortcutItem *)shortcutItem completionHandler:(void (^)(BOOL))completionHandler {
- completionHandler([self handleShortcut:shortcutItem]);
-}
-
-- (BOOL)handleShortcut:(UIApplicationShortcutItem *)shortcut {
- if ([[shortcut.type componentsSeparatedByString:@"."].lastObject isEqual:@"settings"]) {
- dispatch_async(dispatch_get_main_queue(), ^{
- [[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
- });
-
- return YES;
- }
-
- return NO;
-}
-
-- (BOOL)metricsManager:(MGLMetricsManager *)metricsManager shouldHandleMetric:(MGLMetricType)metricType {
- return YES;
-}
-
-- (void)metricsManager:(MGLMetricsManager *)metricsManager didCollectMetric:(MGLMetricType)metricType withAttributes:(NSDictionary *)attributes {
- [[MGLMetricsManager sharedManager] pushMetric:metricType withAttributes:attributes];
-}
-
-@end