mirror of
https://github.com/bitwarden/android.git
synced 2026-04-29 12:32:26 -05:00
Rename Fastfile lanes to be Authenticator-specific (#334)
Co-authored-by: Álison Fernandes <vvolkgang@users.noreply.github.com>
This commit is contained in:
23
.github/workflows/build.yml
vendored
23
.github/workflows/build.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Build
|
name: Build Authenticator
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -31,7 +31,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build Authenticator
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -80,11 +80,11 @@ jobs:
|
|||||||
- name: Check
|
- name: Check
|
||||||
run: bundle exec fastlane check
|
run: bundle exec fastlane check
|
||||||
|
|
||||||
- name: Build
|
- name: Build Authenticator
|
||||||
run: bundle exec fastlane buildDebug
|
run: bundle exec fastlane buildAuthenticatorDebug
|
||||||
|
|
||||||
publish_playstore:
|
publish_playstore:
|
||||||
name: Publish Play Store artifacts
|
name: Publish Authenticator Play Store artifacts
|
||||||
needs:
|
needs:
|
||||||
- build
|
- build
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
@@ -152,7 +152,8 @@ jobs:
|
|||||||
- name: Verify Play Store credentials
|
- name: Verify Play Store credentials
|
||||||
if: ${{ inputs.publish-to-play-store }}
|
if: ${{ inputs.publish-to-play-store }}
|
||||||
run: |
|
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
|
- name: Validate Gradle wrapper
|
||||||
uses: gradle/actions/wrapper-validation@0bdd871935719febd78681f197cd39af5b6e16a6 # v4.2.2
|
uses: gradle/actions/wrapper-validation@0bdd871935719febd78681f197cd39af5b6e16a6 # v4.2.2
|
||||||
@@ -186,7 +187,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
DEFAULT_VERSION_CODE=$GITHUB_RUN_NUMBER
|
DEFAULT_VERSION_CODE=$GITHUB_RUN_NUMBER
|
||||||
VERSION_CODE="${{ inputs.version-code || '$DEFAULT_VERSION_CODE' }}"
|
VERSION_CODE="${{ inputs.version-code || '$DEFAULT_VERSION_CODE' }}"
|
||||||
bundle exec fastlane setBuildVersionInfo \
|
bundle exec fastlane setAuthenticatorBuildVersionInfo \
|
||||||
versionCode:$VERSION_CODE \
|
versionCode:$VERSION_CODE \
|
||||||
versionName:${{ inputs.version-name || '' }}
|
versionName:${{ inputs.version-name || '' }}
|
||||||
|
|
||||||
@@ -200,7 +201,7 @@ jobs:
|
|||||||
- name: Generate release Play Store bundle
|
- name: Generate release Play Store bundle
|
||||||
if: ${{ matrix.variant == 'aab' }}
|
if: ${{ matrix.variant == 'aab' }}
|
||||||
run: |
|
run: |
|
||||||
bundle exec fastlane bundleRelease \
|
bundle exec fastlane bundleAuthenticatorRelease \
|
||||||
storeFile:${{ github.workspace }}/keystores/authenticator_aab-keystore.jks \
|
storeFile:${{ github.workspace }}/keystores/authenticator_aab-keystore.jks \
|
||||||
storePassword:'${{ secrets.AAB_KEYSTORE_STORE_PASSWORD }}' \
|
storePassword:'${{ secrets.AAB_KEYSTORE_STORE_PASSWORD }}' \
|
||||||
keyAlias:authenticatorupload \
|
keyAlias:authenticatorupload \
|
||||||
@@ -209,7 +210,7 @@ jobs:
|
|||||||
- name: Generate release Play Store APK
|
- name: Generate release Play Store APK
|
||||||
if: ${{ matrix.variant == 'apk' }}
|
if: ${{ matrix.variant == 'apk' }}
|
||||||
run: |
|
run: |
|
||||||
bundle exec fastlane buildRelease \
|
bundle exec fastlane buildAuthenticatorRelease \
|
||||||
storeFile:${{ github.workspace }}/keystores/authenticator_apk-keystore.jks \
|
storeFile:${{ github.workspace }}/keystores/authenticator_apk-keystore.jks \
|
||||||
storePassword:'${{ secrets.APK_KEYSTORE_STORE_PASSWORD }}' \
|
storePassword:'${{ secrets.APK_KEYSTORE_STORE_PASSWORD }}' \
|
||||||
keyAlias:bitwardenauthenticator \
|
keyAlias:bitwardenauthenticator \
|
||||||
@@ -268,7 +269,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
FIREBASE_CREDS_PATH: ${{ github.workspace }}/secrets/authenticator_play_firebase-creds.json
|
FIREBASE_CREDS_PATH: ${{ github.workspace }}/secrets/authenticator_play_firebase-creds.json
|
||||||
run: |
|
run: |
|
||||||
bundle exec fastlane distributeReleaseBundleToFirebase \
|
bundle exec fastlane distributeAuthenticatorReleaseBundleToFirebase \
|
||||||
serviceCredentialsFile:${{ env.FIREBASE_CREDS_PATH }}
|
serviceCredentialsFile:${{ env.FIREBASE_CREDS_PATH }}
|
||||||
|
|
||||||
# Only publish bundles to Play Store when `publish-to-play-store` is true while building
|
# Only publish bundles to Play Store when `publish-to-play-store` is true while building
|
||||||
@@ -278,5 +279,5 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
PLAY_STORE_CREDS_FILE: ${{ github.workspace }}/secrets/authenticator_play_store-creds.json
|
PLAY_STORE_CREDS_FILE: ${{ github.workspace }}/secrets/authenticator_play_store-creds.json
|
||||||
run: |
|
run: |
|
||||||
bundle exec fastlane publishReleaseToGooglePlayStore \
|
bundle exec fastlane publishAuthenticatorReleaseToGooglePlayStore \
|
||||||
serviceCredentialsFile:${{ env.PLAY_STORE_CREDS_FILE }} \
|
serviceCredentialsFile:${{ env.PLAY_STORE_CREDS_FILE }} \
|
||||||
|
|||||||
2
.github/workflows/crowdin-pull.yml
vendored
2
.github/workflows/crowdin-pull.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Crowdin Sync
|
name: Crowdin Sync - Authenticator
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|||||||
2
.github/workflows/crowdin-push.yml
vendored
2
.github/workflows/crowdin-push.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Crowdin Push
|
name: Crowdin Push - Authenticator
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|||||||
2
.github/workflows/scan.yml
vendored
2
.github/workflows/scan.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Scan
|
name: Scan Authenticator
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|||||||
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Test
|
name: Test Authenticator
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
json_key_file("secrets/authenticator_play_store-creds.json")
|
|
||||||
package_name("com.bitwarden.authenticator")
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ platform :android do
|
|||||||
|
|
||||||
desc "Runs tests"
|
desc "Runs tests"
|
||||||
lane :check do
|
lane :check do
|
||||||
gradle(tasks: ["testDebug", "lintDebug", "detekt","koverXmlReportDebug"])
|
gradle(tasks: ["authenticator:testDebug", "authenticator:lintDebug", "authenticator:detekt","authenticator:koverXmlReportDebug"])
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Apply build version information"
|
desc "Apply build version information"
|
||||||
@@ -133,6 +133,7 @@ platform :android do
|
|||||||
desc "Publish release to Google Play Store"
|
desc "Publish release to Google Play Store"
|
||||||
lane :publishReleaseToGooglePlayStore do |options|
|
lane :publishReleaseToGooglePlayStore do |options|
|
||||||
upload_to_play_store(
|
upload_to_play_store(
|
||||||
|
package_name: "com.bitwarden.authenticator",
|
||||||
json_key: options[:serviceCredentialsFile],
|
json_key: options[:serviceCredentialsFile],
|
||||||
track: "internal",
|
track: "internal",
|
||||||
aab: "authenticator/build/outputs/bundle/release/com.bitwarden.authenticator-release.aab",
|
aab: "authenticator/build/outputs/bundle/release/com.bitwarden.authenticator-release.aab",
|
||||||
|
|||||||
Reference in New Issue
Block a user