Skip to content
This repository was archived by the owner on Mar 6, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
2dde87d
Rename app package to authenticator
SaintPatrck Dec 17, 2024
0dad6f2
Workflows: renamed with -bwa prefix
vvolkgang Feb 6, 2025
49a2eab
Fastlane: Add -bwa prefix and set check lane Gradle project
vvolkgang Feb 6, 2025
71985cd
Revert "Workflows: renamed with -bwa prefix"
vvolkgang Feb 6, 2025
9bf6635
Revert "Fastlane: Add -bwa prefix and set check lane Gradle project"
vvolkgang Feb 6, 2025
b95f528
Revert "Revert "Fastlane: Add -bwa prefix and set check lane Gradle pโ€ฆ
vvolkgang Feb 6, 2025
fc6e987
Remove project from gradle task
vvolkgang Feb 6, 2025
3e185cb
Rename suffix
vvolkgang Feb 6, 2025
47cfe8d
Rename CI workflows for Authenticator
SaintPatrck Dec 17, 2024
a53f0f8
Rename Fastfile lanes to be Authenticator-specific
SaintPatrck Dec 17, 2024
4a2cbf1
Replaced `check-bwa` with `checkAuthenticator` in workflow
SaintPatrck Feb 6, 2025
785e089
Revert renaming of `check` lane
SaintPatrck Feb 6, 2025
c064f52
Missed some renaming....
SaintPatrck Feb 6, 2025
d75f962
Merge branch 'repo-migration/rename-app-module' into repo-migration/rโ€ฆ
SaintPatrck Feb 6, 2025
8b99d46
Merge branch 'repo-migration/rename-workflow-files' into repo-migratiโ€ฆ
SaintPatrck Feb 6, 2025
4a22c8f
Revert build.yml / Fastfile changes
vvolkgang Feb 12, 2025
4ce2680
Merge remote-tracking branch 'origin/main' into repo-migration/renameโ€ฆ
SaintPatrck Feb 12, 2025
a58836f
Revert workflow name changes
vvolkgang Feb 12, 2025
b34693a
Merge branch 'repo-migration/rename-app-module' into repo-migration/uโ€ฆ
vvolkgang Feb 12, 2025
d1811d3
Merge branch 'repo-migration/rename-app-module' into repo-migration/uโ€ฆ
vvolkgang Feb 12, 2025
0b18eee
Merge branch 'main' into repo-migration/update-fastfile
vvolkgang Feb 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: Build Authenticator

on:
push:
Expand Down Expand Up @@ -31,7 +31,7 @@ env:

jobs:
build:
name: Build
name: Build Authenticator
runs-on: ubuntu-24.04

steps:
Expand Down Expand Up @@ -80,11 +80,11 @@ jobs:
- name: Check
run: bundle exec fastlane check

- name: Build
run: bundle exec fastlane buildDebug
- name: Build Authenticator
run: bundle exec fastlane buildAuthenticatorDebug

publish_playstore:
name: Publish Play Store artifacts
name: Publish Authenticator Play Store artifacts
needs:
- build
runs-on: ubuntu-24.04
Expand Down Expand Up @@ -152,7 +152,8 @@ jobs:
- name: Verify Play Store credentials
if: ${{ inputs.publish-to-play-store }}
run: |
bundle exec fastlane run validate_play_store_json_key
bundle exec fastlane run validate_play_store_json_key \
json_key:${{ github.workspace }}/secrets/authenticator_play_store-creds.json }}

- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@0bdd871935719febd78681f197cd39af5b6e16a6 # v4.2.2
Expand Down Expand Up @@ -186,7 +187,7 @@ jobs:
run: |
DEFAULT_VERSION_CODE=$GITHUB_RUN_NUMBER
VERSION_CODE="${{ inputs.version-code || '$DEFAULT_VERSION_CODE' }}"
bundle exec fastlane setBuildVersionInfo \
bundle exec fastlane setAuthenticatorBuildVersionInfo \
versionCode:$VERSION_CODE \
versionName:${{ inputs.version-name || '' }}

Expand All @@ -200,7 +201,7 @@ jobs:
- name: Generate release Play Store bundle
if: ${{ matrix.variant == 'aab' }}
run: |
bundle exec fastlane bundleRelease \
bundle exec fastlane bundleAuthenticatorRelease \
storeFile:${{ github.workspace }}/keystores/authenticator_aab-keystore.jks \
storePassword:'${{ secrets.AAB_KEYSTORE_STORE_PASSWORD }}' \
keyAlias:authenticatorupload \
Expand All @@ -209,7 +210,7 @@ jobs:
- name: Generate release Play Store APK
if: ${{ matrix.variant == 'apk' }}
run: |
bundle exec fastlane buildRelease \
bundle exec fastlane buildAuthenticatorRelease \
storeFile:${{ github.workspace }}/keystores/authenticator_apk-keystore.jks \
storePassword:'${{ secrets.APK_KEYSTORE_STORE_PASSWORD }}' \
keyAlias:bitwardenauthenticator \
Expand Down Expand Up @@ -268,7 +269,7 @@ jobs:
env:
FIREBASE_CREDS_PATH: ${{ github.workspace }}/secrets/authenticator_play_firebase-creds.json
run: |
bundle exec fastlane distributeReleaseBundleToFirebase \
bundle exec fastlane distributeAuthenticatorReleaseBundleToFirebase \
serviceCredentialsFile:${{ env.FIREBASE_CREDS_PATH }}

# Only publish bundles to Play Store when `publish-to-play-store` is true while building
Expand All @@ -278,5 +279,5 @@ jobs:
env:
PLAY_STORE_CREDS_FILE: ${{ github.workspace }}/secrets/authenticator_play_store-creds.json
run: |
bundle exec fastlane publishReleaseToGooglePlayStore \
bundle exec fastlane publishAuthenticatorReleaseToGooglePlayStore \
serviceCredentialsFile:${{ env.PLAY_STORE_CREDS_FILE }} \
2 changes: 1 addition & 1 deletion .github/workflows/crowdin-pull.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Crowdin Sync
name: Crowdin Sync - Authenticator

on:
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/crowdin-push.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Crowdin Push
name: Crowdin Push - Authenticator

on:
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scan.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Scan
name: Scan Authenticator

on:
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: Test Authenticator

on:
push:
Expand Down
2 changes: 0 additions & 2 deletions fastlane/Appfile
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
json_key_file("secrets/authenticator_play_store-creds.json")
package_name("com.bitwarden.authenticator")
3 changes: 2 additions & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ platform :android do

desc "Runs tests"
lane :check do
gradle(tasks: ["testDebug", "lintDebug", "detekt","koverXmlReportDebug"])
gradle(tasks: ["authenticator:testDebug", "authenticator:lintDebug", "authenticator:detekt","authenticator:koverXmlReportDebug"])
end

desc "Apply build version information"
Expand Down Expand Up @@ -133,6 +133,7 @@ platform :android do
desc "Publish release to Google Play Store"
lane :publishReleaseToGooglePlayStore do |options|
upload_to_play_store(
package_name: "com.bitwarden.authenticator",
json_key: options[:serviceCredentialsFile],
track: "internal",
aab: "authenticator/build/outputs/bundle/release/com.bitwarden.authenticator-release.aab",
Expand Down