Commit f62d929fe9b7beb9585a1e7dd042477028509c5e
1 parent
5230f358
0.0.28 SDWebImage修改为YYKit
Showing
5 changed files
with
28 additions
and
39 deletions
DSBaseModuleF.podspec
| 1 | Pod::Spec.new do |s| | 1 | Pod::Spec.new do |s| |
| 2 | 2 | ||
| 3 | s.name = "DSBaseModuleF" | 3 | s.name = "DSBaseModuleF" |
| 4 | - s.version = "0.0.27" | 4 | + s.version = "0.0.28" |
| 5 | s.summary = "DSBaseModuleF" | 5 | s.summary = "DSBaseModuleF" |
| 6 | s.homepage = "http://bj.gitlab.cnlive.com/DSIOSTeam" | 6 | s.homepage = "http://bj.gitlab.cnlive.com/DSIOSTeam" |
| 7 | s.authors = { "DSIOSTeam" => "694092596@qq.com" } | 7 | s.authors = { "DSIOSTeam" => "694092596@qq.com" } |
| @@ -13,7 +13,7 @@ Pod::Spec.new do |s| | @@ -13,7 +13,7 @@ Pod::Spec.new do |s| | ||
| 13 | 13 | ||
| 14 | s.dependency 'QMUIKit', '4.0.2' | 14 | s.dependency 'QMUIKit', '4.0.2' |
| 15 | s.dependency 'Masonry', '1.1.0' | 15 | s.dependency 'Masonry', '1.1.0' |
| 16 | - s.dependency 'SDWebImage', '~> 5.2.3' | 16 | + s.dependency 'YYKit', '1.0.9' |
| 17 | s.dependency 'MJRefresh', '3.2.0' | 17 | s.dependency 'MJRefresh', '3.2.0' |
| 18 | s.dependency 'MBProgressHUD', '1.1.0' | 18 | s.dependency 'MBProgressHUD', '1.1.0' |
| 19 | s.dependency 'SAMKeychain', '~> 1.5.3' | 19 | s.dependency 'SAMKeychain', '~> 1.5.3' |
DSBaseModuleF/Frameworks/DSBaseModule.framework/DSBaseModule
No preview for this file type
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/DSImageManager.h
| @@ -7,43 +7,32 @@ | @@ -7,43 +7,32 @@ | ||
| 7 | // | 7 | // |
| 8 | 8 | ||
| 9 | #import <Foundation/Foundation.h> | 9 | #import <Foundation/Foundation.h> |
| 10 | -#import <SDWebImage/SDWebImage.h> | 10 | +#import <YYKit/YYKit.h> |
| 11 | 11 | ||
| 12 | @interface DSImageManager : NSObject | 12 | @interface DSImageManager : NSObject |
| 13 | 13 | ||
| 14 | -/** | ||
| 15 | - 查磁盘缓存/内存缓存中是否有该图片数据 | ||
| 16 | - | ||
| 17 | - @param url 该图片网络图片路径 | ||
| 18 | - @param completion 结果 | ||
| 19 | - */ | ||
| 20 | -+(void)checkCachedImageForKey:(nonnull NSString*)url completion:(nullable void (^)(SDImageCacheType containsCacheType))completion; | ||
| 21 | - | ||
| 22 | -/** | ||
| 23 | - 缓存图片 | ||
| 24 | - | ||
| 25 | - @param image 图片 | ||
| 26 | - @param imageData 图片数据 | ||
| 27 | - @param url 图片缓存路径 | ||
| 28 | - @param completion 结果 | ||
| 29 | - */ | ||
| 30 | -+(void)storeImage:(nullable UIImage*)image imageData:(nullable NSData*)imageData url:(nonnull NSString*)url completion:(nullable void (^)(void))completion; | ||
| 31 | - | ||
| 32 | -/** | ||
| 33 | - 从缓存取图片 | ||
| 34 | - | ||
| 35 | - @param url 图片缓存路径 | ||
| 36 | - @param completion 结果 | ||
| 37 | - */ | ||
| 38 | -+(void)queryImageForKey:(nonnull NSString*)url completion:(nullable void (^)(UIImage * _Nullable image, NSData * _Nullable imageData))completion; | ||
| 39 | - | ||
| 40 | -/** | ||
| 41 | - 下载图片 并用SDImageCache缓存 | ||
| 42 | - | ||
| 43 | - @param url 该图片网络图片路径 | ||
| 44 | - @param progress 图片下载进度 | ||
| 45 | - @param completed 下载完成(如果 image = nil && imageData = nil 为下载失败) | ||
| 46 | - */ | ||
| 47 | -+(void)downloadImageWithUrl:(nullable NSString*)url progress:(nullable void (^)(NSString * _Nullable percentage))progress completed:(nullable void (^)(NSString * _Nullable url, UIImage * _Nullable image, NSData * _Nullable imageData))completed; | 14 | +/// 查磁盘缓存/内存缓存中是否有该图片数据 |
| 15 | +/// @param url 该图片网络图片路径 | ||
| 16 | ++(BOOL)checkCachedImageForKey:(nonnull NSString*)url; | ||
| 17 | + | ||
| 18 | +/// 缓存图片 | ||
| 19 | +/// @param imageData 图片 | ||
| 20 | +/// @param url 该图片网络图片路径 | ||
| 21 | ++(void)storeImageData:(nonnull NSData*)imageData url:(nonnull NSString*)url; | ||
| 22 | + | ||
| 23 | +/// 从缓存取图片 | ||
| 24 | +/// @param url 该图片网络图片路径 | ||
| 25 | ++(nullable NSData*)queryImageForKey:(nonnull NSString*)url; | ||
| 26 | + | ||
| 27 | +/// 从缓存取图片 | ||
| 28 | +/// @param url 该图片网络图片路径 | ||
| 29 | +/// @param completion 结果 | ||
| 30 | ++(void)queryImageForKey:(nonnull NSString*)url completion:(nullable void (^)(NSData * _Nullable imageData))completion; | ||
| 31 | + | ||
| 32 | +/// 下载图片 并用YYImageCache缓存 | ||
| 33 | +/// @param imageUrl 该图片网络图片路径 | ||
| 34 | +/// @param progress 图片下载进度 | ||
| 35 | +/// @param completion 结果 | ||
| 36 | ++(void)downloadImageWithUrl:(nonnull NSString*)imageUrl progress:(nullable void (^)(NSString * _Nullable percentage))progress completion:(nullable void (^)(NSString * _Nonnull url, NSData * _Nullable imageData))completion; | ||
| 48 | 37 | ||
| 49 | @end | 38 | @end |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/DSImageView.h
| @@ -6,8 +6,8 @@ | @@ -6,8 +6,8 @@ | ||
| 6 | // Copyright © 2018年 BIKE. All rights reserved. | 6 | // Copyright © 2018年 BIKE. All rights reserved. |
| 7 | // | 7 | // |
| 8 | 8 | ||
| 9 | -#import <SDWebImage/SDWebImage.h> | 9 | +#import <YYKit/YYKit.h> |
| 10 | 10 | ||
| 11 | -@interface DSImageView : SDAnimatedImageView | 11 | +@interface DSImageView : YYAnimatedImageView |
| 12 | 12 | ||
| 13 | @end | 13 | @end |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Info.plist
No preview for this file type