Skip to content

Ensure compatibility with map SDK v4.3.0 - #1608

Merged
1ec5 merged 4 commits into
masterfrom
1ec5-fps-dedupe-1607
Aug 16, 2018
Merged

1ec5 merged 4 commits into
masterfrom
1ec5-fps-dedupe-1607

Conversation

@1ec5

@1ec5 1ec5 commented Aug 15, 2018 •

Copy link
Copy Markdown
Contributor

Removed NavigationMapView.preferredFramesPerSecond in 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

@1ec5 1ec5 added build Issues related to builds and dependency management. release blocker Needs to be resolved before the release. labels Aug 15, 2018
@1ec5 1ec5 added this to the v0.19.1 milestone Aug 15, 2018
@1ec5 1ec5 self-assigned this Aug 15, 2018
@@ -4,6 +4,4 @@

- (void)mapViewDidFinishRenderingFrameFullyRendered:(BOOL)fullyRendered;

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.

One more and we can remove this file!

@bsudekum

Copy link
Copy Markdown
Contributor

My biggest concern here is this change has no real world testing.

Comment thread Cartfile
@@ -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

@friedbunny friedbunny Aug 15, 2018 •

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.

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?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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.

@1ec5

1ec5 commented Aug 15, 2018

Copy link
Copy Markdown
Contributor Author

Note that builds will fail until v4.3.0 is out. No way around that interdependency, unfortunately.

@1ec5 1ec5 modified the milestones: v0.19.1, v0.20.0 Aug 16, 2018
@1ec5 1ec5 mentioned this pull request Aug 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Issues related to builds and dependency management. release blocker Needs to be resolved before the release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants