[PR #4474] [MERGED] [PM-15176] Rename bundle and apk files to match applicationId and flavor #4978

Closed
opened 2025-11-26 23:52:22 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bitwarden/android/pull/4474
Author: @SaintPatrck
Created: 12/13/2024
Status: Merged
Merged: 12/14/2024
Merged by: @vvolkgang

Base: mainHead: PM-15176/rename-bundle-tasks


📝 Commits (1)

  • efe5564 [PM-15176] Rename bundle and apk files to match applicationId and flavor

📊 Changes

1 file changed (+28 additions, -41 deletions)

View changed files

📝 app/build.gradle.kts (+28 -41)

📄 Description

🎟️ Tracking

PM-15176

📔 Objective

This change renames the bundle (AAB) and APK files generated during the build process. It uses the applicationId and flavorName to create more consistent and predictable filenames.

For APK files, the output filename is now set to applicationId-flavorName.apk for the "fdroid" flavor, applicationId.apk for the "standard" flavor, and the default output filename for other flavors.

For AAB files, a new task is registered for each variant to rename the bundle files. The task renames the AAB file to applicationId-flavorName.aab for the "fdroid" flavor and applicationId.aab for the "standard" flavor.

This change also removes the hardcoded renaming logic for specific variants and replaces it with a more generic approach that works for all variants.

Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed
    issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/bitwarden/android/pull/4474 **Author:** [@SaintPatrck](https://github.com/SaintPatrck) **Created:** 12/13/2024 **Status:** ✅ Merged **Merged:** 12/14/2024 **Merged by:** [@vvolkgang](https://github.com/vvolkgang) **Base:** `main` ← **Head:** `PM-15176/rename-bundle-tasks` --- ### 📝 Commits (1) - [`efe5564`](https://github.com/bitwarden/android/commit/efe5564638cc649c3b07fd167fbef429d8b3a95c) [PM-15176] Rename bundle and apk files to match applicationId and flavor ### 📊 Changes **1 file changed** (+28 additions, -41 deletions) <details> <summary>View changed files</summary> 📝 `app/build.gradle.kts` (+28 -41) </details> ### 📄 Description ## 🎟️ Tracking PM-15176 ## 📔 Objective This change renames the bundle (AAB) and APK files generated during the build process. It uses the `applicationId` and `flavorName` to create more consistent and predictable filenames. For APK files, the output filename is now set to `applicationId-flavorName.apk` for the "fdroid" flavor, `applicationId.apk` for the "standard" flavor, and the default output filename for other flavors. For AAB files, a new task is registered for each variant to rename the bundle files. The task renames the AAB file to `applicationId-flavorName.aab` for the "fdroid" flavor and `applicationId.aab` for the "standard" flavor. This change also removes the hardcoded renaming logic for specific variants and replaces it with a more generic approach that works for all variants. ## ⏰ Reminders before review - Contributor guidelines followed - All formatters and local linters executed and passed - Written new unit and / or integration tests where applicable - Used internationalization (i18n) for all UI strings - CI builds passed - Communicated to DevOps any deployment requirements - Updated any necessary documentation or informed the documentation team ## 🦮 Reviewer guidelines <!-- Suggested interactions but feel free to use (or not) as you desire! --> - 👍 (`:+1:`) or similar for great changes - 📝 (`:memo:`) or ℹ️ (`:information_source:`) for notes or general info - ❓ (`:question:`) for questions - 🤔 (`:thinking:`) or 💭 (`:thought_balloon:`) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion - 🎨 (`:art:`) for suggestions / improvements - ❌ (`:x:`) or ⚠️ (`:warning:`) for more significant problems or concerns needing attention - 🌱 (`:seedling:`) or ♻️ (`:recycle:`) for future improvements or indications of technical debt - ⛏ (`:pick:`) for minor or nitpick changes --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-26 23:52:22 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#4978