From 1a25414ef5217c8416d3fad54f03cc21a14e07f5 Mon Sep 17 00:00:00 2001 From: Blake Watters Date: Fri, 10 May 2013 15:53:33 -0400 Subject: [PATCH 01/15] Implement initial unit testing and continuous integration system for AFNetworking. refs AFNetworking/AFNetworking#941 --- .gitignore | 2 + .travis.yml | 7 + AFNetworking-Prefix.pch | 16 + AFNetworking.xcodeproj/project.pbxproj | 843 ++++++++++++++++++ .../AFNetworkingFrameworkTests.xcscheme | 69 ++ .../xcschemes/AFNetworkingTests.xcscheme | 69 ++ .../contents.xcworkspacedata | 72 +- AFNetworkingTests/AFHTTPClientTest.m | 24 + .../AFHTTPRequestOperationTest.m | 42 + .../AFNetworkingTests-Info.plist | 22 + AFNetworkingTests/AFNetworkingTests.h | 17 + AFNetworkingTests/AFNetworkingTests.m | 14 + Podfile | 18 + Rakefile | 16 + 14 files changed, 1160 insertions(+), 71 deletions(-) create mode 100644 .travis.yml create mode 100644 AFNetworking-Prefix.pch create mode 100644 AFNetworking.xcodeproj/project.pbxproj create mode 100644 AFNetworking.xcodeproj/xcshareddata/xcschemes/AFNetworkingFrameworkTests.xcscheme create mode 100644 AFNetworking.xcodeproj/xcshareddata/xcschemes/AFNetworkingTests.xcscheme create mode 100644 AFNetworkingTests/AFHTTPClientTest.m create mode 100644 AFNetworkingTests/AFHTTPRequestOperationTest.m create mode 100644 AFNetworkingTests/AFNetworkingTests-Info.plist create mode 100644 AFNetworkingTests/AFNetworkingTests.h create mode 100644 AFNetworkingTests/AFNetworkingTests.m create mode 100644 Podfile create mode 100644 Rakefile diff --git a/.gitignore b/.gitignore index 89c499e..aab128c 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,5 @@ profile *.moved-aside DerivedData .idea/ +Pods +Podfile.lock diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..bc4be22 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: objective-c +before_install: + - brew update + - brew install xctool --HEAD + - gem install cocoapods + - pod install +script: "rake test:all" diff --git a/AFNetworking-Prefix.pch b/AFNetworking-Prefix.pch new file mode 100644 index 0000000..59f8ee7 --- /dev/null +++ b/AFNetworking-Prefix.pch @@ -0,0 +1,16 @@ +// +// Prefix header for all source files of the 'AFNetworking' target in the 'AFNetworking' project +// + +#ifdef __OBJC__ + #import + + #import + #if __IPHONE_OS_VERSION_MIN_REQUIRED + #import + #import + #else + #import + #import + #endif +#endif diff --git a/AFNetworking.xcodeproj/project.pbxproj b/AFNetworking.xcodeproj/project.pbxproj new file mode 100644 index 0000000..db2f9bb --- /dev/null +++ b/AFNetworking.xcodeproj/project.pbxproj @@ -0,0 +1,843 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 0BAD1A5426FC47BF8790D245 /* libPods-ios.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 55E73C267F33406A9F92476C /* libPods-ios.a */; }; + 2544EC36173BE382004117E8 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2544EC35173BE382004117E8 /* Foundation.framework */; }; + 2544EC45173BE382004117E8 /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2544EC44173BE382004117E8 /* SenTestingKit.framework */; }; + 2544EC47173BE382004117E8 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2544EC46173BE382004117E8 /* UIKit.framework */; }; + 2544EC48173BE382004117E8 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2544EC35173BE382004117E8 /* Foundation.framework */; }; + 2544EC4B173BE382004117E8 /* libAFNetworking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2544EC32173BE382004117E8 /* libAFNetworking.a */; }; + 2544EC70173BE4DD004117E8 /* AFHTTPClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC5E173BE4DD004117E8 /* AFHTTPClient.m */; }; + 2544EC71173BE4DD004117E8 /* AFHTTPRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC60173BE4DD004117E8 /* AFHTTPRequestOperation.m */; }; + 2544EC72173BE4DD004117E8 /* AFImageRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC62173BE4DD004117E8 /* AFImageRequestOperation.m */; }; + 2544EC73173BE4DD004117E8 /* AFJSONRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC64173BE4DD004117E8 /* AFJSONRequestOperation.m */; }; + 2544EC74173BE4DD004117E8 /* AFNetworkActivityIndicatorManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC66173BE4DD004117E8 /* AFNetworkActivityIndicatorManager.m */; }; + 2544EC75173BE4DD004117E8 /* AFPropertyListRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC69173BE4DD004117E8 /* AFPropertyListRequestOperation.m */; }; + 2544EC76173BE4DD004117E8 /* AFURLConnectionOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC6B173BE4DD004117E8 /* AFURLConnectionOperation.m */; }; + 2544EC77173BE4DD004117E8 /* AFXMLRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC6D173BE4DD004117E8 /* AFXMLRequestOperation.m */; }; + 2544EC78173BE4DD004117E8 /* UIImageView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC6F173BE4DD004117E8 /* UIImageView+AFNetworking.m */; }; + 2544EC81173BFAA8004117E8 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2544EC80173BFAA8004117E8 /* Cocoa.framework */; }; + 2544EC96173BFAA8004117E8 /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2544EC44173BE382004117E8 /* SenTestingKit.framework */; }; + 2544EC97173BFAA8004117E8 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2544EC80173BFAA8004117E8 /* Cocoa.framework */; }; + 2544EC9A173BFAA8004117E8 /* AFNetworkingFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2544EC7F173BFAA8004117E8 /* AFNetworkingFramework.framework */; }; + 25C4EC0E173D74170083E116 /* AFHTTPClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC5E173BE4DD004117E8 /* AFHTTPClient.m */; }; + 25C4EC10173D74170083E116 /* AFHTTPRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC60173BE4DD004117E8 /* AFHTTPRequestOperation.m */; }; + 25C4EC12173D74170083E116 /* AFImageRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC62173BE4DD004117E8 /* AFImageRequestOperation.m */; }; + 25C4EC14173D74170083E116 /* AFJSONRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC64173BE4DD004117E8 /* AFJSONRequestOperation.m */; }; + 25C4EC16173D74170083E116 /* AFNetworkActivityIndicatorManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC66173BE4DD004117E8 /* AFNetworkActivityIndicatorManager.m */; }; + 25C4EC19173D74170083E116 /* AFPropertyListRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC69173BE4DD004117E8 /* AFPropertyListRequestOperation.m */; }; + 25C4EC1B173D74170083E116 /* AFURLConnectionOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC6B173BE4DD004117E8 /* AFURLConnectionOperation.m */; }; + 25C4EC1D173D74170083E116 /* AFXMLRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC6D173BE4DD004117E8 /* AFXMLRequestOperation.m */; }; + 25C4EC1F173D74170083E116 /* UIImageView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC6F173BE4DD004117E8 /* UIImageView+AFNetworking.m */; }; + 25C4EC20173D7A2D0083E116 /* AFHTTPClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 2544EC5D173BE4DD004117E8 /* AFHTTPClient.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 25C4EC21173D7A3C0083E116 /* AFHTTPRequestOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = 2544EC5F173BE4DD004117E8 /* AFHTTPRequestOperation.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 25C4EC22173D7A3C0083E116 /* AFImageRequestOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = 2544EC61173BE4DD004117E8 /* AFImageRequestOperation.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 25C4EC23173D7A3C0083E116 /* AFJSONRequestOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = 2544EC63173BE4DD004117E8 /* AFJSONRequestOperation.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 25C4EC24173D7A3C0083E116 /* AFNetworkActivityIndicatorManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 2544EC65173BE4DD004117E8 /* AFNetworkActivityIndicatorManager.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 25C4EC25173D7A3C0083E116 /* AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 2544EC67173BE4DD004117E8 /* AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 25C4EC26173D7A3C0083E116 /* AFPropertyListRequestOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = 2544EC68173BE4DD004117E8 /* AFPropertyListRequestOperation.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 25C4EC27173D7A3C0083E116 /* AFURLConnectionOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = 2544EC6A173BE4DD004117E8 /* AFURLConnectionOperation.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 25C4EC28173D7A3C0083E116 /* AFXMLRequestOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = 2544EC6C173BE4DD004117E8 /* AFXMLRequestOperation.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 25C4EC29173D7A3C0083E116 /* UIImageView+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 2544EC6E173BE4DD004117E8 /* UIImageView+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 25C4EC2B173D7DB30083E116 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25C4EC2A173D7DB30083E116 /* SystemConfiguration.framework */; }; + 25C4EC2D173D7DBA0083E116 /* CoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25C4EC2C173D7DBA0083E116 /* CoreServices.framework */; }; + 25C4EC2F173D7DC40083E116 /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25C4EC2E173D7DC40083E116 /* CFNetwork.framework */; }; + 25C4EC31173D7DCA0083E116 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25C4EC30173D7DCA0083E116 /* MobileCoreServices.framework */; }; + 25C4EC33173D7DD20083E116 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25C4EC32173D7DD20083E116 /* SystemConfiguration.framework */; }; + 25C4EC36173D7F3C0083E116 /* AFHTTPClientTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 25C4EC35173D7F3C0083E116 /* AFHTTPClientTest.m */; }; + 25C4EC37173D7F3C0083E116 /* AFHTTPClientTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 25C4EC35173D7F3C0083E116 /* AFHTTPClientTest.m */; }; + 25C4EC3B173D82290083E116 /* AFNetworkingTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 25C4EC3A173D82290083E116 /* AFNetworkingTests.m */; }; + 25C4EC3C173D82290083E116 /* AFNetworkingTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 25C4EC3A173D82290083E116 /* AFNetworkingTests.m */; }; + 25C4EC3F173D84C70083E116 /* AFHTTPRequestOperationTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 25C4EC3E173D84C70083E116 /* AFHTTPRequestOperationTest.m */; }; + 25C4EC40173D84C70083E116 /* AFHTTPRequestOperationTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 25C4EC3E173D84C70083E116 /* AFHTTPRequestOperationTest.m */; }; + 25C4EC41173D86AE0083E116 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25C4EC32173D7DD20083E116 /* SystemConfiguration.framework */; }; + 25C4EC42173D86B60083E116 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25C4EC30173D7DCA0083E116 /* MobileCoreServices.framework */; }; + AC11A74923B64A3096ACADFC /* libPods-osx.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 96A923755B00464187DEDBAF /* libPods-osx.a */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 2544EC49173BE382004117E8 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 2544EC2A173BE382004117E8 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 2544EC31173BE382004117E8; + remoteInfo = AFNetworking; + }; + 2544EC98173BFAA8004117E8 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 2544EC2A173BE382004117E8 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 2544EC7E173BFAA8004117E8; + remoteInfo = AFNetworkingFramework; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 2544EC30173BE382004117E8 /* CopyFiles */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = "include/${PRODUCT_NAME}"; + dstSubfolderSpec = 16; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 2544EC32173BE382004117E8 /* libAFNetworking.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libAFNetworking.a; sourceTree = BUILT_PRODUCTS_DIR; }; + 2544EC35173BE382004117E8 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 2544EC43173BE382004117E8 /* AFNetworkingTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AFNetworkingTests.octest; sourceTree = BUILT_PRODUCTS_DIR; }; + 2544EC44173BE382004117E8 /* SenTestingKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = Library/Frameworks/SenTestingKit.framework; sourceTree = DEVELOPER_DIR; }; + 2544EC46173BE382004117E8 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; + 2544EC5D173BE4DD004117E8 /* AFHTTPClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFHTTPClient.h; sourceTree = ""; }; + 2544EC5E173BE4DD004117E8 /* AFHTTPClient.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFHTTPClient.m; sourceTree = ""; }; + 2544EC5F173BE4DD004117E8 /* AFHTTPRequestOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFHTTPRequestOperation.h; sourceTree = ""; }; + 2544EC60173BE4DD004117E8 /* AFHTTPRequestOperation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFHTTPRequestOperation.m; sourceTree = ""; }; + 2544EC61173BE4DD004117E8 /* AFImageRequestOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFImageRequestOperation.h; sourceTree = ""; }; + 2544EC62173BE4DD004117E8 /* AFImageRequestOperation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFImageRequestOperation.m; sourceTree = ""; }; + 2544EC63173BE4DD004117E8 /* AFJSONRequestOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFJSONRequestOperation.h; sourceTree = ""; }; + 2544EC64173BE4DD004117E8 /* AFJSONRequestOperation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFJSONRequestOperation.m; sourceTree = ""; }; + 2544EC65173BE4DD004117E8 /* AFNetworkActivityIndicatorManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFNetworkActivityIndicatorManager.h; sourceTree = ""; }; + 2544EC66173BE4DD004117E8 /* AFNetworkActivityIndicatorManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFNetworkActivityIndicatorManager.m; sourceTree = ""; }; + 2544EC67173BE4DD004117E8 /* AFNetworking.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFNetworking.h; sourceTree = ""; }; + 2544EC68173BE4DD004117E8 /* AFPropertyListRequestOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFPropertyListRequestOperation.h; sourceTree = ""; }; + 2544EC69173BE4DD004117E8 /* AFPropertyListRequestOperation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFPropertyListRequestOperation.m; sourceTree = ""; }; + 2544EC6A173BE4DD004117E8 /* AFURLConnectionOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFURLConnectionOperation.h; sourceTree = ""; }; + 2544EC6B173BE4DD004117E8 /* AFURLConnectionOperation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFURLConnectionOperation.m; sourceTree = ""; }; + 2544EC6C173BE4DD004117E8 /* AFXMLRequestOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFXMLRequestOperation.h; sourceTree = ""; }; + 2544EC6D173BE4DD004117E8 /* AFXMLRequestOperation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFXMLRequestOperation.m; sourceTree = ""; }; + 2544EC6E173BE4DD004117E8 /* UIImageView+AFNetworking.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIImageView+AFNetworking.h"; sourceTree = ""; }; + 2544EC6F173BE4DD004117E8 /* UIImageView+AFNetworking.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIImageView+AFNetworking.m"; sourceTree = ""; }; + 2544EC7F173BFAA8004117E8 /* AFNetworkingFramework.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = AFNetworkingFramework.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 2544EC80173BFAA8004117E8 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = Library/Frameworks/Cocoa.framework; sourceTree = DEVELOPER_DIR; }; + 2544EC83173BFAA8004117E8 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; }; + 2544EC84173BFAA8004117E8 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; }; + 2544EC85173BFAA8004117E8 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 2544EC95173BFAA8004117E8 /* AFNetworkingFrameworkTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AFNetworkingFrameworkTests.octest; sourceTree = BUILT_PRODUCTS_DIR; }; + 25C4EC00173BFBA70083E116 /* AFNetworkingTests-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "AFNetworkingTests-Info.plist"; sourceTree = ""; }; + 25C4EC2A173D7DB30083E116 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/SystemConfiguration.framework; sourceTree = DEVELOPER_DIR; }; + 25C4EC2C173D7DBA0083E116 /* CoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreServices.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/CoreServices.framework; sourceTree = DEVELOPER_DIR; }; + 25C4EC2E173D7DC40083E116 /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; }; + 25C4EC30173D7DCA0083E116 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; }; + 25C4EC32173D7DD20083E116 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; + 25C4EC35173D7F3C0083E116 /* AFHTTPClientTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFHTTPClientTest.m; sourceTree = ""; }; + 25C4EC39173D7F9E0083E116 /* AFNetworkingTests.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AFNetworkingTests.h; sourceTree = ""; }; + 25C4EC3A173D82290083E116 /* AFNetworkingTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFNetworkingTests.m; sourceTree = ""; }; + 25C4EC3E173D84C70083E116 /* AFHTTPRequestOperationTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFHTTPRequestOperationTest.m; sourceTree = ""; }; + 3A9F6CCEA1634087A54CA260 /* Pods-osx.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-osx.xcconfig"; path = "Pods/Pods-osx.xcconfig"; sourceTree = SOURCE_ROOT; }; + 4185EE53DF5646419AE66CA0 /* Pods-ios.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ios.xcconfig"; path = "Pods/Pods-ios.xcconfig"; sourceTree = SOURCE_ROOT; }; + 55E73C267F33406A9F92476C /* libPods-ios.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ios.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 96A923755B00464187DEDBAF /* libPods-osx.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-osx.a"; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 2544EC2F173BE382004117E8 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 25C4EC33173D7DD20083E116 /* SystemConfiguration.framework in Frameworks */, + 25C4EC31173D7DCA0083E116 /* MobileCoreServices.framework in Frameworks */, + 25C4EC2F173D7DC40083E116 /* CFNetwork.framework in Frameworks */, + 2544EC36173BE382004117E8 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2544EC3F173BE382004117E8 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 25C4EC42173D86B60083E116 /* MobileCoreServices.framework in Frameworks */, + 25C4EC41173D86AE0083E116 /* SystemConfiguration.framework in Frameworks */, + 2544EC45173BE382004117E8 /* SenTestingKit.framework in Frameworks */, + 2544EC47173BE382004117E8 /* UIKit.framework in Frameworks */, + 2544EC48173BE382004117E8 /* Foundation.framework in Frameworks */, + 2544EC4B173BE382004117E8 /* libAFNetworking.a in Frameworks */, + 0BAD1A5426FC47BF8790D245 /* libPods-ios.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2544EC7B173BFAA8004117E8 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 25C4EC2D173D7DBA0083E116 /* CoreServices.framework in Frameworks */, + 25C4EC2B173D7DB30083E116 /* SystemConfiguration.framework in Frameworks */, + 2544EC81173BFAA8004117E8 /* Cocoa.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2544EC91173BFAA8004117E8 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 2544EC96173BFAA8004117E8 /* SenTestingKit.framework in Frameworks */, + 2544EC97173BFAA8004117E8 /* Cocoa.framework in Frameworks */, + 2544EC9A173BFAA8004117E8 /* AFNetworkingFramework.framework in Frameworks */, + AC11A74923B64A3096ACADFC /* libPods-osx.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 2544EC29173BE382004117E8 = { + isa = PBXGroup; + children = ( + 2544EC37173BE382004117E8 /* AFNetworking */, + 25C4EBFF173BFBA70083E116 /* AFNetworkingTests */, + 2544EC34173BE382004117E8 /* Frameworks */, + 2544EC33173BE382004117E8 /* Products */, + ); + sourceTree = ""; + }; + 2544EC33173BE382004117E8 /* Products */ = { + isa = PBXGroup; + children = ( + 2544EC32173BE382004117E8 /* libAFNetworking.a */, + 2544EC43173BE382004117E8 /* AFNetworkingTests.octest */, + 2544EC7F173BFAA8004117E8 /* AFNetworkingFramework.framework */, + 2544EC95173BFAA8004117E8 /* AFNetworkingFrameworkTests.octest */, + ); + name = Products; + sourceTree = ""; + }; + 2544EC34173BE382004117E8 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 25C4EC32173D7DD20083E116 /* SystemConfiguration.framework */, + 25C4EC30173D7DCA0083E116 /* MobileCoreServices.framework */, + 25C4EC2E173D7DC40083E116 /* CFNetwork.framework */, + 25C4EC2C173D7DBA0083E116 /* CoreServices.framework */, + 25C4EC2A173D7DB30083E116 /* SystemConfiguration.framework */, + 2544EC35173BE382004117E8 /* Foundation.framework */, + 2544EC44173BE382004117E8 /* SenTestingKit.framework */, + 2544EC46173BE382004117E8 /* UIKit.framework */, + 2544EC80173BFAA8004117E8 /* Cocoa.framework */, + 2544EC82173BFAA8004117E8 /* Other Frameworks */, + 55E73C267F33406A9F92476C /* libPods-ios.a */, + 96A923755B00464187DEDBAF /* libPods-osx.a */, + ); + name = Frameworks; + sourceTree = ""; + }; + 2544EC37173BE382004117E8 /* AFNetworking */ = { + isa = PBXGroup; + children = ( + 2544EC5D173BE4DD004117E8 /* AFHTTPClient.h */, + 2544EC5E173BE4DD004117E8 /* AFHTTPClient.m */, + 2544EC5F173BE4DD004117E8 /* AFHTTPRequestOperation.h */, + 2544EC60173BE4DD004117E8 /* AFHTTPRequestOperation.m */, + 2544EC61173BE4DD004117E8 /* AFImageRequestOperation.h */, + 2544EC62173BE4DD004117E8 /* AFImageRequestOperation.m */, + 2544EC63173BE4DD004117E8 /* AFJSONRequestOperation.h */, + 2544EC64173BE4DD004117E8 /* AFJSONRequestOperation.m */, + 2544EC65173BE4DD004117E8 /* AFNetworkActivityIndicatorManager.h */, + 2544EC66173BE4DD004117E8 /* AFNetworkActivityIndicatorManager.m */, + 2544EC67173BE4DD004117E8 /* AFNetworking.h */, + 2544EC68173BE4DD004117E8 /* AFPropertyListRequestOperation.h */, + 2544EC69173BE4DD004117E8 /* AFPropertyListRequestOperation.m */, + 2544EC6A173BE4DD004117E8 /* AFURLConnectionOperation.h */, + 2544EC6B173BE4DD004117E8 /* AFURLConnectionOperation.m */, + 2544EC6C173BE4DD004117E8 /* AFXMLRequestOperation.h */, + 2544EC6D173BE4DD004117E8 /* AFXMLRequestOperation.m */, + 2544EC6E173BE4DD004117E8 /* UIImageView+AFNetworking.h */, + 2544EC6F173BE4DD004117E8 /* UIImageView+AFNetworking.m */, + ); + path = AFNetworking; + sourceTree = ""; + }; + 2544EC82173BFAA8004117E8 /* Other Frameworks */ = { + isa = PBXGroup; + children = ( + 2544EC83173BFAA8004117E8 /* AppKit.framework */, + 2544EC84173BFAA8004117E8 /* CoreData.framework */, + 2544EC85173BFAA8004117E8 /* Foundation.framework */, + ); + name = "Other Frameworks"; + sourceTree = ""; + }; + 25C4EBFF173BFBA70083E116 /* AFNetworkingTests */ = { + isa = PBXGroup; + children = ( + 25C4EC3E173D84C70083E116 /* AFHTTPRequestOperationTest.m */, + 25C4EC35173D7F3C0083E116 /* AFHTTPClientTest.m */, + 25C4EC39173D7F9E0083E116 /* AFNetworkingTests.h */, + 25C4EC3A173D82290083E116 /* AFNetworkingTests.m */, + 25C4EC38173D7F5A0083E116 /* Support */, + ); + path = AFNetworkingTests; + sourceTree = ""; + }; + 25C4EC38173D7F5A0083E116 /* Support */ = { + isa = PBXGroup; + children = ( + 4185EE53DF5646419AE66CA0 /* Pods-ios.xcconfig */, + 3A9F6CCEA1634087A54CA260 /* Pods-osx.xcconfig */, + 25C4EC00173BFBA70083E116 /* AFNetworkingTests-Info.plist */, + ); + name = Support; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 2544EC7C173BFAA8004117E8 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 25C4EC20173D7A2D0083E116 /* AFHTTPClient.h in Headers */, + 25C4EC21173D7A3C0083E116 /* AFHTTPRequestOperation.h in Headers */, + 25C4EC22173D7A3C0083E116 /* AFImageRequestOperation.h in Headers */, + 25C4EC23173D7A3C0083E116 /* AFJSONRequestOperation.h in Headers */, + 25C4EC24173D7A3C0083E116 /* AFNetworkActivityIndicatorManager.h in Headers */, + 25C4EC25173D7A3C0083E116 /* AFNetworking.h in Headers */, + 25C4EC26173D7A3C0083E116 /* AFPropertyListRequestOperation.h in Headers */, + 25C4EC27173D7A3C0083E116 /* AFURLConnectionOperation.h in Headers */, + 25C4EC28173D7A3C0083E116 /* AFXMLRequestOperation.h in Headers */, + 25C4EC29173D7A3C0083E116 /* UIImageView+AFNetworking.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 2544EC31173BE382004117E8 /* AFNetworking */ = { + isa = PBXNativeTarget; + buildConfigurationList = 2544EC57173BE382004117E8 /* Build configuration list for PBXNativeTarget "AFNetworking" */; + buildPhases = ( + 2544EC2E173BE382004117E8 /* Sources */, + 2544EC2F173BE382004117E8 /* Frameworks */, + 2544EC30173BE382004117E8 /* CopyFiles */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = AFNetworking; + productName = AFNetworking; + productReference = 2544EC32173BE382004117E8 /* libAFNetworking.a */; + productType = "com.apple.product-type.library.static"; + }; + 2544EC42173BE382004117E8 /* AFNetworkingTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 2544EC5A173BE382004117E8 /* Build configuration list for PBXNativeTarget "AFNetworkingTests" */; + buildPhases = ( + A56DF943F839492A82A2E686 /* Check Pods Manifest.lock */, + 2544EC3E173BE382004117E8 /* Sources */, + 2544EC3F173BE382004117E8 /* Frameworks */, + 2544EC40173BE382004117E8 /* Resources */, + 2544EC41173BE382004117E8 /* ShellScript */, + B64BACD31A5E4E469B8FA901 /* Copy Pods Resources */, + ); + buildRules = ( + ); + dependencies = ( + 2544EC4A173BE382004117E8 /* PBXTargetDependency */, + ); + name = AFNetworkingTests; + productName = AFNetworkingTests; + productReference = 2544EC43173BE382004117E8 /* AFNetworkingTests.octest */; + productType = "com.apple.product-type.bundle"; + }; + 2544EC7E173BFAA8004117E8 /* AFNetworkingFramework */ = { + isa = PBXNativeTarget; + buildConfigurationList = 2544ECA4173BFAA8004117E8 /* Build configuration list for PBXNativeTarget "AFNetworkingFramework" */; + buildPhases = ( + 2544EC7A173BFAA8004117E8 /* Sources */, + 2544EC7B173BFAA8004117E8 /* Frameworks */, + 2544EC7C173BFAA8004117E8 /* Headers */, + 2544EC7D173BFAA8004117E8 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = AFNetworkingFramework; + productName = AFNetworkingFramework; + productReference = 2544EC7F173BFAA8004117E8 /* AFNetworkingFramework.framework */; + productType = "com.apple.product-type.framework"; + }; + 2544EC94173BFAA8004117E8 /* AFNetworkingFrameworkTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 2544ECA7173BFAA8004117E8 /* Build configuration list for PBXNativeTarget "AFNetworkingFrameworkTests" */; + buildPhases = ( + B5A6770A8EDC4CF7A709C8BD /* Check Pods Manifest.lock */, + 2544EC90173BFAA8004117E8 /* Sources */, + 2544EC91173BFAA8004117E8 /* Frameworks */, + 2544EC92173BFAA8004117E8 /* Resources */, + 2544EC93173BFAA8004117E8 /* ShellScript */, + B72AAA1CF47A4D7CAF8BEB66 /* Copy Pods Resources */, + ); + buildRules = ( + ); + dependencies = ( + 2544EC99173BFAA8004117E8 /* PBXTargetDependency */, + ); + name = AFNetworkingFrameworkTests; + productName = AFNetworkingFrameworkTests; + productReference = 2544EC95173BFAA8004117E8 /* AFNetworkingFrameworkTests.octest */; + productType = "com.apple.product-type.bundle"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 2544EC2A173BE382004117E8 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0460; + ORGANIZATIONNAME = AFNetworking; + }; + buildConfigurationList = 2544EC2D173BE382004117E8 /* Build configuration list for PBXProject "AFNetworking" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 2544EC29173BE382004117E8; + productRefGroup = 2544EC33173BE382004117E8 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 2544EC31173BE382004117E8 /* AFNetworking */, + 2544EC42173BE382004117E8 /* AFNetworkingTests */, + 2544EC7E173BFAA8004117E8 /* AFNetworkingFramework */, + 2544EC94173BFAA8004117E8 /* AFNetworkingFrameworkTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 2544EC40173BE382004117E8 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2544EC7D173BFAA8004117E8 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2544EC92173BFAA8004117E8 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 2544EC41173BE382004117E8 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n"; + }; + 2544EC93173BFAA8004117E8 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n"; + }; + A56DF943F839492A82A2E686 /* Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Check Pods Manifest.lock"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; + }; + B5A6770A8EDC4CF7A709C8BD /* Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Check Pods Manifest.lock"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; + }; + B64BACD31A5E4E469B8FA901 /* Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Copy Pods Resources"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Pods-ios-resources.sh\"\n"; + }; + B72AAA1CF47A4D7CAF8BEB66 /* Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Copy Pods Resources"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Pods-osx-resources.sh\"\n"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 2544EC2E173BE382004117E8 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 2544EC70173BE4DD004117E8 /* AFHTTPClient.m in Sources */, + 2544EC71173BE4DD004117E8 /* AFHTTPRequestOperation.m in Sources */, + 2544EC72173BE4DD004117E8 /* AFImageRequestOperation.m in Sources */, + 2544EC73173BE4DD004117E8 /* AFJSONRequestOperation.m in Sources */, + 2544EC74173BE4DD004117E8 /* AFNetworkActivityIndicatorManager.m in Sources */, + 2544EC75173BE4DD004117E8 /* AFPropertyListRequestOperation.m in Sources */, + 2544EC76173BE4DD004117E8 /* AFURLConnectionOperation.m in Sources */, + 2544EC77173BE4DD004117E8 /* AFXMLRequestOperation.m in Sources */, + 2544EC78173BE4DD004117E8 /* UIImageView+AFNetworking.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2544EC3E173BE382004117E8 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 25C4EC36173D7F3C0083E116 /* AFHTTPClientTest.m in Sources */, + 25C4EC3B173D82290083E116 /* AFNetworkingTests.m in Sources */, + 25C4EC3F173D84C70083E116 /* AFHTTPRequestOperationTest.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2544EC7A173BFAA8004117E8 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 25C4EC0E173D74170083E116 /* AFHTTPClient.m in Sources */, + 25C4EC10173D74170083E116 /* AFHTTPRequestOperation.m in Sources */, + 25C4EC12173D74170083E116 /* AFImageRequestOperation.m in Sources */, + 25C4EC14173D74170083E116 /* AFJSONRequestOperation.m in Sources */, + 25C4EC16173D74170083E116 /* AFNetworkActivityIndicatorManager.m in Sources */, + 25C4EC19173D74170083E116 /* AFPropertyListRequestOperation.m in Sources */, + 25C4EC1B173D74170083E116 /* AFURLConnectionOperation.m in Sources */, + 25C4EC1D173D74170083E116 /* AFXMLRequestOperation.m in Sources */, + 25C4EC1F173D74170083E116 /* UIImageView+AFNetworking.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2544EC90173BFAA8004117E8 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 25C4EC37173D7F3C0083E116 /* AFHTTPClientTest.m in Sources */, + 25C4EC3C173D82290083E116 /* AFNetworkingTests.m in Sources */, + 25C4EC40173D84C70083E116 /* AFHTTPRequestOperationTest.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 2544EC4A173BE382004117E8 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 2544EC31173BE382004117E8 /* AFNetworking */; + targetProxy = 2544EC49173BE382004117E8 /* PBXContainerItemProxy */; + }; + 2544EC99173BFAA8004117E8 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 2544EC7E173BFAA8004117E8 /* AFNetworkingFramework */; + targetProxy = 2544EC98173BFAA8004117E8 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 2544EC55173BE382004117E8 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 6.1; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 2544EC56173BE382004117E8 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 6.1; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 2544EC58173BE382004117E8 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + DSTROOT = /tmp/AFNetworking.dst; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "AFNetworking-Prefix.pch"; + IPHONEOS_DEPLOYMENT_TARGET = 5.0; + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = Debug; + }; + 2544EC59173BE382004117E8 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + DSTROOT = /tmp/AFNetworking.dst; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "AFNetworking-Prefix.pch"; + IPHONEOS_DEPLOYMENT_TARGET = 5.0; + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = Release; + }; + 2544EC5B173BE382004117E8 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 4185EE53DF5646419AE66CA0 /* Pods-ios.xcconfig */; + buildSettings = { + FRAMEWORK_SEARCH_PATHS = ( + "\"$(SDKROOT)/Developer/Library/Frameworks\"", + "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "AFNetworking-Prefix.pch"; + INFOPLIST_FILE = "AFNetworkingTests/AFNetworkingTests-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = octest; + }; + name = Debug; + }; + 2544EC5C173BE382004117E8 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 4185EE53DF5646419AE66CA0 /* Pods-ios.xcconfig */; + buildSettings = { + FRAMEWORK_SEARCH_PATHS = ( + "\"$(SDKROOT)/Developer/Library/Frameworks\"", + "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "AFNetworking-Prefix.pch"; + INFOPLIST_FILE = "AFNetworkingTests/AFNetworkingTests-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = octest; + }; + name = Release; + }; + 2544ECA5173BFAA8004117E8 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_64_BIT)"; + COMBINE_HIDPI_IMAGES = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "\"$(SYSTEM_APPS_DIR)/Xcode.app/Contents/Developer/Library/Frameworks\"", + ); + FRAMEWORK_VERSION = A; + GCC_ENABLE_OBJC_EXCEPTIONS = YES; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "AFNetworking-Prefix.pch"; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + MACOSX_DEPLOYMENT_TARGET = 10.7; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = macosx; + WRAPPER_EXTENSION = framework; + }; + name = Debug; + }; + 2544ECA6173BFAA8004117E8 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_64_BIT)"; + COMBINE_HIDPI_IMAGES = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "\"$(SYSTEM_APPS_DIR)/Xcode.app/Contents/Developer/Library/Frameworks\"", + ); + FRAMEWORK_VERSION = A; + GCC_ENABLE_OBJC_EXCEPTIONS = YES; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "AFNetworking-Prefix.pch"; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + MACOSX_DEPLOYMENT_TARGET = 10.7; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = macosx; + WRAPPER_EXTENSION = framework; + }; + name = Release; + }; + 2544ECA8173BFAA8004117E8 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 3A9F6CCEA1634087A54CA260 /* Pods-osx.xcconfig */; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_64_BIT)"; + COMBINE_HIDPI_IMAGES = YES; + FRAMEWORK_SEARCH_PATHS = "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\""; + GCC_ENABLE_OBJC_EXCEPTIONS = YES; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "AFNetworking-Prefix.pch"; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + INFOPLIST_FILE = "AFNetworkingTests/AFNetworkingTests-Info.plist"; + MACOSX_DEPLOYMENT_TARGET = 10.8; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = macosx; + WRAPPER_EXTENSION = octest; + }; + name = Debug; + }; + 2544ECA9173BFAA8004117E8 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 3A9F6CCEA1634087A54CA260 /* Pods-osx.xcconfig */; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_64_BIT)"; + COMBINE_HIDPI_IMAGES = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + FRAMEWORK_SEARCH_PATHS = "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\""; + GCC_ENABLE_OBJC_EXCEPTIONS = YES; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "AFNetworking-Prefix.pch"; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + INFOPLIST_FILE = "AFNetworkingTests/AFNetworkingTests-Info.plist"; + MACOSX_DEPLOYMENT_TARGET = 10.8; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = macosx; + WRAPPER_EXTENSION = octest; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 2544EC2D173BE382004117E8 /* Build configuration list for PBXProject "AFNetworking" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2544EC55173BE382004117E8 /* Debug */, + 2544EC56173BE382004117E8 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 2544EC57173BE382004117E8 /* Build configuration list for PBXNativeTarget "AFNetworking" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2544EC58173BE382004117E8 /* Debug */, + 2544EC59173BE382004117E8 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 2544EC5A173BE382004117E8 /* Build configuration list for PBXNativeTarget "AFNetworkingTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2544EC5B173BE382004117E8 /* Debug */, + 2544EC5C173BE382004117E8 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 2544ECA4173BFAA8004117E8 /* Build configuration list for PBXNativeTarget "AFNetworkingFramework" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2544ECA5173BFAA8004117E8 /* Debug */, + 2544ECA6173BFAA8004117E8 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 2544ECA7173BFAA8004117E8 /* Build configuration list for PBXNativeTarget "AFNetworkingFrameworkTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2544ECA8173BFAA8004117E8 /* Debug */, + 2544ECA9173BFAA8004117E8 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 2544EC2A173BE382004117E8 /* Project object */; +} diff --git a/AFNetworking.xcodeproj/xcshareddata/xcschemes/AFNetworkingFrameworkTests.xcscheme b/AFNetworking.xcodeproj/xcshareddata/xcschemes/AFNetworkingFrameworkTests.xcscheme new file mode 100644 index 0000000..050ad6d --- /dev/null +++ b/AFNetworking.xcodeproj/xcshareddata/xcschemes/AFNetworkingFrameworkTests.xcscheme @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/AFNetworking.xcodeproj/xcshareddata/xcschemes/AFNetworkingTests.xcscheme b/AFNetworking.xcodeproj/xcshareddata/xcschemes/AFNetworkingTests.xcscheme new file mode 100644 index 0000000..5126d14 --- /dev/null +++ b/AFNetworking.xcodeproj/xcshareddata/xcschemes/AFNetworkingTests.xcscheme @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/AFNetworking.xcworkspace/contents.xcworkspacedata b/AFNetworking.xcworkspace/contents.xcworkspacedata index 66991fb..5608804 100644 --- a/AFNetworking.xcworkspace/contents.xcworkspacedata +++ b/AFNetworking.xcworkspace/contents.xcworkspacedata @@ -1,71 +1 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + \ No newline at end of file diff --git a/AFNetworkingTests/AFHTTPClientTest.m b/AFNetworkingTests/AFHTTPClientTest.m new file mode 100644 index 0000000..9e04166 --- /dev/null +++ b/AFNetworkingTests/AFHTTPClientTest.m @@ -0,0 +1,24 @@ +// +// AFHTTPClientTest.m +// AFNetworking +// +// Created by Blake Watters on 5/10/13. +// Copyright (c) 2013 AFNetworking. All rights reserved. +// + +#import "AFNetworkingTests.h" + +@interface AFHTTPClientTest : SenTestCase +@end + +@implementation AFHTTPClientTest + +- (void)testThatTheDefaultStringEncodingIsUTF8 +{ + AFHTTPClient *client = [AFHTTPClient clientWithBaseURL:[NSURL URLWithString:AFNetworkingTestsBaseURLString]]; + expect(client.stringEncoding).to.equal(NSUTF8StringEncoding); +} + +// default value for header + +@end diff --git a/AFNetworkingTests/AFHTTPRequestOperationTest.m b/AFNetworkingTests/AFHTTPRequestOperationTest.m new file mode 100644 index 0000000..03771be --- /dev/null +++ b/AFNetworkingTests/AFHTTPRequestOperationTest.m @@ -0,0 +1,42 @@ +// +// AFHTTPRequestOperationTest.m +// AFNetworking +// +// Created by Blake Watters on 5/10/13. +// Copyright (c) 2013 AFNetworking. All rights reserved. +// + +#import "AFNetworkingTests.h" + +@interface AFHTTPRequestOperationTest : SenTestCase +@end + +@implementation AFHTTPRequestOperationTest + +- (void)testThatOperationInvokesSuccessCompletionBlockWithResponseObjectOnSuccess +{ + __block id blockResponseObject = nil; + NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"/get" relativeToURL:AFNetworkingTestsBaseURL()]]; + AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:request]; + [operation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) { + blockResponseObject = responseObject; + } failure:nil]; + [operation start]; + expect([operation isFinished]).will.beTruthy(); + expect(blockResponseObject).willNot.beNil(); +} + +- (void)testThatOperationInvokesFailureCompletionBlockWithErrorOnFailure +{ + __block NSError *blockError = nil; + NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"/404" relativeToURL:AFNetworkingTestsBaseURL()]]; + AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:request]; + [operation setCompletionBlockWithSuccess:nil failure:^(AFHTTPRequestOperation *operation, NSError *error) { + blockError = error; + }]; + [operation start]; + expect([operation isFinished]).will.beTruthy(); + expect(blockError).willNot.beNil(); +} + +@end diff --git a/AFNetworkingTests/AFNetworkingTests-Info.plist b/AFNetworkingTests/AFNetworkingTests-Info.plist new file mode 100644 index 0000000..28925ff --- /dev/null +++ b/AFNetworkingTests/AFNetworkingTests-Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + org.afnetworking.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/AFNetworkingTests/AFNetworkingTests.h b/AFNetworkingTests/AFNetworkingTests.h new file mode 100644 index 0000000..05c11d3 --- /dev/null +++ b/AFNetworkingTests/AFNetworkingTests.h @@ -0,0 +1,17 @@ +// +// AFNetworkingTests.h +// AFNetworking +// +// Created by Blake Watters on 5/10/13. +// Copyright (c) 2013 AFNetworking. All rights reserved. +// + +#import +#import "AFNetworking.h" + +#define EXP_SHORTHAND YES +#import "Expecta.h" +#import "OCMock.h" + +extern NSString *AFNetworkingTestsBaseURLString; +NSURL *AFNetworkingTestsBaseURL(void); diff --git a/AFNetworkingTests/AFNetworkingTests.m b/AFNetworkingTests/AFNetworkingTests.m new file mode 100644 index 0000000..df81adb --- /dev/null +++ b/AFNetworkingTests/AFNetworkingTests.m @@ -0,0 +1,14 @@ +// +// AFNetworkingTests.m +// AFNetworking +// +// Created by Blake Watters on 5/10/13. +// Copyright (c) 2013 AFNetworking. All rights reserved. +// + +NSString *AFNetworkingTestsBaseURLString = @"http://httpbin.org/"; + +NSURL *AFNetworkingTestsBaseURL(void) +{ + return [NSURL URLWithString:AFNetworkingTestsBaseURLString]; +} diff --git a/Podfile b/Podfile new file mode 100644 index 0000000..2ab86c1 --- /dev/null +++ b/Podfile @@ -0,0 +1,18 @@ +inhibit_all_warnings! + +def import_pods + pod 'OCMock', '2.1.1' + pod 'Expecta', '0.2.1' +end + +target :ios do + platform :ios, '5.0' + link_with 'AFNetworkingTests' + import_pods +end + +target :osx do + platform :osx, '10.7' + link_with 'AFNetworkingFrameworkTests' + import_pods +end diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..5b37a51 --- /dev/null +++ b/Rakefile @@ -0,0 +1,16 @@ +namespace :test do + desc "Run the AFNetworking Tests for iOS" + task :ios do + system('xctool -workspace AFNetworking.xcworkspace -scheme AFNetworkingTests test -test-sdk iphonesimulator') + end + + desc "Run the AFNetworking Tests for Mac OS X" + task :osx do + system('xctool -workspace AFNetworking.xcworkspace -scheme AFNetworkingFrameworkTests test -test-sdk macosx -sdk macosx') + end + + desc "Run the AFNetworking Tests for iOS & Mac OS X" + task :all => ['test:ios', 'test:osx'] +end + +task :default => 'test:all' From 85faf3477fa603a08154a39ca489e5575388a99a Mon Sep 17 00:00:00 2001 From: Blake Watters Date: Fri, 10 May 2013 16:07:40 -0400 Subject: [PATCH 02/15] Add Travis CI build status logo to README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index e60615f..7224906 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ AFNetworking

