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-08-15 20:41:32 +0300 |
commit | 4ef4cec805b0679b3853b114cda59a22e39458e8 (patch) | |
tree | 8081900adad1ca4dd463cb70620db06ea77851fb | |
parent | 0dc45734956b72808ebd694b435759b8269acbd4 (diff) | |
download | qtlocation-mapboxgl-4ef4cec805b0679b3853b114cda59a22e39458e8.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 69170459bc..6bafc17878 100644 --- a/platform/darwin/src/MGLAccountManager.m +++ b/platform/darwin/src/MGLAccountManager.m @@ -102,7 +102,8 @@ static NSString * const MGLAccountManagerExternalMethodName = @"skuToken"; 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 cc7390ac61..0ecc10c0d8 100644 --- a/platform/ios/src/MGLMapboxEvents.m +++ b/platform/ios/src/MGLMapboxEvents.m @@ -145,7 +145,7 @@ static NSString * const MGLVariableGeofence = @"VariableGeofence"; [[MGLMapboxEvents sharedInstance] eventsManager].baseURL = [MGLMapboxEvents sharedInstance].baseURL; } - [[self sharedInstance] eventsManager].skuId = MBXAccountsSKUIDMapsUser; + //[[self sharedInstance] eventsManager].skuId = MBXAccountsSKUIDMapsUser; [self flush]; }); |