Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

[ios] Use new pinning cert for staging - #7212

Merged
boundsj merged 2 commits into
release-ios-v3.4.0from
boundsj-use-new-staging-cert
Dec 1, 2016
Merged

boundsj merged 2 commits into
release-ios-v3.4.0from
boundsj-use-new-staging-cert

Conversation

@boundsj

@boundsj boundsj commented Nov 29, 2016

Copy link
Copy Markdown
Contributor

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.

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 boundsj added iOS Mapbox Maps SDK for iOS telemetry Integration with Mapbox Telemetry libraries labels Nov 29, 2016
@boundsj boundsj added this to the ios-v3.4.0 milestone Nov 29, 2016
@boundsj boundsj self-assigned this Nov 29, 2016
@mention-bot

Copy link
Copy Markdown

@boundsj, thanks for your PR! By analyzing this pull request, we identified @1ec5, @friedbunny and @incanus to be potential reviewers.

@1ec5 1ec5 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Glad we're using this field again.

Do we need to bump the telemetry schema version?

Comment thread platform/ios/src/MGLMapboxEvents.m Outdated
double accuracy = 10000000;
double lat = floor(loc.coordinate.latitude * accuracy) / accuracy;
double lng = floor(loc.coordinate.longitude * accuracy) / accuracy;
double horizontalAccuracy = loc.horizontalAccuracy;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By the way, technically this should be a CLLocationAccuracy, which happens to be a typedef for double.

@boundsj boundsj added the ⚠️ DO NOT MERGE Work in progress, proof of concept, or on hold label Nov 29, 2016
@boundsj

boundsj commented Nov 29, 2016

Copy link
Copy Markdown
Contributor Author

@tobrun @ivovandongen @cammace 38cabe3 moves the SSL cert pinning files to an iOS specific location and removes any reference to them in the make configuration for android

1ec5
1ec5 previously requested changes Nov 30, 2016
Comment thread platform/ios/src/MGLMapboxEvents.m Outdated
double accuracy = 10000000;
double lat = floor(loc.coordinate.latitude * accuracy) / accuracy;
double lng = floor(loc.coordinate.longitude * accuracy) / accuracy;
double horizontalAccuracy = loc.horizontalAccuracy;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@boundsj boundsj removed the ⚠️ DO NOT MERGE Work in progress, proof of concept, or on hold label Nov 30, 2016
.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.
@boundsj
boundsj force-pushed the boundsj-use-new-staging-cert branch from 38cabe3 to 2a90398 Compare November 30, 2016 20:39
@boundsj
boundsj dismissed 1ec5’s stale review November 30, 2016 20:40

Discussion with team

@boundsj
boundsj merged commit dbb5206 into release-ios-v3.4.0 Dec 1, 2016
@boundsj
boundsj deleted the boundsj-use-new-staging-cert branch December 1, 2016 00:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

iOS Mapbox Maps SDK for iOS telemetry Integration with Mapbox Telemetry libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants