Parcourir la source

Updated Library to support watchOS

Kevin Harwood il y a 10 ans
Parent
commit
d184833fa0

+ 8 - 2
AFNetworking.podspec

@@ -11,12 +11,14 @@ Pod::Spec.new do |s|
 
 
   s.ios.deployment_target = '6.0'
   s.ios.deployment_target = '6.0'
   s.osx.deployment_target = '10.8'
   s.osx.deployment_target = '10.8'
+  s.watchos.deployment_target = '2.0'
 
 
   s.public_header_files = 'AFNetworking/*.h'
   s.public_header_files = 'AFNetworking/*.h'
   s.source_files = 'AFNetworking/AFNetworking.h'
   s.source_files = 'AFNetworking/AFNetworking.h'
 
 
   s.subspec 'Serialization' do |ss|
   s.subspec 'Serialization' do |ss|
     ss.source_files = 'AFNetworking/AFURL{Request,Response}Serialization.{h,m}'
     ss.source_files = 'AFNetworking/AFURL{Request,Response}Serialization.{h,m}'
+    ss.watchos.frameworks = 'MobileCoreServices', 'CoreGraphics'
     ss.ios.frameworks = 'MobileCoreServices', 'CoreGraphics'
     ss.ios.frameworks = 'MobileCoreServices', 'CoreGraphics'
     ss.osx.frameworks = 'CoreServices'
     ss.osx.frameworks = 'CoreServices'
   end
   end
@@ -28,7 +30,8 @@ Pod::Spec.new do |s|
 
 
   s.subspec 'Reachability' do |ss|
   s.subspec 'Reachability' do |ss|
     ss.source_files = 'AFNetworking/AFNetworkReachabilityManager.{h,m}'
     ss.source_files = 'AFNetworking/AFNetworkReachabilityManager.{h,m}'
-    ss.frameworks = 'SystemConfiguration'
+    ss.ios.frameworks = 'SystemConfiguration'
+    ss.osx.frameworks = 'SystemConfiguration'
   end
   end
 
 
   s.subspec 'NSURLConnection' do |ss|
   s.subspec 'NSURLConnection' do |ss|
@@ -36,7 +39,9 @@ Pod::Spec.new do |s|
     ss.dependency 'AFNetworking/Reachability'
     ss.dependency 'AFNetworking/Reachability'
     ss.dependency 'AFNetworking/Security'
     ss.dependency 'AFNetworking/Security'
 
 
-    ss.source_files = 'AFNetworking/AFURLConnectionOperation.{h,m}', 'AFNetworking/AFHTTPRequestOperation.{h,m}', 'AFNetworking/AFHTTPRequestOperationManager.{h,m}'
+    ss.ios.source_files = 'AFNetworking/AFURLConnectionOperation.{h,m}', 'AFNetworking/AFHTTPRequestOperation.{h,m}', 'AFNetworking/AFHTTPRequestOperationManager.{h,m}'
+    ss.osx.source_files = 'AFNetworking/AFURLConnectionOperation.{h,m}', 'AFNetworking/AFHTTPRequestOperation.{h,m}', 'AFNetworking/AFHTTPRequestOperationManager.{h,m}'
+    ss.watchos.source_files = ''
   end
   end
 
 
   s.subspec 'NSURLSession' do |ss|
   s.subspec 'NSURLSession' do |ss|
@@ -56,5 +61,6 @@ Pod::Spec.new do |s|
     ss.ios.public_header_files = 'UIKit+AFNetworking/*.h'
     ss.ios.public_header_files = 'UIKit+AFNetworking/*.h'
     ss.ios.source_files = 'UIKit+AFNetworking'
     ss.ios.source_files = 'UIKit+AFNetworking'
     ss.osx.source_files = ''
     ss.osx.source_files = ''
+    ss.watchos.source_files = ''
   end
   end
 end
 end

+ 3 - 1
AFNetworking/AFHTTPSessionManager.h

@@ -20,7 +20,9 @@
 // THE SOFTWARE.
 // THE SOFTWARE.
 
 
 #import <Foundation/Foundation.h>
 #import <Foundation/Foundation.h>
+#if !TARGET_OS_WATCH
 #import <SystemConfiguration/SystemConfiguration.h>
 #import <SystemConfiguration/SystemConfiguration.h>
+#endif
 #import <Availability.h>
 #import <Availability.h>
 
 
 #if __IPHONE_OS_VERSION_MIN_REQUIRED
 #if __IPHONE_OS_VERSION_MIN_REQUIRED
@@ -77,7 +79,7 @@
  @warning Managers for background sessions must be owned for the duration of their use. This can be accomplished by creating an application-wide or shared singleton instance.
  @warning Managers for background sessions must be owned for the duration of their use. This can be accomplished by creating an application-wide or shared singleton instance.
  */
  */
 
 
-#if (defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000) || (defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 1090)
+#if (defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000) || (defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 1090) || TARGET_OS_WATCH
 
 
 NS_ASSUME_NONNULL_BEGIN
 NS_ASSUME_NONNULL_BEGIN
 
 

+ 4 - 2
AFNetworking/AFHTTPSessionManager.m

@@ -21,7 +21,7 @@
 
 
 #import "AFHTTPSessionManager.h"
 #import "AFHTTPSessionManager.h"
 
 
-#if (defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000) || (defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 1090)
+#if (defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000) || (defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 1090) || TARGET_WATCH_OS
 
 
 #import "AFURLRequestSerialization.h"
 #import "AFURLRequestSerialization.h"
 #import "AFURLResponseSerialization.h"
 #import "AFURLResponseSerialization.h"
@@ -37,8 +37,10 @@
 #import <netdb.h>
 #import <netdb.h>
 #endif
 #endif
 
 
-#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED)
+#if TARGET_OS_IOS
 #import <UIKit/UIKit.h>
 #import <UIKit/UIKit.h>
+#elif TARGET_OS_WATCH
+#import <WatchKit/WatchKit.h>
 #endif
 #endif
 
 
 @interface AFHTTPSessionManager ()
 @interface AFHTTPSessionManager ()

+ 3 - 0
AFNetworking/AFNetworkReachabilityManager.h

@@ -20,6 +20,8 @@
 // THE SOFTWARE.
 // THE SOFTWARE.
 
 
 #import <Foundation/Foundation.h>
 #import <Foundation/Foundation.h>
+
+#if !TARGET_OS_WATCH
 #import <SystemConfiguration/SystemConfiguration.h>
 #import <SystemConfiguration/SystemConfiguration.h>
 
 
 #ifndef NS_DESIGNATED_INITIALIZER
 #ifndef NS_DESIGNATED_INITIALIZER
@@ -202,3 +204,4 @@ extern NSString * const AFNetworkingReachabilityNotificationStatusItem;
 extern NSString * AFStringFromNetworkReachabilityStatus(AFNetworkReachabilityStatus status);
 extern NSString * AFStringFromNetworkReachabilityStatus(AFNetworkReachabilityStatus status);
 
 
 NS_ASSUME_NONNULL_END
 NS_ASSUME_NONNULL_END
+#endif

+ 2 - 0
AFNetworking/AFNetworkReachabilityManager.m

@@ -20,6 +20,7 @@
 // THE SOFTWARE.
 // THE SOFTWARE.
 
 
 #import "AFNetworkReachabilityManager.h"
 #import "AFNetworkReachabilityManager.h"
+#if !TARGET_OS_WATCH
 
 
 #import <netinet/in.h>
 #import <netinet/in.h>
 #import <netinet6/in6.h>
 #import <netinet6/in6.h>
@@ -262,3 +263,4 @@ static void AFNetworkReachabilityReleaseCallback(const void *info) {
 }
 }
 
 
 @end
 @end
+#endif

+ 4 - 2
AFNetworking/AFNetworking.h

