Merge pull request #2723 from dreampiggy/project_replace_private_pch_with_import

Replace the private prefix header files with the manually import for each implementation files
This commit is contained in:
DreamPiggy 2019-05-14 17:50:23 +08:00 committed by GitHub
commit ce5103bedf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
21 changed files with 16 additions and 19 deletions

View File

@ -5,6 +5,3 @@
// Name of an asset catalog app icon set whose contents will be merged into the `Info.plist`.
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon
// Implicitly include the named header. The path given should either be a project relative path or an absolute path.
GCC_PREFIX_HEADER =

View File

@ -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.
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

View File

@ -3,8 +3,5 @@
#include "Module-Shared.xcconfig"
// Implicitly include the named header. The path given should either be a project relative path or an absolute path.
GCC_PREFIX_HEADER =
// This is a list of paths to folders to be searched by the compiler for included or imported header files when compiling C, Objective-C, C++, or Objective-C++. Paths are delimited by whitespace, so any paths with spaces in them need to be properly quoted.
HEADER_SEARCH_PATHS = $(inherited) "$(SRCROOT)/../SDWebImage/Private"

View File

@ -31,7 +31,6 @@ 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|

View File

@ -13,6 +13,7 @@
#import "objc/runtime.h"
#import "UIView+WebCacheOperation.h"
#import "UIView+WebCache.h"
#import "SDInternalMacros.h"
@implementation MKAnnotationView (WebCache)

View File

@ -13,6 +13,7 @@
#import "objc/runtime.h"
#import "UIView+WebCacheOperation.h"
#import "UIView+WebCache.h"
#import "SDInternalMacros.h"
static NSString * const SDAlternateImageOperationKey = @"NSButtonAlternateImageOperation";

View File

@ -7,6 +7,7 @@
*/
#import "SDImageAssetManager.h"
#import "SDInternalMacros.h"
static NSArray *SDBundlePreferredScales() {
static NSArray *scales;

View File

@ -7,6 +7,7 @@
*/
#import "SDImageCachesManagerOperation.h"
#import "SDInternalMacros.h"
@implementation SDImageCachesManagerOperation
{

View File

@ -13,6 +13,7 @@
#import "UIImage+Metadata.h"
#import "NSImage+Compatibility.h"
#import "SDWeakProxy.h"
#import "SDInternalMacros.h"
#import <mach/mach.h>
#import <objc/runtime.h>

View File

@ -9,6 +9,7 @@
#import "SDImageCachesManager.h"
#import "SDImageCachesManagerOperation.h"
#import "SDImageCache.h"
#import "SDInternalMacros.h"
@interface SDImageCachesManager ()

View File

@ -10,6 +10,7 @@
#import "SDImageIOCoder.h"
#import "SDImageGIFCoder.h"
#import "SDImageAPNGCoder.h"
#import "SDInternalMacros.h"
@interface SDImageCodersManager ()

View File

@ -8,6 +8,7 @@
#import "SDImageLoadersManager.h"
#import "SDWebImageDownloader.h"
#import "SDInternalMacros.h"
@interface SDImageLoadersManager ()

View File

@ -9,6 +9,7 @@
#import "SDMemoryCache.h"
#import "SDImageCacheConfig.h"
#import "UIImage+MemoryCacheCost.h"
#import "SDInternalMacros.h"
static void * SDMemoryCacheContext = &SDMemoryCacheContext;

View File

@ -10,6 +10,7 @@
#import "SDWebImageDownloaderConfig.h"
#import "SDWebImageDownloaderOperation.h"
#import "SDWebImageError.h"
#import "SDInternalMacros.h"
NSNotificationName const SDWebImageDownloadStartNotification = @"SDWebImageDownloadStartNotification";
NSNotificationName const SDWebImageDownloadReceiveResponseNotification = @"SDWebImageDownloadReceiveResponseNotification";

View File

@ -8,6 +8,7 @@
#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)

View File

@ -11,6 +11,7 @@
#import "SDWebImageDownloader.h"
#import "UIImage+Metadata.h"
#import "SDWebImageError.h"
#import "SDInternalMacros.h"
static id<SDImageCache> _defaultImageCache;
static id<SDImageLoader> _defaultImageLoader;

View File

@ -8,6 +8,7 @@
#import "SDWebImagePrefetcher.h"
#import "SDAsyncBlockOperation.h"
#import "SDInternalMacros.h"
#import <stdatomic.h>
@interface SDWebImagePrefetchToken () {

View File

@ -13,6 +13,7 @@
#import "objc/runtime.h"
#import "UIView+WebCacheOperation.h"
#import "UIView+WebCache.h"
#import "SDInternalMacros.h"
static char imageURLStorageKey;

View File

@ -12,6 +12,7 @@
#import "UIView+WebCacheOperation.h"
#import "UIView+WebCache.h"
#import "SDInternalMacros.h"
static NSString * const SDHighlightedImageOperationKey = @"UIImageViewImageOperationHighlighted";

View File

@ -10,6 +10,7 @@
#import "objc/runtime.h"
#import "UIView+WebCacheOperation.h"
#import "SDWebImageError.h"
#import "SDInternalMacros.h"
const int64_t SDWebImageProgressUnitCountUnknown = 1LL;

View File

@ -1,9 +0,0 @@
/*
* This file is part of the SDWebImage package.
* (c) Olivier Poitrey <rs@dailymotion.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#import "SDInternalMacros.h"