Repository navigation
[ios] Use new pinning cert for staging - #7212
Conversation
This updates the cert for the staging environment. It also adjusts the telem implementation to send along the horizontal accuracy for each location event and removes the previous battery level gathering logic.
|
@boundsj, thanks for your PR! By analyzing this pull request, we identified @1ec5, @friedbunny and @incanus to be potential reviewers. |
1ec5
left a comment
There was a problem hiding this comment.
Looks good. Glad we're using this field again.
Do we need to bump the telemetry schema version?
| double accuracy = 10000000; | ||
| double lat = floor(loc.coordinate.latitude * accuracy) / accuracy; | ||
| double lng = floor(loc.coordinate.longitude * accuracy) / accuracy; | ||
| double horizontalAccuracy = loc.horizontalAccuracy; |
There was a problem hiding this comment.
By the way, technically this should be a CLLocationAccuracy, which happens to be a typedef for double.
|
@tobrun @ivovandongen @cammace 38cabe3 moves the SSL cert pinning files to an iOS specific location and removes any reference to them in the |
| double accuracy = 10000000; | ||
| double lat = floor(loc.coordinate.latitude * accuracy) / accuracy; | ||
| double lng = floor(loc.coordinate.longitude * accuracy) / accuracy; | ||
| double horizontalAccuracy = loc.horizontalAccuracy; |
There was a problem hiding this comment.
According to the horizontalAccuracy documentation, a value of −1 indicates an invalid coordinate. We should check for this case (and also coordinate being invalid) and avoid sending the event.
.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.
38cabe3 to
2a90398
Compare
This updates the cert for the staging environment. It also adjusts the telem implementation to send along the horizontal accuracy for each location event and removes the previous battery level gathering logic.