Swiftpack.co -  ChimeHQ/ImpactMeterAdapter as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
ChimeHQ/ImpactMeterAdapter
Impact crash reports as a Meter diagnostic source
.package(url: "https://github.com/ChimeHQ/ImpactMeterAdapter.git", from: "0.1.1")

Github CI

ImpactMeterAdapter

Convert Impact crash reports into a Meter diagnostic source.

Integration

Swift Package Manager:

dependencies: [
    .package(url: "https://github.com/ChimeHQ/ImpactMeterAdapter.git")
]

What It Does

ImpactMeterAdapter gives you MXCrashDiagnostic payload when running on a supported platform/OS, and emulated payloads derived from Impact reports for backwards compatibility. When MXCrashDiagnostic is supported, Impact is not initialized. This gives you an easy way to interact with a consistent interface, as the (hopeful) migration towards MXCrashDiagnostic progresses.

ImpactMeterAdapter supports macOS 10.13+, iOS 12.0+, and tvOS 12.0+.

Getting Started

import ImpactMeterAdapter

class ExampleSubscriber {
    init() {
        MeterPayloadManager.shared.add(self)

        // Configure Impact here, if needed

        ImpactMeterDiagnosticProvider.shared.start()
    }
}

extension ExampleSubscriber: MeterPayloadSubscriber {
    func didReceive(_ payloads: [DiagnosticPayloadProtocol]) {
        // Here you will receive MXCrashDiagnostics when supported, or
        // an equivalent Impact-based version otherwise.
    }
}

For actually transmitting data back to a server, check out Wells.

Suggestions or Feedback

We'd love to hear from you! Get in touch via twitter, an issue, or a pull request.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

GitHub

link
Stars: 0
Last commit: 41 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Dependencies

Related Packages

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