@@ -29,14 +29,16 @@
     #import "AFURLRequestSerialization.h"
     #import "AFURLRequestSerialization.h"
     #import "AFURLResponseSerialization.h"
     #import "AFURLResponseSerialization.h"
     #import "AFSecurityPolicy.h"
     #import "AFSecurityPolicy.h"
+#if !TARGET_OS_WATCH
     #import "AFNetworkReachabilityManager.h"
     #import "AFNetworkReachabilityManager.h"
-
     #import "AFURLConnectionOperation.h"
     #import "AFURLConnectionOperation.h"
     #import "AFHTTPRequestOperation.h"
     #import "AFHTTPRequestOperation.h"
     #import "AFHTTPRequestOperationManager.h"
     #import "AFHTTPRequestOperationManager.h"
+#endif
 
 
 #if ( ( defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 1090) || \
 #if ( ( defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 1090) || \
-      ( defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000 ) )
+      ( defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000 ) || \
+       TARGET_OS_WATCH )
     #import "AFURLSessionManager.h"
     #import "AFURLSessionManager.h"
     #import "AFHTTPSessionManager.h"
     #import "AFHTTPSessionManager.h"
 #endif
 #endif

+ 2 - 2
AFNetworking/AFSecurityPolicy.m

@@ -23,7 +23,7 @@
 
 
 #import <AssertMacros.h>
 #import <AssertMacros.h>
 
 
