-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from akkyie/swiftpm
Add SwiftPM Support
- Loading branch information
Showing
4 changed files
with
56 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,7 @@ playground.xcworkspace | |
# Package.pins | ||
# Package.resolved | ||
.build/ | ||
.swiftpm/ | ||
|
||
# CocoaPods | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,24 @@ | ||
language: objective-c | ||
os: osx | ||
osx_image: xcode11 | ||
env: | ||
- CI_USE_SWIFTPM=true | ||
- CI_USE_SWIFTPM=false | ||
before_install: | ||
- gem install xcpretty | ||
- carthage update --no-use-binaries --platform ios | ||
- | | ||
if ! $CI_USE_SWIFTPM ; then | ||
carthage update --no-use-binaries --platform ios | ||
fi | ||
before_script: | ||
- set -o pipefail | ||
script: | ||
- xcodebuild test -project ./Unio.xcodeproj -scheme Unio -configuration Debug -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=12.2,name=iPhone 8' | xcpretty -c | ||
script: | | ||
PROJECT_ARG= | ||
if $CI_USE_SWIFTPM ; then | ||
rm -rf *.xcodeproj | ||
else | ||
PROJECT_ARG="-project ./Unio.xcodeproj" | ||
fi | ||
xcodebuild test $PROJECT_ARG -scheme Unio -configuration Debug -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=12.2,name=iPhone 8' | xcpretty -c | ||
notifications: | ||
email: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"object": { | ||
"pins": [ | ||
{ | ||
"package": "RxSwift", | ||
"repositoryURL": "https://github.com/ReactiveX/RxSwift.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "b3e888b4972d9bc76495dd74d30a8c7fad4b9395", | ||
"version": "5.0.1" | ||
} | ||
} | ||
] | ||
}, | ||
"version": 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// swift-tools-version:5.1 | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "Unio", | ||
platforms: [.iOS(.v9)], | ||
products: [ | ||
.library(name: "Unio", | ||
targets: ["Unio"]), | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/ReactiveX/RxSwift.git", from: "5.0.0") | ||
], | ||
targets: [ | ||
.target(name: "Unio", | ||
dependencies: ["RxSwift", "RxRelay"], | ||
path: "Unio"), | ||
.testTarget(name: "UnioTests", | ||
dependencies: ["Unio", "RxCocoa"], | ||
path: "UnioTests"), | ||
], | ||
swiftLanguageVersions: [.v5] | ||
) |