-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swift Package Manager compatibility #37
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! A few comments.
.package(url: "https://github.com/ReactiveX/RxSwift", from: "4.5.0") | ||
], | ||
targets: [ | ||
.target(name: "RxWebKit", dependencies: ["RxSwift", "RxCocoa"], path: "RxWebKit") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RxWebKit has tests - the Package.swift file should have a test target as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand, tests targets should not be exposed in the SPM manifest file should they?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK Package.swift targets are used for public targets but test targets are only for running “Swift test” etc.
Package.swift
Outdated
.library(name: "RxWebKit", targets: ["RxWebKit"]) | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/ReactiveX/RxSwift", from: "4.5.0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to target 5.0.1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed, thank you!
Just wanted to check the status on this Pull Requets. |
.library(name: "RxWebKit", targets: ["RxWebKit"]) | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/ReactiveX/RxSwift", from: "5.0.1") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.package(url: "https://github.com/ReactiveX/RxSwift", from: "5.0.1") | |
.package(url: "https://github.com/ReactiveX/RxSwift", from: "5.0.1"), | |
.package(url: "https://github.com/Quick/Quick.git", from: "2.2.0"), | |
.package(url: "https://github.com/Quick/Nimble.git", .branch("master")) | |
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
master for now: mattgallagher/CwlPreconditionTesting#16
.package(url: "https://github.com/ReactiveX/RxSwift", from: "5.0.1") | ||
], | ||
targets: [ | ||
.target(name: "RxWebKit", dependencies: ["RxSwift", "RxCocoa"], path: "RxWebKit") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.target(name: "RxWebKit", dependencies: ["RxSwift", "RxCocoa"], path: "RxWebKit") | |
.target(name: "RxWebKit", dependencies: ["RxSwift", "RxCocoa"], path: "RxWebKit"), | |
.testTarget(name: "RxWebKitTests", dependencies: ["RxWebKit", "RxSwift", "RxCocoa", "RxTest", "Quick", "Nimble"], path: "RxWebKitTests") |
import PackageDescription | ||
|
||
let package = Package( | ||
name: "RxWebKit", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name: "RxWebKit", | |
name: "RxWebKit", | |
platforms: [.iOS(.v8)], |
Is anyone interested in finishing the work on this? |
Added Swift Package Manager manifest file for RxWebKit