From 1a25414ef5217c8416d3fad54f03cc21a14e07f5 Mon Sep 17 00:00:00 2001 From: Blake Watters Date: Fri, 10 May 2013 15:53:33 -0400 Subject: [PATCH] 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'