From 8db98e8ae84876df824a1353881f8ff0248f427c Mon Sep 17 00:00:00 2001 From: git-elliot Date: Sat, 16 Nov 2024 22:35:49 +0530 Subject: [PATCH] bug fix for windows --- android/fastlane/metadata/android/en-US/changelogs/32.txt | 2 ++ lib/pages/home_page.dart | 2 +- lib/pages/host_scan_page/host_scan_bloc/host_scan_bloc.dart | 4 ++-- pubspec.yaml | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 android/fastlane/metadata/android/en-US/changelogs/32.txt diff --git a/android/fastlane/metadata/android/en-US/changelogs/32.txt b/android/fastlane/metadata/android/en-US/changelogs/32.txt new file mode 100644 index 0000000..0b31331 --- /dev/null +++ b/android/fastlane/metadata/android/en-US/changelogs/32.txt @@ -0,0 +1,2 @@ +Compatibility issues fixed for windows +Scan slowness improved \ No newline at end of file diff --git a/lib/pages/home_page.dart b/lib/pages/home_page.dart index 107188b..284376f 100644 --- a/lib/pages/home_page.dart +++ b/lib/pages/home_page.dart @@ -48,7 +48,7 @@ class _WifiDetailState extends State { String? wifiGatewayIP; try { wifiGatewayIP = await NetworkInfo().getWifiGatewayIP(); - } on Exception catch (e) { + } catch (e) { debugPrint('Unimplemented error $e'); } final gatewayIp = appSettings.customSubnet.isNotEmpty diff --git a/lib/pages/host_scan_page/host_scan_bloc/host_scan_bloc.dart b/lib/pages/host_scan_page/host_scan_bloc/host_scan_bloc.dart index 222b270..d829711 100644 --- a/lib/pages/host_scan_page/host_scan_bloc/host_scan_bloc.dart +++ b/lib/pages/host_scan_page/host_scan_bloc/host_scan_bloc.dart @@ -61,8 +61,8 @@ class HostScanBloc extends Bloc { String? wifiGatewayIP; try { wifiGatewayIP = await NetworkInfo().getWifiGatewayIP(); - } on Exception catch (e) { - debugPrint("Not implemented $e"); + } catch (e) { + debugPrint('Unimplemented error $e'); } ip = await NetworkInfo().getWifiIP(); if (appSettings.customSubnet.isNotEmpty) { diff --git a/pubspec.yaml b/pubspec.yaml index 5bdf227..62f9cd9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: A Network Analyzer publish_to: 'none' # Remove this line if you wish to publish to pub.dev -version: 1.1.0+31 +version: 1.1.0+32 environment: sdk: ">=2.17.0 <3.0.0"