-
Notifications
You must be signed in to change notification settings - Fork 479
/
Package.swift
68 lines (67 loc) · 2.65 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "ImageSlideshow",
platforms: [
.iOS(.v10),
],
products: [
.library(
name: "ImageSlideshow",
targets: ["ImageSlideshow"]),
.library(
name: "ImageSlideshow/Alamofire",
targets: ["ImageSlideshowAlamofire"]),
.library(
name: "ImageSlideshow/SDWebImage",
targets: ["ImageSlideshowSDWebImage"]),
.library(
name: "ImageSlideshow/Kingfisher",
targets: ["ImageSlideshowKingfisher"])
],
dependencies: [
.package(url: "https://github.com/onevcat/Kingfisher.git", from: "5.8.0"),
.package(url: "https://github.com/Alamofire/AlamofireImage.git", from: "4.0.0"),
.package(url: "https://github.com/SDWebImage/SDWebImage.git", from: "5.1.0")
],
targets: [
.target(
name: "ImageSlideshow",
path: "ImageSlideshow",
sources: [
"Classes/Core/ActivityIndicator.swift",
"Classes/Core/Bundle+Module.swift",
"Classes/Core/FullScreenSlideshowViewController.swift",
"Classes/Core/ImageSlideshow.swift",
"Classes/Core/ImageSlideshowItem.swift",
"Classes/Core/InputSource.swift",
"Classes/Core/PageIndicator.swift",
"Classes/Core/PageIndicatorPosition.swift",
"Classes/Core/SwiftSupport.swift",
"Classes/Core/UIImage+AspectFit.swift",
"Classes/Core/UIImageView+Tools.swift",
"Classes/Core/ZoomAnimatedTransitioning.swift",
],
resources: [
.copy("Assets/[email protected]"),
.copy("Assets/[email protected]"),
]),
.target(
name: "ImageSlideshowAlamofire",
dependencies: ["ImageSlideshow", "AlamofireImage"],
path: "ImageSlideshow/Classes/InputSources",
sources: ["AlamofireSource.swift"]),
.target(
name: "ImageSlideshowSDWebImage",
dependencies: ["ImageSlideshow", "SDWebImage"],
path: "ImageSlideshow/Classes/InputSources",
sources: ["SDWebImageSource.swift"]),
.target(
name: "ImageSlideshowKingfisher",
dependencies: ["ImageSlideshow", "Kingfisher"],
path: "ImageSlideshow/Classes/InputSources",
sources: ["KingfisherSource.swift"])
],
swiftLanguageVersions: [.v4, .v4_2, .v5]
)