James Woglom 1 неделя назад
Родитель
Сommit
925cb81765
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      Trio/Sources/Services/Telemetry/TelemetryClient.swift

+ 6 - 0
Trio/Sources/Services/Telemetry/TelemetryClient.swift

@@ -158,6 +158,12 @@ final class TelemetryClient: Injectable {
         var payload: [String: Any] = [:]
 
         if let v = info["CFBundleShortVersionString"] as? String { payload["appVersion"] = v }
+        // Display name from Info.plist ($(APP_DISPLAY_NAME) in Config.xcconfig,
+        // default "Trio"). Forks typically rebrand by changing that one line,
+        // so this lets dashboards distinguish upstream Trio from forks.
+        let displayName = (info["CFBundleDisplayName"] as? String)
+            ?? (info["CFBundleName"] as? String)
+        payload["appDisplayName"] = displayName ?? "unknown"
         // 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.