Rename MapboxDirections.swift to Mapbox Directions for Swift #399
Labels
backwards incompatible
changes that break backwards compatibility of public API
build
op-ex
Refactoring, Tech Debt or any other operational excellence work.
Milestone
This project was originally named MapboxDirections.swift because it started as a single file named MapboxDirections.swift in 6f73004. (Lore has it that, even before this repository existed, it was a gist by the same name.) Over the years, the “dot swift” extension has been a bit of a mouthful and even occasionally a source of build issues: #318 (comment). Having “.swift” in the name also caused confusion back when the library also supported Objective-C. We’ve just dropped Objective-C support, but emphasizing Swift in contrast to Objective-C matters less and less these days in Apple-centric environments like CocoaPods.
For v1.0, we’re planning to rename the project to “Mapbox Directions for Swift”, the repository to mapbox/mapbox-directions-swift, and the pod to simply “MapboxDirections”. Any developer installing the library using CocoaPods would need to replace
MapboxDirections.swift
withMapboxDirections
in their Podfile. Otherwise, there’s no immediate impact to developers, since GitHub automatically redirects renamed repositories.The steps to rename look roughly like this:
CocoaPods doesn’t have a built-in way to rename a pod, so we’ll have to create a new pod and deprecate the old one. We could continue to publish the pod under both names for a while, but I’m not sure that maintenance overhead is really necessary given the disruption that v1.0 will cause regardless.
When we created the Mapbox Speech for Swift project, we avoid the “.swift” nomenclature in anticipation of a similar rename across all the other Swift service libraries, including MapboxGeocoder.swift and MapboxStatic.swift. That’ll be tracked in separate issues in the respective repositories.
(This rename was originally attempted in #366 and #362.)
/cc @mapbox/navigation-ios @mapbox/docs @mapbox/ios @mapbox/driver-app
The text was updated successfully, but these errors were encountered: