Implement sparse location logging feature and update related services

This commit is contained in:
Winston Lowe
2026-02-08 17:01:28 -08:00
parent fac062a100
commit cedbe1dd6c
11 changed files with 405 additions and 13 deletions
+6 -1
View File
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:meshcore_open/services/sparse_location_logger.dart';
import 'l10n/app_localizations.dart';
import 'package:provider/provider.dart';
@@ -33,7 +34,7 @@ void main() async {
final appDebugLogService = AppDebugLogService();
final backgroundService = BackgroundService();
final mapTileCacheService = MapTileCacheService();
final sparseLocationLogger = SparseLocationLogger();
// Load settings
await appSettingsService.loadSettings();
@@ -56,6 +57,7 @@ void main() async {
bleDebugLogService: bleDebugLogService,
appDebugLogService: appDebugLogService,
backgroundService: backgroundService,
sparseLocationLogger: sparseLocationLogger,
);
await connector.loadContactCache();
@@ -76,6 +78,7 @@ void main() async {
bleDebugLogService: bleDebugLogService,
appDebugLogService: appDebugLogService,
mapTileCacheService: mapTileCacheService,
sparseLocationLogger: sparseLocationLogger,
),
);
}
@@ -89,6 +92,7 @@ class MeshCoreApp extends StatelessWidget {
final BleDebugLogService bleDebugLogService;
final AppDebugLogService appDebugLogService;
final MapTileCacheService mapTileCacheService;
final SparseLocationLogger sparseLocationLogger;
const MeshCoreApp({
super.key,
@@ -100,6 +104,7 @@ class MeshCoreApp extends StatelessWidget {
required this.bleDebugLogService,
required this.appDebugLogService,
required this.mapTileCacheService,
required this.sparseLocationLogger,
});
@override