|
|
@@ -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.
|