Add more installation tutorials to README, fix Example Podspec

This commit is contained in:
Koray Koska 2018-02-16 16:10:17 +01:00
parent eee2f06f6b
commit 8383e3734a
2 changed files with 21 additions and 1 deletions

View File

@ -1,7 +1,7 @@
use_frameworks!
target 'secp256k1_Example' do
pod 'secp256k1', :path => '../'
pod 'secp256k1.swift', :path => '../'
target 'secp256k1_Tests' do
inherit! :search_paths

View File

@ -37,6 +37,8 @@ To run the example project, run `pod try secp256k1.swift`. Or clone the repo, an
## Installation
### CocoaPods
secp256k1 is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your `Podfile`:
@ -44,6 +46,24 @@ it, simply add the following line to your `Podfile`:
pod 'secp256k1.swift'
```
### Carthage
secp256k1 is compatible with [Carthage](https://github.com/Carthage/Carthage), a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To install it, simply add the following line to your `Cartfile`:
```
github "Boilertalk/secp256k1.swift"
```
### Swift Package Manager
secp256k1 is compatible with Swift Package Manager v4 (Swift 4 and above). Simply add it to the dependencies in your `Package.swift`.
```Swift
dependencies: [
.package(url: "https://github.com/Boilertalk/secp256k1.swift.git", from: "0.1.0")
]
```
## Usage
To use secp256k1 functions you need to import it first.