From a33e0f97203d2954c7351fc77f8b3b4c13a18d97 Mon Sep 17 00:00:00 2001 From: Brett Morgan Date: Wed, 31 May 2023 06:56:49 +1000 Subject: [PATCH] `game_template` fix up exhaustive checks (#1853) ## Pre-launch Checklist - [x] I read the [Flutter Style Guide] _recently_, and have followed its advice. - [x] I signed the [CLA]. - [x] I read the [Contributors Guide]. - [x] I updated/added relevant documentation (doc comments with `///`). - [ ] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-devrel channel on [Discord]. [Flutter Style Guide]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo [CLA]: https://cla.developers.google.com/ [Discord]: https://github.com/flutter/flutter/wiki/Chat [Contributors Guide]: https://github.com/flutter/samples/blob/main/CONTRIBUTING.md --- game_template/lib/src/audio/audio_controller.dart | 2 ++ tool/flutter_ci_script_master.sh | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/game_template/lib/src/audio/audio_controller.dart b/game_template/lib/src/audio/audio_controller.dart index 6f267c8b4..52e718d61 100644 --- a/game_template/lib/src/audio/audio_controller.dart +++ b/game_template/lib/src/audio/audio_controller.dart @@ -220,6 +220,8 @@ class AudioController { "Music should never be 'completed' as it's either not playing " "or looping forever."); await _playFirstSongInPlaylist(); + default: + _log.warning('Unhandled PlayerState: ${_musicPlayer.state}'); } } diff --git a/tool/flutter_ci_script_master.sh b/tool/flutter_ci_script_master.sh index c9c6c43bf..0eb7875c1 100755 --- a/tool/flutter_ci_script_master.sh +++ b/tool/flutter_ci_script_master.sh @@ -43,8 +43,7 @@ declare -ar PROJECT_NAMES=( "experimental/web_dashboard" "flutter_maps_firestore" "form_app" - # TODO(DomesticMouse): The type 'AppLifecycleState' is not exhaustively matched by the switch cases since it doesn't match 'AppLifecycleState.hidden'. - # "game_template" + "game_template" "google_maps" "infinite_list" "ios_app_clip"