Created
October 22, 2020 06:06
-
-
Save bartk89/9f754ff4637cf8de18a64beb60f11e32 to your computer and use it in GitHub Desktop.
Distribution of Android app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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 | |
| } | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //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