Refactor logging to use debugPrint for better performance in debug mode

- Updated all print statements in services and widgets to use debugPrint.
- This change improves logging performance and ensures that debug messages are only shown in debug builds.
- Removed unnecessary transitive dependencies from pubspec.lock.
- Cleaned up pubspec.yaml by removing integration_test from dev_dependencies.
This commit is contained in:
Janez T
2025-10-18 22:50:57 +02:00
parent 198cee685a
commit 27ed4b0486
24 changed files with 586 additions and 1216 deletions

View File

@@ -1,38 +1,7 @@
{
"permissions": {
"allow": [
"Bash(magick Icon-App-1024x1024@1x.png -background white -alpha remove -alpha off Icon-App-1024x1024@1x.png)",
"Bash(convert Icon-App-1024x1024@1x.png -background white -alpha remove -alpha off Icon-App-1024x1024@1x-noalpha.png)",
"Bash(sips -s format jpeg Icon-App-1024x1024@1x.png --out /tmp/icon_flattened.jpg)",
"Bash(sips -s format png /tmp/icon_flattened.jpg --out Icon-App-1024x1024@1x.png)",
"Bash(flutter analyze lib/services/ble/)",
"Bash(flutter analyze lib/models/location_trail.dart lib/providers/map_provider.dart lib/widgets/map/location_trail_layer.dart lib/widgets/map/trail_controls.dart lib/widgets/map/compass/compass_filters.dart)",
"Bash(flutter analyze lib/screens/map_tab.dart)",
"Bash(flutter gen-l10n)",
"Bash(flutter analyze lib/screens/contacts_tab.dart)",
"Bash(flutter analyze lib/widgets/permission_request_dialog.dart lib/main.dart)",
"Bash(flutter analyze lib/screens/settings_screen.dart)",
"Bash(flutter analyze lib/services/location_tracking_service.dart)",
"Bash(flutter analyze lib/main.dart lib/screens/home_screen.dart)",
"Bash(flutter analyze lib/main.dart)",
"Bash(flutter analyze lib/providers/app_provider.dart lib/services/meshcore_ble_service.dart)",
"Bash(flutter analyze lib/services/meshcore_ble_service.dart)",
"Bash(flutter analyze lib/services/meshcore_ble_service.dart lib/services/location_tracking_service.dart)",
"Bash(flutter analyze lib/widgets/map/trail_controls.dart lib/screens/map_tab.dart)",
"Bash(flutter analyze lib/screens/device_config_screen.dart)",
"Bash(flutter analyze lib/services/ble/ble_response_handler.dart)",
"Bash(flutter analyze)",
"Bash(flutter analyze lib/models/contact.dart)",
"Read(//Users/dz0ny/meshcore-sar/MeshCore/**)",
"Read(//Users/dz0ny/meshcore-sar/**)",
"Bash(flutter analyze lib/models/sent_message_tracker.dart lib/models/message.dart lib/services/ble/ble_response_handler.dart)",
"Bash(flutter pub get)",
"Bash(flutter analyze lib/models/contact.dart lib/providers/app_provider.dart lib/widgets/contacts/contact_tile.dart lib/widgets/map/drawing_toolbar.dart)",
"Bash(flutter analyze lib/services/locale_preferences.dart)",
"Bash(flutter analyze lib/services/ble/ble_response_handler.dart lib/models/sent_message_tracker.dart)",
"Bash(flutter analyze lib/utils/message_extensions.dart)",
"Bash(flutter analyze lib/l10n/)",
"Bash(flutter analyze lib/services/ble/ble_response_handler.dart lib/utils/message_extensions.dart)"
"Bash(flutter analyze lib)"
],
"deny": [],
"ask": []