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

Add prefix MGL to Reachability - #759

Merged
kkaefer merged 2 commits into
masterfrom
759-reachability-prefix
May 26, 2015
Merged

kkaefer merged 2 commits into
masterfrom
759-reachability-prefix

Conversation

@kkaefer

@kkaefer kkaefer commented May 26, 2015

Copy link
Copy Markdown
Member

Since Reachability is such a common name and a lot of existing projects/other libraries use this name, it can cause duplicate symbol issue.
It would be very helpful if the prefix MGL could be prepended to this objective C class.

@ljbade ljbade added iOS Mapbox Maps SDK for iOS build refactor labels Jan 17, 2015
@ljbade

ljbade commented Jan 17, 2015

Copy link
Copy Markdown
Contributor

/cc @incanus

@kkaefer

kkaefer commented Jan 17, 2015

Copy link
Copy Markdown
Member

Good point. We'll do that.

@incanus incanus modified the milestone: iOS Beta Feb 13, 2015
@jfirebaugh

Copy link
Copy Markdown
Contributor

Is there a reason this needs to be part of the public API at all?

@incanus

incanus commented Feb 17, 2015

Copy link
Copy Markdown
Contributor

It's not public API, but the problem is linking. Objective-C doesn't have namespacing, so anyone who tries to use the Reachability library themselves in their app can't.

This is similar to our iOS SDK, when someone might want to use FMDB but can't because we use it for our MBTiles support and caching.

@incanus incanus removed this from the iOS Beta milestone Mar 3, 2015
@danielmhanover

Copy link
Copy Markdown

What's the status on this issue?

@1ec5 1ec5 self-assigned this May 22, 2015
@kkaefer kkaefer assigned kkaefer and unassigned 1ec5 May 26, 2015
@kkaefer
kkaefer merged commit f11a9f8 into master May 26, 2015
@kkaefer
kkaefer deleted the 759-reachability-prefix branch May 26, 2015 09:26
@incanus

incanus commented May 26, 2015

Copy link
Copy Markdown
Contributor

Something to note here: Reachability is originally based on Apple sample code and has been forked and developed elsewhere, most notably in the somewhat stale tonymillion/Reachability. We should be watching for upstream changes in the APIs used here and treating this like we do clipper and other external libs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

build iOS Mapbox Maps SDK for iOS refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants