项目作者: ChimeHQ

项目描述 :
Impact crash reports as a Meter diagnostic source
高级语言: Swift
项目地址: git://github.com/ChimeHQ/ImpactMeterAdapter.git
创建时间: 2020-10-11T16:43:29Z
项目社区:https://github.com/ChimeHQ/ImpactMeterAdapter

开源协议:BSD 3-Clause "New" or "Revised" License

下载


Github CI

ImpactMeterAdapter

Convert Impact crash reports into a Meter diagnostic source.

Integration

Swift Package Manager:

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

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

  1. import ImpactMeterAdapter
  2. class ExampleSubscriber {
  3. init() {
  4. MeterPayloadManager.shared.add(self)
  5. // Configure Impact here, if needed
  6. ImpactMeterDiagnosticProvider.shared.start()
  7. }
  8. }
  9. extension ExampleSubscriber: MeterPayloadSubscriber {
  10. func didReceive(_ payloads: [DiagnosticPayloadProtocol]) {
  11. // Here you will receive MXCrashDiagnostics when supported, or
  12. // an equivalent Impact-based version otherwise.
  13. }
  14. }

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 an issue or 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.