From ebb4c5d088767e649d18ca3808afbcbdfc9d2b9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Harrault?= <benoit@harrault.fr> Date: Mon, 29 Jan 2024 00:10:47 +0100 Subject: [PATCH] Fix compute score board on game start --- android/gradle.properties | 4 ++-- fastlane/metadata/android/en-US/changelogs/12.txt | 1 + fastlane/metadata/android/fr-FR/changelogs/12.txt | 1 + lib/cubit/game_cubit.dart | 2 ++ pubspec.yaml | 2 +- 5 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 fastlane/metadata/android/en-US/changelogs/12.txt create mode 100644 fastlane/metadata/android/fr-FR/changelogs/12.txt diff --git a/android/gradle.properties b/android/gradle.properties index f0be9fb..d9abd55 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -1,5 +1,5 @@ org.gradle.jvmargs=-Xmx1536M android.useAndroidX=true android.enableJetifier=true -app.versionName=0.0.11 -app.versionCode=11 +app.versionName=0.0.12 +app.versionCode=12 diff --git a/fastlane/metadata/android/en-US/changelogs/12.txt b/fastlane/metadata/android/en-US/changelogs/12.txt new file mode 100644 index 0000000..65c184c --- /dev/null +++ b/fastlane/metadata/android/en-US/changelogs/12.txt @@ -0,0 +1 @@ +Fix compute score board on new game. diff --git a/fastlane/metadata/android/fr-FR/changelogs/12.txt b/fastlane/metadata/android/fr-FR/changelogs/12.txt new file mode 100644 index 0000000..c593b95 --- /dev/null +++ b/fastlane/metadata/android/fr-FR/changelogs/12.txt @@ -0,0 +1 @@ +Correction du calcul du bandeau de score au démarrage d'une partie. diff --git a/lib/cubit/game_cubit.dart b/lib/cubit/game_cubit.dart index e3803df..b6096a8 100644 --- a/lib/cubit/game_cubit.dart +++ b/lib/cubit/game_cubit.dart @@ -122,6 +122,7 @@ class GameCubit extends HydratedCubit<GameState> { void postAnimate() { this.moveCellsDown(); this.updateAvailableBlocksCount(); + refresh(); if (!this.state.currentGame.hasAtLeastOneAvailableBlock()) { print('no more block found. finish game.'); @@ -137,6 +138,7 @@ class GameCubit extends HydratedCubit<GameState> { newGame.dump(); updateState(newGame); + this.postAnimate(); } @override diff --git a/pubspec.yaml b/pubspec.yaml index f71f3a6..8fd9227 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: Jeweled Game publish_to: 'none' -version: 0.0.11+11 +version: 0.0.12+12 environment: sdk: '^3.0.0' -- GitLab