From 9ae3acb3dc348504d1c12760fbe9ccbc19f000ef Mon Sep 17 00:00:00 2001 From: Janez T Date: Thu, 16 Oct 2025 14:03:44 +0200 Subject: [PATCH] feat: Update project version to 9 and enhance debug print functionality --- .claude/settings.local.json | 25 ++++++++++++++++++++++++- ios/Runner.xcodeproj/project.pbxproj | 12 ++++++------ ios/Runner/Info.plist | 2 +- ios/fastlane/report.xml | 8 ++++---- lib/utils/debug_print.dart | 8 ++++++++ 5 files changed, 43 insertions(+), 12 deletions(-) create mode 100644 lib/utils/debug_print.dart diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 81634c2..b3d4bbd 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -25,7 +25,30 @@ "Read(//Users/dz0ny/meshcore-sar/**)", "Bash(git grep:*)", "Bash(dart analyze:*)", - "Bash(flutter logs --clear)" + "Bash(flutter logs --clear)", + "Bash(for file in /Users/dz0ny/meshcore-sar/meshcore_sar_app/lib/providers/contacts_provider.dart )", + "Bash(/Users/dz0ny/meshcore-sar/meshcore_sar_app/lib/providers/connection_provider.dart )", + "Bash(/Users/dz0ny/meshcore-sar/meshcore_sar_app/lib/providers/messages_provider.dart )", + "Bash(/Users/dz0ny/meshcore-sar/meshcore_sar_app/lib/screens/messages_tab.dart )", + "Bash(/Users/dz0ny/meshcore-sar/meshcore_sar_app/lib/screens/map_management_screen.dart )", + "Bash(/Users/dz0ny/meshcore-sar/meshcore_sar_app/lib/screens/home_screen.dart )", + "Bash(/Users/dz0ny/meshcore-sar/meshcore_sar_app/lib/services/ble/ble_connection_manager.dart )", + "Bash(/Users/dz0ny/meshcore-sar/meshcore_sar_app/lib/services/ble/ble_response_handler.dart )", + "Bash(/Users/dz0ny/meshcore-sar/meshcore_sar_app/lib/services/ble/ble_command_sender.dart )", + "Bash(/Users/dz0ny/meshcore-sar/meshcore_sar_app/lib/services/meshcore_ble_service.dart )", + "Bash(/Users/dz0ny/meshcore-sar/meshcore_sar_app/lib/services/contact_storage_service.dart )", + "Bash(/Users/dz0ny/meshcore-sar/meshcore_sar_app/lib/services/message_storage_service.dart )", + "Bash(/Users/dz0ny/meshcore-sar/meshcore_sar_app/lib/services/cayenne_lpp_parser.dart )", + "Bash(/Users/dz0ny/meshcore-sar/meshcore_sar_app/lib/services/tile_cache_service.dart )", + "Bash(/Users/dz0ny/meshcore-sar/meshcore_sar_app/lib/services/background_location_service.dart )", + "Bash(/Users/dz0ny/meshcore-sar/meshcore_sar_app/lib/widgets/contacts/room_login_sheet.dart)", + "Bash(do)", + "Bash(if grep -q \"debugPrint(\" \"$file\")", + "Bash(! grep -q \"import.*debug_print.dart\" \"$file\")", + "Bash(then)", + "Bash(echo:*)", + "Bash(fi)", + "Bash(done)" ], "deny": [], "ask": [] diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index cf3d4a8..76682c2 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -489,7 +489,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = 7; + CURRENT_PROJECT_VERSION = 9; DEVELOPMENT_TEAM = JND55328G8; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; @@ -511,7 +511,7 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 7; + CURRENT_PROJECT_VERSION = 9; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = com.meshcore.sar.meshcoreSarApp.RunnerTests; @@ -529,7 +529,7 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 7; + CURRENT_PROJECT_VERSION = 9; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = com.meshcore.sar.meshcoreSarApp.RunnerTests; @@ -545,7 +545,7 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 7; + CURRENT_PROJECT_VERSION = 9; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = com.meshcore.sar.meshcoreSarApp.RunnerTests; @@ -676,7 +676,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = 7; + CURRENT_PROJECT_VERSION = 9; DEVELOPMENT_TEAM = JND55328G8; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; @@ -699,7 +699,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = 7; + CURRENT_PROJECT_VERSION = 9; DEVELOPMENT_TEAM = JND55328G8; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index 0b84376..0000d90 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -21,7 +21,7 @@ CFBundleSignature ???? CFBundleVersion - 7 + 9 LSRequiresIPhoneOS UILaunchStoryboardName diff --git a/ios/fastlane/report.xml b/ios/fastlane/report.xml index 76f6bce..a317f2a 100644 --- a/ios/fastlane/report.xml +++ b/ios/fastlane/report.xml @@ -5,22 +5,22 @@ - + - + - + - + diff --git a/lib/utils/debug_print.dart b/lib/utils/debug_print.dart new file mode 100644 index 0000000..651a1d4 --- /dev/null +++ b/lib/utils/debug_print.dart @@ -0,0 +1,8 @@ +import 'package:flutter/foundation.dart'; + +/// Debug print that only outputs in debug builds +void debugPrint(Object? message) { + if (kDebugMode) { + print(message); + } +}