Skip to content

Instantly share code, notes, and snippets.

@bartk89
Created October 22, 2020 06:06
Show Gist options
  • Select an option

  • Save bartk89/9f754ff4637cf8de18a64beb60f11e32 to your computer and use it in GitHub Desktop.

Select an option

Save bartk89/9f754ff4637cf8de18a64beb60f11e32 to your computer and use it in GitHub Desktop.
Distribution of Android app
// In your android/app/build.gradle
// below other plugins
apply plugin: 'com.google.firebase.appdistribution'
android {
// std config ommited
buildTypes {
//defaults ommited
preview {
// previously configured
initWith release // or any other build type that testers might use
matchingFallbacks = ['release']
applicationIdSuffix ".firebase_preview"
signingConfig signingConfigs.appDistribution
// additional config
firebaseAppDistribution {
releaseNotesFile="../release_notes.txt" // points to release_notes file in android folder
groups="qa-team" // points to tester group named qa-team created in firebase console
}
}
}
}
//example upload step in ci tool of your choice. Example uses gitlab's tool
build:preview_distribution:
stage: build
tags:
- build
- distribute
script:
- cd android
- ./gradlew assemblePreview
- ./gradlew appDistributionUploadPreview
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment