diff --git a/android/gradle.properties b/android/gradle.properties index ed86f0f26922ea79f4d0c8e0e84f6d74259952bb..3487476dc637023e34426ce50caf3343f91e3038 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 0000000000000000000000000000000000000000..547fe1492a239f12b4de7b161ded88fcfd5d74bd --- /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 0000000000000000000000000000000000000000..073f85e6e4e14ff3276daa74367d0bfffc424f15 --- /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 320198777b265a454a92020cb93e9836ed257f12..325c872e69f892da4db10b86182d8b343c10bead 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 de43673dbcb70ab2b794083f14fe61803e40ac25..4efd07ac9876b2eaaba71abd4e1e91cbfc531db4 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'