From 4327563361916d01481e6684d2ca3204441dc802 Mon Sep 17 00:00:00 2001 From: NITISH-R-G <225521762+NITISH-R-G@users.noreply.github.com> Date: Mon, 24 Aug 2026 20:49:13 +0000 Subject: [PATCH 1/2] Refactor lint suppressions and clean unused fields - Add header: "" to l10n.yaml to prevent gen-l10n from generating ignore comments. - Move experimental_member_use suppression to analysis_options.yaml. - Remove unused private fields _ref from WebRtcVoiceCallService and FamilyCircleService. - Replace `// ignore: discarded_futures` with `unawaited()` in FirstAidScreen. - Update analysis_options.yaml to exclude lib/l10n/**. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> --- analysis_options.yaml | 6 ++++++ l10n.yaml | 1 + lib/services/emergency_beacon_service.dart | 1 - lib/services/family_circle_service.dart | 4 ---- lib/services/webrtc_voice_call_service.dart | 5 +---- lib/ui/first_aid_screen.dart | 3 +-- 6 files changed, 9 insertions(+), 11 deletions(-) diff --git a/analysis_options.yaml b/analysis_options.yaml index ce0711f..691b1bc 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -9,6 +9,12 @@ # packages, and plugins designed to encourage good coding practices. include: package:flutter_lints/flutter.yaml +analyzer: + exclude: + - "lib/l10n/**" + errors: + experimental_member_use: ignore + linter: # The lint rules applied to this project can be customized in the # section below to disable rules from the `package:flutter_lints/flutter.yaml` diff --git a/l10n.yaml b/l10n.yaml index 15338f2..360fe44 100644 --- a/l10n.yaml +++ b/l10n.yaml @@ -1,3 +1,4 @@ arb-dir: lib/l10n template-arb-file: app_en.arb output-localization-file: app_localizations.dart +header: "" diff --git a/lib/services/emergency_beacon_service.dart b/lib/services/emergency_beacon_service.dart index b71d4e1..b090ff5 100644 --- a/lib/services/emergency_beacon_service.dart +++ b/lib/services/emergency_beacon_service.dart @@ -1,4 +1,3 @@ -// ignore_for_file: experimental_member_use import 'dart:async'; import 'dart:math'; import 'package:flutter/foundation.dart'; diff --git a/lib/services/family_circle_service.dart b/lib/services/family_circle_service.dart index 8ab87c7..a920e04 100644 --- a/lib/services/family_circle_service.dart +++ b/lib/services/family_circle_service.dart @@ -165,13 +165,9 @@ class FamilyCircleService extends StateNotifier { // Ref is currently unused but kept in the constructor so future work // (FCM push, profile sync) can read other providers without changing the // call-site contract. - _ref = ref; _bootstrap(); } - // ignore: unused_field - Ref? _ref; - RealtimeChannel? _peerChannel; Timer? _publishTimer; StreamSubscription? _positionSub; diff --git a/lib/services/webrtc_voice_call_service.dart b/lib/services/webrtc_voice_call_service.dart index 573d39f..a0bcc2e 100644 --- a/lib/services/webrtc_voice_call_service.dart +++ b/lib/services/webrtc_voice_call_service.dart @@ -92,13 +92,10 @@ class VoiceCallState { /// behind symmetric NAT may fail. Acceptable for hackathon demo on WiFi / /// 4G with the same operator; production should add a Coturn TURN server. class WebRtcVoiceCallService extends StateNotifier { - WebRtcVoiceCallService(this._ref) : super(const VoiceCallState()) { + WebRtcVoiceCallService(Ref ref) : super(const VoiceCallState()) { _bootstrap(); } - // ignore: unused_field - final Ref _ref; - RTCPeerConnection? _pc; MediaStream? _localStream; RealtimeChannel? _ringChannel; diff --git a/lib/ui/first_aid_screen.dart b/lib/ui/first_aid_screen.dart index e0fe1e3..b28fcd0 100644 --- a/lib/ui/first_aid_screen.dart +++ b/lib/ui/first_aid_screen.dart @@ -81,8 +81,7 @@ class _FirstAidScreenState extends ConsumerState { _result = res; }); // Side-channel: keep FirstAidStore primed (used elsewhere) — best-effort. - // ignore: discarded_futures - FirstAidStore.getVerifiedAdvice(query); + unawaited(FirstAidStore.getVerifiedAdvice(query)); } on Object { setState(() { _error = 'Could not load first-aid guidance on this device.'; From b4393d6527e1aaf00c2793973229e49a24561a96 Mon Sep 17 00:00:00 2001 From: NITISH-R-G <225521762+NITISH-R-G@users.noreply.github.com> Date: Mon, 24 Aug 2026 21:04:33 +0000 Subject: [PATCH 2/2] Fix GitHub CI Action failure for github-pages deployment - Conditionally set github-pages environment in health_dashboard.yml to avoid PR environment protection rules failures. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> --- .github/workflows/health_dashboard.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/health_dashboard.yml b/.github/workflows/health_dashboard.yml index 9920871..42669f6 100644 --- a/.github/workflows/health_dashboard.yml +++ b/.github/workflows/health_dashboard.yml @@ -25,7 +25,7 @@ jobs: name: Generate & Deploy Dashboard runs-on: ubuntu-latest environment: - name: github-pages + name: ${{ github.event_name != 'pull_request' && 'github-pages' || '' }} url: ${{ steps.deployment.outputs.page_url }} steps: