From 5d891f5136d960ded174e45326385d658e39a6c2 Mon Sep 17 00:00:00 2001 From: Alf Watt Date: Thu, 6 Jun 2019 10:40:06 -0700 Subject: Explicitly use the shared manager instead of init --- platform/ios/src/MGLMapboxEvents.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/ios/src/MGLMapboxEvents.m b/platform/ios/src/MGLMapboxEvents.m index edf1dffa40..cc7390ac61 100644 --- a/platform/ios/src/MGLMapboxEvents.m +++ b/platform/ios/src/MGLMapboxEvents.m @@ -45,7 +45,7 @@ static NSString * const MGLVariableGeofence = @"VariableGeofence"; - (instancetype)init { self = [super init]; if (self) { - _eventsManager = [[MMEEventsManager alloc] init]; + _eventsManager = MMEEventsManager.sharedManager; _eventsManager.debugLoggingEnabled = [[NSUserDefaults standardUserDefaults] boolForKey:MGLMapboxMetricsDebugLoggingEnabled]; _eventsManager.accountType = [[NSUserDefaults standardUserDefaults] integerForKey:MGLMapboxAccountType]; _eventsManager.metricsEnabled = [[NSUserDefaults standardUserDefaults] boolForKey:MGLMapboxMetricsEnabled]; -- cgit v1.2.1