Files
letro-ios/ElementX/Sources/Services/BugReport/MockBugReportService.swift
2022-06-06 12:38:07 +03:00

29 lines
666 B
Swift

//
// MockBugReportService.swift
// ElementX
//
// Created by Ismail on 16.05.2022.
// Copyright © 2022 element.io. All rights reserved.
//
import Foundation
import UIKit
class MockBugReportService: BugReportServiceProtocol {
func submitBugReport(text: String,
includeLogs: Bool,
includeCrashLog: Bool,
githubLabels: [String],
files: [URL]) async throws -> SubmitBugReportResponse {
return SubmitBugReportResponse(reportUrl: "https://www.example/com/123")
}
var crashedLastRun: Bool = false
func crash() {
// no-op
}
}