diff --git a/android/gradle.properties b/android/gradle.properties index 6bf54a6ed821c19f76d860d4a24e7c85d440b575..f0be9fb67d6fe0b36ce90df03ff2f3f1551d738c 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.10 -app.versionCode=10 +app.versionName=0.0.11 +app.versionCode=11 diff --git a/lib/entities/cell.dart b/lib/entities/cell.dart index 5a9a347619f649cd4cc142560c8df144dbc20819..75c44821e5d768c60cc6cfd6e5681d7851446d88 100644 --- a/lib/entities/cell.dart +++ b/lib/entities/cell.dart @@ -40,9 +40,6 @@ class Cell { ), onTap: () { BoardUtils.fillBoardFromFirstCell(myProvider, this.value); - if (BoardUtils.checkBoardIsSolved(myProvider)) { - myProvider.updateGameWon(true); - } }, ) ); diff --git a/lib/utils/board_utils.dart b/lib/utils/board_utils.dart index c638652cb81e65b4f2fbb8ecc73f8c89d93adb88..3f1ef2f96337c4d00c8efccc6802d13311c890ca 100644 --- a/lib/utils/board_utils.dart +++ b/lib/utils/board_utils.dart @@ -78,6 +78,10 @@ class BoardUtils { myProvider.updateProgress(progressAfterMove); myProvider.incrementMovesCount(); + + if (BoardUtils.checkBoardIsSolved(myProvider)) { + myProvider.updateGameWon(true); + } } }, );