Skip to content

fix(Updater): support device (mobile/tv) and architecture flavor dimensions in APK download URL#666

Merged
rukamori merged 1 commit into
ArchiveTuneApp:devfrom
sang765:fix/updater
May 25, 2026
Merged

fix(Updater): support device (mobile/tv) and architecture flavor dimensions in APK download URL#666
rukamori merged 1 commit into
ArchiveTuneApp:devfrom
sang765:fix/updater

Conversation

@sang765

@sang765 sang765 commented May 25, 2026

Copy link
Copy Markdown
Member

The getLatestDownloadUrl() method was hardcoding "mobile" for universal APKs and missing the device prefix for others, producing incorrect download URLs for TV builds.

Changes:

  • Add buildConfigField("String", "DEVICE", ...) to mobile and tv product flavors in app/build.gradle.kts
  • Simplify Updater.getLatestDownloadUrl() to construct the URL using both BuildConfig.DEVICE and BuildConfig.ARCHITECTURE directly

Now every variant produces the correct APK filename: app-<device>-<architecture>-release.apk (e.g., app-mobile-arm64-release.apk, app-tv-universal-release.apk).

…nsions in APK download URL

Signed-off-by: Hà Tiến Sáng <bemimnitran@gmail.com>
@rukamori rukamori merged commit 8817a4b into ArchiveTuneApp:dev May 25, 2026
2 checks passed
@sang765 sang765 deleted the fix/updater branch May 25, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants