diff options
author | Jason Wray <friedbunny@users.noreply.github.com> | 2018-06-18 19:03:59 -0700 |
---|---|---|
committer | Julian Rex <julian.rex@gmail.com> | 2018-06-18 22:03:59 -0400 |
commit | b84a184d2ddc496908506c9c69ed6b4778213077 (patch) | |
tree | 6f512a6e237bcfe862af4fd80762515ce6fb6505 /platform/darwin | |
parent | 87143a355d12fa4bfd3f094e187a8bab8148e7de (diff) | |
download | qtlocation-mapboxgl-b84a184d2ddc496908506c9c69ed6b4778213077.tar.gz |
[ios, build] Completely remove support for Fabric (#12106)
Diffstat (limited to 'platform/darwin')
-rw-r--r-- | platform/darwin/src/MGLAccountManager.m | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/platform/darwin/src/MGLAccountManager.m b/platform/darwin/src/MGLAccountManager.m index 13cbebf9fd..4a3f698427 100644 --- a/platform/darwin/src/MGLAccountManager.m +++ b/platform/darwin/src/MGLAccountManager.m @@ -5,10 +5,7 @@ #if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR #import "MGLMapboxEvents.h" -#import "FABKitProtocol.h" -#import "Fabric+FABKits.h" - -@interface MGLAccountManager () <FABKit> +@interface MGLAccountManager () @property (atomic) NSString *accessToken; @@ -74,35 +71,4 @@ return [MGLAccountManager sharedManager].accessToken; } -#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR - -#pragma mark - Fabric - -+ (NSString *)bundleIdentifier { - return [NSBundle mgl_frameworkBundleIdentifier]; -} - -+ (NSString *)kitDisplayVersion { - return [NSBundle mgl_frameworkInfoDictionary][@"CFBundleShortVersionString"]; -} - -+ (void)initializeIfNeeded { - Class fabric = NSClassFromString(@"Fabric"); - - if (fabric) { - NSDictionary *configuration = [fabric configurationDictionaryForKitClass:[MGLAccountManager class]]; - if (!configuration || !configuration[@"accessToken"]) { - NSLog(@"Configuration dictionary returned by Fabric was nil or doesn’t have accessToken. Can’t initialize MGLAccountManager."); - return; - } - [self setAccessToken:configuration[@"accessToken"]]; - MGLAccountManager *sharedAccountManager = [self sharedManager]; - NSLog(@"MGLAccountManager was initialized with access token: %@", sharedAccountManager.accessToken); - } else { - NSLog(@"MGLAccountManager is used in a project that doesn’t have Fabric."); - } -} - -#endif - @end |