This repository was archived by the owner on Aug 3, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +59
-2
lines changed
Classes/FLAnimatedImageBridge Expand file tree Collapse file tree 4 files changed +59
-2
lines changed Original file line number Diff line number Diff line change
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: " SDWebImageFLPlugin " ,
8
+ platforms: [
9
+ . iOS( . v9) ,
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: " SDWebImageFLPlugin " ,
15
+ targets: [ " SDWebImageFLPlugin " ]
16
+ )
17
+ ] ,
18
+ dependencies: [
19
+ . package (
20
+ url: " https://github.com/SDWebImage/SDWebImage.git " ,
21
+ from: " 5.10.0 "
22
+ ) ,
23
+ . package (
24
+ url: " https://github.com/Flipboard/FLAnimatedImage.git " ,
25
+ from: " 1.0.11 "
26
+ )
27
+ ] ,
28
+ targets: [
29
+ // Targets are the basic building blocks of a package. A target can define a module or a test suite.
30
+ // Targets can depend on other targets in this package, and on products in packages which this package depends on.
31
+ . target(
32
+ name: " SDWebImageFLPlugin " ,
33
+ dependencies: [ " SDWebImage " , " FLAnimatedImage " ] ,
34
+ path: " SDWebImageFLPlugin " ,
35
+ sources: [ " Classes/FLAnimatedImageBridge " ] ,
36
+ publicHeadersPath: " Modules " ,
37
+ cSettings: [
38
+ . headerSearchPath( " Modules " )
39
+ ]
40
+ )
41
+ ]
42
+ )
Original file line number Diff line number Diff line change 6
6
* file that was distributed with this source code.
7
7
*/
8
8
9
+ #if __has_include(<SDWebImage/SDWebImage.h>)
9
10
#import < SDWebImage/SDWebImage.h>
11
+ #else
12
+ @import SDWebImage;
13
+ #endif
14
+ #if __has_include(<FLAnimatedImage/FLAnimatedImage.h>)
10
15
#import < FLAnimatedImage/FLAnimatedImage.h>
16
+ #else
17
+ @import FLAnimatedImage;
18
+ #endif
11
19
#import " SDFLAnimatedImage.h"
12
20
13
21
/* *
Original file line number Diff line number Diff line change 6
6
* file that was distributed with this source code.
7
7
*/
8
8
9
- #import < FLAnimatedImage/FLAnimatedImage .h>
9
+ #if __has_include(<SDWebImage/SDWebImage .h>)
10
10
#import < SDWebImage/SDWebImage.h>
11
+ #else
12
+ @import SDWebImage;
13
+ #endif
14
+ #if __has_include(<FLAnimatedImage/FLAnimatedImage.h>)
15
+ #import < FLAnimatedImage/FLAnimatedImage.h>
16
+ #else
17
+ @import FLAnimatedImage;
18
+ #endif
11
19
12
20
/* *
13
21
* Optimal frame cache size of FLAnimatedImage during initializer. (1.0.11 version later)
Original file line number Diff line number Diff line change 13
13
#import < SDWebImageFLPlugin/FLAnimatedImageView+WebCache.h>
14
14
#import < SDWebImageFLPlugin/SDFLAnimatedImage.h>
15
15
16
-
17
16
FOUNDATION_EXPORT double SDWebImageFLPluginVersionNumber;
18
17
FOUNDATION_EXPORT const unsigned char SDWebImageFLPluginVersionString[];
19
18
You can’t perform that action at this time.
0 commit comments