IssueReporter.swift 402 B

123456789101112131415
  1. import Foundation
  2. protocol IssueReporter: AnyObject {
  3. /// Call this method in `applicationDidFinishLaunching()`.
  4. func setup()
  5. func setUserIdentifier(_: String?)
  6. func reportNonFatalIssue(withName: String, attributes: [String: String])
  7. func reportNonFatalIssue(withError: NSError)
  8. func log(_ category: String, _ message: String, file: String, function: String, line: UInt)
  9. }