convert DebugLogs from class to enum and remove objc compat

This commit is contained in:
Ehren Kret 2025-03-05 09:02:19 -06:00
parent 9bf0eec8b0
commit d93f97672f
2 changed files with 2 additions and 8 deletions

View File

@ -113,7 +113,7 @@ private struct DebugLogsUploadError: Error, LocalizedError, UserErrorDescription
}
extension DebugLogs {
class func uploadLog() -> Promise<URL> {
static func uploadLog() -> Promise<URL> {
return Promise { future in
DebugLogs.uploadLogs(
success: future.resolve,

View File

@ -11,18 +11,12 @@ import SignalUI
typealias UploadDebugLogsSuccess = (URL) -> Void
typealias UploadDebugLogsFailure = (String, String?) -> Void
@objc
class DebugLogs: NSObject {
private override init() {
super.init()
}
enum DebugLogs {
static func submitLogs() {
submitLogsWithSupportTag(nil)
}
@objc
static func submitLogsWithSupportTag(_ tag: String?, completion: (() -> Void)? = nil) {
let submitLogsCompletion = {
if let completion {