I have an issue with Firebase Distribution configuration. Here's a part of my build.gradle
in Kotlin DSL
flavorDimensions("dim")
productFlavors {
create("fl1") {
applicationIdSuffix = ".fl1"
setDimension("dim")
firebaseAppDistribution {
releaseNotes = "$name"
groups = "group-fl1"
}
}
create("fl2") {
applicationIdSuffix = ".fl2"
setDimension("dim")
firebaseAppDistribution {
releaseNotes = "$name"
groups = "group-fl2"
}
}
}
Flavor 1 and flavor 2 are uploaded to 2 different Firebase projects - therefore I have two google-services.json
files in: src/fl1
and src/fl2
.
From observation Firebase App Distribution plugin uses always the config from second firebaseDistribution
block. It looks like this is not set to flavor but globally.
When I invoke for example assembleFl1Debug appDistributionUploadFl1Debug
the correct .apk lands in correct Firebase project, but both release notes and groups are not correct.
Anyone had a similar issue?
Distribute your app to testersSelect your Firebase project when prompted. On the Releases page, select the app you want to distribute from the drop-down menu. Drag your app's APK file to the console to upload it. When the upload completes, specify the tester groups and individual testers you want to receive the build.
Firebase App Distribution gives you a holistic view of your beta testing program across iOS and Android, providing you with valuable app feedback before a new release is in production.
I reported this to Firebase support and just received a confirmation that it is bug, but no workaround or fix date is scheduled yet :( This concerns only build.gradle files written in Kotlin DSL.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With