Просмотр исходного кода

Fix Telemetry appName reference

Deniz Cengiz 1 день назад
Родитель
Сommit
35499ad5ec
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      Trio/Sources/Services/Telemetry/TelemetryClient.swift

+ 2 - 1
Trio/Sources/Services/Telemetry/TelemetryClient.swift

@@ -22,6 +22,7 @@ final class TelemetryClient: Injectable {
     private static let productionBaseURL: URL? = URL(string: "https://telemetry.triodocs.org")
 
     // MARK: if you fork Trio and keep telemetry enabled, please change the name here
+
     // so that we can distinguish forks from mainline Trio builds in our telemetry.
     private static let telemetryAppName: String = "Trio"
 
@@ -193,7 +194,7 @@ final class TelemetryClient: Injectable {
         var payload: [String: Any] = [:]
 
         if let v = info["CFBundleShortVersionString"] as? String { payload["appVersion"] = v }
-        payload["appName"] = telemetryAppName
+        payload["appName"] = TelemetryClient.telemetryAppName
         // appDevVersion is Trio's 4-component dev counter (e.g. "0.7.0.14") —
         // the most precise build identifier we have. Always emit, even when
         // the Info.plist key is missing, so dashboards can rely on the field.