Skip to content

Commit f11b34d

Browse files
committed
Added Carthage and SPM support
1 parent 4460389 commit f11b34d

File tree

14 files changed

+604
-5
lines changed

14 files changed

+604
-5
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Podfile.lock
6060
# Add this line if you want to avoid checking in source code from the Xcode workspace
6161
# *.xcworkspace
6262

63-
# Carthage
63+
Carthage
6464
#
6565
# Add this line if you want to avoid checking in source code from Carthage dependencies.
6666
# Carthage/Checkouts

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

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cartfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github "SDWebImage/SDWebImage" ~> 5.12
2-
github "SDWebImage/libjxl-Xcode"
1+
github "SDWebImage/SDWebImage" ~> 5.17
2+
github "SDWebImage/libjxl-Xcode" ~> 0.10

Cartfile.resolved

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github "SDWebImage/SDWebImage" "5.19.0"
2+
github "SDWebImage/libjxl-Xcode" "0.10.0"

Package.resolved

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"object": {
3+
"pins": [
4+
{
5+
"package": "libjxl",
6+
"repositoryURL": "https://github.com/SDWebImage/libjxl-Xcode.git",
7+
"state": {
8+
"branch": null,
9+
"revision": "db79a9680b5301e798222ec7ef67775d7424219a",
10+
"version": "0.10.0"
11+
}
12+
},
13+
{
14+
"package": "SDWebImage",
15+
"repositoryURL": "https://github.com/SDWebImage/SDWebImage.git",
16+
"state": {
17+
"branch": null,
18+
"revision": "73b9397cfbd902f606572964055464903b1d84c6",
19+
"version": "5.19.0"
20+
}
21+
}
22+
]
23+
},
24+
"version": 1
25+
}

Package.swift

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// swift-tools-version:5.0
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: "SDWebImageJPEGXLCoder",
8+
platforms: [
9+
.macOS(.v10_11), .iOS(.v9), .tvOS(.v9), .watchOS(.v2)
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: "SDWebImageJPEGXLCoder",
15+
targets: ["SDWebImageJPEGXLCoder"]),
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.17.0"),
21+
.package(url: "https://github.com/SDWebImage/libjxl-Xcode.git", from: "0.1.0")
22+
],
23+
targets: [
24+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
25+
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
26+
.target(
27+
name: "SDWebImageJPEGXLCoder",
28+
dependencies: ["SDWebImage", "libjxl"],
29+
path: ".",
30+
sources: ["SDWebImageJPEGXLCoder/Classes"],
31+
publicHeadersPath: "SDWebImageJPEGXLCoder/Classes"
32+
)
33+
]
34+
)

SDWebImageJPEGXLCoder.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ A SDWebImage coder plugin to support JPEG-XL image
3434

3535
s.source_files = 'SDWebImageJPEGXLCoder/Classes/**/*'
3636

37-
s.dependency 'SDWebImage', "~> 5.12"
38-
s.dependency 'libjxl'
37+
s.dependency 'SDWebImage', "~> 5.17"
38+
s.dependency 'libjxl', "~> 0.10"
3939
end

0 commit comments

Comments
 (0)