Wolf
Wolf approaches networking by bringing together the battle experience of Alamofire and the flexible power of Swift protocols. It enables developers to fully describe HTTP resources and it derives all HTTP communications out of those descriptions. Support for caching and JSON comes out of the box.
Contents
Example
Inside the Example directory you will find a sample application that presents a grid of popular TV shows, demonstrating how everything works together. To run it:
- Clone the repository
- Enter the
Exampledirectory - Open the
Wolf.xcworkspacefile in Xcode 8.0 - Select the
Wolf-Exampletarget in the target selection dropdown near theStopbutton - Build and run the application
Testing
Inside the Example directory you will find a project holding the tests for Wolf. To run them:
- Clone the repository
- Enter the
Exampledirectory - Open the
Wolf.xcworkspacefile in Xcode 8.0 - Select the
Wolf-Exampletarget in the target selection dropdown near theStopbutton - Press
⌘Uor clickTestfrom theProductmenu
Requirements
- iOS 9.0+
- Xcode 8.0+
Installation
CocoaPods
Wolf is available through CocoaPods, a dependency manager for Cocoa projects. CocoaPods can be downloaded as a stand-alone app and can also be installed through RubyGems:
$ gem install cocoapodsTo integrate Wolf into your Xcode project using CocoaPods, specify it in your Podfile:
target '<target_name>' do
pod 'Wolf'
endThen, install your dependencies through the CocoaPods app or by running the following command in the same directory as your Podfile:
$ pod installCarthage
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
You can install Carthage with Homebrew using the following commands:
$ brew update
$ brew install carthageTo integrate Wolf into your Xcode project using Carthage, specify it in your Cartfile:
github "fellipecaetano/Wolf"
Run carthage update to build the framework and drag the built Wolf.framework into your Xcode project.
Author
Fellipe Caetano, [email protected]
License
Wolf is available under the MIT license. See the LICENSE file for more info.