Dough Git

commit

Read the certificate from newer apksigner output and the APK's minSdk

commit
58aeb32ac2e2de752dd6e3695645d57601ddea92
author
Clove Twilight <[email protected]>
date
2026-11-02 19:58
apksigner now prints 'V2 Signer: certificate SHA-256 digest', and aapt2
prints minSdkVersion, so both came out empty. Also collect install results
with a plain lambda.

diff --git a/.github/scripts/build-apps.sh b/.github/scripts/build-apps.sh
index 28d3674..413404a 100644
--- a/.github/scripts/build-apps.sh
+++ b/.github/scripts/build-apps.sh
@@ -52,9 +52,10 @@ build() {
   pkg=$(sed -n "s/^package: name='\([^']*\)'.*/\1/p" <<< "$badging")
   code=$(sed -n "s/^package: .* versionCode='\([^']*\)'.*/\1/p" <<< "$badging")
   name=$(sed -n "s/^package: .* versionName='\([^']*\)'.*/\1/p" <<< "$badging")
-  minsdk=$(sed -n "s/^\(min\)\?sdkVersion:'\([0-9]*\)'.*/\2/p" <<< "$badging" | head -1)
+  minsdk=$(sed -n "s/^\(minSdkVersion\|sdkVersion\):'\([0-9]*\)'.*/\2/p" <<< "$badging" | head -1)
+  # "Signer #1 certificate SHA-256 digest: …" or, newer, "V2 Signer: certificate SHA-256 digest: …"
   cert=$("$apksigner" verify --print-certs "$out/$file" 2>/dev/null \
-    | sed -n 's/^Signer #1 certificate SHA-256 digest: //p' | head -1 || true)
+    | sed -n 's/^.*[Ss]igner.*certificate SHA-256 digest: *//p' | head -1 || true)
 
   local expected_code=${VERSION_CODE:-1} expected_name=${VERSION_NAME:-}
   if [ "$pkg" != "$package" ]; then
diff --git a/doughmination-manager/app/src/main/java/gay/doughmination/manager/ui/ManagerViewModel.kt b/doughmination-manager/app/src/main/java/gay/doughmination/manager/ui/ManagerViewModel.kt
index 7cf3989..1cdc3d7 100644
--- a/doughmination-manager/app/src/main/java/gay/doughmination/manager/ui/ManagerViewModel.kt
+++ b/doughmination-manager/app/src/main/java/gay/doughmination/manager/ui/ManagerViewModel.kt
@@ -87,7 +87,7 @@ class ManagerViewModel(application: Application) : AndroidViewModel(application)
             source.cached()?.let { cached -> _state.update { it.copy(manifest = cached) }; rebuild() }
             refresh()
         }
-        viewModelScope.launch { Installer.results.collect(::onInstallResult) }
+        viewModelScope.launch { Installer.results.collect { onInstallResult(it) } }
     }
 
     /** Fetches the manifest again and re-reads what's installed. */