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.
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:
Example
directoryWolf.xcworkspace
file in Xcode 8.0Wolf-Example
target in the target selection dropdown near the Stop
buttonInside the Example
directory you will find a project holding the tests for Wolf. To run them:
Example
directoryWolf.xcworkspace
file in Xcode 8.0Wolf-Example
target in the target selection dropdown near the Stop
button⌘U
or click Test
from the Product
menuWolf 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 cocoapods
To integrate Wolf into your Xcode project using CocoaPods, specify it in your Podfile
:
target '<target_name>' do
pod 'Wolf'
end
Then, install your dependencies through the CocoaPods app or by running the following command in the same directory as your Podfile
:
$ pod install
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 carthage
To 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.
Fellipe Caetano, [email protected]
Wolf is available under the MIT license. See the LICENSE file for more info.