[Feature] Append 8-character short SHA-256 in square brackets to versionName (versionCode) strings

Abierto
#1,442 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
android, kotlin
Área
mobile

Línea de trabajo

Search the Kotlin/Compose sources for where the versionName (versionCode) string is rendered — app details, the versions list and update prompts are the three sites the issue names — and centralise that formatting so each caller shares one implementation. The hash on the available side comes from the repository index checksum, while the installed side needs the base APK hashed locally. Done means each of those screens shows 1.2.3 (100) [a1b2c3d4], falls back to [] when no hash exists, and existing version-display tests still pass.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement
Guidelines
  • I have searched the issue tracker for open and closed issues that are similar to the feature request I want to file, without success.
  • I'm not requesting app support for a specific repo — that's up to repo maintainers
  • I understand this might not get built (Droid-ify is maintained by a single person)
Problem

Currently, Droid-ify displays installed and repository app versions as versionName (versionCode) (e.g., 1.2.3 (100) on app detail screens, version lists, and update prompts).

However, versionName and versionCode can remain identical across reproducible builds, upstream GitHub releases, F-Droid/IzzyOnDroid mirrors, or locally sideloaded APKs. Relying on version numbers alone makes it impossible to immediately verify whether an installed APK matches the exact binary hash published in the repository index or comes from a different/modified build.

Proposed solution

Append the 8-character short SHA-256 hash of the APK in square brackets right after versionName (versionCode) wherever version strings are displayed or compared (such as App Details, Versions list, and update transitions):

  • Single version display: 1.2.3 (100) [a1b2c3d4]
  • Update transition (Installed → Available): 1.2.3 (100) [a1b2c3d4] → 1.2.4 (101) [e5f6g7h8]
  • Fallback when hash is unavailable: Display empty square brackets [] (e.g., 1.2.3 (100) []) to preserve a consistent layout.

Since F-Droid repository indexes already include each package's SHA-256 checksum and hashing the installed base APK is fast and 100% local, this requires no extra network requests. Optionally, it can be toggled in Settings → UI / Preferences.

Extras

Standardizing the versionName (versionCode) [short-sha256] format gives users an immediate, human-readable way to verify authentic builds and compare repository releases at a glance without manually inspecting full 64-character hashes.

Lenguaje dominante
Kotlin
Estrellas
7.8k
Forks
237
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Droid-ify/client

Todos los issues de Droid-ify/client

Issues similares

Más issues de Kotlin

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.