Skip to content

Commit 1c12859

Browse files
authored
Merge pull request #79 from pomozoff/master
Add SPM support
2 parents 11e5a2b + c27ff1d commit 1c12859

4 files changed

Lines changed: 45 additions & 1 deletion

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,7 @@ fastlane/Preview.html
5050
fastlane/screenshots
5151
fastlane/test_output
5252
screenshots
53+
54+
# SPM
55+
56+
.build/

NSObject+Rx.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
1717

1818
s.swift_version = '5.0'
1919
s.source = { :git => "https://github.com/RxSwiftCommunity/NSObject-Rx.git", :tag => s.version }
20-
s.source_files = "*.swift"
20+
s.source_files = %w(NSObject+Rx.swift HasDisposeBag.swift)
2121
s.frameworks = "Foundation"
2222
s.dependency 'RxSwift', '~> 5.0'
2323
end

Package.resolved

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// swift-tools-version:5.1
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "NSObject-Rx",
6+
platforms: [
7+
.iOS(.v8),
8+
.macOS(.v10_14)
9+
],
10+
products: [
11+
.library(name: "NSObject-Rx", targets: ["NSObject-Rx"]),
12+
],
13+
dependencies: [
14+
.package(url: "https://github.com/ReactiveX/RxSwift", from: "5.0.1"),
15+
],
16+
targets: [
17+
.target(
18+
name: "NSObject-Rx",
19+
dependencies: ["RxSwift"],
20+
path: ".",
21+
sources: ["NSObject+Rx.swift"]
22+
),
23+
]
24+
)

0 commit comments

Comments
 (0)