+[![Build Status](https://travis-ci.org/AFNetworking/AFNetworking.png?branch=master)](https://travis-ci.org/AFNetworking/AFNetworking) + AFNetworking is a delightful networking library for iOS and Mac OS X. It's built on top of [NSURLConnection](http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSURLConnection_Class/Reference/Reference.html), [NSOperation](http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/NSOperation_class/Reference/Reference.html), and other familiar Foundation technologies. It has a modular architecture with well-designed, feature-rich APIs that are a joy to use. For example, here's how easy it is to get JSON from a URL: ``` objective-c From 91db618d8e04081e27e27d2e394bf3cea5c37705 Mon Sep 17 00:00:00 2001 From: Blake Watters Date: Fri, 10 May 2013 17:10:56 -0400 Subject: [PATCH 03/15] Remove unnecessary CocoaPods setup during Travis build execution --- .travis.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index bc4be22..8880278 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,4 @@ language: objective-c before_install: - brew update - brew install xctool --HEAD - - gem install cocoapods - - pod install script: "rake test:all" From 7d89a1897d21042419984479b1c92ad0098d6d99 Mon Sep 17 00:00:00 2001 From: Blake Watters Date: Fri, 10 May 2013 17:32:00 -0400 Subject: [PATCH 04/15] Cleanup Podfile and remove overridden OTHER_LDFLAGS on AFNetworking static library target --- AFNetworking.xcodeproj/project.pbxproj | 40 ++++++++++++++++++++++++-- Podfile | 8 ++---- 2 files changed, 40 insertions(+), 8 deletions(-) diff --git a/AFNetworking.xcodeproj/project.pbxproj b/AFNetworking.xcodeproj/project.pbxproj index db2f9bb..508d38a 100644 --- a/AFNetworking.xcodeproj/project.pbxproj +++ b/AFNetworking.xcodeproj/project.pbxproj @@ -58,6 +58,7 @@ 25C4EC40173D84C70083E116 /* AFHTTPRequestOperationTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 25C4EC3E173D84C70083E116 /* AFHTTPRequestOperationTest.m */; }; 25C4EC41173D86AE0083E116 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25C4EC32173D7DD20083E116 /* SystemConfiguration.framework */; }; 25C4EC42173D86B60083E116 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25C4EC30173D7DCA0083E116 /* MobileCoreServices.framework */; }; + 8C3F274EB4534B2EA29AB3D6 /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2B6D24F8E1B74E10A269E8B3 /* libPods.a */; }; AC11A74923B64A3096ACADFC /* libPods-osx.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 96A923755B00464187DEDBAF /* libPods-osx.a */; }; /* End PBXBuildFile section */ @@ -91,6 +92,7 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + 12BB563617304561A5E20CE5 /* Pods.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.xcconfig; path = Pods/Pods.xcconfig; sourceTree = SOURCE_ROOT; }; 2544EC32173BE382004117E8 /* libAFNetworking.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libAFNetworking.a; sourceTree = BUILT_PRODUCTS_DIR; }; 2544EC35173BE382004117E8 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 2544EC43173BE382004117E8 /* AFNetworkingTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AFNetworkingTests.octest; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -131,6 +133,7 @@ 25C4EC39173D7F9E0083E116 /* AFNetworkingTests.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AFNetworkingTests.h; sourceTree = ""; }; 25C4EC3A173D82290083E116 /* AFNetworkingTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFNetworkingTests.m; sourceTree = ""; }; 25C4EC3E173D84C70083E116 /* AFHTTPRequestOperationTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFHTTPRequestOperationTest.m; sourceTree = ""; }; + 2B6D24F8E1B74E10A269E8B3 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; }; 3A9F6CCEA1634087A54CA260 /* Pods-osx.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-osx.xcconfig"; path = "Pods/Pods-osx.xcconfig"; sourceTree = SOURCE_ROOT; }; 4185EE53DF5646419AE66CA0 /* Pods-ios.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ios.xcconfig"; path = "Pods/Pods-ios.xcconfig"; sourceTree = SOURCE_ROOT; }; 55E73C267F33406A9F92476C /* libPods-ios.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ios.a"; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -146,6 +149,7 @@ 25C4EC31173D7DCA0083E116 /* MobileCoreServices.framework in Frameworks */, 25C4EC2F173D7DC40083E116 /* CFNetwork.framework in Frameworks */, 2544EC36173BE382004117E8 /* Foundation.framework in Frameworks */, + 8C3F274EB4534B2EA29AB3D6 /* libPods.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -194,6 +198,7 @@ 25C4EBFF173BFBA70083E116 /* AFNetworkingTests */, 2544EC34173BE382004117E8 /* Frameworks */, 2544EC33173BE382004117E8 /* Products */, + 12BB563617304561A5E20CE5 /* Pods.xcconfig */, ); sourceTree = ""; }; @@ -223,6 +228,7 @@ 2544EC82173BFAA8004117E8 /* Other Frameworks */, 55E73C267F33406A9F92476C /* libPods-ios.a */, 96A923755B00464187DEDBAF /* libPods-osx.a */, + 2B6D24F8E1B74E10A269E8B3 /* libPods.a */, ); name = Frameworks; sourceTree = ""; @@ -312,9 +318,11 @@ isa = PBXNativeTarget; buildConfigurationList = 2544EC57173BE382004117E8 /* Build configuration list for PBXNativeTarget "AFNetworking" */; buildPhases = ( + 1B236131E70E4B509829D632 /* Check Pods Manifest.lock */, 2544EC2E173BE382004117E8 /* Sources */, 2544EC2F173BE382004117E8 /* Frameworks */, 2544EC30173BE382004117E8 /* CopyFiles */, + 1B83324CD2F543A0B1C9BCF3 /* Copy Pods Resources */, ); buildRules = ( ); @@ -439,6 +447,34 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ + 1B236131E70E4B509829D632 /* Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Check Pods Manifest.lock"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; + }; + 1B83324CD2F543A0B1C9BCF3 /* Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Copy Pods Resources"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Pods-resources.sh\"\n"; + }; 2544EC41173BE382004117E8 /* ShellScript */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -647,12 +683,12 @@ }; 2544EC58173BE382004117E8 /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 12BB563617304561A5E20CE5 /* Pods.xcconfig */; buildSettings = { DSTROOT = /tmp/AFNetworking.dst; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "AFNetworking-Prefix.pch"; IPHONEOS_DEPLOYMENT_TARGET = 5.0; - OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; }; @@ -660,12 +696,12 @@ }; 2544EC59173BE382004117E8 /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 12BB563617304561A5E20CE5 /* Pods.xcconfig */; buildSettings = { DSTROOT = /tmp/AFNetworking.dst; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "AFNetworking-Prefix.pch"; IPHONEOS_DEPLOYMENT_TARGET = 5.0; - OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; }; diff --git a/Podfile b/Podfile index 2ab86c1..6c056a6 100644 --- a/Podfile +++ b/Podfile @@ -1,18 +1,14 @@ inhibit_all_warnings! -def import_pods - pod 'OCMock', '2.1.1' - pod 'Expecta', '0.2.1' -end +pod 'OCMock', '2.1.1' +pod 'Expecta', '0.2.1' target :ios do platform :ios, '5.0' link_with 'AFNetworkingTests' - import_pods end target :osx do platform :osx, '10.7' link_with 'AFNetworkingFrameworkTests' - import_pods end From 5bfde2ab4d0509d25170d6abd77f6b573044d94a Mon Sep 17 00:00:00 2001 From: Blake Watters Date: Fri, 10 May 2013 18:11:40 -0400 Subject: [PATCH 05/15] Restore previous break-out of Pods configuration as the global import links it into the wrong targets --- AFNetworking.xcodeproj/project.pbxproj | 34 -------------------------- Podfile | 8 ++++-- 2 files changed, 6 insertions(+), 36 deletions(-) diff --git a/AFNetworking.xcodeproj/project.pbxproj b/AFNetworking.xcodeproj/project.pbxproj index 508d38a..b78baa5 100644 --- a/AFNetworking.xcodeproj/project.pbxproj +++ b/AFNetworking.xcodeproj/project.pbxproj @@ -92,7 +92,6 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - 12BB563617304561A5E20CE5 /* Pods.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.xcconfig; path = Pods/Pods.xcconfig; sourceTree = SOURCE_ROOT; }; 2544EC32173BE382004117E8 /* libAFNetworking.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libAFNetworking.a; sourceTree = BUILT_PRODUCTS_DIR; }; 2544EC35173BE382004117E8 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 2544EC43173BE382004117E8 /* AFNetworkingTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AFNetworkingTests.octest; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -198,7 +197,6 @@ 25C4EBFF173BFBA70083E116 /* AFNetworkingTests */, 2544EC34173BE382004117E8 /* Frameworks */, 2544EC33173BE382004117E8 /* Products */, - 12BB563617304561A5E20CE5 /* Pods.xcconfig */, ); sourceTree = ""; }; @@ -318,11 +316,9 @@ isa = PBXNativeTarget; buildConfigurationList = 2544EC57173BE382004117E8 /* Build configuration list for PBXNativeTarget "AFNetworking" */; buildPhases = ( - 1B236131E70E4B509829D632 /* Check Pods Manifest.lock */, 2544EC2E173BE382004117E8 /* Sources */, 2544EC2F173BE382004117E8 /* Frameworks */, 2544EC30173BE382004117E8 /* CopyFiles */, - 1B83324CD2F543A0B1C9BCF3 /* Copy Pods Resources */, ); buildRules = ( ); @@ -447,34 +443,6 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ - 1B236131E70E4B509829D632 /* Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Check Pods Manifest.lock"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; - }; - 1B83324CD2F543A0B1C9BCF3 /* Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Copy Pods Resources"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Pods-resources.sh\"\n"; - }; 2544EC41173BE382004117E8 /* ShellScript */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -683,7 +651,6 @@ }; 2544EC58173BE382004117E8 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 12BB563617304561A5E20CE5 /* Pods.xcconfig */; buildSettings = { DSTROOT = /tmp/AFNetworking.dst; GCC_PRECOMPILE_PREFIX_HEADER = YES; @@ -696,7 +663,6 @@ }; 2544EC59173BE382004117E8 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 12BB563617304561A5E20CE5 /* Pods.xcconfig */; buildSettings = { DSTROOT = /tmp/AFNetworking.dst; GCC_PRECOMPILE_PREFIX_HEADER = YES; diff --git a/Podfile b/Podfile index 6c056a6..2ab86c1 100644 --- a/Podfile +++ b/Podfile @@ -1,14 +1,18 @@ inhibit_all_warnings! -pod 'OCMock', '2.1.1' -pod 'Expecta', '0.2.1' +def import_pods + pod 'OCMock', '2.1.1' + pod 'Expecta', '0.2.1' +end target :ios do platform :ios, '5.0' link_with 'AFNetworkingTests' + import_pods end target :osx do platform :osx, '10.7' link_with 'AFNetworkingFrameworkTests' + import_pods end From bc3b94f79d2e32b77b0ae553939f4e486c0fdb4f Mon Sep 17 00:00:00 2001 From: Blake Watters Date: Sat, 11 May 2013 12:53:24 -0400 Subject: [PATCH 06/15] Add Podfile.lock to the project --- .gitignore | 1 - Podfile.lock | 13 +++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 Podfile.lock diff --git a/.gitignore b/.gitignore index aab128c..94ed2b5 100644 --- a/.gitignore +++ b/.gitignore @@ -17,4 +17,3 @@ profile DerivedData .idea/ Pods -Podfile.lock diff --git a/Podfile.lock b/Podfile.lock new file mode 100644 index 0000000..e07e86a --- /dev/null +++ b/Podfile.lock @@ -0,0 +1,13 @@ +PODS: + - Expecta (0.2.1) + - OCMock (2.1.1) + +DEPENDENCIES: + - Expecta (= 0.2.1) + - OCMock (= 2.1.1) + +SPEC CHECKSUMS: + Expecta: d46fb1bd78c90a83da0158b9b1e108de106e369f + OCMock: 79212e5e328378af5cfd6edb5feacfd6c49cd8a3 + +COCOAPODS: 0.19.1 From 4f04b35378438ffc6d9b4ca3870e1a6ea3a4e0bd Mon Sep 17 00:00:00 2001 From: Blake Watters Date: Sat, 11 May 2013 13:18:43 -0400 Subject: [PATCH 07/15] Reorganize testing setup * Eliminate static library and framework targets * Migrate all testing infrastructure and code to Tests/ * Nest CocoaPods setup for testing under Tests/ * Remove explicit dependencies from shared schemes --- .gitignore | 2 +- AFNetworking.xcodeproj/project.pbxproj | 845 ------------------ .../contents.xcworkspacedata | 17 +- .../AFHTTPClientTest.m | 0 .../AFHTTPRequestOperationTest.m | 0 .../project.pbxproj | 517 +++++++++++ .../xcschemes/OS X Tests.xcscheme | 6 +- .../xcshareddata/xcschemes/iOS Tests.xcscheme | 10 +- .../AFNetworking-Prefix.pch | 0 .../AFNetworkingTests-Info.plist | 0 .../AFNetworkingTests.h | 0 .../AFNetworkingTests.m | 0 Podfile => Tests/Podfile | 6 +- Podfile.lock => Tests/Podfile.lock | 0 14 files changed, 546 insertions(+), 857 deletions(-) delete mode 100644 AFNetworking.xcodeproj/project.pbxproj rename {AFNetworkingTests => Tests}/AFHTTPClientTest.m (100%) rename {AFNetworkingTests => Tests}/AFHTTPRequestOperationTest.m (100%) create mode 100644 Tests/AFNetworking Tests.xcodeproj/project.pbxproj rename AFNetworking.xcodeproj/xcshareddata/xcschemes/AFNetworkingFrameworkTests.xcscheme => Tests/AFNetworking Tests.xcodeproj/xcshareddata/xcschemes/OS X Tests.xcscheme (92%) rename AFNetworking.xcodeproj/xcshareddata/xcschemes/AFNetworkingTests.xcscheme => Tests/AFNetworking Tests.xcodeproj/xcshareddata/xcschemes/iOS Tests.xcscheme (88%) rename AFNetworking-Prefix.pch => Tests/AFNetworking-Prefix.pch (100%) rename {AFNetworkingTests => Tests}/AFNetworkingTests-Info.plist (100%) rename {AFNetworkingTests => Tests}/AFNetworkingTests.h (100%) rename {AFNetworkingTests => Tests}/AFNetworkingTests.m (100%) rename Podfile => Tests/Podfile (65%) rename Podfile.lock => Tests/Podfile.lock (100%) diff --git a/.gitignore b/.gitignore index 94ed2b5..fad32b8 100644 --- a/.gitignore +++ b/.gitignore @@ -16,4 +16,4 @@ profile *.moved-aside DerivedData .idea/ -Pods +Tests/Pods diff --git a/AFNetworking.xcodeproj/project.pbxproj b/AFNetworking.xcodeproj/project.pbxproj deleted file mode 100644 index b78baa5..0000000 --- a/AFNetworking.xcodeproj/project.pbxproj +++ /dev/null @@ -1,845 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 0BAD1A5426FC47BF8790D245 /* libPods-ios.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 55E73C267F33406A9F92476C /* libPods-ios.a */; }; - 2544EC36173BE382004117E8 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2544EC35173BE382004117E8 /* Foundation.framework */; }; - 2544EC45173BE382004117E8 /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2544EC44173BE382004117E8 /* SenTestingKit.framework */; }; - 2544EC47173BE382004117E8 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2544EC46173BE382004117E8 /* UIKit.framework */; }; - 2544EC48173BE382004117E8 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2544EC35173BE382004117E8 /* Foundation.framework */; }; - 2544EC4B173BE382004117E8 /* libAFNetworking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2544EC32173BE382004117E8 /* libAFNetworking.a */; }; - 2544EC70173BE4DD004117E8 /* AFHTTPClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC5E173BE4DD004117E8 /* AFHTTPClient.m */; }; - 2544EC71173BE4DD004117E8 /* AFHTTPRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC60173BE4DD004117E8 /* AFHTTPRequestOperation.m */; }; - 2544EC72173BE4DD004117E8 /* AFImageRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC62173BE4DD004117E8 /* AFImageRequestOperation.m */; }; - 2544EC73173BE4DD004117E8 /* AFJSONRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC64173BE4DD004117E8 /* AFJSONRequestOperation.m */; }; - 2544EC74173BE4DD004117E8 /* AFNetworkActivityIndicatorManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC66173BE4DD004117E8 /* AFNetworkActivityIndicatorManager.m */; }; - 2544EC75173BE4DD004117E8 /* AFPropertyListRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC69173BE4DD004117E8 /* AFPropertyListRequestOperation.m */; }; - 2544EC76173BE4DD004117E8 /* AFURLConnectionOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC6B173BE4DD004117E8 /* AFURLConnectionOperation.m */; }; - 2544EC77173BE4DD004117E8 /* AFXMLRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC6D173BE4DD004117E8 /* AFXMLRequestOperation.m */; }; - 2544EC78173BE4DD004117E8 /* UIImageView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC6F173BE4DD004117E8 /* UIImageView+AFNetworking.m */; }; - 2544EC81173BFAA8004117E8 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2544EC80173BFAA8004117E8 /* Cocoa.framework */; }; - 2544EC96173BFAA8004117E8 /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2544EC44173BE382004117E8 /* SenTestingKit.framework */; }; - 2544EC97173BFAA8004117E8 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2544EC80173BFAA8004117E8 /* Cocoa.framework */; }; - 2544EC9A173BFAA8004117E8 /* AFNetworkingFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2544EC7F173BFAA8004117E8 /* AFNetworkingFramework.framework */; }; - 25C4EC0E173D74170083E116 /* AFHTTPClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC5E173BE4DD004117E8 /* AFHTTPClient.m */; }; - 25C4EC10173D74170083E116 /* AFHTTPRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC60173BE4DD004117E8 /* AFHTTPRequestOperation.m */; }; - 25C4EC12173D74170083E116 /* AFImageRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC62173BE4DD004117E8 /* AFImageRequestOperation.m */; }; - 25C4EC14173D74170083E116 /* AFJSONRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC64173BE4DD004117E8 /* AFJSONRequestOperation.m */; }; - 25C4EC16173D74170083E116 /* AFNetworkActivityIndicatorManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC66173BE4DD004117E8 /* AFNetworkActivityIndicatorManager.m */; }; - 25C4EC19173D74170083E116 /* AFPropertyListRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC69173BE4DD004117E8 /* AFPropertyListRequestOperation.m */; }; - 25C4EC1B173D74170083E116 /* AFURLConnectionOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC6B173BE4DD004117E8 /* AFURLConnectionOperation.m */; }; - 25C4EC1D173D74170083E116 /* AFXMLRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC6D173BE4DD004117E8 /* AFXMLRequestOperation.m */; }; - 25C4EC1F173D74170083E116 /* UIImageView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = 2544EC6F173BE4DD004117E8 /* UIImageView+AFNetworking.m */; }; - 25C4EC20173D7A2D0083E116 /* AFHTTPClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 2544EC5D173BE4DD004117E8 /* AFHTTPClient.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 25C4EC21173D7A3C0083E116 /* AFHTTPRequestOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = 2544EC5F173BE4DD004117E8 /* AFHTTPRequestOperation.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 25C4EC22173D7A3C0083E116 /* AFImageRequestOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = 2544EC61173BE4DD004117E8 /* AFImageRequestOperation.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 25C4EC23173D7A3C0083E116 /* AFJSONRequestOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = 2544EC63173BE4DD004117E8 /* AFJSONRequestOperation.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 25C4EC24173D7A3C0083E116 /* AFNetworkActivityIndicatorManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 2544EC65173BE4DD004117E8 /* AFNetworkActivityIndicatorManager.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 25C4EC25173D7A3C0083E116 /* AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 2544EC67173BE4DD004117E8 /* AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 25C4EC26173D7A3C0083E116 /* AFPropertyListRequestOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = 2544EC68173BE4DD004117E8 /* AFPropertyListRequestOperation.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 25C4EC27173D7A3C0083E116 /* AFURLConnectionOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = 2544EC6A173BE4DD004117E8 /* AFURLConnectionOperation.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 25C4EC28173D7A3C0083E116 /* AFXMLRequestOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = 2544EC6C173BE4DD004117E8 /* AFXMLRequestOperation.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 25C4EC29173D7A3C0083E116 /* UIImageView+AFNetworking.h in Headers */ = {isa = PBXBuildFile; fileRef = 2544EC6E173BE4DD004117E8 /* UIImageView+AFNetworking.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 25C4EC2B173D7DB30083E116 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25C4EC2A173D7DB30083E116 /* SystemConfiguration.framework */; }; - 25C4EC2D173D7DBA0083E116 /* CoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25C4EC2C173D7DBA0083E116 /* CoreServices.framework */; }; - 25C4EC2F173D7DC40083E116 /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25C4EC2E173D7DC40083E116 /* CFNetwork.framework */; }; - 25C4EC31173D7DCA0083E116 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25C4EC30173D7DCA0083E116 /* MobileCoreServices.framework */; }; - 25C4EC33173D7DD20083E116 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25C4EC32173D7DD20083E116 /* SystemConfiguration.framework */; }; - 25C4EC36173D7F3C0083E116 /* AFHTTPClientTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 25C4EC35173D7F3C0083E116 /* AFHTTPClientTest.m */; }; - 25C4EC37173D7F3C0083E116 /* AFHTTPClientTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 25C4EC35173D7F3C0083E116 /* AFHTTPClientTest.m */; }; - 25C4EC3B173D82290083E116 /* AFNetworkingTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 25C4EC3A173D82290083E116 /* AFNetworkingTests.m */; }; - 25C4EC3C173D82290083E116 /* AFNetworkingTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 25C4EC3A173D82290083E116 /* AFNetworkingTests.m */; }; - 25C4EC3F173D84C70083E116 /* AFHTTPRequestOperationTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 25C4EC3E173D84C70083E116 /* AFHTTPRequestOperationTest.m */; }; - 25C4EC40173D84C70083E116 /* AFHTTPRequestOperationTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 25C4EC3E173D84C70083E116 /* AFHTTPRequestOperationTest.m */; }; - 25C4EC41173D86AE0083E116 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25C4EC32173D7DD20083E116 /* SystemConfiguration.framework */; }; - 25C4EC42173D86B60083E116 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25C4EC30173D7DCA0083E116 /* MobileCoreServices.framework */; }; - 8C3F274EB4534B2EA29AB3D6 /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2B6D24F8E1B74E10A269E8B3 /* libPods.a */; }; - AC11A74923B64A3096ACADFC /* libPods-osx.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 96A923755B00464187DEDBAF /* libPods-osx.a */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 2544EC49173BE382004117E8 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 2544EC2A173BE382004117E8 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 2544EC31173BE382004117E8; - remoteInfo = AFNetworking; - }; - 2544EC98173BFAA8004117E8 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 2544EC2A173BE382004117E8 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 2544EC7E173BFAA8004117E8; - remoteInfo = AFNetworkingFramework; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 2544EC30173BE382004117E8 /* CopyFiles */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = "include/${PRODUCT_NAME}"; - dstSubfolderSpec = 16; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 2544EC32173BE382004117E8 /* libAFNetworking.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libAFNetworking.a; sourceTree = BUILT_PRODUCTS_DIR; }; - 2544EC35173BE382004117E8 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; - 2544EC43173BE382004117E8 /* AFNetworkingTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AFNetworkingTests.octest; sourceTree = BUILT_PRODUCTS_DIR; }; - 2544EC44173BE382004117E8 /* SenTestingKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = Library/Frameworks/SenTestingKit.framework; sourceTree = DEVELOPER_DIR; }; - 2544EC46173BE382004117E8 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; - 2544EC5D173BE4DD004117E8 /* AFHTTPClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFHTTPClient.h; sourceTree = ""; }; - 2544EC5E173BE4DD004117E8 /* AFHTTPClient.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFHTTPClient.m; sourceTree = ""; }; - 2544EC5F173BE4DD004117E8 /* AFHTTPRequestOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFHTTPRequestOperation.h; sourceTree = ""; }; - 2544EC60173BE4DD004117E8 /* AFHTTPRequestOperation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFHTTPRequestOperation.m; sourceTree = ""; }; - 2544EC61173BE4DD004117E8 /* AFImageRequestOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFImageRequestOperation.h; sourceTree = ""; }; - 2544EC62173BE4DD004117E8 /* AFImageRequestOperation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFImageRequestOperation.m; sourceTree = ""; }; - 2544EC63173BE4DD004117E8 /* AFJSONRequestOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFJSONRequestOperation.h; sourceTree = ""; }; - 2544EC64173BE4DD004117E8 /* AFJSONRequestOperation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFJSONRequestOperation.m; sourceTree = ""; }; - 2544EC65173BE4DD004117E8 /* AFNetworkActivityIndicatorManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFNetworkActivityIndicatorManager.h; sourceTree = ""; }; - 2544EC66173BE4DD004117E8 /* AFNetworkActivityIndicatorManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFNetworkActivityIndicatorManager.m; sourceTree = ""; }; - 2544EC67173BE4DD004117E8 /* AFNetworking.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFNetworking.h; sourceTree = ""; }; - 2544EC68173BE4DD004117E8 /* AFPropertyListRequestOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFPropertyListRequestOperation.h; sourceTree = ""; }; - 2544EC69173BE4DD004117E8 /* AFPropertyListRequestOperation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFPropertyListRequestOperation.m; sourceTree = ""; }; - 2544EC6A173BE4DD004117E8 /* AFURLConnectionOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFURLConnectionOperation.h; sourceTree = ""; }; - 2544EC6B173BE4DD004117E8 /* AFURLConnectionOperation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFURLConnectionOperation.m; sourceTree = ""; }; - 2544EC6C173BE4DD004117E8 /* AFXMLRequestOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFXMLRequestOperation.h; sourceTree = ""; }; - 2544EC6D173BE4DD004117E8 /* AFXMLRequestOperation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFXMLRequestOperation.m; sourceTree = ""; }; - 2544EC6E173BE4DD004117E8 /* UIImageView+AFNetworking.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIImageView+AFNetworking.h"; sourceTree = ""; }; - 2544EC6F173BE4DD004117E8 /* UIImageView+AFNetworking.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIImageView+AFNetworking.m"; sourceTree = ""; }; - 2544EC7F173BFAA8004117E8 /* AFNetworkingFramework.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = AFNetworkingFramework.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 2544EC80173BFAA8004117E8 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = Library/Frameworks/Cocoa.framework; sourceTree = DEVELOPER_DIR; }; - 2544EC83173BFAA8004117E8 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; }; - 2544EC84173BFAA8004117E8 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; }; - 2544EC85173BFAA8004117E8 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; - 2544EC95173BFAA8004117E8 /* AFNetworkingFrameworkTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AFNetworkingFrameworkTests.octest; sourceTree = BUILT_PRODUCTS_DIR; }; - 25C4EC00173BFBA70083E116 /* AFNetworkingTests-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "AFNetworkingTests-Info.plist"; sourceTree = ""; }; - 25C4EC2A173D7DB30083E116 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/SystemConfiguration.framework; sourceTree = DEVELOPER_DIR; }; - 25C4EC2C173D7DBA0083E116 /* CoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreServices.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/CoreServices.framework; sourceTree = DEVELOPER_DIR; }; - 25C4EC2E173D7DC40083E116 /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; }; - 25C4EC30173D7DCA0083E116 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; }; - 25C4EC32173D7DD20083E116 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; - 25C4EC35173D7F3C0083E116 /* AFHTTPClientTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFHTTPClientTest.m; sourceTree = ""; }; - 25C4EC39173D7F9E0083E116 /* AFNetworkingTests.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AFNetworkingTests.h; sourceTree = ""; }; - 25C4EC3A173D82290083E116 /* AFNetworkingTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFNetworkingTests.m; sourceTree = ""; }; - 25C4EC3E173D84C70083E116 /* AFHTTPRequestOperationTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFHTTPRequestOperationTest.m; sourceTree = ""; }; - 2B6D24F8E1B74E10A269E8B3 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; }; - 3A9F6CCEA1634087A54CA260 /* Pods-osx.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-osx.xcconfig"; path = "Pods/Pods-osx.xcconfig"; sourceTree = SOURCE_ROOT; }; - 4185EE53DF5646419AE66CA0 /* Pods-ios.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ios.xcconfig"; path = "Pods/Pods-ios.xcconfig"; sourceTree = SOURCE_ROOT; }; - 55E73C267F33406A9F92476C /* libPods-ios.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ios.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - 96A923755B00464187DEDBAF /* libPods-osx.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-osx.a"; sourceTree = BUILT_PRODUCTS_DIR; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 2544EC2F173BE382004117E8 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 25C4EC33173D7DD20083E116 /* SystemConfiguration.framework in Frameworks */, - 25C4EC31173D7DCA0083E116 /* MobileCoreServices.framework in Frameworks */, - 25C4EC2F173D7DC40083E116 /* CFNetwork.framework in Frameworks */, - 2544EC36173BE382004117E8 /* Foundation.framework in Frameworks */, - 8C3F274EB4534B2EA29AB3D6 /* libPods.a in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2544EC3F173BE382004117E8 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 25C4EC42173D86B60083E116 /* MobileCoreServices.framework in Frameworks */, - 25C4EC41173D86AE0083E116 /* SystemConfiguration.framework in Frameworks */, - 2544EC45173BE382004117E8 /* SenTestingKit.framework in Frameworks */, - 2544EC47173BE382004117E8 /* UIKit.framework in Frameworks */, - 2544EC48173BE382004117E8 /* Foundation.framework in Frameworks */, - 2544EC4B173BE382004117E8 /* libAFNetworking.a in Frameworks */, - 0BAD1A5426FC47BF8790D245 /* libPods-ios.a in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2544EC7B173BFAA8004117E8 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 25C4EC2D173D7DBA0083E116 /* CoreServices.framework in Frameworks */, - 25C4EC2B173D7DB30083E116 /* SystemConfiguration.framework in Frameworks */, - 2544EC81173BFAA8004117E8 /* Cocoa.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2544EC91173BFAA8004117E8 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 2544EC96173BFAA8004117E8 /* SenTestingKit.framework in Frameworks */, - 2544EC97173BFAA8004117E8 /* Cocoa.framework in Frameworks */, - 2544EC9A173BFAA8004117E8 /* AFNetworkingFramework.framework in Frameworks */, - AC11A74923B64A3096ACADFC /* libPods-osx.a in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 2544EC29173BE382004117E8 = { - isa = PBXGroup; - children = ( - 2544EC37173BE382004117E8 /* AFNetworking */, - 25C4EBFF173BFBA70083E116 /* AFNetworkingTests */, - 2544EC34173BE382004117E8 /* Frameworks */, - 2544EC33173BE382004117E8 /* Products */, - ); - sourceTree = ""; - }; - 2544EC33173BE382004117E8 /* Products */ = { - isa = PBXGroup; - children = ( - 2544EC32173BE382004117E8 /* libAFNetworking.a */, - 2544EC43173BE382004117E8 /* AFNetworkingTests.octest */, - 2544EC7F173BFAA8004117E8 /* AFNetworkingFramework.framework */, - 2544EC95173BFAA8004117E8 /* AFNetworkingFrameworkTests.octest */, - ); - name = Products; - sourceTree = ""; - }; - 2544EC34173BE382004117E8 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 25C4EC32173D7DD20083E116 /* SystemConfiguration.framework */, - 25C4EC30173D7DCA0083E116 /* MobileCoreServices.framework */, - 25C4EC2E173D7DC40083E116 /* CFNetwork.framework */, - 25C4EC2C173D7DBA0083E116 /* CoreServices.framework */, - 25C4EC2A173D7DB30083E116 /* SystemConfiguration.framework */, - 2544EC35173BE382004117E8 /* Foundation.framework */, - 2544EC44173BE382004117E8 /* SenTestingKit.framework */, - 2544EC46173BE382004117E8 /* UIKit.framework */, - 2544EC80173BFAA8004117E8 /* Cocoa.framework */, - 2544EC82173BFAA8004117E8 /* Other Frameworks */, - 55E73C267F33406A9F92476C /* libPods-ios.a */, - 96A923755B00464187DEDBAF /* libPods-osx.a */, - 2B6D24F8E1B74E10A269E8B3 /* libPods.a */, - ); - name = Frameworks; - sourceTree = ""; - }; - 2544EC37173BE382004117E8 /* AFNetworking */ = { - isa = PBXGroup; - children = ( - 2544EC5D173BE4DD004117E8 /* AFHTTPClient.h */, - 2544EC5E173BE4DD004117E8 /* AFHTTPClient.m */, - 2544EC5F173BE4DD004117E8 /* AFHTTPRequestOperation.h */, - 2544EC60173BE4DD004117E8 /* AFHTTPRequestOperation.m */, - 2544EC61173BE4DD004117E8 /* AFImageRequestOperation.h */, - 2544EC62173BE4DD004117E8 /* AFImageRequestOperation.m */, - 2544EC63173BE4DD004117E8 /* AFJSONRequestOperation.h */, - 2544EC64173BE4DD004117E8 /* AFJSONRequestOperation.m */, - 2544EC65173BE4DD004117E8 /* AFNetworkActivityIndicatorManager.h */, - 2544EC66173BE4DD004117E8 /* AFNetworkActivityIndicatorManager.m */, - 2544EC67173BE4DD004117E8 /* AFNetworking.h */, - 2544EC68173BE4DD004117E8 /* AFPropertyListRequestOperation.h */, - 2544EC69173BE4DD004117E8 /* AFPropertyListRequestOperation.m */, - 2544EC6A173BE4DD004117E8 /* AFURLConnectionOperation.h */, - 2544EC6B173BE4DD004117E8 /* AFURLConnectionOperation.m */, - 2544EC6C173BE4DD004117E8 /* AFXMLRequestOperation.h */, - 2544EC6D173BE4DD004117E8 /* AFXMLRequestOperation.m */, - 2544EC6E173BE4DD004117E8 /* UIImageView+AFNetworking.h */, - 2544EC6F173BE4DD004117E8 /* UIImageView+AFNetworking.m */, - ); - path = AFNetworking; - sourceTree = ""; - }; - 2544EC82173BFAA8004117E8 /* Other Frameworks */ = { - isa = PBXGroup; - children = ( - 2544EC83173BFAA8004117E8 /* AppKit.framework */, - 2544EC84173BFAA8004117E8 /* CoreData.framework */, - 2544EC85173BFAA8004117E8 /* Foundation.framework */, - ); - name = "Other Frameworks"; - sourceTree = ""; - }; - 25C4EBFF173BFBA70083E116 /* AFNetworkingTests */ = { - isa = PBXGroup; - children = ( - 25C4EC3E173D84C70083E116 /* AFHTTPRequestOperationTest.m */, - 25C4EC35173D7F3C0083E116 /* AFHTTPClientTest.m */, - 25C4EC39173D7F9E0083E116 /* AFNetworkingTests.h */, - 25C4EC3A173D82290083E116 /* AFNetworkingTests.m */, - 25C4EC38173D7F5A0083E116 /* Support */, - ); - path = AFNetworkingTests; - sourceTree = ""; - }; - 25C4EC38173D7F5A0083E116 /* Support */ = { - isa = PBXGroup; - children = ( - 4185EE53DF5646419AE66CA0 /* Pods-ios.xcconfig */, - 3A9F6CCEA1634087A54CA260 /* Pods-osx.xcconfig */, - 25C4EC00173BFBA70083E116 /* AFNetworkingTests-Info.plist */, - ); - name = Support; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - 2544EC7C173BFAA8004117E8 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 25C4EC20173D7A2D0083E116 /* AFHTTPClient.h in Headers */, - 25C4EC21173D7A3C0083E116 /* AFHTTPRequestOperation.h in Headers */, - 25C4EC22173D7A3C0083E116 /* AFImageRequestOperation.h in Headers */, - 25C4EC23173D7A3C0083E116 /* AFJSONRequestOperation.h in Headers */, - 25C4EC24173D7A3C0083E116 /* AFNetworkActivityIndicatorManager.h in Headers */, - 25C4EC25173D7A3C0083E116 /* AFNetworking.h in Headers */, - 25C4EC26173D7A3C0083E116 /* AFPropertyListRequestOperation.h in Headers */, - 25C4EC27173D7A3C0083E116 /* AFURLConnectionOperation.h in Headers */, - 25C4EC28173D7A3C0083E116 /* AFXMLRequestOperation.h in Headers */, - 25C4EC29173D7A3C0083E116 /* UIImageView+AFNetworking.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - 2544EC31173BE382004117E8 /* AFNetworking */ = { - isa = PBXNativeTarget; - buildConfigurationList = 2544EC57173BE382004117E8 /* Build configuration list for PBXNativeTarget "AFNetworking" */; - buildPhases = ( - 2544EC2E173BE382004117E8 /* Sources */, - 2544EC2F173BE382004117E8 /* Frameworks */, - 2544EC30173BE382004117E8 /* CopyFiles */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = AFNetworking; - productName = AFNetworking; - productReference = 2544EC32173BE382004117E8 /* libAFNetworking.a */; - productType = "com.apple.product-type.library.static"; - }; - 2544EC42173BE382004117E8 /* AFNetworkingTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 2544EC5A173BE382004117E8 /* Build configuration list for PBXNativeTarget "AFNetworkingTests" */; - buildPhases = ( - A56DF943F839492A82A2E686 /* Check Pods Manifest.lock */, - 2544EC3E173BE382004117E8 /* Sources */, - 2544EC3F173BE382004117E8 /* Frameworks */, - 2544EC40173BE382004117E8 /* Resources */, - 2544EC41173BE382004117E8 /* ShellScript */, - B64BACD31A5E4E469B8FA901 /* Copy Pods Resources */, - ); - buildRules = ( - ); - dependencies = ( - 2544EC4A173BE382004117E8 /* PBXTargetDependency */, - ); - name = AFNetworkingTests; - productName = AFNetworkingTests; - productReference = 2544EC43173BE382004117E8 /* AFNetworkingTests.octest */; - productType = "com.apple.product-type.bundle"; - }; - 2544EC7E173BFAA8004117E8 /* AFNetworkingFramework */ = { - isa = PBXNativeTarget; - buildConfigurationList = 2544ECA4173BFAA8004117E8 /* Build configuration list for PBXNativeTarget "AFNetworkingFramework" */; - buildPhases = ( - 2544EC7A173BFAA8004117E8 /* Sources */, - 2544EC7B173BFAA8004117E8 /* Frameworks */, - 2544EC7C173BFAA8004117E8 /* Headers */, - 2544EC7D173BFAA8004117E8 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = AFNetworkingFramework; - productName = AFNetworkingFramework; - productReference = 2544EC7F173BFAA8004117E8 /* AFNetworkingFramework.framework */; - productType = "com.apple.product-type.framework"; - }; - 2544EC94173BFAA8004117E8 /* AFNetworkingFrameworkTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 2544ECA7173BFAA8004117E8 /* Build configuration list for PBXNativeTarget "AFNetworkingFrameworkTests" */; - buildPhases = ( - B5A6770A8EDC4CF7A709C8BD /* Check Pods Manifest.lock */, - 2544EC90173BFAA8004117E8 /* Sources */, - 2544EC91173BFAA8004117E8 /* Frameworks */, - 2544EC92173BFAA8004117E8 /* Resources */, - 2544EC93173BFAA8004117E8 /* ShellScript */, - B72AAA1CF47A4D7CAF8BEB66 /* Copy Pods Resources */, - ); - buildRules = ( - ); - dependencies = ( - 2544EC99173BFAA8004117E8 /* PBXTargetDependency */, - ); - name = AFNetworkingFrameworkTests; - productName = AFNetworkingFrameworkTests; - productReference = 2544EC95173BFAA8004117E8 /* AFNetworkingFrameworkTests.octest */; - productType = "com.apple.product-type.bundle"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 2544EC2A173BE382004117E8 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0460; - ORGANIZATIONNAME = AFNetworking; - }; - buildConfigurationList = 2544EC2D173BE382004117E8 /* Build configuration list for PBXProject "AFNetworking" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - ); - mainGroup = 2544EC29173BE382004117E8; - productRefGroup = 2544EC33173BE382004117E8 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 2544EC31173BE382004117E8 /* AFNetworking */, - 2544EC42173BE382004117E8 /* AFNetworkingTests */, - 2544EC7E173BFAA8004117E8 /* AFNetworkingFramework */, - 2544EC94173BFAA8004117E8 /* AFNetworkingFrameworkTests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 2544EC40173BE382004117E8 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2544EC7D173BFAA8004117E8 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2544EC92173BFAA8004117E8 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - 2544EC41173BE382004117E8 /* ShellScript */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n"; - }; - 2544EC93173BFAA8004117E8 /* ShellScript */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n"; - }; - A56DF943F839492A82A2E686 /* Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Check Pods Manifest.lock"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; - }; - B5A6770A8EDC4CF7A709C8BD /* Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Check Pods Manifest.lock"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; - }; - B64BACD31A5E4E469B8FA901 /* Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Copy Pods Resources"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Pods-ios-resources.sh\"\n"; - }; - B72AAA1CF47A4D7CAF8BEB66 /* Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Copy Pods Resources"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Pods-osx-resources.sh\"\n"; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 2544EC2E173BE382004117E8 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 2544EC70173BE4DD004117E8 /* AFHTTPClient.m in Sources */, - 2544EC71173BE4DD004117E8 /* AFHTTPRequestOperation.m in Sources */, - 2544EC72173BE4DD004117E8 /* AFImageRequestOperation.m in Sources */, - 2544EC73173BE4DD004117E8 /* AFJSONRequestOperation.m in Sources */, - 2544EC74173BE4DD004117E8 /* AFNetworkActivityIndicatorManager.m in Sources */, - 2544EC75173BE4DD004117E8 /* AFPropertyListRequestOperation.m in Sources */, - 2544EC76173BE4DD004117E8 /* AFURLConnectionOperation.m in Sources */, - 2544EC77173BE4DD004117E8 /* AFXMLRequestOperation.m in Sources */, - 2544EC78173BE4DD004117E8 /* UIImageView+AFNetworking.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2544EC3E173BE382004117E8 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 25C4EC36173D7F3C0083E116 /* AFHTTPClientTest.m in Sources */, - 25C4EC3B173D82290083E116 /* AFNetworkingTests.m in Sources */, - 25C4EC3F173D84C70083E116 /* AFHTTPRequestOperationTest.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2544EC7A173BFAA8004117E8 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 25C4EC0E173D74170083E116 /* AFHTTPClient.m in Sources */, - 25C4EC10173D74170083E116 /* AFHTTPRequestOperation.m in Sources */, - 25C4EC12173D74170083E116 /* AFImageRequestOperation.m in Sources */, - 25C4EC14173D74170083E116 /* AFJSONRequestOperation.m in Sources */, - 25C4EC16173D74170083E116 /* AFNetworkActivityIndicatorManager.m in Sources */, - 25C4EC19173D74170083E116 /* AFPropertyListRequestOperation.m in Sources */, - 25C4EC1B173D74170083E116 /* AFURLConnectionOperation.m in Sources */, - 25C4EC1D173D74170083E116 /* AFXMLRequestOperation.m in Sources */, - 25C4EC1F173D74170083E116 /* UIImageView+AFNetworking.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2544EC90173BFAA8004117E8 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 25C4EC37173D7F3C0083E116 /* AFHTTPClientTest.m in Sources */, - 25C4EC3C173D82290083E116 /* AFNetworkingTests.m in Sources */, - 25C4EC40173D84C70083E116 /* AFHTTPRequestOperationTest.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 2544EC4A173BE382004117E8 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 2544EC31173BE382004117E8 /* AFNetworking */; - targetProxy = 2544EC49173BE382004117E8 /* PBXContainerItemProxy */; - }; - 2544EC99173BFAA8004117E8 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 2544EC7E173BFAA8004117E8 /* AFNetworkingFramework */; - targetProxy = 2544EC98173BFAA8004117E8 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin XCBuildConfiguration section */ - 2544EC55173BE382004117E8 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 6.1; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - }; - name = Debug; - }; - 2544EC56173BE382004117E8 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 6.1; - SDKROOT = iphoneos; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 2544EC58173BE382004117E8 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - DSTROOT = /tmp/AFNetworking.dst; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "AFNetworking-Prefix.pch"; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - PRODUCT_NAME = "$(TARGET_NAME)"; - SKIP_INSTALL = YES; - }; - name = Debug; - }; - 2544EC59173BE382004117E8 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - DSTROOT = /tmp/AFNetworking.dst; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "AFNetworking-Prefix.pch"; - IPHONEOS_DEPLOYMENT_TARGET = 5.0; - PRODUCT_NAME = "$(TARGET_NAME)"; - SKIP_INSTALL = YES; - }; - name = Release; - }; - 2544EC5B173BE382004117E8 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 4185EE53DF5646419AE66CA0 /* Pods-ios.xcconfig */; - buildSettings = { - FRAMEWORK_SEARCH_PATHS = ( - "\"$(SDKROOT)/Developer/Library/Frameworks\"", - "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"", - ); - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "AFNetworking-Prefix.pch"; - INFOPLIST_FILE = "AFNetworkingTests/AFNetworkingTests-Info.plist"; - PRODUCT_NAME = "$(TARGET_NAME)"; - WRAPPER_EXTENSION = octest; - }; - name = Debug; - }; - 2544EC5C173BE382004117E8 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 4185EE53DF5646419AE66CA0 /* Pods-ios.xcconfig */; - buildSettings = { - FRAMEWORK_SEARCH_PATHS = ( - "\"$(SDKROOT)/Developer/Library/Frameworks\"", - "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"", - ); - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "AFNetworking-Prefix.pch"; - INFOPLIST_FILE = "AFNetworkingTests/AFNetworkingTests-Info.plist"; - PRODUCT_NAME = "$(TARGET_NAME)"; - WRAPPER_EXTENSION = octest; - }; - name = Release; - }; - 2544ECA5173BFAA8004117E8 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD_64_BIT)"; - COMBINE_HIDPI_IMAGES = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "\"$(SYSTEM_APPS_DIR)/Xcode.app/Contents/Developer/Library/Frameworks\"", - ); - FRAMEWORK_VERSION = A; - GCC_ENABLE_OBJC_EXCEPTIONS = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "AFNetworking-Prefix.pch"; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - MACOSX_DEPLOYMENT_TARGET = 10.7; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = macosx; - WRAPPER_EXTENSION = framework; - }; - name = Debug; - }; - 2544ECA6173BFAA8004117E8 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD_64_BIT)"; - COMBINE_HIDPI_IMAGES = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "\"$(SYSTEM_APPS_DIR)/Xcode.app/Contents/Developer/Library/Frameworks\"", - ); - FRAMEWORK_VERSION = A; - GCC_ENABLE_OBJC_EXCEPTIONS = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "AFNetworking-Prefix.pch"; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - MACOSX_DEPLOYMENT_TARGET = 10.7; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = macosx; - WRAPPER_EXTENSION = framework; - }; - name = Release; - }; - 2544ECA8173BFAA8004117E8 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 3A9F6CCEA1634087A54CA260 /* Pods-osx.xcconfig */; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD_64_BIT)"; - COMBINE_HIDPI_IMAGES = YES; - FRAMEWORK_SEARCH_PATHS = "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\""; - GCC_ENABLE_OBJC_EXCEPTIONS = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "AFNetworking-Prefix.pch"; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - INFOPLIST_FILE = "AFNetworkingTests/AFNetworkingTests-Info.plist"; - MACOSX_DEPLOYMENT_TARGET = 10.8; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = macosx; - WRAPPER_EXTENSION = octest; - }; - name = Debug; - }; - 2544ECA9173BFAA8004117E8 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 3A9F6CCEA1634087A54CA260 /* Pods-osx.xcconfig */; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD_64_BIT)"; - COMBINE_HIDPI_IMAGES = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - FRAMEWORK_SEARCH_PATHS = "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\""; - GCC_ENABLE_OBJC_EXCEPTIONS = YES; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "AFNetworking-Prefix.pch"; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - INFOPLIST_FILE = "AFNetworkingTests/AFNetworkingTests-Info.plist"; - MACOSX_DEPLOYMENT_TARGET = 10.8; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = macosx; - WRAPPER_EXTENSION = octest; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 2544EC2D173BE382004117E8 /* Build configuration list for PBXProject "AFNetworking" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2544EC55173BE382004117E8 /* Debug */, - 2544EC56173BE382004117E8 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 2544EC57173BE382004117E8 /* Build configuration list for PBXNativeTarget "AFNetworking" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2544EC58173BE382004117E8 /* Debug */, - 2544EC59173BE382004117E8 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 2544EC5A173BE382004117E8 /* Build configuration list for PBXNativeTarget "AFNetworkingTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2544EC5B173BE382004117E8 /* Debug */, - 2544EC5C173BE382004117E8 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 2544ECA4173BFAA8004117E8 /* Build configuration list for PBXNativeTarget "AFNetworkingFramework" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2544ECA5173BFAA8004117E8 /* Debug */, - 2544ECA6173BFAA8004117E8 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 2544ECA7173BFAA8004117E8 /* Build configuration list for PBXNativeTarget "AFNetworkingFrameworkTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2544ECA8173BFAA8004117E8 /* Debug */, - 2544ECA9173BFAA8004117E8 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 2544EC2A173BE382004117E8 /* Project object */; -} diff --git a/AFNetworking.xcworkspace/contents.xcworkspacedata b/AFNetworking.xcworkspace/contents.xcworkspacedata index 5608804..b09daf4 100644 --- a/AFNetworking.xcworkspace/contents.xcworkspacedata +++ b/AFNetworking.xcworkspace/contents.xcworkspacedata @@ -1 +1,16 @@ - \ No newline at end of file + + + + + + + + + + + diff --git a/AFNetworkingTests/AFHTTPClientTest.m b/Tests/AFHTTPClientTest.m similarity index 100% rename from AFNetworkingTests/AFHTTPClientTest.m rename to Tests/AFHTTPClientTest.m diff --git a/AFNetworkingTests/AFHTTPRequestOperationTest.m b/Tests/AFHTTPRequestOperationTest.m similarity index 100% rename from AFNetworkingTests/AFHTTPRequestOperationTest.m rename to Tests/AFHTTPRequestOperationTest.m diff --git a/Tests/AFNetworking Tests.xcodeproj/project.pbxproj b/Tests/AFNetworking Tests.xcodeproj/project.pbxproj new file mode 100644 index 0000000..5a808be --- /dev/null +++ b/Tests/AFNetworking Tests.xcodeproj/project.pbxproj @@ -0,0 +1,517 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 0BAD1A5426FC47BF8790D245 /* libPods-ios.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 55E73C267F33406A9F92476C /* libPods-ios.a */; }; + 2544EC45173BE382004117E8 /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2544EC44173BE382004117E8 /* SenTestingKit.framework */; }; + 2544EC47173BE382004117E8 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2544EC46173BE382004117E8 /* UIKit.framework */; }; + 2544EC48173BE382004117E8 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2544EC35173BE382004117E8 /* Foundation.framework */; }; + 2544EC96173BFAA8004117E8 /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2544EC44173BE382004117E8 /* SenTestingKit.framework */; }; + 2544EC97173BFAA8004117E8 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2544EC80173BFAA8004117E8 /* Cocoa.framework */; }; + 25801540173EB3A70026AA6E /* AFHTTPClientTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 2580153A173EB3A70026AA6E /* AFHTTPClientTest.m */; }; + 25801541173EB3A70026AA6E /* AFHTTPClientTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 2580153A173EB3A70026AA6E /* AFHTTPClientTest.m */; }; + 25801542173EB3A70026AA6E /* AFHTTPRequestOperationTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 2580153B173EB3A70026AA6E /* AFHTTPRequestOperationTest.m */; }; + 25801543173EB3A70026AA6E /* AFHTTPRequestOperationTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 2580153B173EB3A70026AA6E /* AFHTTPRequestOperationTest.m */; }; + 25801546173EB3A70026AA6E /* AFNetworkingTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 2580153F173EB3A70026AA6E /* AFNetworkingTests.m */; }; + 25801547173EB3A70026AA6E /* AFNetworkingTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 2580153F173EB3A70026AA6E /* AFNetworkingTests.m */; }; + 25C4EC41173D86AE0083E116 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25C4EC32173D7DD20083E116 /* SystemConfiguration.framework */; }; + 25C4EC42173D86B60083E116 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25C4EC30173D7DCA0083E116 /* MobileCoreServices.framework */; }; + 25DE600E173EB13C00422571 /* AFHTTPClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 25DE5FFC173EB13C00422571 /* AFHTTPClient.m */; }; + 25DE600F173EB13C00422571 /* AFHTTPClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 25DE5FFC173EB13C00422571 /* AFHTTPClient.m */; }; + 25DE6010173EB13C00422571 /* AFHTTPRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 25DE5FFE173EB13C00422571 /* AFHTTPRequestOperation.m */; }; + 25DE6011173EB13C00422571 /* AFHTTPRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 25DE5FFE173EB13C00422571 /* AFHTTPRequestOperation.m */; }; + 25DE6012173EB13C00422571 /* AFImageRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 25DE6000173EB13C00422571 /* AFImageRequestOperation.m */; }; + 25DE6013173EB13C00422571 /* AFImageRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 25DE6000173EB13C00422571 /* AFImageRequestOperation.m */; }; + 25DE6014173EB13C00422571 /* AFJSONRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 25DE6002173EB13C00422571 /* AFJSONRequestOperation.m */; }; + 25DE6015173EB13C00422571 /* AFJSONRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 25DE6002173EB13C00422571 /* AFJSONRequestOperation.m */; }; + 25DE6016173EB13C00422571 /* AFNetworkActivityIndicatorManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 25DE6004173EB13C00422571 /* AFNetworkActivityIndicatorManager.m */; }; + 25DE6017173EB13C00422571 /* AFNetworkActivityIndicatorManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 25DE6004173EB13C00422571 /* AFNetworkActivityIndicatorManager.m */; }; + 25DE6018173EB13C00422571 /* AFPropertyListRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 25DE6007173EB13C00422571 /* AFPropertyListRequestOperation.m */; }; + 25DE6019173EB13C00422571 /* AFPropertyListRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 25DE6007173EB13C00422571 /* AFPropertyListRequestOperation.m */; }; + 25DE601A173EB13C00422571 /* AFURLConnectionOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 25DE6009173EB13C00422571 /* AFURLConnectionOperation.m */; }; + 25DE601B173EB13C00422571 /* AFURLConnectionOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 25DE6009173EB13C00422571 /* AFURLConnectionOperation.m */; }; + 25DE601C173EB13C00422571 /* AFXMLRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 25DE600B173EB13C00422571 /* AFXMLRequestOperation.m */; }; + 25DE601D173EB13C00422571 /* AFXMLRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 25DE600B173EB13C00422571 /* AFXMLRequestOperation.m */; }; + 25DE601E173EB13C00422571 /* UIImageView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = 25DE600D173EB13C00422571 /* UIImageView+AFNetworking.m */; }; + 25DE601F173EB13C00422571 /* UIImageView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = 25DE600D173EB13C00422571 /* UIImageView+AFNetworking.m */; }; + AC11A74923B64A3096ACADFC /* libPods-osx.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 96A923755B00464187DEDBAF /* libPods-osx.a */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 2544EC35173BE382004117E8 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 2544EC43173BE382004117E8 /* iOS Tests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "iOS Tests.octest"; sourceTree = BUILT_PRODUCTS_DIR; }; + 2544EC44173BE382004117E8 /* SenTestingKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = Library/Frameworks/SenTestingKit.framework; sourceTree = DEVELOPER_DIR; }; + 2544EC46173BE382004117E8 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; + 2544EC80173BFAA8004117E8 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = Library/Frameworks/Cocoa.framework; sourceTree = DEVELOPER_DIR; }; + 2544EC83173BFAA8004117E8 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; }; + 2544EC84173BFAA8004117E8 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; }; + 2544EC85173BFAA8004117E8 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 2544EC95173BFAA8004117E8 /* OS X Tests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "OS X Tests.octest"; sourceTree = BUILT_PRODUCTS_DIR; }; + 2580153A173EB3A70026AA6E /* AFHTTPClientTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFHTTPClientTest.m; sourceTree = ""; }; + 2580153B173EB3A70026AA6E /* AFHTTPRequestOperationTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFHTTPRequestOperationTest.m; sourceTree = ""; }; + 2580153E173EB3A70026AA6E /* AFNetworkingTests.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFNetworkingTests.h; sourceTree = ""; }; + 2580153F173EB3A70026AA6E /* AFNetworkingTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFNetworkingTests.m; sourceTree = ""; }; + 25801549173EB4B40026AA6E /* Pods-ios.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Pods-ios.xcconfig"; path = "Pods/Pods-ios.xcconfig"; sourceTree = ""; }; + 2580154A173EB4B40026AA6E /* Pods-osx.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Pods-osx.xcconfig"; path = "Pods/Pods-osx.xcconfig"; sourceTree = ""; }; + 25C4EC2A173D7DB30083E116 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/SystemConfiguration.framework; sourceTree = DEVELOPER_DIR; }; + 25C4EC2C173D7DBA0083E116 /* CoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreServices.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/CoreServices.framework; sourceTree = DEVELOPER_DIR; }; + 25C4EC2E173D7DC40083E116 /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; }; + 25C4EC30173D7DCA0083E116 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; }; + 25C4EC32173D7DD20083E116 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; + 25DE5FFB173EB13C00422571 /* AFHTTPClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFHTTPClient.h; sourceTree = ""; }; + 25DE5FFC173EB13C00422571 /* AFHTTPClient.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFHTTPClient.m; sourceTree = ""; }; + 25DE5FFD173EB13C00422571 /* AFHTTPRequestOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFHTTPRequestOperation.h; sourceTree = ""; }; + 25DE5FFE173EB13C00422571 /* AFHTTPRequestOperation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFHTTPRequestOperation.m; sourceTree = ""; }; + 25DE5FFF173EB13C00422571 /* AFImageRequestOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFImageRequestOperation.h; sourceTree = ""; }; + 25DE6000173EB13C00422571 /* AFImageRequestOperation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFImageRequestOperation.m; sourceTree = ""; }; + 25DE6001173EB13C00422571 /* AFJSONRequestOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFJSONRequestOperation.h; sourceTree = ""; }; + 25DE6002173EB13C00422571 /* AFJSONRequestOperation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFJSONRequestOperation.m; sourceTree = ""; }; + 25DE6003173EB13C00422571 /* AFNetworkActivityIndicatorManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFNetworkActivityIndicatorManager.h; sourceTree = ""; }; + 25DE6004173EB13C00422571 /* AFNetworkActivityIndicatorManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFNetworkActivityIndicatorManager.m; sourceTree = ""; }; + 25DE6005173EB13C00422571 /* AFNetworking.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFNetworking.h; sourceTree = ""; }; + 25DE6006173EB13C00422571 /* AFPropertyListRequestOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFPropertyListRequestOperation.h; sourceTree = ""; }; + 25DE6007173EB13C00422571 /* AFPropertyListRequestOperation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFPropertyListRequestOperation.m; sourceTree = ""; }; + 25DE6008173EB13C00422571 /* AFURLConnectionOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFURLConnectionOperation.h; sourceTree = ""; }; + 25DE6009173EB13C00422571 /* AFURLConnectionOperation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFURLConnectionOperation.m; sourceTree = ""; }; + 25DE600A173EB13C00422571 /* AFXMLRequestOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFXMLRequestOperation.h; sourceTree = ""; }; + 25DE600B173EB13C00422571 /* AFXMLRequestOperation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFXMLRequestOperation.m; sourceTree = ""; }; + 25DE600C173EB13C00422571 /* UIImageView+AFNetworking.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIImageView+AFNetworking.h"; sourceTree = ""; }; + 25DE600D173EB13C00422571 /* UIImageView+AFNetworking.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIImageView+AFNetworking.m"; sourceTree = ""; }; + 2B6D24F8E1B74E10A269E8B3 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; }; + 55E73C267F33406A9F92476C /* libPods-ios.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ios.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 96A923755B00464187DEDBAF /* libPods-osx.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-osx.a"; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 2544EC3F173BE382004117E8 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 25C4EC42173D86B60083E116 /* MobileCoreServices.framework in Frameworks */, + 25C4EC41173D86AE0083E116 /* SystemConfiguration.framework in Frameworks */, + 2544EC45173BE382004117E8 /* SenTestingKit.framework in Frameworks */, + 2544EC47173BE382004117E8 /* UIKit.framework in Frameworks */, + 2544EC48173BE382004117E8 /* Foundation.framework in Frameworks */, + 0BAD1A5426FC47BF8790D245 /* libPods-ios.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2544EC91173BFAA8004117E8 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 2544EC96173BFAA8004117E8 /* SenTestingKit.framework in Frameworks */, + 2544EC97173BFAA8004117E8 /* Cocoa.framework in Frameworks */, + AC11A74923B64A3096ACADFC /* libPods-osx.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 2544EC29173BE382004117E8 = { + isa = PBXGroup; + children = ( + 25801549173EB4B40026AA6E /* Pods-ios.xcconfig */, + 2580154A173EB4B40026AA6E /* Pods-osx.xcconfig */, + 25801548173EB3B00026AA6E /* Tests */, + 2544EC37173BE382004117E8 /* AFNetworking */, + 2544EC34173BE382004117E8 /* Frameworks */, + 2544EC33173BE382004117E8 /* Products */, + ); + sourceTree = ""; + }; + 2544EC33173BE382004117E8 /* Products */ = { + isa = PBXGroup; + children = ( + 2544EC43173BE382004117E8 /* iOS Tests.octest */, + 2544EC95173BFAA8004117E8 /* OS X Tests.octest */, + ); + name = Products; + sourceTree = ""; + }; + 2544EC34173BE382004117E8 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 25C4EC32173D7DD20083E116 /* SystemConfiguration.framework */, + 25C4EC30173D7DCA0083E116 /* MobileCoreServices.framework */, + 25C4EC2E173D7DC40083E116 /* CFNetwork.framework */, + 25C4EC2C173D7DBA0083E116 /* CoreServices.framework */, + 25C4EC2A173D7DB30083E116 /* SystemConfiguration.framework */, + 2544EC35173BE382004117E8 /* Foundation.framework */, + 2544EC44173BE382004117E8 /* SenTestingKit.framework */, + 2544EC46173BE382004117E8 /* UIKit.framework */, + 2544EC80173BFAA8004117E8 /* Cocoa.framework */, + 2544EC82173BFAA8004117E8 /* Other Frameworks */, + 55E73C267F33406A9F92476C /* libPods-ios.a */, + 96A923755B00464187DEDBAF /* libPods-osx.a */, + 2B6D24F8E1B74E10A269E8B3 /* libPods.a */, + ); + name = Frameworks; + sourceTree = ""; + }; + 2544EC37173BE382004117E8 /* AFNetworking */ = { + isa = PBXGroup; + children = ( + 25DE5FFB173EB13C00422571 /* AFHTTPClient.h */, + 25DE5FFC173EB13C00422571 /* AFHTTPClient.m */, + 25DE5FFD173EB13C00422571 /* AFHTTPRequestOperation.h */, + 25DE5FFE173EB13C00422571 /* AFHTTPRequestOperation.m */, + 25DE5FFF173EB13C00422571 /* AFImageRequestOperation.h */, + 25DE6000173EB13C00422571 /* AFImageRequestOperation.m */, + 25DE6001173EB13C00422571 /* AFJSONRequestOperation.h */, + 25DE6002173EB13C00422571 /* AFJSONRequestOperation.m */, + 25DE6003173EB13C00422571 /* AFNetworkActivityIndicatorManager.h */, + 25DE6004173EB13C00422571 /* AFNetworkActivityIndicatorManager.m */, + 25DE6005173EB13C00422571 /* AFNetworking.h */, + 25DE6006173EB13C00422571 /* AFPropertyListRequestOperation.h */, + 25DE6007173EB13C00422571 /* AFPropertyListRequestOperation.m */, + 25DE6008173EB13C00422571 /* AFURLConnectionOperation.h */, + 25DE6009173EB13C00422571 /* AFURLConnectionOperation.m */, + 25DE600A173EB13C00422571 /* AFXMLRequestOperation.h */, + 25DE600B173EB13C00422571 /* AFXMLRequestOperation.m */, + 25DE600C173EB13C00422571 /* UIImageView+AFNetworking.h */, + 25DE600D173EB13C00422571 /* UIImageView+AFNetworking.m */, + ); + name = AFNetworking; + path = ../AFNetworking; + sourceTree = ""; + }; + 2544EC82173BFAA8004117E8 /* Other Frameworks */ = { + isa = PBXGroup; + children = ( + 2544EC83173BFAA8004117E8 /* AppKit.framework */, + 2544EC84173BFAA8004117E8 /* CoreData.framework */, + 2544EC85173BFAA8004117E8 /* Foundation.framework */, + ); + name = "Other Frameworks"; + sourceTree = ""; + }; + 25801548173EB3B00026AA6E /* Tests */ = { + isa = PBXGroup; + children = ( + 2580153A173EB3A70026AA6E /* AFHTTPClientTest.m */, + 2580153B173EB3A70026AA6E /* AFHTTPRequestOperationTest.m */, + 2580153E173EB3A70026AA6E /* AFNetworkingTests.h */, + 2580153F173EB3A70026AA6E /* AFNetworkingTests.m */, + ); + name = Tests; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 2544EC42173BE382004117E8 /* iOS Tests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 2544EC5A173BE382004117E8 /* Build configuration list for PBXNativeTarget "iOS Tests" */; + buildPhases = ( + 2544EC3E173BE382004117E8 /* Sources */, + 2544EC3F173BE382004117E8 /* Frameworks */, + 2544EC40173BE382004117E8 /* Resources */, + 2544EC41173BE382004117E8 /* ShellScript */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "iOS Tests"; + productName = AFNetworkingTests; + productReference = 2544EC43173BE382004117E8 /* iOS Tests.octest */; + productType = "com.apple.product-type.bundle"; + }; + 2544EC94173BFAA8004117E8 /* OS X Tests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 2544ECA7173BFAA8004117E8 /* Build configuration list for PBXNativeTarget "OS X Tests" */; + buildPhases = ( + 2544EC90173BFAA8004117E8 /* Sources */, + 2544EC91173BFAA8004117E8 /* Frameworks */, + 2544EC92173BFAA8004117E8 /* Resources */, + 2544EC93173BFAA8004117E8 /* ShellScript */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "OS X Tests"; + productName = AFNetworkingFrameworkTests; + productReference = 2544EC95173BFAA8004117E8 /* OS X Tests.octest */; + productType = "com.apple.product-type.bundle"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 2544EC2A173BE382004117E8 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0460; + ORGANIZATIONNAME = AFNetworking; + }; + buildConfigurationList = 2544EC2D173BE382004117E8 /* Build configuration list for PBXProject "AFNetworking Tests" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 2544EC29173BE382004117E8; + productRefGroup = 2544EC33173BE382004117E8 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 2544EC42173BE382004117E8 /* iOS Tests */, + 2544EC94173BFAA8004117E8 /* OS X Tests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 2544EC40173BE382004117E8 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2544EC92173BFAA8004117E8 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 2544EC41173BE382004117E8 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n"; + }; + 2544EC93173BFAA8004117E8 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 2544EC3E173BE382004117E8 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 25DE600E173EB13C00422571 /* AFHTTPClient.m in Sources */, + 25DE6010173EB13C00422571 /* AFHTTPRequestOperation.m in Sources */, + 25DE6012173EB13C00422571 /* AFImageRequestOperation.m in Sources */, + 25DE6014173EB13C00422571 /* AFJSONRequestOperation.m in Sources */, + 25DE6016173EB13C00422571 /* AFNetworkActivityIndicatorManager.m in Sources */, + 25DE6018173EB13C00422571 /* AFPropertyListRequestOperation.m in Sources */, + 25DE601A173EB13C00422571 /* AFURLConnectionOperation.m in Sources */, + 25DE601C173EB13C00422571 /* AFXMLRequestOperation.m in Sources */, + 25DE601E173EB13C00422571 /* UIImageView+AFNetworking.m in Sources */, + 25801540173EB3A70026AA6E /* AFHTTPClientTest.m in Sources */, + 25801542173EB3A70026AA6E /* AFHTTPRequestOperationTest.m in Sources */, + 25801546173EB3A70026AA6E /* AFNetworkingTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2544EC90173BFAA8004117E8 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 25DE600F173EB13C00422571 /* AFHTTPClient.m in Sources */, + 25DE6011173EB13C00422571 /* AFHTTPRequestOperation.m in Sources */, + 25DE6013173EB13C00422571 /* AFImageRequestOperation.m in Sources */, + 25DE6015173EB13C00422571 /* AFJSONRequestOperation.m in Sources */, + 25DE6017173EB13C00422571 /* AFNetworkActivityIndicatorManager.m in Sources */, + 25DE6019173EB13C00422571 /* AFPropertyListRequestOperation.m in Sources */, + 25DE601B173EB13C00422571 /* AFURLConnectionOperation.m in Sources */, + 25DE601D173EB13C00422571 /* AFXMLRequestOperation.m in Sources */, + 25DE601F173EB13C00422571 /* UIImageView+AFNetworking.m in Sources */, + 25801541173EB3A70026AA6E /* AFHTTPClientTest.m in Sources */, + 25801543173EB3A70026AA6E /* AFHTTPRequestOperationTest.m in Sources */, + 25801547173EB3A70026AA6E /* AFNetworkingTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 2544EC55173BE382004117E8 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 6.1; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 2544EC56173BE382004117E8 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 6.1; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 2544EC5B173BE382004117E8 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 25801549173EB4B40026AA6E /* Pods-ios.xcconfig */; + buildSettings = { + FRAMEWORK_SEARCH_PATHS = ( + "\"$(SDKROOT)/Developer/Library/Frameworks\"", + "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "AFNetworking-Prefix.pch"; + INFOPLIST_FILE = "AFNetworkingTests-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = octest; + }; + name = Debug; + }; + 2544EC5C173BE382004117E8 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 25801549173EB4B40026AA6E /* Pods-ios.xcconfig */; + buildSettings = { + FRAMEWORK_SEARCH_PATHS = ( + "\"$(SDKROOT)/Developer/Library/Frameworks\"", + "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "AFNetworking-Prefix.pch"; + INFOPLIST_FILE = "AFNetworkingTests-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = octest; + }; + name = Release; + }; + 2544ECA8173BFAA8004117E8 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 2580154A173EB4B40026AA6E /* Pods-osx.xcconfig */; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_64_BIT)"; + COMBINE_HIDPI_IMAGES = YES; + FRAMEWORK_SEARCH_PATHS = "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\""; + GCC_ENABLE_OBJC_EXCEPTIONS = YES; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "AFNetworking-Prefix.pch"; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + INFOPLIST_FILE = "AFNetworkingTests-Info.plist"; + MACOSX_DEPLOYMENT_TARGET = 10.8; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = macosx; + WRAPPER_EXTENSION = octest; + }; + name = Debug; + }; + 2544ECA9173BFAA8004117E8 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 2580154A173EB4B40026AA6E /* Pods-osx.xcconfig */; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_64_BIT)"; + COMBINE_HIDPI_IMAGES = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + FRAMEWORK_SEARCH_PATHS = "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\""; + GCC_ENABLE_OBJC_EXCEPTIONS = YES; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "AFNetworking-Prefix.pch"; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + INFOPLIST_FILE = "AFNetworkingTests-Info.plist"; + MACOSX_DEPLOYMENT_TARGET = 10.8; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = macosx; + WRAPPER_EXTENSION = octest; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 2544EC2D173BE382004117E8 /* Build configuration list for PBXProject "AFNetworking Tests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2544EC55173BE382004117E8 /* Debug */, + 2544EC56173BE382004117E8 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 2544EC5A173BE382004117E8 /* Build configuration list for PBXNativeTarget "iOS Tests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2544EC5B173BE382004117E8 /* Debug */, + 2544EC5C173BE382004117E8 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 2544ECA7173BFAA8004117E8 /* Build configuration list for PBXNativeTarget "OS X Tests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2544ECA8173BFAA8004117E8 /* Debug */, + 2544ECA9173BFAA8004117E8 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 2544EC2A173BE382004117E8 /* Project object */; +} diff --git a/AFNetworking.xcodeproj/xcshareddata/xcschemes/AFNetworkingFrameworkTests.xcscheme b/Tests/AFNetworking Tests.xcodeproj/xcshareddata/xcschemes/OS X Tests.xcscheme similarity index 92% rename from AFNetworking.xcodeproj/xcshareddata/xcschemes/AFNetworkingFrameworkTests.xcscheme rename to Tests/AFNetworking Tests.xcodeproj/xcshareddata/xcschemes/OS X Tests.xcscheme index 050ad6d..8dfea57 100644 --- a/AFNetworking.xcodeproj/xcshareddata/xcschemes/AFNetworkingFrameworkTests.xcscheme +++ b/Tests/AFNetworking Tests.xcodeproj/xcshareddata/xcschemes/OS X Tests.xcscheme @@ -14,7 +14,7 @@ buildForAnalyzing = "YES"> @@ -33,8 +33,8 @@ diff --git a/AFNetworking.xcodeproj/xcshareddata/xcschemes/AFNetworkingTests.xcscheme b/Tests/AFNetworking Tests.xcodeproj/xcshareddata/xcschemes/iOS Tests.xcscheme similarity index 88% rename from AFNetworking.xcodeproj/xcshareddata/xcschemes/AFNetworkingTests.xcscheme rename to Tests/AFNetworking Tests.xcodeproj/xcshareddata/xcschemes/iOS Tests.xcscheme index 5126d14..f5cbe8b 100644 --- a/AFNetworking.xcodeproj/xcshareddata/xcschemes/AFNetworkingTests.xcscheme +++ b/Tests/AFNetworking Tests.xcodeproj/xcshareddata/xcschemes/iOS Tests.xcscheme @@ -4,7 +4,7 @@ version = "1.3"> + buildImplicitDependencies = "NO"> @@ -33,9 +33,9 @@ + BuildableName = "iOS Tests.octest" + BlueprintName = "iOS Tests" + ReferencedContainer = "container:AFNetworking Tests.xcodeproj"> diff --git a/AFNetworking-Prefix.pch b/Tests/AFNetworking-Prefix.pch similarity index 100% rename from AFNetworking-Prefix.pch rename to Tests/AFNetworking-Prefix.pch diff --git a/AFNetworkingTests/AFNetworkingTests-Info.plist b/Tests/AFNetworkingTests-Info.plist similarity index 100% rename from AFNetworkingTests/AFNetworkingTests-Info.plist rename to Tests/AFNetworkingTests-Info.plist diff --git a/AFNetworkingTests/AFNetworkingTests.h b/Tests/AFNetworkingTests.h similarity index 100% rename from AFNetworkingTests/AFNetworkingTests.h rename to Tests/AFNetworkingTests.h diff --git a/AFNetworkingTests/AFNetworkingTests.m b/Tests/AFNetworkingTests.m similarity index 100% rename from AFNetworkingTests/AFNetworkingTests.m rename to Tests/AFNetworkingTests.m diff --git a/Podfile b/Tests/Podfile similarity index 65% rename from Podfile rename to Tests/Podfile index 2ab86c1..6c587cd 100644 --- a/Podfile +++ b/Tests/Podfile @@ -1,3 +1,5 @@ +xcodeproj 'AFNetworking Tests' +workspace '../AFNetworking' inhibit_all_warnings! def import_pods @@ -7,12 +9,12 @@ end target :ios do platform :ios, '5.0' - link_with 'AFNetworkingTests' + link_with 'iOS Tests' import_pods end target :osx do platform :osx, '10.7' - link_with 'AFNetworkingFrameworkTests' + link_with 'OS X Tests' import_pods end diff --git a/Podfile.lock b/Tests/Podfile.lock similarity index 100% rename from Podfile.lock rename to Tests/Podfile.lock From 91cf441582e60a116558604d5cdb0b4ad0f8ad83 Mon Sep 17 00:00:00 2001 From: Blake Watters Date: Sat, 11 May 2013 13:24:41 -0400 Subject: [PATCH 08/15] Restore functionality of Rake tasks --- Rakefile | 12 ++++++------ Tests/AFNetworking Tests.xcodeproj/project.pbxproj | 4 ++++ .../xcshareddata/xcschemes/OS X Tests.xcscheme | 4 ++-- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/Rakefile b/Rakefile index 5b37a51..48e4611 100644 --- a/Rakefile +++ b/Rakefile @@ -1,16 +1,16 @@ namespace :test do desc "Run the AFNetworking Tests for iOS" task :ios do - system('xctool -workspace AFNetworking.xcworkspace -scheme AFNetworkingTests test -test-sdk iphonesimulator') + system("xctool -workspace AFNetworking.xcworkspace -scheme 'iOS Tests' test -test-sdk iphonesimulator") end desc "Run the AFNetworking Tests for Mac OS X" task :osx do - system('xctool -workspace AFNetworking.xcworkspace -scheme AFNetworkingFrameworkTests test -test-sdk macosx -sdk macosx') + system("xctool -workspace AFNetworking.xcworkspace -scheme 'OS X Tests' test -test-sdk macosx -sdk macosx") end - - desc "Run the AFNetworking Tests for iOS & Mac OS X" - task :all => ['test:ios', 'test:osx'] end -task :default => 'test:all' +desc "Run the AFNetworking Tests for iOS & Mac OS X" +task :test => ['test:ios', 'test:osx'] + +task :default => 'test' diff --git a/Tests/AFNetworking Tests.xcodeproj/project.pbxproj b/Tests/AFNetworking Tests.xcodeproj/project.pbxproj index 5a808be..5e0d05e 100644 --- a/Tests/AFNetworking Tests.xcodeproj/project.pbxproj +++ b/Tests/AFNetworking Tests.xcodeproj/project.pbxproj @@ -19,6 +19,8 @@ 25801543173EB3A70026AA6E /* AFHTTPRequestOperationTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 2580153B173EB3A70026AA6E /* AFHTTPRequestOperationTest.m */; }; 25801546173EB3A70026AA6E /* AFNetworkingTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 2580153F173EB3A70026AA6E /* AFNetworkingTests.m */; }; 25801547173EB3A70026AA6E /* AFNetworkingTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 2580153F173EB3A70026AA6E /* AFNetworkingTests.m */; }; + 2580154B173EB62E0026AA6E /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25C4EC2A173D7DB30083E116 /* SystemConfiguration.framework */; }; + 2580154C173EB6340026AA6E /* CoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25C4EC2C173D7DBA0083E116 /* CoreServices.framework */; }; 25C4EC41173D86AE0083E116 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25C4EC32173D7DD20083E116 /* SystemConfiguration.framework */; }; 25C4EC42173D86B60083E116 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25C4EC30173D7DCA0083E116 /* MobileCoreServices.framework */; }; 25DE600E173EB13C00422571 /* AFHTTPClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 25DE5FFC173EB13C00422571 /* AFHTTPClient.m */; }; @@ -105,6 +107,8 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 2580154C173EB6340026AA6E /* CoreServices.framework in Frameworks */, + 2580154B173EB62E0026AA6E /* SystemConfiguration.framework in Frameworks */, 2544EC96173BFAA8004117E8 /* SenTestingKit.framework in Frameworks */, 2544EC97173BFAA8004117E8 /* Cocoa.framework in Frameworks */, AC11A74923B64A3096ACADFC /* libPods-osx.a in Frameworks */, diff --git a/Tests/AFNetworking Tests.xcodeproj/xcshareddata/xcschemes/OS X Tests.xcscheme b/Tests/AFNetworking Tests.xcodeproj/xcshareddata/xcschemes/OS X Tests.xcscheme index 8dfea57..57a00f4 100644 --- a/Tests/AFNetworking Tests.xcodeproj/xcshareddata/xcschemes/OS X Tests.xcscheme +++ b/Tests/AFNetworking Tests.xcodeproj/xcshareddata/xcschemes/OS X Tests.xcscheme @@ -14,7 +14,7 @@ buildForAnalyzing = "YES"> @@ -35,7 +35,7 @@ BlueprintIdentifier = "2544EC94173BFAA8004117E8" BuildableName = "OS X Tests.octest" BlueprintName = "OS X Tests" - ReferencedContainer = "container:AFNetworking.xcodeproj"> + ReferencedContainer = "container:AFNetworking Tests.xcodeproj"> From bb4c19eab61892ad84da081b12931f5bd8682b49 Mon Sep 17 00:00:00 2001 From: Blake Watters Date: Sat, 11 May 2013 13:35:36 -0400 Subject: [PATCH 09/15] Add section to the README.md detailing how to setup and execute the unit tests --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 7224906..de2f414 100644 --- a/README.md +++ b/README.md @@ -162,6 +162,21 @@ If you are using AFNetworking 1.0 in your non-arc project, you will need to set To set a compiler flag in Xcode, go to your active target and select the "Build Phases" tab. Now select all AFNetworking source files, press Enter, insert `-fobjc-arc` or `-fno-objc-arc` and then "Done" to enable or disable ARC for AFNetworking. +## Unit Tests + +AFNetworking includes a suite of unit tests within the Tests subdirectory. In order to run the unit tests, you must install the testing dependencies via CocoaPods. To do so: + +1. `gem install cocoapods` # If necessary +1. `cd Tests` +1. `pod install` + +Once CocoaPods has finished the installation, you can execute the test suite via the 'iOS Tests' and 'OS X Tests' schemes within Xcode. If you wish to execute the tests from the command line or within a continuous integration environment, you will need to install [xctool](https://github.com/facebook/xctool). The recommended installation method is [Homebrew](http://mxcl.github.io/homebrew/). To install the commandline testing support via Homebrew: + +1. `brew update` +1. `brew install xctool --HEAD` + +Once xctool is installed, you can execute the suite via `rake test`. + ## Credits AFNetworking was created by [Scott Raymond](https://github.com/sco/) and [Mattt Thompson](https://github.com/mattt/) in the development of [Gowalla for iPhone](http://en.wikipedia.org/wiki/Gowalla). From 5c81d90a4cfe5176a3181357f72c0b8e063b9287 Mon Sep 17 00:00:00 2001 From: Blake Watters Date: Mon, 13 May 2013 09:10:39 -0400 Subject: [PATCH 10/15] Add test coverage for construction of request body via `AFHTTPClient`. refs #989 --- Tests/AFHTTPClientTest.m | 24 ------- Tests/AFHTTPClientTests.m | 66 +++++++++++++++++++ ...onTest.m => AFHTTPRequestOperationTests.m} | 6 +- .../project.pbxproj | 24 +++---- 4 files changed, 81 insertions(+), 39 deletions(-) delete mode 100644 Tests/AFHTTPClientTest.m create mode 100644 Tests/AFHTTPClientTests.m rename Tests/{AFHTTPRequestOperationTest.m => AFHTTPRequestOperationTests.m} (91%) diff --git a/Tests/AFHTTPClientTest.m b/Tests/AFHTTPClientTest.m deleted file mode 100644 index 9e04166..0000000 --- a/Tests/AFHTTPClientTest.m +++ /dev/null @@ -1,24 +0,0 @@ -// -// AFHTTPClientTest.m -// AFNetworking -// -// Created by Blake Watters on 5/10/13. -// Copyright (c) 2013 AFNetworking. All rights reserved. -// - -#import "AFNetworkingTests.h" - -@interface AFHTTPClientTest : SenTestCase -@end - -@implementation AFHTTPClientTest - -- (void)testThatTheDefaultStringEncodingIsUTF8 -{ - AFHTTPClient *client = [AFHTTPClient clientWithBaseURL:[NSURL URLWithString:AFNetworkingTestsBaseURLString]]; - expect(client.stringEncoding).to.equal(NSUTF8StringEncoding); -} - -// default value for header - -@end diff --git a/Tests/AFHTTPClientTests.m b/Tests/AFHTTPClientTests.m new file mode 100644 index 0000000..e7681ed --- /dev/null +++ b/Tests/AFHTTPClientTests.m @@ -0,0 +1,66 @@ +// +// AFHTTPClientTests.m +// AFNetworking +// +// Created by Blake Watters on 5/10/13. +// Copyright (c) 2013 AFNetworking. All rights reserved. +// + +#import "AFNetworkingTests.h" + +@interface AFHTTPClientTests : SenTestCase +@end + +@implementation AFHTTPClientTests + +- (void)testThatTheDefaultStringEncodingIsUTF8 +{ + AFHTTPClient *client = [AFHTTPClient clientWithBaseURL:[NSURL URLWithString:AFNetworkingTestsBaseURLString]]; + expect(client.stringEncoding).to.equal(NSUTF8StringEncoding); +} + +- (void)testConstructingPOSTRequestWithParametersInFormURLParameterEncoding +{ + AFHTTPClient *client = [AFHTTPClient clientWithBaseURL:[NSURL URLWithString:AFNetworkingTestsBaseURLString]]; + client.parameterEncoding = AFFormURLParameterEncoding; + NSMutableURLRequest *request = [client requestWithMethod:@"POST" path:@"/post" parameters:@{ @"key": @"value" }]; + NSString *requestBody = [[NSString alloc] initWithData:[request HTTPBody] encoding:NSUTF8StringEncoding]; + expect(requestBody).to.equal(@"key=value"); +} + +- (void)testConstructingPOSTRequestWithParametersInJSONParameterEncoding +{ + AFHTTPClient *client = [AFHTTPClient clientWithBaseURL:[NSURL URLWithString:AFNetworkingTestsBaseURLString]]; + client.parameterEncoding = AFJSONParameterEncoding; + NSMutableURLRequest *request = [client requestWithMethod:@"POST" path:@"/post" parameters:@{ @"key": @"value" }]; + NSString *requestBody = [[NSString alloc] initWithData:[request HTTPBody] encoding:NSUTF8StringEncoding]; + expect(requestBody).to.equal(@"{\"key\":\"value\"}"); +} + +- (void)testConstructingPOSTRequestWithParametersInPropertyListParameterEncoding +{ + AFHTTPClient *client = [AFHTTPClient clientWithBaseURL:[NSURL URLWithString:AFNetworkingTestsBaseURLString]]; + client.parameterEncoding = AFPropertyListParameterEncoding; + NSMutableURLRequest *request = [client requestWithMethod:@"POST" path:@"/post" parameters:@{ @"key": @"value" }]; + NSString *requestBody = [[NSString alloc] initWithData:[request HTTPBody] encoding:NSUTF8StringEncoding]; + expect(requestBody).to.equal(@"\n\n\n\n key\n value\n\n\n"); +} + +- (void)testPostWithParameters +{ + __block id blockResponseObject = nil; + AFHTTPClient *client = [AFHTTPClient clientWithBaseURL:[NSURL URLWithString:AFNetworkingTestsBaseURLString]]; + [client postPath:@"/post" parameters:@{ @"key": @"value" } success:^(AFHTTPRequestOperation *operation, id responseObject) { + blockResponseObject = responseObject; + } failure:nil]; + expect([client.operationQueue operationCount]).will.equal(0); + expect(blockResponseObject).notTo.beNil(); + expect(blockResponseObject).to.beKindOf([NSData class]); + NSError *error = nil; + NSDictionary *responseDictionary = [NSJSONSerialization JSONObjectWithData:blockResponseObject options:0 error:&error]; + expect(responseDictionary[@"form"]).to.equal(@{ @"key": @"value" }); +} + +// default value for header + +@end diff --git a/Tests/AFHTTPRequestOperationTest.m b/Tests/AFHTTPRequestOperationTests.m similarity index 91% rename from Tests/AFHTTPRequestOperationTest.m rename to Tests/AFHTTPRequestOperationTests.m index 03771be..afdeb28 100644 --- a/Tests/AFHTTPRequestOperationTest.m +++ b/Tests/AFHTTPRequestOperationTests.m @@ -1,5 +1,5 @@ // -// AFHTTPRequestOperationTest.m +// AFHTTPRequestOperationTests.m // AFNetworking // // Created by Blake Watters on 5/10/13. @@ -8,10 +8,10 @@ #import "AFNetworkingTests.h" -@interface AFHTTPRequestOperationTest : SenTestCase +@interface AFHTTPRequestOperationTests : SenTestCase @end -@implementation AFHTTPRequestOperationTest +@implementation AFHTTPRequestOperationTests - (void)testThatOperationInvokesSuccessCompletionBlockWithResponseObjectOnSuccess { diff --git a/Tests/AFNetworking Tests.xcodeproj/project.pbxproj b/Tests/AFNetworking Tests.xcodeproj/project.pbxproj index 5e0d05e..a16b6cc 100644 --- a/Tests/AFNetworking Tests.xcodeproj/project.pbxproj +++ b/Tests/AFNetworking Tests.xcodeproj/project.pbxproj @@ -13,10 +13,10 @@ 2544EC48173BE382004117E8 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2544EC35173BE382004117E8 /* Foundation.framework */; }; 2544EC96173BFAA8004117E8 /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2544EC44173BE382004117E8 /* SenTestingKit.framework */; }; 2544EC97173BFAA8004117E8 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2544EC80173BFAA8004117E8 /* Cocoa.framework */; }; - 25801540173EB3A70026AA6E /* AFHTTPClientTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 2580153A173EB3A70026AA6E /* AFHTTPClientTest.m */; }; - 25801541173EB3A70026AA6E /* AFHTTPClientTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 2580153A173EB3A70026AA6E /* AFHTTPClientTest.m */; }; - 25801542173EB3A70026AA6E /* AFHTTPRequestOperationTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 2580153B173EB3A70026AA6E /* AFHTTPRequestOperationTest.m */; }; - 25801543173EB3A70026AA6E /* AFHTTPRequestOperationTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 2580153B173EB3A70026AA6E /* AFHTTPRequestOperationTest.m */; }; + 25801540173EB3A70026AA6E /* AFHTTPClientTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 2580153A173EB3A70026AA6E /* AFHTTPClientTests.m */; }; + 25801541173EB3A70026AA6E /* AFHTTPClientTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 2580153A173EB3A70026AA6E /* AFHTTPClientTests.m */; }; + 25801542173EB3A70026AA6E /* AFHTTPRequestOperationTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 2580153B173EB3A70026AA6E /* AFHTTPRequestOperationTests.m */; }; + 25801543173EB3A70026AA6E /* AFHTTPRequestOperationTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 2580153B173EB3A70026AA6E /* AFHTTPRequestOperationTests.m */; }; 25801546173EB3A70026AA6E /* AFNetworkingTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 2580153F173EB3A70026AA6E /* AFNetworkingTests.m */; }; 25801547173EB3A70026AA6E /* AFNetworkingTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 2580153F173EB3A70026AA6E /* AFNetworkingTests.m */; }; 2580154B173EB62E0026AA6E /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 25C4EC2A173D7DB30083E116 /* SystemConfiguration.framework */; }; @@ -54,8 +54,8 @@ 2544EC84173BFAA8004117E8 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; }; 2544EC85173BFAA8004117E8 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 2544EC95173BFAA8004117E8 /* OS X Tests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "OS X Tests.octest"; sourceTree = BUILT_PRODUCTS_DIR; }; - 2580153A173EB3A70026AA6E /* AFHTTPClientTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFHTTPClientTest.m; sourceTree = ""; }; - 2580153B173EB3A70026AA6E /* AFHTTPRequestOperationTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFHTTPRequestOperationTest.m; sourceTree = ""; }; + 2580153A173EB3A70026AA6E /* AFHTTPClientTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFHTTPClientTests.m; sourceTree = ""; }; + 2580153B173EB3A70026AA6E /* AFHTTPRequestOperationTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFHTTPRequestOperationTests.m; sourceTree = ""; }; 2580153E173EB3A70026AA6E /* AFNetworkingTests.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFNetworkingTests.h; sourceTree = ""; }; 2580153F173EB3A70026AA6E /* AFNetworkingTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFNetworkingTests.m; sourceTree = ""; }; 25801549173EB4B40026AA6E /* Pods-ios.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Pods-ios.xcconfig"; path = "Pods/Pods-ios.xcconfig"; sourceTree = ""; }; @@ -199,8 +199,8 @@ 25801548173EB3B00026AA6E /* Tests */ = { isa = PBXGroup; children = ( - 2580153A173EB3A70026AA6E /* AFHTTPClientTest.m */, - 2580153B173EB3A70026AA6E /* AFHTTPRequestOperationTest.m */, + 2580153A173EB3A70026AA6E /* AFHTTPClientTests.m */, + 2580153B173EB3A70026AA6E /* AFHTTPRequestOperationTests.m */, 2580153E173EB3A70026AA6E /* AFNetworkingTests.h */, 2580153F173EB3A70026AA6E /* AFNetworkingTests.m */, ); @@ -333,8 +333,8 @@ 25DE601A173EB13C00422571 /* AFURLConnectionOperation.m in Sources */, 25DE601C173EB13C00422571 /* AFXMLRequestOperation.m in Sources */, 25DE601E173EB13C00422571 /* UIImageView+AFNetworking.m in Sources */, - 25801540173EB3A70026AA6E /* AFHTTPClientTest.m in Sources */, - 25801542173EB3A70026AA6E /* AFHTTPRequestOperationTest.m in Sources */, + 25801540173EB3A70026AA6E /* AFHTTPClientTests.m in Sources */, + 25801542173EB3A70026AA6E /* AFHTTPRequestOperationTests.m in Sources */, 25801546173EB3A70026AA6E /* AFNetworkingTests.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -352,8 +352,8 @@ 25DE601B173EB13C00422571 /* AFURLConnectionOperation.m in Sources */, 25DE601D173EB13C00422571 /* AFXMLRequestOperation.m in Sources */, 25DE601F173EB13C00422571 /* UIImageView+AFNetworking.m in Sources */, - 25801541173EB3A70026AA6E /* AFHTTPClientTest.m in Sources */, - 25801543173EB3A70026AA6E /* AFHTTPRequestOperationTest.m in Sources */, + 25801541173EB3A70026AA6E /* AFHTTPClientTests.m in Sources */, + 25801543173EB3A70026AA6E /* AFHTTPRequestOperationTests.m in Sources */, 25801547173EB3A70026AA6E /* AFNetworkingTests.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; From 6e57c377f17705cc4b09165f04a808c5acbc233a Mon Sep 17 00:00:00 2001 From: Blake Watters Date: Mon, 13 May 2013 09:21:36 -0400 Subject: [PATCH 11/15] Add test coverage around operation cancellation setting the error and invoking the failure block. refs #941 --- Tests/AFHTTPRequestOperationTests.m | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Tests/AFHTTPRequestOperationTests.m b/Tests/AFHTTPRequestOperationTests.m index afdeb28..ff5a80c 100644 --- a/Tests/AFHTTPRequestOperationTests.m +++ b/Tests/AFHTTPRequestOperationTests.m @@ -39,4 +39,30 @@ expect(blockError).willNot.beNil(); } +- (void)testThatCancellationOfRequestOperationSetsError +{ + NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"/delay/5" relativeToURL:AFNetworkingTestsBaseURL()]]; + AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:request]; + [operation start]; + expect([operation isExecuting]).will.beTruthy(); + [operation cancel]; + expect(operation.error).willNot.beNil(); + expect(operation.error.code).to.equal(NSURLErrorCancelled); +} + +- (void)testThatCancellationOfRequestOperationInvokesFailureCompletionBlock +{ + __block NSError *blockError = nil; + NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"/delay/5" relativeToURL:AFNetworkingTestsBaseURL()]]; + AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:request]; + [operation setCompletionBlockWithSuccess:nil failure:^(AFHTTPRequestOperation *operation, NSError *error) { + blockError = error; + }]; + [operation start]; + expect([operation isExecuting]).will.beTruthy(); + [operation cancel]; + expect(blockError).willNot.beNil(); + expect(blockError.code).to.equal(NSURLErrorCancelled); +} + @end From 4d8faf8a23c94fa71bed2e80d39e8227eaca0bc8 Mon Sep 17 00:00:00 2001 From: Blake Watters Date: Mon, 13 May 2013 09:25:13 -0400 Subject: [PATCH 12/15] Pull in a few more basic request/response tests from @kcharwood --- Tests/AFHTTPRequestOperationTests.m | 53 ++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/Tests/AFHTTPRequestOperationTests.m b/Tests/AFHTTPRequestOperationTests.m index ff5a80c..029ce9c 100644 --- a/Tests/AFHTTPRequestOperationTests.m +++ b/Tests/AFHTTPRequestOperationTests.m @@ -29,7 +29,7 @@ - (void)testThatOperationInvokesFailureCompletionBlockWithErrorOnFailure { __block NSError *blockError = nil; - NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"/404" relativeToURL:AFNetworkingTestsBaseURL()]]; + NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"/status/404" relativeToURL:AFNetworkingTestsBaseURL()]]; AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:request]; [operation setCompletionBlockWithSuccess:nil failure:^(AFHTTPRequestOperation *operation, NSError *error) { blockError = error; @@ -65,4 +65,55 @@ expect(blockError.code).to.equal(NSURLErrorCancelled); } +- (void)testThat500StatusCodeInvokesFailureCompletionBlockWithErrorOnFailure +{ + __block NSError *blockError = nil; + NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"/status/500" relativeToURL:AFNetworkingTestsBaseURL()]]; + AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:request]; + [operation setCompletionBlockWithSuccess:nil failure:^(AFHTTPRequestOperation *operation, NSError *error) { + blockError = error; + }]; + [operation start]; + expect([operation isFinished]).will.beTruthy(); + expect(blockError).willNot.beNil(); +} + +- (void)testThatRedirectBlockIsCalledWhen302IsEncountered +{ + __block BOOL success; + NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"/redirect/1" relativeToURL:AFNetworkingTestsBaseURL()]]; + AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:request]; + [operation setCompletionBlockWithSuccess:nil + failure:nil]; + [operation + setRedirectResponseBlock:^NSURLRequest *(NSURLConnection *connection, NSURLRequest *request, NSURLResponse *redirectResponse) { + if(redirectResponse){ + success = YES; + } + return request; + }]; + [operation start]; + expect([operation isFinished]).will.beTruthy(); + expect(success).will.beTruthy(); +} + +- (void)testThatRedirectBlockIsCalledMultipleTimesWhen302IsEncountered +{ + __block NSInteger numberOfRedirects = 0; + NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"/redirect/5" relativeToURL:AFNetworkingTestsBaseURL()]]; + AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:request]; + [operation setCompletionBlockWithSuccess:nil + failure:nil]; + [operation + setRedirectResponseBlock:^NSURLRequest *(NSURLConnection *connection, NSURLRequest *request, NSURLResponse *redirectResponse) { + if(redirectResponse){ + numberOfRedirects++; + } + return request; + }]; + [operation start]; + expect([operation isFinished]).will.beTruthy(); + expect(numberOfRedirects).will.equal(5); +} + @end From c2c3a656e7e627b2f4353cc3f58fe26c1ed426d6 Mon Sep 17 00:00:00 2001 From: Blake Watters Date: Mon, 13 May 2013 09:31:45 -0400 Subject: [PATCH 13/15] Add composite status code reporting during CLI execution --- Rakefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Rakefile b/Rakefile index 48e4611..df32ced 100644 --- a/Rakefile +++ b/Rakefile @@ -1,16 +1,24 @@ namespace :test do desc "Run the AFNetworking Tests for iOS" task :ios do - system("xctool -workspace AFNetworking.xcworkspace -scheme 'iOS Tests' test -test-sdk iphonesimulator") + $ios_success = system("xctool -workspace AFNetworking.xcworkspace -scheme 'iOS Tests' test -test-sdk iphonesimulator") end desc "Run the AFNetworking Tests for Mac OS X" task :osx do - system("xctool -workspace AFNetworking.xcworkspace -scheme 'OS X Tests' test -test-sdk macosx -sdk macosx") + $osx_success = system("xctool -workspace AFNetworking.xcworkspace -scheme 'OS X Tests' test -test-sdk macosx -sdk macosx") end end desc "Run the AFNetworking Tests for iOS & Mac OS X" -task :test => ['test:ios', 'test:osx'] +task :test => ['test:ios', 'test:osx'] do + puts "\033[0;31m!! iOS unit tests failed" unless $ios_success + puts "\033[0;31m!! OS X unit tests failed" unless $osx_success + if $ios_success && $osx_success + puts "\033[0;32m** All tests executed successfully" + else + exit(-1) + end +end task :default => 'test' From 2c01759bda16e4016c957bcf9cc0c174944dd4ff Mon Sep 17 00:00:00 2001 From: Blake Watters Date: Mon, 13 May 2013 09:41:44 -0400 Subject: [PATCH 14/15] Adjust delays on cancellation test -- unsure why this does not pass when run in the full suite --- Tests/AFHTTPRequestOperationTests.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Tests/AFHTTPRequestOperationTests.m b/Tests/AFHTTPRequestOperationTests.m index 029ce9c..1350e31 100644 --- a/Tests/AFHTTPRequestOperationTests.m +++ b/Tests/AFHTTPRequestOperationTests.m @@ -53,7 +53,7 @@ - (void)testThatCancellationOfRequestOperationInvokesFailureCompletionBlock { __block NSError *blockError = nil; - NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"/delay/5" relativeToURL:AFNetworkingTestsBaseURL()]]; + NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"/delay/1" relativeToURL:AFNetworkingTestsBaseURL()]]; AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:request]; [operation setCompletionBlockWithSuccess:nil failure:^(AFHTTPRequestOperation *operation, NSError *error) { blockError = error; @@ -61,8 +61,9 @@ [operation start]; expect([operation isExecuting]).will.beTruthy(); [operation cancel]; + expect(operation.error).willNot.beNil(); expect(blockError).willNot.beNil(); - expect(blockError.code).to.equal(NSURLErrorCancelled); + expect(blockError.code).will.equal(NSURLErrorCancelled); } - (void)testThat500StatusCodeInvokesFailureCompletionBlockWithErrorOnFailure From 30adc3687908dc358c77fdc9ae767cb884bf1e6e Mon Sep 17 00:00:00 2001 From: Blake Watters Date: Mon, 13 May 2013 15:39:44 -0400 Subject: [PATCH 15/15] Fix incorrect rake execution in Travis config --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8880278..e87dc1f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,4 +2,4 @@ language: objective-c before_install: - brew update - brew install xctool --HEAD -script: "rake test:all" +script: rake test