Add Package.swift

This commit is contained in:
Siyu Yue 2023-01-06 17:40:45 -08:00
parent 2097758b9b
commit 6ef4d6dc42
2 changed files with 25 additions and 2 deletions

23
Package.swift Normal file
View File

@ -0,0 +1,23 @@
// swift-tools-version:5.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "ListDiffUI",
platforms: [
.iOS(.v8),
],
products: [
.library(name: "ListDiffUI", targets: ["ListDiffUI"]),
],
dependencies: [
.package(url: "https://github.com/lxcid/ListDiff.git", .revision("1390504170150f378aa1be17f92322e6d12533d8")),
],
targets: [
.target(
name: "ListDiffUI",
dependencies: ["ListDiff"],
path: "Sources/"),
]
)

View File

@ -4,7 +4,7 @@ def listdiffui_dependencies(is_local = False):
new_git_repository(
name = "ListDiff",
remote = "https://github.com/lxcid/ListDiff.git",
commit = "2667f8da9df3978e45841fee11d2f00934612a7f",
shallow_since = "1538894026 +0800",
commit = "1390504170150f378aa1be17f92322e6d12533d8",
shallow_since = "1593244760 +0800",
build_file = "ListDiff.BUILD" if is_local else "@ListDiffUI//:external/ListDiff.BUILD",
)