-#if !defined(__IPHONE_OS_VERSION_MIN_REQUIRED)
+#if !TARGET_OS_IOS && !TARGET_OS_WATCH
 static NSData * AFSecKeyGetData(SecKeyRef key) {
 static NSData * AFSecKeyGetData(SecKeyRef key) {
     CFDataRef data = NULL;
     CFDataRef data = NULL;
 
 
@@ -41,7 +41,7 @@ _out:
 #endif
 #endif
 
 
 static BOOL AFSecKeyIsEqualToKey(SecKeyRef key1, SecKeyRef key2) {
 static BOOL AFSecKeyIsEqualToKey(SecKeyRef key1, SecKeyRef key2) {
-#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED)
+#if TARGET_OS_IOS || TARGET_OS_WATCH
     return [(__bridge id)key1 isEqual:(__bridge id)key2];
     return [(__bridge id)key1 isEqual:(__bridge id)key2];
 #else
 #else
     return [AFSecKeyGetData(key1) isEqual:AFSecKeyGetData(key2)];
     return [AFSecKeyGetData(key1) isEqual:AFSecKeyGetData(key2)];

+ 3 - 1
AFNetworking/AFURLRequestSerialization.h

@@ -20,8 +20,10 @@
 // THE SOFTWARE.
 // THE SOFTWARE.
 
 
 #import <Foundation/Foundation.h>
 #import <Foundation/Foundation.h>
-#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED)
+#if TARGET_OS_IOS
 #import <UIKit/UIKit.h>
 #import <UIKit/UIKit.h>
+#elif TARGET_OS_WATCH
+#import <WatchKit/WatchKit.h>
 #endif
 #endif
 
 
 NS_ASSUME_NONNULL_BEGIN
 NS_ASSUME_NONNULL_BEGIN

+ 4 - 1
AFNetworking/AFURLRequestSerialization.m

@@ -215,9 +215,12 @@ static void *AFHTTPRequestSerializerObserverContext = &AFHTTPRequestSerializerOb
     NSString *userAgent = nil;
     NSString *userAgent = nil;
 #pragma clang diagnostic push
 #pragma clang diagnostic push
 #pragma clang diagnostic ignored "-Wgnu"
 #pragma clang diagnostic ignored "-Wgnu"
-#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED)
+#if TARGET_OS_IOS
     // User-Agent Header; see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.43
     // User-Agent Header; see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.43
     userAgent = [NSString stringWithFormat:@"%@/%@ (%@; iOS %@; Scale/%0.2f)", [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleExecutableKey] ?: [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleIdentifierKey], [[NSBundle mainBundle] infoDictionary][@"CFBundleShortVersionString"] ?: [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleVersionKey], [[UIDevice currentDevice] model], [[UIDevice currentDevice] systemVersion], [[UIScreen mainScreen] scale]];
     userAgent = [NSString stringWithFormat:@"%@/%@ (%@; iOS %@; Scale/%0.2f)", [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleExecutableKey] ?: [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleIdentifierKey], [[NSBundle mainBundle] infoDictionary][@"CFBundleShortVersionString"] ?: [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleVersionKey], [[UIDevice currentDevice] model], [[UIDevice currentDevice] systemVersion], [[UIScreen mainScreen] scale]];
+#elif TARGET_OS_WATCH
+    // User-Agent Header; see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.43
+    userAgent = [NSString stringWithFormat:@"%@/%@ (%@; watchOS %@; Scale/%0.2f)", [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleExecutableKey] ?: [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleIdentifierKey], [[NSBundle mainBundle] infoDictionary][@"CFBundleShortVersionString"] ?: [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleVersionKey], [[WKInterfaceDevice currentDevice] model], [[WKInterfaceDevice currentDevice] systemVersion], [[WKInterfaceDevice currentDevice] screenScale]];
 #elif defined(__MAC_OS_X_VERSION_MIN_REQUIRED)
 #elif defined(__MAC_OS_X_VERSION_MIN_REQUIRED)
     userAgent = [NSString stringWithFormat:@"%@/%@ (Mac OS X %@)", [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleExecutableKey] ?: [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleIdentifierKey], [[NSBundle mainBundle] infoDictionary][@"CFBundleShortVersionString"] ?: [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleVersionKey], [[NSProcessInfo processInfo] operatingSystemVersionString]];
     userAgent = [NSString stringWithFormat:@"%@/%@ (Mac OS X %@)", [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleExecutableKey] ?: [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleIdentifierKey], [[NSBundle mainBundle] infoDictionary][@"CFBundleShortVersionString"] ?: [[NSBundle mainBundle] infoDictionary][(__bridge NSString *)kCFBundleVersionKey], [[NSProcessInfo processInfo] operatingSystemVersionString]];
 #endif
 #endif

+ 7 - 2
AFNetworking/AFURLResponseSerialization.m

@@ -21,8 +21,10 @@
 
 
 #import "AFURLResponseSerialization.h"
 #import "AFURLResponseSerialization.h"
 
 
-#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED)
+#if TARGET_OS_IOS
 #import <UIKit/UIKit.h>
 #import <UIKit/UIKit.h>
+#elif TARGET_OS_WATCH
+#import <WatchKit/WatchKit.h>
 #elif defined(__MAC_OS_X_VERSION_MIN_REQUIRED)
 #elif defined(__MAC_OS_X_VERSION_MIN_REQUIRED)
 #import <Cocoa/Cocoa.h>
 #import <Cocoa/Cocoa.h>
 #endif
 #endif
@@ -665,9 +667,12 @@ static UIImage * AFInflatedImageFromResponseWithDataAtScale(NSHTTPURLResponse *r
 
 
     self.acceptableContentTypes = [[NSSet alloc] initWithObjects:@"image/tiff", @"image/jpeg", @"image/gif", @"image/png", @"image/ico", @"image/x-icon", @"image/bmp", @"image/x-bmp", @"image/x-xbitmap", @"image/x-win-bitmap", nil];
     self.acceptableContentTypes = [[NSSet alloc] initWithObjects:@"image/tiff", @"image/jpeg", @"image/gif", @"image/png", @"image/ico", @"image/x-icon", @"image/bmp", @"image/x-bmp", @"image/x-xbitmap", @"image/x-win-bitmap", nil];
 
 
-#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED)
+#if TARGET_OS_IOS
     self.imageScale = [[UIScreen mainScreen] scale];
     self.imageScale = [[UIScreen mainScreen] scale];
     self.automaticallyInflatesResponseImage = YES;
     self.automaticallyInflatesResponseImage = YES;
+#elif  TARGET_OS_WATCH
+    self.imageScale = [[WKInterfaceDevice currentDevice] screenScale];
+    self.automaticallyInflatesResponseImage = YES;
 #endif
 #endif
 
 
     return self;
     return self;

+ 5 - 1
AFNetworking/AFURLSessionManager.h

@@ -24,7 +24,9 @@
 #import "AFURLResponseSerialization.h"
 #import "AFURLResponseSerialization.h"
 #import "AFURLRequestSerialization.h"
 #import "AFURLRequestSerialization.h"
 #import "AFSecurityPolicy.h"
 #import "AFSecurityPolicy.h"
+#if !TARGET_OS_WATCH
 #import "AFNetworkReachabilityManager.h"
 #import "AFNetworkReachabilityManager.h"
+#endif
 
 
 #ifndef NS_DESIGNATED_INITIALIZER
 #ifndef NS_DESIGNATED_INITIALIZER
 #if __has_attribute(objc_designated_initializer)
 #if __has_attribute(objc_designated_initializer)
@@ -91,7 +93,7 @@
 
 
 NS_ASSUME_NONNULL_BEGIN
 NS_ASSUME_NONNULL_BEGIN
 
 
-#if (defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000) || (defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 1090)
+#if (defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000) || (defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 1090) || TARGET_OS_WATCH
 
 
 @interface AFURLSessionManager : NSObject <NSURLSessionDelegate, NSURLSessionTaskDelegate, NSURLSessionDataDelegate, NSURLSessionDownloadDelegate, NSSecureCoding, NSCopying>
 @interface AFURLSessionManager : NSObject <NSURLSessionDelegate, NSURLSessionTaskDelegate, NSURLSessionDataDelegate, NSURLSessionDownloadDelegate, NSSecureCoding, NSCopying>
 
 
@@ -121,6 +123,7 @@ NS_ASSUME_NONNULL_BEGIN
  */
  */
 @property (nonatomic, strong) AFSecurityPolicy *securityPolicy;
 @property (nonatomic, strong) AFSecurityPolicy *securityPolicy;
 
 
+#if !TARGET_OS_WATCH
 ///--------------------------------------
 ///--------------------------------------
 /// @name Monitoring Network Reachability
 /// @name Monitoring Network Reachability
 ///--------------------------------------
 ///--------------------------------------
@@ -129,6 +132,7 @@ NS_ASSUME_NONNULL_BEGIN
  The network reachability manager. `AFURLSessionManager` uses the `sharedManager` by default.
  The network reachability manager. `AFURLSessionManager` uses the `sharedManager` by default.
  */
  */
 @property (readwrite, nonatomic, strong) AFNetworkReachabilityManager *reachabilityManager;
 @property (readwrite, nonatomic, strong) AFNetworkReachabilityManager *reachabilityManager;
+#endif
 
 
 ///----------------------------
 ///----------------------------
 /// @name Getting Session Tasks
 /// @name Getting Session Tasks

+ 2 - 0
AFNetworking/AFURLSessionManager.m

@@ -436,7 +436,9 @@ static NSString * const AFNSURLSessionTaskDidSuspendNotification = @"com.alamofi
 
 
     self.securityPolicy = [AFSecurityPolicy defaultPolicy];
     self.securityPolicy = [AFSecurityPolicy defaultPolicy];
 
 
+#if !TARGET_OS_WATCH
     self.reachabilityManager = [AFNetworkReachabilityManager sharedManager];
     self.reachabilityManager = [AFNetworkReachabilityManager sharedManager];
+#endif
 
 
     self.mutableTaskDelegatesKeyedByTaskIdentifier = [[NSMutableDictionary alloc] init];
     self.mutableTaskDelegatesKeyedByTaskIdentifier = [[NSMutableDictionary alloc] init];
 
 

+ 386 - 0
Example/AFNetworking iOS Example.xcodeproj/project.pbxproj

@@ -9,6 +9,21 @@
 /* Begin PBXBuildFile section */
 /* Begin PBXBuildFile section */
 		297F56CA17A9B1AB0014D95C /* AFSecurityPolicy.m in Sources */ = {isa = PBXBuildFile; fileRef = 297F56C917A9B1AB0014D95C /* AFSecurityPolicy.m */; };
 		297F56CA17A9B1AB0014D95C /* AFSecurityPolicy.m in Sources */ = {isa = PBXBuildFile; fileRef = 297F56C917A9B1AB0014D95C /* AFSecurityPolicy.m */; };
 		2982AD3217107C0000FFF048 /* adn.cer in Resources */ = {isa = PBXBuildFile; fileRef = 2982AD3117107C0000FFF048 /* adn.cer */; };
 		2982AD3217107C0000FFF048 /* adn.cer in Resources */ = {isa = PBXBuildFile; fileRef = 2982AD3117107C0000FFF048 /* adn.cer */; };
+		29900D0A1B6FB14000DE5662 /* Interface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 29900D081B6FB14000DE5662 /* Interface.storyboard */; };
+		29900D0C1B6FB14000DE5662 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 29900D0B1B6FB14000DE5662 /* Assets.xcassets */; };
+		29900D131B6FB14000DE5662 /* AFNetworking watchOS Extension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 29900D121B6FB14000DE5662 /* AFNetworking watchOS Extension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
+		29900D191B6FB14000DE5662 /* InterfaceController.m in Sources */ = {isa = PBXBuildFile; fileRef = 29900D181B6FB14000DE5662 /* InterfaceController.m */; };
+		29900D1C1B6FB14000DE5662 /* ExtensionDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 29900D1B1B6FB14000DE5662 /* ExtensionDelegate.m */; };
+		29900D1E1B6FB14000DE5662 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 29900D1D1B6FB14000DE5662 /* Assets.xcassets */; };
+		29900D221B6FB14000DE5662 /* AFNetworking watchOS.app in Embed Watch Content */ = {isa = PBXBuildFile; fileRef = 29900D061B6FB14000DE5662 /* AFNetworking watchOS.app */; };
+		29900D2B1B6FB19000DE5662 /* AFSecurityPolicy.m in Sources */ = {isa = PBXBuildFile; fileRef = 297F56C917A9B1AB0014D95C /* AFSecurityPolicy.m */; };
+		29900D2D1B6FB23000DE5662 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 29900D2C1B6FB23000DE5662 /* Security.framework */; };
+		29900D2F1B6FB56A00DE5662 /* AFURLRequestSerialization.m in Sources */ = {isa = PBXBuildFile; fileRef = F8D5499C17DB0EFE00BFF314 /* AFURLRequestSerialization.m */; };
+		29900D301B6FB66800DE5662 /* AFURLResponseSerialization.m in Sources */ = {isa = PBXBuildFile; fileRef = F8D5499917DB0EF300BFF314 /* AFURLResponseSerialization.m */; };
+		29900D311B6FB6FA00DE5662 /* AFNetworkReachabilityManager.m in Sources */ = {isa = PBXBuildFile; fileRef = F8D5499F17DB1C9100BFF314 /* AFNetworkReachabilityManager.m */; };
+		29900D321B6FB7CC00DE5662 /* AFURLSessionManager.m in Sources */ = {isa = PBXBuildFile; fileRef = F86A37DF177397D900407E52 /* AFURLSessionManager.m */; };
+		29900D341B6FB87100DE5662 /* AFHTTPSessionManager.m in Sources */ = {isa = PBXBuildFile; fileRef = F8FA949D150EFEC100ED4EAD /* AFHTTPSessionManager.m */; };
+		29900D361B6FB93700DE5662 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 29900D351B6FB93700DE5662 /* MobileCoreServices.framework */; };
 		E8C2E7A618970EE40097DCC8 /* root_ca.cer in Resources */ = {isa = PBXBuildFile; fileRef = E8C2E7A418970EE00097DCC8 /* root_ca.cer */; };
 		E8C2E7A618970EE40097DCC8 /* root_ca.cer in Resources */ = {isa = PBXBuildFile; fileRef = E8C2E7A418970EE00097DCC8 /* root_ca.cer */; };
 		E8C2E7A718970EE40097DCC8 /* digicert_ca_3.cer in Resources */ = {isa = PBXBuildFile; fileRef = E8C2E7A518970EE00097DCC8 /* digicert_ca_3.cer */; };
 		E8C2E7A718970EE40097DCC8 /* digicert_ca_3.cer in Resources */ = {isa = PBXBuildFile; fileRef = E8C2E7A518970EE00097DCC8 /* digicert_ca_3.cer */; };
 		EB1E89E91B669AB400B40518 /* profile-image-placeholder.png in Resources */ = {isa = PBXBuildFile; fileRef = F8FA94CC150F094D00ED4EAD /* profile-image-placeholder.png */; };
 		EB1E89E91B669AB400B40518 /* profile-image-placeholder.png in Resources */ = {isa = PBXBuildFile; fileRef = F8FA94CC150F094D00ED4EAD /* profile-image-placeholder.png */; };
