Auto-commit after successful build: update app gameplay/UI, improve build setup

Changed files:\napp/build.gradle.kts
app/src/main/java/solutions/tretter/githugandroid/GitHugApp.kt
This commit is contained in:
Joe Tretter
2026-05-02 22:29:46 -05:00
parent 4727b314b4
commit 65c44ccf62
2 changed files with 6 additions and 2 deletions

View File

@@ -159,6 +159,10 @@ fun GitHugApp() {
}
fun resetCurrentLevel(message: String = "Level reset.") {
val resetLevelId = currentLevel.id
val updatedCompletedLevels = completedLevels - resetLevelId
completedLevels = updatedCompletedLevels
scope.launch { persistProgress(updatedCompletedLevels, resetLevelId) }
repo = runtime.prepareLevel(currentLevel)
clearCommandInput()
suppressedImeEcho = null