[ios] Use staging server in simulator

Use the staging telemetry server when compiled for the iOS Simulator.

Fixes #3621.
This commit is contained in:
Minh Nguyễn
2016-04-18 00:34:25 -07:00
committed by Minh Nguyễn
parent 0c44266ffb
commit 4edd1e9658
2 changed files with 5 additions and 3 deletions

View File

@@ -42,7 +42,6 @@ static const CLLocationCoordinate2D WorldTourDestinations[] = {
@"MBXUserTrackingMode": @(MGLUserTrackingModeNone),
@"MBXShowsUserLocation": @NO,
@"MBXDebug": @NO,
@"MGLTelemetryTestServerURL": @"https://cloudfront-staging.tilestream.net",
}];
}
}

View File

@@ -140,6 +140,9 @@ const NSTimeInterval MGLFlushInterval = 180;
@"MGLMapboxAccountType": accountTypeNumber ?: @0,
@"MGLMapboxMetricsEnabled": @YES,
@"MGLMapboxMetricsDebugLoggingEnabled": @NO,
#if TARGET_OS_SIMULATOR
@"MGLTelemetryTestServerURL": @"https://cloudfront-staging.tilestream.net",
#endif
}];
}
}
@@ -360,7 +363,7 @@ const NSTimeInterval MGLFlushInterval = 180;
[self pushTurnstileEvent];
}
if ([self isPaused]) {
if (self.paused) {
return;
}
@@ -450,7 +453,7 @@ const NSTimeInterval MGLFlushInterval = 180;
// Called implicitly from public use of +flush.
//
- (void)postEvents:(NS_ARRAY_OF(MGLMapboxEventAttributes *) *)events {
if ([self isPaused]) {
if (self.paused) {
return;
}