fix(analytics): use Android ID and persist UUID fallbacks (#1624)

This commit is contained in:
Levi authored and GitHub committed 2026-10-28 22:33:13 +08:00
1 parent be0fb05edd
commit e0951de270
9 files changed
+61 -29

No files matched your search

@@ -196,7 +196,9 @@ class ExtraConfig {
List<String> createHistory;
bool runAsMenubarApp;
bool analyticsEnabled;
String analyticsClientId;
/// Persisted UUID fallback; IDs returned by platform APIs are not stored here.
String deviceId;
ExtraConfig({
this.themeMode = '',
@@ -214,7 +216,7 @@ class ExtraConfig {
this.createHistory = const [],
this.runAsMenubarApp = false,
this.analyticsEnabled = true,
this.analyticsClientId = '',
this.deviceId = '',
}) : windowState = windowState ?? WindowStateConfig();
factory ExtraConfig.fromJson(Map<String, dynamic>? json) =>