Skip to content

Commit

Permalink
Add support for Swift Package Manager (#34)
Browse files Browse the repository at this point in the history
* Add support for Swift Package Manager

* Update CI to test Swift Package Manager support
  • Loading branch information
dmcrodrigues authored and andersio committed Nov 17, 2018
1 parent 2a1a5d3 commit ae89841
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ references:
paths:
- Carthage

- &swift_package_manager
run:
name: Swift Package Manager validation
command: |
swift --version
swift build
swift test
jobs:
build:
macos:
Expand Down Expand Up @@ -74,4 +82,5 @@ jobs:
command: |
pod lib lint --use-libraries
carthage build --no-skip-current --cache-builds
- *swift_package_manager

6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,9 @@ backboneLocalizationBuilder
fastlane/README.md
fastlane/report.xml
vendor/


# SwiftPackageManager #
Packages
.build/
DerivedData/
43 changes: 43 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"object": {
"pins": [
{
"package": "Nimble",
"repositoryURL": "https://github.com/Quick/Nimble.git",
"state": {
"branch": null,
"revision": "cd6dfb86f496fcd96ce0bc6da962cd936bf41903",
"version": "7.3.1"
}
},
{
"package": "Quick",
"repositoryURL": "https://github.com/Quick/Quick.git",
"state": {
"branch": null,
"revision": "5fbf13871d185526993130c3a1fad0b70bfe37ce",
"version": "1.3.2"
}
},
{
"package": "ReactiveSwift",
"repositoryURL": "https://github.com/ReactiveCocoa/ReactiveSwift",
"state": {
"branch": null,
"revision": "4f6a12ae6762e825b0e19a4f7076eafa43847e6e",
"version": "4.0.0"
}
},
{
"package": "Result",
"repositoryURL": "https://github.com/antitypical/Result.git",
"state": {
"branch": null,
"revision": "8fc088dcf72802801efeecba76ea8fb041fb773d",
"version": "4.0.0"
}
}
]
},
"version": 1
}
18 changes: 18 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// swift-tools-version:4.0
import PackageDescription

let package = Package(
name: "ReactiveFeedback",
products: [
.library(name: "ReactiveFeedback", targets: ["ReactiveFeedback"]),
],
dependencies: [
.package(url: "https://github.com/ReactiveCocoa/ReactiveSwift", from: "4.0.0"),
.package(url: "https://github.com/Quick/Nimble.git", from: "7.0.0"),
],
targets: [
.target(name: "ReactiveFeedback", dependencies: ["ReactiveSwift"], path: "ReactiveFeedback"),
.testTarget(name: "ReactiveFeedbackTests", dependencies: ["ReactiveFeedback", "ReactiveSwift", "Nimble"], path: "ReactiveFeedbackTests"),
],
swiftLanguageVersions: [4]
)

0 comments on commit ae89841

Please sign in to comment.