Repository navigation
Ensure compatibility with map SDK v4.3.0 - #1608
Conversation
| @@ -4,6 +4,4 @@ | |||
|
|
|||
| - (void)mapViewDidFinishRenderingFrameFullyRendered:(BOOL)fullyRendered; | |||
There was a problem hiding this comment.
One more and we can remove this file!
|
My biggest concern here is this change has no real world testing. |
| @@ -1,4 +1,4 @@ | |||
| binary "https://www.mapbox.com/ios-sdk/Mapbox-iOS-SDK.json" ~> 4.2 | |||
| binary "https://www.mapbox.com/ios-sdk/Mapbox-iOS-SDK.json" ~> 4.3 | |||
There was a problem hiding this comment.
If semver minor releases of the maps SDK are potentially incompatible (due to close coupling, private API usage, etc.), does it make sense to tighten the pin here to ~> 4.3.0?
There was a problem hiding this comment.
With this PR, private API usage is down to a fairly benign minimum – just a forward declaration of -mapViewDidFinishRenderingFrameFullyRendered:. The broader root cause in #1607 is that Swift is strict about subclasses having naming collisions with superclasses. It makes you wonder whether we should be adding class prefixes to NavigationMapView properties that are likely to collide with MGLMapView properties in the future. 🤔
I’d rather not specify a patch release because, on balance, fire drills like this are rare. We’d generally want developers to be able to adopt new map SDK versions as they come out; at the same time, we don’t want to prevent developers from using a previous minor version of the map SDK if they require it for some reason. It’s a tough tradeoff, but I think we can avoid future problems just by being more aware of potential pitfalls when adding to MGLMapView or NavigationMapView.
|
Note that builds will fail until v4.3.0 is out. No way around that interdependency, unfortunately. |
Removed
NavigationMapView.preferredFramesPerSecondin favor of MGLMapView’s implementation, which is coming in iOS map SDK v4.3.0.Fixes #1607.
A followup PR will cherry-pick these changes onto v0.19.0 for a v0.19.1 release.A followup PR based on v0.19.0 will disallow v4.3.0 in a v0.19.1 release./cc @mapbox/navigation-ios @friedbunny