Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
ppupha committed Apr 26, 2024
1 parent 31a2695 commit 304972a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/util/local_network_helper.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import 'package:autonomy_flutter/util/log.dart';
import 'package:network_info_plus/network_info_plus.dart';

class LocalNetworkHelper {
static Future<bool> requestLocalNetworkPermission() async {
bool isGranted = false;
try {
final wifiIp = await NetworkInfo().getWifiIP();
log.info('[LocalNetworkHelper] wifiIp: $wifiIp');
isGranted = true;
} catch (e) {
log.info('[LocalNetworkHelper] requestLocalNetworkPermission Error: $e');
isGranted = false;
}
return isGranted;
Expand Down

0 comments on commit 304972a

Please sign in to comment.