mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-08 09:30:27 +00:00
fix(analytics): use Android ID and persist UUID fallbacks (#1624)
This commit is contained in:
9 files changed
+61
-29
No files matched your search
@@ -44,7 +44,7 @@ void main() {
|
||||
final backend = DownloaderConfig()
|
||||
..extra.windowState = WindowStateConfig(isMaximized: true, width: 1200, height: 800)
|
||||
..extra.createHistory = ['https://example.com/existing.zip']
|
||||
..extra.analyticsClientId = 'existing-client';
|
||||
..extra.deviceId = 'existing-client';
|
||||
DownloaderConfig? saved;
|
||||
final registry = CapabilityRegistry(createAppCapabilityCodecs())
|
||||
..bind(GopeedMethods.getConfig, (_) => DownloaderConfig.fromJson(backend.toJson()))
|
||||
@@ -67,7 +67,7 @@ void main() {
|
||||
expect(saved?.downloadDir, 'E:/New');
|
||||
expect(saved?.extra.windowState.isMaximized, isTrue);
|
||||
expect(saved?.extra.createHistory, ['https://example.com/existing.zip']);
|
||||
expect(saved?.extra.analyticsClientId, 'existing-client');
|
||||
expect(saved?.extra.deviceId, 'existing-client');
|
||||
});
|
||||
|
||||
test('protocol edits use a single full PUT and reload backend-owned tracker results', () async {
|
||||
|
||||
Reference in new issue
Block a user