diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-06-27 21:33:50 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-06-27 21:33:50 +0330 |
commit | ae2cb569694734d2d9c1c1eb60e73cff46dab8e5 (patch) | |
tree | 9fa26ff6a030721515468b67d9e61923991584aa | |
parent | ddbf264327eaad69998df915f90193ebb0063e20 (diff) |
fix not stopping timer in game end bugv0.2.1
-rw-r--r-- | app/build.gradle.kts | 4 | ||||
-rw-r--r-- | app/release/app-release.apk | bin | 1214911 -> 1214911 bytes | |||
-rw-r--r-- | app/release/baselineProfiles/0/app-release.dm | bin | 4727 -> 4722 bytes | |||
-rw-r--r-- | app/release/baselineProfiles/1/app-release.dm | bin | 4684 -> 4683 bytes | |||
-rw-r--r-- | app/release/output-metadata.json | 4 | ||||
-rw-r--r-- | app/src/main/java/com/a404m/mine_game/ui/page/Game.kt | 8 |
6 files changed, 10 insertions, 6 deletions
diff --git a/app/build.gradle.kts b/app/build.gradle.kts index f742779..1599144 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -12,8 +12,8 @@ android { applicationId = "com.a404m.mine_game" minSdk = 24 targetSdk = 36 - versionCode = 2 - versionName = "0.2.0" + versionCode = 3 + versionName = "0.2.1" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" } diff --git a/app/release/app-release.apk b/app/release/app-release.apk Binary files differindex ab02a01..bf4e7d0 100644 --- a/app/release/app-release.apk +++ b/app/release/app-release.apk diff --git a/app/release/baselineProfiles/0/app-release.dm b/app/release/baselineProfiles/0/app-release.dm Binary files differindex c96ca9d..e9b3a6e 100644 --- a/app/release/baselineProfiles/0/app-release.dm +++ b/app/release/baselineProfiles/0/app-release.dm diff --git a/app/release/baselineProfiles/1/app-release.dm b/app/release/baselineProfiles/1/app-release.dm Binary files differindex 38b3a4e..1bbb929 100644 --- a/app/release/baselineProfiles/1/app-release.dm +++ b/app/release/baselineProfiles/1/app-release.dm diff --git a/app/release/output-metadata.json b/app/release/output-metadata.json index b693519..c560e47 100644 --- a/app/release/output-metadata.json +++ b/app/release/output-metadata.json @@ -11,8 +11,8 @@ "type": "SINGLE", "filters": [], "attributes": [], - "versionCode": 1, - "versionName": "0.1.0", + "versionCode": 3, + "versionName": "0.2.1", "outputFile": "app-release.apk" } ], diff --git a/app/src/main/java/com/a404m/mine_game/ui/page/Game.kt b/app/src/main/java/com/a404m/mine_game/ui/page/Game.kt index 1bdb3a8..c5f25e0 100644 --- a/app/src/main/java/com/a404m/mine_game/ui/page/Game.kt +++ b/app/src/main/java/com/a404m/mine_game/ui/page/Game.kt @@ -84,7 +84,11 @@ fun GamePage( gameState.isWon() } } - val gameFinished = isWon || isLost + val gameFinished by remember { + derivedStateOf { + isWon || isLost + } + } val isHintEnabled by remember { derivedStateOf { !gameFinished && StorageGame.hintCount > 0 @@ -251,7 +255,7 @@ fun GamePage( cell.isFlag = !cell.isFlag } } - if(gameState.isWon()){ + if (gameState.isWon()) { StorageGame.hintCount += 1 } }, |