summaryrefslogtreecommitdiff
path: root/platform/ios/src
diff options
context:
space:
mode:
authorJesse Bounds <jesse@rebounds.net>2016-11-29 12:55:07 -0800
committerJesse Bounds <jesse@rebounds.net>2016-11-30 16:19:22 -0800
commitdbb520662d0145a0219e319a67bbe81326c144e3 (patch)
treed1fd53eea7ca1f37744365007f1267f4cb984d2e /platform/ios/src
parente9504912dc4eca1793be200cc46c14d81fbf1ee5 (diff)
downloadqtlocation-mapboxgl-dbb520662d0145a0219e319a67bbe81326c144e3.tar.gz
[ios, android] Move der files to ios platform
.der files are used only by the iOS platform for SSL pinning. This moves them out of the `platform/default/resources` directory and into `platform/ios/resources`. The make configuration for Android is updated so that it stops attempting to copy the files at all.
Diffstat (limited to 'platform/ios/src')
-rw-r--r--platform/ios/src/MGLMapboxEvents.m3
1 files changed, 1 insertions, 2 deletions
diff --git a/platform/ios/src/MGLMapboxEvents.m b/platform/ios/src/MGLMapboxEvents.m
index a8de1bb585..210f66bc28 100644
--- a/platform/ios/src/MGLMapboxEvents.m
+++ b/platform/ios/src/MGLMapboxEvents.m
@@ -656,13 +656,12 @@ const NSTimeInterval MGLFlushInterval = 180;
double accuracy = 10000000;
double lat = floor(loc.coordinate.latitude * accuracy) / accuracy;
double lng = floor(loc.coordinate.longitude * accuracy) / accuracy;
- double horizontalAccuracy = loc.horizontalAccuracy;
NSString *formattedDate = [self.rfc3339DateFormatter stringFromDate:loc.timestamp];
[MGLMapboxEvents pushEvent:MGLEventTypeLocation withAttributes:@{MGLEventKeyCreated: formattedDate,
MGLEventKeyLatitude: @(lat),
MGLEventKeyLongitude: @(lng),
MGLEventKeyAltitude: @(round(loc.altitude)),
- MGLEventHorizontalAccuracy: @(horizontalAccuracy)}];
+ MGLEventHorizontalAccuracy: @(loc.horizontalAccuracy)}];
}
}