Skip to content

Commit 59970b1

Browse files
committed
Replace CocoaPods with Carthage
1 parent 6a4645b commit 59970b1

File tree

7 files changed

+130
-346
lines changed

7 files changed

+130
-346
lines changed

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
MapboxGeocoder.xcworkspace
2-
31
.DS_Store
42

53
xcuserdata
@@ -8,4 +6,5 @@ xcuserdata
86
*.xcuserstate
97
*.xcscmblueprint
108

11-
Pods/
9+
Carthage.pkg
10+
Carthage/

Cartfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
binary "https://www.mapbox.com/ios-sdk/Mapbox-iOS-SDK.json" ~> 3.4
2+
github "AliSoftware/OHHTTPStubs" "swift-3.0"

Cartfile.resolved

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
binary "https://www.mapbox.com/ios-sdk/Mapbox-iOS-SDK.json" "3.4.1"
2+
github "AliSoftware/OHHTTPStubs" "57feceaabf333e72b2c637dfba6c13a7a5c49619"

MapboxGeocoder.xcodeproj/project.pbxproj

Lines changed: 114 additions & 276 deletions
Large diffs are not rendered by default.

Podfile

Lines changed: 0 additions & 34 deletions
This file was deleted.

Podfile.lock

Lines changed: 0 additions & 17 deletions
This file was deleted.

README.md

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,19 @@ MapboxGeocoder.swift pairs well with [MapboxDirections.swift](https://github.com
1111

1212
## Getting started
1313

14-
**Static Framework**
14+
Specify the following dependency in your [Carthage](https://github.com/Carthage/Carthage/) Cartfile:
1515

16-
Download a framework build from [the releases page](https://github.com/mapbox/MapboxGeocoder.swift/releases). Import `MapboxGeocoder.framework` into your project, then `import MapboxGeocoder` or `@import MapboxGeocoder;`.
17-
18-
**[CocoaPods](http://cocoapods.org/)**
16+
```cartfile
17+
github "Mapbox/MapboxGeocoder.swift" "master"
18+
```
1919

20-
In your Podfile:
20+
Or in your [CocoaPods](http://cocoapods.org/) Podfile:
2121

2222
```podspec
2323
pod 'MapboxGeocoder.swift', :git => 'https://github.com/mapbox/MapboxGeocoder.swift.git', :branch => 'master'
2424
```
2525

26-
**[Carthage](https://github.com/Carthage/Carthage)**
27-
28-
In your Cartfile:
29-
30-
```sh
31-
github "Mapbox/MapboxGeocoder.swift" "master"
32-
```
26+
Then `import MapboxDirections` or `@import MapboxDirections;`.
3327

3428
v0.5.2 is the last release of MapboxGeocoder.swift written in Swift 2.3. The `swift2.3` branch corresponds to this release, plus any critical bug fixes that have been applied since. All subsequent releases will be based on the `master` branch, which is written in Swift 3. The Swift examples below are written in Swift 3; see the `swift2.3` branch’s readme for Swift 2.3 examples.
3529

@@ -207,8 +201,8 @@ Batch geocoding is available to Mapbox enterprise accounts. See the [Mapbox Geoc
207201
208202
## Tests
209203
210-
To run the included unit tests, you need to use [CocoaPods](http://cocoapods.org) to install the dependencies.
204+
To run the included unit tests, you need to use [Carthage](https://github.com/Carthage/Carthage/) to install the dependencies.
211205
212-
1. `pod install`
213-
1. `open MapboxGeocoder.xcworkspace`
214-
1. Switch to the MapboxGeocoder scheme and go to Product ‣ Test.
206+
1. `carthage update`
207+
1. `open MapboxGeocoder.xcodeproj`
208+
1. Switch to the MapboxGeocoder iOS” scheme and go to Product ‣ Test.

0 commit comments

Comments
 (0)