Skip to content

Commit

Permalink
Added SPM support (#189)
Browse files Browse the repository at this point in the history
* Added SPM support

* Updated DifferenceKit

---------

Co-authored-by: Rachel Brindle <you@subluminal.net>
  • Loading branch information
wickwirew and younata committed Jul 15, 2024
1 parent c996bf7 commit e04727e
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
-----

Expand Down
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": "DifferenceKit",
"repositoryURL": "https://github.com/ra1028/DifferenceKit.git",
"state": {
"branch": null,
"revision": "14c66681e12a38b81045f44c6c29724a0d4b0e72",
"version": "1.1.5"
}
}
]
},
"version": 1
}
27 changes: 27 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -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"
),
]
)
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
1 change: 1 addition & 0 deletions Sources/Diffing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import DifferenceKit
import Foundation
import UIKit

/// A view model that can participate in an automatic diffing algorithm.
public protocol DiffableViewModel {
Expand Down
1 change: 1 addition & 0 deletions Sources/Typealiases.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
//

import Foundation
import UIKit

/// :nodoc:
public typealias CommitEditingStyleClosure = (UITableViewCell.EditingStyle) -> Void
Expand Down

0 comments on commit e04727e

Please sign in to comment.