iOS:update cli template file
This commit is contained in:
parent
c74ceefc42
commit
71e1863249
@ -8,6 +8,10 @@
|
|||||||
|
|
||||||
#import "AppDelegate.h"
|
#import "AppDelegate.h"
|
||||||
#import <DoricCore/Doric.h>
|
#import <DoricCore/Doric.h>
|
||||||
|
#if __has_include(<SDWebImage/SDWebImage.h>)
|
||||||
|
#import <SDWebImage/SDWebImage.h>
|
||||||
|
#import <SDWebImageWebPCoder/SDWebImageWebPCoder.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
@interface AppDelegate ()
|
@interface AppDelegate ()
|
||||||
@end
|
@end
|
||||||
@ -15,6 +19,9 @@ @interface AppDelegate ()
|
|||||||
@implementation AppDelegate
|
@implementation AppDelegate
|
||||||
|
|
||||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
||||||
|
#if __has_include(<SDWebImage/SDWebImage.h>)
|
||||||
|
[SDImageCodersManager.sharedManager addCoder:SDImageWebPCoder.sharedCoder];
|
||||||
|
#endif
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,4 +15,10 @@ target '__$__' do
|
|||||||
# Pods for __$__
|
# Pods for __$__
|
||||||
pod 'DoricCore', "#{version}"
|
pod 'DoricCore', "#{version}"
|
||||||
pod 'DoricDevkit', "#{version}"
|
pod 'DoricDevkit', "#{version}"
|
||||||
|
|
||||||
|
pod 'SDWebImage'
|
||||||
|
|
||||||
|
pod 'SDWebImageWebPCoder'
|
||||||
|
|
||||||
|
pod 'PINCache'
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user