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

Deprecate style methods #7776

Closed

Conversation

fabian-guerra
Copy link
Contributor

According to #7577 and #2875 we should mark style methods and properties as deprecated because we will not support them on future releases.

The Android SDK has already deprecated same API.

This is a temporarily PR to branch release-ios-v3.4.0, this should be included in release-ios-v3.4.1

@fabian-guerra fabian-guerra added iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS runtime styling labels Jan 18, 2017
@fabian-guerra fabian-guerra added this to the ios-3.4.1 milestone Jan 18, 2017
@fabian-guerra fabian-guerra self-assigned this Jan 18, 2017
@fabian-guerra fabian-guerra requested a review from boundsj January 18, 2017 21:45
@boundsj boundsj added the ⚠️ DO NOT MERGE Work in progress, proof of concept, or on hold label Jan 18, 2017
Copy link
Contributor

@boundsj boundsj left a comment

Choose a reason for hiding this comment

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

I think the string for all cases could simply say: This {method|property} will be removed in a future release. Use method or property appropriately. There is no known replacement for this functionality so I don't think there is anything else to say here.

@@ -370,14 +370,14 @@ static const NSInteger MGLStyleDefaultVersion = 9;
@param styleClass The style class to query for.
@return Whether the style class is currently active.
*/
- (BOOL)hasStyleClass:(NSString *)styleClass;
- (BOOL)hasStyleClass:(NSString *)styleClass __attribute__((deprecated("This method will be removed in a future release. Runtime styling is :sunglasses:")));
Copy link
Contributor

@boundsj boundsj Jan 18, 2017

Choose a reason for hiding this comment

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

We should remove the reference to runtime styling and 😎 here

@boundsj
Copy link
Contributor

boundsj commented Jan 18, 2017

This is a temporarily PR to branch release-ios-v3.4.0, this should be included in release-ios-v3.4.1

👍 we can point this to the release-ios-v3.4.1 branch when it is created

@fabian-guerra fabian-guerra deleted the fabian-deprecate-style-methods branch January 19, 2017 15:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
⚠️ DO NOT MERGE Work in progress, proof of concept, or on hold 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.

2 participants