mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Label rageshakes from macOS and report the right operating system. (#4392)
This commit is contained in:
@@ -91,6 +91,10 @@ class BugReportService: NSObject, BugReportServiceProtocol {
|
|||||||
bugReport.githubLabels.append("Nightly")
|
bugReport.githubLabels.append("Nightly")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ProcessInfo.processInfo.isiOSAppOnMac {
|
||||||
|
bugReport.githubLabels.append("macOS")
|
||||||
|
}
|
||||||
|
|
||||||
for label in bugReport.githubLabels {
|
for label in bugReport.githubLabels {
|
||||||
params.append(MultipartFormData(key: "label", type: .text(value: label)))
|
params.append(MultipartFormData(key: "label", type: .text(value: label)))
|
||||||
}
|
}
|
||||||
@@ -191,7 +195,12 @@ class BugReportService: NSObject, BugReportServiceProtocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private var os: String {
|
private var os: String {
|
||||||
"\(UIDevice.current.systemName) \(UIDevice.current.systemVersion)"
|
if ProcessInfo.processInfo.isiOSAppOnMac {
|
||||||
|
// The other APIs report macOS's equivalent iOS version, so lets use the right one to get the macOS version.
|
||||||
|
"macOS \(ProcessInfo.processInfo.operatingSystemVersionString)"
|
||||||
|
} else {
|
||||||
|
"\(UIDevice.current.systemName) \(UIDevice.current.systemVersion)"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private func zipFiles(_ logFiles: [URL]) async -> Logs {
|
private func zipFiles(_ logFiles: [URL]) async -> Logs {
|
||||||
|
|||||||
Reference in New Issue
Block a user