Android Application -> Firebase Distribution
Steps to configure your android application to distribute to Firebase in CI/CD
Last updated
Steps to configure your android application to distribute to Firebase in CI/CD
Last updated
On the , select your project and create a new service account.
Add the Firebase App Distribution Admin
role.
Create a private JSON key.
. When prompted, select the project with the same name as your Firebase project.
Encode the service account creds using base64
Then put this encoded value in code build env_vars of the build project with the name SERVICE_ACCOUNT_CREDENTIALS_ENCODED
and type PARAMETER_STORE (secrets manager)
To decode the credentials and write to file, run the below command in build.
Changes in App Config:
Add the below dependency in apps/crm-agent-mobile-app/android/build.gradle
> buildscript
> dependencies
Add the below line at app/build.gradle
(below com.android.application
plugin)
Add the below snippet in app/build.gradle
> /android
> buildTypes
> release
Update releaseNotesFile
, groupsFile
paths.
groupsFile
file contains comma-separated testers' group names.
Run the below command to build and distribute the app to firebase.
For more details on other attributes here, go through