Skip to content

Commit 7c6a74c

Browse files
committed
Add Swift Package Manager support
1 parent b1c2a99 commit 7c6a74c

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.resolved

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"object": {
3+
"pins": [
4+
{
5+
"package": "SDWebImage",
6+
"repositoryURL": "https://github.com/SDWebImage/SDWebImage.git",
7+
"state": {
8+
"branch": null,
9+
"revision": "0a3cd255a655b73fb3b3437acf2ab506b5c0c9c6",
10+
"version": "5.1.0"
11+
}
12+
}
13+
]
14+
},
15+
"version": 1
16+
}

Package.swift

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// swift-tools-version:5.1
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "SDWebImageSwiftUI",
8+
platforms: [
9+
.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6)
10+
],
11+
products: [
12+
// Products define the executables and libraries produced by a package, and make them visible to other packages.
13+
.library(
14+
name: "SDWebImageSwiftUI",
15+
targets: ["SDWebImageSwiftUI"]),
16+
],
17+
dependencies: [
18+
// Dependencies declare other packages that this package depends on.
19+
// .package(url: /* package url */, from: "1.0.0"),
20+
.package(url: "https://github.com/SDWebImage/SDWebImage.git", from: "5.1.0")
21+
],
22+
targets: [
23+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
24+
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
25+
.target(
26+
name: "SDWebImageSwiftUI",
27+
dependencies: ["SDWebImage"],
28+
path: "SDWebImageSwiftUI/Classes"),
29+
]
30+
)

0 commit comments

Comments
 (0)