Skip to content

Commit

Permalink
Merge pull request CoderZhuXH#214 from LisonFan/master
Browse files Browse the repository at this point in the history
规范第三方库头文件引入
  • Loading branch information
CoderZhuXH authored Apr 30, 2020
2 parents 179ccbe + faba59f commit 503bdd1
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
7 changes: 6 additions & 1 deletion XHLaunchAd/XHLaunchAd/XHLaunchAd.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@
#import "XHLaunchAdImageView+XHLaunchAdCache.h"
#import "XHLaunchAdDownloader.h"
#import "XHLaunchAdCache.h"
#import "FLAnimatedImage.h"
#import "XHLaunchAdController.h"

#if __has_include(<FLAnimatedImage/FLAnimatedImage.h>)
#import <FLAnimatedImage/FLAnimatedImage.h>
#else
#import "FLAnimatedImage.h"
#endif

typedef NS_ENUM(NSInteger, XHLaunchAdType) {
XHLaunchAdTypeImage,
XHLaunchAdTypeVideo
Expand Down
7 changes: 6 additions & 1 deletion XHLaunchAd/XHLaunchAd/XHLaunchAdDownloader.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@

#import "XHLaunchAdDownloader.h"
#import "XHLaunchAdCache.h"
#import "FLAnimatedImage.h"
#import "XHLaunchAdConst.h"

#if __has_include(<FLAnimatedImage/FLAnimatedImage.h>)
#import <FLAnimatedImage/FLAnimatedImage.h>
#else
#import "FLAnimatedImage.h"
#endif

#pragma mark - XHLaunchAdDownload

@interface XHLaunchAdDownload()
Expand Down
7 changes: 6 additions & 1 deletion XHLaunchAd/XHLaunchAd/XHLaunchAdImageView+XHLaunchAdCache.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@
// 代码地址:https://github.com/CoderZhuXH/XHLaunchAd

#import "XHLaunchAdImageView+XHLaunchAdCache.h"
#import "FLAnimatedImage.h"
#import "XHLaunchAdConst.h"

#if __has_include(<FLAnimatedImage/FLAnimatedImage.h>)
#import <FLAnimatedImage/FLAnimatedImage.h>
#else
#import "FLAnimatedImage.h"
#endif

@implementation XHLaunchAdImageView (XHLaunchAdCache)
- (void)xh_setImageWithURL:(nonnull NSURL *)url{
[self xh_setImageWithURL:url placeholderImage:nil];
Expand Down
8 changes: 4 additions & 4 deletions XHLaunchAd/XHLaunchAd/XHLaunchAdView.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
#import <AVKit/AVKit.h>

#if __has_include(<FLAnimatedImage/FLAnimatedImage.h>)
#import <FLAnimatedImage/FLAnimatedImage.h>
#import <FLAnimatedImage/FLAnimatedImage.h>
#else
#import "FLAnimatedImage.h"
#import "FLAnimatedImage.h"
#endif

#if __has_include(<FLAnimatedImage/FLAnimatedImageView.h>)
#import <FLAnimatedImage/FLAnimatedImageView.h>
#import <FLAnimatedImage/FLAnimatedImageView.h>
#else
#import "FLAnimatedImageView.h"
#import "FLAnimatedImageView.h"
#endif


Expand Down

0 comments on commit 503bdd1

Please sign in to comment.