diff --git a/android/gradle.properties b/android/gradle.properties index f0be9fb67d6fe0b36ce90df03ff2f3f1551d738c..d9abd55731010fe508f39321892e8002f10e79ef 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 0000000000000000000000000000000000000000..65c184c23999658f3fe389d08af3395f98c6b5fb --- /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 0000000000000000000000000000000000000000..c593b951906455072e03bfa353aa122f954ecf83 --- /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 e3803dfe9624f7d0de400281fa0fd5b63afdea4b..b6096a87372387ecbbf4e0865f0717bb265d0bd4 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 f71f3a605c27885c53e84820902d63e5614ad4c9..8fd9227286dfeb8878bafa3adebcf8f3844e5d1e 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'