From 28ed284cdf22d19ba842a859a9d0be6a4ae2ca91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Harrault?= <benoit@harrault.fr> Date: Fri, 5 Apr 2024 15:14:14 +0200 Subject: [PATCH] Fix add move after history reset --- android/gradle.properties | 4 ++-- fastlane/metadata/android/en-US/changelogs/23.txt | 1 + fastlane/metadata/android/fr-FR/changelogs/23.txt | 1 + lib/cubit/game_cubit.dart | 3 ++- pubspec.yaml | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 fastlane/metadata/android/en-US/changelogs/23.txt create mode 100644 fastlane/metadata/android/fr-FR/changelogs/23.txt diff --git a/android/gradle.properties b/android/gradle.properties index ed86f0f..3487476 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.22 -app.versionCode=22 +app.versionName=0.0.23 +app.versionCode=23 diff --git a/fastlane/metadata/android/en-US/changelogs/23.txt b/fastlane/metadata/android/en-US/changelogs/23.txt new file mode 100644 index 0000000..547fe14 --- /dev/null +++ b/fastlane/metadata/android/en-US/changelogs/23.txt @@ -0,0 +1 @@ +Fix continue game after history reset. diff --git a/fastlane/metadata/android/fr-FR/changelogs/23.txt b/fastlane/metadata/android/fr-FR/changelogs/23.txt new file mode 100644 index 0000000..073f85e --- /dev/null +++ b/fastlane/metadata/android/fr-FR/changelogs/23.txt @@ -0,0 +1 @@ +Correction sur poursuite de jeu impossible après suppression de l'historique. diff --git a/lib/cubit/game_cubit.dart b/lib/cubit/game_cubit.dart index 3201987..325c872 100644 --- a/lib/cubit/game_cubit.dart +++ b/lib/cubit/game_cubit.dart @@ -28,9 +28,10 @@ class GameCubit extends HydratedCubit<GameState> { } void deleteHistory() { + List<Move> history = []; emit(GameState( move: state.move, - history: const [], + history: history, )); } diff --git a/pubspec.yaml b/pubspec.yaml index de43673..4efd07a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: twister game companion publish_to: 'none' -version: 0.0.22+22 +version: 0.0.23+23 environment: sdk: '^3.0.0' -- GitLab