iOS:Remove dependency of YYCache,add support for YYCache,TMCache,or PINCache
This commit is contained in:
@@ -9,9 +9,10 @@
|
||||
#import "AppDelegate.h"
|
||||
#import "NavigationController.h"
|
||||
#import "ViewController.h"
|
||||
#if __has_include(<SDWebImage/SDWebImage.h>)
|
||||
#import <SDWebImage/SDWebImage.h>
|
||||
#import <SDWebImageWebPCoder/SDWebImageWebPCoder.h>
|
||||
|
||||
#endif
|
||||
@interface AppDelegate ()
|
||||
@property(nonatomic, strong) UIViewController *rootVC;
|
||||
@property(nonatomic, strong) NavigationController *navigationController;
|
||||
@@ -30,7 +31,9 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
|
||||
self.window.rootViewController = self.navigationController;
|
||||
[self.window addSubview:self.navigationController.view];
|
||||
[self.window makeKeyAndVisible];
|
||||
#if __has_include(<SDWebImage/SDWebImage.h>)
|
||||
[SDImageCodersManager.sharedManager addCoder:SDImageWebPCoder.sharedCoder];
|
||||
#endif
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
@@ -16,6 +16,11 @@ target 'Example' do
|
||||
|
||||
pod 'SDWebImageWebPCoder'
|
||||
|
||||
pod 'YYCache'
|
||||
|
||||
#pod 'TMCache'
|
||||
|
||||
pod 'PINCache'
|
||||
target 'ExampleTests' do
|
||||
inherit! :search_paths
|
||||
# Pods for testing
|
||||
|
Reference in New Issue
Block a user