convert DebugLogs from class to enum and remove objc compat
This commit is contained in:
parent
9bf0eec8b0
commit
d93f97672f
@ -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,
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user