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

Commit 2ae3d5e

Browse files
Rename Fastfile lanes to be Authenticator-specific (#334)
Co-authored-by: Álison Fernandes <vvolkgang@users.noreply.github.com>
1 parent 72ac8d3 commit 2ae3d5e

7 files changed

Lines changed: 18 additions & 18 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build
1+
name: Build Authenticator
22

33
on:
44
push:
@@ -31,7 +31,7 @@ env:
3131

3232
jobs:
3333
build:
34-
name: Build
34+
name: Build Authenticator
3535
runs-on: ubuntu-24.04
3636

3737
steps:
@@ -80,11 +80,11 @@ jobs:
8080
- name: Check
8181
run: bundle exec fastlane check
8282

83-
- name: Build
84-
run: bundle exec fastlane buildDebug
83+
- name: Build Authenticator
84+
run: bundle exec fastlane buildAuthenticatorDebug
8585

8686
publish_playstore:
87-
name: Publish Play Store artifacts
87+
name: Publish Authenticator Play Store artifacts
8888
needs:
8989
- build
9090
runs-on: ubuntu-24.04
@@ -152,7 +152,8 @@ jobs:
152152
- name: Verify Play Store credentials
153153
if: ${{ inputs.publish-to-play-store }}
154154
run: |
155-
bundle exec fastlane run validate_play_store_json_key
155+
bundle exec fastlane run validate_play_store_json_key \
156+
json_key:${{ github.workspace }}/secrets/authenticator_play_store-creds.json }}
156157
157158
- name: Validate Gradle wrapper
158159
uses: gradle/actions/wrapper-validation@0bdd871935719febd78681f197cd39af5b6e16a6 # v4.2.2
@@ -186,7 +187,7 @@ jobs:
186187
run: |
187188
DEFAULT_VERSION_CODE=$GITHUB_RUN_NUMBER
188189
VERSION_CODE="${{ inputs.version-code || '$DEFAULT_VERSION_CODE' }}"
189-
bundle exec fastlane setBuildVersionInfo \
190+
bundle exec fastlane setAuthenticatorBuildVersionInfo \
190191
versionCode:$VERSION_CODE \
191192
versionName:${{ inputs.version-name || '' }}
192193
@@ -200,7 +201,7 @@ jobs:
200201
- name: Generate release Play Store bundle
201202
if: ${{ matrix.variant == 'aab' }}
202203
run: |
203-
bundle exec fastlane bundleRelease \
204+
bundle exec fastlane bundleAuthenticatorRelease \
204205
storeFile:${{ github.workspace }}/keystores/authenticator_aab-keystore.jks \
205206
storePassword:'${{ secrets.AAB_KEYSTORE_STORE_PASSWORD }}' \
206207
keyAlias:authenticatorupload \
@@ -209,7 +210,7 @@ jobs:
209210
- name: Generate release Play Store APK
210211
if: ${{ matrix.variant == 'apk' }}
211212
run: |
212-
bundle exec fastlane buildRelease \
213+
bundle exec fastlane buildAuthenticatorRelease \
213214
storeFile:${{ github.workspace }}/keystores/authenticator_apk-keystore.jks \
214215
storePassword:'${{ secrets.APK_KEYSTORE_STORE_PASSWORD }}' \
215216
keyAlias:bitwardenauthenticator \
@@ -268,7 +269,7 @@ jobs:
268269
env:
269270
FIREBASE_CREDS_PATH: ${{ github.workspace }}/secrets/authenticator_play_firebase-creds.json
270271
run: |
271-
bundle exec fastlane distributeReleaseBundleToFirebase \
272+
bundle exec fastlane distributeAuthenticatorReleaseBundleToFirebase \
272273
serviceCredentialsFile:${{ env.FIREBASE_CREDS_PATH }}
273274
274275
# Only publish bundles to Play Store when `publish-to-play-store` is true while building
@@ -278,5 +279,5 @@ jobs:
278279
env:
279280
PLAY_STORE_CREDS_FILE: ${{ github.workspace }}/secrets/authenticator_play_store-creds.json
280281
run: |
281-
bundle exec fastlane publishReleaseToGooglePlayStore \
282+
bundle exec fastlane publishAuthenticatorReleaseToGooglePlayStore \
282283
serviceCredentialsFile:${{ env.PLAY_STORE_CREDS_FILE }} \

.github/workflows/crowdin-pull.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Crowdin Sync
1+
name: Crowdin Sync - Authenticator
22

33
on:
44
workflow_dispatch:

.github/workflows/crowdin-push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Crowdin Push
1+
name: Crowdin Push - Authenticator
22

33
on:
44
workflow_dispatch:

.github/workflows/scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Scan
1+
name: Scan Authenticator
22

33
on:
44
workflow_dispatch:

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test
1+
name: Test Authenticator
22

33
on:
44
push:

fastlane/Appfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
json_key_file("secrets/authenticator_play_store-creds.json")
2-
package_name("com.bitwarden.authenticator")

fastlane/Fastfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ platform :android do
1919

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

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

0 commit comments

Comments
 (0)