Skip to content

Commit a7daee9

Browse files
authored
Merge pull request #39 from peek-travel/38-coacoapods-support
38 -- Add Cocoapods Support
2 parents 36196e4 + 92fcd7b commit a7daee9

File tree

5 files changed

+39
-5
lines changed

5 files changed

+39
-5
lines changed

.github/workflows/codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Code Coverage
22

3-
on: [push]
3+
on: pull_request
44

55
jobs:
66
codecov:
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
name: 3rd Party Dependency Managers
22

3-
on: [push]
3+
on: pull_request
44

55
jobs:
66
carthage:
77
runs-on: macos-latest
88
steps:
99
- uses: actions/checkout@v1
10-
- name: Install gyb
11-
run: brew install nshipster/formulae/swift-gyb
1210
- name: Check Carthage version
1311
run: carthage version
1412
- name: Run Carthage build
1513
run: carthage build --no-skip-current
14+
15+
cocoapods:
16+
runs-on: macos-latest
17+
steps:
18+
- uses: actions/checkout@v1
19+
- name: Lint Podspec
20+
run: pod spec lint

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Package Tests
22

3-
on: [push]
3+
on: pull_request
44

55
jobs:
66
macos-latest-5_0:

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ dependencies: [
6969
7070
To install with [Carthage](https://github.com/Carthage/Carthage), just add the line `gh "https://github.com/peek-travel/swift-currency" ~> 0.6.0` to your **Cartfile**.
7171
72+
### Cocoapods
73+
74+
To install with [CocoaPods](https://cocoapods.org/), just add the line `pod 'SwiftCurrency', '~> 0.6.0'` to your **Podfile**.
75+
7276
## Documentation
7377
7478
The API docs for the latest tagged release are always available at [peek-travel.github.io/swift-currency](https://peek-travel.github.io/swift-currency).

SwiftCurrency.podspec

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Pod::Spec.new do |spec|
2+
spec.name = "SwiftCurrency"
3+
spec.version = "0.6.1"
4+
spec.summary = "Swift Currency provides type-safe representations of ISO 4217 currencies in Swift."
5+
spec.description = <<-DESC
6+
Swift Currency provides type-safe representations of ISO 4217 currencies in Swift.
7+
8+
It provides many conveniences for working with currencies, such as literal representations, string interpolation, and mathematics.
9+
DESC
10+
11+
spec.homepage = "https://github.com/peek-travel/swift-currency"
12+
spec.documentation_url = "https://peek-travel.github.io/swift-currency/"
13+
spec.license = { :type => "MIT", :file => "LICENSE.txt" }
14+
15+
spec.author = "Peek Travel"
16+
spec.source = { :git => "https://github.com/peek-travel/swift-currency.git", :tag => "#{spec.version}" }
17+
spec.source_files = "Sources/**/*.swift"
18+
spec.exclude_files = "Tests", "scripts"
19+
spec.swift_versions = '5.0'
20+
21+
spec.ios.deployment_target = '10.0'
22+
spec.osx.deployment_target = '10.11'
23+
spec.watchos.deployment_target = '3.0'
24+
spec.tvos.deployment_target = '9.0'
25+
end

0 commit comments

Comments
 (0)