Skip to content

Commit

Permalink
Merge pull request #79 from pomozoff/master
Browse files Browse the repository at this point in the history
Add SPM support
  • Loading branch information
ashfurrow authored Feb 26, 2020
2 parents 11e5a2b + c27ff1d commit 1c12859
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@ fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
screenshots

# SPM

.build/
2 changes: 1 addition & 1 deletion NSObject+Rx.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Pod::Spec.new do |s|

s.swift_version = '5.0'
s.source = { :git => "https://github.com/RxSwiftCommunity/NSObject-Rx.git", :tag => s.version }
s.source_files = "*.swift"
s.source_files = %w(NSObject+Rx.swift HasDisposeBag.swift)
s.frameworks = "Foundation"
s.dependency 'RxSwift', '~> 5.0'
end
16 changes: 16 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"object": {
"pins": [
{
"package": "RxSwift",
"repositoryURL": "https://github.com/ReactiveX/RxSwift",
"state": {
"branch": null,
"revision": "b3e888b4972d9bc76495dd74d30a8c7fad4b9395",
"version": "5.0.1"
}
}
]
},
"version": 1
}
24 changes: 24 additions & 0 deletions Package.swift
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: "NSObject-Rx",
platforms: [
.iOS(.v8),
.macOS(.v10_14)
],
products: [
.library(name: "NSObject-Rx", targets: ["NSObject-Rx"]),
],
dependencies: [
.package(url: "https://github.com/ReactiveX/RxSwift", from: "5.0.1"),
],
targets: [
.target(
name: "NSObject-Rx",
dependencies: ["RxSwift"],
path: ".",
sources: ["NSObject+Rx.swift"]
),
]
)

0 comments on commit 1c12859

Please sign in to comment.