summaryrefslogtreecommitdiff
path: root/platform/darwin
diff options
context:
space:
mode:
authorJason Wray <friedbunny@users.noreply.github.com>2018-06-18 19:03:59 -0700
committerJulian Rex <julian.rex@mapbox.com>2018-06-18 22:39:39 -0400
commit4343ab936c833772f55873ac88b52ead45efe011 (patch)
tree65892a8070d68a4c166a4f8162bda1a833c0d031 /platform/darwin
parentfba8fd7d649e7384b926ec19e9887eaa5f9a093a (diff)
downloadqtlocation-mapboxgl-4343ab936c833772f55873ac88b52ead45efe011.tar.gz
[ios, build] Completely remove support for Fabric (#12106)upstream/jrex-cp-12106
Diffstat (limited to 'platform/darwin')
-rw-r--r--platform/darwin/src/MGLAccountManager.m36
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