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

Commit 8b99d46

Browse files
committed
Merge branch 'repo-migration/rename-workflow-files' into repo-migration/update-fastfile
# Conflicts: # .github/workflows/test_authenticator.yml # fastlane/Fastfile
2 parents a53f0f8 + d75f962 commit 8b99d46

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

.github/workflows/build_authenticator.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
bundle install --jobs 4 --retry 3
7979
8080
- name: Check Authenticator
81-
run: bundle exec fastlane checkAuthenticator
81+
run: bundle exec fastlane check
8282

8383
- name: Build Authenticator
8484
run: bundle exec fastlane buildAuthenticatorDebug

.github/workflows/test_authenticator.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
7575
- name: Build and test
7676
run: |
77-
bundle exec fastlane checkAuthenticator
77+
bundle exec fastlane check
7878
7979
- name: Upload to codecov.io
8080
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2

fastlane/Fastfile

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ default_platform(:android)
1818
platform :android do
1919

2020
desc "Runs tests"
21-
lane :checkAuthenticator do
21+
lane :check do
2222
gradle(tasks: ["authenticator:testDebug", "authenticator:lintDebug", "authenticator:detekt","authenticator:koverXmlReportDebug"])
2323
end
2424

2525
desc "Apply build version information to Authenticator"
2626
fastlane_require "time"
27-
lane :setAuthenticatorBuildVersionInfo do |options|
27+
lane :setBuildVersionInfoAuthenticator do |options|
2828

2929
# Read-in app build config file.
3030
buildConfigPath = "../authenticator/build.gradle.kts"
@@ -73,18 +73,18 @@ platform :android do
7373
end
7474

7575
desc "Assemble Authenticator debug variants"
76-
lane :buildAuthenticatorDebug do
76+
lane :buildDebugAuthenticator do
7777
gradle(
78-
task: "authenticator:assemble",
78+
task: "assemble",
7979
build_type: "Debug",
8080
print_command: false,
8181
)
8282
end
8383

8484
desc "Assemble and sign Authenticator release APK"
85-
lane :buildAuthenticatorRelease do |options|
85+
lane :buildReleaseAuthenticator do |options|
8686
gradle(
87-
task: "authenticator:assemble",
87+
task: "assemble",
8888
build_type: "Release",
8989
properties: {
9090
"android.injected.signing.store.file" => options[:storeFile],
@@ -97,9 +97,9 @@ platform :android do
9797
end
9898

9999
desc "Bundle and sign Authenticator release AAB"
100-
lane :bundleAuthenticatorRelease do |options|
100+
lane :bundleReleaseAuthenticator do |options|
101101
gradle(
102-
task: "authenticator:bundle",
102+
task: "bundle",
103103
build_type: "Release",
104104
properties: {
105105
"android.injected.signing.store.file" => options[:storeFile],
@@ -112,23 +112,26 @@ platform :android do
112112
end
113113

114114
desc "Publish Authenticator release AAB to Firebase"
115-
lane :distributeAuthenticatorReleaseBundleToFirebase do |options|
115+
lane :distributeReleaseBundleToFirebaseAuthenticator do |options|
116116
release_notes = changelog_from_git_commits(
117117
commits_count: 1,
118118
pretty: "- %s"
119119
)
120120

121+
puts "Release notes #{release_notes}"
122+
121123
firebase_app_distribution(
122124
app: "1:867301491091:android:50b626dba42a361651e866",
123125
android_artifact_type: "AAB",
124126
android_artifact_path: "authenticator/build/outputs/bundle/release/com.bitwarden.authenticator-release.aab",
125127
service_credentials_file: options[:serviceCredentialsFile],
126128
groups: "internal-prod-group, livefront",
129+
release_notes: release_notes,
127130
)
128131
end
129132

130133
desc "Publish Authenticator release to Google Play Store"
131-
lane :publishAuthenticatorReleaseToGooglePlayStore do |options|
134+
lane :publishReleaseToGooglePlayStoreAuthenticator do |options|
132135
upload_to_play_store(
133136
package_name: "com.bitwarden.authenticator",
134137
json_key: options[:serviceCredentialsFile],

0 commit comments

Comments
 (0)