Skip to content

Commit

Permalink
Merge pull request #202 from osociety/dev
Browse files Browse the repository at this point in the history
Dev -> Main
  • Loading branch information
git-elliot authored Nov 9, 2024
2 parents 0b16579 + fdc6173 commit bed4af4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: fs0c13ty # Replace with a single Ko-fi username
ko_fi: op3nsoc13ty # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: OpenSociety
Expand Down
1 change: 1 addition & 0 deletions android/fastlane/metadata/android/en-US/changelogs/28.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bug fix for scan for devices not working
3 changes: 2 additions & 1 deletion lib/pages/host_scan_page/host_scan_bloc/host_scan_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,15 @@ class HostScanBloc extends Bloc<HostScanEvent, HostScanState> {

Future<void> initializeWifiParameters(Emitter<HostScanState> emit) async {
final wifiGatewayIP = await NetworkInfo().getWifiGatewayIP();
ip = await NetworkInfo().getWifiIP();
if (appSettings.customSubnet.isNotEmpty) {
gatewayIp = appSettings.customSubnet;
} else if (wifiGatewayIP != null) {
gatewayIp = wifiGatewayIP;
} else {
// NetworkInfo().getWifiGatewayIP() is null on android 35, so fail-safe
// to NetworkInfo().getWifiIP()
gatewayIp = ip = await NetworkInfo().getWifiIP();
gatewayIp = ip;
}
if (gatewayIp == null) {
emit(const HostScanState.error());
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: A Network Analyzer

publish_to: 'none' # Remove this line if you wish to publish to pub.dev

version: 1.0.9+27
version: 1.0.9+28

environment:
sdk: ">=2.17.0 <3.0.0"
Expand Down

0 comments on commit bed4af4

Please sign in to comment.