@@ -77,6 +92,20 @@
 /* End PBXBuildFile section */
 /* End PBXBuildFile section */
 
 
 /* Begin PBXContainerItemProxy section */
 /* Begin PBXContainerItemProxy section */
+		29900D141B6FB14000DE5662 /* PBXContainerItemProxy */ = {
+			isa = PBXContainerItemProxy;
+			containerPortal = F8E469571395739C00DB05C8 /* Project object */;
+			proxyType = 1;
+			remoteGlobalIDString = 29900D111B6FB14000DE5662;
+			remoteInfo = "AFNetworking watchOS Extension";
+		};
+		29900D201B6FB14000DE5662 /* PBXContainerItemProxy */ = {
+			isa = PBXContainerItemProxy;
+			containerPortal = F8E469571395739C00DB05C8 /* Project object */;
+			proxyType = 1;
+			remoteGlobalIDString = 29900D051B6FB14000DE5662;
+			remoteInfo = "AFNetworking watchOS";
+		};
 		EBE11F531B62EDD200753127 /* PBXContainerItemProxy */ = {
 		EBE11F531B62EDD200753127 /* PBXContainerItemProxy */ = {
 			isa = PBXContainerItemProxy;
 			isa = PBXContainerItemProxy;
 			containerPortal = F8E469571395739C00DB05C8 /* Project object */;
 			containerPortal = F8E469571395739C00DB05C8 /* Project object */;
@@ -87,6 +116,28 @@
 /* End PBXContainerItemProxy section */
 /* End PBXContainerItemProxy section */
 
 
 /* Begin PBXCopyFilesBuildPhase section */
 /* Begin PBXCopyFilesBuildPhase section */
+		29900D281B6FB14000DE5662 /* Embed App Extensions */ = {
+			isa = PBXCopyFilesBuildPhase;
+			buildActionMask = 2147483647;
+			dstPath = "";
+			dstSubfolderSpec = 13;
+			files = (
+				29900D131B6FB14000DE5662 /* AFNetworking watchOS Extension.appex in Embed App Extensions */,
+			);
+			name = "Embed App Extensions";
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+		29900D2A1B6FB14000DE5662 /* Embed Watch Content */ = {
+			isa = PBXCopyFilesBuildPhase;
+			buildActionMask = 2147483647;
+			dstPath = "$(CONTENTS_FOLDER_PATH)/Watch";
+			dstSubfolderSpec = 16;
+			files = (
+				29900D221B6FB14000DE5662 /* AFNetworking watchOS.app in Embed Watch Content */,
+			);
+			name = "Embed Watch Content";
+			runOnlyForDeploymentPostprocessing = 0;
+		};
 		EBE11F551B62EDD200753127 /* Embed App Extensions */ = {
 		EBE11F551B62EDD200753127 /* Embed App Extensions */ = {
 			isa = PBXCopyFilesBuildPhase;
 			isa = PBXCopyFilesBuildPhase;
 			buildActionMask = 2147483647;
 			buildActionMask = 2147483647;
@@ -104,6 +155,19 @@
 		297F56C817A9B1AB0014D95C /* AFSecurityPolicy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFSecurityPolicy.h; sourceTree = "<group>"; };
 		297F56C817A9B1AB0014D95C /* AFSecurityPolicy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFSecurityPolicy.h; sourceTree = "<group>"; };
 		297F56C917A9B1AB0014D95C /* AFSecurityPolicy.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFSecurityPolicy.m; sourceTree = "<group>"; };
 		297F56C917A9B1AB0014D95C /* AFSecurityPolicy.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFSecurityPolicy.m; sourceTree = "<group>"; };
 		2982AD3117107C0000FFF048 /* adn.cer */ = {isa = PBXFileReference; lastKnownFileType = file; path = adn.cer; sourceTree = SOURCE_ROOT; };
 		2982AD3117107C0000FFF048 /* adn.cer */ = {isa = PBXFileReference; lastKnownFileType = file; path = adn.cer; sourceTree = SOURCE_ROOT; };
+		29900D061B6FB14000DE5662 /* AFNetworking watchOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "AFNetworking watchOS.app"; sourceTree = BUILT_PRODUCTS_DIR; };
+		29900D091B6FB14000DE5662 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Interface.storyboard; sourceTree = "<group>"; };
+		29900D0B1B6FB14000DE5662 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
+		29900D0D1B6FB14000DE5662 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+		29900D121B6FB14000DE5662 /* AFNetworking watchOS Extension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "AFNetworking watchOS Extension.appex"; sourceTree = BUILT_PRODUCTS_DIR; };
+		29900D171B6FB14000DE5662 /* InterfaceController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = InterfaceController.h; sourceTree = "<group>"; };
+		29900D181B6FB14000DE5662 /* InterfaceController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = InterfaceController.m; sourceTree = "<group>"; };
+		29900D1A1B6FB14000DE5662 /* ExtensionDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ExtensionDelegate.h; sourceTree = "<group>"; };
+		29900D1B1B6FB14000DE5662 /* ExtensionDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ExtensionDelegate.m; sourceTree = "<group>"; };
+		29900D1D1B6FB14000DE5662 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
+		29900D1F1B6FB14000DE5662 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+		29900D2C1B6FB23000DE5662 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = Platforms/WatchOS.platform/Developer/SDKs/WatchOS2.0.sdk/System/Library/Frameworks/Security.framework; sourceTree = DEVELOPER_DIR; };
+		29900D351B6FB93700DE5662 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = Platforms/WatchOS.platform/Developer/SDKs/WatchOS2.0.sdk/System/Library/Frameworks/MobileCoreServices.framework; sourceTree = DEVELOPER_DIR; };
 		50ABD6EC159FC2CE001BE42C /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; };
 		50ABD6EC159FC2CE001BE42C /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; };
 		55BDA27E17F5A434005DB933 /* UIKit+AFNetworking.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIKit+AFNetworking.h"; sourceTree = "<group>"; };
 		55BDA27E17F5A434005DB933 /* UIKit+AFNetworking.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIKit+AFNetworking.h"; sourceTree = "<group>"; };
 		E8C2E7A418970EE00097DCC8 /* root_ca.cer */ = {isa = PBXFileReference; lastKnownFileType = file; path = root_ca.cer; sourceTree = SOURCE_ROOT; };
 		E8C2E7A418970EE00097DCC8 /* root_ca.cer */ = {isa = PBXFileReference; lastKnownFileType = file; path = root_ca.cer; sourceTree = SOURCE_ROOT; };
@@ -179,6 +243,15 @@
 /* End PBXFileReference section */
 /* End PBXFileReference section */
 
 
 /* Begin PBXFrameworksBuildPhase section */
 /* Begin PBXFrameworksBuildPhase section */
+		29900D0F1B6FB14000DE5662 /* Frameworks */ = {
+			isa = PBXFrameworksBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				29900D361B6FB93700DE5662 /* MobileCoreServices.framework in Frameworks */,
+				29900D2D1B6FB23000DE5662 /* Security.framework in Frameworks */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
 		EBE11F451B62EDD200753127 /* Frameworks */ = {
 		EBE11F451B62EDD200753127 /* Frameworks */ = {
 			isa = PBXFrameworksBuildPhase;
 			isa = PBXFrameworksBuildPhase;
 			buildActionMask = 2147483647;
 			buildActionMask = 2147483647;
@@ -204,6 +277,29 @@
 /* End PBXFrameworksBuildPhase section */
 /* End PBXFrameworksBuildPhase section */
 
 
 /* Begin PBXGroup section */
 /* Begin PBXGroup section */
+		29900D071B6FB14000DE5662 /* AFNetworking watchOS */ = {
+			isa = PBXGroup;
+			children = (
+				29900D081B6FB14000DE5662 /* Interface.storyboard */,
+				29900D0B1B6FB14000DE5662 /* Assets.xcassets */,
+				29900D0D1B6FB14000DE5662 /* Info.plist */,
+			);
+			path = "AFNetworking watchOS";
+			sourceTree = "<group>";
+		};
+		29900D161B6FB14000DE5662 /* AFNetworking watchOS Extension */ = {
+			isa = PBXGroup;
+			children = (
+				29900D171B6FB14000DE5662 /* InterfaceController.h */,
+				29900D181B6FB14000DE5662 /* InterfaceController.m */,
+				29900D1A1B6FB14000DE5662 /* ExtensionDelegate.h */,
+				29900D1B1B6FB14000DE5662 /* ExtensionDelegate.m */,
+				29900D1D1B6FB14000DE5662 /* Assets.xcassets */,
+				29900D1F1B6FB14000DE5662 /* Info.plist */,
+			);
+			path = "AFNetworking watchOS Extension";
+			sourceTree = "<group>";
+		};
 		EBE11F4B1B62EDD200753127 /* Today Extension */ = {
 		EBE11F4B1B62EDD200753127 /* Today Extension */ = {
 			isa = PBXGroup;
 			isa = PBXGroup;
 			children = (
 			children = (
@@ -344,6 +440,8 @@
 				F8E469ED1395812A00DB05C8 /* Images */,
 				F8E469ED1395812A00DB05C8 /* Images */,
 				F8E469931395743A00DB05C8 /* Vendor */,
 				F8E469931395743A00DB05C8 /* Vendor */,
 				EBE11F4B1B62EDD200753127 /* Today Extension */,
 				EBE11F4B1B62EDD200753127 /* Today Extension */,
+				29900D071B6FB14000DE5662 /* AFNetworking watchOS */,
+				29900D161B6FB14000DE5662 /* AFNetworking watchOS Extension */,
 				F8E469631395739D00DB05C8 /* Frameworks */,
 				F8E469631395739D00DB05C8 /* Frameworks */,
 				F8E469611395739C00DB05C8 /* Products */,
 				F8E469611395739C00DB05C8 /* Products */,
 			);
 			);
@@ -357,6 +455,8 @@
 			children = (
 			children = (
 				F8E469601395739C00DB05C8 /* AFNetworking iOS Example.app */,
 				F8E469601395739C00DB05C8 /* AFNetworking iOS Example.app */,
 				EBE11F481B62EDD200753127 /* Today Extension.appex */,
 				EBE11F481B62EDD200753127 /* Today Extension.appex */,
+				29900D061B6FB14000DE5662 /* AFNetworking watchOS.app */,
+				29900D121B6FB14000DE5662 /* AFNetworking watchOS Extension.appex */,
 			);
 			);
 			name = Products;
 			name = Products;
 			sourceTree = "<group>";
 			sourceTree = "<group>";
@@ -364,6 +464,8 @@
 		F8E469631395739D00DB05C8 /* Frameworks */ = {
 		F8E469631395739D00DB05C8 /* Frameworks */ = {
 			isa = PBXGroup;
 			isa = PBXGroup;
 			children = (
 			children = (
+				29900D351B6FB93700DE5662 /* MobileCoreServices.framework */,
+				29900D2C1B6FB23000DE5662 /* Security.framework */,
 				50ABD6EC159FC2CE001BE42C /* MobileCoreServices.framework */,
 				50ABD6EC159FC2CE001BE42C /* MobileCoreServices.framework */,
 				F8E469E213957DF700DB05C8 /* SystemConfiguration.framework */,
 				F8E469E213957DF700DB05C8 /* SystemConfiguration.framework */,
 				F8E469E013957DF100DB05C8 /* Security.framework */,
 				F8E469E013957DF100DB05C8 /* Security.framework */,
@@ -450,6 +552,40 @@
 /* End PBXGroup section */
 /* End PBXGroup section */
 
 
 /* Begin PBXNativeTarget section */
 /* Begin PBXNativeTarget section */
+		29900D051B6FB14000DE5662 /* AFNetworking watchOS */ = {
+			isa = PBXNativeTarget;
+			buildConfigurationList = 29900D291B6FB14000DE5662 /* Build configuration list for PBXNativeTarget "AFNetworking watchOS" */;
+			buildPhases = (
+				29900D041B6FB14000DE5662 /* Resources */,
+				29900D281B6FB14000DE5662 /* Embed App Extensions */,
+			);
+			buildRules = (
+			);
+			dependencies = (
+				29900D151B6FB14000DE5662 /* PBXTargetDependency */,
+			);
+			name = "AFNetworking watchOS";
+			productName = "AFNetworking watchOS";
+			productReference = 29900D061B6FB14000DE5662 /* AFNetworking watchOS.app */;
+			productType = "com.apple.product-type.application.watchapp2";
+		};
+		29900D111B6FB14000DE5662 /* AFNetworking watchOS Extension */ = {
+			isa = PBXNativeTarget;
+			buildConfigurationList = 29900D271B6FB14000DE5662 /* Build configuration list for PBXNativeTarget "AFNetworking watchOS Extension" */;
+			buildPhases = (
+				29900D0E1B6FB14000DE5662 /* Sources */,
+				29900D0F1B6FB14000DE5662 /* Frameworks */,
+				29900D101B6FB14000DE5662 /* Resources */,
+			);
+			buildRules = (
+			);
+			dependencies = (
+			);
+			name = "AFNetworking watchOS Extension";
+			productName = "AFNetworking watchOS Extension";
+			productReference = 29900D121B6FB14000DE5662 /* AFNetworking watchOS Extension.appex */;
+			productType = "com.apple.product-type.watchkit2-extension";
+		};
 		EBE11F471B62EDD200753127 /* Today Extension */ = {
 		EBE11F471B62EDD200753127 /* Today Extension */ = {
 			isa = PBXNativeTarget;
 			isa = PBXNativeTarget;
 			buildConfigurationList = EBE11F591B62EDD200753127 /* Build configuration list for PBXNativeTarget "Today Extension" */;
 			buildConfigurationList = EBE11F591B62EDD200753127 /* Build configuration list for PBXNativeTarget "Today Extension" */;
@@ -475,11 +611,13 @@
 				F8E4695D1395739C00DB05C8 /* Frameworks */,
 				F8E4695D1395739C00DB05C8 /* Frameworks */,
 				F8E4695E1395739C00DB05C8 /* Resources */,
 				F8E4695E1395739C00DB05C8 /* Resources */,
 				EBE11F551B62EDD200753127 /* Embed App Extensions */,
 				EBE11F551B62EDD200753127 /* Embed App Extensions */,
+				29900D2A1B6FB14000DE5662 /* Embed Watch Content */,
 			);
 			);
 			buildRules = (
 			buildRules = (
 			);
 			);
 			dependencies = (
 			dependencies = (
 				EBE11F541B62EDD200753127 /* PBXTargetDependency */,
 				EBE11F541B62EDD200753127 /* PBXTargetDependency */,
+				29900D211B6FB14000DE5662 /* PBXTargetDependency */,
 			);
 			);
 			name = "AFNetworking iOS Example";
 			name = "AFNetworking iOS Example";
 			productName = AFNetworkingExample;
 			productName = AFNetworkingExample;
@@ -495,6 +633,12 @@
 				LastUpgradeCheck = 0500;
 				LastUpgradeCheck = 0500;
 				ORGANIZATIONNAME = Gowalla;
 				ORGANIZATIONNAME = Gowalla;
 				TargetAttributes = {
 				TargetAttributes = {
+					29900D051B6FB14000DE5662 = {
+						CreatedOnToolsVersion = 7.0;
+					};
+					29900D111B6FB14000DE5662 = {
+						CreatedOnToolsVersion = 7.0;
+					};
 					EBE11F471B62EDD200753127 = {
 					EBE11F471B62EDD200753127 = {
 						CreatedOnToolsVersion = 6.4;
 						CreatedOnToolsVersion = 6.4;
 					};
 					};
@@ -513,6 +657,7 @@
 			hasScannedForEncodings = 0;
 			hasScannedForEncodings = 0;
 			knownRegions = (
 			knownRegions = (
 				en,
 				en,
+				Base,
 			);
 			);
 			mainGroup = F8E469551395739C00DB05C8;
 			mainGroup = F8E469551395739C00DB05C8;
 			productRefGroup = F8E469611395739C00DB05C8 /* Products */;
 			productRefGroup = F8E469611395739C00DB05C8 /* Products */;
@@ -521,11 +666,30 @@
 			targets = (
 			targets = (
 				F8E4695F1395739C00DB05C8 /* AFNetworking iOS Example */,
 				F8E4695F1395739C00DB05C8 /* AFNetworking iOS Example */,
 				EBE11F471B62EDD200753127 /* Today Extension */,
 				EBE11F471B62EDD200753127 /* Today Extension */,
+				29900D051B6FB14000DE5662 /* AFNetworking watchOS */,
+				29900D111B6FB14000DE5662 /* AFNetworking watchOS Extension */,
 			);
 			);
 		};
 		};
 /* End PBXProject section */
 /* End PBXProject section */
 
 
 /* Begin PBXResourcesBuildPhase section */
 /* Begin PBXResourcesBuildPhase section */
+		29900D041B6FB14000DE5662 /* Resources */ = {
+			isa = PBXResourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				29900D0C1B6FB14000DE5662 /* Assets.xcassets in Resources */,
+				29900D0A1B6FB14000DE5662 /* Interface.storyboard in Resources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+		29900D101B6FB14000DE5662 /* Resources */ = {
+			isa = PBXResourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				29900D1E1B6FB14000DE5662 /* Assets.xcassets in Resources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
 		EBE11F461B62EDD200753127 /* Resources */ = {
 		EBE11F461B62EDD200753127 /* Resources */ = {
 			isa = PBXResourcesBuildPhase;
 			isa = PBXResourcesBuildPhase;
 			buildActionMask = 2147483647;
 			buildActionMask = 2147483647;
@@ -556,6 +720,21 @@
 /* End PBXResourcesBuildPhase section */
 /* End PBXResourcesBuildPhase section */
 
 
 /* Begin PBXSourcesBuildPhase section */
 /* Begin PBXSourcesBuildPhase section */
+		29900D0E1B6FB14000DE5662 /* Sources */ = {
+			isa = PBXSourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				29900D1C1B6FB14000DE5662 /* ExtensionDelegate.m in Sources */,
+				29900D2B1B6FB19000DE5662 /* AFSecurityPolicy.m in Sources */,
+				29900D191B6FB14000DE5662 /* InterfaceController.m in Sources */,
+				29900D321B6FB7CC00DE5662 /* AFURLSessionManager.m in Sources */,
+				29900D2F1B6FB56A00DE5662 /* AFURLRequestSerialization.m in Sources */,
+				29900D311B6FB6FA00DE5662 /* AFNetworkReachabilityManager.m in Sources */,
+				29900D301B6FB66800DE5662 /* AFURLResponseSerialization.m in Sources */,
+				29900D341B6FB87100DE5662 /* AFHTTPSessionManager.m in Sources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
 		EBE11F441B62EDD200753127 /* Sources */ = {
 		EBE11F441B62EDD200753127 /* Sources */ = {
 			isa = PBXSourcesBuildPhase;
 			isa = PBXSourcesBuildPhase;
 			buildActionMask = 2147483647;
 			buildActionMask = 2147483647;
@@ -618,6 +797,16 @@
 /* End PBXSourcesBuildPhase section */
 /* End PBXSourcesBuildPhase section */
 
 
 /* Begin PBXTargetDependency section */
 /* Begin PBXTargetDependency section */
+		29900D151B6FB14000DE5662 /* PBXTargetDependency */ = {
+			isa = PBXTargetDependency;
+			target = 29900D111B6FB14000DE5662 /* AFNetworking watchOS Extension */;
+			targetProxy = 29900D141B6FB14000DE5662 /* PBXContainerItemProxy */;
+		};
+		29900D211B6FB14000DE5662 /* PBXTargetDependency */ = {
+			isa = PBXTargetDependency;
+			target = 29900D051B6FB14000DE5662 /* AFNetworking watchOS */;
+			targetProxy = 29900D201B6FB14000DE5662 /* PBXContainerItemProxy */;
+		};
 		EBE11F541B62EDD200753127 /* PBXTargetDependency */ = {
 		EBE11F541B62EDD200753127 /* PBXTargetDependency */ = {
 			isa = PBXTargetDependency;
 			isa = PBXTargetDependency;
 			target = EBE11F471B62EDD200753127 /* Today Extension */;
 			target = EBE11F471B62EDD200753127 /* Today Extension */;
@@ -625,7 +814,188 @@
 		};
 		};
 /* End PBXTargetDependency section */
 /* End PBXTargetDependency section */
 
 
+/* Begin PBXVariantGroup section */
+		29900D081B6FB14000DE5662 /* Interface.storyboard */ = {
+			isa = PBXVariantGroup;
+			children = (
+				29900D091B6FB14000DE5662 /* Base */,
+			);
+			name = Interface.storyboard;
+			sourceTree = "<group>";
+		};
+/* End PBXVariantGroup section */
+
 /* Begin XCBuildConfiguration section */
 /* Begin XCBuildConfiguration section */
+		29900D231B6FB14000DE5662 /* Debug */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_SEARCH_USER_PATHS = NO;
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+				CLANG_CXX_LIBRARY = "libc++";
+				CLANG_ENABLE_MODULES = YES;
+				CLANG_ENABLE_OBJC_ARC = YES;
+				CLANG_WARN_BOOL_CONVERSION = YES;
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+				CLANG_WARN_EMPTY_BODY = YES;
+				CLANG_WARN_ENUM_CONVERSION = YES;
+				CLANG_WARN_INT_CONVERSION = YES;
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+				CLANG_WARN_UNREACHABLE_CODE = YES;
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+				COPY_PHASE_STRIP = NO;
+				DEBUG_INFORMATION_FORMAT = dwarf;
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
+				ENABLE_TESTABILITY = YES;
+				GCC_DYNAMIC_NO_PIC = NO;
+				GCC_NO_COMMON_BLOCKS = YES;
+				GCC_PREPROCESSOR_DEFINITIONS = (
+					"DEBUG=1",
+					"$(inherited)",
+				);
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+				GCC_WARN_UNUSED_FUNCTION = YES;
+				IBSC_MODULE = AFNetworking_watchOS_Extension;
+				INFOPLIST_FILE = "AFNetworking watchOS/Info.plist";
+				MTL_ENABLE_DEBUG_INFO = YES;
+				PRODUCT_BUNDLE_IDENTIFIER = "com.alamofire.AFNetworking-iOS-Example.watchkitapp";
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SDKROOT = watchos;
+				SKIP_INSTALL = YES;
+				TARGETED_DEVICE_FAMILY = 4;
+				WATCHOS_DEPLOYMENT_TARGET = 2.0;
+			};
+			name = Debug;
+		};
+		29900D241B6FB14000DE5662 /* Release */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_SEARCH_USER_PATHS = NO;
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+				CLANG_CXX_LIBRARY = "libc++";
+				CLANG_ENABLE_MODULES = YES;
+				CLANG_ENABLE_OBJC_ARC = YES;
+				CLANG_WARN_BOOL_CONVERSION = YES;
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+				CLANG_WARN_EMPTY_BODY = YES;
+				CLANG_WARN_ENUM_CONVERSION = YES;
+				CLANG_WARN_INT_CONVERSION = YES;
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+				CLANG_WARN_UNREACHABLE_CODE = YES;
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+				COPY_PHASE_STRIP = NO;
+				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+				ENABLE_NS_ASSERTIONS = NO;
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
+				GCC_NO_COMMON_BLOCKS = YES;
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+				GCC_WARN_UNUSED_FUNCTION = YES;
+				IBSC_MODULE = AFNetworking_watchOS_Extension;
+				INFOPLIST_FILE = "AFNetworking watchOS/Info.plist";
+				MTL_ENABLE_DEBUG_INFO = NO;
+				PRODUCT_BUNDLE_IDENTIFIER = "com.alamofire.AFNetworking-iOS-Example.watchkitapp";
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				SDKROOT = watchos;
+				SKIP_INSTALL = YES;
+				TARGETED_DEVICE_FAMILY = 4;
+				VALIDATE_PRODUCT = YES;
+				WATCHOS_DEPLOYMENT_TARGET = 2.0;
+			};
+			name = Release;
+		};
+		29900D251B6FB14000DE5662 /* Debug */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_SEARCH_USER_PATHS = NO;
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+				CLANG_CXX_LIBRARY = "libc++";
+				CLANG_ENABLE_MODULES = YES;
+				CLANG_ENABLE_OBJC_ARC = YES;
+				CLANG_WARN_BOOL_CONVERSION = YES;
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+				CLANG_WARN_EMPTY_BODY = YES;
+				CLANG_WARN_ENUM_CONVERSION = YES;
+				CLANG_WARN_INT_CONVERSION = YES;
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+				CLANG_WARN_UNREACHABLE_CODE = YES;
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+				COPY_PHASE_STRIP = NO;
+				DEBUG_INFORMATION_FORMAT = dwarf;
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
+				ENABLE_TESTABILITY = YES;
+				GCC_DYNAMIC_NO_PIC = NO;
+				GCC_NO_COMMON_BLOCKS = YES;
+				GCC_PREPROCESSOR_DEFINITIONS = (
+					"DEBUG=1",
+					"$(inherited)",
+				);
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+				GCC_WARN_UNUSED_FUNCTION = YES;
+				INFOPLIST_FILE = "AFNetworking watchOS Extension/Info.plist";
+				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
+				MTL_ENABLE_DEBUG_INFO = YES;
+				PRODUCT_BUNDLE_IDENTIFIER = "com.alamofire.AFNetworking-iOS-Example.watchkitapp.watchkitextension";
+				PRODUCT_NAME = "${TARGET_NAME}";
+				SDKROOT = watchos;
+				SKIP_INSTALL = YES;
+				TARGETED_DEVICE_FAMILY = 4;
+				WATCHOS_DEPLOYMENT_TARGET = 2.0;
+			};
+			name = Debug;
+		};
+		29900D261B6FB14000DE5662 /* Release */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_SEARCH_USER_PATHS = NO;
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+				CLANG_CXX_LIBRARY = "libc++";
+				CLANG_ENABLE_MODULES = YES;
+				CLANG_ENABLE_OBJC_ARC = YES;
+				CLANG_WARN_BOOL_CONVERSION = YES;
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+				CLANG_WARN_EMPTY_BODY = YES;
+				CLANG_WARN_ENUM_CONVERSION = YES;
+				CLANG_WARN_INT_CONVERSION = YES;
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+				CLANG_WARN_UNREACHABLE_CODE = YES;
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+				COPY_PHASE_STRIP = NO;
+				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+				ENABLE_NS_ASSERTIONS = NO;
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
+				GCC_NO_COMMON_BLOCKS = YES;
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+				GCC_WARN_UNUSED_FUNCTION = YES;
+				INFOPLIST_FILE = "AFNetworking watchOS Extension/Info.plist";
+				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
+				MTL_ENABLE_DEBUG_INFO = NO;
+				PRODUCT_BUNDLE_IDENTIFIER = "com.alamofire.AFNetworking-iOS-Example.watchkitapp.watchkitextension";
+				PRODUCT_NAME = "${TARGET_NAME}";
+				SDKROOT = watchos;
+				SKIP_INSTALL = YES;
+				TARGETED_DEVICE_FAMILY = 4;
+				VALIDATE_PRODUCT = YES;
+				WATCHOS_DEPLOYMENT_TARGET = 2.0;
+			};
+			name = Release;
+		};
 		EBE11F571B62EDD200753127 /* Debug */ = {
 		EBE11F571B62EDD200753127 /* Debug */ = {
 			isa = XCBuildConfiguration;
 			isa = XCBuildConfiguration;
 			buildSettings = {
 			buildSettings = {
@@ -841,6 +1211,22 @@
 /* End XCBuildConfiguration section */
 /* End XCBuildConfiguration section */
 
 
 /* Begin XCConfigurationList section */
 /* Begin XCConfigurationList section */
+		29900D271B6FB14000DE5662 /* Build configuration list for PBXNativeTarget "AFNetworking watchOS Extension" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				29900D251B6FB14000DE5662 /* Debug */,
+				29900D261B6FB14000DE5662 /* Release */,
+			);
+			defaultConfigurationIsVisible = 0;
+		};
+		29900D291B6FB14000DE5662 /* Build configuration list for PBXNativeTarget "AFNetworking watchOS" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				29900D231B6FB14000DE5662 /* Debug */,
+				29900D241B6FB14000DE5662 /* Release */,
+			);
+			defaultConfigurationIsVisible = 0;
+		};
 		EBE11F591B62EDD200753127 /* Build configuration list for PBXNativeTarget "Today Extension" */ = {
 		EBE11F591B62EDD200753127 /* Build configuration list for PBXNativeTarget "Today Extension" */ = {
 			isa = XCConfigurationList;
 			isa = XCConfigurationList;
 			buildConfigurations = (
 			buildConfigurations = (

+ 1 - 0
Example/AFNetworking watchOS Extension/Assets.xcassets/README__ignoredByTemplate__

@@ -0,0 +1 @@
+Did you know that git does not support storing empty directories?

+ 13 - 0
Example/AFNetworking watchOS Extension/ExtensionDelegate.h

@@ -0,0 +1,13 @@
+//
+//  ExtensionDelegate.h
+//  AFNetworking watchOS Extension
+//
+//  Created by Kevin Harwood on 8/3/15.
+//  Copyright © 2015 Gowalla. All rights reserved.
+//
+
+#import <WatchKit/WatchKit.h>
+
+@interface ExtensionDelegate : NSObject <WKExtensionDelegate>
+
+@end

+ 26 - 0
Example/AFNetworking watchOS Extension/ExtensionDelegate.m

@@ -0,0 +1,26 @@
+//
+//  ExtensionDelegate.m
+//  AFNetworking watchOS Extension
+//
+//  Created by Kevin Harwood on 8/3/15.
+//  Copyright © 2015 Gowalla. All rights reserved.
+//
+
+#import "ExtensionDelegate.h"
+
+@implementation ExtensionDelegate
+
+- (void)applicationDidFinishLaunching {
+    // Perform any final initialization of your application.
+}
+
+- (void)applicationDidBecomeActive {
+    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
+}
+
+- (void)applicationWillResignActive {
+    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
+    // Use this method to pause ongoing tasks, disable timers, etc.
+}
+
+@end

+ 40 - 0
Example/AFNetworking watchOS Extension/Info.plist

@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>CFBundleDevelopmentRegion</key>
+	<string>en</string>
+	<key>CFBundleDisplayName</key>
+	<string>AFNetworking watchOS Extension</string>
+	<key>CFBundleExecutable</key>
+	<string>$(EXECUTABLE_NAME)</string>
+	<key>CFBundleIdentifier</key>
+	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
+	<key>CFBundleInfoDictionaryVersion</key>
+	<string>6.0</string>
+	<key>CFBundleName</key>
+	<string>$(PRODUCT_NAME)</string>
+	<key>CFBundlePackageType</key>
+	<string>XPC!</string>
+	<key>CFBundleShortVersionString</key>
+	<string>1.0</string>
+	<key>CFBundleSignature</key>
+	<string>????</string>
+	<key>CFBundleVersion</key>
+	<string>1</string>
+	<key>NSExtension</key>
+	<dict>
+		<key>NSExtensionAttributes</key>
+		<dict>
+			<key>WKAppBundleIdentifier</key>
+			<string>com.alamofire.AFNetworking-iOS-Example.watchkitapp</string>
+		</dict>
+		<key>NSExtensionPointIdentifier</key>
+		<string>com.apple.watchkit</string>
+	</dict>
+	<key>RemoteInterfacePrincipalClass</key>
+	<string>InterfaceController</string>
+	<key>WKExtensionDelegateClassName</key>
+	<string>ExtensionDelegate</string>
+</dict>
+</plist>

+ 14 - 0
Example/AFNetworking watchOS Extension/InterfaceController.h

@@ -0,0 +1,14 @@
+//
+//  InterfaceController.h
+//  AFNetworking watchOS Extension
+//
+//  Created by Kevin Harwood on 8/3/15.
+//  Copyright © 2015 Gowalla. All rights reserved.
+//
+
+#import <WatchKit/WatchKit.h>
+#import <Foundation/Foundation.h>
+
+@interface InterfaceController : WKInterfaceController
+
+@end

+ 38 - 0
Example/AFNetworking watchOS Extension/InterfaceController.m

@@ -0,0 +1,38 @@
+//
+//  InterfaceController.m
+//  AFNetworking watchOS Extension
+//
+//  Created by Kevin Harwood on 8/3/15.
+//  Copyright © 2015 Gowalla. All rights reserved.
+//
+
+#import "InterfaceController.h"
+
+
+@interface InterfaceController()
+
+@end
+
+
+@implementation InterfaceController
+
+- (void)awakeWithContext:(id)context {
+    [super awakeWithContext:context];
+
+    // Configure interface objects here.
+}
+
+- (void)willActivate {
+    // This method is called when watch view controller is about to be visible to user
+    [super willActivate];
+}
+
+- (void)didDeactivate {
+    // This method is called when watch view controller is no longer visible
+    [super didDeactivate];
+}
+
+@end
+
+
+

+ 62 - 0
Example/AFNetworking watchOS/Assets.xcassets/AppIcon.appiconset/Contents.json

@@ -0,0 +1,62 @@
+{
+  "images" : [
+    {
+      "size" : "24x24",
+      "idiom" : "watch",
+      "scale" : "2x",
+      "role" : "notificationCenter",
+      "subtype" : "38mm"
+    },
+    {
+      "size" : "27.5x27.5",
+      "idiom" : "watch",
+      "scale" : "2x",
+      "role" : "notificationCenter",
+      "subtype" : "42mm"
+    },
+    {
+      "size" : "29x29",
+      "idiom" : "watch",
+      "role" : "companionSettings",
+      "scale" : "2x"
+    },
+    {
+      "size" : "29x29",
+      "idiom" : "watch",
+      "role" : "companionSettings",
+      "scale" : "3x"
+    },
+    {
+      "size" : "40x40",
+      "idiom" : "watch",
+      "scale" : "2x",
+      "role" : "appLauncher",
+      "subtype" : "38mm"
+    },
+    {
+      "size" : "44x44",
+      "idiom" : "watch",
+      "scale" : "2x",
+      "role" : "longLook",
+      "subtype" : "42mm"
+    },
+    {
+      "size" : "86x86",
+      "idiom" : "watch",
+      "scale" : "2x",
+      "role" : "quickLook",
+      "subtype" : "38mm"
+    },
+    {
+      "size" : "98x98",
+      "idiom" : "watch",
+      "scale" : "2x",
+      "role" : "quickLook",
+      "subtype" : "42mm"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

+ 15 - 0
Example/AFNetworking watchOS/Base.lproj/Interface.storyboard

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder.WatchKit.Storyboard" version="3.0" toolsVersion="6221" systemVersion="13E28" targetRuntime="watchKit" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="AgC-eL-Hgc">
+    <dependencies>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6213"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBWatchKitPlugin" version="3733"/>
+    </dependencies>
+    <scenes>
+        <!--Interface Controller-->
+        <scene sceneID="aou-V4-d1y">
+            <objects>
+                <controller id="AgC-eL-Hgc" customClass="InterfaceController" customModuleProvider=""/>
+            </objects>
+        </scene>
+    </scenes>
+</document>

+ 35 - 0
Example/AFNetworking watchOS/Info.plist

@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>CFBundleDevelopmentRegion</key>
+	<string>en</string>
+	<key>CFBundleDisplayName</key>
+	<string>AFNetworking iOS Example</string>
+	<key>CFBundleExecutable</key>
+	<string>$(EXECUTABLE_NAME)</string>
+	<key>CFBundleIdentifier</key>
+	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
+	<key>CFBundleInfoDictionaryVersion</key>
+	<string>6.0</string>
+	<key>CFBundleName</key>
+	<string>$(PRODUCT_NAME)</string>
+	<key>CFBundlePackageType</key>
+	<string>APPL</string>
+	<key>CFBundleShortVersionString</key>
+	<string>1.0</string>
+	<key>CFBundleSignature</key>
+	<string>????</string>
+	<key>CFBundleVersion</key>
+	<string>1</string>
+	<key>UISupportedInterfaceOrientations</key>
+	<array>
+		<string>UIInterfaceOrientationPortrait</string>
+		<string>UIInterfaceOrientationPortraitUpsideDown</string>
+	</array>
+	<key>WKCompanionAppBundleIdentifier</key>
+	<string>com.alamofire.AFNetworking-iOS-Example</string>
+	<key>WKWatchKitApp</key>
+	<true/>
+</dict>
+</plist>

+ 2 - 0
UIKit+AFNetworking/UIKit+AFNetworking.h

@@ -20,6 +20,7 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 // THE SOFTWARE.
 
 
+#if TARGET_OS_IOS
 #import <UIKit/UIKit.h>
 #import <UIKit/UIKit.h>
 
 
 #ifndef _UIKIT_AFNETWORKING_
 #ifndef _UIKIT_AFNETWORKING_
@@ -35,3 +36,4 @@
     #import "UIRefreshControl+AFNetworking.h"
     #import "UIRefreshControl+AFNetworking.h"
     #import "UIWebView+AFNetworking.h"
     #import "UIWebView+AFNetworking.h"
 #endif /* _UIKIT_AFNETWORKING_ */
 #endif /* _UIKIT_AFNETWORKING_ */
+#endif