Replace the private prefix header files with the manually import for each implementation files
This commit is contained in:
parent
28e3ca312b
commit
5c13490eeb
|
@ -223,6 +223,3 @@ VERSIONING_SYSTEM = apple-generic
|
||||||
|
|
||||||
// Code will load on this and later versions of watchOS. Framework APIs that are unavailable in earlier versions will be weak-linked; your code should check for null function pointers or specific system versions before calling newer APIs.
|
// Code will load on this and later versions of watchOS. Framework APIs that are unavailable in earlier versions will be weak-linked; your code should check for null function pointers or specific system versions before calling newer APIs.
|
||||||
WATCHOS_DEPLOYMENT_TARGET = 2.0
|
WATCHOS_DEPLOYMENT_TARGET = 2.0
|
||||||
|
|
||||||
// Implicitly include the named header. The path given should either be a project relative path or an absolute path.
|
|
||||||
GCC_PREFIX_HEADER = WebImage/SDWebImage-Prefix.pch
|
|
||||||
|
|
|
@ -31,7 +31,6 @@ Pod::Spec.new do |s|
|
||||||
core.source_files = 'SDWebImage/*.{h,m}', 'WebImage/SDWebImage.h', 'SDWebImage/Private/*.{h,m}'
|
core.source_files = 'SDWebImage/*.{h,m}', 'WebImage/SDWebImage.h', 'SDWebImage/Private/*.{h,m}'
|
||||||
core.exclude_files = 'SDWebImage/MapKit/*.{h,m}'
|
core.exclude_files = 'SDWebImage/MapKit/*.{h,m}'
|
||||||
core.private_header_files = 'SDWebImage/Private/*.h'
|
core.private_header_files = 'SDWebImage/Private/*.h'
|
||||||
core.prefix_header_contents = '#import "SDInternalMacros.h"'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
s.subspec 'MapKit' do |mk|
|
s.subspec 'MapKit' do |mk|
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
#import "objc/runtime.h"
|
#import "objc/runtime.h"
|
||||||
#import "UIView+WebCacheOperation.h"
|
#import "UIView+WebCacheOperation.h"
|
||||||
#import "UIView+WebCache.h"
|
#import "UIView+WebCache.h"
|
||||||
|
#import "SDInternalMacros.h"
|
||||||
|
|
||||||
@implementation MKAnnotationView (WebCache)
|
@implementation MKAnnotationView (WebCache)
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
#import "objc/runtime.h"
|
#import "objc/runtime.h"
|
||||||
#import "UIView+WebCacheOperation.h"
|
#import "UIView+WebCacheOperation.h"
|
||||||
#import "UIView+WebCache.h"
|
#import "UIView+WebCache.h"
|
||||||
|
#import "SDInternalMacros.h"
|
||||||
|
|
||||||
static NSString * const SDAlternateImageOperationKey = @"NSButtonAlternateImageOperation";
|
static NSString * const SDAlternateImageOperationKey = @"NSButtonAlternateImageOperation";
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#import "SDImageAssetManager.h"
|
#import "SDImageAssetManager.h"
|
||||||
|
#import "SDInternalMacros.h"
|
||||||
|
|
||||||
static NSArray *SDBundlePreferredScales() {
|
static NSArray *SDBundlePreferredScales() {
|
||||||
static NSArray *scales;
|
static NSArray *scales;
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#import "SDImageCachesManagerOperation.h"
|
#import "SDImageCachesManagerOperation.h"
|
||||||
|
#import "SDInternalMacros.h"
|
||||||
|
|
||||||
@implementation SDImageCachesManagerOperation
|
@implementation SDImageCachesManagerOperation
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
#import "UIImage+Metadata.h"
|
#import "UIImage+Metadata.h"
|
||||||
#import "NSImage+Compatibility.h"
|
#import "NSImage+Compatibility.h"
|
||||||
#import "SDWeakProxy.h"
|
#import "SDWeakProxy.h"
|
||||||
|
#import "SDInternalMacros.h"
|
||||||
#import <mach/mach.h>
|
#import <mach/mach.h>
|
||||||
#import <objc/runtime.h>
|
#import <objc/runtime.h>
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
#import "SDImageCachesManager.h"
|
#import "SDImageCachesManager.h"
|
||||||
#import "SDImageCachesManagerOperation.h"
|
#import "SDImageCachesManagerOperation.h"
|
||||||
#import "SDImageCache.h"
|
#import "SDImageCache.h"
|
||||||
|
#import "SDInternalMacros.h"
|
||||||
|
|
||||||
@interface SDImageCachesManager ()
|
@interface SDImageCachesManager ()
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
#import "SDImageIOCoder.h"
|
#import "SDImageIOCoder.h"
|
||||||
#import "SDImageGIFCoder.h"
|
#import "SDImageGIFCoder.h"
|
||||||
#import "SDImageAPNGCoder.h"
|
#import "SDImageAPNGCoder.h"
|
||||||
|
#import "SDInternalMacros.h"
|
||||||
|
|
||||||
@interface SDImageCodersManager ()
|
@interface SDImageCodersManager ()
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
#import "SDImageLoadersManager.h"
|
#import "SDImageLoadersManager.h"
|
||||||
#import "SDWebImageDownloader.h"
|
#import "SDWebImageDownloader.h"
|
||||||
|
#import "SDInternalMacros.h"
|
||||||
|
|
||||||
@interface SDImageLoadersManager ()
|
@interface SDImageLoadersManager ()
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
#import "SDMemoryCache.h"
|
#import "SDMemoryCache.h"
|
||||||
#import "SDImageCacheConfig.h"
|
#import "SDImageCacheConfig.h"
|
||||||
#import "UIImage+MemoryCacheCost.h"
|
#import "UIImage+MemoryCacheCost.h"
|
||||||
|
#import "SDInternalMacros.h"
|
||||||
|
|
||||||
static void * SDMemoryCacheContext = &SDMemoryCacheContext;
|
static void * SDMemoryCacheContext = &SDMemoryCacheContext;
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
#import "SDWebImageDownloaderConfig.h"
|
#import "SDWebImageDownloaderConfig.h"
|
||||||
#import "SDWebImageDownloaderOperation.h"
|
#import "SDWebImageDownloaderOperation.h"
|
||||||
#import "SDWebImageError.h"
|
#import "SDWebImageError.h"
|
||||||
|
#import "SDInternalMacros.h"
|
||||||
|
|
||||||
NSNotificationName const SDWebImageDownloadStartNotification = @"SDWebImageDownloadStartNotification";
|
NSNotificationName const SDWebImageDownloadStartNotification = @"SDWebImageDownloadStartNotification";
|
||||||
NSNotificationName const SDWebImageDownloadReceiveResponseNotification = @"SDWebImageDownloadReceiveResponseNotification";
|
NSNotificationName const SDWebImageDownloadReceiveResponseNotification = @"SDWebImageDownloadReceiveResponseNotification";
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
#import "SDWebImageDownloaderOperation.h"
|
#import "SDWebImageDownloaderOperation.h"
|
||||||
#import "SDWebImageError.h"
|
#import "SDWebImageError.h"
|
||||||
|
#import "SDInternalMacros.h"
|
||||||
|
|
||||||
// iOS 8 Foundation.framework extern these symbol but the define is in CFNetwork.framework. We just fix this without import CFNetwork.framework
|
// iOS 8 Foundation.framework extern these symbol but the define is in CFNetwork.framework. We just fix this without import CFNetwork.framework
|
||||||
#if (__IPHONE_OS_VERSION_MIN_REQUIRED && __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_9_0)
|
#if (__IPHONE_OS_VERSION_MIN_REQUIRED && __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_9_0)
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
#import "SDWebImageDownloader.h"
|
#import "SDWebImageDownloader.h"
|
||||||
#import "UIImage+Metadata.h"
|
#import "UIImage+Metadata.h"
|
||||||
#import "SDWebImageError.h"
|
#import "SDWebImageError.h"
|
||||||
|
#import "SDInternalMacros.h"
|
||||||
|
|
||||||
static id<SDImageCache> _defaultImageCache;
|
static id<SDImageCache> _defaultImageCache;
|
||||||
static id<SDImageLoader> _defaultImageLoader;
|
static id<SDImageLoader> _defaultImageLoader;
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
#import "SDWebImagePrefetcher.h"
|
#import "SDWebImagePrefetcher.h"
|
||||||
#import "SDAsyncBlockOperation.h"
|
#import "SDAsyncBlockOperation.h"
|
||||||
|
#import "SDInternalMacros.h"
|
||||||
#import <stdatomic.h>
|
#import <stdatomic.h>
|
||||||
|
|
||||||
@interface SDWebImagePrefetchToken () {
|
@interface SDWebImagePrefetchToken () {
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
#import "objc/runtime.h"
|
#import "objc/runtime.h"
|
||||||
#import "UIView+WebCacheOperation.h"
|
#import "UIView+WebCacheOperation.h"
|
||||||
#import "UIView+WebCache.h"
|
#import "UIView+WebCache.h"
|
||||||
|
#import "SDInternalMacros.h"
|
||||||
|
|
||||||
static char imageURLStorageKey;
|
static char imageURLStorageKey;
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
|
|
||||||
#import "UIView+WebCacheOperation.h"
|
#import "UIView+WebCacheOperation.h"
|
||||||
#import "UIView+WebCache.h"
|
#import "UIView+WebCache.h"
|
||||||
|
#import "SDInternalMacros.h"
|
||||||
|
|
||||||
static NSString * const SDHighlightedImageOperationKey = @"UIImageViewImageOperationHighlighted";
|
static NSString * const SDHighlightedImageOperationKey = @"UIImageViewImageOperationHighlighted";
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
#import "objc/runtime.h"
|
#import "objc/runtime.h"
|
||||||
#import "UIView+WebCacheOperation.h"
|
#import "UIView+WebCacheOperation.h"
|
||||||
#import "SDWebImageError.h"
|
#import "SDWebImageError.h"
|
||||||
|
#import "SDInternalMacros.h"
|
||||||
|
|
||||||
const int64_t SDWebImageProgressUnitCountUnknown = 1LL;
|
const int64_t SDWebImageProgressUnitCountUnknown = 1LL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue