Skip to content

Commit aaa5e94

Browse files
committed
add installer store to analytics
1 parent eb85e19 commit aaa5e94

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Backend/analytics.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import 'dart:io';
33
import 'package:aptabase_flutter/aptabase_flutter.dart';
44
import 'package:device_info_plus/device_info_plus.dart';
55
import 'package:flutter/foundation.dart';
6+
import 'package:package_info_plus/package_info_plus.dart';
67
import 'package:tail_app/Backend/dynamic_config.dart';
78
import 'package:tail_app/Backend/wear_bridge.dart';
89
import 'package:url_launcher/url_launcher.dart';
@@ -66,10 +67,10 @@ Future<Map<String, String>> _getSettingsProps({Map<String, String> props = const
6667

6768
Future<Map<String, String>> _getLaunchProps({Map<String, String> props = const {}}) async {
6869
props = Map.of(props);
69-
7070
//props['App Version'] = (await PackageInfo.fromPlatform()).version;
7171
//props['App Build'] = (await PackageInfo.fromPlatform()).buildNumber;
7272
props['Locale'] = Platform.localeName;
73+
props['Installer Store'] = (await PackageInfo.fromPlatform()).installerStore ?? "Unknown";
7374

7475
try {
7576
props['Has Watch'] = (await isPaired()).toString();

0 commit comments

Comments
 (0)