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/AppLog.kt
app/src/main/java/solutions/tretter/githugandroid/GameProgressStore.kt
app/src/main/java/solutions/tretter/githugandroid/GitHugApp.kt
app/src/main/java/solutions/tretter/githugandroid/GitRuntime.kt
This commit is contained in:
Joe Tretter
2026-04-24 13:52:19 -05:00
parent 66b664d9d5
commit eee8827f76
5 changed files with 86 additions and 12 deletions

View File

@@ -17,6 +17,7 @@ class GitRepositoryRuntime(private val context: Context) {
}
fun prepareLevel(level: Level): RepoState {
AppLog.d("GitRuntime", "Preparing level id=${level.id} title=${level.title}")
val nativeGit = nativeGitBinary()
if (nativeGit == null) {
return level.setup()
@@ -52,6 +53,7 @@ class GitRepositoryRuntime(private val context: Context) {
}
fun execute(level: Level, currentRepo: RepoState, command: String): Pair<RepoState, List<String>> {
AppLog.d("GitRuntime", "Executing command for level=${level.id}: $command")
val nativeGit = nativeGitBinary()
if (nativeGit == null) {
return GitSandboxEngine.execute(currentRepo, command)