diff options
author | Randall C Lee <randall.lee@mapbox.com> | 2018-02-05 16:17:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-05 16:17:57 -0500 |
commit | 332dad2a4e002b1856ea072d6af22c9e501a55fd (patch) | |
tree | 9b60d2e6bb69825c77e81f373e68e7c1e9955922 /platform/ios/src/MGLMapboxEvents.m | |
parent | 0742f7fb66f832ffae4d96fa430a691e53a0c32d (diff) | |
download | qtlocation-mapboxgl-332dad2a4e002b1856ea072d6af22c9e501a55fd.tar.gz |
[ios] Add Radius Configuration (#11070)
* Add Radius Configuration
* Remove default config
- removes default configuration
- moves config setup to events init method
- renames config class
* Delete MGLConfig header file
Diffstat (limited to 'platform/ios/src/MGLMapboxEvents.m')
-rw-r--r-- | platform/ios/src/MGLMapboxEvents.m | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/ios/src/MGLMapboxEvents.m b/platform/ios/src/MGLMapboxEvents.m index d59972f5bf..273af5b3bc 100644 --- a/platform/ios/src/MGLMapboxEvents.m +++ b/platform/ios/src/MGLMapboxEvents.m @@ -6,6 +6,7 @@ #import "NSException+MGLAdditions.h" #import "MGLAPIClient.h" #import "MGLLocationManager.h" +#import "MGLTelemetryConfig.h" #include <mbgl/storage/reachability.h> #include <sys/sysctl.h> @@ -172,6 +173,8 @@ const NSTimeInterval MGLFlushInterval = 180; - (instancetype) init { self = [super init]; if (self) { + [MGLTelemetryConfig.sharedConfig configurationFromKey:[[NSUserDefaults standardUserDefaults] objectForKey:MGLMapboxMetricsProfile]]; + _currentAccountTypeValue = @0; _currentMetricsEnabledValue = YES; |