Code Monkey home page Code Monkey logo

afnetworking's Introduction

AFNetworking

AFNetworking is a delightful networking library for iOS and Mac OS X. It's built on top of Foundation URL Loading System, extending the powerful high-level networking abstractions built into Cocoa. It has a modular architecture with well-designed, feature-rich APIs that are a joy to use.

Perhaps the most important feature of all, however, is the amazing community of developers who use and contribute to AFNetworking every day. AFNetworking powers some of the most popular and critically-acclaimed apps on the iPhone, iPad, and Mac.

Choose AFNetworking for your next project, or migrate over your existing projects—you'll be happy you did!

How To Get Started

Installation with CocoaPods

platform :ios, '7.0'
pod "AFNetworking", "2.0.0-RC2"

2.0

AFNetworking 2.0 is a major update to the framework. Building on 2 years of development, this new version introduces powerful new features, while providing an easy upgrade path for existing users.

Read the AFNetworking 2.0 Migration Guide for an overview of the architectural and API changes.

What's New

  • Support for NSURLSession
  • Serialization Modules
  • Expanded UIKit Extensions
  • Real-time functionality with Rocket

Requirements

AFNetworking 2.0 and higher requires either iOS 6.0 and above, or Mac OS 10.8 Mountain Lion (64-bit with modern Cocoa runtime) and above.

For compatibility with iOS 5, use the latest 1.x release.

For compatibility with iOS 4.3, use the latest 0.10.x release.

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:

$ gem install cocoapods # If necessary
$ cd Tests
$ 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.

Test Logging

By default, the unit tests do not emit any output during execution. For debugging purposes, it can be useful to enable logging of the requests and responses. Logging support is provided by the AFHTTPRequestOperationLogger extension, which is installed via CocoaPods into the test targets. To enable logging, edit the test Scheme and add an environment variable named AFTestsLoggingEnabled with a value of YES.

Using xctool

If you wish to execute the tests from the command line or within a continuous integration environment, you will need to install xctool. The recommended installation method is Homebrew.

To install the commandline testing support via Homebrew:

$ brew update
$ brew install xctool --HEAD

Once xctool is installed, you can execute the suite via rake test.

Credits

AFNetworking was created by Scott Raymond and Mattt Thompson in the development of Gowalla for iPhone.

AFNetworking's logo was designed by Alan Defibaugh.

And most of all, thanks to AFNetworking's growing list of contributors.

Contact

Follow AFNetworking on Twitter (@AFNetworking)

Creators

Mattt Thompson @mattt

Scott Raymond @sco

License

AFNetworking is available under the MIT license. See the LICENSE file for more info.

afnetworking's People

Contributors

0xced avatar adamfraser avatar aquageek avatar blakewatters avatar carsonmcdonald avatar dstnbrkr avatar ijohn avatar jparise avatar kcharwood avatar kgn avatar kirsplatrick avatar koke avatar kylef avatar lansing avatar larrylegend avatar lxcid avatar mattt avatar mgp avatar mhausherr avatar mikeash avatar myell0w avatar oliverletterer avatar orj avatar paulmelnikow avatar peymano avatar soffes avatar steipete avatar teeman avatar tewha avatar tonymillion avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.