diff --git a/CHANGELOG.md b/CHANGELOG.md index 169ef89..43553e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,13 @@ NEXT - Added support for deselect and willDispaly cells. - Added support for should select cell +0.8.0 +----- + +### New + +- Added SPM Support + 0.7.0 ----- diff --git a/Package.resolved b/Package.resolved new file mode 100644 index 0000000..2ba10bd --- /dev/null +++ b/Package.resolved @@ -0,0 +1,16 @@ +{ + "object": { + "pins": [ + { + "package": "DifferenceKit", + "repositoryURL": "https://github.com/ra1028/DifferenceKit.git", + "state": { + "branch": null, + "revision": "14c66681e12a38b81045f44c6c29724a0d4b0e72", + "version": "1.1.5" + } + } + ] + }, + "version": 1 +} diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..2e35fab --- /dev/null +++ b/Package.swift @@ -0,0 +1,27 @@ +// swift-tools-version:5.2 +import PackageDescription + +let package = Package( + name: "ReactiveLists", + platforms: [ + .iOS(.v11), + ], + products: [ + .library(name: "ReactiveLists", targets: ["ReactiveLists"]), + ], + dependencies: [ + .package(url: "https://github.com/ra1028/DifferenceKit.git", .upToNextMinor(from: "1.2.0")), + ], + targets: [ + .target( + name: "ReactiveLists", + dependencies: ["DifferenceKit"], + path: "Sources" + ), + .testTarget( + name: "ReactiveListsTests", + dependencies: ["ReactiveLists"], + path: "Tests" + ), + ] +) diff --git a/README.md b/README.md index 3e0bc93..f23e42b 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,13 @@ pod 'ReactiveLists' pod 'ReactiveLists', :git => 'https://github.com/plangrid/ReactiveLists.git', :branch => 'master' ``` +### [Swift Package Manager](https://developer.apple.com/documentation/xcode/adding_package_dependencies_to_your_app) + +Select Xcode menu File > Swift Packages > Add Package Dependency... and enter repository URL with GUI. + +Repository: https://github.com/plangrid/ReactiveLists + + ## Contribute Please read and follow our [Contributing Guide](https://github.com/plangrid/ReactiveLists/blob/master/.github/CONTRIBUTING.md) and our [Code of Conduct](https://github.com/plangrid/ReactiveLists/blob/master/CODE_OF_CONDUCT.md). diff --git a/Sources/Diffing.swift b/Sources/Diffing.swift index 2baee55..420396c 100644 --- a/Sources/Diffing.swift +++ b/Sources/Diffing.swift @@ -16,6 +16,7 @@ import DifferenceKit import Foundation +import UIKit /// A view model that can participate in an automatic diffing algorithm. public protocol DiffableViewModel { diff --git a/Sources/Typealiases.swift b/Sources/Typealiases.swift index ac6d811..a523c1d 100644 --- a/Sources/Typealiases.swift +++ b/Sources/Typealiases.swift @@ -15,6 +15,7 @@ // import Foundation +import UIKit /// :nodoc: public typealias CommitEditingStyleClosure = (UITableViewCell.EditingStyle) -> Void