diff --git a/Package.swift b/Package.swift index 05e22032..2e867bc0 100644 --- a/Package.swift +++ b/Package.swift @@ -40,8 +40,8 @@ let package = Package( .target( name: "SDWebImageMapKit", dependencies: ["SDWebImage"], - path: "SDWebImage/MapKit", - publicHeadersPath: "." + path: "SDWebImageMapKit", + sources: ["MapKit"] ) ] ) diff --git a/SDWebImage.podspec b/SDWebImage.podspec index 7464962c..f97409bc 100644 --- a/SDWebImage.podspec +++ b/SDWebImage.podspec @@ -33,7 +33,6 @@ Pod::Spec.new do |s| s.subspec 'Core' do |core| core.source_files = 'SDWebImage/Core/*.{h,m}', 'WebImage/SDWebImage.h', 'SDWebImage/Private/*.{h,m}' - core.exclude_files = 'SDWebImage/MapKit/*.{h,m}' core.private_header_files = 'SDWebImage/Private/*.h' end @@ -41,7 +40,7 @@ Pod::Spec.new do |s| mk.osx.deployment_target = '10.10' mk.ios.deployment_target = '8.0' mk.tvos.deployment_target = '9.2' - mk.source_files = 'SDWebImage/MapKit/*.{h,m}' + mk.source_files = 'SDWebImageMapKit/MapKit/*.{h,m}' mk.framework = 'MapKit' mk.dependency 'SDWebImage/Core' end diff --git a/SDWebImage.xcodeproj/project.pbxproj b/SDWebImage.xcodeproj/project.pbxproj index bbb554c1..43516df0 100644 --- a/SDWebImage.xcodeproj/project.pbxproj +++ b/SDWebImage.xcodeproj/project.pbxproj @@ -112,6 +112,8 @@ 327054D6206CD8B3006EA328 /* SDImageAPNGCoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 327054D2206CD8B3006EA328 /* SDImageAPNGCoder.h */; settings = {ATTRIBUTES = (Public, ); }; }; 327054DA206CD8B3006EA328 /* SDImageAPNGCoder.m in Sources */ = {isa = PBXBuildFile; fileRef = 327054D3206CD8B3006EA328 /* SDImageAPNGCoder.m */; }; 327054DC206CD8B3006EA328 /* SDImageAPNGCoder.m in Sources */ = {isa = PBXBuildFile; fileRef = 327054D3206CD8B3006EA328 /* SDImageAPNGCoder.m */; }; + 3287E6D1244C0C1400007311 /* MKAnnotationView+WebCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 3287E6CD244C0C1400007311 /* MKAnnotationView+WebCache.m */; }; + 3287E6D2244C0C1400007311 /* MKAnnotationView+WebCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 3287E6CE244C0C1400007311 /* MKAnnotationView+WebCache.h */; settings = {ATTRIBUTES = (Public, ); }; }; 328BB69E2081FED200760D6C /* SDWebImageCacheKeyFilter.h in Headers */ = {isa = PBXBuildFile; fileRef = 328BB69A2081FED200760D6C /* SDWebImageCacheKeyFilter.h */; settings = {ATTRIBUTES = (Public, ); }; }; 328BB6A22081FED200760D6C /* SDWebImageCacheKeyFilter.m in Sources */ = {isa = PBXBuildFile; fileRef = 328BB69B2081FED200760D6C /* SDWebImageCacheKeyFilter.m */; }; 328BB6A42081FED200760D6C /* SDWebImageCacheKeyFilter.m in Sources */ = {isa = PBXBuildFile; fileRef = 328BB69B2081FED200760D6C /* SDWebImageCacheKeyFilter.m */; }; @@ -288,8 +290,6 @@ 80B6DF822142B44400BCB334 /* NSButton+WebCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 321DB3602011D4D60015D2CB /* NSButton+WebCache.m */; }; 80B6DF832142B44500BCB334 /* NSButton+WebCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 321DB3602011D4D60015D2CB /* NSButton+WebCache.m */; }; 80B6DF842142B44600BCB334 /* NSButton+WebCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 321DB35F2011D4D60015D2CB /* NSButton+WebCache.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 80B6DFA72142B71600BCB334 /* MKAnnotationView+WebCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 32FDE87A2088871B008D7530 /* MKAnnotationView+WebCache.m */; }; - 80B6DFCD2142B71600BCB334 /* MKAnnotationView+WebCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 32FDE87B2088871B008D7530 /* MKAnnotationView+WebCache.h */; settings = {ATTRIBUTES = (Public, ); }; }; A18A6CC9172DC28500419892 /* UIImage+GIF.m in Sources */ = {isa = PBXBuildFile; fileRef = A18A6CC6172DC28500419892 /* UIImage+GIF.m */; }; AB615306192DA24600A2D8E9 /* UIView+WebCacheOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = AB615302192DA24600A2D8E9 /* UIView+WebCacheOperation.m */; }; ABBE71A818C43B4D00B75E91 /* UIImageView+HighlightedWebCache.m in Sources */ = {isa = PBXBuildFile; fileRef = ABBE71A618C43B4D00B75E91 /* UIImageView+HighlightedWebCache.m */; }; @@ -437,6 +437,8 @@ 326E2F32236F1D58006F847F /* SDDeviceHelper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SDDeviceHelper.m; sourceTree = ""; }; 327054D2206CD8B3006EA328 /* SDImageAPNGCoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDImageAPNGCoder.h; path = Core/SDImageAPNGCoder.h; sourceTree = ""; }; 327054D3206CD8B3006EA328 /* SDImageAPNGCoder.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SDImageAPNGCoder.m; path = Core/SDImageAPNGCoder.m; sourceTree = ""; }; + 3287E6CD244C0C1400007311 /* MKAnnotationView+WebCache.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "MKAnnotationView+WebCache.m"; sourceTree = ""; }; + 3287E6CE244C0C1400007311 /* MKAnnotationView+WebCache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "MKAnnotationView+WebCache.h"; sourceTree = ""; }; 328BB69A2081FED200760D6C /* SDWebImageCacheKeyFilter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SDWebImageCacheKeyFilter.h; path = Core/SDWebImageCacheKeyFilter.h; sourceTree = ""; }; 328BB69B2081FED200760D6C /* SDWebImageCacheKeyFilter.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = SDWebImageCacheKeyFilter.m; path = Core/SDWebImageCacheKeyFilter.m; sourceTree = ""; }; 328BB6A82081FEE500760D6C /* SDWebImageCacheSerializer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SDWebImageCacheSerializer.h; path = Core/SDWebImageCacheSerializer.h; sourceTree = ""; }; @@ -480,8 +482,6 @@ 32F7C06E2030114C00873181 /* SDImageTransformer.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = SDImageTransformer.m; path = Core/SDImageTransformer.m; sourceTree = ""; }; 32F7C07C2030719600873181 /* UIImage+Transform.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "UIImage+Transform.m"; path = "Core/UIImage+Transform.m"; sourceTree = ""; }; 32F7C07D2030719600873181 /* UIImage+Transform.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "UIImage+Transform.h"; path = "Core/UIImage+Transform.h"; sourceTree = ""; }; - 32FDE87A2088871B008D7530 /* MKAnnotationView+WebCache.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "MKAnnotationView+WebCache.m"; sourceTree = ""; }; - 32FDE87B2088871B008D7530 /* MKAnnotationView+WebCache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "MKAnnotationView+WebCache.h"; sourceTree = ""; }; 4369C2751D9807EC007E863A /* UIView+WebCache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "UIView+WebCache.h"; path = "SDWebImage/Core/UIView+WebCache.h"; sourceTree = ""; }; 4369C2761D9807EC007E863A /* UIView+WebCache.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "UIView+WebCache.m"; path = "SDWebImage/Core/UIView+WebCache.m"; sourceTree = ""; }; 4397D2F41D0DE2DF00BB2784 /* NSImage+Compatibility.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSImage+Compatibility.h"; path = "Core/NSImage+Compatibility.h"; sourceTree = ""; }; @@ -607,6 +607,23 @@ name = AnimatedImage; sourceTree = ""; }; + 3287E6C7244C0C1400007311 /* SDWebImageMapKit */ = { + isa = PBXGroup; + children = ( + 3287E6CC244C0C1400007311 /* MapKit */, + ); + path = SDWebImageMapKit; + sourceTree = ""; + }; + 3287E6CC244C0C1400007311 /* MapKit */ = { + isa = PBXGroup; + children = ( + 3287E6CE244C0C1400007311 /* MKAnnotationView+WebCache.h */, + 3287E6CD244C0C1400007311 /* MKAnnotationView+WebCache.m */, + ); + path = MapKit; + sourceTree = ""; + }; 328BB6972081FDAB00760D6C /* Manager */ = { isa = PBXGroup; children = ( @@ -672,15 +689,6 @@ path = Private; sourceTree = ""; }; - 32FDE8792088871B008D7530 /* MapKit */ = { - isa = PBXGroup; - children = ( - 32FDE87B2088871B008D7530 /* MKAnnotationView+WebCache.h */, - 32FDE87A2088871B008D7530 /* MKAnnotationView+WebCache.m */, - ); - path = MapKit; - sourceTree = ""; - }; 4369C2851D9811BB007E863A /* WebCache Categories */ = { isa = PBXGroup; children = ( @@ -722,6 +730,7 @@ children = ( EA9E0C6A2195936400AFB434 /* Configs */, 53922D74148C55820056699D /* SDWebImage */, + 3287E6C7244C0C1400007311 /* SDWebImageMapKit */, 4A2CAE001AB4BB5300B6BC39 /* WebImage */, 53922D71148C55820056699D /* Frameworks */, 53922D70148C55820056699D /* Products */, @@ -764,7 +773,6 @@ 53922DA9148C562D0056699D /* Categories */, 4369C2851D9811BB007E863A /* WebCache Categories */, 32B5CC5D222F89C2005EB74E /* Private */, - 32FDE8792088871B008D7530 /* MapKit */, ); path = SDWebImage; sourceTree = ""; @@ -952,8 +960,8 @@ isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( + 3287E6D2244C0C1400007311 /* MKAnnotationView+WebCache.h in Headers */, 806BE07E2142C65200E02143 /* SDWebImageMapKit.h in Headers */, - 80B6DFCD2142B71600BCB334 /* MKAnnotationView+WebCache.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1279,7 +1287,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 80B6DFA72142B71600BCB334 /* MKAnnotationView+WebCache.m in Sources */, + 3287E6D1244C0C1400007311 /* MKAnnotationView+WebCache.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/SDWebImage/MapKit/MKAnnotationView+WebCache.h b/SDWebImageMapKit/MapKit/MKAnnotationView+WebCache.h similarity index 100% rename from SDWebImage/MapKit/MKAnnotationView+WebCache.h rename to SDWebImageMapKit/MapKit/MKAnnotationView+WebCache.h diff --git a/SDWebImage/MapKit/MKAnnotationView+WebCache.m b/SDWebImageMapKit/MapKit/MKAnnotationView+WebCache.m similarity index 100% rename from SDWebImage/MapKit/MKAnnotationView+WebCache.m rename to SDWebImageMapKit/MapKit/MKAnnotationView+WebCache.m diff --git a/SDWebImageMapKit/include/SDWebImageMapKit/MKAnnotationView+WebCache.h b/SDWebImageMapKit/include/SDWebImageMapKit/MKAnnotationView+WebCache.h new file mode 120000 index 00000000..28a11933 --- /dev/null +++ b/SDWebImageMapKit/include/SDWebImageMapKit/MKAnnotationView+WebCache.h @@ -0,0 +1 @@ +../../MapKit/MKAnnotationView+WebCache.h \ No newline at end of file diff --git a/SDWebImageMapKit/include/SDWebImageMapKit/SDWebImageMapKit.h b/SDWebImageMapKit/include/SDWebImageMapKit/SDWebImageMapKit.h new file mode 120000 index 00000000..8d192441 --- /dev/null +++ b/SDWebImageMapKit/include/SDWebImageMapKit/SDWebImageMapKit.h @@ -0,0 +1 @@ +../../../WebImage/SDWebImageMapKit.h \ No newline at end of file diff --git a/WebImage/SDWebImage.h b/WebImage/SDWebImage.h index eeadf43f..929f1b96 100644 --- a/WebImage/SDWebImage.h +++ b/WebImage/SDWebImage.h @@ -15,7 +15,7 @@ FOUNDATION_EXPORT double SDWebImageVersionNumber; //! Project version string for SDWebImage. FOUNDATION_EXPORT const unsigned char SDWebImageVersionString[]; -// In this header, you should import all the public headers of your framework using statements like #import +// In this header, you should import all the public headers of your framework using statements like #import #import #import diff --git a/WebImage/SDWebImageMapKit.h b/WebImage/SDWebImageMapKit.h index 99c14cd9..84e43156 100644 --- a/WebImage/SDWebImageMapKit.h +++ b/WebImage/SDWebImageMapKit.h @@ -9,11 +9,11 @@ #import -//! Project version number for WebImage. -FOUNDATION_EXPORT double WebImageMapKitVersionNumber; +//! Project version number for SDWebImageMapKit. +FOUNDATION_EXPORT double SDWebImageMapKitVersionNumber; -//! Project version string for WebImage. -FOUNDATION_EXPORT const unsigned char WebImageMapKitVersionString[]; +//! Project version string for SDWebImageMapKit. +FOUNDATION_EXPORT const unsigned char SDWebImageMapKitVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import