Swiftpack.co - cauliframework/cauli as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by cauliframework.
cauliframework/cauli 1.1
Debug Networking
⭐️ 27
🕓 27 weeks ago
iOS
.package(url: "https://github.com/cauliframework/cauli.git", from: "1.1")

Cauli

Tests SPM 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

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.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.

GitHub

link
Stars: 27
Last commit: 27 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

1.1
27 weeks ago
  • feature Added a MapRemoteFloret that can change urls of requests before they are sent. #216 by @brototyp
  • improvement Added an optional description to florets #176 by @Shukuyen
  • improvement Removed Cocoapods as a developer dependency in favor of SPM. #238
  • improvement Extracted the InspectorFloretFormatter to increase customizability if the InspectorFloret. #239
  • bugfix Fixed an issue where cauli didn’t pass the redirection information up to the application. #196
  • bugfix Fixed an issue when using Cauli via SPM. #238

Full Changelog: https://github.com/cauliframework/cauli/compare/1.0.1...1.1

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics