Using pch for the internal macros, to avoid each implementation files import this macro
This commit is contained in:
parent
e31a44f6a1
commit
c6247d2d63
|
@ -7,4 +7,7 @@
|
|||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon
|
||||
|
||||
// The compiler to use for C, C++, and Objective-C.
|
||||
GCC_VERSION =
|
||||
GCC_VERSION =
|
||||
|
||||
// Implicitly include the named header. The path given should either be a project relative path or an absolute path.
|
||||
GCC_PREFIX_HEADER =
|
||||
|
|
|
@ -228,3 +228,6 @@ 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.
|
||||
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.pch
|
||||
|
|
|
@ -31,6 +31,7 @@ Pod::Spec.new do |s|
|
|||
core.source_files = 'SDWebImage/*.{h,m}', 'WebImage/SDWebImage.h', 'SDWebImage/Private/*.{h,m}'
|
||||
core.exclude_files = 'SDWebImage/MapKit/*.{h,m}'
|
||||
core.private_header_files = 'SDWebImage/Private/*.h'
|
||||
core.prefix_header_contents = '#import "SDInternalMacros.h"'
|
||||
end
|
||||
|
||||
s.subspec 'MapKit' do |mk|
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
*/
|
||||
|
||||
#import "SDImageAssetManager.h"
|
||||
#import "SDInternalMacros.h"
|
||||
|
||||
static NSArray *SDBundlePreferredScales() {
|
||||
static NSArray *scales;
|
||||
|
|
|
@ -664,4 +664,4 @@ metamacro_if_eq(0, 1)(true)(false)
|
|||
#define metamacro_drop19(...) metamacro_drop18(metamacro_tail(__VA_ARGS__))
|
||||
#define metamacro_drop20(...) metamacro_drop19(metamacro_tail(__VA_ARGS__))
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
#import "UIImage+Metadata.h"
|
||||
#import "NSImage+Compatibility.h"
|
||||
#import "SDWeakProxy.h"
|
||||
#import "SDInternalMacros.h"
|
||||
#import <mach/mach.h>
|
||||
#import <objc/runtime.h>
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
#import "SDImageCachesManager.h"
|
||||
#import "SDImageCachesManagerOperation.h"
|
||||
#import "SDInternalMacros.h"
|
||||
|
||||
@implementation SDImageCachesManager
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#import "SDImageIOCoder.h"
|
||||
#import "SDImageGIFCoder.h"
|
||||
#import "SDImageAPNGCoder.h"
|
||||
#import "SDInternalMacros.h"
|
||||
|
||||
@interface SDImageCodersManager ()
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
#import "SDImageLoadersManager.h"
|
||||
#import "SDWebImageDownloader.h"
|
||||
#import "SDInternalMacros.h"
|
||||
|
||||
@interface SDImageLoadersManager ()
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
#import "SDMemoryCache.h"
|
||||
#import "SDImageCacheConfig.h"
|
||||
#import "UIImage+MemoryCacheCost.h"
|
||||
#import "SDInternalMacros.h"
|
||||
|
||||
static void * SDMemoryCacheContext = &SDMemoryCacheContext;
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#import "SDWebImageDownloaderConfig.h"
|
||||
#import "SDWebImageDownloaderOperation.h"
|
||||
#import "SDWebImageError.h"
|
||||
#import "SDInternalMacros.h"
|
||||
|
||||
static void * SDWebImageDownloaderContext = &SDWebImageDownloaderContext;
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
#import "SDWebImageDownloaderOperation.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
|
||||
#if (__IPHONE_OS_VERSION_MIN_REQUIRED && __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_9_0)
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
#import "SDWebImageDownloader.h"
|
||||
#import "UIImage+Metadata.h"
|
||||
#import "SDWebImageError.h"
|
||||
#import "SDInternalMacros.h"
|
||||
|
||||
static id<SDImageCache> _defaultImageCache;
|
||||
static id<SDImageLoader> _defaultImageLoader;
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#import "objc/runtime.h"
|
||||
#import "UIView+WebCacheOperation.h"
|
||||
#import "SDWebImageError.h"
|
||||
#import "SDInternalMacros.h"
|
||||
|
||||
const int64_t SDWebImageProgressUnitCountUnknown = 1LL;
|
||||
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
/*
|
||||
* This file is part of the SDWebImage package.
|
||||
* (c) Olivier Poitrey <rs@dailymotion.com>
|
||||
* (c) Florent Vilmart
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
#import "SDInternalMacros.h"
|
Loading…
Reference in New Issue