Skip to content
This repository was archived by the owner on Mar 6, 2025. It is now read-only.

[PM-16534] Update output filenames#335

Merged
SaintPatrck merged 25 commits intomainfrom
repo-migration/consistent-output-filenames
Feb 12, 2025
Merged

[PM-16534] Update output filenames#335
SaintPatrck merged 25 commits intomainfrom
repo-migration/consistent-output-filenames

Conversation

@SaintPatrck
Copy link
Contributor

🎟️ Tracking

--

📔 Objective

Rename the output filenames of the Authenticator bundle and APK to com.bitwarden.authenticator.aab and com.bitwarden.authenticator.apk respectively. This improves the consistency of filenames across different build variants.

Additionally, update build.gradle.kts to rename bundle and APK files to include the application ID in the file name, ensuring a unique file name for each build. This ensures consistent filenames regardless of build type or target.

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) 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

SaintPatrck and others added 11 commits February 5, 2025 13:13
Rename workflows by appending `_authenticator` to their names.
Renamed the following lanes in the Fastfile to be more specific to the Authenticator module:
- `check` to `checkAuthenticator`
- `setBuildVersionInfo` to `setAuthenticatorBuildVersionInfo`
- `buildDebug` to `buildAuthenticatorDebug`
- `buildRelease` to `buildAuthenticatorRelease`
- `bundleRelease` to `bundleAuthenticatorRelease`
- `distributeReleaseBundleToFirebase` to `distributeAuthenticatorReleaseBundleToFirebase`
- `publishReleaseToGooglePlayStore` to `publishAuthenticatorReleaseToGooglePlayStore`

Updated the GitHub workflows to use the new lane names.

Removed unused `json_key_file` and `package_name` from Appfile.

Added `json_key` parameter to `validate_play_store_json_key` lane in `build_authenticator.yml` workflow.

Added `package_name` parameter to `publishAuthenticatorReleaseToGooglePlayStore` lane in `build_authenticator.yml` workflow.
Rename the output filenames of the Authenticator bundle and APK to `com.bitwarden.authenticator.aab` and `com.bitwarden.authenticator.apk` respectively. This improves the consistency of filenames across different build variants.

Additionally, update `build.gradle.kts` to rename bundle and APK files to include the application ID in the file name, ensuring a unique file name for each build. This ensures consistent filenames regardless of build type or target.
@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2025

Logo
Checkmarx One – Scan Summary & Details7392b117-47cc-44a4-b256-e5c62cacb5a0

Great job, no security vulnerabilities found in this Pull Request

@codecov
Copy link

codecov bot commented Feb 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 44.67%. Comparing base (2ae3d5e) to head (9e537cc).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #335      +/-   ##
==========================================
- Coverage   44.69%   44.67%   -0.02%     
==========================================
  Files         119      119              
  Lines        5717     5717              
  Branches      684      684              
==========================================
- Hits         2555     2554       -1     
  Misses       2981     2981              
- Partials      181      182       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


buildTypes {
debug {
applicationIdSuffix = ".dev"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this package name change, do we know if the sync feature will still function properly with the dev builds.

I am unsure if they look for specific package names or not.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see anything in Bitwarden that's looking for Authenticator's appId. Authenticator is what needs knowledge of the correct Bitwarden appId to query for.

vvolkgang
vvolkgang previously approved these changes Feb 12, 2025
Base automatically changed from repo-migration/update-fastfile to main February 12, 2025 22:24
@SaintPatrck SaintPatrck dismissed vvolkgang’s stale review February 12, 2025 22:24

The base branch was changed.

# Conflicts:
#	.github/workflows/build.yml
#	fastlane/Fastfile
@vvolkgang vvolkgang enabled auto-merge (squash) February 12, 2025 22:27
@SaintPatrck SaintPatrck disabled auto-merge February 12, 2025 22:27
@SaintPatrck SaintPatrck enabled auto-merge (squash) February 12, 2025 22:27
@SaintPatrck SaintPatrck merged commit 0538bec into main Feb 12, 2025
7 checks passed
@SaintPatrck SaintPatrck deleted the repo-migration/consistent-output-filenames branch February 12, 2025 22:31
@vvolkgang vvolkgang changed the title Update output filenames [PM-16534] Update output filenames Feb 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants