iOS:update cli template file

This commit is contained in:
pengfeizhou 2021-02-01 14:57:41 +08:00 committed by osborn
parent c74ceefc42
commit 71e1863249
2 changed files with 13 additions and 0 deletions

View File

@ -8,6 +8,10 @@
#import "AppDelegate.h"
#import <DoricCore/Doric.h>
#if __has_include(<SDWebImage/SDWebImage.h>)
#import <SDWebImage/SDWebImage.h>
#import <SDWebImageWebPCoder/SDWebImageWebPCoder.h>
#endif
@interface AppDelegate ()
@end
@ -15,6 +19,9 @@ @interface AppDelegate ()
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
#if __has_include(<SDWebImage/SDWebImage.h>)
[SDImageCodersManager.sharedManager addCoder:SDImageWebPCoder.sharedCoder];
#endif
return YES;
}

View File

@ -15,4 +15,10 @@ target '__$__' do
# Pods for __$__
pod 'DoricCore', "#{version}"
pod 'DoricDevkit', "#{version}"
pod 'SDWebImage'
pod 'SDWebImageWebPCoder'
pod 'PINCache'
end