feat: analytics abstraction with debug backend and game event wiring

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-06-12 13:35:31 +09:00
parent 6d2d97bfcc
commit 074a21ea2b
7 changed files with 161 additions and 5 deletions
+4
View File
@@ -23,6 +23,10 @@ class SeasonFlowNotifier extends Notifier<SeasonFlow?> {
void startSeasonStage(SeasonPack pack, int index) {
state = SeasonFlow(pack: pack, index: index);
ref.read(gameSessionProvider.notifier).startStage(pack.stages[index]);
ref.read(analyticsProvider).stageStart(
seasonId: pack.seasonId,
stageId: pack.stages[index].id,
);
}
Future<void> recordWin({required int stars, required int score}) async {