Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added SPM support #189

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ The changelog for `ReactiveLists`. Also see the [releases](https://github.com/pl
NEXT
----

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