Support the SwiftPM Objective-C user to use #improt <SDWebImage/SDWebImage.h>, by using the link to the public header files and construct the same folder layout

This commit is contained in:
DreamPiggy
2020-04-19 12:30:39 +08:00
parent e5adec920b
commit 1708ec67c1
63 changed files with 73 additions and 5 deletions
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:">
</FileRef>
</Workspace>
+1 -1
View File
@@ -32,8 +32,8 @@ let package = Package(
dependencies: [],
path: "SDWebImage",
sources: ["Core", "Private"],
publicHeadersPath: "Core",
cSettings: [
.headerSearchPath("Core"),
.headerSearchPath("Private")
]
),
+6
View File
@@ -283,6 +283,12 @@ In the source files where you need to use the library, import the umbrella heade
#import <SDWebImage/SDWebImage.h>
```
It's also recommend to use the module import syntax, available for CocoaPods(enable `modular_headers`)/Carthage/SwiftPM.
```objecitivec
@import SDWebImage;
```
### Build Project
At this point your workspace should build without error. If you are having problem, post to the Issue and the
@@ -6,12 +6,11 @@
* file that was distributed with this source code.
*/
#import "SDWebImageCompat.h"
#import <SDWebImage/SDWebImage.h>
#if SD_UIKIT || SD_MAC
#import <MapKit/MapKit.h>
#import "SDWebImageManager.h"
/**
* Integrates SDWebImage async downloading and caching of remote images with MKAnnotationView.
@@ -10,8 +10,6 @@
#if SD_UIKIT || SD_MAC
#import "UIView+WebCache.h"
@implementation MKAnnotationView (WebCache)
- (void)sd_setImageWithURL:(nullable NSURL *)url {
+1
View File
@@ -0,0 +1 @@
../../Core/NSButton+WebCache.h
@@ -0,0 +1 @@
../../Core/NSData+ImageContentType.h
@@ -0,0 +1 @@
../../Core/NSImage+Compatibility.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDAnimatedImage.h
@@ -0,0 +1 @@
../../Core/SDAnimatedImagePlayer.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDAnimatedImageRep.h
@@ -0,0 +1 @@
../../Core/SDAnimatedImageView+WebCache.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDAnimatedImageView.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDDiskCache.h
@@ -0,0 +1 @@
../../Core/SDGraphicsImageRenderer.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDImageAPNGCoder.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDImageCache.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDImageCacheConfig.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDImageCacheDefine.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDImageCachesManager.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDImageCoder.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDImageCoderHelper.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDImageCodersManager.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDImageFrame.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDImageGIFCoder.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDImageGraphics.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDImageHEICCoder.h
@@ -0,0 +1 @@
../../Core/SDImageIOAnimatedCoder.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDImageIOCoder.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDImageLoader.h
@@ -0,0 +1 @@
../../Core/SDImageLoadersManager.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDImageTransformer.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDMemoryCache.h
+1
View File
@@ -0,0 +1 @@
../../../WebImage/SDWebImage.h
@@ -0,0 +1 @@
../../Core/SDWebImageCacheKeyFilter.h
@@ -0,0 +1 @@
../../Core/SDWebImageCacheSerializer.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDWebImageCompat.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDWebImageDefine.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDWebImageDownloader.h
@@ -0,0 +1 @@
../../Core/SDWebImageDownloaderConfig.h
@@ -0,0 +1 @@
../../Core/SDWebImageDownloaderDecryptor.h
@@ -0,0 +1 @@
../../Core/SDWebImageDownloaderOperation.h
@@ -0,0 +1 @@
../../Core/SDWebImageDownloaderRequestModifier.h
@@ -0,0 +1 @@
../../Core/SDWebImageDownloaderResponseModifier.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDWebImageError.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDWebImageIndicator.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDWebImageManager.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDWebImageOperation.h
@@ -0,0 +1 @@
../../Core/SDWebImageOptionsProcessor.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDWebImagePrefetcher.h
+1
View File
@@ -0,0 +1 @@
../../Core/SDWebImageTransition.h
+1
View File
@@ -0,0 +1 @@
../../Core/UIButton+WebCache.h
@@ -0,0 +1 @@
../../Core/UIImage+ExtendedCacheData.h
+1
View File
@@ -0,0 +1 @@
../../Core/UIImage+ForceDecode.h
+1
View File
@@ -0,0 +1 @@
../../Core/UIImage+GIF.h
@@ -0,0 +1 @@
../../Core/UIImage+MemoryCacheCost.h
+1
View File
@@ -0,0 +1 @@
../../Core/UIImage+Metadata.h
+1
View File
@@ -0,0 +1 @@
../../Core/UIImage+MultiFormat.h
+1
View File
@@ -0,0 +1 @@
../../Core/UIImage+Transform.h
@@ -0,0 +1 @@
../../Core/UIImageView+HighlightedWebCache.h
+1
View File
@@ -0,0 +1 @@
../../Core/UIImageView+WebCache.h
+1
View File
@@ -0,0 +1 @@
../../Core/UIView+WebCache.h
@@ -0,0 +1 @@
../../Core/UIView+WebCacheOperation.h