diff --git a/.gitignore b/.gitignore index fa42cbd..e28632a 100644 --- a/.gitignore +++ b/.gitignore @@ -41,6 +41,7 @@ playground.xcworkspace # Package.pins # Package.resolved .build/ +.swiftpm/ # CocoaPods # diff --git a/Package.resolved b/Package.resolved new file mode 100644 index 0000000..e3afef8 --- /dev/null +++ b/Package.resolved @@ -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 +} diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..e2d83f6 --- /dev/null +++ b/Package.swift @@ -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] +)