Skip to content

Commit d812de2

Browse files
committed
Add the Package.swift for SwiftPM support, update Catalyst support
1 parent 505fd61 commit d812de2

4 files changed

Lines changed: 61 additions & 0 deletions

File tree

.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
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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: "SDWebImageLinkPlugin",
8+
platforms: [
9+
.macOS(.v10_15), .iOS(.v13)
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: "SDWebImageLinkPlugin",
15+
targets: ["SDWebImageLinkPlugin"]),
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: "SDWebImageLinkPlugin",
27+
dependencies: ["SDWebImage"],
28+
path: ".",
29+
sources: ["SDWebImageLinkPlugin/Classes"],
30+
publicHeadersPath: "SDWebImageLinkPlugin/Classes"
31+
)
32+
]
33+
)

SDWebImageLinkPlugin.podspec

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,10 @@ TODO: Add long description of the pod here.
3131

3232
s.source_files = 'SDWebImageLinkPlugin/Classes/**/*', 'SDWebImageLinkPlugin/Module/SDWebImageLinkPlugin.h'
3333

34+
s.pod_target_xcconfig = {
35+
'SUPPORTS_MACCATALYST' => 'YES',
36+
'DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER' => 'NO'
37+
}
38+
3439
s.dependency 'SDWebImage', '~> 5.0'
3540
end

0 commit comments

Comments
 (0)