Skip to content
Debug Networking
Swift Ruby Objective-C
Branch: develop
Clone or download
akarsh and brototyp Add support for spm (#200)
* update rake file with test for swift build

- add test to build a swift package from Cauliframework

* Add Package.swift

Contains description about the package

* Refactor the comments in the file to swift tools version

Swift build did not recognise the tools version earlier.

* refactor the spm task into package manager namespace

* Downgrade  swift tools version from 5.1 to 5.0

* Refactor swift build command

- swift build command is refactored and additional parameters are added which are specific to iOS.

* Add backslash to escape double quotes and backtick

* Add exception for Package.swift in Swiftlint

- Add empty space for end of file.

* Add section Swift Package Manager
- Add dependency code with cauli release version
Latest commit 8738196 Oct 14, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Cauli Added a default value for configuration parameter to Cauli initializer ( Jul 1, 2019
CauliTests Added a default value for configuration parameter to Cauli initializer ( Jul 1, 2019
Cauliframework.xcodeproj Updated to Swift 5 (#201) Oct 14, 2019
Cauliframework.xcworkspace Updated the Frameworks Podfile to the new Project name Feb 13, 2019
Draft.playground First draft of the new cauli Jul 6, 2018
Example/cauli-ios-example Added a default value for configuration parameter to Cauli initializer ( Jul 1, 2019
Pods Updated to Swift 5 (#201) Oct 14, 2019
docs/guides #155 renamed floret “Sub”-Protocols to not create any confusions Mar 3, 2019
.gitignore Adding a basic jazzy configuration and some additional documentation Oct 23, 2018
.jazzy.yaml Improved the jazzy configuration Mar 3, 2019
.swift-version Updated to Swift 5 (#201) Oct 14, 2019
.swiftlint.yml Add support for spm (#200) Oct 14, 2019
.travis.yml Updated Quick, Nimble, SwiftLint and OHHTTPStubs (#194) Sep 9, 2019
CHANGELOG.md Prepared 1.0.1 release May 23, 2019
CONTRIBUTING.md Updated the documentation Feb 13, 2019
Cauliframework.podspec Updated to Swift 5 (#201) Oct 14, 2019
Dangerfile Fixed typo in Dangerfile Feb 16, 2019
Gemfile Updated the jazzy configuration Feb 14, 2019
Gemfile.lock Updated the jazzy configuration Feb 14, 2019
LICENSE #10 added basic Podspec to support CocoaPod Jul 21, 2018
Package.swift Add support for spm (#200) Oct 14, 2019
Podfile Updated the Frameworks Podfile to the new Project name Feb 13, 2019
Podfile.lock Updated Quick, Nimble, SwiftLint and OHHTTPStubs (#194) Sep 9, 2019
README.md Add support for spm (#200) Oct 14, 2019
Rakefile Add support for spm (#200) Oct 14, 2019

README.md

Cauli

Build Status CocoaPods Compatible License MIT Jazzy documentation

Cauli is a network debugging framework featuring a plugin infrastructure to hook into selected request and responses as well as recording and displaying performed requests. It provides a wide range of possibilities. For example from inspecting network traffic to mock UnitTests. Missing something fancy? How about writing your own Plugin.

Features

🌏 Hooks into the URL Loading System
🧩 Existing set of Plugins (Florets)
🔧 Extensible Plugin Infrastructure

Documentation

Getting Started

Installation

CocoaPods

Use the following in your Podfile.

pod 'Cauliframework'

Then run pod install.

Carthage

Carthage is a non intrusive way to install Cauli to your project. It makes no changes to your Xcode project and workspace. Add the following to your Cartfile:

github "cauliframework/cauli"

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. Once you have your Swift package set up, add the following to your Package.swift file.

dependencies: [
    .package(url: "https://github.com/cauliframework/cauli.git", from: "1.0.1")
]

Setup

Add an import Cauliframework to your AppDelegate and call the run function on the shared instace in the application(:, didFinishLaunchingWithOptions:). Make sure to call run before instantiating any URLSession. Otherwise Cauli can't intercept network requests and create any records.

import Cauliframework

public class AppDelegate: UIApplicationDelegate {
    public func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        Cauli.shared.run()
        // perform your usual application setup
        return true
    }
}

This will configure Cauli to hook into every request, setup the core florets (plugins) (InspectorFloret) and configures a shake gesture for the Cauli UI.

Contributing

Please read CONTRIBUTING for details.

License

Cauli is available under the MIT license.

You can’t perform that action at this time.