diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2019-08-09 20:02:46 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2019-09-09 16:35:54 +0300 |
commit | 645b7ac160a67703da854c14098d9f8606b3307c (patch) | |
tree | 6c57c91ad27cb197c9640dfa6897bbb7035d2562 | |
parent | b417586d9279eb94fa8f4e62603233371aadb597 (diff) | |
download | qtlocation-mapboxgl-645b7ac160a67703da854c14098d9f8606b3307c.tar.gz |
[build] FIXME: iOS hacks
-rw-r--r-- | platform/darwin/src/MGLAccountManager.m | 3 | ||||
-rw-r--r-- | platform/ios/app/MBXAppDelegate.m | 4 | ||||
-rw-r--r-- | platform/ios/src/MGLMapboxEvents.m | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/platform/darwin/src/MGLAccountManager.m b/platform/darwin/src/MGLAccountManager.m index c37195967a..f87b446945 100644 --- a/platform/darwin/src/MGLAccountManager.m +++ b/platform/darwin/src/MGLAccountManager.m @@ -104,7 +104,8 @@ NSString * const MGLMapboxAccountTypeKey = @"MGLMapboxAccountType"; return (NSString *)[mbx valueForKeyPath:MGLAccountManagerExternalMethodName]; } - return MBXSKUToken.skuToken; + //return MBXSKUToken.skuToken; + return @""; } #endif diff --git a/platform/ios/app/MBXAppDelegate.m b/platform/ios/app/MBXAppDelegate.m index 519c70766a..d97b1ebf34 100644 --- a/platform/ios/app/MBXAppDelegate.m +++ b/platform/ios/app/MBXAppDelegate.m @@ -15,6 +15,10 @@ #endif [MGLMetricsManager sharedManager].delegate = self; + + // Temporary key created just for this hack + [MGLAccountManager setAccessToken:@"pk.eyJ1IjoidG1wc2FudG9zIiwiYSI6ImNqeXY0MTJ5ejBrNHMzYm40eTBtaTc5YncifQ.jb6YkzCG4QpJon7mdc4giA"]; + return YES; } diff --git a/platform/ios/src/MGLMapboxEvents.m b/platform/ios/src/MGLMapboxEvents.m index 808c3a88bf..8470f1edf7 100644 --- a/platform/ios/src/MGLMapboxEvents.m +++ b/platform/ios/src/MGLMapboxEvents.m @@ -147,7 +147,7 @@ static NSString * const MGLAPIClientUserAgentBase = @"mapbox-maps-ios"; [[MGLMapboxEvents sharedInstance] eventsManager].baseURL = [MGLMapboxEvents sharedInstance].baseURL; } - [[self sharedInstance] eventsManager].skuId = MBXAccountsSKUIDMapsUser; + //[[self sharedInstance] eventsManager].skuId = MBXAccountsSKUIDMapsUser; [self flush]; }); |