Skip to content

Commit

Permalink
MOD: remove UIKit related category because of apple review in UIWebView
Browse files Browse the repository at this point in the history
Change-Id: Ie33db778c06b3f8f9044072419adb1b21681e4f8
  • Loading branch information
joeshang committed Oct 31, 2019
1 parent 0c19b4b commit ca6eb73
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 16 deletions.
7 changes: 4 additions & 3 deletions YTKNetwork.podspec
@@ -1,15 +1,16 @@
Pod::Spec.new do |s|

s.name = "YTKNetwork"
s.version = "2.0.6"
s.version = "2.1.2"
s.summary = "YTKNetwork is a high level request util based on AFNetworking."
s.homepage = "https://github.com/yuantiku/YTKNetwork"
s.license = "MIT"
s.author = {
"tangqiao" => "tangqiao@fenbi.com",
"lancy" => "lancy@fenbi.com",
"maojj" => "maojj@fenbi.com",
"liujl" => "liujl@fenbi.com"
"liujl" => "liujl@fenbi.com",
"shangcr" => "shangcr@fenbi.com"
}
s.source = { :git => "https://github.com/yuantiku/YTKNetwork.git", :tag => s.version.to_s }
s.source_files = "YTKNetwork/*.{h,m}"
Expand All @@ -23,5 +24,5 @@ Pod::Spec.new do |s|
s.tvos.deployment_target = "9.0"
s.framework = "CFNetwork"

s.dependency "AFNetworking", "~> 3.0"
s.dependency "AFNetworking/NSURLSession", "~> 3.0"
end
6 changes: 0 additions & 6 deletions YTKNetwork/YTKBaseRequest.m
Expand Up @@ -25,12 +25,6 @@
#import "YTKNetworkAgent.h"
#import "YTKNetworkPrivate.h"

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

NSString *const YTKRequestValidationErrorDomain = @"com.yuantiku.request.validation";

@interface YTKBaseRequest ()
Expand Down
6 changes: 3 additions & 3 deletions YTKNetwork/YTKNetworkAgent.m
Expand Up @@ -26,10 +26,10 @@
#import "YTKNetworkPrivate.h"
#import <pthread/pthread.h>

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

#define Lock() pthread_mutex_lock(&_lock)
Expand Down
6 changes: 3 additions & 3 deletions YTKNetwork/YTKNetworkConfig.m
Expand Up @@ -24,10 +24,10 @@
#import "YTKNetworkConfig.h"
#import "YTKBaseRequest.h"

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

@implementation YTKNetworkConfig {
Expand Down
2 changes: 1 addition & 1 deletion YTKNetworkDemo/YTKNetworkDemo/UploadImageApi.m
Expand Up @@ -7,7 +7,7 @@
//

#import "UploadImageApi.h"
#import "AFNetworking.h"
#import <AFNetworking/AFURLRequestSerialization.h>

@implementation UploadImageApi {
UIImage *_image;
Expand Down

0 comments on commit ca6eb73

Please sign in to comment.