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

@@ -19,8 +19,8 @@ android {
applicationId = "solutions.tretter.githugandroid"
minSdk = 26
targetSdk = 35
versionCode = 102
versionName = "0.1.101"
versionCode = 103
versionName = "0.1.102"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true

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