diff options
-rw-r--r-- | ios/app/app-info.plist | 2 | ||||
-rw-r--r-- | platform/ios/MGLMapboxEvents.m | 8 | ||||
m--------- | test/suite | 0 |
3 files changed, 9 insertions, 1 deletions
diff --git a/ios/app/app-info.plist b/ios/app/app-info.plist index fd03e73241..85afe3e7a2 100644 --- a/ios/app/app-info.plist +++ b/ios/app/app-info.plist @@ -47,5 +47,7 @@ <string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeRight</string> </array> + <key>MGLMetricsTestServerURL</key> + <string>https://cloudfront-staging.tilestream.net</string> </dict> </plist> diff --git a/platform/ios/MGLMapboxEvents.m b/platform/ios/MGLMapboxEvents.m index 5663e3f1c0..98bfe21cfe 100644 --- a/platform/ios/MGLMapboxEvents.m +++ b/platform/ios/MGLMapboxEvents.m @@ -14,7 +14,7 @@ #include <sys/sysctl.h> static NSString *const MGLMapboxEventsUserAgent = @"MapboxEventsiOS/1.0"; -static NSString *const MGLMapboxEventsAPIBase = @"https://api.tiles.mapbox.com"; +static NSString *MGLMapboxEventsAPIBase = @"https://api.tiles.mapbox.com"; NSString *const MGLEventTypeMapLoad = @"map.load"; NSString *const MGLEventTypeMapTap = @"map.click"; @@ -230,6 +230,12 @@ const NSTimeInterval MGLFlushInterval = 60; // Configure Events Infrastructure // =============================== + // Check for TEST Metrics URL + NSString *testURL = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"MGLMetricsTestServerURL"]; + if (testURL != nil) { + MGLMapboxEventsAPIBase = testURL; + } + _paused = YES; [self resumeMetricsCollection]; NSBundle *resourceBundle = [NSBundle bundleWithPath:[NSBundle mgl_resourceBundlePath]]; diff --git a/test/suite b/test/suite -Subproject d4fb3445252aa7d0666bf563634d2007cb573c0 +Subproject fe4b1ff3717b1b67b82391f004db6c163806d08 |