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

Cherry pick 7257 into iOS 3.4.0 release branch #7394

Merged
merged 3 commits into from
Dec 13, 2016

Conversation

boundsj
Copy link
Contributor

@boundsj boundsj commented Dec 12, 2016

This brings in:

  • [core] use raii to guard backend deactivation c76a933
  • [core] guard against duplicate layer ids 028db7f
  • [ios, macos] handle duplicate layer error e9f101a

But not:

  • [android] test duplicate layer id exception handling a32e62c

from #7257 which landed in master

cc @1ec5 fyi @ivovandongen

@boundsj boundsj added crash iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS runtime styling labels Dec 12, 2016
@boundsj boundsj added this to the ios-v3.4.0 milestone Dec 12, 2016
@boundsj boundsj self-assigned this Dec 12, 2016
@mention-bot
Copy link

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

@boundsj
Copy link
Contributor Author

boundsj commented Dec 12, 2016

0316614 was adjusted to account for #7250 (MGLOpenGLStyleLayer)

1ec5
1ec5 previously requested changes Dec 13, 2016
XCTAssertThrowsSpecificNamed([self.mapView.style insertLayer:[[MGLFillStyleLayer alloc] initWithIdentifier:@"my-layer" source:source] aboveLayer:initial], NSException, @"MGLRedundantLayerIdentifierException");
XCTAssertThrowsSpecificNamed([self.mapView.style insertLayer:[[MGLFillStyleLayer alloc] initWithIdentifier:@"my-layer" source:source] atIndex:0], NSException, @"MGLRedundantLayerIdentifierException");

#if TARGET_OS_IPHONE
Copy link
Contributor

Choose a reason for hiding this comment

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

MGLOpenGLStyleLayer is also available on macOS.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I amended 7f7964d to remove the conditional for iPhone.

@boundsj boundsj merged commit d3895b4 into release-ios-v3.4.0 Dec 13, 2016
@boundsj boundsj deleted the boundsj-cherry-pick-7257 branch December 13, 2016 18:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
crash iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS runtime styling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants