-
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?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,16 @@ | ||||||||
// swift-tools-version:5.0 | ||||||||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||||||||
import PackageDescription | ||||||||
|
||||||||
let package = Package( | ||||||||
name: "RxWebKit", | ||||||||
products: [ | ||||||||
.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 commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. Changed, thank you! |
||||||||
], | ||||||||
targets: [ | ||||||||
.target(name: "RxWebKit", dependencies: ["RxSwift", "RxCocoa"], path: "RxWebKit") | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe 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 commentThe 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. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
] | ||||||||
) |
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.