소스 검색

Fix Telemetry appName reference

Deniz Cengiz 1 일 전
부모
커밋
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")
     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
     // 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.
     // so that we can distinguish forks from mainline Trio builds in our telemetry.
     private static let telemetryAppName: String = "Trio"
     private static let telemetryAppName: String = "Trio"
 
 
@@ -193,7 +194,7 @@ final class TelemetryClient: Injectable {
         var payload: [String: Any] = [:]
         var payload: [String: Any] = [:]
 
 
         if let v = info["CFBundleShortVersionString"] as? String { payload["appVersion"] = v }
         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") —
         // 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 most precise build identifier we have. Always emit, even when
         // the Info.plist key is missing, so dashboards can rely on the field.
         // the Info.plist key is missing, so dashboards can rely on the field.