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-05 18:01:03 +0300 |
commit | e0e5cbf4fd4d6e04cb80a8973a07a11a05776ac5 (patch) | |
tree | 00412256767046f45cc1b4fbeb17def29a6cd679 | |
parent | d8ae0839d397c4fcd35ec1d759fd3a5045c9f6ea (diff) | |
download | qtlocation-mapboxgl-e0e5cbf4fd4d6e04cb80a8973a07a11a05776ac5.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]; }); |