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

オープン
#1,442 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
android, kotlin
領域
mobile

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Kotlin
スター
7.8k
フォーク
237
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Droid-ify/client のほかの issue

Droid-ify/client の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。