Skip to content

chore: clear ruflet_charts and ruflet_audio_recorder analyzer issues - #77

Merged
AdamMusa merged 1 commit into
codex/engine-initializationfrom
chore/extension-analyzer-cleanup
Nov 2, 2026
Merged

AdamMusa merged 1 commit into
codex/engine-initializationfrom
chore/extension-analyzer-cleanup

Conversation

@AdamMusa

Copy link
Copy Markdown
Owner

What

Clears the 4 analyzer issues that already exist on the base in ruflet_charts and ruflet_audio_recorder. They are the only reason #76's verify shows FAIL. No behavior change.

  • ruflet_charts (3 issues):
    • Removed two unnecessary_const keywords in lib/src/utils/charts.dart. Both colors already sit inside a const list, so the list is unchanged.
    • Added provider: ^6.1.5 to dev_dependencies, the version the other extensions use. test/cupertino_charts_test.dart imports package:provider/provider.dart for ChangeNotifierProvider, which tripped depend_on_referenced_packages.
  • ruflet_audio_recorder (1 issue): IosRecordConfig.manageAudioSession stays, behind a narrowly scoped // ignore: deprecated_member_use with a one-line reason.

Known follow-up

Migrate manage_audio_session from the deprecated IosRecordConfig.manageAudioSession to AudioRecorder.ios.manageAudioSession. The replacement is a recorder-level setting, not part of the per-recording config. Moving to it changes when and for which recordings the iOS audio session is managed. It needs its own change and an on-device check, so this PR keeps the current behavior.

Tests

team/verify_pr.sh <engine> "" with EXT_PKGS="ruflet_charts ruflet_audio_recorder" at a0eee49 (on base 5c0cecf): PASS

  • core flutter test: +746, all passed; flutter analyze lib test: No issues found
  • ruflet_charts: tests +2 passed; analyze: No issues found
  • ruflet_audio_recorder: no test/ dir; flutter analyze: No issues found

Unblocks #76 (extension enum snake_case), whose remaining verify FAIL lines are exactly these 4 issues.

- charts: drop two const keywords inside an already const list and
  declare provider as a dev_dependency for the Cupertino charts test
  that imports it.
- audio_recorder: keep the deprecated IosRecordConfig.manageAudioSession
  behind a scoped ignore. Moving to AudioRecorder.ios.manageAudioSession
  changes when the audio session is managed, so it is a separate
  follow-up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant